@gv-tech/design-system 2.15.2 → 2.16.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.
Files changed (168) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.cjs.map +1 -1
  3. package/dist/accordion.mjs +11 -11
  4. package/dist/accordion.mjs.map +1 -1
  5. package/dist/alert-dialog.cjs +1 -1
  6. package/dist/alert-dialog.cjs.map +1 -1
  7. package/dist/alert-dialog.mjs +21 -21
  8. package/dist/alert-dialog.mjs.map +1 -1
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +1 -1
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.cjs.map +1 -1
  13. package/dist/avatar.mjs +12 -12
  14. package/dist/avatar.mjs.map +1 -1
  15. package/dist/badge.cjs +1 -1
  16. package/dist/badge.mjs +1 -1
  17. package/dist/breadcrumb.cjs +1 -1
  18. package/dist/breadcrumb.mjs +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.mjs +1 -1
  21. package/dist/calendar.cjs +1 -1
  22. package/dist/calendar.mjs +1 -1
  23. package/dist/card.cjs +1 -1
  24. package/dist/card.mjs +1 -1
  25. package/dist/carousel.cjs +1 -1
  26. package/dist/carousel.mjs +1 -1
  27. package/dist/chart.cjs +1 -1
  28. package/dist/chart.mjs +1 -1
  29. package/dist/checkbox.cjs +1 -1
  30. package/dist/checkbox.cjs.map +1 -1
  31. package/dist/checkbox.mjs +2 -2
  32. package/dist/checkbox.mjs.map +1 -1
  33. package/dist/command.cjs +1 -1
  34. package/dist/command.cjs.map +1 -1
  35. package/dist/command.mjs +24 -24
  36. package/dist/command.mjs.map +1 -1
  37. package/dist/context-menu.cjs +1 -1
  38. package/dist/context-menu.cjs.map +1 -1
  39. package/dist/context-menu.mjs +42 -42
  40. package/dist/context-menu.mjs.map +1 -1
  41. package/dist/design-system.css +1 -1
  42. package/dist/dialog.cjs +1 -1
  43. package/dist/dialog.cjs.map +1 -1
  44. package/dist/dialog.mjs +18 -18
  45. package/dist/dialog.mjs.map +1 -1
  46. package/dist/drawer.cjs +1 -1
  47. package/dist/drawer.cjs.map +1 -1
  48. package/dist/drawer.mjs +19 -19
  49. package/dist/drawer.mjs.map +1 -1
  50. package/dist/dropdown-menu.cjs +1 -1
  51. package/dist/dropdown-menu.cjs.map +1 -1
  52. package/dist/dropdown-menu.mjs +58 -58
  53. package/dist/dropdown-menu.mjs.map +1 -1
  54. package/dist/form.cjs +1 -1
  55. package/dist/form.mjs +1 -1
  56. package/dist/hover-card.cjs +1 -1
  57. package/dist/hover-card.cjs.map +1 -1
  58. package/dist/hover-card.mjs +4 -4
  59. package/dist/hover-card.mjs.map +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.cjs.map +1 -1
  62. package/dist/index.d.ts +64 -0
  63. package/dist/index.mjs +37 -35
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/input.cjs +1 -1
  66. package/dist/input.mjs +1 -1
  67. package/dist/label.cjs +1 -1
  68. package/dist/label.cjs.map +1 -1
  69. package/dist/label.mjs +3 -3
  70. package/dist/label.mjs.map +1 -1
  71. package/dist/menubar.cjs +1 -1
  72. package/dist/menubar.cjs.map +1 -1
  73. package/dist/menubar.mjs +44 -44
  74. package/dist/menubar.mjs.map +1 -1
  75. package/dist/navigation-menu.cjs +1 -1
  76. package/dist/navigation-menu.cjs.map +1 -1
  77. package/dist/navigation-menu.mjs +21 -21
  78. package/dist/navigation-menu.mjs.map +1 -1
  79. package/dist/pagination.cjs +1 -1
  80. package/dist/pagination.mjs +1 -1
  81. package/dist/popover.cjs +1 -1
  82. package/dist/popover.cjs.map +1 -1
  83. package/dist/popover.mjs +8 -8
  84. package/dist/popover.mjs.map +1 -1
  85. package/dist/progress.cjs +1 -1
  86. package/dist/progress.cjs.map +1 -1
  87. package/dist/progress.mjs +9 -9
  88. package/dist/progress.mjs.map +1 -1
  89. package/dist/radio-group.cjs +1 -1
  90. package/dist/radio-group.cjs.map +1 -1
  91. package/dist/radio-group.mjs +8 -8
  92. package/dist/radio-group.mjs.map +1 -1
  93. package/dist/resizable.cjs +1 -1
  94. package/dist/resizable.mjs +1 -1
  95. package/dist/scroll-area.cjs +1 -1
  96. package/dist/scroll-area.cjs.map +1 -1
  97. package/dist/scroll-area.mjs +11 -11
  98. package/dist/scroll-area.mjs.map +1 -1
  99. package/dist/search.cjs +1 -1
  100. package/dist/search.mjs +1 -1
  101. package/dist/select.cjs +1 -1
  102. package/dist/select.cjs.map +1 -1
  103. package/dist/select.mjs +38 -38
  104. package/dist/select.mjs.map +1 -1
  105. package/dist/separator.cjs +1 -1
  106. package/dist/separator.cjs.map +1 -1
  107. package/dist/separator.mjs +7 -7
  108. package/dist/separator.mjs.map +1 -1
  109. package/dist/sheet.cjs +1 -1
  110. package/dist/sheet.cjs.map +1 -1
  111. package/dist/sheet.mjs +17 -17
  112. package/dist/sheet.mjs.map +1 -1
  113. package/dist/skeleton.cjs +1 -1
  114. package/dist/skeleton.mjs +1 -1
  115. package/dist/slider.cjs +1 -1
  116. package/dist/slider.cjs.map +1 -1
  117. package/dist/slider.mjs +2 -2
  118. package/dist/slider.mjs.map +1 -1
  119. package/dist/switch.cjs +1 -1
  120. package/dist/switch.cjs.map +1 -1
  121. package/dist/switch.mjs +7 -7
  122. package/dist/switch.mjs.map +1 -1
  123. package/dist/table-of-contents.cjs +2 -0
  124. package/dist/table-of-contents.cjs.map +1 -0
  125. package/dist/table-of-contents.d.ts +68 -0
  126. package/dist/table-of-contents.mjs +161 -0
  127. package/dist/table-of-contents.mjs.map +1 -0
  128. package/dist/table.cjs +1 -1
  129. package/dist/table.mjs +1 -1
  130. package/dist/tabs.cjs +1 -1
  131. package/dist/tabs.cjs.map +1 -1
  132. package/dist/tabs.mjs +13 -13
  133. package/dist/tabs.mjs.map +1 -1
  134. package/dist/text.cjs +1 -1
  135. package/dist/text.mjs +1 -1
  136. package/dist/textarea.cjs +1 -1
  137. package/dist/textarea.mjs +1 -1
  138. package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-B3z50t2s.js} +2 -2
  139. package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-B3z50t2s.js.map} +1 -1
  140. package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BUU8zhDg.mjs} +2 -2
  141. package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BUU8zhDg.mjs.map} +1 -1
  142. package/dist/theme-toggle.cjs +1 -1
  143. package/dist/theme-toggle.mjs +2 -2
  144. package/dist/toast.cjs +1 -1
  145. package/dist/toast.cjs.map +1 -1
  146. package/dist/toast.mjs +17 -17
  147. package/dist/toast.mjs.map +1 -1
  148. package/dist/toggle-group.cjs +1 -1
  149. package/dist/toggle-group.cjs.map +1 -1
  150. package/dist/toggle-group.mjs +18 -18
  151. package/dist/toggle-group.mjs.map +1 -1
  152. package/dist/toggle.cjs +1 -1
  153. package/dist/toggle.cjs.map +1 -1
  154. package/dist/toggle.mjs +6 -6
  155. package/dist/toggle.mjs.map +1 -1
  156. package/dist/tooltip.cjs +1 -1
  157. package/dist/tooltip.cjs.map +1 -1
  158. package/dist/tooltip.mjs +11 -11
  159. package/dist/tooltip.mjs.map +1 -1
  160. package/dist/utils--qajXu5A.js +2 -0
  161. package/dist/utils--qajXu5A.js.map +1 -0
  162. package/dist/utils-CgPEtJt0.mjs +12 -0
  163. package/dist/utils-CgPEtJt0.mjs.map +1 -0
  164. package/package.json +15 -14
  165. package/dist/utils-DKStzUzN.js +0 -2
  166. package/dist/utils-DKStzUzN.js.map +0 -1
  167. package/dist/utils-Dk-Gx69q.mjs +0 -8
  168. package/dist/utils-Dk-Gx69q.mjs.map +0 -1
