diff --git a/CHANGELOG.md b/CHANGELOG.md index 87cfa20..5f18c02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,38 @@ # Changelog +## v0.0.14 + + +### 📖 Documentation + +- Update readme ([7b4c4af](https://github.com/risc0/risc0-ui/commit/7b4c4af)) + +### 🏡 Chore + +- Try something ([dbde503](https://github.com/risc0/risc0-ui/commit/dbde503)) +- Try something2 ([999c1ef](https://github.com/risc0/risc0-ui/commit/999c1ef)) +- Cleanup ([9cf2e21](https://github.com/risc0/risc0-ui/commit/9cf2e21)) +- Move up one folder ([9aa2924](https://github.com/risc0/risc0-ui/commit/9aa2924)) +- Cleanup package.json ([1e7653c](https://github.com/risc0/risc0-ui/commit/1e7653c)) +- Cleanup everything ([736bf4f](https://github.com/risc0/risc0-ui/commit/736bf4f)) +- Try to remove files ([2cffc4d](https://github.com/risc0/risc0-ui/commit/2cffc4d)) +- Re-add files ([8201f83](https://github.com/risc0/risc0-ui/commit/8201f83)) +- Add husky hook for versioning ([a810503](https://github.com/risc0/risc0-ui/commit/a810503)) +- Remove prerelease flag ([d6adc0d](https://github.com/risc0/risc0-ui/commit/d6adc0d)) +- Wrapping up ([3a1f07e](https://github.com/risc0/risc0-ui/commit/3a1f07e)) +- Add release flow ([a0ccfb8](https://github.com/risc0/risc0-ui/commit/a0ccfb8)) +- Add release flow ([5da2311](https://github.com/risc0/risc0-ui/commit/5da2311)) +- Add release flow ([4bd49bd](https://github.com/risc0/risc0-ui/commit/4bd49bd)) +- Fix yml ([bf4398b](https://github.com/risc0/risc0-ui/commit/bf4398b)) +- Better pipelin ([03e8a90](https://github.com/risc0/risc0-ui/commit/03e8a90)) +- Bunx -> npx ([1cb00f2](https://github.com/risc0/risc0-ui/commit/1cb00f2)) +- Put changelog in there ([60adc7b](https://github.com/risc0/risc0-ui/commit/60adc7b)) + +### ❤️ Contributors + +- Cohan Carpentier + ## v0.0.13 diff --git a/alert.tsx b/alert.tsx index e4cc5ed..3b67f9e 100644 --- a/alert.tsx +++ b/alert.tsx @@ -1,7 +1,7 @@ import type { VariantProps } from "class-variance-authority"; import { type HTMLAttributes, forwardRef } from "react"; import { tv } from "tailwind-variants"; -import cn from "./shared/cn"; +import cn from "./cn"; const alertVariants = tv({ base: "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7", diff --git a/badge.tsx b/badge.tsx index 5857b89..126af99 100644 --- a/badge.tsx +++ b/badge.tsx @@ -1,6 +1,6 @@ import { type VariantProps, cva } from "class-variance-authority"; import type { HTMLAttributes } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const badgeVariants = cva( "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", diff --git a/button.tsx b/button.tsx index 31dbbdd..3dd5fb4 100644 --- a/button.tsx +++ b/button.tsx @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot"; import { type VariantProps, cva } from "class-variance-authority"; import { Loader2Icon } from "lucide-react"; import { type ButtonHTMLAttributes, type ReactElement, cloneElement, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const buttonVariants = cva( "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", diff --git a/card.tsx b/card.tsx index c45cc83..3340bb6 100644 --- a/card.tsx +++ b/card.tsx @@ -1,5 +1,5 @@ import { type HTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Card = forwardRef>(({ className, ...rest }, ref) => (
diff --git a/checkbox.tsx b/checkbox.tsx index 05398be..65e4cd4 100644 --- a/checkbox.tsx +++ b/checkbox.tsx @@ -3,7 +3,7 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; import { CheckIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Checkbox = forwardRef< ElementRef, diff --git a/shared/cn.ts b/cn.ts similarity index 100% rename from shared/cn.ts rename to cn.ts diff --git a/command.tsx b/command.tsx index e1dc6e7..96cbd5c 100644 --- a/command.tsx +++ b/command.tsx @@ -4,8 +4,8 @@ import type { DialogProps } from "@radix-ui/react-dialog"; import { Command as CommandPrimitive } from "cmdk"; import { SearchIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react"; +import cn from "./cn"; import { Dialog, DialogContent } from "./dialog"; -import cn from "./shared/cn"; const Command = forwardRef, ComponentPropsWithoutRef>( ({ className, ...props }, ref) => ( diff --git a/shared/config/postcss.config.cjs b/config/postcss.config.cjs similarity index 100% rename from shared/config/postcss.config.cjs rename to config/postcss.config.cjs diff --git a/shared/config/tailwind.config.ts b/config/tailwind.config.ts similarity index 100% rename from shared/config/tailwind.config.ts rename to config/tailwind.config.ts diff --git a/shared/constants.ts b/constants.ts similarity index 100% rename from shared/constants.ts rename to constants.ts diff --git a/dialog.tsx b/dialog.tsx index 44c1897..5b50d11 100644 --- a/dialog.tsx +++ b/dialog.tsx @@ -3,7 +3,7 @@ import * as DialogPrimitive from "@radix-ui/react-dialog"; import { XIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const DialogOverlay = forwardRef< ElementRef, diff --git a/dropdown-menu.tsx b/dropdown-menu.tsx index 2b809ba..8c25a28 100644 --- a/dropdown-menu.tsx +++ b/dropdown-menu.tsx @@ -3,7 +3,7 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const DropdownMenuSubTrigger = forwardRef< ElementRef, diff --git a/form.tsx b/form.tsx index ed249d4..04a9a44 100644 --- a/form.tsx +++ b/form.tsx @@ -17,8 +17,8 @@ import { FormProvider, useFormContext, } from "react-hook-form"; +import cn from "./cn"; import Label from "./label"; -import cn from "./shared/cn"; const Form = FormProvider; diff --git a/input.tsx b/input.tsx index 49f15ef..729b9d4 100644 --- a/input.tsx +++ b/input.tsx @@ -1,5 +1,5 @@ import { type InputHTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; export interface InputProps extends InputHTMLAttributes { // any other prop goes here diff --git a/label.tsx b/label.tsx index 116a248..31c1f1c 100644 --- a/label.tsx +++ b/label.tsx @@ -4,7 +4,7 @@ import * as LabelPrimitive from "@radix-ui/react-label"; import type { VariantProps } from "class-variance-authority"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; import { tv } from "tailwind-variants"; -import cn from "./shared/cn"; +import cn from "./cn"; const labelVariants = tv({ base: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", diff --git a/link.tsx b/link.tsx index 03b1f4b..b6b8b76 100644 --- a/link.tsx +++ b/link.tsx @@ -4,7 +4,7 @@ import { addBasePath } from "next/dist/client/add-base-path"; import NextLink from "next/link"; import NProgress from "nprogress"; import { type ComponentProps, type MouseEvent, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; function onStart() { NProgress.start(); diff --git a/package.json b/package.json index 2aa59e7..1e52f4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.13", + "version": "0.0.14", "type": "module", "scripts": { "bump:version": "bunx changelogen --bump", diff --git a/popover.tsx b/popover.tsx index 3109605..cab27cc 100644 --- a/popover.tsx +++ b/popover.tsx @@ -2,7 +2,7 @@ import * as PopoverPrimitive from "@radix-ui/react-popover"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Popover = PopoverPrimitive.Root; const PopoverTrigger = PopoverPrimitive.Trigger; diff --git a/progress.tsx b/progress.tsx index d583ca2..8a27269 100644 --- a/progress.tsx +++ b/progress.tsx @@ -2,7 +2,7 @@ import * as ProgressPrimitive from "@radix-ui/react-progress"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Progress = forwardRef< ElementRef, diff --git a/radio-group.tsx b/radio-group.tsx index fef979b..a0680cf 100644 --- a/radio-group.tsx +++ b/radio-group.tsx @@ -2,7 +2,7 @@ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const RadioGroup = forwardRef< ElementRef, diff --git a/select.tsx b/select.tsx index c43d522..0b989ad 100644 --- a/select.tsx +++ b/select.tsx @@ -3,7 +3,7 @@ import * as SelectPrimitive from "@radix-ui/react-select"; import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const SelectTrigger = forwardRef< ElementRef, diff --git a/separator.tsx b/separator.tsx index 16ea05a..19e3a5a 100644 --- a/separator.tsx +++ b/separator.tsx @@ -2,7 +2,7 @@ import * as SeparatorPrimitive from "@radix-ui/react-separator"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Separator = forwardRef< ElementRef, diff --git a/sheet.tsx b/sheet.tsx index f71e536..0f0909c 100644 --- a/sheet.tsx +++ b/sheet.tsx @@ -4,7 +4,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog"; import { type VariantProps, cva } from "class-variance-authority"; import { XIcon } from "lucide-react"; import { type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Sheet = SheetPrimitive.Root; const SheetTrigger = SheetPrimitive.Trigger; diff --git a/skeleton.tsx b/skeleton.tsx index 983fbcc..b648889 100644 --- a/skeleton.tsx +++ b/skeleton.tsx @@ -1,5 +1,5 @@ import type { HTMLAttributes } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; export default function Skeleton({ className, ...rest }: HTMLAttributes) { return
; diff --git a/slider.tsx b/slider.tsx index a4702bf..ae91504 100644 --- a/slider.tsx +++ b/slider.tsx @@ -2,7 +2,7 @@ import * as SliderPrimitive from "@radix-ui/react-slider"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Slider = forwardRef< ElementRef, diff --git a/shared/styles/globals.css b/styles/globals.css similarity index 100% rename from shared/styles/globals.css rename to styles/globals.css diff --git a/table.tsx b/table.tsx index 9d63b1e..839566a 100644 --- a/table.tsx +++ b/table.tsx @@ -1,5 +1,5 @@ import { type HTMLAttributes, type TdHTMLAttributes, type ThHTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Table = forwardRef>(({ className, ...rest }, ref) => (
diff --git a/tabs.tsx b/tabs.tsx index 18d9d77..5983a2d 100644 --- a/tabs.tsx +++ b/tabs.tsx @@ -2,7 +2,7 @@ import * as TabsPrimitive from "@radix-ui/react-tabs"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const Tabs = TabsPrimitive.Root; diff --git a/tailwind.config.ts b/tailwind.config.ts index a660c03..1e6b685 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1 +1 @@ -export * from "./shared/config/tailwind.config"; +export * from "./config/tailwind.config"; diff --git a/textarea.tsx b/textarea.tsx index 46c0bb1..c59625b 100644 --- a/textarea.tsx +++ b/textarea.tsx @@ -1,5 +1,5 @@ import { type TextareaHTMLAttributes, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; export interface TextareaProps extends TextareaHTMLAttributes { // any other prop goes here diff --git a/tooltip.tsx b/tooltip.tsx index e8b223f..ffde278 100644 --- a/tooltip.tsx +++ b/tooltip.tsx @@ -2,7 +2,7 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; -import cn from "./shared/cn"; +import cn from "./cn"; const TooltipContent = forwardRef< ElementRef,