@egose/shadcn-theme 0.0.1
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 +30 -0
- package/chunk-2NMEKWO5.js +38 -0
- package/chunk-2NMEKWO5.js.map +1 -0
- package/chunk-3ONILUYO.mjs +11 -0
- package/chunk-3ONILUYO.mjs.map +1 -0
- package/chunk-4CBX7RQR.mjs +37 -0
- package/chunk-4CBX7RQR.mjs.map +1 -0
- package/chunk-5HXFUN6E.mjs +132 -0
- package/chunk-5HXFUN6E.mjs.map +1 -0
- package/chunk-A6SPGGUA.mjs +31 -0
- package/chunk-A6SPGGUA.mjs.map +1 -0
- package/chunk-B2G2EZ4P.js +11 -0
- package/chunk-B2G2EZ4P.js.map +1 -0
- package/chunk-B5KVOXLO.js +119 -0
- package/chunk-B5KVOXLO.js.map +1 -0
- package/chunk-BBMYITL4.mjs +35 -0
- package/chunk-BBMYITL4.mjs.map +1 -0
- package/chunk-BIIFJJWL.mjs +119 -0
- package/chunk-BIIFJJWL.mjs.map +1 -0
- package/chunk-DDR4LO2B.mjs +27 -0
- package/chunk-DDR4LO2B.mjs.map +1 -0
- package/chunk-DG6G5KP2.js +35 -0
- package/chunk-DG6G5KP2.js.map +1 -0
- package/chunk-HPKA6MRM.js +132 -0
- package/chunk-HPKA6MRM.js.map +1 -0
- package/chunk-JB72ECC3.js +57 -0
- package/chunk-JB72ECC3.js.map +1 -0
- package/chunk-K5LCVJVQ.js +31 -0
- package/chunk-K5LCVJVQ.js.map +1 -0
- package/chunk-PEJ7BU4C.js +27 -0
- package/chunk-PEJ7BU4C.js.map +1 -0
- package/chunk-PICOAWKQ.js +49 -0
- package/chunk-PICOAWKQ.js.map +1 -0
- package/chunk-PZ6OC36F.js +32 -0
- package/chunk-PZ6OC36F.js.map +1 -0
- package/chunk-SIGC6GCN.mjs +32 -0
- package/chunk-SIGC6GCN.mjs.map +1 -0
- package/chunk-TVGM4RRO.mjs +21 -0
- package/chunk-TVGM4RRO.mjs.map +1 -0
- package/chunk-WTKKFZZ4.mjs +57 -0
- package/chunk-WTKKFZZ4.mjs.map +1 -0
- package/chunk-WTTHT7F4.js +21 -0
- package/chunk-WTTHT7F4.js.map +1 -0
- package/chunk-XHNXPJDJ.mjs +49 -0
- package/chunk-XHNXPJDJ.mjs.map +1 -0
- package/chunk-YOSPWY5K.mjs +38 -0
- package/chunk-YOSPWY5K.mjs.map +1 -0
- package/chunk-ZR3EVQAK.js +37 -0
- package/chunk-ZR3EVQAK.js.map +1 -0
- package/components/ui/accordion.d.mts +9 -0
- package/components/ui/accordion.d.ts +9 -0
- package/components/ui/accordion.js +59 -0
- package/components/ui/accordion.js.map +1 -0
- package/components/ui/accordion.mjs +59 -0
- package/components/ui/accordion.mjs.map +1 -0
- package/components/ui/alert-dialog.d.mts +22 -0
- package/components/ui/alert-dialog.d.ts +22 -0
- package/components/ui/alert-dialog.js +143 -0
- package/components/ui/alert-dialog.js.map +1 -0
- package/components/ui/alert-dialog.mjs +143 -0
- package/components/ui/alert-dialog.mjs.map +1 -0
- package/components/ui/alert.d.mts +11 -0
- package/components/ui/alert.d.ts +11 -0
- package/components/ui/alert.js +65 -0
- package/components/ui/alert.js.map +1 -0
- package/components/ui/alert.mjs +65 -0
- package/components/ui/alert.mjs.map +1 -0
- package/components/ui/aspect-ratio.d.mts +6 -0
- package/components/ui/aspect-ratio.d.ts +6 -0
- package/components/ui/aspect-ratio.js +9 -0
- package/components/ui/aspect-ratio.js.map +1 -0
- package/components/ui/aspect-ratio.mjs +9 -0
- package/components/ui/aspect-ratio.mjs.map +1 -0
- package/components/ui/avatar.d.mts +8 -0
- package/components/ui/avatar.d.ts +8 -0
- package/components/ui/avatar.js +57 -0
- package/components/ui/avatar.js.map +1 -0
- package/components/ui/avatar.mjs +57 -0
- package/components/ui/avatar.mjs.map +1 -0
- package/components/ui/badge.d.mts +12 -0
- package/components/ui/badge.d.ts +12 -0
- package/components/ui/badge.js +36 -0
- package/components/ui/badge.js.map +1 -0
- package/components/ui/badge.mjs +36 -0
- package/components/ui/badge.mjs.map +1 -0
- package/components/ui/breadcrumb.d.mts +21 -0
- package/components/ui/breadcrumb.d.ts +21 -0
- package/components/ui/breadcrumb.js +115 -0
- package/components/ui/breadcrumb.js.map +1 -0
- package/components/ui/breadcrumb.mjs +115 -0
- package/components/ui/breadcrumb.mjs.map +1 -0
- package/components/ui/button.d.mts +14 -0
- package/components/ui/button.d.ts +14 -0
- package/components/ui/button.js +11 -0
- package/components/ui/button.js.map +1 -0
- package/components/ui/button.mjs +11 -0
- package/components/ui/button.mjs.map +1 -0
- package/components/ui/calendar.d.mts +10 -0
- package/components/ui/calendar.d.ts +10 -0
- package/components/ui/calendar.js +81 -0
- package/components/ui/calendar.js.map +1 -0
- package/components/ui/calendar.mjs +81 -0
- package/components/ui/calendar.mjs.map +1 -0
- package/components/ui/card.d.mts +10 -0
- package/components/ui/card.d.ts +10 -0
- package/components/ui/card.js +82 -0
- package/components/ui/card.js.map +1 -0
- package/components/ui/card.mjs +82 -0
- package/components/ui/card.mjs.map +1 -0
- package/components/ui/carousel.d.mts +23 -0
- package/components/ui/carousel.d.ts +23 -0
- package/components/ui/carousel.js +206 -0
- package/components/ui/carousel.js.map +1 -0
- package/components/ui/carousel.mjs +206 -0
- package/components/ui/carousel.mjs.map +1 -0
- package/components/ui/chart.d.mts +68 -0
- package/components/ui/chart.d.ts +68 -0
- package/components/ui/chart.js +236 -0
- package/components/ui/chart.js.map +1 -0
- package/components/ui/chart.mjs +236 -0
- package/components/ui/chart.mjs.map +1 -0
- package/components/ui/checkbox.d.mts +6 -0
- package/components/ui/checkbox.d.ts +6 -0
- package/components/ui/checkbox.js +37 -0
- package/components/ui/checkbox.js.map +1 -0
- package/components/ui/checkbox.mjs +37 -0
- package/components/ui/checkbox.mjs.map +1 -0
- package/components/ui/collapsible.d.mts +8 -0
- package/components/ui/collapsible.d.ts +8 -0
- package/components/ui/collapsible.js +14 -0
- package/components/ui/collapsible.js.map +1 -0
- package/components/ui/collapsible.mjs +14 -0
- package/components/ui/collapsible.mjs.map +1 -0
- package/components/ui/command.d.mts +82 -0
- package/components/ui/command.d.ts +82 -0
- package/components/ui/command.js +135 -0
- package/components/ui/command.js.map +1 -0
- package/components/ui/command.mjs +135 -0
- package/components/ui/command.mjs.map +1 -0
- package/components/ui/context-menu.d.mts +29 -0
- package/components/ui/context-menu.d.ts +29 -0
- package/components/ui/context-menu.js +172 -0
- package/components/ui/context-menu.js.map +1 -0
- package/components/ui/context-menu.mjs +172 -0
- package/components/ui/context-menu.mjs.map +1 -0
- package/components/ui/dialog.d.mts +21 -0
- package/components/ui/dialog.d.ts +21 -0
- package/components/ui/dialog.js +28 -0
- package/components/ui/dialog.js.map +1 -0
- package/components/ui/dialog.mjs +28 -0
- package/components/ui/dialog.mjs.map +1 -0
- package/components/ui/drawer.d.mts +26 -0
- package/components/ui/drawer.d.ts +26 -0
- package/components/ui/drawer.js +122 -0
- package/components/ui/drawer.js.map +1 -0
- package/components/ui/drawer.mjs +122 -0
- package/components/ui/drawer.mjs.map +1 -0
- package/components/ui/dropdown-menu.d.mts +29 -0
- package/components/ui/dropdown-menu.d.ts +29 -0
- package/components/ui/dropdown-menu.js +171 -0
- package/components/ui/dropdown-menu.js.map +1 -0
- package/components/ui/dropdown-menu.mjs +171 -0
- package/components/ui/dropdown-menu.mjs.map +1 -0
- package/components/ui/form.d.mts +27 -0
- package/components/ui/form.d.ts +27 -0
- package/components/ui/form.js +123 -0
- package/components/ui/form.js.map +1 -0
- package/components/ui/form.mjs +123 -0
- package/components/ui/form.mjs.map +1 -0
- package/components/ui/hover-card.d.mts +8 -0
- package/components/ui/hover-card.d.ts +8 -0
- package/components/ui/hover-card.js +36 -0
- package/components/ui/hover-card.js.map +1 -0
- package/components/ui/hover-card.mjs +36 -0
- package/components/ui/hover-card.mjs.map +1 -0
- package/components/ui/input-otp.d.mts +37 -0
- package/components/ui/input-otp.d.ts +37 -0
- package/components/ui/input-otp.js +63 -0
- package/components/ui/input-otp.js.map +1 -0
- package/components/ui/input-otp.mjs +63 -0
- package/components/ui/input-otp.mjs.map +1 -0
- package/components/ui/input.d.mts +5 -0
- package/components/ui/input.d.ts +5 -0
- package/components/ui/input.js +9 -0
- package/components/ui/input.js.map +1 -0
- package/components/ui/input.mjs +9 -0
- package/components/ui/input.mjs.map +1 -0
- package/components/ui/label.d.mts +8 -0
- package/components/ui/label.d.ts +8 -0
- package/components/ui/label.js +9 -0
- package/components/ui/label.js.map +1 -0
- package/components/ui/label.mjs +9 -0
- package/components/ui/label.mjs.map +1 -0
- package/components/ui/menubar.d.mts +30 -0
- package/components/ui/menubar.d.ts +30 -0
- package/components/ui/menubar.js +221 -0
- package/components/ui/menubar.js.map +1 -0
- package/components/ui/menubar.mjs +221 -0
- package/components/ui/menubar.mjs.map +1 -0
- package/components/ui/navigation-menu.d.mts +15 -0
- package/components/ui/navigation-menu.d.ts +15 -0
- package/components/ui/navigation-menu.js +123 -0
- package/components/ui/navigation-menu.js.map +1 -0
- package/components/ui/navigation-menu.mjs +123 -0
- package/components/ui/navigation-menu.mjs.map +1 -0
- package/components/ui/pagination.d.mts +32 -0
- package/components/ui/pagination.d.ts +32 -0
- package/components/ui/pagination.js +130 -0
- package/components/ui/pagination.js.map +1 -0
- package/components/ui/pagination.mjs +130 -0
- package/components/ui/pagination.mjs.map +1 -0
- package/components/ui/popover.d.mts +9 -0
- package/components/ui/popover.d.ts +9 -0
- package/components/ui/popover.js +37 -0
- package/components/ui/popover.js.map +1 -0
- package/components/ui/popover.mjs +37 -0
- package/components/ui/popover.mjs.map +1 -0
- package/components/ui/progress.d.mts +6 -0
- package/components/ui/progress.d.ts +6 -0
- package/components/ui/progress.js +37 -0
- package/components/ui/progress.js.map +1 -0
- package/components/ui/progress.mjs +37 -0
- package/components/ui/progress.mjs.map +1 -0
- package/components/ui/radio-group.d.mts +7 -0
- package/components/ui/radio-group.d.ts +7 -0
- package/components/ui/radio-group.js +45 -0
- package/components/ui/radio-group.js.map +1 -0
- package/components/ui/radio-group.mjs +45 -0
- package/components/ui/radio-group.mjs.map +1 -0
- package/components/ui/resizable.d.mts +26 -0
- package/components/ui/resizable.d.ts +26 -0
- package/components/ui/resizable.js +54 -0
- package/components/ui/resizable.js.map +1 -0
- package/components/ui/resizable.mjs +54 -0
- package/components/ui/resizable.mjs.map +1 -0
- package/components/ui/scroll-area.d.mts +7 -0
- package/components/ui/scroll-area.d.ts +7 -0
- package/components/ui/scroll-area.js +48 -0
- package/components/ui/scroll-area.js.map +1 -0
- package/components/ui/scroll-area.mjs +48 -0
- package/components/ui/scroll-area.mjs.map +1 -0
- package/components/ui/select.d.mts +15 -0
- package/components/ui/select.d.ts +15 -0
- package/components/ui/select.js +141 -0
- package/components/ui/select.js.map +1 -0
- package/components/ui/select.mjs +141 -0
- package/components/ui/select.mjs.map +1 -0
- package/components/ui/separator.d.mts +6 -0
- package/components/ui/separator.d.ts +6 -0
- package/components/ui/separator.js +9 -0
- package/components/ui/separator.js.map +1 -0
- package/components/ui/separator.mjs +9 -0
- package/components/ui/separator.mjs.map +1 -0
- package/components/ui/sheet.d.mts +28 -0
- package/components/ui/sheet.d.ts +28 -0
- package/components/ui/sheet.js +28 -0
- package/components/ui/sheet.js.map +1 -0
- package/components/ui/sheet.mjs +28 -0
- package/components/ui/sheet.mjs.map +1 -0
- package/components/ui/sidebar.d.mts +72 -0
- package/components/ui/sidebar.d.ts +72 -0
- package/components/ui/sidebar.js +642 -0
- package/components/ui/sidebar.js.map +1 -0
- package/components/ui/sidebar.mjs +642 -0
- package/components/ui/sidebar.mjs.map +1 -0
- package/components/ui/skeleton.d.mts +5 -0
- package/components/ui/skeleton.d.ts +5 -0
- package/components/ui/skeleton.js +9 -0
- package/components/ui/skeleton.js.map +1 -0
- package/components/ui/skeleton.mjs +9 -0
- package/components/ui/skeleton.mjs.map +1 -0
- package/components/ui/slider.d.mts +6 -0
- package/components/ui/slider.d.ts +6 -0
- package/components/ui/slider.js +31 -0
- package/components/ui/slider.js.map +1 -0
- package/components/ui/slider.mjs +31 -0
- package/components/ui/slider.mjs.map +1 -0
- package/components/ui/sonner.d.mts +7 -0
- package/components/ui/sonner.d.ts +7 -0
- package/components/ui/sonner.js +32 -0
- package/components/ui/sonner.js.map +1 -0
- package/components/ui/sonner.mjs +32 -0
- package/components/ui/sonner.mjs.map +1 -0
- package/components/ui/switch.d.mts +6 -0
- package/components/ui/switch.d.ts +6 -0
- package/components/ui/switch.js +39 -0
- package/components/ui/switch.js.map +1 -0
- package/components/ui/switch.mjs +39 -0
- package/components/ui/switch.mjs.map +1 -0
- package/components/ui/table.d.mts +12 -0
- package/components/ui/table.d.ts +12 -0
- package/components/ui/table.js +115 -0
- package/components/ui/table.js.map +1 -0
- package/components/ui/table.mjs +115 -0
- package/components/ui/table.mjs.map +1 -0
- package/components/ui/tabs.d.mts +9 -0
- package/components/ui/tabs.d.ts +9 -0
- package/components/ui/tabs.js +61 -0
- package/components/ui/tabs.js.map +1 -0
- package/components/ui/tabs.mjs +61 -0
- package/components/ui/tabs.mjs.map +1 -0
- package/components/ui/textarea.d.mts +5 -0
- package/components/ui/textarea.d.ts +5 -0
- package/components/ui/textarea.js +28 -0
- package/components/ui/textarea.js.map +1 -0
- package/components/ui/textarea.mjs +28 -0
- package/components/ui/textarea.mjs.map +1 -0
- package/components/ui/toggle-group.d.mts +15 -0
- package/components/ui/toggle-group.d.ts +15 -0
- package/components/ui/toggle-group.js +55 -0
- package/components/ui/toggle-group.js.map +1 -0
- package/components/ui/toggle-group.mjs +55 -0
- package/components/ui/toggle-group.mjs.map +1 -0
- package/components/ui/toggle.d.mts +15 -0
- package/components/ui/toggle.d.ts +15 -0
- package/components/ui/toggle.js +11 -0
- package/components/ui/toggle.js.map +1 -0
- package/components/ui/toggle.mjs +11 -0
- package/components/ui/toggle.mjs.map +1 -0
- package/components/ui/tooltip.d.mts +9 -0
- package/components/ui/tooltip.d.ts +9 -0
- package/components/ui/tooltip.js +16 -0
- package/components/ui/tooltip.js.map +1 -0
- package/components/ui/tooltip.mjs +16 -0
- package/components/ui/tooltip.mjs.map +1 -0
- package/hooks/use-mobile.d.mts +3 -0
- package/hooks/use-mobile.d.ts +3 -0
- package/hooks/use-mobile.js +8 -0
- package/hooks/use-mobile.js.map +1 -0
- package/hooks/use-mobile.mjs +8 -0
- package/hooks/use-mobile.mjs.map +1 -0
- package/lib/utils.d.mts +5 -0
- package/lib/utils.d.ts +5 -0
- package/lib/utils.js +8 -0
- package/lib/utils.js.map +1 -0
- package/lib/utils.mjs +8 -0
- package/lib/utils.mjs.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/form.js","../../../components/ui/form.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACVA,2EAAuB;AAEvB,iDAAqB;AACrB;AACE;AAIA;AACA;AAAA,gDACK;AAKP,IAAM,KAAA,EAAO,2BAAA;AASb,IAAM,iBAAA,EAAyB,KAAA,CAAA,aAAA;AAAA,EAC7B,CAAC;AACH,CAAA;AAEA,IAAM,UAAA,EAAY,CAGhB,EAAA,EAAA,GAE0C;AAF1C,EAAA,IACG,MAAA,EAAA,wCAAA,EADH,EACG,CAAA,CAAA,CAAA;AAEH,EAAA,uBACE,KAAA,CAAA,aAAA,CAAC,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,EAAE,IAAA,EAAM,KAAA,CAAM,KAAK,EAAA,CAAA,kBACnD,KAAA,CAAA,aAAA,CAAC,yBAAA,EAAA,6CAAA,CAAA,CAAA,EAAe,KAAA,CAAO,CACzB,CAAA;AAEJ,CAAA;AAEA,IAAM,aAAA,EAAe,CAAA,EAAA,GAAM;AACzB,EAAA,MAAM,aAAA,EAAqB,KAAA,CAAA,UAAA,CAAW,gBAA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AACA;AACA;AACA;AACA;AACA","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/form.js","sourcesContent":[null,"\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n )\n})\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n}\n"]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Label
|
|
4
|
+
} from "../../chunk-A6SPGGUA.mjs";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "../../chunk-3ONILUYO.mjs";
|
|
8
|
+
import {
|
|
9
|
+
__objRest,
|
|
10
|
+
__spreadValues
|
|
11
|
+
} from "../../chunk-YOSPWY5K.mjs";
|
|
12
|
+
|
|
13
|
+
// components/ui/form.tsx
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
16
|
+
import {
|
|
17
|
+
Controller,
|
|
18
|
+
FormProvider,
|
|
19
|
+
useFormContext
|
|
20
|
+
} from "react-hook-form";
|
|
21
|
+
var Form = FormProvider;
|
|
22
|
+
var FormFieldContext = React.createContext(
|
|
23
|
+
{}
|
|
24
|
+
);
|
|
25
|
+
var FormField = (_a) => {
|
|
26
|
+
var props = __objRest(_a, []);
|
|
27
|
+
return /* @__PURE__ */ React.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React.createElement(Controller, __spreadValues({}, props)));
|
|
28
|
+
};
|
|
29
|
+
var useFormField = () => {
|
|
30
|
+
const fieldContext = React.useContext(FormFieldContext);
|
|
31
|
+
const itemContext = React.useContext(FormItemContext);
|
|
32
|
+
const { getFieldState, formState } = useFormContext();
|
|
33
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
34
|
+
if (!fieldContext) {
|
|
35
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
36
|
+
}
|
|
37
|
+
const { id } = itemContext;
|
|
38
|
+
return __spreadValues({
|
|
39
|
+
id,
|
|
40
|
+
name: fieldContext.name,
|
|
41
|
+
formItemId: `${id}-form-item`,
|
|
42
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
43
|
+
formMessageId: `${id}-form-item-message`
|
|
44
|
+
}, fieldState);
|
|
45
|
+
};
|
|
46
|
+
var FormItemContext = React.createContext(
|
|
47
|
+
{}
|
|
48
|
+
);
|
|
49
|
+
var FormItem = React.forwardRef((_a, ref) => {
|
|
50
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51
|
+
const id = React.useId();
|
|
52
|
+
return /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
|
|
53
|
+
});
|
|
54
|
+
FormItem.displayName = "FormItem";
|
|
55
|
+
var FormLabel = React.forwardRef((_a, ref) => {
|
|
56
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
57
|
+
const { error, formItemId } = useFormField();
|
|
58
|
+
return /* @__PURE__ */ React.createElement(
|
|
59
|
+
Label,
|
|
60
|
+
__spreadValues({
|
|
61
|
+
ref,
|
|
62
|
+
className: cn(error && "text-destructive", className),
|
|
63
|
+
htmlFor: formItemId
|
|
64
|
+
}, props)
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
FormLabel.displayName = "FormLabel";
|
|
68
|
+
var FormControl = React.forwardRef((_a, ref) => {
|
|
69
|
+
var props = __objRest(_a, []);
|
|
70
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
71
|
+
return /* @__PURE__ */ React.createElement(
|
|
72
|
+
Slot,
|
|
73
|
+
__spreadValues({
|
|
74
|
+
ref,
|
|
75
|
+
id: formItemId,
|
|
76
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
77
|
+
"aria-invalid": !!error
|
|
78
|
+
}, props)
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
FormControl.displayName = "FormControl";
|
|
82
|
+
var FormDescription = React.forwardRef((_a, ref) => {
|
|
83
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
84
|
+
const { formDescriptionId } = useFormField();
|
|
85
|
+
return /* @__PURE__ */ React.createElement(
|
|
86
|
+
"p",
|
|
87
|
+
__spreadValues({
|
|
88
|
+
ref,
|
|
89
|
+
id: formDescriptionId,
|
|
90
|
+
className: cn("text-[0.8rem] text-muted-foreground", className)
|
|
91
|
+
}, props)
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
FormDescription.displayName = "FormDescription";
|
|
95
|
+
var FormMessage = React.forwardRef((_a, ref) => {
|
|
96
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
97
|
+
const { error, formMessageId } = useFormField();
|
|
98
|
+
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
99
|
+
if (!body) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
return /* @__PURE__ */ React.createElement(
|
|
103
|
+
"p",
|
|
104
|
+
__spreadValues({
|
|
105
|
+
ref,
|
|
106
|
+
id: formMessageId,
|
|
107
|
+
className: cn("text-[0.8rem] font-medium text-destructive", className)
|
|
108
|
+
}, props),
|
|
109
|
+
body
|
|
110
|
+
);
|
|
111
|
+
});
|
|
112
|
+
FormMessage.displayName = "FormMessage";
|
|
113
|
+
export {
|
|
114
|
+
Form,
|
|
115
|
+
FormControl,
|
|
116
|
+
FormDescription,
|
|
117
|
+
FormField,
|
|
118
|
+
FormItem,
|
|
119
|
+
FormLabel,
|
|
120
|
+
FormMessage,
|
|
121
|
+
useFormField
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=form.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/form.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within <FormField>\")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n )\n})\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n}\n"],"mappings":";;;;;;;;;;;;;AAEA,YAAY,WAAW;AAEvB,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EAIA;AAAA,EACA;AAAA,OACK;AAKP,IAAM,OAAO;AASb,IAAM,mBAAyB;AAAA,EAC7B,CAAC;AACH;AAEA,IAAM,YAAY,CAGhB,OAE0C;AAF1C,MACG,kBADH,IACG;AAEH,SACE,oCAAC,iBAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAM,MAAM,KAAK,KACnD,oCAAC,+BAAe,MAAO,CACzB;AAEJ;AAEA,IAAM,eAAe,MAAM;AACzB,QAAM,eAAqB,iBAAW,gBAAgB;AACtD,QAAM,cAAoB,iBAAW,eAAe;AACpD,QAAM,EAAE,eAAe,UAAU,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CAAC;AAAA,OACZ;AAAA,EACN;AAEJ,CAAC;AACD,YAAY,cAAc;AAE1B,IAAM,kBAAwB,iBAG5B,CAAC,IAAyB,QAAQ;AAAjC,eAAE,YAlIL,IAkIG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,QAAM,EAAE,kBAAkB,IAAI,aAAa;AAE3C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,IAAI;AAAA,MACJ,WAAW,GAAG,uCAAuC,SAAS;AAAA,OAC1D;AAAA,EACN;AAEJ,CAAC;AACD,gBAAgB,cAAc;AAE9B,IAAM,cAAoB,iBAGxB,CAAC,IAAmC,QAAQ;AAA3C,eAAE,aAAW,SAnJhB,IAmJG,IAA0B,kBAA1B,IAA0B,CAAxB,aAAW;AACd,QAAM,EAAE,OAAO,cAAc,IAAI,aAAa;AAC9C,QAAM,OAAO,QAAQ,OAAO,+BAAO,OAAO,IAAI;AAE9C,MAAI,CAAC,MAAM;AACT,WAAO;AAAA,EACT;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,IAAI;AAAA,MACJ,WAAW,GAAG,8CAA8C,SAAS;AAAA,OACjE;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AACD,YAAY,cAAc;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
+
|
|
4
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
5
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
+
|
|
4
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
5
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkB2G2EZ4Pjs = require('../../chunk-B2G2EZ4P.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
9
|
+
|
|
10
|
+
// components/ui/hover-card.tsx
|
|
11
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
12
|
+
var _reacthovercard = require('@radix-ui/react-hover-card'); var HoverCardPrimitive = _interopRequireWildcard(_reacthovercard);
|
|
13
|
+
var HoverCard = HoverCardPrimitive.Root;
|
|
14
|
+
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
15
|
+
var HoverCardContent = React.forwardRef((_a, ref) => {
|
|
16
|
+
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className", "align", "sideOffset"]);
|
|
17
|
+
return /* @__PURE__ */ React.createElement(
|
|
18
|
+
HoverCardPrimitive.Content,
|
|
19
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
20
|
+
ref,
|
|
21
|
+
align,
|
|
22
|
+
sideOffset,
|
|
23
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0,
|
|
24
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
25
|
+
className
|
|
26
|
+
)
|
|
27
|
+
}, props)
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.HoverCard = HoverCard; exports.HoverCardContent = HoverCardContent; exports.HoverCardTrigger = HoverCardTrigger;
|
|
36
|
+
//# sourceMappingURL=hover-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/hover-card.js","../../../components/ui/hover-card.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACPA,2EAAuB;AACvB,+HAAoC;AAIpC,IAAM,UAAA,EAA+B,kBAAA,CAAA,IAAA;AAErC,IAAM,iBAAA,EAAsC,kBAAA,CAAA,OAAA;AAE5C,IAAM,iBAAA,EAAyB,KAAA,CAAA,UAAA,CAG7B,CAAC,EAAA,EAA2D,GAAA,EAAA,GAAK;AAAhE,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,SAAA,EAAW,MAAA,EAAQ,QAAA,EAAU,WAAA,EAAa,EAd/C,EAAA,EAcG,EAAA,EAAkD,MAAA,EAAA,wCAAA,EAAlD,EAAkD,CAAhD,WAAA,EAAW,OAAA,EAAkB,YAAA,CAAA,CAAA;AAChC,EAAA,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAoB,kBAAA,CAAA,OAAA;AAAA,IAAnB,6CAAA;AAAA,MACC,GAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA,EAAW,iCAAA;AAAA,QACT,4aAAA;AAAA,QACA;AAAA,MACF;AAAA,IAAA,CAAA,EACI,KAAA;AAAA,EACN,CAAA;AAAA,CACD,CAAA;AACD,gBAAA,CAAiB,YAAA,EAAiC,kBAAA,CAAA,OAAA,CAAQ,WAAA;ADI1D;AACE;AACA;AACA;AACF,wHAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/hover-card.js","sourcesContent":[null,"\"use client\"\n\nimport * as React from \"react\"\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst HoverCard = HoverCardPrimitive.Root\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n))\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent }\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "../../chunk-3ONILUYO.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__objRest,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "../../chunk-YOSPWY5K.mjs";
|
|
9
|
+
|
|
10
|
+
// components/ui/hover-card.tsx
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
13
|
+
var HoverCard = HoverCardPrimitive.Root;
|
|
14
|
+
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
15
|
+
var HoverCardContent = React.forwardRef((_a, ref) => {
|
|
16
|
+
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
17
|
+
return /* @__PURE__ */ React.createElement(
|
|
18
|
+
HoverCardPrimitive.Content,
|
|
19
|
+
__spreadValues({
|
|
20
|
+
ref,
|
|
21
|
+
align,
|
|
22
|
+
sideOffset,
|
|
23
|
+
className: cn(
|
|
24
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
25
|
+
className
|
|
26
|
+
)
|
|
27
|
+
}, props)
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
31
|
+
export {
|
|
32
|
+
HoverCard,
|
|
33
|
+
HoverCardContent,
|
|
34
|
+
HoverCardTrigger
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=hover-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/hover-card.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst HoverCard = HoverCardPrimitive.Root\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n))\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent }\n"],"mappings":";;;;;;;;;;AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AAIpC,IAAM,YAA+B;AAErC,IAAM,mBAAsC;AAE5C,IAAM,mBAAyB,iBAG7B,CAAC,IAA2D,QAAK;AAAhE,eAAE,aAAW,QAAQ,UAAU,aAAa,EAd/C,IAcG,IAAkD,kBAAlD,IAAkD,CAAhD,aAAW,SAAkB;AAChC;AAAA,IAAoB;AAAA,IAAnB;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAAA,CACD;AACD,iBAAiB,cAAiC,2BAAQ;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as input_otp from 'input-otp';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (newValue: string) => unknown;
|
|
7
|
+
maxLength: number;
|
|
8
|
+
textAlign?: "left" | "center" | "right";
|
|
9
|
+
onComplete?: (...args: any[]) => unknown;
|
|
10
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
11
|
+
pasteTransformer?: (pasted: string) => string;
|
|
12
|
+
containerClassName?: string;
|
|
13
|
+
noScriptCSSFallback?: string | null;
|
|
14
|
+
} & {
|
|
15
|
+
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
|
+
children?: never;
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
|
+
value?: string;
|
|
19
|
+
onChange?: (newValue: string) => unknown;
|
|
20
|
+
maxLength: number;
|
|
21
|
+
textAlign?: "left" | "center" | "right";
|
|
22
|
+
onComplete?: (...args: any[]) => unknown;
|
|
23
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
24
|
+
pasteTransformer?: (pasted: string) => string;
|
|
25
|
+
containerClassName?: string;
|
|
26
|
+
noScriptCSSFallback?: string | null;
|
|
27
|
+
} & {
|
|
28
|
+
render?: never;
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
index: number;
|
|
34
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
|
|
37
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as input_otp from 'input-otp';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (newValue: string) => unknown;
|
|
7
|
+
maxLength: number;
|
|
8
|
+
textAlign?: "left" | "center" | "right";
|
|
9
|
+
onComplete?: (...args: any[]) => unknown;
|
|
10
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
11
|
+
pasteTransformer?: (pasted: string) => string;
|
|
12
|
+
containerClassName?: string;
|
|
13
|
+
noScriptCSSFallback?: string | null;
|
|
14
|
+
} & {
|
|
15
|
+
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
|
+
children?: never;
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
|
+
value?: string;
|
|
19
|
+
onChange?: (newValue: string) => unknown;
|
|
20
|
+
maxLength: number;
|
|
21
|
+
textAlign?: "left" | "center" | "right";
|
|
22
|
+
onComplete?: (...args: any[]) => unknown;
|
|
23
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
24
|
+
pasteTransformer?: (pasted: string) => string;
|
|
25
|
+
containerClassName?: string;
|
|
26
|
+
noScriptCSSFallback?: string | null;
|
|
27
|
+
} & {
|
|
28
|
+
render?: never;
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
index: number;
|
|
34
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
|
|
37
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
|
+
|
|
3
|
+
var _chunkB2G2EZ4Pjs = require('../../chunk-B2G2EZ4P.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
8
|
+
|
|
9
|
+
// components/ui/input-otp.tsx
|
|
10
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
11
|
+
var _inputotp = require('input-otp');
|
|
12
|
+
var _lucidereact = require('lucide-react');
|
|
13
|
+
var InputOTP = React.forwardRef((_a, ref) => {
|
|
14
|
+
var _b = _a, { className, containerClassName } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className", "containerClassName"]);
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
16
|
+
_inputotp.OTPInput,
|
|
17
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
18
|
+
ref,
|
|
19
|
+
containerClassName: _chunkB2G2EZ4Pjs.cn.call(void 0,
|
|
20
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
21
|
+
containerClassName
|
|
22
|
+
),
|
|
23
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0, "disabled:cursor-not-allowed", className)
|
|
24
|
+
}, props)
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
InputOTP.displayName = "InputOTP";
|
|
28
|
+
var InputOTPGroup = React.forwardRef((_a, ref) => {
|
|
29
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
30
|
+
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { ref, className: _chunkB2G2EZ4Pjs.cn.call(void 0, "flex items-center", className) }, props));
|
|
31
|
+
});
|
|
32
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
33
|
+
var InputOTPSlot = React.forwardRef((_a, ref) => {
|
|
34
|
+
var _b = _a, { index, className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["index", "className"]);
|
|
35
|
+
const inputOTPContext = React.useContext(_inputotp.OTPInputContext);
|
|
36
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
37
|
+
return /* @__PURE__ */ React.createElement(
|
|
38
|
+
"div",
|
|
39
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
40
|
+
ref,
|
|
41
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0,
|
|
42
|
+
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
43
|
+
isActive && "z-10 ring-1 ring-ring",
|
|
44
|
+
className
|
|
45
|
+
)
|
|
46
|
+
}, props),
|
|
47
|
+
char,
|
|
48
|
+
hasFakeCaret && /* @__PURE__ */ React.createElement("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center" }, /* @__PURE__ */ React.createElement("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }))
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
52
|
+
var InputOTPSeparator = React.forwardRef((_a, ref) => {
|
|
53
|
+
var props = _chunk2NMEKWO5js.__objRest.call(void 0, _a, []);
|
|
54
|
+
return /* @__PURE__ */ React.createElement("div", _chunk2NMEKWO5js.__spreadValues.call(void 0, { ref, role: "separator" }, props), /* @__PURE__ */ React.createElement(_lucidereact.Minus, null));
|
|
55
|
+
});
|
|
56
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSeparator = InputOTPSeparator; exports.InputOTPSlot = InputOTPSlot;
|
|
63
|
+
//# sourceMappingURL=input-otp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/input-otp.js","../../../components/ui/input-otp.tsx"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACRA,2EAAuB;AACvB,qCAA0C;AAC1C,2CAAsB;AAItB,IAAM,SAAA,EAAiB,KAAA,CAAA,UAAA,CAGrB,CAAC,EAAA,EAA6C,GAAA,EAAA,GAAK;AAAlD,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,SAAA,EAAW,mBAThB,EAAA,EASG,EAAA,EAAoC,MAAA,EAAA,wCAAA,EAApC,EAAoC,CAAlC,WAAA,EAAW,oBAAA,CAAA,CAAA;AACd,EAAA,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,kBAAA;AAAA,IAAA,6CAAA;AAAA,MACC,GAAA;AAAA,MACA,kBAAA,EAAoB,iCAAA;AAAA,QAClB,oDAAA;AAAA,QACA;AAAA,MACF,CAAA;AAAA,MACA,SAAA,EAAW,iCAAA,6BAAG,EAA+B,SAAS;AAAA,IAAA,CAAA,EAClD,KAAA;AAAA,EACN,CAAA;AAAA,CACD,CAAA;AACD,QAAA,CAAS,YAAA,EAAc,UAAA;AAEvB,IAAM,cAAA,EAAsB,KAAA,CAAA,UAAA,CAG1B,CAAC,EAAA,EAAyB,GAAA,EAAA,GAAK;AAA9B,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,UAzBL,EAAA,EAyBG,EAAA,EAAgB,MAAA,EAAA,wCAAA,EAAhB,EAAgB,CAAd,WAAA,CAAA,CAAA;AACH,EAAA,uBAAA,KAAA,CAAA,aAAA,CAAC,KAAA,EAAA,6CAAA,EAAI,GAAA,EAAU,SAAA,EAAW,iCAAA,mBAAG,EAAqB,SAAS,EAAA,CAAA,EAAO,KAAA,CAAO,CA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CAAA,EAAgB,KAAA,CAAA,kBAClC,KAAA,CAAA,aAAA,CAAC,kBAAA,EAAA,IAAM,CACT,CAAA;AAAA,CACD,CAAA;AACD,iBAAA,CAAkB,YAAA,EAAc,mBAAA;ADVhC;AACE;AACA;AACA;AACA;AACF,uJAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/input-otp.js","sourcesContent":[null,"import * as React from \"react\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport { Minus } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst InputOTP = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n))\nInputOTP.displayName = \"InputOTP\"\n\nconst InputOTPGroup = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center\", className)} {...props} />\n))\nInputOTPGroup.displayName = \"InputOTPGroup\"\n\nconst InputOTPSlot = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md\",\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n )\n})\nInputOTPSlot.displayName = \"InputOTPSlot\"\n\nconst InputOTPSeparator = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <Minus />\n </div>\n))\nInputOTPSeparator.displayName = \"InputOTPSeparator\"\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "../../chunk-3ONILUYO.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "../../chunk-YOSPWY5K.mjs";
|
|
8
|
+
|
|
9
|
+
// components/ui/input-otp.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
12
|
+
import { Minus } from "lucide-react";
|
|
13
|
+
var InputOTP = React.forwardRef((_a, ref) => {
|
|
14
|
+
var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
16
|
+
OTPInput,
|
|
17
|
+
__spreadValues({
|
|
18
|
+
ref,
|
|
19
|
+
containerClassName: cn(
|
|
20
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
21
|
+
containerClassName
|
|
22
|
+
),
|
|
23
|
+
className: cn("disabled:cursor-not-allowed", className)
|
|
24
|
+
}, props)
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
InputOTP.displayName = "InputOTP";
|
|
28
|
+
var InputOTPGroup = React.forwardRef((_a, ref) => {
|
|
29
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
30
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
|
|
31
|
+
});
|
|
32
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
33
|
+
var InputOTPSlot = React.forwardRef((_a, ref) => {
|
|
34
|
+
var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
|
|
35
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
36
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
37
|
+
return /* @__PURE__ */ React.createElement(
|
|
38
|
+
"div",
|
|
39
|
+
__spreadValues({
|
|
40
|
+
ref,
|
|
41
|
+
className: cn(
|
|
42
|
+
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
43
|
+
isActive && "z-10 ring-1 ring-ring",
|
|
44
|
+
className
|
|
45
|
+
)
|
|
46
|
+
}, props),
|
|
47
|
+
char,
|
|
48
|
+
hasFakeCaret && /* @__PURE__ */ React.createElement("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center" }, /* @__PURE__ */ React.createElement("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }))
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
52
|
+
var InputOTPSeparator = React.forwardRef((_a, ref) => {
|
|
53
|
+
var props = __objRest(_a, []);
|
|
54
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, role: "separator" }, props), /* @__PURE__ */ React.createElement(Minus, null));
|
|
55
|
+
});
|
|
56
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
57
|
+
export {
|
|
58
|
+
InputOTP,
|
|
59
|
+
InputOTPGroup,
|
|
60
|
+
InputOTPSeparator,
|
|
61
|
+
InputOTPSlot
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=input-otp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/input-otp.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport { Minus } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst InputOTP = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n))\nInputOTP.displayName = \"InputOTP\"\n\nconst InputOTPGroup = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center\", className)} {...props} />\n))\nInputOTPGroup.displayName = \"InputOTPGroup\"\n\nconst InputOTPSlot = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md\",\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n )\n})\nInputOTPSlot.displayName = \"InputOTPSlot\"\n\nconst InputOTPSeparator = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <Minus />\n </div>\n))\nInputOTPSeparator.displayName = \"InputOTPSeparator\"\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n"],"mappings":";;;;;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
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPZ6OC36Fjs = require('../../chunk-PZ6OC36F.js');
|
|
4
|
+
require('../../chunk-B2G2EZ4P.js');
|
|
5
|
+
require('../../chunk-2NMEKWO5.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.Input = _chunkPZ6OC36Fjs.Input;
|
|
9
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/input.js"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACE;AACF,uCAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/input.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
|
|
8
|
+
export { Label };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
|
|
8
|
+
export { Label };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkK5LCVJVQjs = require('../../chunk-K5LCVJVQ.js');
|
|
4
|
+
require('../../chunk-B2G2EZ4P.js');
|
|
5
|
+
require('../../chunk-2NMEKWO5.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.Label = _chunkK5LCVJVQjs.Label;
|
|
9
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/label.js"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACE;AACF,uCAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/label.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
3
|
+
|
|
4
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): React.JSX.Element;
|
|
5
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): React.JSX.Element;
|
|
6
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): React.JSX.Element;
|
|
8
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): React.JSX.Element;
|
|
9
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
+
inset?: boolean;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const MenubarShortcut: {
|
|
26
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
27
|
+
displayname: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|