@@ -1 +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,GAAGN,CAAA,CAAO,CAC7C,CAEA,SAASO,EAAkB,CAAE,GAAGP,GAAmE,CACjG,OAAOC,wBAACO,EAAAA,cAAA,CAA6B,GAAGR,CAAA,CAAO,CACjD,CAEA,SAASS,EAAW,CAAE,GAAGT,GAAiE,CACxF,+BAAQU,EAAAA,OAAA,CAAqB,YAAU,cAAe,GAAGV,EAAO,CAClE,CAEA,MAAMW,EAAUC,EAAM,WAGpB,CAAC,CAAE,UAAAC,EAAW,GAAGb,CAAA,EAASc,IAC1Bb,EAAAA,kBAAAA,IAACc,EAAAA,MAAA,CACC,IAAAD,EACA,UAAWE,EAAAA,GAAG,gFAAiFH,CAAS,EACvG,GAAGb,CAAA,CACN,CACD,EACDW,EAAQ,YAAcI,EAAAA,MAAsB,YAE5C,MAAME,EAAiBL,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGb,CAAA,EAASc,IAC1Bb,EAAAA,kBAAAA,IAACiB,EAAAA,UAAA,CACC,IAAAJ,EACA,UAAWE,EAAAA,GACT,uNACAH,CAAA,EAED,GAAGb,CAAA,CACN,CACD,EACDiB,EAAe,YAAcC,EAAAA,UAAyB,YAEtD,MAAMC,EAAoBP,EAAM,WAG9B,CAAC,CAAE,UAAA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CAAE,UAAAC,EAAW,GAAGb,CAAA,EAASc,IAC1Bb,EAAAA,kBAAAA,IAAC4C,EAAAA,aAAA,CAA2B,IAAA/B,EAAU,UAAWE,EAAAA,GAAG,2BAA4BH,CAAS,EAAI,GAAGb,EAAO,CACxG,EACD4C,EAAiB,YAAcC,EAAAA,aAA2B,YAE1D,MAAMC,EAAkB,CAAC,CAAE,UAAAjC,EAAW,GAAGb,KAChCC,EAAAA,kBAAAA,IAAC,QAAK,UAAWe,EAAAA,GAAG,wDAAyDH,CAAS,EAAI,GAAGb,EAAO,EAE7G8C,EAAgB,YAAc"}
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 || 'Menubar';\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 || 'MenubarTrigger';\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 || 'MenubarSubTrigger';\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 || 'MenubarSubContent';\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 || 'MenubarContent';\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 || 'MenubarItem';\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 || 'MenubarCheckboxItem';\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 || 'MenubarRadioItem';\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 || 'MenubarLabel';\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 || 'MenubarSeparator';\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,GAAGN,CAAA,CAAO,CAC7C,CAEA,SAASO,EAAkB,CAAE,GAAGP,GAAmE,CACjG,OAAOC,wBAACO,EAA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Q,EAAAA,kBAAAA,KAACkB,EAAAA,aAAA,CACC,IAAA1B,EACA,UAAWE,EAAAA,GACT,qNACAH,CAAA,EAED,GAAGb,EAEJ,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,+DACd,SAAAA,EAAAA,kBAAAA,IAACoC,EAAAA,iBAAA,CACC,SAAApC,EAAAA,kBAAAA,IAACwC,EAAAA,OAAA,CAAO,UAAU,sBAAA,CAAuB,CAAA,CAC3C,EACF,EACCpB,CAAA,CAAA,CACH,CACD,EACDkB,EAAiB,YAAcC,gBAA4B,aAAe,mBAE1E,MAAME,EAAe9B,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,MAAAO,EAAO,GAAGpB,GAASc,IACjCb,EAAAA,kBAAAA,IAAC0C,EAAAA,SAAA,CACC,IAAA7B,EACA,UAAWE,EAAAA,GAAG,oCAAqCI,GAAS,OAAQP,CAAS,EAC5E,GAAGb,CAAA,CACN,CACD,EACD0C,EAAa,YAAcC,YAAwB,aAAe,eAElE,MAAMC,EAAmBhC,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGb,CAAA,EAASc,IAC1Bb,EAAAA,kBAAAA,IAAC4C,EAAAA,aAAA,CAA2B,IAAA/B,EAAU,UAAWE,EAAAA,GAAG,2BAA4BH,CAAS,EAAI,GAAGb,EAAO,CACxG,EACD4C,EAAiB,YAAcC,gBAA4B,aAAe,mBAE1E,MAAMC,EAAkB,CAAC,CAAE,UAAAjC,EAAW,GAAGb,KAChCC,EAAAA,kBAAAA,IAAC,QAAK,UAAWe,EAAAA,GAAG,wDAAyDH,CAAS,EAAI,GAAGb,EAAO,EAE7G8C,EAAgB,YAAc"}
package/dist/menubar.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { j as a, a9 as i, aa as c, ab as l, l as j, ac as m, ad as u, ae as f, af as p, ag as x, ah as b, w, ai as g, V as M, aj as N, ak as y, al as R, am as v, an as S, ao as C } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as a, a9 as i, aa as c, ab as l, l as j, ac as u, ad as m, ae as f, af as p, ag as b, ah as x, w as M, ai as g, V as w, aj as N, ak as h, al as R, am as v, an as S, ao as C } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as r from "react";
4
- import { c as n } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as o } from "./utils-CgPEtJt0.mjs";
5
5
  function F({ ...e }) {
6
6
  return /* @__PURE__ */ a.jsx(v, { ...e });
7
7
  }
