@gv-tech/design-system 2.14.0 → 2.15.0
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/dist/{accordion.cjs.js → accordion.cjs} +1 -1
- package/dist/accordion.cjs.map +1 -0
- package/dist/{accordion.es.js → accordion.mjs} +1 -1
- package/dist/accordion.mjs.map +1 -0
- package/dist/alert-dialog.cjs +2 -0
- package/dist/alert-dialog.cjs.map +1 -0
- package/dist/{alert-dialog.es.js → alert-dialog.mjs} +2 -2
- package/dist/alert-dialog.mjs.map +1 -0
- package/dist/{alert.cjs.js → alert.cjs} +1 -1
- package/dist/alert.cjs.map +1 -0
- package/dist/{alert.es.js → alert.mjs} +1 -1
- package/dist/alert.mjs.map +1 -0
- package/dist/{aspect-ratio.cjs.js → aspect-ratio.cjs} +1 -1
- package/dist/aspect-ratio.cjs.map +1 -0
- package/dist/{aspect-ratio.es.js → aspect-ratio.mjs} +1 -1
- package/dist/aspect-ratio.mjs.map +1 -0
- package/dist/{avatar.cjs.js → avatar.cjs} +1 -1
- package/dist/avatar.cjs.map +1 -0
- package/dist/{avatar.es.js → avatar.mjs} +1 -1
- package/dist/avatar.mjs.map +1 -0
- package/dist/{badge.cjs.js → badge.cjs} +1 -1
- package/dist/badge.cjs.map +1 -0
- package/dist/{badge.es.js → badge.mjs} +1 -1
- package/dist/badge.mjs.map +1 -0
- package/dist/{breadcrumb.cjs.js → breadcrumb.cjs} +1 -1
- package/dist/breadcrumb.cjs.map +1 -0
- package/dist/{breadcrumb.es.js → breadcrumb.mjs} +1 -1
- package/dist/breadcrumb.mjs.map +1 -0
- package/dist/{button.cjs.js → button.cjs} +1 -1
- package/dist/button.cjs.map +1 -0
- package/dist/{button.es.js → button.mjs} +1 -1
- package/dist/button.mjs.map +1 -0
- package/dist/calendar.cjs +2 -0
- package/dist/calendar.cjs.map +1 -0
- package/dist/{calendar.es.js → calendar.mjs} +2 -2
- package/dist/calendar.mjs.map +1 -0
- package/dist/{card.cjs.js → card.cjs} +1 -1
- package/dist/card.cjs.map +1 -0
- package/dist/{card.es.js → card.mjs} +1 -1
- package/dist/card.mjs.map +1 -0
- package/dist/carousel.cjs +2 -0
- package/dist/carousel.cjs.map +1 -0
- package/dist/{carousel.es.js → carousel.mjs} +2 -2
- package/dist/carousel.mjs.map +1 -0
- package/dist/{chart.cjs.js → chart.cjs} +1 -1
- package/dist/chart.cjs.map +1 -0
- package/dist/{chart.es.js → chart.mjs} +1 -1
- package/dist/chart.mjs.map +1 -0
- package/dist/{checkbox.cjs.js → checkbox.cjs} +1 -1
- package/dist/checkbox.cjs.map +1 -0
- package/dist/{checkbox.es.js → checkbox.mjs} +1 -1
- package/dist/checkbox.mjs.map +1 -0
- package/dist/{collapsible.cjs.js → collapsible.cjs} +1 -1
- package/dist/collapsible.cjs.map +1 -0
- package/dist/{collapsible.es.js → collapsible.mjs} +1 -1
- package/dist/collapsible.mjs.map +1 -0
- package/dist/command.cjs +2 -0
- package/dist/command.cjs.map +1 -0
- package/dist/{command.es.js → command.mjs} +2 -2
- package/dist/command.mjs.map +1 -0
- package/dist/{context-menu.cjs.js → context-menu.cjs} +1 -1
- package/dist/context-menu.cjs.map +1 -0
- package/dist/{context-menu.es.js → context-menu.mjs} +1 -1
- package/dist/context-menu.mjs.map +1 -0
- package/dist/{dialog.cjs.js → dialog.cjs} +1 -1
- package/dist/dialog.cjs.map +1 -0
- package/dist/{dialog.es.js → dialog.mjs} +1 -1
- package/dist/dialog.mjs.map +1 -0
- package/dist/{drawer.cjs.js → drawer.cjs} +1 -1
- package/dist/drawer.cjs.map +1 -0
- package/dist/{drawer.es.js → drawer.mjs} +1 -1
- package/dist/drawer.mjs.map +1 -0
- package/dist/{dropdown-menu.cjs.js → dropdown-menu.cjs} +1 -1
- package/dist/dropdown-menu.cjs.map +1 -0
- package/dist/{dropdown-menu.es.js → dropdown-menu.mjs} +1 -1
- package/dist/dropdown-menu.mjs.map +1 -0
- package/dist/form.cjs +2 -0
- package/dist/form.cjs.map +1 -0
- package/dist/{form.es.js → form.mjs} +2 -2
- package/dist/form.mjs.map +1 -0
- package/dist/{hover-card.cjs.js → hover-card.cjs} +1 -1
- package/dist/hover-card.cjs.map +1 -0
- package/dist/{hover-card.es.js → hover-card.mjs} +1 -1
- package/dist/hover-card.mjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.es.js → index.mjs} +52 -52
- package/dist/index.mjs.map +1 -0
- package/dist/{input.cjs.js → input.cjs} +1 -1
- package/dist/input.cjs.map +1 -0
- package/dist/{input.es.js → input.mjs} +1 -1
- package/dist/input.mjs.map +1 -0
- package/dist/{label.cjs.js → label.cjs} +1 -1
- package/dist/label.cjs.map +1 -0
- package/dist/{label.es.js → label.mjs} +1 -1
- package/dist/label.mjs.map +1 -0
- package/dist/{menubar.cjs.js → menubar.cjs} +1 -1
- package/dist/menubar.cjs.map +1 -0
- package/dist/{menubar.es.js → menubar.mjs} +1 -1
- package/dist/menubar.mjs.map +1 -0
- package/dist/{navigation-menu.cjs.js → navigation-menu.cjs} +1 -1
- package/dist/navigation-menu.cjs.map +1 -0
- package/dist/{navigation-menu.es.js → navigation-menu.mjs} +1 -1
- package/dist/navigation-menu.mjs.map +1 -0
- package/dist/pagination.cjs +2 -0
- package/dist/pagination.cjs.map +1 -0
- package/dist/{pagination.es.js → pagination.mjs} +2 -2
- package/dist/pagination.mjs.map +1 -0
- package/dist/{popover.cjs.js → popover.cjs} +1 -1
- package/dist/popover.cjs.map +1 -0
- package/dist/{popover.es.js → popover.mjs} +1 -1
- package/dist/popover.mjs.map +1 -0
- package/dist/{progress.cjs.js → progress.cjs} +1 -1
- package/dist/progress.cjs.map +1 -0
- package/dist/{progress.es.js → progress.mjs} +1 -1
- package/dist/progress.mjs.map +1 -0
- package/dist/{radio-group.cjs.js → radio-group.cjs} +1 -1
- package/dist/radio-group.cjs.map +1 -0
- package/dist/{radio-group.es.js → radio-group.mjs} +1 -1
- package/dist/radio-group.mjs.map +1 -0
- package/dist/{resizable.cjs.js → resizable.cjs} +1 -1
- package/dist/resizable.cjs.map +1 -0
- package/dist/{resizable.es.js → resizable.mjs} +1 -1
- package/dist/resizable.mjs.map +1 -0
- package/dist/{scroll-area.cjs.js → scroll-area.cjs} +1 -1
- package/dist/scroll-area.cjs.map +1 -0
- package/dist/{scroll-area.es.js → scroll-area.mjs} +1 -1
- package/dist/scroll-area.mjs.map +1 -0
- package/dist/search.cjs +2 -0
- package/dist/search.cjs.map +1 -0
- package/dist/{search.es.js → search.mjs} +3 -3
- package/dist/search.mjs.map +1 -0
- package/dist/{select.cjs.js → select.cjs} +1 -1
- package/dist/select.cjs.map +1 -0
- package/dist/{select.es.js → select.mjs} +1 -1
- package/dist/select.mjs.map +1 -0
- package/dist/{separator.cjs.js → separator.cjs} +1 -1
- package/dist/separator.cjs.map +1 -0
- package/dist/{separator.es.js → separator.mjs} +1 -1
- package/dist/separator.mjs.map +1 -0
- package/dist/{sheet.cjs.js → sheet.cjs} +1 -1
- package/dist/sheet.cjs.map +1 -0
- package/dist/{sheet.es.js → sheet.mjs} +1 -1
- package/dist/sheet.mjs.map +1 -0
- package/dist/{skeleton.cjs.js → skeleton.cjs} +1 -1
- package/dist/skeleton.cjs.map +1 -0
- package/dist/{skeleton.es.js → skeleton.mjs} +1 -1
- package/dist/skeleton.mjs.map +1 -0
- package/dist/{slider.cjs.js → slider.cjs} +1 -1
- package/dist/slider.cjs.map +1 -0
- package/dist/{slider.es.js → slider.mjs} +1 -1
- package/dist/slider.mjs.map +1 -0
- package/dist/{sonner.cjs.js → sonner.cjs} +1 -1
- package/dist/sonner.cjs.map +1 -0
- package/dist/{sonner.es.js → sonner.mjs} +1 -1
- package/dist/sonner.mjs.map +1 -0
- package/dist/{switch.cjs.js → switch.cjs} +1 -1
- package/dist/switch.cjs.map +1 -0
- package/dist/{switch.es.js → switch.mjs} +1 -1
- package/dist/switch.mjs.map +1 -0
- package/dist/{table.cjs.js → table.cjs} +1 -1
- package/dist/table.cjs.map +1 -0
- package/dist/{table.es.js → table.mjs} +1 -1
- package/dist/table.mjs.map +1 -0
- package/dist/{tabs.cjs.js → tabs.cjs} +1 -1
- package/dist/tabs.cjs.map +1 -0
- package/dist/{tabs.es.js → tabs.mjs} +1 -1
- package/dist/tabs.mjs.map +1 -0
- package/dist/{text.cjs.js → text.cjs} +1 -1
- package/dist/text.cjs.map +1 -0
- package/dist/{text.es.js → text.mjs} +1 -1
- package/dist/text.mjs.map +1 -0
- package/dist/{textarea.cjs.js → textarea.cjs} +1 -1
- package/dist/textarea.cjs.map +1 -0
- package/dist/{textarea.es.js → textarea.mjs} +1 -1
- package/dist/textarea.mjs.map +1 -0
- package/dist/{theme-provider.cjs.js → theme-provider.cjs} +1 -1
- package/dist/theme-provider.cjs.map +1 -0
- package/dist/{theme-provider.es.js → theme-provider.mjs} +1 -1
- package/dist/theme-provider.mjs.map +1 -0
- package/dist/theme-toggle-1XGhXPhH.js +2 -0
- package/dist/{theme-toggle-CsOzHnq2.js.map → theme-toggle-1XGhXPhH.js.map} +1 -1
- package/dist/{theme-toggle-YTiXA-Ib.mjs → theme-toggle-B1LVRtUN.mjs} +3 -3
- package/dist/{theme-toggle-YTiXA-Ib.mjs.map → theme-toggle-B1LVRtUN.mjs.map} +1 -1
- package/dist/theme-toggle.cjs +2 -0
- package/dist/theme-toggle.cjs.map +1 -0
- package/dist/theme-toggle.mjs +10 -0
- package/dist/theme-toggle.mjs.map +1 -0
- package/dist/{toast.cjs.js → toast.cjs} +1 -1
- package/dist/toast.cjs.map +1 -0
- package/dist/{toast.es.js → toast.mjs} +1 -1
- package/dist/toast.mjs.map +1 -0
- package/dist/{toaster-D0gt0m_V.mjs → toaster-BqX0t2H6.mjs} +2 -2
- package/dist/{toaster-D0gt0m_V.mjs.map → toaster-BqX0t2H6.mjs.map} +1 -1
- package/dist/toaster-CKwNMV1Z.js +2 -0
- package/dist/{toaster-CjkfZJj0.js.map → toaster-CKwNMV1Z.js.map} +1 -1
- package/dist/toaster.cjs +2 -0
- package/dist/toaster.cjs.map +1 -0
- package/dist/toaster.mjs +8 -0
- package/dist/toaster.mjs.map +1 -0
- package/dist/{toggle-group.cjs.js → toggle-group.cjs} +1 -1
- package/dist/toggle-group.cjs.map +1 -0
- package/dist/{toggle-group.es.js → toggle-group.mjs} +1 -1
- package/dist/toggle-group.mjs.map +1 -0
- package/dist/{toggle.cjs.js → toggle.cjs} +1 -1
- package/dist/toggle.cjs.map +1 -0
- package/dist/{toggle.es.js → toggle.mjs} +1 -1
- package/dist/toggle.mjs.map +1 -0
- package/dist/{tooltip.cjs.js → tooltip.cjs} +1 -1
- package/dist/tooltip.cjs.map +1 -0
- package/dist/{tooltip.es.js → tooltip.mjs} +1 -1
- package/dist/tooltip.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/accordion.cjs.js.map +0 -1
- package/dist/accordion.es.js.map +0 -1
- package/dist/alert-dialog.cjs.js +0 -2
- package/dist/alert-dialog.cjs.js.map +0 -1
- package/dist/alert-dialog.es.js.map +0 -1
- package/dist/alert.cjs.js.map +0 -1
- package/dist/alert.es.js.map +0 -1
- package/dist/aspect-ratio.cjs.js.map +0 -1
- package/dist/aspect-ratio.es.js.map +0 -1
- package/dist/avatar.cjs.js.map +0 -1
- package/dist/avatar.es.js.map +0 -1
- package/dist/badge.cjs.js.map +0 -1
- package/dist/badge.es.js.map +0 -1
- package/dist/breadcrumb.cjs.js.map +0 -1
- package/dist/breadcrumb.es.js.map +0 -1
- package/dist/button.cjs.js.map +0 -1
- package/dist/button.es.js.map +0 -1
- package/dist/calendar.cjs.js +0 -2
- package/dist/calendar.cjs.js.map +0 -1
- package/dist/calendar.es.js.map +0 -1
- package/dist/card.cjs.js.map +0 -1
- package/dist/card.es.js.map +0 -1
- package/dist/carousel.cjs.js +0 -2
- package/dist/carousel.cjs.js.map +0 -1
- package/dist/carousel.es.js.map +0 -1
- package/dist/chart.cjs.js.map +0 -1
- package/dist/chart.es.js.map +0 -1
- package/dist/checkbox.cjs.js.map +0 -1
- package/dist/checkbox.es.js.map +0 -1
- package/dist/collapsible.cjs.js.map +0 -1
- package/dist/collapsible.es.js.map +0 -1
- package/dist/command.cjs.js +0 -2
- package/dist/command.cjs.js.map +0 -1
- package/dist/command.es.js.map +0 -1
- package/dist/context-menu.cjs.js.map +0 -1
- package/dist/context-menu.es.js.map +0 -1
- package/dist/dialog.cjs.js.map +0 -1
- package/dist/dialog.es.js.map +0 -1
- package/dist/drawer.cjs.js.map +0 -1
- package/dist/drawer.es.js.map +0 -1
- package/dist/dropdown-menu.cjs.js.map +0 -1
- package/dist/dropdown-menu.es.js.map +0 -1
- package/dist/form.cjs.js +0 -2
- package/dist/form.cjs.js.map +0 -1
- package/dist/form.es.js.map +0 -1
- package/dist/hover-card.cjs.js.map +0 -1
- package/dist/hover-card.es.js.map +0 -1
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/input.cjs.js.map +0 -1
- package/dist/input.es.js.map +0 -1
- package/dist/label.cjs.js.map +0 -1
- package/dist/label.es.js.map +0 -1
- package/dist/menubar.cjs.js.map +0 -1
- package/dist/menubar.es.js.map +0 -1
- package/dist/navigation-menu.cjs.js.map +0 -1
- package/dist/navigation-menu.es.js.map +0 -1
- package/dist/pagination.cjs.js +0 -2
- package/dist/pagination.cjs.js.map +0 -1
- package/dist/pagination.es.js.map +0 -1
- package/dist/popover.cjs.js.map +0 -1
- package/dist/popover.es.js.map +0 -1
- package/dist/progress.cjs.js.map +0 -1
- package/dist/progress.es.js.map +0 -1
- package/dist/radio-group.cjs.js.map +0 -1
- package/dist/radio-group.es.js.map +0 -1
- package/dist/resizable.cjs.js.map +0 -1
- package/dist/resizable.es.js.map +0 -1
- package/dist/scroll-area.cjs.js.map +0 -1
- package/dist/scroll-area.es.js.map +0 -1
- package/dist/search.cjs.js +0 -2
- package/dist/search.cjs.js.map +0 -1
- package/dist/search.es.js.map +0 -1
- package/dist/select.cjs.js.map +0 -1
- package/dist/select.es.js.map +0 -1
- package/dist/separator.cjs.js.map +0 -1
- package/dist/separator.es.js.map +0 -1
- package/dist/sheet.cjs.js.map +0 -1
- package/dist/sheet.es.js.map +0 -1
- package/dist/skeleton.cjs.js.map +0 -1
- package/dist/skeleton.es.js.map +0 -1
- package/dist/slider.cjs.js.map +0 -1
- package/dist/slider.es.js.map +0 -1
- package/dist/sonner.cjs.js.map +0 -1
- package/dist/sonner.es.js.map +0 -1
- package/dist/switch.cjs.js.map +0 -1
- package/dist/switch.es.js.map +0 -1
- package/dist/table.cjs.js.map +0 -1
- package/dist/table.es.js.map +0 -1
- package/dist/tabs.cjs.js.map +0 -1
- package/dist/tabs.es.js.map +0 -1
- package/dist/text.cjs.js.map +0 -1
- package/dist/text.es.js.map +0 -1
- package/dist/textarea.cjs.js.map +0 -1
- package/dist/textarea.es.js.map +0 -1
- package/dist/theme-provider.cjs.js.map +0 -1
- package/dist/theme-provider.es.js.map +0 -1
- package/dist/theme-toggle-CsOzHnq2.js +0 -2
- package/dist/theme-toggle.cjs.js +0 -2
- package/dist/theme-toggle.cjs.js.map +0 -1
- package/dist/theme-toggle.es.js +0 -10
- package/dist/theme-toggle.es.js.map +0 -1
- package/dist/toast.cjs.js.map +0 -1
- package/dist/toast.es.js.map +0 -1
- package/dist/toaster-CjkfZJj0.js +0 -2
- package/dist/toaster.cjs.js +0 -2
- package/dist/toaster.cjs.js.map +0 -1
- package/dist/toaster.es.js +0 -8
- package/dist/toaster.es.js.map +0 -1
- package/dist/toggle-group.cjs.js.map +0 -1
- package/dist/toggle-group.es.js.map +0 -1
- package/dist/toggle.cjs.js.map +0 -1
- package/dist/toggle.es.js.map +0 -1
- package/dist/tooltip.cjs.js.map +0 -1
- package/dist/tooltip.es.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.mjs","sources":["../packages/ui-web/src/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport * as React from 'react';\nimport {\n Controller,\n FormProvider,\n useFormContext,\n type ControllerProps,\n type FieldPath,\n type FieldValues,\n} from 'react-hook-form';\n\nimport {\n FormControlBaseProps,\n FormDescriptionBaseProps,\n FormItemBaseProps,\n FormLabelBaseProps,\n FormMessageBaseProps,\n} from '@gv-tech/ui-core';\nimport { Label } from './label';\nimport { cn } from './lib/utils';\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 | null>(null);\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 if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n if (!itemContext) {\n throw new Error('useFormField should be used within <FormItem>');\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\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 | null>(null);\n\nconst FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & FormItemBaseProps>(\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 },\n);\nFormItem.displayName = 'FormItem';\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & FormLabelBaseProps\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField();\n\n return <Label ref={ref} className={cn(error && 'text-destructive', className)} htmlFor={formItemId} {...props} />;\n});\nFormLabel.displayName = 'FormLabel';\n\nconst FormControl = React.forwardRef<React.ElementRef<typeof Slot>, 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={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}\n aria-invalid={!!error}\n {...props}\n />\n );\n },\n);\nFormControl.displayName = 'FormControl';\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormDescriptionBaseProps\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p ref={ref} id={formDescriptionId} className={cn('text-muted-foreground text-[0.8rem]', className)} {...props} />\n );\n});\nFormDescription.displayName = 'FormDescription';\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement> & FormMessageBaseProps\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 ref={ref} id={formMessageId} className={cn('text-destructive text-[0.8rem] font-medium', className)} {...props}>\n {body}\n </p>\n );\n});\nFormMessage.displayName = 'FormMessage';\n\nexport { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };\nexport type {\n FormControlBaseProps as FormControlProps,\n FormDescriptionBaseProps as FormDescriptionProps,\n FormItemBaseProps as FormItemProps,\n FormLabelBaseProps as FormLabelProps,\n FormMessageBaseProps as FormMessageProps,\n};\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","jsx","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":";;;;;AAwBA,MAAMA,IAAOC,GASPC,IAAmBC,EAAM,cAA4C,IAAI,GAEzEC,IAAY,CAGhB;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAAA,IAACJ,EAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAMG,EAAM,KAAA,GAC9C,UAAAC,gBAAAA,EAAAA,IAACC,GAAA,EAAY,GAAGF,GAAO,GACzB,GAIEG,IAAe,MAAM;AACzB,QAAMC,IAAeN,EAAM,WAAWD,CAAgB,GAChDQ,IAAcP,EAAM,WAAWQ,CAAe,GAC9C,EAAE,eAAAC,GAAe,WAAAC,EAAA,IAAcC,EAAA;AAErC,MAAI,CAACL;AACH,UAAM,IAAI,MAAM,gDAAgD;AAGlE,MAAI,CAACC;AACH,UAAM,IAAI,MAAM,+CAA+C;AAGjE,QAAMK,IAAaH,EAAcH,EAAa,MAAMI,CAAS,GAEvD,EAAE,IAAAG,MAAON;AAEf,SAAO;AAAA,IACL,IAAAM;AAAA,IACA,MAAMP,EAAa;AAAA,IACnB,YAAY,GAAGO,CAAE;AAAA,IACjB,mBAAmB,GAAGA,CAAE;AAAA,IACxB,eAAe,GAAGA,CAAE;AAAA,IACpB,GAAGD;AAAA,EAAA;AAEP,GAMMJ,IAAkBR,EAAM,cAA2C,IAAI,GAEvEc,IAAWd,EAAM;AAAA,EACrB,CAAC,EAAE,WAAAe,GAAW,GAAGb,EAAA,GAASc,MAAQ;AAChC,UAAMH,IAAKb,EAAM,MAAA;AAEjB,iCACGQ,EAAgB,UAAhB,EAAyB,OAAO,EAAE,IAAAK,KACjC,UAAAV,gBAAAA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AE,WAAAe,GAAW,UAAAa,GAAU,GAAG1B,EAAA,GAASc,MAAQ;AAC5C,QAAM,EAAE,OAAAG,GAAO,eAAAK,EAAA,IAAkBnB,EAAA,GAC3BwB,IAAOV,IAAQ,OAAOA,GAAO,WAAW,EAAE,IAAIS;AAEpD,SAAKC,IAKH1B,gBAAAA,EAAAA,IAAC,KAAA,EAAE,KAAAa,GAAU,IAAIQ,GAAe,WAAWP,EAAG,8CAA8CF,CAAS,GAAI,GAAGb,GACzG,UAAA2B,EAAA,CACH,IANO;AAQX,CAAC;AACDF,EAAY,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),i=require("react"),s=require("./utils-DKStzUzN.js");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=c(i),u=r.Root2$3,f=r.Trigger$1,n=l.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},d)=>r.jsxRuntimeExports.jsx(r.Content2$3,{ref:d,align:o,sideOffset:t,className:s.cn("bg-popover text-popover-foreground 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 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none",e),...a}));n.displayName=r.Content2$3.displayName;exports.HoverCard=u;exports.HoverCardContent=n;exports.HoverCardTrigger=f;
|
|
2
|
-
//# sourceMappingURL=hover-card.cjs.
|
|
2
|
+
//# sourceMappingURL=hover-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover-card.cjs","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\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> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\nexport type {\n HoverCardContentBaseProps as HoverCardContentProps,\n HoverCardBaseProps as HoverCardProps,\n HoverCardTriggerBaseProps as HoverCardTriggerProps,\n};\n"],"names":["HoverCard","HoverCardPrimitive.Root","HoverCardTrigger","HoverCardPrimitive.Trigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","HoverCardPrimitive.Content","cn"],"mappings":"mdAQMA,EAAYC,EAAAA,QAEZC,EAAmBC,EAAAA,UAEnBC,EAAmBC,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,MAAAH,EACA,WAAAC,EACA,UAAWK,EAAAA,GACT,keACAP,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDL,EAAiB,YAAcQ,EAAAA,WAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover-card.mjs","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\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> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\nexport type {\n HoverCardContentBaseProps as HoverCardContentProps,\n HoverCardBaseProps as HoverCardProps,\n HoverCardTriggerBaseProps as HoverCardTriggerProps,\n};\n"],"names":["HoverCard","HoverCardPrimitive.Root","HoverCardTrigger","HoverCardPrimitive.Trigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","HoverCardPrimitive.Content","cn"],"mappings":";;;;AAQA,MAAMA,IAAYC,GAEZC,IAAmBC,GAEnBC,IAAmBC,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MAC5DC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWK;AAAA,MACT;AAAA,MACAP;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACD;AACDL,EAAiB,cAAcQ,EAA2B;"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./theme-toggle-1XGhXPhH.js"),N=require("./utils-DKStzUzN.js"),D=require("./accordion.cjs"),v=require("./alert.cjs"),t=require("./alert-dialog.cjs"),V=require("./aspect-ratio.cjs"),w=require("./avatar.cjs"),F=require("./badge.cjs"),p=require("./breadcrumb.cjs"),L=require("./button.cjs"),B=require("./calendar.cjs"),C=require("./card.cjs"),M=require("./carousel.cjs"),b=require("./chart.cjs"),f=require("./checkbox.cjs"),P=require("./collapsible.cjs"),u=require("./command.cjs"),r=require("./context-menu.cjs"),a=require("./dialog.cjs"),n=require("./drawer.cjs"),o=require("./dropdown-menu.cjs"),g=require("./form.cjs"),A=require("./hover-card.cjs"),O=require("./input.cjs"),z=require("./label.cjs"),e=require("./menubar.cjs"),s=require("./navigation-menu.cjs"),d=require("./pagination.cjs"),S=require("./popover.cjs"),E=require("./progress.cjs"),R=require("./radio-group.cjs"),q=require("./resizable.cjs"),y=require("./scroll-area.cjs"),G=require("./search.cjs"),i=require("./select.cjs"),U=require("./separator.cjs"),l=require("./sheet.cjs"),j=require("./skeleton.cjs"),W=require("./slider.cjs"),_=require("./sonner.cjs"),$=require("./switch.cjs"),c=require("./table.cjs"),x=require("./tabs.cjs"),H=require("./text.cjs"),J=require("./textarea.cjs"),K=require("./toggle.cjs"),k=require("./toggle-group.cjs"),h=require("./tooltip.cjs"),m=require("./toast.cjs"),Q=require("./theme-provider.cjs"),I=require("./toaster-CKwNMV1Z.js"),X=require("./toggle-BAzsZDaN.js"),Y={px:"1px",0:"0",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem"},Z={none:"0",sm:"calc(var(--radius) - 4px)",md:"calc(var(--radius) - 2px)",lg:"var(--radius)",xl:"calc(var(--radius) + 4px)","2xl":"calc(var(--radius) + 8px)",full:"9999px"},ee={none:0,sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},re={fontFamily:{sans:'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem"},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"}},oe={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",default:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},te={palette:T.palette,theme:T.theme};exports.ThemeToggle=T.ThemeToggle;exports.palette=T.palette;exports.theme=T.theme;exports.cn=N.cn;exports.Accordion=D.Accordion;exports.AccordionContent=D.AccordionContent;exports.AccordionItem=D.AccordionItem;exports.AccordionTrigger=D.AccordionTrigger;exports.Alert=v.Alert;exports.AlertDescription=v.AlertDescription;exports.AlertTitle=v.AlertTitle;exports.AlertDialog=t.AlertDialog;exports.AlertDialogAction=t.AlertDialogAction;exports.AlertDialogCancel=t.AlertDialogCancel;exports.AlertDialogContent=t.AlertDialogContent;exports.AlertDialogDescription=t.AlertDialogDescription;exports.AlertDialogFooter=t.AlertDialogFooter;exports.AlertDialogHeader=t.AlertDialogHeader;exports.AlertDialogOverlay=t.AlertDialogOverlay;exports.AlertDialogPortal=t.AlertDialogPortal;exports.AlertDialogTitle=t.AlertDialogTitle;exports.AlertDialogTrigger=t.AlertDialogTrigger;exports.AspectRatio=V.AspectRatio;exports.Avatar=w.Avatar;exports.AvatarFallback=w.AvatarFallback;exports.AvatarImage=w.AvatarImage;exports.Badge=F.Badge;exports.badgeVariants=F.badgeVariants;exports.Breadcrumb=p.Breadcrumb;exports.BreadcrumbEllipsis=p.BreadcrumbEllipsis;exports.BreadcrumbItem=p.BreadcrumbItem;exports.BreadcrumbLink=p.BreadcrumbLink;exports.BreadcrumbList=p.BreadcrumbList;exports.BreadcrumbPage=p.BreadcrumbPage;exports.BreadcrumbSeparator=p.BreadcrumbSeparator;exports.Button=L.Button;exports.buttonVariants=L.buttonVariants;exports.Calendar=B.Calendar;exports.CalendarDayButton=B.CalendarDayButton;exports.Card=C.Card;exports.CardContent=C.CardContent;exports.CardDescription=C.CardDescription;exports.CardFooter=C.CardFooter;exports.CardHeader=C.CardHeader;exports.CardTitle=C.CardTitle;exports.Carousel=M.Carousel;exports.CarouselContent=M.CarouselContent;exports.CarouselItem=M.CarouselItem;exports.CarouselNext=M.CarouselNext;exports.CarouselPrevious=M.CarouselPrevious;exports.ChartContainer=b.ChartContainer;exports.ChartLegend=b.ChartLegend;exports.ChartLegendContent=b.ChartLegendContent;exports.ChartStyle=b.ChartStyle;exports.ChartTooltip=b.ChartTooltip;exports.ChartTooltipContent=b.ChartTooltipContent;exports.Checkbox=f.Checkbox;exports.Collapsible=P.Collapsible;exports.CollapsibleContent=P.CollapsibleContent;exports.CollapsibleTrigger=P.CollapsibleTrigger;exports.Command=u.Command;exports.CommandDialog=u.CommandDialog;exports.CommandEmpty=u.CommandEmpty;exports.CommandGroup=u.CommandGroup;exports.CommandInput=u.CommandInput;exports.CommandItem=u.CommandItem;exports.CommandList=u.CommandList;exports.CommandSeparator=u.CommandSeparator;exports.CommandShortcut=u.CommandShortcut;exports.ContextMenu=r.ContextMenu;exports.ContextMenuCheckboxItem=r.ContextMenuCheckboxItem;exports.ContextMenuContent=r.ContextMenuContent;exports.ContextMenuGroup=r.ContextMenuGroup;exports.ContextMenuItem=r.ContextMenuItem;exports.ContextMenuLabel=r.ContextMenuLabel;exports.ContextMenuPortal=r.ContextMenuPortal;exports.ContextMenuRadioGroup=r.ContextMenuRadioGroup;exports.ContextMenuRadioItem=r.ContextMenuRadioItem;exports.ContextMenuSeparator=r.ContextMenuSeparator;exports.ContextMenuShortcut=r.ContextMenuShortcut;exports.ContextMenuSub=r.ContextMenuSub;exports.ContextMenuSubContent=r.ContextMenuSubContent;exports.ContextMenuSubTrigger=r.ContextMenuSubTrigger;exports.ContextMenuTrigger=r.ContextMenuTrigger;exports.Dialog=a.Dialog;exports.DialogClose=a.DialogClose;exports.DialogContent=a.DialogContent;exports.DialogDescription=a.DialogDescription;exports.DialogFooter=a.DialogFooter;exports.DialogHeader=a.DialogHeader;exports.DialogOverlay=a.DialogOverlay;exports.DialogPortal=a.DialogPortal;exports.DialogTitle=a.DialogTitle;exports.DialogTrigger=a.DialogTrigger;exports.Drawer=n.Drawer;exports.DrawerClose=n.DrawerClose;exports.DrawerContent=n.DrawerContent;exports.DrawerDescription=n.DrawerDescription;exports.DrawerFooter=n.DrawerFooter;exports.DrawerHeader=n.DrawerHeader;exports.DrawerOverlay=n.DrawerOverlay;exports.DrawerPortal=n.DrawerPortal;exports.DrawerTitle=n.DrawerTitle;exports.DrawerTrigger=n.DrawerTrigger;exports.DropdownMenu=o.DropdownMenu;exports.DropdownMenuCheckboxItem=o.DropdownMenuCheckboxItem;exports.DropdownMenuContent=o.DropdownMenuContent;exports.DropdownMenuGroup=o.DropdownMenuGroup;exports.DropdownMenuItem=o.DropdownMenuItem;exports.DropdownMenuLabel=o.DropdownMenuLabel;exports.DropdownMenuPortal=o.DropdownMenuPortal;exports.DropdownMenuRadioGroup=o.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=o.DropdownMenuRadioItem;exports.DropdownMenuSeparator=o.DropdownMenuSeparator;exports.DropdownMenuShortcut=o.DropdownMenuShortcut;exports.DropdownMenuSub=o.DropdownMenuSub;exports.DropdownMenuSubContent=o.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=o.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=o.DropdownMenuTrigger;exports.Form=g.Form;exports.FormControl=g.FormControl;exports.FormDescription=g.FormDescription;exports.FormField=g.FormField;exports.FormItem=g.FormItem;exports.FormLabel=g.FormLabel;exports.FormMessage=g.FormMessage;exports.useFormField=g.useFormField;exports.HoverCard=A.HoverCard;exports.HoverCardContent=A.HoverCardContent;exports.HoverCardTrigger=A.HoverCardTrigger;exports.Input=O.Input;exports.Label=z.Label;exports.Menubar=e.Menubar;exports.MenubarCheckboxItem=e.MenubarCheckboxItem;exports.MenubarContent=e.MenubarContent;exports.MenubarGroup=e.MenubarGroup;exports.MenubarItem=e.MenubarItem;exports.MenubarLabel=e.MenubarLabel;exports.MenubarMenu=e.MenubarMenu;exports.MenubarPortal=e.MenubarPortal;exports.MenubarRadioGroup=e.MenubarRadioGroup;exports.MenubarRadioItem=e.MenubarRadioItem;exports.MenubarSeparator=e.MenubarSeparator;exports.MenubarShortcut=e.MenubarShortcut;exports.MenubarSub=e.MenubarSub;exports.MenubarSubContent=e.MenubarSubContent;exports.MenubarSubTrigger=e.MenubarSubTrigger;exports.MenubarTrigger=e.MenubarTrigger;exports.NavigationMenu=s.NavigationMenu;exports.NavigationMenuContent=s.NavigationMenuContent;exports.NavigationMenuIndicator=s.NavigationMenuIndicator;exports.NavigationMenuItem=s.NavigationMenuItem;exports.NavigationMenuLink=s.NavigationMenuLink;exports.NavigationMenuList=s.NavigationMenuList;exports.NavigationMenuTrigger=s.NavigationMenuTrigger;exports.NavigationMenuViewport=s.NavigationMenuViewport;exports.navigationMenuTriggerStyle=s.navigationMenuTriggerStyle;exports.Pagination=d.Pagination;exports.PaginationContent=d.PaginationContent;exports.PaginationEllipsis=d.PaginationEllipsis;exports.PaginationItem=d.PaginationItem;exports.PaginationLink=d.PaginationLink;exports.PaginationNext=d.PaginationNext;exports.PaginationPrevious=d.PaginationPrevious;exports.Popover=S.Popover;exports.PopoverAnchor=S.PopoverAnchor;exports.PopoverContent=S.PopoverContent;exports.PopoverTrigger=S.PopoverTrigger;exports.Progress=E.Progress;exports.RadioGroup=R.RadioGroup;exports.RadioGroupItem=R.RadioGroupItem;exports.ResizableHandle=q.ResizableHandle;exports.ResizablePanel=q.ResizablePanel;exports.ResizablePanelGroup=q.ResizablePanelGroup;exports.ScrollArea=y.ScrollArea;exports.ScrollBar=y.ScrollBar;exports.Search=G.Search;exports.SearchTrigger=G.SearchTrigger;exports.Select=i.Select;exports.SelectContent=i.SelectContent;exports.SelectGroup=i.SelectGroup;exports.SelectItem=i.SelectItem;exports.SelectLabel=i.SelectLabel;exports.SelectScrollDownButton=i.SelectScrollDownButton;exports.SelectScrollUpButton=i.SelectScrollUpButton;exports.SelectSeparator=i.SelectSeparator;exports.SelectTrigger=i.SelectTrigger;exports.SelectValue=i.SelectValue;exports.Separator=U.Separator;exports.Sheet=l.Sheet;exports.SheetClose=l.SheetClose;exports.SheetContent=l.SheetContent;exports.SheetDescription=l.SheetDescription;exports.SheetFooter=l.SheetFooter;exports.SheetHeader=l.SheetHeader;exports.SheetOverlay=l.SheetOverlay;exports.SheetPortal=l.SheetPortal;exports.SheetTitle=l.SheetTitle;exports.SheetTrigger=l.SheetTrigger;exports.Skeleton=j.Skeleton;exports.Slider=W.Slider;exports.SonnerToaster=_.Toaster;exports.Switch=$.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=x.Tabs;exports.TabsContent=x.TabsContent;exports.TabsList=x.TabsList;exports.TabsTrigger=x.TabsTrigger;exports.Text=H.Text;exports.textVariants=H.textVariants;exports.Textarea=J.Textarea;exports.Toggle=K.Toggle;exports.ToggleGroup=k.ToggleGroup;exports.ToggleGroupItem=k.ToggleGroupItem;exports.Tooltip=h.Tooltip;exports.TooltipContent=h.TooltipContent;exports.TooltipProvider=h.TooltipProvider;exports.TooltipTrigger=h.TooltipTrigger;exports.Toast=m.Toast;exports.ToastAction=m.ToastAction;exports.ToastClose=m.ToastClose;exports.ToastDescription=m.ToastDescription;exports.ToastProvider=m.ToastProvider;exports.ToastTitle=m.ToastTitle;exports.ToastViewport=m.ToastViewport;exports.ThemeProvider=Q.ThemeProvider;exports.Toaster=I.Toaster;exports.toast=I.toast;exports.useToast=I.useToast;exports.toggleVariants=X.toggleVariants;exports.radii=Z;exports.radiiNumeric=ee;exports.shadows=oe;exports.spacing=Y;exports.tokens=te;exports.typography=re;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../packages/design-tokens/src/spacing.ts","../packages/design-tokens/src/radii.ts","../packages/design-tokens/src/typography.ts","../packages/design-tokens/src/shadows.ts","../packages/design-tokens/src/index.ts"],"sourcesContent":["// Spacing scale for the GV Tech design system.\n// Based on a 4px baseline grid. Values are in rem (assuming 16px root font size).\n\nexport const spacing = {\n px: '1px',\n 0: '0',\n 0.5: '0.125rem', // 2px\n 1: '0.25rem', // 4px\n 1.5: '0.375rem', // 6px\n 2: '0.5rem', // 8px\n 2.5: '0.625rem', // 10px\n 3: '0.75rem', // 12px\n 3.5: '0.875rem', // 14px\n 4: '1rem', // 16px\n 5: '1.25rem', // 20px\n 6: '1.5rem', // 24px\n 7: '1.75rem', // 28px\n 8: '2rem', // 32px\n 9: '2.25rem', // 36px\n 10: '2.5rem', // 40px\n 12: '3rem', // 48px\n 14: '3.5rem', // 56px\n 16: '4rem', // 64px\n 20: '5rem', // 80px\n 24: '6rem', // 96px\n 32: '8rem', // 128px\n 40: '10rem', // 160px\n 48: '12rem', // 192px\n 56: '14rem', // 224px\n 64: '16rem', // 256px\n} as const;\n\nexport type SpacingTokens = typeof spacing;\n","// Border radius tokens for the GV Tech design system.\n\nexport const radii = {\n none: '0',\n sm: 'calc(var(--radius) - 4px)',\n md: 'calc(var(--radius) - 2px)',\n lg: 'var(--radius)',\n xl: 'calc(var(--radius) + 4px)',\n '2xl': 'calc(var(--radius) + 8px)',\n full: '9999px',\n} as const;\n\n// Numeric radius values (in px) for React Native, which doesn't support CSS calc().\n// Based on a default --radius of 0.5rem (8px).\nexport const radiiNumeric = {\n none: 0,\n sm: 4, // 8 - 4\n md: 6, // 8 - 2\n lg: 8, // base\n xl: 12, // 8 + 4\n '2xl': 16, // 8 + 8\n full: 9999,\n} as const;\n\nexport type RadiiTokens = typeof radii;\nexport type RadiiNumericTokens = typeof radiiNumeric;\n","// Typography tokens for the GV Tech design system.\n// Defines font families, sizes, weights, and line heights.\n\nexport const typography = {\n fontFamily: {\n sans: 'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: 'ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace',\n },\n fontSize: {\n xs: '0.75rem', // 12px\n sm: '0.875rem', // 14px\n base: '1rem', // 16px\n lg: '1.125rem', // 18px\n xl: '1.25rem', // 20px\n '2xl': '1.5rem', // 24px\n '3xl': '1.875rem', // 30px\n '4xl': '2.25rem', // 36px\n '5xl': '3rem', // 48px\n },\n fontWeight: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n lineHeight: {\n none: '1',\n tight: '1.25',\n snug: '1.375',\n normal: '1.5',\n relaxed: '1.625',\n loose: '2',\n },\n} as const;\n\nexport type TypographyTokens = typeof typography;\n","// Shadow / elevation tokens for the GV Tech design system.\n// Web values use CSS box-shadow syntax.\n// Native consumers should map these to platform-specific elevation or shadow props.\n\nexport const shadows = {\n none: 'none',\n sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',\n default: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',\n md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',\n lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',\n xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',\n '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',\n inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',\n} as const;\n\nexport type ShadowTokens = typeof shadows;\n","// @gv-tech/design-tokens\n// Single source of truth for all design tokens in the GV Tech design system.\n// Consumed by both web (ui-web) and native (ui-native) implementations.\n\n// Color tokens\nexport { palette } from './palette';\nexport type { PaletteTokens } from './palette';\n\nexport { theme } from './theme';\nexport type { ThemeTokens } from './theme';\n\n// Layout tokens\nexport { spacing } from './spacing';\nexport type { SpacingTokens } from './spacing';\n\nexport { radii, radiiNumeric } from './radii';\nexport type { RadiiNumericTokens, RadiiTokens } from './radii';\n\n// Typography tokens\nexport { typography } from './typography';\nexport type { TypographyTokens } from './typography';\n\n// Elevation tokens\nexport { shadows } from './shadows';\nexport type { ShadowTokens } from './shadows';\n\n// Convenience re-export of all tokens as a single object.\n// Mirrors the legacy `tokens` export from `src/theme/tokens.ts`.\nimport { palette } from './palette';\nimport { theme } from './theme';\n\nexport const tokens = {\n palette,\n theme,\n} as const;\n"],"names":["spacing","radii","radiiNumeric","typography","shadows","tokens","palette","theme"],"mappings":"qiDAGaA,EAAU,CACrB,GAAI,MACJ,EAAG,IACH,GAAK,WACL,EAAG,UACH,IAAK,WACL,EAAG,SACH,IAAK,WACL,EAAG,UACH,IAAK,WACL,EAAG,OACH,EAAG,UACH,EAAG,SACH,EAAG,UACH,EAAG,OACH,EAAG,UACH,GAAI,SACJ,GAAI,OACJ,GAAI,SACJ,GAAI,OACJ,GAAI,OACJ,GAAI,OACJ,GAAI,OACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,OACN,EC5BaC,EAAQ,CACnB,KAAM,IACN,GAAI,4BACJ,GAAI,4BACJ,GAAI,gBACJ,GAAI,4BACJ,MAAO,4BACP,KAAM,QACR,EAIaC,GAAe,CAC1B,KAAM,EACN,GAAI,EACJ,GAAI,EACJ,GAAI,EACJ,GAAI,GACJ,MAAO,GACP,KAAM,IACR,ECnBaC,GAAa,CACxB,WAAY,CACV,KAAM,8HACN,KAAM,wFAAA,EAER,SAAU,CACR,GAAI,UACJ,GAAI,WACJ,KAAM,OACN,GAAI,WACJ,GAAI,UACJ,MAAO,SACP,MAAO,WACP,MAAO,UACP,MAAO,MAAA,EAET,WAAY,CACV,OAAQ,MACR,OAAQ,MACR,SAAU,MACV,KAAM,KAAA,EAER,WAAY,CACV,KAAM,IACN,MAAO,OACP,KAAM,QACN,OAAQ,MACR,QAAS,QACT,MAAO,GAAA,CAEX,EC7BaC,GAAU,CACrB,KAAM,OACN,GAAI,gCACJ,QAAS,gEACT,GAAI,mEACJ,GAAI,qEACJ,GAAI,sEACJ,MAAO,sCACP,MAAO,qCACT,ECkBaC,GAAS,CACpB,QAAAC,EAAAA,QACA,MAAAC,EAAAA,KACF"}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e, p as r } from "./theme-toggle-
|
|
3
|
-
import { T as u } from "./theme-toggle-
|
|
2
|
+
import { t as e, p as r } from "./theme-toggle-B1LVRtUN.mjs";
|
|
3
|
+
import { T as u } from "./theme-toggle-B1LVRtUN.mjs";
|
|
4
4
|
import { c as s } from "./utils-Dk-Gx69q.mjs";
|
|
5
|
-
import { Accordion as C, AccordionContent as b, AccordionItem as c, AccordionTrigger as T } from "./accordion.
|
|
6
|
-
import { Alert as f, AlertDescription as D, AlertTitle as S } from "./alert.
|
|
7
|
-
import { AlertDialog as v, AlertDialogAction as w, AlertDialogCancel as A, AlertDialogContent as P, AlertDialogDescription as I, AlertDialogFooter as F, AlertDialogHeader as L, AlertDialogOverlay as y, AlertDialogPortal as B, AlertDialogTitle as R, AlertDialogTrigger as G } from "./alert-dialog.
|
|
8
|
-
import { AspectRatio as N } from "./aspect-ratio.
|
|
9
|
-
import { Avatar as V, AvatarFallback as z, AvatarImage as O } from "./avatar.
|
|
10
|
-
import { Badge as U, badgeVariants as W } from "./badge.
|
|
11
|
-
import { Breadcrumb as q, BreadcrumbEllipsis as J, BreadcrumbItem as K, BreadcrumbLink as Q, BreadcrumbList as X, BreadcrumbPage as Y, BreadcrumbSeparator as Z } from "./breadcrumb.
|
|
12
|
-
import { Button as $, buttonVariants as ee } from "./button.
|
|
13
|
-
import { Calendar as oe, CalendarDayButton as te } from "./calendar.
|
|
14
|
-
import { Card as ne, CardContent as ie, CardDescription as le, CardFooter as pe, CardHeader as me, CardTitle as xe } from "./card.
|
|
15
|
-
import { Carousel as ge, CarouselContent as se, CarouselItem as de, CarouselNext as Ce, CarouselPrevious as be } from "./carousel.
|
|
16
|
-
import { ChartContainer as Te, ChartLegend as Me, ChartLegendContent as fe, ChartStyle as De, ChartTooltip as Se, ChartTooltipContent as he } from "./chart.
|
|
17
|
-
import { Checkbox as we } from "./checkbox.
|
|
18
|
-
import { Collapsible as Pe, CollapsibleContent as Ie, CollapsibleTrigger as Fe } from "./collapsible.
|
|
19
|
-
import { Command as ye, CommandDialog as Be, CommandEmpty as Re, CommandGroup as Ge, CommandInput as He, CommandItem as Ne, CommandList as ke, CommandSeparator as Ve, CommandShortcut as ze } from "./command.
|
|
20
|
-
import { ContextMenu as Ee, ContextMenuCheckboxItem as Ue, ContextMenuContent as We, ContextMenuGroup as je, ContextMenuItem as qe, ContextMenuLabel as Je, ContextMenuPortal as Ke, ContextMenuRadioGroup as Qe, ContextMenuRadioItem as Xe, ContextMenuSeparator as Ye, ContextMenuShortcut as Ze, ContextMenuSub as _e, ContextMenuSubContent as $e, ContextMenuSubTrigger as er, ContextMenuTrigger as rr } from "./context-menu.
|
|
21
|
-
import { Dialog as tr, DialogClose as ar, DialogContent as nr, DialogDescription as ir, DialogFooter as lr, DialogHeader as pr, DialogOverlay as mr, DialogPortal as xr, DialogTitle as ur, DialogTrigger as gr } from "./dialog.
|
|
22
|
-
import { Drawer as dr, DrawerClose as Cr, DrawerContent as br, DrawerDescription as cr, DrawerFooter as Tr, DrawerHeader as Mr, DrawerOverlay as fr, DrawerPortal as Dr, DrawerTitle as Sr, DrawerTrigger as hr } from "./drawer.
|
|
23
|
-
import { DropdownMenu as wr, DropdownMenuCheckboxItem as Ar, DropdownMenuContent as Pr, DropdownMenuGroup as Ir, DropdownMenuItem as Fr, DropdownMenuLabel as Lr, DropdownMenuPortal as yr, DropdownMenuRadioGroup as Br, DropdownMenuRadioItem as Rr, DropdownMenuSeparator as Gr, DropdownMenuShortcut as Hr, DropdownMenuSub as Nr, DropdownMenuSubContent as kr, DropdownMenuSubTrigger as Vr, DropdownMenuTrigger as zr } from "./dropdown-menu.
|
|
24
|
-
import { Form as Er, FormControl as Ur, FormDescription as Wr, FormField as jr, FormItem as qr, FormLabel as Jr, FormMessage as Kr, useFormField as Qr } from "./form.
|
|
25
|
-
import { HoverCard as Yr, HoverCardContent as Zr, HoverCardTrigger as _r } from "./hover-card.
|
|
26
|
-
import { Input as eo } from "./input.
|
|
27
|
-
import { Label as oo } from "./label.
|
|
28
|
-
import { Menubar as ao, MenubarCheckboxItem as no, MenubarContent as io, MenubarGroup as lo, MenubarItem as po, MenubarLabel as mo, MenubarMenu as xo, MenubarPortal as uo, MenubarRadioGroup as go, MenubarRadioItem as so, MenubarSeparator as Co, MenubarShortcut as bo, MenubarSub as co, MenubarSubContent as To, MenubarSubTrigger as Mo, MenubarTrigger as fo } from "./menubar.
|
|
29
|
-
import { NavigationMenu as So, NavigationMenuContent as ho, NavigationMenuIndicator as vo, NavigationMenuItem as wo, NavigationMenuLink as Ao, NavigationMenuList as Po, NavigationMenuTrigger as Io, NavigationMenuViewport as Fo, navigationMenuTriggerStyle as Lo } from "./navigation-menu.
|
|
30
|
-
import { Pagination as Bo, PaginationContent as Ro, PaginationEllipsis as Go, PaginationItem as Ho, PaginationLink as No, PaginationNext as ko, PaginationPrevious as Vo } from "./pagination.
|
|
31
|
-
import { Popover as Oo, PopoverAnchor as Eo, PopoverContent as Uo, PopoverTrigger as Wo } from "./popover.
|
|
32
|
-
import { Progress as qo } from "./progress.
|
|
33
|
-
import { RadioGroup as Ko, RadioGroupItem as Qo } from "./radio-group.
|
|
34
|
-
import { ResizableHandle as Yo, ResizablePanel as Zo, ResizablePanelGroup as _o } from "./resizable.
|
|
35
|
-
import { ScrollArea as et, ScrollBar as rt } from "./scroll-area.
|
|
36
|
-
import { Search as tt, SearchTrigger as at } from "./search.
|
|
37
|
-
import { Select as it, SelectContent as lt, SelectGroup as pt, SelectItem as mt, SelectLabel as xt, SelectScrollDownButton as ut, SelectScrollUpButton as gt, SelectSeparator as st, SelectTrigger as dt, SelectValue as Ct } from "./select.
|
|
38
|
-
import { Separator as ct } from "./separator.
|
|
39
|
-
import { Sheet as Mt, SheetClose as ft, SheetContent as Dt, SheetDescription as St, SheetFooter as ht, SheetHeader as vt, SheetOverlay as wt, SheetPortal as At, SheetTitle as Pt, SheetTrigger as It } from "./sheet.
|
|
40
|
-
import { Skeleton as Lt } from "./skeleton.
|
|
41
|
-
import { Slider as Bt } from "./slider.
|
|
42
|
-
import { Toaster as Gt } from "./sonner.
|
|
43
|
-
import { Switch as Nt } from "./switch.
|
|
44
|
-
import { Table as Vt, TableBody as zt, TableCaption as Ot, TableCell as Et, TableFooter as Ut, TableHead as Wt, TableHeader as jt, TableRow as qt } from "./table.
|
|
45
|
-
import { Tabs as Kt, TabsContent as Qt, TabsList as Xt, TabsTrigger as Yt } from "./tabs.
|
|
46
|
-
import { Text as _t, textVariants as $t } from "./text.
|
|
47
|
-
import { Textarea as ra } from "./textarea.
|
|
48
|
-
import { Toggle as ta } from "./toggle.
|
|
49
|
-
import { ToggleGroup as na, ToggleGroupItem as ia } from "./toggle-group.
|
|
50
|
-
import { Tooltip as pa, TooltipContent as ma, TooltipProvider as xa, TooltipTrigger as ua } from "./tooltip.
|
|
51
|
-
import { Toast as sa, ToastAction as da, ToastClose as Ca, ToastDescription as ba, ToastProvider as ca, ToastTitle as Ta, ToastViewport as Ma } from "./toast.
|
|
52
|
-
import { ThemeProvider as Da } from "./theme-provider.
|
|
53
|
-
import { T as ha, t as va, u as wa } from "./toaster-
|
|
5
|
+
import { Accordion as C, AccordionContent as b, AccordionItem as c, AccordionTrigger as T } from "./accordion.mjs";
|
|
6
|
+
import { Alert as f, AlertDescription as D, AlertTitle as S } from "./alert.mjs";
|
|
7
|
+
import { AlertDialog as v, AlertDialogAction as w, AlertDialogCancel as A, AlertDialogContent as P, AlertDialogDescription as I, AlertDialogFooter as F, AlertDialogHeader as L, AlertDialogOverlay as y, AlertDialogPortal as B, AlertDialogTitle as R, AlertDialogTrigger as G } from "./alert-dialog.mjs";
|
|
8
|
+
import { AspectRatio as N } from "./aspect-ratio.mjs";
|
|
9
|
+
import { Avatar as V, AvatarFallback as z, AvatarImage as O } from "./avatar.mjs";
|
|
10
|
+
import { Badge as U, badgeVariants as W } from "./badge.mjs";
|
|
11
|
+
import { Breadcrumb as q, BreadcrumbEllipsis as J, BreadcrumbItem as K, BreadcrumbLink as Q, BreadcrumbList as X, BreadcrumbPage as Y, BreadcrumbSeparator as Z } from "./breadcrumb.mjs";
|
|
12
|
+
import { Button as $, buttonVariants as ee } from "./button.mjs";
|
|
13
|
+
import { Calendar as oe, CalendarDayButton as te } from "./calendar.mjs";
|
|
14
|
+
import { Card as ne, CardContent as ie, CardDescription as le, CardFooter as pe, CardHeader as me, CardTitle as xe } from "./card.mjs";
|
|
15
|
+
import { Carousel as ge, CarouselContent as se, CarouselItem as de, CarouselNext as Ce, CarouselPrevious as be } from "./carousel.mjs";
|
|
16
|
+
import { ChartContainer as Te, ChartLegend as Me, ChartLegendContent as fe, ChartStyle as De, ChartTooltip as Se, ChartTooltipContent as he } from "./chart.mjs";
|
|
17
|
+
import { Checkbox as we } from "./checkbox.mjs";
|
|
18
|
+
import { Collapsible as Pe, CollapsibleContent as Ie, CollapsibleTrigger as Fe } from "./collapsible.mjs";
|
|
19
|
+
import { Command as ye, CommandDialog as Be, CommandEmpty as Re, CommandGroup as Ge, CommandInput as He, CommandItem as Ne, CommandList as ke, CommandSeparator as Ve, CommandShortcut as ze } from "./command.mjs";
|
|
20
|
+
import { ContextMenu as Ee, ContextMenuCheckboxItem as Ue, ContextMenuContent as We, ContextMenuGroup as je, ContextMenuItem as qe, ContextMenuLabel as Je, ContextMenuPortal as Ke, ContextMenuRadioGroup as Qe, ContextMenuRadioItem as Xe, ContextMenuSeparator as Ye, ContextMenuShortcut as Ze, ContextMenuSub as _e, ContextMenuSubContent as $e, ContextMenuSubTrigger as er, ContextMenuTrigger as rr } from "./context-menu.mjs";
|
|
21
|
+
import { Dialog as tr, DialogClose as ar, DialogContent as nr, DialogDescription as ir, DialogFooter as lr, DialogHeader as pr, DialogOverlay as mr, DialogPortal as xr, DialogTitle as ur, DialogTrigger as gr } from "./dialog.mjs";
|
|
22
|
+
import { Drawer as dr, DrawerClose as Cr, DrawerContent as br, DrawerDescription as cr, DrawerFooter as Tr, DrawerHeader as Mr, DrawerOverlay as fr, DrawerPortal as Dr, DrawerTitle as Sr, DrawerTrigger as hr } from "./drawer.mjs";
|
|
23
|
+
import { DropdownMenu as wr, DropdownMenuCheckboxItem as Ar, DropdownMenuContent as Pr, DropdownMenuGroup as Ir, DropdownMenuItem as Fr, DropdownMenuLabel as Lr, DropdownMenuPortal as yr, DropdownMenuRadioGroup as Br, DropdownMenuRadioItem as Rr, DropdownMenuSeparator as Gr, DropdownMenuShortcut as Hr, DropdownMenuSub as Nr, DropdownMenuSubContent as kr, DropdownMenuSubTrigger as Vr, DropdownMenuTrigger as zr } from "./dropdown-menu.mjs";
|
|
24
|
+
import { Form as Er, FormControl as Ur, FormDescription as Wr, FormField as jr, FormItem as qr, FormLabel as Jr, FormMessage as Kr, useFormField as Qr } from "./form.mjs";
|
|
25
|
+
import { HoverCard as Yr, HoverCardContent as Zr, HoverCardTrigger as _r } from "./hover-card.mjs";
|
|
26
|
+
import { Input as eo } from "./input.mjs";
|
|
27
|
+
import { Label as oo } from "./label.mjs";
|
|
28
|
+
import { Menubar as ao, MenubarCheckboxItem as no, MenubarContent as io, MenubarGroup as lo, MenubarItem as po, MenubarLabel as mo, MenubarMenu as xo, MenubarPortal as uo, MenubarRadioGroup as go, MenubarRadioItem as so, MenubarSeparator as Co, MenubarShortcut as bo, MenubarSub as co, MenubarSubContent as To, MenubarSubTrigger as Mo, MenubarTrigger as fo } from "./menubar.mjs";
|
|
29
|
+
import { NavigationMenu as So, NavigationMenuContent as ho, NavigationMenuIndicator as vo, NavigationMenuItem as wo, NavigationMenuLink as Ao, NavigationMenuList as Po, NavigationMenuTrigger as Io, NavigationMenuViewport as Fo, navigationMenuTriggerStyle as Lo } from "./navigation-menu.mjs";
|
|
30
|
+
import { Pagination as Bo, PaginationContent as Ro, PaginationEllipsis as Go, PaginationItem as Ho, PaginationLink as No, PaginationNext as ko, PaginationPrevious as Vo } from "./pagination.mjs";
|
|
31
|
+
import { Popover as Oo, PopoverAnchor as Eo, PopoverContent as Uo, PopoverTrigger as Wo } from "./popover.mjs";
|
|
32
|
+
import { Progress as qo } from "./progress.mjs";
|
|
33
|
+
import { RadioGroup as Ko, RadioGroupItem as Qo } from "./radio-group.mjs";
|
|
34
|
+
import { ResizableHandle as Yo, ResizablePanel as Zo, ResizablePanelGroup as _o } from "./resizable.mjs";
|
|
35
|
+
import { ScrollArea as et, ScrollBar as rt } from "./scroll-area.mjs";
|
|
36
|
+
import { Search as tt, SearchTrigger as at } from "./search.mjs";
|
|
37
|
+
import { Select as it, SelectContent as lt, SelectGroup as pt, SelectItem as mt, SelectLabel as xt, SelectScrollDownButton as ut, SelectScrollUpButton as gt, SelectSeparator as st, SelectTrigger as dt, SelectValue as Ct } from "./select.mjs";
|
|
38
|
+
import { Separator as ct } from "./separator.mjs";
|
|
39
|
+
import { Sheet as Mt, SheetClose as ft, SheetContent as Dt, SheetDescription as St, SheetFooter as ht, SheetHeader as vt, SheetOverlay as wt, SheetPortal as At, SheetTitle as Pt, SheetTrigger as It } from "./sheet.mjs";
|
|
40
|
+
import { Skeleton as Lt } from "./skeleton.mjs";
|
|
41
|
+
import { Slider as Bt } from "./slider.mjs";
|
|
42
|
+
import { Toaster as Gt } from "./sonner.mjs";
|
|
43
|
+
import { Switch as Nt } from "./switch.mjs";
|
|
44
|
+
import { Table as Vt, TableBody as zt, TableCaption as Ot, TableCell as Et, TableFooter as Ut, TableHead as Wt, TableHeader as jt, TableRow as qt } from "./table.mjs";
|
|
45
|
+
import { Tabs as Kt, TabsContent as Qt, TabsList as Xt, TabsTrigger as Yt } from "./tabs.mjs";
|
|
46
|
+
import { Text as _t, textVariants as $t } from "./text.mjs";
|
|
47
|
+
import { Textarea as ra } from "./textarea.mjs";
|
|
48
|
+
import { Toggle as ta } from "./toggle.mjs";
|
|
49
|
+
import { ToggleGroup as na, ToggleGroupItem as ia } from "./toggle-group.mjs";
|
|
50
|
+
import { Tooltip as pa, TooltipContent as ma, TooltipProvider as xa, TooltipTrigger as ua } from "./tooltip.mjs";
|
|
51
|
+
import { Toast as sa, ToastAction as da, ToastClose as Ca, ToastDescription as ba, ToastProvider as ca, ToastTitle as Ta, ToastViewport as Ma } from "./toast.mjs";
|
|
52
|
+
import { ThemeProvider as Da } from "./theme-provider.mjs";
|
|
53
|
+
import { T as ha, t as va, u as wa } from "./toaster-BqX0t2H6.mjs";
|
|
54
54
|
import { t as Pa } from "./toggle-Dmzr60z6.mjs";
|
|
55
55
|
const t = {
|
|
56
56
|
px: "1px",
|
|
@@ -421,4 +421,4 @@ export {
|
|
|
421
421
|
Qr as useFormField,
|
|
422
422
|
wa as useToast
|
|
423
423
|
};
|
|
424
|
-
//# sourceMappingURL=index.
|
|
424
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../packages/design-tokens/src/spacing.ts","../packages/design-tokens/src/radii.ts","../packages/design-tokens/src/typography.ts","../packages/design-tokens/src/shadows.ts","../packages/design-tokens/src/index.ts"],"sourcesContent":["// Spacing scale for the GV Tech design system.\n// Based on a 4px baseline grid. Values are in rem (assuming 16px root font size).\n\nexport const spacing = {\n px: '1px',\n 0: '0',\n 0.5: '0.125rem', // 2px\n 1: '0.25rem', // 4px\n 1.5: '0.375rem', // 6px\n 2: '0.5rem', // 8px\n 2.5: '0.625rem', // 10px\n 3: '0.75rem', // 12px\n 3.5: '0.875rem', // 14px\n 4: '1rem', // 16px\n 5: '1.25rem', // 20px\n 6: '1.5rem', // 24px\n 7: '1.75rem', // 28px\n 8: '2rem', // 32px\n 9: '2.25rem', // 36px\n 10: '2.5rem', // 40px\n 12: '3rem', // 48px\n 14: '3.5rem', // 56px\n 16: '4rem', // 64px\n 20: '5rem', // 80px\n 24: '6rem', // 96px\n 32: '8rem', // 128px\n 40: '10rem', // 160px\n 48: '12rem', // 192px\n 56: '14rem', // 224px\n 64: '16rem', // 256px\n} as const;\n\nexport type SpacingTokens = typeof spacing;\n","// Border radius tokens for the GV Tech design system.\n\nexport const radii = {\n none: '0',\n sm: 'calc(var(--radius) - 4px)',\n md: 'calc(var(--radius) - 2px)',\n lg: 'var(--radius)',\n xl: 'calc(var(--radius) + 4px)',\n '2xl': 'calc(var(--radius) + 8px)',\n full: '9999px',\n} as const;\n\n// Numeric radius values (in px) for React Native, which doesn't support CSS calc().\n// Based on a default --radius of 0.5rem (8px).\nexport const radiiNumeric = {\n none: 0,\n sm: 4, // 8 - 4\n md: 6, // 8 - 2\n lg: 8, // base\n xl: 12, // 8 + 4\n '2xl': 16, // 8 + 8\n full: 9999,\n} as const;\n\nexport type RadiiTokens = typeof radii;\nexport type RadiiNumericTokens = typeof radiiNumeric;\n","// Typography tokens for the GV Tech design system.\n// Defines font families, sizes, weights, and line heights.\n\nexport const typography = {\n fontFamily: {\n sans: 'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: 'ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace',\n },\n fontSize: {\n xs: '0.75rem', // 12px\n sm: '0.875rem', // 14px\n base: '1rem', // 16px\n lg: '1.125rem', // 18px\n xl: '1.25rem', // 20px\n '2xl': '1.5rem', // 24px\n '3xl': '1.875rem', // 30px\n '4xl': '2.25rem', // 36px\n '5xl': '3rem', // 48px\n },\n fontWeight: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n lineHeight: {\n none: '1',\n tight: '1.25',\n snug: '1.375',\n normal: '1.5',\n relaxed: '1.625',\n loose: '2',\n },\n} as const;\n\nexport type TypographyTokens = typeof typography;\n","// Shadow / elevation tokens for the GV Tech design system.\n// Web values use CSS box-shadow syntax.\n// Native consumers should map these to platform-specific elevation or shadow props.\n\nexport const shadows = {\n none: 'none',\n sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',\n default: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',\n md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',\n lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',\n xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',\n '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',\n inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',\n} as const;\n\nexport type ShadowTokens = typeof shadows;\n","// @gv-tech/design-tokens\n// Single source of truth for all design tokens in the GV Tech design system.\n// Consumed by both web (ui-web) and native (ui-native) implementations.\n\n// Color tokens\nexport { palette } from './palette';\nexport type { PaletteTokens } from './palette';\n\nexport { theme } from './theme';\nexport type { ThemeTokens } from './theme';\n\n// Layout tokens\nexport { spacing } from './spacing';\nexport type { SpacingTokens } from './spacing';\n\nexport { radii, radiiNumeric } from './radii';\nexport type { RadiiNumericTokens, RadiiTokens } from './radii';\n\n// Typography tokens\nexport { typography } from './typography';\nexport type { TypographyTokens } from './typography';\n\n// Elevation tokens\nexport { shadows } from './shadows';\nexport type { ShadowTokens } from './shadows';\n\n// Convenience re-export of all tokens as a single object.\n// Mirrors the legacy `tokens` export from `src/theme/tokens.ts`.\nimport { palette } from './palette';\nimport { theme } from './theme';\n\nexport const tokens = {\n palette,\n theme,\n} as const;\n"],"names":["spacing","radii","radiiNumeric","typography","shadows","tokens","palette","theme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAMA,IAAU;AAAA,EACrB,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,KAAK;AAAA;AAAA,EACL,GAAG;AAAA;AAAA,EACH,KAAK;AAAA;AAAA,EACL,GAAG;AAAA;AAAA,EACH,KAAK;AAAA;AAAA,EACL,GAAG;AAAA;AAAA,EACH,KAAK;AAAA;AAAA,EACL,GAAG;AAAA;AAAA,EACH,GAAG;AAAA;AAAA,EACH,GAAG;AAAA;AAAA,EACH,GAAG;AAAA;AAAA,EACH,GAAG;AAAA;AAAA,EACH,GAAG;AAAA;AAAA,EACH,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AACN,GC5BaC,IAAQ;AAAA,EACnB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AACR,GAIaC,IAAe;AAAA,EAC1B,MAAM;AAAA,EACN,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,IAAI;AAAA;AAAA,EACJ,OAAO;AAAA;AAAA,EACP,MAAM;AACR,GCnBaC,IAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM;AAAA,IACN,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,IAAI;AAAA;AAAA,IACJ,IAAI;AAAA;AAAA,IACJ,MAAM;AAAA;AAAA,IACN,IAAI;AAAA;AAAA,IACJ,IAAI;AAAA;AAAA,IACJ,OAAO;AAAA;AAAA,IACP,OAAO;AAAA;AAAA,IACP,OAAO;AAAA;AAAA,IACP,OAAO;AAAA;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,MAAM;AAAA,EAAA;AAAA,EAER,YAAY;AAAA,IACV,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEX,GC7BaC,IAAU;AAAA,EACrB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAO;AACT,GCkBaC,IAAS;AAAA,EACpB,SAAAC;AAAAA,EACA,OAAAC;AACF;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./vendor-DQFuDa7q.js"),s=require("react"),u=require("./utils-DKStzUzN.js");function l(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=l(s),o=a.forwardRef(({className:e,type:r,...t},n)=>i.jsxRuntimeExports.jsx("input",{type:r,className:u.cn("border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));o.displayName="Input";exports.Input=o;
|
|
2
|
-
//# sourceMappingURL=input.cjs.
|
|
2
|
+
//# sourceMappingURL=input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.cjs","sources":["../packages/ui-web/src/input.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\n\nimport type { InputBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface InputProps extends React.ComponentProps<'input'>, InputBaseProps {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nInput.displayName = 'Input';\n\nexport { Input };\n"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":"mdAQMA,EAAQC,EAAM,WAAyC,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAA,EAASC,IAEzFC,EAAAA,kBAAAA,IAAC,QAAA,CACC,KAAAH,EACA,UAAWI,EAAAA,GACT,0WACAL,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CAAA,CAGT,EACDJ,EAAM,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":["../packages/ui-web/src/input.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\n\nimport type { InputBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface InputProps extends React.ComponentProps<'input'>, InputBaseProps {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nInput.displayName = 'Input';\n\nexport { Input };\n"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":";;;;AAQA,MAAMA,IAAQC,EAAM,WAAyC,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAEzFC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAAH;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AAAA,CAGT;AACDJ,EAAM,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),c=require("react"),s=require("./utils-DKStzUzN.js");function l(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=l(c),u=r.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),n=i.forwardRef(({className:e,...o},t)=>r.jsxRuntimeExports.jsx(r.Root$3,{ref:t,className:s.cn(u(),e),...o}));n.displayName=r.Root$3.displayName;exports.Label=n;
|
|
2
|
-
//# sourceMappingURL=label.cjs.
|
|
2
|
+
//# sourceMappingURL=label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.cjs","sources":["../packages/ui-web/src/label.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { LabelBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants> & LabelBaseProps\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\nexport type { LabelBaseProps as LabelProps };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive.Root","cn"],"mappings":"mdASMA,EAAgBC,EAAAA,IAAI,4FAA4F,EAEhHC,EAAQC,EAAM,WAGlB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CAAoB,IAAAF,EAAU,UAAWG,KAAGT,EAAA,EAAiBI,CAAS,EAAI,GAAGC,EAAO,CACtF,EACDH,EAAM,YAAcM,EAAAA,OAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.mjs","sources":["../packages/ui-web/src/label.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { LabelBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants> & LabelBaseProps\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\nexport type { LabelBaseProps as LabelProps };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive.Root","cn"],"mappings":";;;;AASA,MAAMA,IAAgBC,EAAI,4FAA4F,GAEhHC,IAAQC,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,KAAAF,GAAU,WAAWG,EAAGT,EAAA,GAAiBI,CAAS,GAAI,GAAGC,GAAO,CACtF;AACDH,EAAM,cAAcM,EAAoB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),y=require("react"),r=require("./utils-DKStzUzN.js");function M(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const s=M(y);function N({...t}){return e.jsxRuntimeExports.jsx(e.Menu,{...t})}function h({...t}){return e.jsxRuntimeExports.jsx(e.Group2$1,{...t})}function w({...t}){return e.jsxRuntimeExports.jsx(e.Portal2$2,{...t})}function E({...t}){return e.jsxRuntimeExports.jsx(e.RadioGroup2$1,{...t})}function $({...t}){return e.jsxRuntimeExports.jsx(e.Sub2$1,{"data-slot":"menubar-sub",...t})}const d=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Root3,{ref:n,className:r.cn("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm",t),...a}));d.displayName=e.Root3.displayName;const u=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Trigger$2,{ref:n,className:r.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none",t),...a}));u.displayName=e.Trigger$2.displayName;const c=s.forwardRef(({className:t,inset:a,children:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$1,{ref:i,className:r.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",a&&"pl-8",t),...o,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto h-4 w-4"})]}));c.displayName=e.SubTrigger2$1.displayName;const m=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$1,{ref:n,className:r.cn("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",t),...a}));m.displayName=e.SubContent2$1.displayName;const l=s.forwardRef(({className:t,align:a="start",alignOffset:n=-4,sideOffset:o=8,...i},R)=>e.jsxRuntimeExports.jsx(e.Portal2$2,{children:e.jsxRuntimeExports.jsx(e.Content2$4,{ref:R,align:a,alignOffset:n,sideOffset:o,className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md",t),...i})}));l.displayName=e.Content2$4.displayName;const p=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Item3,{ref:o,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",t),...n}));p.displayName=e.Item3.displayName;const x=s.forwardRef(({className:t,children:a,checked:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$1,{ref:i,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...o,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$1,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),a]}));x.displayName=e.CheckboxItem2$1.displayName;const f=s.forwardRef(({className:t,children:a,...n},o)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$1,{ref:o,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$1,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-4 w-4 fill-current"})})}),a]}));f.displayName=e.RadioItem2$1.displayName;const b=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Label2$1,{ref:o,className:r.cn("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...n}));b.displayName=e.Label2$1.displayName;const g=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Separator2$1,{ref:n,className:r.cn("bg-muted -mx-1 my-1 h-px",t),...a}));g.displayName=e.Separator2$1.displayName;const j=({className:t,...a})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...a});j.displayname="MenubarShortcut";exports.Menubar=d;exports.MenubarCheckboxItem=x;exports.MenubarContent=l;exports.MenubarGroup=h;exports.MenubarItem=p;exports.MenubarLabel=b;exports.MenubarMenu=N;exports.MenubarPortal=w;exports.MenubarRadioGroup=E;exports.MenubarRadioItem=f;exports.MenubarSeparator=g;exports.MenubarShortcut=j;exports.MenubarSub=$;exports.MenubarSubContent=m;exports.MenubarSubTrigger=c;exports.MenubarTrigger=u;
|
|
2
|
-
//# sourceMappingURL=menubar.cjs.
|
|
2
|
+
//# sourceMappingURL=menubar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menubar.cjs","sources":["../packages/ui-web/src/menubar.tsx"],"sourcesContent":["'use client';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n MenubarBaseProps,\n MenubarCheckboxItemBaseProps,\n MenubarContentBaseProps,\n MenubarItemBaseProps,\n MenubarLabelBaseProps,\n MenubarMenuBaseProps,\n MenubarRadioItemBaseProps,\n MenubarSeparatorBaseProps,\n MenubarShortcutBaseProps,\n MenubarSubBaseProps,\n MenubarSubContentBaseProps,\n MenubarSubTriggerBaseProps,\n MenubarTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nfunction MenubarMenu({ ...props }: MenubarPrimitive.MenubarMenuProps & MenubarMenuBaseProps) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: MenubarPrimitive.MenubarSubProps & MenubarSubBaseProps) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root> & MenubarBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger> & MenubarTriggerBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & MenubarSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent> & MenubarSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content> & MenubarContentBaseProps\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in 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 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & MenubarItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem> & MenubarCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem> & MenubarRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & MenubarLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator> & MenubarSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & MenubarShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n\nexport type {\n MenubarCheckboxItemBaseProps as MenubarCheckboxItemProps,\n MenubarContentBaseProps as MenubarContentProps,\n MenubarItemBaseProps as MenubarItemProps,\n MenubarLabelBaseProps as MenubarLabelProps,\n MenubarMenuBaseProps as MenubarMenuProps,\n MenubarBaseProps as MenubarProps,\n MenubarRadioItemBaseProps as MenubarRadioItemProps,\n MenubarSeparatorBaseProps as MenubarSeparatorProps,\n MenubarShortcutBaseProps as MenubarShortcutProps,\n MenubarSubContentBaseProps as MenubarSubContentProps,\n MenubarSubBaseProps as MenubarSubProps,\n MenubarSubTriggerBaseProps as MenubarSubTriggerProps,\n MenubarTriggerBaseProps as MenubarTriggerProps,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":"mdAuBA,SAASA,EAAY,CAAE,GAAGC,GAAmE,CAC3F,OAAOC,wBAACC,EAAAA,KAAA,CAAuB,GAAGF,CAAA,CAAO,CAC3C,CAEA,SAASG,EAAa,CAAE,GAAGH,GAA8D,CACvF,OAAOC,wBAACG,EAAAA,SAAA,CAAwB,GAAGJ,CAAA,CAAO,CAC5C,CAEA,SAASK,EAAc,CAAE,GAAGL,GAA+D,CACzF,OAAOC,wBAACK,EAAAA,UAAA,CAAyB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sourcesContent":["'use client';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n MenubarBaseProps,\n MenubarCheckboxItemBaseProps,\n MenubarContentBaseProps,\n MenubarItemBaseProps,\n MenubarLabelBaseProps,\n MenubarMenuBaseProps,\n MenubarRadioItemBaseProps,\n MenubarSeparatorBaseProps,\n MenubarShortcutBaseProps,\n MenubarSubBaseProps,\n MenubarSubContentBaseProps,\n MenubarSubTriggerBaseProps,\n MenubarTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nfunction MenubarMenu({ ...props }: MenubarPrimitive.MenubarMenuProps & MenubarMenuBaseProps) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: MenubarPrimitive.MenubarSubProps & MenubarSubBaseProps) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root> & MenubarBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger> & MenubarTriggerBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & MenubarSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent> & MenubarSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content> & MenubarContentBaseProps\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in 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 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & MenubarItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem> & MenubarCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem> & MenubarRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & MenubarLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator> & MenubarSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & MenubarShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n\nexport type {\n MenubarCheckboxItemBaseProps as MenubarCheckboxItemProps,\n MenubarContentBaseProps as MenubarContentProps,\n MenubarItemBaseProps as MenubarItemProps,\n MenubarLabelBaseProps as MenubarLabelProps,\n MenubarMenuBaseProps as MenubarMenuProps,\n MenubarBaseProps as MenubarProps,\n MenubarRadioItemBaseProps as MenubarRadioItemProps,\n MenubarSeparatorBaseProps as MenubarSeparatorProps,\n MenubarShortcutBaseProps as MenubarShortcutProps,\n MenubarSubContentBaseProps as MenubarSubContentProps,\n MenubarSubBaseProps as MenubarSubProps,\n MenubarSubTriggerBaseProps as MenubarSubTriggerProps,\n MenubarTriggerBaseProps as MenubarTriggerProps,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":";;;;AAuBA,SAASA,EAAY,EAAE,GAAGC,KAAmE;AAC3F,SAAOC,gBAAAA,MAACC,GAAA,EAAuB,GAAGF,EAAA,CAAO;AAC3C;AAEA,SAASG,EAAa,EAAE,GAAGH,KAA8D;AACvF,SAAOC,gBAAAA,MAACG,GAAA,EAAwB,GAAGJ,EAAA,CAAO;AAC5C;AAEA,SAASK,EAAc,EAAE,GAAGL,KAA+D;AACzF,SAAOC,gBAAAA,MAACK,GAAA,EAAyB,GAAGN,EAAA,CAAO;AAC7C;AAEA,SAASO,EAAkB,EAAE,GAAGP,KAAmE;AACjG,SAAOC,gBAAAA,MAACO,GAAA,EAA6B,GAAGR,EAAA,CAAO;AACjD;AAEA,SAASS,EAAW,EAAE,GAAGT,KAAiE;AACxF,+BAAQU,GAAA,EAAqB,aAAU,eAAe,GAAGV,GAAO;AAClE;AAEA,MAAMW,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGb,EAAA,GAASc,MAC1Bb,gBAAAA,EAAAA;AAAAA,EAACc;AAAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,iFAAiFH,CAAS;AAAA,IACvG,GAAGb;AAAA,EAAA;AACN,CACD;AACDW,EAAQ,cAAcI,EAAsB;AAE5C,MAAME,IAAiBL,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGb,EAAA,GAASc,MAC1Bb,gBAAAA,EAAAA;AAAAA,EAACiB;AAAAA,EAAA;AAAA,IACC,KAAAJ;AAAA,IACA,WAAWE;AAAA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AAA,CAAuB,EAAA,CAC3C,GACF;AAAA,MACCpB;AAAA,IAAA;AAAA,EAAA;AACH,CACD;AACDkB,EAAiB,cAAcC,EAA2B;AAE1D,MAAME,IAAe9B,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,OAAAO,GAAO,GAAGpB,KAASc,MACjCb,gBAAAA,EAAAA;AAAAA,EAAC0C;AAAAA,EAAA;AAAA,IACC,KAAA7B;AAAA,IACA,WAAWE,EAAG,qCAAqCI,KAAS,QAAQP,CAAS;AAAA,IAC5E,GAAGb;AAAA,EAAA;AACN,CACD;AACD0C,EAAa,cAAcC,EAAuB;AAElD,MAAMC,IAAmBhC,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGb,EAAA,GAASc,MAC1Bb,gBAAAA,EAAAA,IAAC4C,GAAA,EAA2B,KAAA/B,GAAU,WAAWE,EAAG,4BAA4BH,CAAS,GAAI,GAAGb,GAAO,CACxG;AACD4C,EAAiB,cAAcC,EAA2B;AAE1D,MAAMC,IAAkB,CAAC,EAAE,WAAAjC,GAAW,GAAGb,QAChCC,gBAAAA,EAAAA,IAAC,UAAK,WAAWe,EAAG,yDAAyDH,CAAS,GAAI,GAAGb,GAAO;AAE7G8C,EAAgB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-DQFuDa7q.js"),p=require("react"),o=require("./utils-DKStzUzN.js");function g(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const r=g(p),d=r.forwardRef(({className:e,children:n,...a},i)=>t.jsxRuntimeExports.jsxs(t.Root2$4,{ref:i,className:o.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[n,t.jsxRuntimeExports.jsx(s,{})]}));d.displayName=t.Root2$4.displayName;const c=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.List,{ref:a,className:o.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...n}));c.displayName=t.List.displayName;const x=t.Item$1,u=t.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),l=r.forwardRef(({className:e,children:n,...a},i)=>t.jsxRuntimeExports.jsxs(t.Trigger$3,{ref:i,className:o.cn(u(),"group",e),...a,children:[n," ",t.jsxRuntimeExports.jsx(t.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));l.displayName=t.Trigger$3.displayName;const m=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.Content,{ref:a,className:o.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",e),...n}));m.displayName=t.Content.displayName;const v=t.Link,s=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx("div",{className:o.cn("absolute top-full left-0 flex justify-center"),children:t.jsxRuntimeExports.jsx(t.Viewport,{className:o.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...n})}));s.displayName=t.Viewport.displayName;const f=r.forwardRef(({className:e,...n},a)=>t.jsxRuntimeExports.jsx(t.Indicator,{ref:a,className:o.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...n,children:t.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})}));f.displayName=t.Indicator.displayName;exports.NavigationMenu=d;exports.NavigationMenuContent=m;exports.NavigationMenuIndicator=f;exports.NavigationMenuItem=x;exports.NavigationMenuLink=v;exports.NavigationMenuList=c;exports.NavigationMenuTrigger=l;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=u;
|
|
2
|
-
//# sourceMappingURL=navigation-menu.cjs.
|
|
2
|
+
//# sourceMappingURL=navigation-menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.cjs","sources":["../packages/ui-web/src/navigation-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n NavigationMenuBaseProps,\n NavigationMenuContentBaseProps,\n NavigationMenuIndicatorBaseProps,\n NavigationMenuItemBaseProps,\n NavigationMenuLinkBaseProps,\n NavigationMenuListBaseProps,\n NavigationMenuTriggerBaseProps,\n NavigationMenuViewportBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> & NavigationMenuBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> & NavigationMenuListBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger> & NavigationMenuTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> & NavigationMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> & NavigationMenuViewportBaseProps\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute top-full left-0 flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> & NavigationMenuIndicatorBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n\nexport type {\n NavigationMenuContentBaseProps as NavigationMenuContentProps,\n NavigationMenuIndicatorBaseProps as NavigationMenuIndicatorProps,\n NavigationMenuItemBaseProps as NavigationMenuItemProps,\n NavigationMenuLinkBaseProps as NavigationMenuLinkProps,\n NavigationMenuListBaseProps as NavigationMenuListProps,\n NavigationMenuBaseProps as NavigationMenuProps,\n NavigationMenuTriggerBaseProps as NavigationMenuTriggerProps,\n NavigationMenuViewportBaseProps as NavigationMenuViewportProps,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":"mdAmBMA,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACC,EAAAA,QAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,kEAAmEN,CAAS,EACzF,GAAGE,EAEH,SAAA,CAAAD,0BACAM,EAAA,CAAA,CAAuB,CAAA,CAAA,CAC1B,CACD,EACDT,EAAe,YAAcO,EAAAA,QAA6B,YAE1D,MAAMG,EAAqBT,EAAM,WAG/B,CAAC,CAAE,UAAA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UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACe,EAAAA,UAAA,CACC,IAAArB,EACA,UAAWG,EAAAA,GACT,+LACAN,CAAA,EAED,GAAGE,EAEJ,SAAAO,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAAA,CAC1F,CACD,EACDc,EAAwB,YAAcC,EAAAA,UAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.mjs","sources":["../packages/ui-web/src/navigation-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n NavigationMenuBaseProps,\n NavigationMenuContentBaseProps,\n NavigationMenuIndicatorBaseProps,\n NavigationMenuItemBaseProps,\n NavigationMenuLinkBaseProps,\n NavigationMenuListBaseProps,\n NavigationMenuTriggerBaseProps,\n NavigationMenuViewportBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> & NavigationMenuBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> & NavigationMenuListBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger> & NavigationMenuTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> & NavigationMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> & NavigationMenuViewportBaseProps\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute top-full left-0 flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> & NavigationMenuIndicatorBaseProps\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n\nexport type {\n NavigationMenuContentBaseProps as NavigationMenuContentProps,\n NavigationMenuIndicatorBaseProps as NavigationMenuIndicatorProps,\n NavigationMenuItemBaseProps as NavigationMenuItemProps,\n NavigationMenuLinkBaseProps as NavigationMenuLinkProps,\n NavigationMenuListBaseProps as NavigationMenuListProps,\n NavigationMenuBaseProps as NavigationMenuProps,\n NavigationMenuTriggerBaseProps as NavigationMenuTriggerProps,\n NavigationMenuViewportBaseProps as NavigationMenuViewportProps,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":";;;;AAmBA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,mEAAmEN,CAAS;AAAA,IACzF,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,4BACAM,GAAA,CAAA,CAAuB;AAAA,IAAA;AAAA,EAAA;AAC1B,CACD;AACDT,EAAe,cAAcO,EAA6B;AAE1D,MAAMG,IAAqBT,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG,EAAG,qEAAqEN,CAAS;AAAA,IAC3F,GAAGE;AAAA,EAAA;AACN,CACD;AACDM,EAAmB,cAAcE,EAA6B;AAE9D,MAAMC,IAAqBC,GAErBC,IAA6BC;AAAA,EACjC;AACF,GAEMC,IAA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MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAAO,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDc,EAAwB,cAAcC,EAAkC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./vendor-DQFuDa7q.js"),g=require("react"),j=require("./button.cjs"),i=require("./utils-DKStzUzN.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=d(g),l=({className:e,...n})=>a.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...n});l.displayName="Pagination";const c=r.forwardRef(({className:e,...n},t)=>a.jsxRuntimeExports.jsx("ul",{ref:t,className:i.cn("flex flex-row items-center gap-1",e),...n}));c.displayName="PaginationContent";const u=r.forwardRef(({className:e,...n},t)=>a.jsxRuntimeExports.jsx("li",{ref:t,className:i.cn("",e),...n}));u.displayName="PaginationItem";const o=({className:e,isActive:n,size:t="icon",...s})=>a.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,className:i.cn(j.buttonVariants({variant:n?"outline":"ghost",size:t}),e),...s});o.displayName="PaginationLink";const x=({className:e,...n})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...n,children:[a.jsxRuntimeExports.jsx(a.ChevronLeft,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{children:"Previous"})]});x.displayName="PaginationPrevious";const p=({className:e,...n})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...n,children:[a.jsxRuntimeExports.jsx("span",{children:"Next"}),a.jsxRuntimeExports.jsx(a.ChevronRight,{className:"h-4 w-4"})]});p.displayName="PaginationNext";const m=({className:e,...n})=>a.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...n,children:[a.jsxRuntimeExports.jsx(a.Ellipsis,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]});m.displayName="PaginationEllipsis";exports.Pagination=l;exports.PaginationContent=c;exports.PaginationEllipsis=m;exports.PaginationItem=u;exports.PaginationLink=o;exports.PaginationNext=p;exports.PaginationPrevious=x;
|
|
2
|
+
//# sourceMappingURL=pagination.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.cjs","sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["'use client';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n PaginationBaseProps,\n PaginationContentBaseProps,\n PaginationEllipsisBaseProps,\n PaginationItemBaseProps,\n PaginationLinkBaseProps,\n PaginationNextBaseProps,\n PaginationPreviousBaseProps,\n} from '@gv-tech/ui-core';\nimport { ButtonProps, buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'> & PaginationBaseProps) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'> & PaginationContentBaseProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'> & PaginationItemBaseProps>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />,\n);\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'> &\n PaginationLinkBaseProps;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationPreviousBaseProps) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationNextBaseProps) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'> & PaginationEllipsisBaseProps) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type {\n PaginationContentBaseProps as PaginationContentProps,\n PaginationEllipsisBaseProps as PaginationEllipsisProps,\n PaginationItemBaseProps as PaginationItemProps,\n PaginationLinkProps,\n PaginationNextBaseProps as PaginationNextProps,\n PaginationPreviousBaseProps as PaginationPreviousProps,\n PaginationBaseProps as PaginationProps,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"6eAgBMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAAA,kBAAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAEzB,MAAMK,EAAoBC,EAAM,WAC9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IACxBJ,EAAAA,kBAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAAA,GAAG,mCAAoCH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAE3F,EACAG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAC3B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IAAQJ,EAAAA,kBAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAAA,GAAG,GAAIH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAC3F,EACAM,EAAe,YAAc,iBAQ7B,MAAMC,EAAiB,CAAC,CAAE,UAAAR,EAAW,SAAAS,EAAU,KAAAC,EAAO,OAAQ,GAAGT,CAAA,IAC/DC,EAAAA,kBAAAA,IAAC,IAAA,CACC,eAAcO,EAAW,OAAS,OAClC,UAAWN,EAAAA,GACTQ,iBAAe,CACb,QAASF,EAAW,UAAY,QAChC,KAAAC,CAAA,CACD,EACDV,CAAA,EAED,GAAGC,CAAA,CACN,EAEFO,EAAe,YAAc,iBAE7B,MAAMI,EAAqB,CAAC,CAC1B,UAAAZ,EACA,GAAGC,CACL,IACEY,EAAAA,kBAAAA,KAACL,EAAA,CAAe,aAAW,sBAAsB,KAAK,UAAU,UAAWL,EAAAA,GAAG,eAAgBH,CAAS,EAAI,GAAGC,EAC5G,SAAA,CAAAC,EAAAA,kBAAAA,IAACY,EAAAA,YAAA,CAAY,UAAU,SAAA,CAAU,EACjCZ,EAAAA,kBAAAA,IAAC,QAAK,SAAA,UAAA,CAAQ,CAAA,CAAA,CAChB,EAEFU,EAAmB,YAAc,qBAEjC,MAAMG,EAAiB,CAAC,CACtB,UAAAf,EACA,GAAGC,CACL,IACEY,EAAAA,kBAAAA,KAACL,EAAA,CAAe,aAAW,kBAAkB,KAAK,UAAU,UAAWL,EAAAA,GAAG,eAAgBH,CAAS,EAAI,GAAGC,EACxG,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,QAAK,SAAA,MAAA,CAAI,EACVA,EAAAA,kBAAAA,IAACc,EAAAA,aAAA,CAAa,UAAU,SAAA,CAAU,CAAA,CAAA,CACpC,EAEFD,EAAe,YAAc,iBAE7B,MAAME,EAAqB,CAAC,CAAE,UAAAjB,EAAW,GAAGC,KAC1CY,EAAAA,kBAAAA,KAAC,OAAA,CAAK,cAAW,GAAC,UAAWV,EAAAA,GAAG,2CAA4CH,CAAS,EAAI,GAAGC,EAC1F,SAAA,CAAAC,EAAAA,kBAAAA,IAACgB,EAAAA,SAAA,CAAe,UAAU,SAAA,CAAU,EACpChB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CACtC,EAEFe,EAAmB,YAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as i, E as r, l as c, o as m } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { buttonVariants as p } from "./button.
|
|
4
|
+
import { buttonVariants as p } from "./button.mjs";
|
|
5
5
|
import { c as e } from "./utils-Dk-Gx69q.mjs";
|
|
6
6
|
const g = ({ className: s, ...a }) => /* @__PURE__ */ i.jsx(
|
|
7
7
|
"nav",
|
|
@@ -66,4 +66,4 @@ export {
|
|
|
66
66
|
f as PaginationNext,
|
|
67
67
|
d as PaginationPrevious
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=pagination.
|
|
69
|
+
//# sourceMappingURL=pagination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["'use client';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n PaginationBaseProps,\n PaginationContentBaseProps,\n PaginationEllipsisBaseProps,\n PaginationItemBaseProps,\n PaginationLinkBaseProps,\n PaginationNextBaseProps,\n PaginationPreviousBaseProps,\n} from '@gv-tech/ui-core';\nimport { ButtonProps, buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'> & PaginationBaseProps) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'> & PaginationContentBaseProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'> & PaginationItemBaseProps>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />,\n);\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'> &\n PaginationLinkBaseProps;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationPreviousBaseProps) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink> & PaginationNextBaseProps) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'> & PaginationEllipsisBaseProps) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\nexport type {\n PaginationContentBaseProps as PaginationContentProps,\n PaginationEllipsisBaseProps as PaginationEllipsisProps,\n PaginationItemBaseProps as PaginationItemProps,\n PaginationLinkProps,\n PaginationNextBaseProps as PaginationNextProps,\n PaginationPreviousBaseProps as PaginationPreviousProps,\n PaginationBaseProps as PaginationProps,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;AAgBA,MAAMA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EAAAA,IAACY,GAAA,EAAY,WAAU,UAAA,CAAU;AAAA,EACjCZ,gBAAAA,EAAAA,IAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,EAAA,CAChB;AAEFU,EAAmB,cAAc;AAEjC,MAAMG,IAAiB,CAAC;AAAA,EACtB,WAAAf;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAAA,KAACL,GAAA,EAAe,cAAW,mBAAkB,MAAK,WAAU,WAAWL,EAAG,gBAAgBH,CAAS,GAAI,GAAGC,GACxG,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAAC,UAAK,UAAA,OAAA,CAAI;AAAA,EACVA,gBAAAA,EAAAA,IAACc,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,EAAA,CACpC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC,EAAE,WAAAjB,GAAW,GAAGC,QAC1CY,gBAAAA,EAAAA,KAAC,QAAA,EAAK,eAAW,IAAC,WAAWV,EAAG,4CAA4CH,CAAS,GAAI,GAAGC,GAC1F,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAACgB,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,EACpChB,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,EAAA,CACtC;AAEFe,EAAmB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),s=require("react"),d=require("./utils-DKStzUzN.js");function c(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const p=c(s),l=e.Root2$5,u=e.Trigger$4,m=e.Anchor2,a=p.forwardRef(({className:t,align:r="center",sideOffset:o=4,...n},i)=>e.jsxRuntimeExports.jsx(e.Portal,{children:e.jsxRuntimeExports.jsx(e.Content2$5,{ref:i,align:r,sideOffset:o,className:d.cn("bg-popover text-popover-foreground 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 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",t),...n})}));a.displayName=e.Content2$5.displayName;exports.Popover=l;exports.PopoverAnchor=m;exports.PopoverContent=a;exports.PopoverTrigger=u;
|
|
2
|
-
//# sourceMappingURL=popover.cjs.
|
|
2
|
+
//# sourceMappingURL=popover.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.cjs","sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport {\n PopoverAnchorBaseProps,\n PopoverBaseProps,\n PopoverContentBaseProps,\n PopoverTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & PopoverContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\nexport type {\n PopoverAnchorBaseProps as PopoverAnchorProps,\n PopoverContentBaseProps as PopoverContentProps,\n PopoverBaseProps as PopoverProps,\n PopoverTriggerBaseProps as PopoverTriggerProps,\n};\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":"mdAaMA,EAAUC,EAAAA,QAEVC,EAAiBC,EAAAA,UAEjBC,EAAgBC,EAAAA,QAEhBC,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,SAAAD,EAAAA,kBAAAA,IAACE,EAAAA,WAAA,CACC,IAAAH,EACA,MAAAH,EACA,WAAAC,EACA,UAAWM,EAAAA,GACT,+dACAR,CAAA,EAED,GAAGG,CAAA,CACN,EACF,CACD,EACDL,EAAe,YAAcS,EAAAA,WAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.mjs","sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport {\n PopoverAnchorBaseProps,\n PopoverBaseProps,\n PopoverContentBaseProps,\n PopoverTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & PopoverContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground 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 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\nexport type {\n PopoverAnchorBaseProps as PopoverAnchorProps,\n PopoverContentBaseProps as PopoverContentProps,\n PopoverBaseProps as PopoverProps,\n PopoverTriggerBaseProps as PopoverTriggerProps,\n};\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":";;;;AAaA,MAAMA,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAgBC,GAEhBC,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MAC5DC,gBAAAA,EAAAA,IAACC,GAAA,EACC,UAAAD,gBAAAA,EAAAA;AAAAA,EAACE;AAAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAR;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,GACF,CACD;AACDL,EAAe,cAAcS,EAAyB;"}
|