@skybin-tech/nebula-ui 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +422 -356
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/cjs/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
- package/dist/cjs/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
- package/dist/cjs/components/Button/Button.cjs +1 -1
- package/dist/cjs/components/Button/Button.cjs.map +1 -1
- package/dist/cjs/components/Card/Card.cjs.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/cjs/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
- package/dist/cjs/components/Form/Checkbox.cjs.map +1 -1
- package/dist/cjs/components/Form/Combobox.cjs +124 -0
- package/dist/cjs/components/Form/Combobox.cjs.map +1 -0
- package/dist/cjs/components/Form/CountryPicker.cjs +101 -0
- package/dist/cjs/components/Form/CountryPicker.cjs.map +1 -0
- package/dist/cjs/components/Form/CountrySelect.cjs +111 -0
- package/dist/cjs/components/Form/CountrySelect.cjs.map +1 -0
- package/dist/cjs/components/Form/DatePicker.cjs +122 -0
- package/dist/cjs/components/Form/DatePicker.cjs.map +1 -0
- package/dist/cjs/components/Form/FieldLayout.cjs +65 -0
- package/dist/cjs/components/Form/FieldLayout.cjs.map +1 -0
- package/dist/cjs/components/Form/Form.cjs +12 -9
- package/dist/cjs/components/Form/Form.cjs.map +1 -1
- package/dist/cjs/components/Form/FormSwitch.cjs.map +1 -1
- package/dist/cjs/components/Form/PhoneInput.cjs +170 -0
- package/dist/cjs/components/Form/PhoneInput.cjs.map +1 -0
- package/dist/cjs/components/Form/Radio.cjs.map +1 -1
- package/dist/cjs/components/Form/Select.cjs +35 -47
- package/dist/cjs/components/Form/Select.cjs.map +1 -1
- package/dist/cjs/components/Form/TextArea.cjs +1 -1
- package/dist/cjs/components/Form/TextArea.cjs.map +1 -1
- package/dist/cjs/components/Form/TextBox.cjs +50 -61
- package/dist/cjs/components/Form/TextBox.cjs.map +1 -1
- package/dist/cjs/components/Form/context.cjs +25 -11
- package/dist/cjs/components/Form/context.cjs.map +1 -1
- package/dist/cjs/components/Form/hooks.cjs.map +1 -1
- package/dist/cjs/components/Form/index.cjs +16 -0
- package/dist/cjs/components/Form/variants.cjs.map +1 -1
- package/dist/cjs/components/Input/Input.cjs +2 -2
- package/dist/cjs/components/Input/Input.cjs.map +1 -1
- package/dist/cjs/components/Label/Label.cjs.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.cjs +4 -4
- package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/cjs/components/Separator/Separator.cjs.map +1 -1
- package/dist/cjs/components/Switch/Switch.cjs.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/cjs/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/cjs/data/countries.cjs +1062 -0
- package/dist/cjs/data/countries.cjs.map +1 -0
- package/dist/cjs/hooks/useDebounce.cjs.map +1 -1
- package/dist/cjs/hooks/useToast.cjs.map +1 -1
- package/dist/cjs/hooks/useToggle.cjs.map +1 -1
- package/dist/cjs/index.cjs +64 -4
- package/dist/cjs/primitives/accordion.cjs.map +1 -1
- package/dist/cjs/primitives/alert-dialog.cjs +73 -0
- package/dist/cjs/primitives/alert-dialog.cjs.map +1 -0
- package/dist/cjs/primitives/alert.cjs.map +1 -1
- package/dist/cjs/primitives/avatar.cjs.map +1 -1
- package/dist/cjs/primitives/badge.cjs.map +1 -1
- package/dist/cjs/primitives/breadcrumb.cjs +73 -0
- package/dist/cjs/primitives/breadcrumb.cjs.map +1 -0
- package/dist/cjs/primitives/button.cjs +8 -7
- package/dist/cjs/primitives/button.cjs.map +1 -1
- package/dist/cjs/primitives/calendar.cjs.map +1 -1
- package/dist/cjs/primitives/card.cjs.map +1 -1
- package/dist/cjs/primitives/checkbox.cjs.map +1 -1
- package/dist/cjs/primitives/command.cjs.map +1 -1
- package/dist/cjs/primitives/dialog.cjs.map +1 -1
- package/dist/cjs/primitives/dropdown-menu.cjs.map +1 -1
- package/dist/cjs/primitives/input-otp.cjs +49 -0
- package/dist/cjs/primitives/input-otp.cjs.map +1 -0
- package/dist/cjs/primitives/label.cjs.map +1 -1
- package/dist/cjs/primitives/popover.cjs.map +1 -1
- package/dist/cjs/primitives/progress.cjs +24 -0
- package/dist/cjs/primitives/progress.cjs.map +1 -0
- package/dist/cjs/primitives/radio-group.cjs.map +1 -1
- package/dist/cjs/primitives/scroll-area.cjs.map +1 -1
- package/dist/cjs/primitives/select.cjs.map +1 -1
- package/dist/cjs/primitives/separator.cjs.map +1 -1
- package/dist/cjs/primitives/sheet.cjs +78 -0
- package/dist/cjs/primitives/sheet.cjs.map +1 -0
- package/dist/cjs/primitives/slider.cjs +23 -0
- package/dist/cjs/primitives/slider.cjs.map +1 -0
- package/dist/cjs/primitives/sonner.cjs.map +1 -1
- package/dist/cjs/primitives/switch.cjs.map +1 -1
- package/dist/cjs/primitives/table.cjs.map +1 -1
- package/dist/cjs/primitives/tabs.cjs.map +1 -1
- package/dist/cjs/primitives/textarea.cjs +1 -1
- package/dist/cjs/primitives/textarea.cjs.map +1 -1
- package/dist/cjs/primitives/textbox.cjs +1 -1
- package/dist/cjs/primitives/textbox.cjs.map +1 -1
- package/dist/cjs/primitives/toast.cjs.map +1 -1
- package/dist/cjs/primitives/toggle.cjs.map +1 -1
- package/dist/cjs/utils/cn.cjs.map +1 -1
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +2 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/AlertDialog/index.d.ts +2 -0
- package/dist/components/AlertDialog/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/Form/Checkbox.js.map +1 -1
- package/dist/components/Form/Combobox.d.ts +31 -0
- package/dist/components/Form/Combobox.d.ts.map +1 -0
- package/dist/components/Form/Combobox.js +124 -0
- package/dist/components/Form/Combobox.js.map +1 -0
- package/dist/components/Form/CountryPicker.d.ts +17 -0
- package/dist/components/Form/CountryPicker.d.ts.map +1 -0
- package/dist/components/Form/CountryPicker.js +101 -0
- package/dist/components/Form/CountryPicker.js.map +1 -0
- package/dist/components/Form/CountrySelect.d.ts +32 -0
- package/dist/components/Form/CountrySelect.d.ts.map +1 -0
- package/dist/components/Form/CountrySelect.js +111 -0
- package/dist/components/Form/CountrySelect.js.map +1 -0
- package/dist/components/Form/DatePicker.d.ts +27 -0
- package/dist/components/Form/DatePicker.d.ts.map +1 -0
- package/dist/components/Form/DatePicker.js +122 -0
- package/dist/components/Form/DatePicker.js.map +1 -0
- package/dist/components/Form/FieldLayout.d.ts +15 -0
- package/dist/components/Form/FieldLayout.d.ts.map +1 -0
- package/dist/components/Form/FieldLayout.js +65 -0
- package/dist/components/Form/FieldLayout.js.map +1 -0
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/Form.js +12 -9
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/FormSwitch.js.map +1 -1
- package/dist/components/Form/PhoneInput.d.ts +38 -0
- package/dist/components/Form/PhoneInput.d.ts.map +1 -0
- package/dist/components/Form/PhoneInput.js +170 -0
- package/dist/components/Form/PhoneInput.js.map +1 -0
- package/dist/components/Form/Radio.js.map +1 -1
- package/dist/components/Form/Select.d.ts.map +1 -1
- package/dist/components/Form/Select.js +35 -47
- package/dist/components/Form/Select.js.map +1 -1
- package/dist/components/Form/TextArea.js +1 -1
- package/dist/components/Form/TextArea.js.map +1 -1
- package/dist/components/Form/TextBox.d.ts.map +1 -1
- package/dist/components/Form/TextBox.js +50 -61
- package/dist/components/Form/TextBox.js.map +1 -1
- package/dist/components/Form/context.d.ts.map +1 -1
- package/dist/components/Form/context.js +25 -11
- package/dist/components/Form/context.js.map +1 -1
- package/dist/components/Form/context.test.d.ts +2 -0
- package/dist/components/Form/context.test.d.ts.map +1 -0
- package/dist/components/Form/hooks.js.map +1 -1
- package/dist/components/Form/index.d.ts +12 -0
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Form/index.js +7 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/InputOTP/InputOTP.d.ts +2 -0
- package/dist/components/InputOTP/InputOTP.d.ts.map +1 -0
- package/dist/components/InputOTP/index.d.ts +2 -0
- package/dist/components/InputOTP/index.d.ts.map +1 -0
- package/dist/components/Label/Label.js.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +4 -4
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Progress/Progress.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.js.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts +2 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/data/countries.d.ts +18 -0
- package/dist/data/countries.d.ts.map +1 -0
- package/dist/data/countries.js +1054 -0
- package/dist/data/countries.js.map +1 -0
- package/dist/hooks/useDebounce.js.map +1 -1
- package/dist/hooks/useToast.js.map +1 -1
- package/dist/hooks/useToggle.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/dist/primitives/accordion.js.map +1 -1
- package/dist/primitives/alert-dialog.d.ts +21 -0
- package/dist/primitives/alert-dialog.d.ts.map +1 -0
- package/dist/primitives/alert-dialog.js +60 -0
- package/dist/primitives/alert-dialog.js.map +1 -0
- package/dist/primitives/alert.js.map +1 -1
- package/dist/primitives/avatar.js.map +1 -1
- package/dist/primitives/breadcrumb.d.ts +20 -0
- package/dist/primitives/breadcrumb.d.ts.map +1 -0
- package/dist/primitives/breadcrumb.js +65 -0
- package/dist/primitives/breadcrumb.js.map +1 -0
- package/dist/primitives/button.d.ts +4 -3
- package/dist/primitives/button.d.ts.map +1 -1
- package/dist/primitives/button.js +7 -7
- package/dist/primitives/button.js.map +1 -1
- package/dist/primitives/calendar.js.map +1 -1
- package/dist/primitives/card.js.map +1 -1
- package/dist/primitives/checkbox.js.map +1 -1
- package/dist/primitives/command.js.map +1 -1
- package/dist/primitives/dialog.js.map +1 -1
- package/dist/primitives/dropdown-menu.js.map +1 -1
- package/dist/primitives/index.d.ts +6 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/input-otp.d.ts +35 -0
- package/dist/primitives/input-otp.d.ts.map +1 -0
- package/dist/primitives/input-otp.js +44 -0
- package/dist/primitives/input-otp.js.map +1 -0
- package/dist/primitives/input.d.ts +1 -3
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/label.js.map +1 -1
- package/dist/primitives/popover.js.map +1 -1
- package/dist/primitives/progress.d.ts +5 -0
- package/dist/primitives/progress.d.ts.map +1 -0
- package/dist/primitives/progress.js +21 -0
- package/dist/primitives/progress.js.map +1 -0
- package/dist/primitives/radio-group.js.map +1 -1
- package/dist/primitives/scroll-area.js.map +1 -1
- package/dist/primitives/select.js.map +1 -1
- package/dist/primitives/separator.js.map +1 -1
- package/dist/primitives/sheet.d.ts +26 -0
- package/dist/primitives/sheet.d.ts.map +1 -0
- package/dist/primitives/sheet.js +66 -0
- package/dist/primitives/sheet.js.map +1 -0
- package/dist/primitives/slider.d.ts +5 -0
- package/dist/primitives/slider.d.ts.map +1 -0
- package/dist/primitives/slider.js +20 -0
- package/dist/primitives/slider.js.map +1 -0
- package/dist/primitives/sonner.js.map +1 -1
- package/dist/primitives/switch.js.map +1 -1
- package/dist/primitives/table.js.map +1 -1
- package/dist/primitives/tabs.js.map +1 -1
- package/dist/primitives/textarea.js +1 -1
- package/dist/primitives/textarea.js.map +1 -1
- package/dist/primitives/textbox.js +1 -1
- package/dist/primitives/textbox.js.map +1 -1
- package/dist/primitives/toast.js.map +1 -1
- package/dist/primitives/toggle.js.map +1 -1
- package/package.json +168 -60
- package/src/styles/index.css +107 -0
- package/dist/cjs/primitives/input.cjs +0 -20
- package/dist/cjs/primitives/input.cjs.map +0 -1
- package/dist/primitives/input.js +0 -18
- package/dist/primitives/input.js.map +0 -1
- package/dist/stories/Button.d.ts +0 -15
- package/dist/stories/Button.d.ts.map +0 -1
- package/dist/stories/Button.stories.d.ts +0 -24
- package/dist/stories/Button.stories.d.ts.map +0 -1
- package/dist/stories/Header.d.ts +0 -12
- package/dist/stories/Header.d.ts.map +0 -1
- package/dist/stories/Header.stories.d.ts +0 -19
- package/dist/stories/Header.stories.d.ts.map +0 -1
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.d.ts.map +0 -1
- package/dist/stories/Page.stories.d.ts +0 -13
- package/dist/stories/Page.stories.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../src/primitives/sheet.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"@/utils/index\"\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetTrigger = SheetPrimitive.Trigger\n\nconst SheetClose = SheetPrimitive.Close\n\nconst SheetPortal = SheetPrimitive.Portal\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className\n )}\n {...props}\n ref={ref}\n />\n))\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n }\n)\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n))\nSheetContent.displayName = SheetPrimitive.Content.displayName\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className\n )}\n {...props}\n />\n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className\n )}\n {...props}\n />\n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n))\nSheetTitle.displayName = SheetPrimitive.Title.displayName\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nSheetDescription.displayName = SheetPrimitive.Description.displayName\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n"],"mappings":";;;;;;;;AAOA,IAAM,QAAQ,eAAe;AAE7B,IAAM,eAAe,eAAe;AAEpC,IAAM,aAAa,eAAe;AAElC,IAAM,cAAc,eAAe;AAEnC,IAAM,eAAe,MAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,SAAhB;CACE,WAAW,GACT,2JACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,gBAAgB,IACpB,oMACA;CACE,UAAU,EACR,MAAM;EACJ,KAAK;EACL,QACE;EACF,MAAM;EACN,OACE;CACJ,EACF;CACA,iBAAiB,EACf,MAAM,QACR;AACF,CACF;AAMA,IAAM,eAAe,MAAM,YAGxB,EAAE,OAAO,SAAS,WAAW,UAAU,GAAG,SAAS,QACpD,qBAAC,aAAD,EAAA,UAAA,CACE,oBAAC,cAAD,CAAe,CAAA,GACf,qBAAC,eAAe,SAAhB;CACO;CACL,WAAW,GAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS;CAChD,GAAI;CAHN,UAAA,CAKG,UACD,qBAAC,eAAe,OAAhB;EAAsB,WAAU;EAAhC,UAAA,CACE,oBAAC,GAAD,EAAG,WAAU,UAAW,CAAA,GACxB,oBAAC,QAAD;GAAM,WAAU;GAAU,UAAA;EAAW,CAAA,CACjB;CACA,CAAA,CAAA;AACb,CAAA,CAAA,EAAA,CAAA,CACd;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,eAAe,EACnB,WACA,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GACT,oDACA,SACF;CACA,GAAI;AACL,CAAA;AAEH,YAAY,cAAc;AAE1B,IAAM,eAAe,EACnB,WACA,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GACT,iEACA,SACF;CACA,GAAI;AACL,CAAA;AAEH,YAAY,cAAc;AAE1B,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,OAAhB;CACO;CACL,WAAW,GAAG,yCAAyC,SAAS;CAChE,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc,eAAe,MAAM;AAE9C,IAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,aAAhB;CACO;CACL,WAAW,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,eAAe,YAAY"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export { Slider };
|
|
5
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/primitives/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,QAAA,MAAM,MAAM,yJAiBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../utils/cn.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
6
|
+
//#region src/primitives/slider.tsx
|
|
7
|
+
var Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(SliderPrimitive.Root, {
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
10
|
+
...props,
|
|
11
|
+
children: [/* @__PURE__ */ jsx(SliderPrimitive.Track, {
|
|
12
|
+
className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",
|
|
13
|
+
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" })
|
|
14
|
+
}), /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })]
|
|
15
|
+
}));
|
|
16
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Slider };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.js","names":[],"sources":["../../src/primitives/slider.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/utils/index\"\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <SliderPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex w-full touch-none select-none items-center\",\n className\n )}\n {...props}\n >\n <SliderPrimitive.Track className=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n </SliderPrimitive.Track>\n <SliderPrimitive.Thumb className=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\" />\n </SliderPrimitive.Root>\n))\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"],"mappings":";;;;;;AAKA,IAAM,SAAS,MAAM,YAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,qBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GACT,4DACA,SACF;CACA,GAAI;CANN,UAAA,CAQE,oBAAC,gBAAgB,OAAjB;EAAuB,WAAU;EAC/B,UAAA,oBAAC,gBAAgB,OAAjB,EAAuB,WAAU,6BAA8B,CAAA;CAC1C,CAAA,GACvB,oBAAC,gBAAgB,OAAjB,EAAuB,WAAU,iQAAkQ,CAAA,CAC/Q;AACvB,CAAA,CAAA;AACD,OAAO,cAAc,gBAAgB,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.js","names":[],"sources":["../../src/primitives/sonner.tsx"],"sourcesContent":["import { Toaster as Sonner, type ToasterProps } from \"sonner\"\n\nfunction Toaster({ ...props }: ToasterProps) {\n return (\n <Sonner\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast: \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton: \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n cancelButton: \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"mappings":";;;;AAEA,SAAS,UAAQ,EAAE,GAAG,SAAuB;CAC3C,OACE,oBAAC,SAAD;EACE,WAAU;EACV,cAAc,EACZ,YAAY;GACV,OAAO;GACP,aAAa;GACb,cAAc;GACd,cAAc;EAChB,EACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
1
|
+
{"version":3,"file":"sonner.js","names":[],"sources":["../../src/primitives/sonner.tsx"],"sourcesContent":["import { Toaster as Sonner, type ToasterProps } from \"sonner\"\r\n\r\nfunction Toaster({ ...props }: ToasterProps) {\r\n return (\r\n <Sonner\r\n className=\"toaster group\"\r\n toastOptions={{\r\n classNames: {\r\n toast: \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\r\n description: \"group-[.toast]:text-muted-foreground\",\r\n actionButton: \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\r\n cancelButton: \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\r\n },\r\n }}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport { Toaster }\r\n"],"mappings":";;;;AAEA,SAAS,UAAQ,EAAE,GAAG,SAAuB;CAC3C,OACE,oBAAC,SAAD;EACE,WAAU;EACV,cAAc,EACZ,YAAY;GACV,OAAO;GACP,aAAa;GACb,cAAc;GACd,cAAc;EAChB,EACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","names":[],"sources":["../../src/primitives/switch.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/utils\"\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n className\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n )}\n />\n </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n"],"mappings":";;;;;;;AAOA,IAAM,SAAS,MAAM,YAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,MAAlB;CACE,WAAW,GACT,sXACA,SACF;CACA,GAAI;CACC;
|
|
1
|
+
{"version":3,"file":"switch.js","names":[],"sources":["../../src/primitives/switch.tsx"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\r\n\r\nimport { cn } from \"@/utils\"\r\n\r\nconst Switch = React.forwardRef<\r\n React.ElementRef<typeof SwitchPrimitives.Root>,\r\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\r\n>(({ className, ...props }, ref) => (\r\n <SwitchPrimitives.Root\r\n className={cn(\r\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\r\n className\r\n )}\r\n {...props}\r\n ref={ref}\r\n >\r\n <SwitchPrimitives.Thumb\r\n className={cn(\r\n \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\r\n )}\r\n />\r\n </SwitchPrimitives.Root>\r\n))\r\nSwitch.displayName = SwitchPrimitives.Root.displayName\r\n\r\nexport { Switch }\r\n"],"mappings":";;;;;;;AAOA,IAAM,SAAS,MAAM,YAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,MAAlB;CACE,WAAW,GACT,sXACA,SACF;CACA,GAAI;CACC;CAEL,UAAA,oBAAC,iBAAiB,OAAlB,EACE,WAAW,GACT,4KACF,EACD,CAAA;AACoB,CAAA,CACxB;AACD,OAAO,cAAc,iBAAiB,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../src/primitives/table.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"@/utils/cn\"\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={ref} className={cn(\"w-full caption-bottom text-sm\", className)} {...props} />\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\n ({ className, ...props }, ref) => (\n <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n )\n)\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\n ({ className, ...props }, ref) => (\n <tbody ref={ref} className={cn(\"[&_tr:last-child]:border-0\", className)} {...props} />\n )\n)\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\n ({ className, ...props }, ref) => (\n <tfoot ref={ref} className={cn(\"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\", className)} {...props} />\n )\n)\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\", className)}\n {...props}\n />\n )\n)\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, React.ThHTMLAttributes<HTMLTableCellElement>>(\n ({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\", className)}\n {...props}\n />\n )\n)\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, React.TdHTMLAttributes<HTMLTableCellElement>>(\n ({ className, ...props }, ref) => (\n <td ref={ref} className={cn(\"p-4 align-middle [&:has([role=checkbox])]:pr-0\", className)} {...props} />\n )\n)\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, React.HTMLAttributes<HTMLTableCaptionElement>>(\n ({ className, ...props }, ref) => (\n <caption ref={ref} className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />\n )\n)\nTableCaption.displayName = \"TableCaption\"\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }\n"],"mappings":";;;;;AAGA,IAAM,QAAQ,MAAM,YACjB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAK,WAAU;
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../src/primitives/table.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport { cn } from \"@/utils/cn\"\r\n\r\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\r\n ({ className, ...props }, ref) => (\r\n <div className=\"relative w-full overflow-auto\">\r\n <table ref={ref} className={cn(\"w-full caption-bottom text-sm\", className)} {...props} />\r\n </div>\r\n )\r\n)\r\nTable.displayName = \"Table\"\r\n\r\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\r\n ({ className, ...props }, ref) => (\r\n <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\r\n )\r\n)\r\nTableHeader.displayName = \"TableHeader\"\r\n\r\nconst TableBody = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\r\n ({ className, ...props }, ref) => (\r\n <tbody ref={ref} className={cn(\"[&_tr:last-child]:border-0\", className)} {...props} />\r\n )\r\n)\r\nTableBody.displayName = \"TableBody\"\r\n\r\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(\r\n ({ className, ...props }, ref) => (\r\n <tfoot ref={ref} className={cn(\"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\", className)} {...props} />\r\n )\r\n)\r\nTableFooter.displayName = \"TableFooter\"\r\n\r\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\r\n ({ className, ...props }, ref) => (\r\n <tr\r\n ref={ref}\r\n className={cn(\"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\", className)}\r\n {...props}\r\n />\r\n )\r\n)\r\nTableRow.displayName = \"TableRow\"\r\n\r\nconst TableHead = React.forwardRef<HTMLTableCellElement, React.ThHTMLAttributes<HTMLTableCellElement>>(\r\n ({ className, ...props }, ref) => (\r\n <th\r\n ref={ref}\r\n className={cn(\"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\", className)}\r\n {...props}\r\n />\r\n )\r\n)\r\nTableHead.displayName = \"TableHead\"\r\n\r\nconst TableCell = React.forwardRef<HTMLTableCellElement, React.TdHTMLAttributes<HTMLTableCellElement>>(\r\n ({ className, ...props }, ref) => (\r\n <td ref={ref} className={cn(\"p-4 align-middle [&:has([role=checkbox])]:pr-0\", className)} {...props} />\r\n )\r\n)\r\nTableCell.displayName = \"TableCell\"\r\n\r\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, React.HTMLAttributes<HTMLTableCaptionElement>>(\r\n ({ className, ...props }, ref) => (\r\n <caption ref={ref} className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />\r\n )\r\n)\r\nTableCaption.displayName = \"TableCaption\"\r\n\r\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }\r\n"],"mappings":";;;;;AAGA,IAAM,QAAQ,MAAM,YACjB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAK,WAAU;CACb,UAAA,oBAAC,SAAD;EAAY;EAAK,WAAW,GAAG,iCAAiC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrF,CAAA,CAET;AACA,MAAM,cAAc;AAEpB,IAAM,cAAc,MAAM,YACvB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,mBAAmB,SAAS;CAAG,GAAI;AAAQ,CAAA,CAE9E;AACA,YAAY,cAAc;AAE1B,IAAM,YAAY,MAAM,YACrB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,8BAA8B,SAAS;CAAG,GAAI;AAAQ,CAAA,CAEzF;AACA,UAAU,cAAc;AAExB,IAAM,cAAc,MAAM,YACvB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,2DAA2D,SAAS;CAAG,GAAI;AAAQ,CAAA,CAEtH;AACA,YAAY,cAAc;AAE1B,IAAM,WAAW,MAAM,YACpB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,MAAD;CACO;CACL,WAAW,GAAG,+EAA+E,SAAS;CACtG,GAAI;AACL,CAAA,CAEL;AACA,SAAS,cAAc;AAEvB,IAAM,YAAY,MAAM,YACrB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,MAAD;CACO;CACL,WAAW,GAAG,oGAAoG,SAAS;CAC3H,GAAI;AACL,CAAA,CAEL;AACA,UAAU,cAAc;AAExB,IAAM,YAAY,MAAM,YACrB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,MAAD;CAAS;CAAK,WAAW,GAAG,kDAAkD,SAAS;CAAG,GAAI;AAAQ,CAAA,CAE1G;AACA,UAAU,cAAc;AAExB,IAAM,eAAe,MAAM,YACxB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,WAAD;CAAc;CAAK,WAAW,GAAG,sCAAsC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAEnG;AACA,aAAa,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","names":[],"sources":["../../src/primitives/tabs.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"@/utils/index\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground\",\n className\n )}\n {...props}\n />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n className\n )}\n {...props}\n />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n className\n )}\n {...props}\n />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"],"mappings":";;;;;;AAKA,IAAM,OAAO,cAAc;AAE3B,IAAM,WAAW,MAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,MAAf;CACO;CACL,WAAW,GACT,8FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,SAAS,cAAc,cAAc,KAAK;AAE1C,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,uYACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ;AAEhD,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,mIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ"}
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../src/primitives/tabs.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\r\n\r\nimport { cn } from \"@/utils/index\"\r\n\r\nconst Tabs = TabsPrimitive.Root\r\n\r\nconst TabsList = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.List>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.List\r\n ref={ref}\r\n className={cn(\r\n \"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsList.displayName = TabsPrimitive.List.displayName\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n \"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = TabsPrimitive.Content.displayName\r\n\r\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\r\n"],"mappings":";;;;;;AAKA,IAAM,OAAO,cAAc;AAE3B,IAAM,WAAW,MAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,MAAf;CACO;CACL,WAAW,GACT,8FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,SAAS,cAAc,cAAc,KAAK;AAE1C,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,uYACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ;AAEhD,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,mIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ"}
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/primitives/textarea.tsx
|
|
6
6
|
var Textarea = React.forwardRef(({ className, ...props }, ref) => {
|
|
7
7
|
return /* @__PURE__ */ jsx("textarea", {
|
|
8
|
-
className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
8
|
+
className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus:placeholder:opacity-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
9
9
|
ref,
|
|
10
10
|
...props
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":[],"sources":["../../src/primitives/textarea.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"],"mappings":";;;;;AAIA,IAAM,WAAW,MAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,OACE,oBAAC,YAAD;EACE,WAAW,GACT,
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../src/primitives/textarea.tsx"],"sourcesContent":["import * as React from \"react\"\r\n\r\nimport { cn } from \"@/utils\"\r\n\r\nconst Textarea = React.forwardRef<\r\n HTMLTextAreaElement,\r\n React.ComponentProps<\"textarea\">\r\n>(({ className, ...props }, ref) => {\r\n return (\r\n <textarea\r\n className={cn(\r\n \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus:placeholder:opacity-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n})\r\nTextarea.displayName = \"Textarea\"\r\n\r\nexport { Textarea }\r\n"],"mappings":";;;;;AAIA,IAAM,WAAW,MAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,OACE,oBAAC,YAAD;EACE,WAAW,GACT,iVACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL,CAAC;AACD,SAAS,cAAc"}
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
var TextBoxPrimitive = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
7
7
|
return /* @__PURE__ */ jsx("input", {
|
|
8
8
|
type,
|
|
9
|
-
className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
9
|
+
className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:placeholder:opacity-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
10
10
|
ref,
|
|
11
11
|
...props
|
|
12
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textbox.js","names":[],"sources":["../../src/primitives/textbox.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nconst TextBoxPrimitive = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n }\n)\nTextBoxPrimitive.displayName = \"TextBoxPrimitive\"\n\nexport { TextBoxPrimitive }\n"],"mappings":";;;;;AAIA,IAAM,mBAAmB,MAAM,YAC5B,EAAE,WAAW,MAAM,GAAG,SAAS,QAAQ;CACtC,OACE,oBAAC,SAAD;EACQ;EACN,WAAW,GACT,
|
|
1
|
+
{"version":3,"file":"textbox.js","names":[],"sources":["../../src/primitives/textbox.tsx"],"sourcesContent":["import * as React from \"react\"\r\n\r\nimport { cn } from \"@/utils\"\r\n\r\nconst TextBoxPrimitive = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\r\n ({ className, type, ...props }, ref) => {\r\n return (\r\n <input\r\n type={type}\r\n className={cn(\r\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:placeholder:opacity-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nTextBoxPrimitive.displayName = \"TextBoxPrimitive\"\r\n\r\nexport { TextBoxPrimitive }\r\n"],"mappings":";;;;;AAIA,IAAM,mBAAmB,MAAM,YAC5B,EAAE,WAAW,MAAM,GAAG,SAAS,QAAQ;CACtC,OACE,oBAAC,SAAD;EACQ;EACN,WAAW,GACT,8ZACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL,CACF;AACA,iBAAiB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","names":[],"sources":["../../src/primitives/toast.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as ToastPrimitives from \"@radix-ui/react-toast\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\nimport { cn } from \"@/utils/cn\"\n\nconst ToastProvider = ToastPrimitives.Provider\n\nconst ToastViewport = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className\n )}\n {...props}\n />\n))\nToastViewport.displayName = ToastPrimitives.Viewport.displayName\n\nconst toastVariants = cva(\n \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n {\n variants: {\n variant: {\n default: \"border bg-background text-foreground\",\n destructive: \"destructive group border-destructive bg-destructive text-destructive-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n))\nToast.displayName = ToastPrimitives.Root.displayName\n\nconst ToastAction = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\n className\n )}\n {...props}\n />\n))\nToastAction.displayName = ToastPrimitives.Action.displayName\n\nconst ToastClose = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n \"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600\",\n className\n )}\n toast-close=\"\"\n {...props}\n >\n <X className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n))\nToastClose.displayName = ToastPrimitives.Close.displayName\n\nconst ToastTitle = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold\", className)}\n {...props}\n />\n))\nToastTitle.displayName = ToastPrimitives.Title.displayName\n\nconst ToastDescription = React.forwardRef<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm opacity-90\", className)}\n {...props}\n />\n))\nToastDescription.displayName = ToastPrimitives.Description.displayName\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>\ntype ToastActionElement = React.ReactElement<typeof ToastAction>\n\nexport {\n type ToastProps,\n type ToastActionElement,\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n}\n"],"mappings":";;;;;;;;AAMA,IAAM,gBAAgB,gBAAgB;AAEtC,IAAM,gBAAgB,MAAM,YAGzB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GACT,qIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,cAAc,cAAc,gBAAgB,SAAS;AAErD,IAAM,gBAAgB,IACpB,6lBACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aAAa;CACf,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,IAAM,QAAQ,MAAM,YAIjB,EAAE,WAAW,SAAS,GAAG,SAAS,QACnC,oBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc,gBAAgB,KAAK;AAEzC,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,QAAjB;CACO;CACL,WAAW,GACT,sgBACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,gBAAgB,OAAO;AAEjD,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GACT,yVACA,SACF;CACA,eAAY;CACZ,GAAI;
|
|
1
|
+
{"version":3,"file":"toast.js","names":[],"sources":["../../src/primitives/toast.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport * as ToastPrimitives from \"@radix-ui/react-toast\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\nimport { X } from \"lucide-react\"\r\nimport { cn } from \"@/utils/cn\"\r\n\r\nconst ToastProvider = ToastPrimitives.Provider\r\n\r\nconst ToastViewport = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Viewport>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\r\n>(({ className, ...props }, ref) => (\r\n <ToastPrimitives.Viewport\r\n ref={ref}\r\n className={cn(\r\n \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nToastViewport.displayName = ToastPrimitives.Viewport.displayName\r\n\r\nconst toastVariants = cva(\r\n \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"border bg-background text-foreground\",\r\n destructive: \"destructive group border-destructive bg-destructive text-destructive-foreground\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n }\r\n)\r\n\r\nconst Toast = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Root>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\r\n VariantProps<typeof toastVariants>\r\n>(({ className, variant, ...props }, ref) => (\r\n <ToastPrimitives.Root\r\n ref={ref}\r\n className={cn(toastVariants({ variant }), className)}\r\n {...props}\r\n />\r\n))\r\nToast.displayName = ToastPrimitives.Root.displayName\r\n\r\nconst ToastAction = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Action>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\r\n>(({ className, ...props }, ref) => (\r\n <ToastPrimitives.Action\r\n ref={ref}\r\n className={cn(\r\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nToastAction.displayName = ToastPrimitives.Action.displayName\r\n\r\nconst ToastClose = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Close>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\r\n>(({ className, ...props }, ref) => (\r\n <ToastPrimitives.Close\r\n ref={ref}\r\n className={cn(\r\n \"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600\",\r\n className\r\n )}\r\n toast-close=\"\"\r\n {...props}\r\n >\r\n <X className=\"h-4 w-4\" />\r\n </ToastPrimitives.Close>\r\n))\r\nToastClose.displayName = ToastPrimitives.Close.displayName\r\n\r\nconst ToastTitle = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Title>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\r\n>(({ className, ...props }, ref) => (\r\n <ToastPrimitives.Title\r\n ref={ref}\r\n className={cn(\"text-sm font-semibold\", className)}\r\n {...props}\r\n />\r\n))\r\nToastTitle.displayName = ToastPrimitives.Title.displayName\r\n\r\nconst ToastDescription = React.forwardRef<\r\n React.ElementRef<typeof ToastPrimitives.Description>,\r\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\r\n>(({ className, ...props }, ref) => (\r\n <ToastPrimitives.Description\r\n ref={ref}\r\n className={cn(\"text-sm opacity-90\", className)}\r\n {...props}\r\n />\r\n))\r\nToastDescription.displayName = ToastPrimitives.Description.displayName\r\n\r\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>\r\ntype ToastActionElement = React.ReactElement<typeof ToastAction>\r\n\r\nexport {\r\n type ToastProps,\r\n type ToastActionElement,\r\n ToastProvider,\r\n ToastViewport,\r\n Toast,\r\n ToastTitle,\r\n ToastDescription,\r\n ToastClose,\r\n ToastAction,\r\n}\r\n"],"mappings":";;;;;;;;AAMA,IAAM,gBAAgB,gBAAgB;AAEtC,IAAM,gBAAgB,MAAM,YAGzB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GACT,qIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,cAAc,cAAc,gBAAgB,SAAS;AAErD,IAAM,gBAAgB,IACpB,6lBACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,aAAa;CACf,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,IAAM,QAAQ,MAAM,YAIjB,EAAE,WAAW,SAAS,GAAG,SAAS,QACnC,oBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc,gBAAgB,KAAK;AAEzC,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,QAAjB;CACO;CACL,WAAW,GACT,sgBACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,gBAAgB,OAAO;AAEjD,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GACT,yVACA,SACF;CACA,eAAY;CACZ,GAAI;CAEJ,UAAA,oBAAC,GAAD,EAAG,WAAU,UAAW,CAAA;AACH,CAAA,CACxB;AACD,WAAW,cAAc,gBAAgB,MAAM;AAE/C,IAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,yBAAyB,SAAS;CAChD,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc,gBAAgB,MAAM;AAE/C,IAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,aAAjB;CACO;CACL,WAAW,GAAG,sBAAsB,SAAS;CAC7C,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,gBAAgB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":[],"sources":["../../src/primitives/toggle.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"@/utils/cn\"\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline: \"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-10 px-3 min-w-10\",\n sm: \"h-9 px-2.5 min-w-9\",\n lg: \"h-11 px-5 min-w-11\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n))\nToggle.displayName = TogglePrimitive.Root.displayName\n\nexport { Toggle, toggleVariants }\n"],"mappings":";;;;;;;AAKA,IAAM,iBAAiB,IACrB,sbACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;EACX;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAEA,IAAM,SAAS,MAAM,YAIlB,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACzC,oBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GAAG,eAAe;EAAE;EAAS;EAAM;CAAU,CAAC,CAAC;CAC1D,GAAI;AACL,CAAA,CACF;AACD,OAAO,cAAc,gBAAgB,KAAK"}
|
|
1
|
+
{"version":3,"file":"toggle.js","names":[],"sources":["../../src/primitives/toggle.tsx"],"sourcesContent":["import * as React from \"react\"\r\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\nimport { cn } from \"@/utils/cn\"\r\n\r\nconst toggleVariants = cva(\r\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-transparent\",\r\n outline: \"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground\",\r\n },\r\n size: {\r\n default: \"h-10 px-3 min-w-10\",\r\n sm: \"h-9 px-2.5 min-w-9\",\r\n lg: \"h-11 px-5 min-w-11\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n size: \"default\",\r\n },\r\n }\r\n)\r\n\r\nconst Toggle = React.forwardRef<\r\n React.ElementRef<typeof TogglePrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\r\n VariantProps<typeof toggleVariants>\r\n>(({ className, variant, size, ...props }, ref) => (\r\n <TogglePrimitive.Root\r\n ref={ref}\r\n className={cn(toggleVariants({ variant, size, className }))}\r\n {...props}\r\n />\r\n))\r\nToggle.displayName = TogglePrimitive.Root.displayName\r\n\r\nexport { Toggle, toggleVariants }\r\n"],"mappings":";;;;;;;AAKA,IAAM,iBAAiB,IACrB,sbACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;EACX;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAEA,IAAM,SAAS,MAAM,YAIlB,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACzC,oBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GAAG,eAAe;EAAE;EAAS;EAAM;CAAU,CAAC,CAAC;CAC1D,GAAI;AACL,CAAA,CACF;AACD,OAAO,cAAc,gBAAgB,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skybin-tech/nebula-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Anwar <anwar@skybin.io>",
|
|
6
6
|
"description": "Reusable React component library with form validation using shadcn/ui patterns, react-hook-form, and Zod",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"src/styles"
|
|
9
10
|
],
|
|
10
11
|
"main": "./dist/cjs/index.cjs",
|
|
11
12
|
"module": "./dist/index.js",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
75
|
"./package.json": "./package.json",
|
|
76
|
+
"./styles.css": "./src/styles/index.css",
|
|
75
77
|
"./components/Card": {
|
|
76
78
|
"import": {
|
|
77
79
|
"types": "./dist/components/Card/index.d.ts",
|
|
@@ -281,6 +283,96 @@
|
|
|
281
283
|
"types": "./dist/components/Switch/index.d.ts",
|
|
282
284
|
"default": "./dist/cjs/components/Switch/index.cjs"
|
|
283
285
|
}
|
|
286
|
+
},
|
|
287
|
+
"./components/Alert": {
|
|
288
|
+
"import": {
|
|
289
|
+
"types": "./dist/components/Alert/index.d.ts",
|
|
290
|
+
"default": "./dist/components/Alert/index.js"
|
|
291
|
+
},
|
|
292
|
+
"require": {
|
|
293
|
+
"types": "./dist/components/Alert/index.d.ts",
|
|
294
|
+
"default": "./dist/cjs/components/Alert/index.cjs"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"./components/Tabs": {
|
|
298
|
+
"import": {
|
|
299
|
+
"types": "./dist/components/Tabs/index.d.ts",
|
|
300
|
+
"default": "./dist/components/Tabs/index.js"
|
|
301
|
+
},
|
|
302
|
+
"require": {
|
|
303
|
+
"types": "./dist/components/Tabs/index.d.ts",
|
|
304
|
+
"default": "./dist/cjs/components/Tabs/index.cjs"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"./components/Input": {
|
|
308
|
+
"import": {
|
|
309
|
+
"types": "./dist/components/Input/index.d.ts",
|
|
310
|
+
"default": "./dist/components/Input/index.js"
|
|
311
|
+
},
|
|
312
|
+
"require": {
|
|
313
|
+
"types": "./dist/components/Input/index.d.ts",
|
|
314
|
+
"default": "./dist/cjs/components/Input/index.cjs"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"./components/Sheet": {
|
|
318
|
+
"import": {
|
|
319
|
+
"types": "./dist/components/Sheet/index.d.ts",
|
|
320
|
+
"default": "./dist/components/Sheet/index.js"
|
|
321
|
+
},
|
|
322
|
+
"require": {
|
|
323
|
+
"types": "./dist/components/Sheet/index.d.ts",
|
|
324
|
+
"default": "./dist/cjs/components/Sheet/index.cjs"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"./components/AlertDialog": {
|
|
328
|
+
"import": {
|
|
329
|
+
"types": "./dist/components/AlertDialog/index.d.ts",
|
|
330
|
+
"default": "./dist/components/AlertDialog/index.js"
|
|
331
|
+
},
|
|
332
|
+
"require": {
|
|
333
|
+
"types": "./dist/components/AlertDialog/index.d.ts",
|
|
334
|
+
"default": "./dist/cjs/components/AlertDialog/index.cjs"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"./components/Progress": {
|
|
338
|
+
"import": {
|
|
339
|
+
"types": "./dist/components/Progress/index.d.ts",
|
|
340
|
+
"default": "./dist/components/Progress/index.js"
|
|
341
|
+
},
|
|
342
|
+
"require": {
|
|
343
|
+
"types": "./dist/components/Progress/index.d.ts",
|
|
344
|
+
"default": "./dist/cjs/components/Progress/index.cjs"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"./components/InputOTP": {
|
|
348
|
+
"import": {
|
|
349
|
+
"types": "./dist/components/InputOTP/index.d.ts",
|
|
350
|
+
"default": "./dist/components/InputOTP/index.js"
|
|
351
|
+
},
|
|
352
|
+
"require": {
|
|
353
|
+
"types": "./dist/components/InputOTP/index.d.ts",
|
|
354
|
+
"default": "./dist/cjs/components/InputOTP/index.cjs"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"./components/Slider": {
|
|
358
|
+
"import": {
|
|
359
|
+
"types": "./dist/components/Slider/index.d.ts",
|
|
360
|
+
"default": "./dist/components/Slider/index.js"
|
|
361
|
+
},
|
|
362
|
+
"require": {
|
|
363
|
+
"types": "./dist/components/Slider/index.d.ts",
|
|
364
|
+
"default": "./dist/cjs/components/Slider/index.cjs"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"./components/Breadcrumb": {
|
|
368
|
+
"import": {
|
|
369
|
+
"types": "./dist/components/Breadcrumb/index.d.ts",
|
|
370
|
+
"default": "./dist/components/Breadcrumb/index.js"
|
|
371
|
+
},
|
|
372
|
+
"require": {
|
|
373
|
+
"types": "./dist/components/Breadcrumb/index.d.ts",
|
|
374
|
+
"default": "./dist/cjs/components/Breadcrumb/index.cjs"
|
|
375
|
+
}
|
|
284
376
|
}
|
|
285
377
|
},
|
|
286
378
|
"typesVersions": {
|
|
@@ -362,34 +454,58 @@
|
|
|
362
454
|
],
|
|
363
455
|
"components/Switch": [
|
|
364
456
|
"./dist/components/Switch/index.d.ts"
|
|
457
|
+
],
|
|
458
|
+
"components/Slider": [
|
|
459
|
+
"./dist/components/Slider/index.d.ts"
|
|
460
|
+
],
|
|
461
|
+
"components/Breadcrumb": [
|
|
462
|
+
"./dist/components/Breadcrumb/index.d.ts"
|
|
365
463
|
]
|
|
366
464
|
}
|
|
367
465
|
},
|
|
368
466
|
"sideEffects": [
|
|
369
467
|
"**/*.css"
|
|
370
468
|
],
|
|
469
|
+
"scripts": {
|
|
470
|
+
"dev": "vite",
|
|
471
|
+
"build": "tsc -b && vite build",
|
|
472
|
+
"build:lib": "vite build",
|
|
473
|
+
"lint": "eslint .",
|
|
474
|
+
"test": "vitest run --project unit",
|
|
475
|
+
"test:coverage": "vitest run --project unit --coverage",
|
|
476
|
+
"preview": "vite preview",
|
|
477
|
+
"prepublishOnly": "npm run build:lib",
|
|
478
|
+
"storybook": "storybook dev -p 6006",
|
|
479
|
+
"build-storybook": "storybook build",
|
|
480
|
+
"deploy": "npm publish --access public"
|
|
481
|
+
},
|
|
371
482
|
"peerDependencies": {
|
|
372
483
|
"@hookform/resolvers": "^5.0.0",
|
|
484
|
+
"@radix-ui/react-accordion": ">=1.0.0",
|
|
485
|
+
"@radix-ui/react-alert-dialog": ">=1.0.0",
|
|
373
486
|
"@radix-ui/react-avatar": ">=1.0.0",
|
|
374
487
|
"@radix-ui/react-checkbox": ">=1.0.0",
|
|
375
488
|
"@radix-ui/react-dialog": ">=1.0.0",
|
|
376
489
|
"@radix-ui/react-dropdown-menu": ">=2.1.16",
|
|
377
490
|
"@radix-ui/react-label": ">=2.0.0",
|
|
378
491
|
"@radix-ui/react-popover": ">=1.0.0",
|
|
492
|
+
"@radix-ui/react-progress": ">=1.0.0",
|
|
379
493
|
"@radix-ui/react-radio-group": ">=1.0.0",
|
|
380
494
|
"@radix-ui/react-scroll-area": ">=1.0.0",
|
|
381
495
|
"@radix-ui/react-select": ">=2.0.0",
|
|
382
496
|
"@radix-ui/react-separator": ">=1.0.0",
|
|
497
|
+
"@radix-ui/react-slider": ">=1.0.0",
|
|
383
498
|
"@radix-ui/react-slot": ">=1.0.0",
|
|
384
499
|
"@radix-ui/react-switch": ">=1.0.0",
|
|
500
|
+
"@radix-ui/react-tabs": ">=1.0.0",
|
|
385
501
|
"@radix-ui/react-toast": ">=1.0.0",
|
|
386
502
|
"@radix-ui/react-toggle": ">=1.0.0",
|
|
387
503
|
"@radix-ui/react-tooltip": ">=1.0.0",
|
|
388
|
-
"@radix-ui/react-accordion": ">=1.0.0",
|
|
389
504
|
"class-variance-authority": ">=0.7.0",
|
|
390
505
|
"clsx": ">=2.0.0",
|
|
391
506
|
"cmdk": ">=1.0.0",
|
|
392
507
|
"date-fns": ">=3.0.0",
|
|
508
|
+
"input-otp": ">=1.0.0",
|
|
393
509
|
"lucide-react": ">=0.400.0",
|
|
394
510
|
"react": "^18.0.0 || ^19.0.0",
|
|
395
511
|
"react-day-picker": ">=8.0.0",
|
|
@@ -412,58 +528,63 @@
|
|
|
412
528
|
}
|
|
413
529
|
},
|
|
414
530
|
"devDependencies": {
|
|
415
|
-
"@eslint/js": "^
|
|
416
|
-
"@hookform/resolvers": "^5.
|
|
417
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
418
|
-
"@radix-ui/react-
|
|
419
|
-
"@radix-ui/react-
|
|
420
|
-
"@radix-ui/react-
|
|
421
|
-
"@radix-ui/react-
|
|
422
|
-
"@radix-ui/react-
|
|
423
|
-
"@radix-ui/react-
|
|
424
|
-
"@radix-ui/react-
|
|
425
|
-
"@radix-ui/react-
|
|
426
|
-
"@radix-ui/react-
|
|
427
|
-
"@radix-ui/react-
|
|
428
|
-
"@radix-ui/react-
|
|
429
|
-
"@radix-ui/react-
|
|
430
|
-
"@radix-ui/react-
|
|
431
|
-
"@radix-ui/react-
|
|
432
|
-
"@radix-ui/react-
|
|
433
|
-
"@
|
|
434
|
-
"@
|
|
435
|
-
"@
|
|
436
|
-
"@
|
|
437
|
-
"@storybook/
|
|
438
|
-
"@
|
|
439
|
-
"@
|
|
440
|
-
"@
|
|
441
|
-
"@
|
|
442
|
-
"@
|
|
531
|
+
"@eslint/js": "^10.0.1",
|
|
532
|
+
"@hookform/resolvers": "^5.7.1",
|
|
533
|
+
"@radix-ui/react-accordion": "^1.2.20",
|
|
534
|
+
"@radix-ui/react-alert-dialog": "^1.1.23",
|
|
535
|
+
"@radix-ui/react-avatar": "^1.2.6",
|
|
536
|
+
"@radix-ui/react-checkbox": "^1.3.11",
|
|
537
|
+
"@radix-ui/react-dialog": "^1.1.23",
|
|
538
|
+
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
539
|
+
"@radix-ui/react-label": "^2.1.15",
|
|
540
|
+
"@radix-ui/react-popover": "^1.1.23",
|
|
541
|
+
"@radix-ui/react-progress": "^1.1.16",
|
|
542
|
+
"@radix-ui/react-radio-group": "^1.4.7",
|
|
543
|
+
"@radix-ui/react-scroll-area": "^1.2.18",
|
|
544
|
+
"@radix-ui/react-select": "^2.3.7",
|
|
545
|
+
"@radix-ui/react-separator": "^1.1.15",
|
|
546
|
+
"@radix-ui/react-slider": "^1.4.7",
|
|
547
|
+
"@radix-ui/react-slot": "^1.3.3",
|
|
548
|
+
"@radix-ui/react-switch": "^1.3.7",
|
|
549
|
+
"@radix-ui/react-tabs": "^1.1.21",
|
|
550
|
+
"@radix-ui/react-toast": "^1.2.23",
|
|
551
|
+
"@radix-ui/react-toggle": "^1.1.18",
|
|
552
|
+
"@radix-ui/react-tooltip": "^1.2.16",
|
|
553
|
+
"@storybook/addon-a11y": "^10.5.7",
|
|
554
|
+
"@storybook/addon-docs": "^10.5.7",
|
|
555
|
+
"@storybook/addon-onboarding": "^10.5.7",
|
|
556
|
+
"@storybook/addon-vitest": "^10.5.7",
|
|
557
|
+
"@storybook/react-vite": "^10.5.7",
|
|
558
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
559
|
+
"@types/node": "^26.2.0",
|
|
560
|
+
"@types/react": "^19.2.18",
|
|
561
|
+
"@types/react-dom": "^19.2.4",
|
|
562
|
+
"@vitejs/plugin-react-swc": "^4.3.3",
|
|
443
563
|
"@vitest/browser-playwright": "4.1.10",
|
|
444
564
|
"@vitest/coverage-v8": "4.1.10",
|
|
445
565
|
"class-variance-authority": "^0.7.1",
|
|
446
566
|
"clsx": "^2.1.1",
|
|
447
567
|
"cmdk": "^1.1.1",
|
|
448
568
|
"date-fns": "^4.4.0",
|
|
449
|
-
"eslint": "^10.
|
|
569
|
+
"eslint": "^10.8.1",
|
|
450
570
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
451
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
452
|
-
"eslint-plugin-storybook": "^10.5.
|
|
453
|
-
"globals": "^17.
|
|
454
|
-
"
|
|
455
|
-
"react": "^
|
|
571
|
+
"eslint-plugin-react-refresh": "^0.5.4",
|
|
572
|
+
"eslint-plugin-storybook": "^10.5.7",
|
|
573
|
+
"globals": "^17.11.0",
|
|
574
|
+
"input-otp": "^1.4.2",
|
|
575
|
+
"lucide-react": "^1.31.0",
|
|
576
|
+
"react": "^19.2.8",
|
|
456
577
|
"react-day-picker": "^10.0.1",
|
|
457
|
-
"react-dom": "^19.2.
|
|
458
|
-
"react-hook-form": "^7.
|
|
459
|
-
"sonner": "^2.0.
|
|
460
|
-
"storybook": "^10.5.
|
|
578
|
+
"react-dom": "^19.2.8",
|
|
579
|
+
"react-hook-form": "^7.85.0",
|
|
580
|
+
"sonner": "^2.0.8",
|
|
581
|
+
"storybook": "^10.5.7",
|
|
461
582
|
"tailwind-merge": "^3.6.0",
|
|
462
|
-
"tailwindcss": "^4.3.
|
|
583
|
+
"tailwindcss": "^4.3.3",
|
|
463
584
|
"typescript": "~5.9.3",
|
|
464
|
-
"typescript-eslint": "^8.
|
|
465
|
-
"vite": "^8.1
|
|
466
|
-
"vite-plugin-checker": "^0.14.
|
|
585
|
+
"typescript-eslint": "^8.67.0",
|
|
586
|
+
"vite": "^8.2.1",
|
|
587
|
+
"vite-plugin-checker": "^0.14.5",
|
|
467
588
|
"vite-plugin-dts": "^5.0.3",
|
|
468
589
|
"vite-plugin-eslint2": "^5.3.0",
|
|
469
590
|
"vite-tsconfig-paths": "^6.1.1",
|
|
@@ -486,18 +607,5 @@
|
|
|
486
607
|
"typescript",
|
|
487
608
|
"tailwindcss"
|
|
488
609
|
],
|
|
489
|
-
"license": "MIT"
|
|
490
|
-
|
|
491
|
-
"@radix-ui/react-tabs": "^1.1.17"
|
|
492
|
-
},
|
|
493
|
-
"scripts": {
|
|
494
|
-
"dev": "vite",
|
|
495
|
-
"build": "tsc -b && vite build",
|
|
496
|
-
"build:lib": "vite build",
|
|
497
|
-
"lint": "eslint .",
|
|
498
|
-
"preview": "vite preview",
|
|
499
|
-
"storybook": "storybook dev -p 6006",
|
|
500
|
-
"build-storybook": "storybook build",
|
|
501
|
-
"deploy": "npm publish --access public"
|
|
502
|
-
}
|
|
503
|
-
}
|
|
610
|
+
"license": "MIT"
|
|
611
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme inline {
|
|
4
|
+
--color-background: hsl(var(--background));
|
|
5
|
+
--color-foreground: hsl(var(--foreground));
|
|
6
|
+
--color-card: hsl(var(--card));
|
|
7
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
8
|
+
--color-popover: hsl(var(--popover));
|
|
9
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
10
|
+
--color-primary: hsl(var(--primary));
|
|
11
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
12
|
+
--color-secondary: hsl(var(--secondary));
|
|
13
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
14
|
+
--color-muted: hsl(var(--muted));
|
|
15
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
16
|
+
--color-accent: hsl(var(--accent));
|
|
17
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
18
|
+
--color-destructive: hsl(var(--destructive));
|
|
19
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
20
|
+
--color-border: hsl(var(--border));
|
|
21
|
+
--color-input: hsl(var(--input));
|
|
22
|
+
--color-ring: hsl(var(--ring));
|
|
23
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
24
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
25
|
+
--radius-lg: var(--radius);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:root {
|
|
29
|
+
--background: 0 0% 100%;
|
|
30
|
+
--foreground: 222.2 84% 4.9%;
|
|
31
|
+
--card: 0 0% 100%;
|
|
32
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
33
|
+
--popover: 0 0% 100%;
|
|
34
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
35
|
+
--primary: 222.2 47.4% 11.2%;
|
|
36
|
+
--primary-foreground: 210 40% 98%;
|
|
37
|
+
--secondary: 210 40% 96.1%;
|
|
38
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
39
|
+
--muted: 210 40% 96.1%;
|
|
40
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
41
|
+
--accent: 210 40% 96.1%;
|
|
42
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
43
|
+
--destructive: 0 84.2% 60.2%;
|
|
44
|
+
--destructive-foreground: 210 40% 98%;
|
|
45
|
+
--border: 214.3 31.8% 91.4%;
|
|
46
|
+
--input: 214.3 31.8% 91.4%;
|
|
47
|
+
--ring: 222.2 84% 4.9%;
|
|
48
|
+
--radius: 0.5rem;
|
|
49
|
+
|
|
50
|
+
--form-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
51
|
+
--form-border-radius: 6px;
|
|
52
|
+
--form-transition: all 0.2s ease-in-out;
|
|
53
|
+
--form-primary: #1890ff;
|
|
54
|
+
--form-primary-hover: #40a9ff;
|
|
55
|
+
--form-error: #ff4d4f;
|
|
56
|
+
--form-success: #52c41a;
|
|
57
|
+
--form-warning: #faad14;
|
|
58
|
+
--form-border: #d9d9d9;
|
|
59
|
+
--form-border-hover: #40a9ff;
|
|
60
|
+
--form-text: rgba(0, 0, 0, 0.85);
|
|
61
|
+
--form-text-secondary: rgba(0, 0, 0, 0.45);
|
|
62
|
+
--form-bg: #ffffff;
|
|
63
|
+
--form-bg-disabled: #f5f5f5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dark {
|
|
67
|
+
--background: 222.2 84% 4.9%;
|
|
68
|
+
--foreground: 210 40% 98%;
|
|
69
|
+
--card: 222.2 84% 4.9%;
|
|
70
|
+
--card-foreground: 210 40% 98%;
|
|
71
|
+
--popover: 222.2 84% 4.9%;
|
|
72
|
+
--popover-foreground: 210 40% 98%;
|
|
73
|
+
--primary: 210 40% 98%;
|
|
74
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
75
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
76
|
+
--secondary-foreground: 210 40% 98%;
|
|
77
|
+
--muted: 217.2 32.6% 17.5%;
|
|
78
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
79
|
+
--accent: 217.2 32.6% 17.5%;
|
|
80
|
+
--accent-foreground: 210 40% 98%;
|
|
81
|
+
--destructive: 0 62.8% 30.6%;
|
|
82
|
+
--destructive-foreground: 210 40% 98%;
|
|
83
|
+
--border: 217.2 32.6% 17.5%;
|
|
84
|
+
--input: 217.2 32.6% 17.5%;
|
|
85
|
+
--ring: 212.7 26.8% 83.9%;
|
|
86
|
+
|
|
87
|
+
--form-primary: #177ddc;
|
|
88
|
+
--form-primary-hover: #3c9ae8;
|
|
89
|
+
--form-error: #a61d24;
|
|
90
|
+
--form-success: #49aa19;
|
|
91
|
+
--form-warning: #d89614;
|
|
92
|
+
--form-border: #434343;
|
|
93
|
+
--form-border-hover: #3c9ae8;
|
|
94
|
+
--form-text: rgba(255, 255, 255, 0.85);
|
|
95
|
+
--form-text-secondary: rgba(255, 255, 255, 0.45);
|
|
96
|
+
--form-bg: #141414;
|
|
97
|
+
--form-bg-disabled: #262626;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
* {
|
|
101
|
+
border-color: hsl(var(--border));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
body {
|
|
105
|
+
background-color: hsl(var(--background));
|
|
106
|
+
color: hsl(var(--foreground));
|
|
107
|
+
}
|