@@ -9,7 +9,7 @@ function H({ ...e }) {
9
9
  return /* @__PURE__ */ a.jsx(R, { ...e });
10
10
  }
11
11
  function J({ ...e }) {
12
- return /* @__PURE__ */ a.jsx(u, { ...e });
12
+ return /* @__PURE__ */ a.jsx(m, { ...e });
13
13
  }
14
14
  function K({ ...e }) {
15
15
  return /* @__PURE__ */ a.jsx(S, { ...e });
@@ -21,72 +21,72 @@ const I = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
21
21
  i,
22
22
  {
23
23
  ref: s,
24
- className: n("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm", e),
24
+ className: o("bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm", e),
25
25
  ...t
26
26
  }
27
27
  ));
28
- I.displayName = i.displayName;
28
+ I.displayName = i?.displayName || "Menubar";
29
29
  const k = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
30
30
  c,
31
31
  {
32
32
  ref: s,
33
- className: n(
33
+ className: o(
34
34
  "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",
35
35
  e
36
36
  ),
37
37
  ...t
38
38
  }
39
39
  ));
40
- k.displayName = c.displayName;
41
- const z = r.forwardRef(({ className: e, inset: t, children: s, ...o }, d) => /* @__PURE__ */ a.jsxs(
40
+ k.displayName = c?.displayName || "MenubarTrigger";
41
+ const z = r.forwardRef(({ className: e, inset: t, children: s, ...n }, d) => /* @__PURE__ */ a.jsxs(
42
42
  l,
43
43
  {
44
44
  ref: d,
45
- className: n(
45
+ className: o(
46
46
  "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",
47
47
  t && "pl-8",
48
48
  e
49
49
  ),
50
- ...o,
50
+ ...n,
51
51
  children: [
52
52
  s,
53
53
  /* @__PURE__ */ a.jsx(j, { className: "ml-auto h-4 w-4" })
54
54
  ]
55
55
  }
56
56
  ));
57
- z.displayName = l.displayName;
58
- const G = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
59
- m,
57
+ z.displayName = l?.displayName || "MenubarSubTrigger";
58
+ const T = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
59
+ u,
60
60
  {
61
61
  ref: s,
62
- className: n(
62
+ className: o(
63
63
  "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",
64
64
  e
65
65
  ),
66
66
  ...t
67
67
  }
68
68
  ));
69
- G.displayName = m.displayName;
70
- const T = r.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...d }, h) => /* @__PURE__ */ a.jsx(u, { children: /* @__PURE__ */ a.jsx(
69
+ T.displayName = u?.displayName || "MenubarSubContent";
70
+ const G = r.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: n = 8, ...d }, y) => /* @__PURE__ */ a.jsx(m, { children: /* @__PURE__ */ a.jsx(
71
71
  f,
72
72
  {
73
- ref: h,
73
+ ref: y,
74
74
  align: t,
75
75
  alignOffset: s,
76
- sideOffset: o,
77
- className: n(
76
+ sideOffset: n,
77
+ className: o(
78
78
  "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",
79
79
  e
80
80
  ),
81
81
  ...d
82
82
  }
83
83
  ) }));
84
- T.displayName = f.displayName;
85
- const L = r.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
84
+ G.displayName = f?.displayName || "MenubarContent";
85
+ const L = r.forwardRef(({ className: e, inset: t, ...s }, n) => /* @__PURE__ */ a.jsx(
86
86
  p,
87
87
  {
88
- ref: o,
89
- className: n(
88
+ ref: n,
89
+ className: o(
90
90
  "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",
91
91
  t && "pl-8",
92
92
  e
@@ -94,57 +94,57 @@ const L = r.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
94
94
  ...s
95
95
  }
96
96
  ));
97
- L.displayName = p.displayName;
98
- const P = r.forwardRef(({ className: e, children: t, checked: s, ...o }, d) => /* @__PURE__ */ a.jsxs(
99
- x,
97
+ L.displayName = p?.displayName || "MenubarItem";
98
+ const P = r.forwardRef(({ className: e, children: t, checked: s, ...n }, d) => /* @__PURE__ */ a.jsxs(
99
+ b,
100
100
  {
101
101
  ref: d,
102
- className: n(
102
+ className: o(
103
103
  "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",
104
104
  e
105
105
  ),
106
106
  checked: s,
107
- ...o,
107
+ ...n,
108
108
  children: [
109
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(b, { children: /* @__PURE__ */ a.jsx(w, { className: "h-4 w-4" }) }) }),
109
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(x, { children: /* @__PURE__ */ a.jsx(M, { className: "h-4 w-4" }) }) }),
110
110
  t
111
111
  ]
112
112
  }
113
113
  ));
114
- P.displayName = x.displayName;
115
- const E = r.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
114
+ P.displayName = b?.displayName || "MenubarCheckboxItem";
115
+ const E = r.forwardRef(({ className: e, children: t, ...s }, n) => /* @__PURE__ */ a.jsxs(
116
116
  g,
117
117
  {
118
- ref: o,
119
- className: n(
118
+ ref: n,
119
+ className: o(
120
120
  "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",
121
121
  e
122
122
  ),
123
123
  ...s,
124
124
  children: [
125
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(b, { children: /* @__PURE__ */ a.jsx(M, { className: "h-4 w-4 fill-current" }) }) }),
125
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(x, { children: /* @__PURE__ */ a.jsx(w, { className: "h-4 w-4 fill-current" }) }) }),
126
126
  t
127
127
  ]
128
128
  }
129
129
  ));
130
- E.displayName = g.displayName;
131
- const V = r.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
130
+ E.displayName = g?.displayName || "MenubarRadioItem";
131
+ const V = r.forwardRef(({ className: e, inset: t, ...s }, n) => /* @__PURE__ */ a.jsx(
132
132
  N,
133
133
  {
134
- ref: o,
135
- className: n("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
134
+ ref: n,
135
+ className: o("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
136
136
  ...s
137
137
  }
138
138
  ));
139
- V.displayName = N.displayName;
140
- const q = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(y, { ref: s, className: n("bg-muted -mx-1 my-1 h-px", e), ...t }));
141
- q.displayName = y.displayName;
142
- const A = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: n("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
139
+ V.displayName = N?.displayName || "MenubarLabel";
140
+ const q = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(h, { ref: s, className: o("bg-muted -mx-1 my-1 h-px", e), ...t }));
141
+ q.displayName = h?.displayName || "MenubarSeparator";
142
+ const A = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: o("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
143
143
  A.displayname = "MenubarShortcut";
144
144
  export {
145
145
  I as Menubar,
146
146
  P as MenubarCheckboxItem,
147
- T as MenubarContent,
147
+ G as MenubarContent,
148
148
  H as MenubarGroup,
149
149
  L as MenubarItem,
150
150
  V as MenubarLabel,
@@ -155,7 +155,7 @@ export {
155
155
  q as MenubarSeparator,
156
156
  A as MenubarShortcut,
157
157
  O as MenubarSub,
158
- G as MenubarSubContent,
158
+ T as MenubarSubContent,
159
159
  z as MenubarSubTrigger,
160
160
  k as MenubarTrigger
161
161
  };
@@ -1 +1 @@
1
- {"version":3,"file":"menubar.mjs","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":";;;;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,MACT;AAAA,MACAH;AAAA,IAAA;AAAA,IAED,GAAGb;AAAA,E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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
+ {"version":3,"file":"menubar.mjs","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 || 'Menubar';\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 || 'MenubarTrigger';\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 || 'MenubarSubTrigger';\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 || 'MenubarSubContent';\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 || 'MenubarContent';\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 || 'MenubarItem';\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 || 'MenubarCheckboxItem';\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 || 'MenubarRadioItem';\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 || 'MenubarLabel';\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 || 'MenubarSeparator';\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,KAA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AAAA,IACA,WAAWE,EAAG,qCAAqCI,KAAS,QAAQP,CAAS;AAAA,IAC5E,GAAGb;AAAA,EAAA;AACN,CACD;AACD0C,EAAa,cAAcC,GAAwB,eAAe;AAElE,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,GAA4B,eAAe;AAE1E,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
- "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;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-DQFuDa7q.js"),f=require("react"),o=require("./utils--qajXu5A.js");function p(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=p(f),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||"NavigationMenu";const u=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}));u.displayName=t.List?.displayName||"NavigationMenuList";const v=t.Item$1,c=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(c(),"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||"NavigationMenuTrigger";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||"NavigationMenuContent";const x=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||"NavigationMenuViewport";const g=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"})}));g.displayName=t.Indicator?.displayName||"NavigationMenuIndicator";exports.NavigationMenu=d;exports.NavigationMenuContent=m;exports.NavigationMenuIndicator=g;exports.NavigationMenuItem=v;exports.NavigationMenuLink=x;exports.NavigationMenuList=u;exports.NavigationMenuTrigger=l;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=c;
2
2
  //# sourceMappingURL=navigation-menu.cjs.map
@@ -1 +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,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACC,EAAAA,KAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GAAG,oEAAqEN,CAAS,EAC3F,GAAGE,CAAA,CACN,CACD,EACDM,EAAmB,YAAcE,EAAAA,KAA6B,YAE9D,MAAMC,EAAqBC,EAAAA,OAErBC,EAA6BC,EAAAA,IACjC,4aACF,EAEMC,EAAwBhB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACY,EAAAA,UAAA,CACC,IAAAb,EACA,UAAWG,EAAAA,GAAGO,IAA8B,QAASb,CAAS,EAC7D,GAAGE,EAEH,SAAA,CAAAD,EAAU,IACXQ,EAAAA,kBAAAA,IAACQ,EAAAA,YAAA,CACC,UAAU,6FACV,cAAY,MAAA,CAAA,CACd,CAAA,CACF,CACD,EACDF,EAAsB,YAAcC,EAAAA,UAAgC,YAEpE,MAAME,EAAwBnB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACU,EAAAA,QAAA,CACC,IAAAhB,EACA,UAAWG,EAAAA,GACT,wVACAN,CAAA,EAED,GAAGE,CAAA,CACN,CACD,EACDgB,EAAsB,YAAcC,EAAAA,QAAgC,YAEpE,MAAMC,EAAqBC,EAAAA,KAErBd,EAAyBR,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGE,GAASC,IAC1BM,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,GAAG,8CAA8C,EAC/D,SAAAG,EAAAA,kBAAAA,IAACa,EAAAA,SAAA,CACC,UAAWhB,EAAAA,GACT,qVACAN,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,EACF,CACD,EACDK,EAAuB,YAAce,EAAAA,SAAiC,YAEtE,MAAMC,EAA0BxB,EAAM,WAGpC,CAAC,CAAE,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"}
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 || 'NavigationMenu';\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 || 'NavigationMenuList';\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 || 'NavigationMenuTrigger';\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 || 'NavigationMenuContent';\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 || 'NavigationMenuViewport';\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 || 'NavigationMenuIndicator';\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,WAA8B,aAAe,iBAE1E,MAAMG,EAAqBT,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACC,EAAAA,KAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GAAG,oEAAqEN,CAAS,EAC3F,GAAGE,CAAA,CACN,CACD,EACDM,EAAmB,YAAcE,QAA8B,aAAe,qBAE9E,MAAMC,EAAqBC,EAAAA,OAErBC,EAA6BC,EAAAA,IACjC,4aACF,EAEMC,EAAwBhB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAASC,IACpCC,EAAAA,kBAAAA,KAACY,EAAAA,UAAA,CACC,IAAAb,EACA,UAAWG,EAAAA,GAAGO,IAA8B,QAASb,CAAS,EAC7D,GAAGE,EAEH,SAAA,CAAAD,EAAU,IACXQ,EAAAA,kBAAAA,IAACQ,EAAAA,YAAA,CACC,UAAU,6FACV,cAAY,MAAA,CAAA,CACd,CAAA,CACF,CACD,EACDF,EAAsB,YAAcC,aAAiC,aAAe,wBAEpF,MAAME,EAAwBnB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACU,EAAAA,QAAA,CACC,IAAAhB,EACA,UAAWG,EAAAA,GACT,wVACAN,CAAA,EAED,GAAGE,CAAA,CACN,CACD,EACDgB,EAAsB,YAAcC,WAAiC,aAAe,wBAEpF,MAAMC,EAAqBC,EAAAA,KAErBd,EAAyBR,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGE,GAASC,IAC1BM,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,GAAG,8CAA8C,EAC/D,SAAAG,EAAAA,kBAAAA,IAACa,EAAAA,SAAA,CACC,UAAWhB,EAAAA,GACT,qVACAN,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,EACF,CACD,EACDK,EAAuB,YAAce,YAAkC,aAAe,yBAEtF,MAAMC,EAA0BxB,EAAM,WAGpC,CAAC,CAAE,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,aAAmC,aAAe"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { j as o, ap as r, aq as d, ar as m, C as p, as as l, at as c, au as f, g, av as v, aw as x } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as o, ap as r, aq as d, ar as m, C as p, as as l, at as c, au as u, g, av as v, aw as N } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as i from "react";
4
- import { c as n } from "./utils-Dk-Gx69q.mjs";
5
- const N = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__ */ o.jsxs(
4
+ import { c as n } from "./utils-CgPEtJt0.mjs";
5
+ const x = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__ */ o.jsxs(
6
6
  r,
7
7
  {
8
8
  ref: s,
@@ -10,12 +10,12 @@ const N = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__
10
10
  ...e,
11
11
  children: [
12
12
  t,
13
- /* @__PURE__ */ o.jsx(u, {})
13
+ /* @__PURE__ */ o.jsx(f, {})
14
14
  ]
15
15
  }
16
16
  ));
17
- N.displayName = r.displayName;
18
- const h = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
17
+ x.displayName = r?.displayName || "NavigationMenu";
18
+ const w = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
19
19
  d,
20
20
  {
21
21
  ref: e,
@@ -23,14 +23,14 @@ const h = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
23
23
  ...t
24
24
  }
25
25
  ));
26
- h.displayName = d.displayName;
27
- const z = v, w = g(
26
+ w.displayName = d?.displayName || "NavigationMenuList";
27
+ const C = v, h = g(
28
28
  "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"
29
29
  ), y = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__ */ o.jsxs(
30
30
  m,
31
31
  {
32
32
  ref: s,
33
- className: n(w(), "group", a),
33
+ className: n(h(), "group", a),
34
34
  ...e,
35
35
  children: [
36
36
  t,
@@ -45,7 +45,7 @@ const z = v, w = g(
45
45
  ]
46
46
  }
47
47
  ));
48
- y.displayName = m.displayName;
48
+ y.displayName = m?.displayName || "NavigationMenuTrigger";
49
49
  const b = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
50
50
  l,
51
51
  {
@@ -57,8 +57,8 @@ const b = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
57
57
  ...t
58
58
  }
59
59
  ));
60
- b.displayName = l.displayName;
61
- const C = x, u = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx("div", { className: n("absolute top-full left-0 flex justify-center"), children: /* @__PURE__ */ o.jsx(
60
+ b.displayName = l?.displayName || "NavigationMenuContent";
61
+ const I = N, f = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx("div", { className: n("absolute top-full left-0 flex justify-center"), children: /* @__PURE__ */ o.jsx(
62
62
  c,
63
63
  {
64
64
  className: n(
@@ -69,9 +69,9 @@ const C = x, u = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.j
69
69
  ...t
70
70
  }
71
71
  ) }));
72
- u.displayName = c.displayName;
72
+ f.displayName = c?.displayName || "NavigationMenuViewport";
73
73
  const j = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
74
- f,
74
+ u,
75
75
  {
76
76
  ref: e,
77
77
  className: n(
@@ -82,16 +82,16 @@ const j = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
82
82
  children: /* @__PURE__ */ o.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
83
83
  }
84
84
  ));
85
- j.displayName = f.displayName;
85
+ j.displayName = u?.displayName || "NavigationMenuIndicator";
86
86
  export {
87
- N as NavigationMenu,
87
+ x as NavigationMenu,
88
88
  b as NavigationMenuContent,
89
89
  j as NavigationMenuIndicator,
90
- z as NavigationMenuItem,
91
- C as NavigationMenuLink,
92
- h as NavigationMenuList,
90
+ C as NavigationMenuItem,
91
+ I as NavigationMenuLink,
92
+ w as NavigationMenuList,
93
93
  y as NavigationMenuTrigger,
94
- u as NavigationMenuViewport,
95
- w as navigationMenuTriggerStyle
94
+ f as NavigationMenuViewport,
95
+ h as navigationMenuTriggerStyle
96
96
  };
97
97
  //# sourceMappingURL=navigation-menu.mjs.map
@@ -1 +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,IAAwBhB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACY;AAAAA,EAAA;AAAA,IACC,KAAAb;AAAA,IACA,WAAWG,EAAGO,KAA8B,SAASb,CAAS;AAAA,IAC7D,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MAAU;AAAA,MACXQ,gBAAAA,EAAAA;AAAAA,QAACQ;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF,CACD;AACDF,EAAsB,cAAcC,EAAgC;AAEpE,MAAME,IAAwBnB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACU;AAAAA,EAAA;AAAA,IACC,KAAAhB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDgB,EAAsB,cAAcC,EAAgC;AAEpE,MAAMC,IAAqBC,GAErBd,IAAyBR,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,KAASC,MAC1BM,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWH,EAAG,8CAA8C,GAC/D,UAAAG,gBAAAA,EAAAA;AAAAA,EAACa;AAAAA,EAAA;AAAA,IACC,WAAWhB;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cAAce,EAAiC;AAEtE,MAAMC,IAA0BxB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACe;AAAAA,EAAA;AAAA,IACC,KAAArB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,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;"}
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 || 'NavigationMenu';\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 || 'NavigationMenuList';\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 || 'NavigationMenuTrigger';\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 || 'NavigationMenuContent';\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 || 'NavigationMenuViewport';\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 || 'NavigationMenuIndicator';\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,GAA8B,eAAe;AAE1E,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,GAA8B,eAAe;AAE9E,MAAMC,IAAqBC,GAErBC,IAA6BC;AAAA,EACjC;AACF,GAEMC,IAAwBhB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACY;AAAAA,EAAA;AAAA,IACC,KAAAb;AAAA,IACA,WAAWG,EAAGO,KAA8B,SAASb,CAAS;AAAA,IAC7D,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MAAU;AAAA,MACXQ,gBAAAA,EAAAA;AAAAA,QAACQ;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AACF,CACD;AACDF,EAAsB,cAAcC,GAAiC,eAAe;AAEpF,MAAME,IAAwBnB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACU;AAAAA,EAAA;AAAA,IACC,KAAAhB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDgB,EAAsB,cAAcC,GAAiC,eAAe;AAEpF,MAAMC,IAAqBC,GAErBd,IAAyBR,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGE,KAASC,MAC1BM,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWH,EAAG,8CAA8C,GAC/D,UAAAG,gBAAAA,EAAAA;AAAAA,EAACa;AAAAA,EAAA;AAAA,IACC,WAAWhB;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cAAce,GAAkC,eAAe;AAEtF,MAAMC,IAA0BxB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACe;AAAAA,EAAA;AAAA,IACC,KAAArB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAAO,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDc,EAAwB,cAAcC,GAAmC,eAAe;"}
@@ -1,2 +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;
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--qajXu5A.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
2
  //# sourceMappingURL=pagination.cjs.map
@@ -2,7 +2,7 @@
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
4
  import { buttonVariants as p } from "./button.mjs";
5
- import { c as e } from "./utils-Dk-Gx69q.mjs";
5
+ import { c as e } from "./utils-CgPEtJt0.mjs";
6
6
  const g = ({ className: s, ...a }) => /* @__PURE__ */ i.jsx(
7
7
  "nav",
8
8
  {
package/dist/popover.cjs CHANGED
@@ -1,2 +1,2 @@
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;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),s=require("react"),d=require("./utils--qajXu5A.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||"PopoverContent";exports.Popover=l;exports.PopoverAnchor=m;exports.PopoverContent=a;exports.PopoverTrigger=u;
2
2
  //# sourceMappingURL=popover.cjs.map