@constructive-io/ui 0.1.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 (176) hide show
  1. package/dist/components/alert-dialog.d.ts +31 -0
  2. package/dist/components/alert-dialog.js +314 -0
  3. package/dist/components/alert-dialog.js.map +1 -0
  4. package/dist/components/alert.d.ts +14 -0
  5. package/dist/components/alert.js +38 -0
  6. package/dist/components/alert.js.map +1 -0
  7. package/dist/components/autocomplete.d.ts +28 -0
  8. package/dist/components/autocomplete.js +395 -0
  9. package/dist/components/autocomplete.js.map +1 -0
  10. package/dist/components/avatar.d.ts +13 -0
  11. package/dist/components/avatar.js +37 -0
  12. package/dist/components/avatar.js.map +1 -0
  13. package/dist/components/badge.d.ts +15 -0
  14. package/dist/components/badge.js +43 -0
  15. package/dist/components/badge.js.map +1 -0
  16. package/dist/components/breadcrumb.d.ts +14 -0
  17. package/dist/components/breadcrumb.js +154 -0
  18. package/dist/components/breadcrumb.js.map +1 -0
  19. package/dist/components/button.d.ts +17 -0
  20. package/dist/components/button.js +62 -0
  21. package/dist/components/button.js.map +1 -0
  22. package/dist/components/calendar-rac.d.ts +13 -0
  23. package/dist/components/calendar-rac.js +82 -0
  24. package/dist/components/calendar-rac.js.map +1 -0
  25. package/dist/components/card.d.ts +19 -0
  26. package/dist/components/card.js +75 -0
  27. package/dist/components/card.js.map +1 -0
  28. package/dist/components/checkbox-group.d.ts +7 -0
  29. package/dist/components/checkbox-group.js +16 -0
  30. package/dist/components/checkbox-group.js.map +1 -0
  31. package/dist/components/checkbox.d.ts +8 -0
  32. package/dist/components/checkbox.js +67 -0
  33. package/dist/components/checkbox.js.map +1 -0
  34. package/dist/components/collapsible.d.ts +54 -0
  35. package/dist/components/collapsible.js +121 -0
  36. package/dist/components/collapsible.js.map +1 -0
  37. package/dist/components/combobox.d.ts +44 -0
  38. package/dist/components/combobox.js +486 -0
  39. package/dist/components/combobox.js.map +1 -0
  40. package/dist/components/command.d.ts +43 -0
  41. package/dist/components/command.js +690 -0
  42. package/dist/components/command.js.map +1 -0
  43. package/dist/components/dialog.d.ts +35 -0
  44. package/dist/components/dialog.js +440 -0
  45. package/dist/components/dialog.js.map +1 -0
  46. package/dist/components/dock.d.ts +31 -0
  47. package/dist/components/dock.js +111 -0
  48. package/dist/components/dock.js.map +1 -0
  49. package/dist/components/drawer.d.ts +16 -0
  50. package/dist/components/drawer.js +147 -0
  51. package/dist/components/drawer.js.map +1 -0
  52. package/dist/components/dropdown-menu.d.ts +50 -0
  53. package/dist/components/dropdown-menu.js +380 -0
  54. package/dist/components/dropdown-menu.js.map +1 -0
  55. package/dist/components/field.d.ts +51 -0
  56. package/dist/components/field.js +115 -0
  57. package/dist/components/field.js.map +1 -0
  58. package/dist/components/flickering-grid.d.ts +15 -0
  59. package/dist/components/flickering-grid.js +147 -0
  60. package/dist/components/flickering-grid.js.map +1 -0
  61. package/dist/components/form-control.d.ts +15 -0
  62. package/dist/components/form-control.js +173 -0
  63. package/dist/components/form-control.js.map +1 -0
  64. package/dist/components/form.d.ts +37 -0
  65. package/dist/components/form.js +179 -0
  66. package/dist/components/form.js.map +1 -0
  67. package/dist/components/input-group.d.ts +18 -0
  68. package/dist/components/input-group.js +177 -0
  69. package/dist/components/input-group.js.map +1 -0
  70. package/dist/components/input.d.ts +11 -0
  71. package/dist/components/input.js +60 -0
  72. package/dist/components/input.js.map +1 -0
  73. package/dist/components/json-input.d.ts +25 -0
  74. package/dist/components/json-input.js +351 -0
  75. package/dist/components/json-input.js.map +1 -0
  76. package/dist/components/label.d.ts +11 -0
  77. package/dist/components/label.js +27 -0
  78. package/dist/components/label.js.map +1 -0
  79. package/dist/components/motion-grid.d.ts +20 -0
  80. package/dist/components/motion-grid.js +81 -0
  81. package/dist/components/motion-grid.js.map +1 -0
  82. package/dist/components/multi-select.d.ts +198 -0
  83. package/dist/components/multi-select.js +882 -0
  84. package/dist/components/multi-select.js.map +1 -0
  85. package/dist/components/page-header.d.ts +17 -0
  86. package/dist/components/page-header.js +17 -0
  87. package/dist/components/page-header.js.map +1 -0
  88. package/dist/components/pagination.d.ts +19 -0
  89. package/dist/components/pagination.js +144 -0
  90. package/dist/components/pagination.js.map +1 -0
  91. package/dist/components/popover.d.ts +35 -0
  92. package/dist/components/popover.js +188 -0
  93. package/dist/components/popover.js.map +1 -0
  94. package/dist/components/portal.d.ts +108 -0
  95. package/dist/components/portal.js +75 -0
  96. package/dist/components/portal.js.map +1 -0
  97. package/dist/components/progress.d.ts +10 -0
  98. package/dist/components/progress.js +30 -0
  99. package/dist/components/progress.js.map +1 -0
  100. package/dist/components/progressive-blur-scroll-container.d.ts +25 -0
  101. package/dist/components/progressive-blur-scroll-container.js +142 -0
  102. package/dist/components/progressive-blur-scroll-container.js.map +1 -0
  103. package/dist/components/progressive-blur.d.ts +16 -0
  104. package/dist/components/progressive-blur.js +68 -0
  105. package/dist/components/progressive-blur.js.map +1 -0
  106. package/dist/components/radio-group.d.ts +10 -0
  107. package/dist/components/radio-group.js +37 -0
  108. package/dist/components/radio-group.js.map +1 -0
  109. package/dist/components/record-picker.d.ts +16 -0
  110. package/dist/components/record-picker.js +366 -0
  111. package/dist/components/record-picker.js.map +1 -0
  112. package/dist/components/resizable.d.ts +11 -0
  113. package/dist/components/resizable.js +52 -0
  114. package/dist/components/resizable.js.map +1 -0
  115. package/dist/components/responsive-diagram.d.ts +10 -0
  116. package/dist/components/responsive-diagram.js +63 -0
  117. package/dist/components/responsive-diagram.js.map +1 -0
  118. package/dist/components/scroll-area.d.ts +12 -0
  119. package/dist/components/scroll-area.js +69 -0
  120. package/dist/components/scroll-area.js.map +1 -0
  121. package/dist/components/select.d.ts +47 -0
  122. package/dist/components/select.js +287 -0
  123. package/dist/components/select.js.map +1 -0
  124. package/dist/components/separator.d.ts +11 -0
  125. package/dist/components/separator.js +24 -0
  126. package/dist/components/separator.js.map +1 -0
  127. package/dist/components/sheet.d.ts +112 -0
  128. package/dist/components/sheet.js +600 -0
  129. package/dist/components/sheet.js.map +1 -0
  130. package/dist/components/sidebar.d.ts +77 -0
  131. package/dist/components/sidebar.js +1217 -0
  132. package/dist/components/sidebar.js.map +1 -0
  133. package/dist/components/skeleton.d.ts +7 -0
  134. package/dist/components/skeleton.js +16 -0
  135. package/dist/components/skeleton.js.map +1 -0
  136. package/dist/components/sonner.d.ts +10 -0
  137. package/dist/components/sonner.js +23 -0
  138. package/dist/components/sonner.js.map +1 -0
  139. package/dist/components/stack/index.d.ts +663 -0
  140. package/dist/components/stack/index.js +1418 -0
  141. package/dist/components/stack/index.js.map +1 -0
  142. package/dist/components/stepper.d.ts +30 -0
  143. package/dist/components/stepper.js +280 -0
  144. package/dist/components/stepper.js.map +1 -0
  145. package/dist/components/switch.d.ts +8 -0
  146. package/dist/components/switch.js +40 -0
  147. package/dist/components/switch.js.map +1 -0
  148. package/dist/components/table.d.ts +15 -0
  149. package/dist/components/table.js +65 -0
  150. package/dist/components/table.js.map +1 -0
  151. package/dist/components/tabs.d.ts +10 -0
  152. package/dist/components/tabs.js +48 -0
  153. package/dist/components/tabs.js.map +1 -0
  154. package/dist/components/tags.d.ts +42 -0
  155. package/dist/components/tags.js +728 -0
  156. package/dist/components/tags.js.map +1 -0
  157. package/dist/components/textarea.d.ts +10 -0
  158. package/dist/components/textarea.js +54 -0
  159. package/dist/components/textarea.js.map +1 -0
  160. package/dist/components/toast/index.d.ts +52 -0
  161. package/dist/components/toast/index.js +221 -0
  162. package/dist/components/toast/index.js.map +1 -0
  163. package/dist/components/tooltip.d.ts +29 -0
  164. package/dist/components/tooltip.js +174 -0
  165. package/dist/components/tooltip.js.map +1 -0
  166. package/dist/components/unlink-button.d.ts +14 -0
  167. package/dist/components/unlink-button.js +91 -0
  168. package/dist/components/unlink-button.js.map +1 -0
  169. package/dist/index.cjs +7692 -0
  170. package/dist/index.cjs.map +1 -0
  171. package/dist/index.d.cts +2157 -0
  172. package/dist/index.d.ts +2157 -0
  173. package/dist/index.js +7375 -0
  174. package/dist/index.js.map +1 -0
  175. package/package.json +490 -0
  176. package/src/styles/globals.css +397 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/utils.ts","../../src/components/badge.tsx","../../src/components/button.tsx","../../src/components/portal.tsx","../../src/lib/slot.tsx","../../src/components/input.tsx","../../src/components/scroll-area.tsx","../../src/components/autocomplete.tsx","../../src/components/command.tsx","../../src/components/popover.tsx","../../src/components/tags.tsx"],"names":["React","cva","React2","jsx","React3","InputPrimitive","React5","ScrollAreaPrimitive","AutocompletePrimitive","jsxs","React6","CommandDialogPrimitive","PopoverPrimitive","React7","createContext","useContext","useState","useRef","XIcon"],"mappings":";;;;;;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACAA,IAAM,aAAA,GAAgB,GAAA;AAAA,EACrB,wlBAAA;AAAA,EACA;AAAA,IACC,eAAA,EAAiB;AAAA,MAChB,IAAA,EAAM,SAAA;AAAA,MACN,OAAA,EAAS;AAAA,KACV;AAAA,IACA,QAAA,EAAU;AAAA,MACT,IAAA,EAAM;AAAA,QACL,OAAA,EAAS,qCAAA;AAAA,QACT,EAAA,EAAI,uCAAA;AAAA,QACJ,EAAA,EAAI;AAAA,OACL;AAAA,MACA,OAAA,EAAS;AAAA,QACR,OAAA,EAAS,oEAAA;AAAA,QACT,WAAA,EAAa,+DAAA;AAAA,QACb,KAAA,EAAO,0DAAA;AAAA,QACP,IAAA,EAAM,gDAAA;AAAA,QACN,OAAA,EACC,oHAAA;AAAA,QACD,SAAA,EAAW,0EAAA;AAAA,QACX,OAAA,EAAS,yDAAA;AAAA,QACT,OAAA,EAAS;AAAA;AACV;AACD;AAEF,CAAA;AAIA,IAAM,KAAA,GAAcA,MAAA,CAAA,UAAA,CAAwC,CAAC,EAAE,SAAA,EAAW,OAAA,EAAS,IAAA,EAAM,GAAG,KAAA,EAAM,EAAG,GAAA,qBACpG,GAAA,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Value } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst badgeVariants = cva(\n\t\"relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button,a&]:cursor-pointer [button,a&]:pointer-coarse:after:absolute [button,a&]:pointer-coarse:after:size-full [button,a&]:pointer-coarse:after:min-h-11 [button,a&]:pointer-coarse:after:min-w-11\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tvariant: 'default',\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault: 'px-[calc(--spacing(1)-1px)] text-xs',\n\t\t\t\tlg: 'px-[calc(--spacing(1.5)-1px)] text-sm',\n\t\t\t\tsm: 'rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90',\n\t\t\t\tdestructive: 'bg-destructive text-white [button,a&]:hover:bg-destructive/90',\n\t\t\t\terror: 'bg-destructive/8 text-destructive dark:bg-destructive/16',\n\t\t\t\tinfo: 'bg-info/8 text-info-foreground dark:bg-info/16',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48',\n\t\t\t\tsecondary: 'bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90',\n\t\t\t\tsuccess: 'bg-success/8 text-success-foreground dark:bg-success/16',\n\t\t\t\twarning: 'bg-warning/8 text-warning-foreground dark:bg-warning/16',\n\t\t\t},\n\t\t},\n\t},\n);\n\ntype BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(({ className, variant, size, ...props }, ref) => (\n\t<span ref={ref} data-slot=\"badge\" className={cn(badgeVariants({ variant, size }), className)} {...props} />\n));\n\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\nexport type { BadgeProps };\n","import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tvariant: 'default',\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-9 px-[calc(--spacing(3)-1px)] sm:h-8',\n\t\t\t\ticon: 'size-9 sm:size-8',\n\t\t\t\t'icon-lg': 'size-10 sm:size-9',\n\t\t\t\t'icon-sm': 'size-8 sm:size-7',\n\t\t\t\t'icon-xl': 'size-11 sm:size-10 [&_svg:not([class*=\"size-\"])]:size-5 sm:[&_svg:not([class*=\"size-\"])]:size-4.5',\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t\tlg: 'h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9',\n\t\t\t\tsm: 'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7',\n\t\t\t\txl: 'h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*=\"size-\"])]:size-5 sm:[&_svg:not([class*=\"size-\"])]:size-4.5',\n\t\t\t\txs: 'h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*=\"size-\"])]:size-4 sm:[&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80',\n\t\t\t},\n\t\t},\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, asChild, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, variant }));\n\n\t\t// If asChild, render children with merged props (for wrapping Links, etc.)\n\t\tif (asChild && React.isValidElement(children)) {\n\t\t\tconst childProps = children.props as Record<string, unknown>;\n\t\t\treturn React.cloneElement(children as React.ReactElement<Record<string, unknown>>, {\n\t\t\t\t...props,\n\t\t\t\tclassName: cn(buttonClasses, childProps.className as string | undefined),\n\t\t\t\t'data-slot': 'button',\n\t\t\t});\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n","'use client';\n\nimport * as React from 'react';\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/**\n * Overlay layer type:\n * - 'base': Root level (page content, base floating elements)\n * - 'modal': Inside a modal overlay (dialog, sheet, drawer)\n */\nexport type OverlayLayer = 'base' | 'modal';\n\n/**\n * Where floating overlays should portal:\n * - 'root': always portal into #portal-root\n * - 'nested': let Base UI nest portals into the nearest Base UI portal node\n */\nexport type FloatingPortalStrategy = 'root' | 'nested';\n\n/**\n * Z-index mode for floating overlays.\n * - 'default': --z-layer-floating\n * - 'elevated': --z-layer-floating-elevated\n */\nexport type FloatingZIndex = 'default' | 'elevated';\n\ninterface PortalContextValue {\n\t/** Current overlay layer */\n\tlayer: OverlayLayer;\n\t/** Modal nesting depth (0 for first modal, 1 for nested, etc.) */\n\tdepth: number;\n\t/** Strategy for where floating overlays should portal */\n\tfloatingPortalStrategy: FloatingPortalStrategy;\n\t/** Z-index mode for floating overlays */\n\tfloatingZIndex: FloatingZIndex;\n}\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nexport const PORTAL_ROOT_ID = 'portal-root';\n\n// ============================================================================\n// Context\n// ============================================================================\n\nconst PortalContext = React.createContext<PortalContextValue>({\n\tlayer: 'base',\n\tdepth: 0,\n\tfloatingPortalStrategy: 'root',\n\tfloatingZIndex: 'default',\n});\n\n// ============================================================================\n// Providers\n// ============================================================================\n\n/**\n * Provider for modal overlays (Dialog, Sheet, Drawer, etc.)\n *\n * Wraps modal content to:\n * 1. Create a scoped portal container for nested floating elements\n * 2. Track the overlay layer (so floating elements know to use elevated z-index)\n * 3. Track nesting depth for stacked modals\n *\n * Usage:\n * ```tsx\n * <DialogPopup>\n * <ModalPortalScope>\n * {children} // Popovers inside here will render in the scoped container\n * </ModalPortalScope>\n * </DialogPopup>\n * ```\n */\nexport function ModalPortalScope({\n\tchildren,\n\tfloatingPortalStrategy = 'nested',\n\tfloatingZIndex = 'default',\n}: {\n\tchildren: React.ReactNode;\n\tfloatingPortalStrategy?: FloatingPortalStrategy;\n\tfloatingZIndex?: FloatingZIndex;\n}) {\n\tconst parentContext = React.useContext(PortalContext);\n\n\t// Increment depth from parent if already in modal layer\n\tconst depth = parentContext.layer === 'modal' ? parentContext.depth + 1 : 0;\n\n\tconst value = React.useMemo<PortalContextValue>(\n\t\t() => ({\n\t\t\tlayer: 'modal',\n\t\t\tdepth,\n\t\t\tfloatingPortalStrategy,\n\t\t\tfloatingZIndex,\n\t\t}),\n\t\t[depth, floatingPortalStrategy, floatingZIndex],\n\t);\n\n\treturn <PortalContext.Provider value={value}>{children}</PortalContext.Provider>;\n}\n\n// ============================================================================\n// Hooks\n// ============================================================================\n\n/**\n * Get the current portal context value.\n * Used internally by other hooks.\n */\nexport function usePortalContext(): PortalContextValue {\n\treturn React.useContext(PortalContext);\n}\n\nexport function useInModalOverlay(): boolean {\n\treturn React.useContext(PortalContext).layer === 'modal';\n}\n\n/**\n * Get the root portal container element.\n * Used by modal components (Dialog, Sheet, etc.) to render their portals.\n *\n * @returns The root portal container, or null during SSR/before mount\n */\nexport function useRootPortalContainer(): HTMLElement | null {\n\tconst [container, setContainer] = React.useState<HTMLElement | null>(null);\n\n\tReact.useLayoutEffect(() => {\n\t\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\t\tsetContainer(el);\n\t}, []);\n\n\treturn container;\n}\n\n/**\n * Centralized portal + z-index policy for floating overlays.\n *\n * - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal\n * into the nearest Base UI portal node (so dialog \"inert\" behavior includes it).\n * - When it's 'root', we portal into #portal-root.\n */\nexport function useFloatingOverlayPortalProps(): {\n\tcontainer?: HTMLElement | null;\n\tzIndexClass: string;\n} {\n\tconst rootContainer = useRootPortalContainer();\n\tconst { floatingPortalStrategy, floatingZIndex } = React.useContext(PortalContext);\n\n\tconst container = floatingPortalStrategy === 'nested' ? undefined : (rootContainer ?? null);\n\tconst zIndexClass =\n\t\tfloatingZIndex === 'elevated'\n\t\t\t? 'z-[var(--z-layer-floating-elevated)]'\n\t\t\t: 'z-[var(--z-layer-floating)]';\n\n\treturn { container, zIndexClass };\n}\n\n// ============================================================================\n// Components\n// ============================================================================\n\n/**\n * Portal root component to render in app layout.\n * All overlay components will render their portals inside this container.\n *\n * Usage in layout.tsx:\n * ```tsx\n * import { PortalRoot } from '@constructive-io/ui/portal';\n *\n * export default function RootLayout({ children }) {\n * return (\n * <html>\n * <body>\n * {children}\n * <PortalRoot />\n * </body>\n * </html>\n * );\n * }\n * ```\n */\nexport function PortalRoot() {\n\treturn (\n\t\t<div\n\t\t\tid={PORTAL_ROOT_ID}\n\t\t\tdata-slot='portal-root'\n\t\t\tstyle={{\n\t\t\t\tposition: 'fixed',\n\t\t\t\tinset: 0,\n\t\t\t\tzIndex: 'var(--z-layer-portal-root)',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t\t// Children (portal contents) will have pointer-events: auto\n\t\t\t}}\n\t\t/>\n\t);\n}\n\n/**\n * Hook to get the portal container element for rendering floating UI elements.\n * Returns the element with id=\"portal-root\" if it exists in the DOM.\n *\n * @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead\n */\nexport function usePortalContainer(): HTMLElement | undefined {\n\tif (typeof document === 'undefined') return undefined;\n\tconst el = document.getElementById(PORTAL_ROOT_ID);\n\treturn el instanceof HTMLElement ? el : undefined;\n}\n","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single callback ref.\n * React 19 compatible - handles refs as regular props.\n */\nfunction composeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T> {\n\treturn (node) => {\n\t\trefs.forEach((ref) => {\n\t\t\tif (typeof ref === 'function') {\n\t\t\t\tref(node);\n\t\t\t} else if (ref != null) {\n\t\t\t\t(ref as React.MutableRefObject<T | null>).current = node;\n\t\t\t}\n\t\t});\n\t};\n}\n\n/**\n * Merges props, handling special cases for className, style, and event handlers.\n * Excludes 'ref' from merging as it's handled separately.\n */\nfunction mergeProps(\n\tslotProps: Record<string, unknown>,\n\tchildProps: Record<string, unknown>,\n): Record<string, unknown> {\n\tconst overrideProps: Record<string, unknown> = { ...childProps };\n\n\tfor (const propName in childProps) {\n\t\t// Skip ref - handled separately for composition\n\t\tif (propName === 'ref') continue;\n\n\t\tconst slotPropValue = slotProps[propName];\n\t\tconst childPropValue = childProps[propName];\n\n\t\t// Compose event handlers\n\t\tif (/^on[A-Z]/.test(propName) && typeof slotPropValue === 'function' && typeof childPropValue === 'function') {\n\t\t\toverrideProps[propName] = (...args: unknown[]) => {\n\t\t\t\tchildPropValue(...args);\n\t\t\t\tslotPropValue(...args);\n\t\t\t};\n\t\t}\n\t\t// Merge className\n\t\telse if (propName === 'className' && typeof slotPropValue === 'string' && typeof childPropValue === 'string') {\n\t\t\toverrideProps[propName] = `${slotPropValue} ${childPropValue}`.trim();\n\t\t}\n\t\t// Merge style\n\t\telse if (propName === 'style' && typeof slotPropValue === 'object' && typeof childPropValue === 'object') {\n\t\t\toverrideProps[propName] = { ...slotPropValue, ...childPropValue };\n\t\t}\n\t}\n\n\treturn { ...slotProps, ...overrideProps };\n}\n\n/**\n * Merges props from a parent component with a child element's props,\n * including proper ref composition. Use this in render prop patterns\n * where the parent needs to merge its props with the child's.\n *\n * @param parentProps - Props from the parent component (e.g., triggerProps from Base UI)\n * @param childElement - The child React element whose props will be merged\n * @returns Merged props object ready to pass to React.cloneElement\n */\nfunction mergePropsWithRef<T = HTMLElement>(\n\tparentProps: Record<string, unknown>,\n\tchildElement: React.ReactElement,\n): Record<string, unknown> {\n\tconst childProps = childElement.props as Record<string, unknown>;\n\tconst parentRef = parentProps.ref as React.Ref<T> | undefined;\n\tconst childRef = childProps.ref as React.Ref<T> | undefined;\n\n\tconst mergedProps = mergeProps(parentProps, childProps);\n\n\t// Compose refs if either exists\n\tif (parentRef || childRef) {\n\t\tmergedProps.ref = composeRefs(parentRef, childRef);\n\t}\n\n\treturn mergedProps;\n}\n\n/**\n * Check if a value is a valid slottable child (single React element).\n */\nfunction isSlottable(child: React.ReactNode): child is React.ReactElement {\n\treturn React.isValidElement(child);\n}\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n\tchildren?: React.ReactNode;\n}\n\n/**\n * Slot component - renders its child element with merged props.\n * Used for the `asChild` pattern where parent props are passed to child.\n * React 19 compatible - accesses ref from props instead of element.ref.\n */\nconst Slot = React.forwardRef<HTMLElement, SlotProps>((props, forwardedRef) => {\n\tconst { children, ...slotProps } = props;\n\n\t// Handle single child\n\tif (isSlottable(children)) {\n\t\tconst childProps = children.props as Record<string, unknown>;\n\t\t// React 19: ref is now a regular prop, not element.ref\n\t\tconst childRef = childProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\treturn React.cloneElement(children, {\n\t\t\t...mergeProps(slotProps, childProps),\n\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t} as React.Attributes);\n\t}\n\n\t// Handle multiple children - wrap Slottable content\n\tif (React.Children.count(children) > 1) {\n\t\tconst childrenArray = React.Children.toArray(children);\n\t\tconst slottableChild = childrenArray.find(\n\t\t\t(child) => React.isValidElement(child) && child.type === Slottable,\n\t\t) as React.ReactElement<{ children: React.ReactNode }> | undefined;\n\n\t\tif (slottableChild) {\n\t\t\tconst newElement = slottableChild.props.children;\n\t\t\tif (isSlottable(newElement)) {\n\t\t\t\tconst newElementProps = newElement.props as Record<string, unknown> & { children?: React.ReactNode };\n\t\t\t\tconst newChildren = childrenArray.map((child) => {\n\t\t\t\t\tif (child === slottableChild) {\n\t\t\t\t\t\treturn React.Children.count(newElementProps.children) > 1\n\t\t\t\t\t\t\t? React.Children.only(null)\n\t\t\t\t\t\t\t: newElementProps.children;\n\t\t\t\t\t}\n\t\t\t\t\treturn child;\n\t\t\t\t});\n\n\t\t\t\t// React 19: ref is now a regular prop\n\t\t\t\tconst childRef = newElementProps.ref as React.Ref<HTMLElement> | undefined;\n\n\t\t\t\treturn React.cloneElement(newElement, {\n\t\t\t\t\t...mergeProps(slotProps, newElementProps),\n\t\t\t\t\tref: forwardedRef ? composeRefs(forwardedRef, childRef) : childRef,\n\t\t\t\t\tchildren: newChildren,\n\t\t\t\t} as React.Attributes);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Fallback: render children as-is (shouldn't normally happen with proper usage)\n\treturn <>{children}</>;\n});\n\nSlot.displayName = 'Slot';\n\n/**\n * Slottable component - marks content that should receive slot props.\n * Used when Slot has multiple children and you want to specify which one receives props.\n */\nfunction Slottable({ children }: { children: React.ReactNode }) {\n\treturn <>{children}</>;\n}\n\nexport { Slot, Slottable, composeRefs, mergeProps, mergePropsWithRef };\n","'use client';\n\nimport { Input as InputPrimitive } from '@base-ui/react/input';\nimport type * as React from 'react';\n\nimport { cn } from '../lib/utils';\n\ntype InputProps = Omit<InputPrimitive.Props & React.RefAttributes<HTMLInputElement>, 'size'> & {\n\tsize?: 'sm' | 'default' | 'lg' | number;\n\tunstyled?: boolean;\n};\n\nfunction Input({ className, size = 'default', unstyled = false, ...props }: InputProps) {\n\tconst isFloating = props.placeholder === ' ';\n\n\treturn (\n\t\t<span\n\t\t\tclassName={\n\t\t\t\tcn(\n\t\t\t\t\t!unstyled && [\n\t\t\t\t\t\t// Base layout\n\t\t\t\t\t\t'relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base shadow-xs transition-shadow',\n\t\t\t\t\t\t// Inner shadow highlight\n\t\t\t\t\t\t'before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]',\n\t\t\t\t\t\t'not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]',\n\t\t\t\t\t\t// Focus state - use primary brand color\n\t\t\t\t\t\t'has-focus-visible:border-primary/60 has-focus-visible:ring-[3px] has-focus-visible:ring-primary/35',\n\t\t\t\t\t\t// Invalid state\n\t\t\t\t\t\t'has-aria-invalid:border-destructive/36',\n\t\t\t\t\t\t'has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16',\n\t\t\t\t\t\t// Disabled state\n\t\t\t\t\t\t'has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none',\n\t\t\t\t\t\t// Dark mode\n\t\t\t\t\t\t'sm:text-sm dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border',\n\t\t\t\t\t\t'dark:has-aria-invalid:ring-destructive/24',\n\t\t\t\t\t\t'dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/8%)]',\n\t\t\t\t\t],\n\t\t\t\t\tclassName,\n\t\t\t\t) || undefined\n\t\t\t}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"input-control\"\n\t\t>\n\t\t\t<InputPrimitive\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'w-full min-w-0 rounded-[inherit] bg-transparent px-[calc(--spacing(3)-1px)] outline-none',\n\t\t\t\t\tisFloating\n\t\t\t\t\t\t? 'h-11 pt-4.5 pb-1 leading-none placeholder:text-transparent sm:h-10'\n\t\t\t\t\t\t: 'h-8.5 leading-8.5 placeholder:text-muted-foreground/72 sm:h-7.5 sm:leading-7.5',\n\t\t\t\t\tsize === 'sm' &&\n\t\t\t\t\t\t(isFloating\n\t\t\t\t\t\t\t? 'h-10 px-[calc(--spacing(2.5)-1px)] pt-4 pb-1 sm:h-9'\n\t\t\t\t\t\t\t: 'h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5'),\n\t\t\t\t\tsize === 'lg' &&\n\t\t\t\t\t\t(isFloating ? 'h-12 pt-5 pb-1.5 sm:h-11' : 'h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5'),\n\t\t\t\t\tprops.type === 'search' &&\n\t\t\t\t\t\t'[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none',\n\t\t\t\t\tprops.type === 'file' &&\n\t\t\t\t\t\t'text-muted-foreground file:me-3 file:bg-transparent file:font-medium file:text-foreground file:text-sm',\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"input\"\n\t\t\t\tsize={typeof size === 'number' ? size : undefined}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</span>\n\t);\n}\n\nexport { Input };\nexport type { InputProps };\n","\"use client\";\n\nimport * as React from \"react\";\nimport { ScrollArea as ScrollAreaPrimitive } from \"@base-ui/react/scroll-area\";\n\nimport { cn } from \"../lib/utils\";\n\ntype ScrollAreaProps = ScrollAreaPrimitive.Root.Props & {\n scrollFade?: boolean;\n scrollbarGutter?: boolean;\n};\n\nconst ScrollArea = React.forwardRef<HTMLDivElement, ScrollAreaProps>(\n (\n { className, children, scrollFade = false, scrollbarGutter = false, ...props },\n ref\n ) => {\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"size-full min-h-0\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\n \"h-full overscroll-contain rounded-[inherit] outline-none transition-shadows focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background\",\n scrollFade &&\n \"mask-t-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-start)))] mask-b-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-end)))] mask-l-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-start)))] mask-r-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-end)))] [--fade-size:1.5rem]\",\n scrollbarGutter &&\n \"data-has-overflow-y:pe-2.5 data-has-overflow-x:pb-2.5\",\n )}\n data-slot=\"scroll-area-viewport\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar orientation=\"vertical\" />\n <ScrollBar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner data-slot=\"scroll-area-corner\" />\n </ScrollAreaPrimitive.Root>\n );\n }\n);\nScrollArea.displayName = \"ScrollArea\";\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: ScrollAreaPrimitive.Scrollbar.Props) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n className={cn(\n \"m-1 flex opacity-0 transition-opacity delay-300 data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 data-[orientation=horizontal]:flex-col data-hovering:opacity-100 data-scrolling:opacity-100 data-hovering:delay-0 data-scrolling:delay-0 data-hovering:duration-100 data-scrolling:duration-100\",\n className,\n )}\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className=\"relative flex-1 rounded-full bg-foreground/20\"\n data-slot=\"scroll-area-thumb\"\n />\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n","\"use client\";\n\nimport { Autocomplete as AutocompletePrimitive } from \"@base-ui/react/autocomplete\";\nimport { ChevronsUpDownIcon, XIcon } from \"lucide-react\";\n\nimport { useFloatingOverlayPortalProps } from \"./portal\";\nimport { cn } from \"../lib/utils\";\nimport { Input } from \"./input\";\nimport { ScrollArea } from \"./scroll-area\";\n\nconst Autocomplete = AutocompletePrimitive.Root;\n\nfunction AutocompleteInput({\n className,\n showTrigger = false,\n showClear = false,\n startAddon,\n size = \"default\",\n ...props\n}: Omit<AutocompletePrimitive.Input.Props, \"size\"> & {\n showTrigger?: boolean;\n showClear?: boolean;\n startAddon?: React.ReactNode;\n size?: \"sm\" | \"default\" | \"lg\";\n ref?: React.Ref<HTMLInputElement>;\n}) {\n const sizeValue = size;\n\n return (\n <div className=\"relative not-has-[>*.w-full]:w-fit w-full\">\n {startAddon && (\n <div\n aria-hidden=\"true\"\n className=\"[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4\"\n data-slot=\"autocomplete-start-addon\"\n >\n {startAddon}\n </div>\n )}\n <AutocompletePrimitive.Input\n className={cn(\n startAddon &&\n \"data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]\",\n sizeValue === \"sm\"\n ? \"has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5\"\n : \"has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7\",\n className,\n )}\n data-slot=\"autocomplete-input\"\n render={<Input size={sizeValue} />}\n {...props}\n />\n {showTrigger && (\n <AutocompleteTrigger\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <ChevronsUpDownIcon />\n </AutocompleteTrigger>\n )}\n {showClear && (\n <AutocompleteClear\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <XIcon />\n </AutocompleteClear>\n )}\n </div>\n );\n}\n\nfunction AutocompletePopup({\n className,\n children,\n sideOffset = 4,\n ...props\n}: AutocompletePrimitive.Popup.Props & {\n sideOffset?: number;\n}) {\n const { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n return (\n <AutocompletePrimitive.Portal container={container}>\n <AutocompletePrimitive.Positioner\n className={cn(\"select-none\", zIndexClass)}\n data-slot=\"autocomplete-positioner\"\n sideOffset={sideOffset}\n >\n <span\n className={cn(\n \"relative flex max-h-full origin-(--transform-origin) rounded-lg border bg-popover bg-clip-padding transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-lg has-data-starting-style:scale-98 has-data-starting-style:opacity-0 dark:not-in-data-[slot=group]:bg-clip-border\",\n className,\n )}\n >\n <AutocompletePrimitive.Popup\n className=\"flex max-h-[min(var(--available-height),23rem)] w-(--anchor-width) max-w-(--available-width) flex-col\"\n data-slot=\"autocomplete-popup\"\n {...props}\n >\n {children}\n </AutocompletePrimitive.Popup>\n </span>\n </AutocompletePrimitive.Positioner>\n </AutocompletePrimitive.Portal>\n );\n}\n\nfunction AutocompleteItem({\n className,\n children,\n ...props\n}: AutocompletePrimitive.Item.Props) {\n return (\n <AutocompletePrimitive.Item\n className={cn(\n \"flex min-h-8 cursor-default select-none items-center rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm\",\n className,\n )}\n data-slot=\"autocomplete-item\"\n {...props}\n >\n {children}\n </AutocompletePrimitive.Item>\n );\n}\n\nfunction AutocompleteSeparator({\n className,\n ...props\n}: AutocompletePrimitive.Separator.Props) {\n return (\n <AutocompletePrimitive.Separator\n className={cn(\"mx-2 my-1 h-px bg-border last:hidden\", className)}\n data-slot=\"autocomplete-separator\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteGroup({\n className,\n ...props\n}: AutocompletePrimitive.Group.Props) {\n return (\n <AutocompletePrimitive.Group\n className={cn(\"[[role=group]+&]:mt-1.5\", className)}\n data-slot=\"autocomplete-group\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteGroupLabel({\n className,\n ...props\n}: AutocompletePrimitive.GroupLabel.Props) {\n return (\n <AutocompletePrimitive.GroupLabel\n className={cn(\n \"px-2 py-1.5 font-medium text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"autocomplete-group-label\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteEmpty({\n className,\n ...props\n}: AutocompletePrimitive.Empty.Props) {\n return (\n <AutocompletePrimitive.Empty\n className={cn(\n \"not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm\",\n className,\n )}\n data-slot=\"autocomplete-empty\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteRow({\n className,\n ...props\n}: AutocompletePrimitive.Row.Props) {\n return (\n <AutocompletePrimitive.Row\n className={className}\n data-slot=\"autocomplete-row\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteValue({ ...props }: AutocompletePrimitive.Value.Props) {\n return (\n <AutocompletePrimitive.Value data-slot=\"autocomplete-value\" {...props} />\n );\n}\n\nfunction AutocompleteList({\n className,\n ...props\n}: AutocompletePrimitive.List.Props) {\n return (\n <ScrollArea scrollbarGutter scrollFade>\n <AutocompletePrimitive.List\n className={cn(\n \"not-empty:scroll-py-1 not-empty:p-1 in-data-has-overflow-y:pe-3\",\n className,\n )}\n data-slot=\"autocomplete-list\"\n {...props}\n />\n </ScrollArea>\n );\n}\n\nfunction AutocompleteClear({\n className,\n ...props\n}: AutocompletePrimitive.Clear.Props) {\n return (\n <AutocompletePrimitive.Clear\n className={cn(\n \"-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"autocomplete-clear\"\n {...props}\n >\n <XIcon />\n </AutocompletePrimitive.Clear>\n );\n}\n\nfunction AutocompleteStatus({\n className,\n ...props\n}: AutocompletePrimitive.Status.Props) {\n return (\n <AutocompletePrimitive.Status\n className={cn(\n \"px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0\",\n className,\n )}\n data-slot=\"autocomplete-status\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteCollection({\n ...props\n}: AutocompletePrimitive.Collection.Props) {\n return (\n <AutocompletePrimitive.Collection\n data-slot=\"autocomplete-collection\"\n {...props}\n />\n );\n}\n\nfunction AutocompleteTrigger({\n className,\n ...props\n}: AutocompletePrimitive.Trigger.Props) {\n return (\n <AutocompletePrimitive.Trigger\n className={className}\n data-slot=\"autocomplete-trigger\"\n {...props}\n />\n );\n}\n\nexport {\n Autocomplete,\n AutocompleteInput,\n AutocompleteTrigger,\n AutocompletePopup,\n AutocompleteItem,\n AutocompleteSeparator,\n AutocompleteGroup,\n AutocompleteGroupLabel,\n AutocompleteEmpty,\n AutocompleteValue,\n AutocompleteList,\n AutocompleteClear,\n AutocompleteStatus,\n AutocompleteRow,\n AutocompleteCollection,\n};\n","\"use client\";\n\nimport { Dialog as CommandDialogPrimitive } from \"@base-ui/react/dialog\";\nimport type { AutocompleteRootProps } from \"@base-ui/react/autocomplete\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { ModalPortalScope, useRootPortalContainer } from \"./portal\";\nimport { mergePropsWithRef } from \"../lib/slot\";\nimport { cn } from \"../lib/utils\";\nimport {\n Autocomplete,\n AutocompleteCollection,\n AutocompleteEmpty,\n AutocompleteGroup,\n AutocompleteGroupLabel,\n AutocompleteInput,\n AutocompleteItem,\n AutocompleteList,\n AutocompleteSeparator,\n} from \"./autocomplete\";\n\nconst CommandInputContext = React.createContext<{\n inputRef: React.RefObject<HTMLInputElement | null> | null;\n}>({\n inputRef: null,\n});\n\nconst CommandDialog = CommandDialogPrimitive.Root;\n\nfunction CommandDialogPortal({ ...props }: CommandDialogPrimitive.Portal.Props) {\n const container = useRootPortalContainer();\n\n const style = {\n ...(props.style ?? {}),\n ['--z-layer-floating' as any]: 'var(--z-layer-floating-elevated)',\n } satisfies React.CSSProperties;\n\n return <CommandDialogPrimitive.Portal container={container} {...props} style={style} />;\n}\n\ntype CommandDialogTriggerProps = Omit<\n React.ComponentProps<typeof CommandDialogPrimitive.Trigger>,\n \"render\" | \"nativeButton\"\n> & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\nfunction CommandDialogTrigger({\n asChild,\n nativeButton,\n children,\n ...props\n}: CommandDialogTriggerProps) {\n if (asChild && React.isValidElement(children)) {\n return (\n <CommandDialogPrimitive.Trigger\n data-slot=\"command-dialog-trigger\"\n nativeButton={nativeButton ?? true}\n {...props}\n render={(triggerProps) => {\n const { nativeButton: _, ...rest } = triggerProps as Record<string, unknown>;\n return React.cloneElement(\n children as React.ReactElement<Record<string, unknown>>,\n mergePropsWithRef(rest, children as React.ReactElement),\n );\n }}\n />\n );\n }\n return (\n <CommandDialogPrimitive.Trigger\n data-slot=\"command-dialog-trigger\"\n nativeButton={nativeButton}\n {...props}\n >\n {children}\n </CommandDialogPrimitive.Trigger>\n );\n}\n\nfunction CommandDialogBackdrop({\n className,\n ...props\n}: CommandDialogPrimitive.Backdrop.Props) {\n return (\n <CommandDialogPrimitive.Backdrop\n className={cn(\n \"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0\",\n className,\n )}\n data-slot=\"command-dialog-backdrop\"\n {...props}\n />\n );\n}\n\nfunction CommandDialogViewport({\n className,\n ...props\n}: CommandDialogPrimitive.Viewport.Props) {\n return (\n <CommandDialogPrimitive.Viewport\n className={cn(\n \"fixed inset-0 z-[var(--z-layer-toast)] flex flex-col items-center px-4 py-[max(--spacing(4),4vh)] sm:py-[10vh]\",\n className,\n )}\n data-slot=\"command-dialog-viewport\"\n {...props}\n />\n );\n}\n\nfunction CommandDialogPopup({\n className,\n children,\n ...props\n}: CommandDialogPrimitive.Popup.Props) {\n const inputRef = React.useRef<HTMLInputElement>(null);\n\n return (\n <CommandDialogPortal>\n <CommandDialogBackdrop />\n <CommandDialogViewport>\n <CommandDialogPrimitive.Popup\n className={cn(\n \"-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n data-slot=\"command-dialog-popup\"\n initialFocus={inputRef}\n {...props}\n >\n {/* ModalPortalScope creates a scoped portal container for floating elements inside */}\n <ModalPortalScope>\n <CommandInputContext.Provider value={{ inputRef }}>\n {children}\n </CommandInputContext.Provider>\n </ModalPortalScope>\n </CommandDialogPrimitive.Popup>\n </CommandDialogViewport>\n </CommandDialogPortal>\n );\n}\n\ntype CommandProps<ItemValue> = Omit<\n AutocompleteRootProps<ItemValue>,\n \"autoHighlight\" | \"keepHighlight\" | \"open\"\n> & {\n className?: string;\n autoHighlight?: boolean | \"always\";\n keepHighlight?: boolean;\n open?: boolean;\n};\n\nfunction Command<ItemValue>({\n autoHighlight = \"always\",\n keepHighlight = true,\n open = true,\n ...props\n}: CommandProps<ItemValue>) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const AutocompleteAny = Autocomplete as React.ComponentType<any>;\n return (\n <AutocompleteAny\n autoHighlight={autoHighlight}\n keepHighlight={keepHighlight}\n open={open}\n {...props}\n />\n );\n}\n\ntype CommandInputProps = Omit<\n React.ComponentProps<typeof AutocompleteInput>,\n \"onChange\"\n> & {\n value?: string;\n onValueChange?: (value: string) => void;\n};\n\nfunction CommandInput({\n className,\n placeholder = undefined,\n value,\n onValueChange,\n ...props\n}: CommandInputProps) {\n const { inputRef } = React.useContext(CommandInputContext);\n\n return (\n <div className=\"px-2.5 py-1.5\">\n <AutocompleteInput\n className={cn(\n \"border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0\",\n className,\n )}\n placeholder={placeholder}\n ref={inputRef}\n size=\"lg\"\n startAddon={<SearchIcon />}\n value={value}\n onChange={\n onValueChange\n ? (e: React.ChangeEvent<HTMLInputElement>) =>\n onValueChange(e.target.value)\n : undefined\n }\n {...props}\n />\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof AutocompleteList>) {\n return (\n <AutocompleteList\n className={cn(\"not-empty:scroll-py-2 not-empty:p-2\", className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof AutocompleteEmpty>) {\n return (\n <AutocompleteEmpty\n className={cn(\"not-empty:py-6\", className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\nfunction CommandPanel({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className=\"-mx-px relative min-h-0 rounded-t-xl border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\"\n {...props}\n />\n );\n}\n\ntype CommandGroupProps = React.ComponentProps<typeof AutocompleteGroup> & {\n /** Group heading label */\n heading?: React.ReactNode;\n};\n\nfunction CommandGroup({\n className,\n heading,\n children,\n ...props\n}: CommandGroupProps) {\n return (\n <AutocompleteGroup\n className={className}\n data-slot=\"command-group\"\n {...props}\n >\n {heading && <CommandGroupLabel>{heading}</CommandGroupLabel>}\n {children}\n </AutocompleteGroup>\n );\n}\n\nfunction CommandGroupLabel({\n className,\n ...props\n}: React.ComponentProps<typeof AutocompleteGroupLabel>) {\n return (\n <AutocompleteGroupLabel\n className={className}\n data-slot=\"command-group-label\"\n {...props}\n />\n );\n}\n\nfunction CommandCollection({\n ...props\n}: React.ComponentProps<typeof AutocompleteCollection>) {\n return <AutocompleteCollection data-slot=\"command-collection\" {...props} />;\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof AutocompleteItem>) {\n return (\n <AutocompleteItem\n className={cn(\"py-1.5\", className)}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof AutocompleteSeparator>) {\n return (\n <AutocompleteSeparator\n className={cn(\"my-2\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\nfunction CommandFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] px-5 py-3 text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"command-footer\"\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandCollection,\n CommandDialog,\n CommandDialogPopup,\n CommandDialogTrigger,\n CommandEmpty,\n CommandFooter,\n CommandGroup,\n CommandGroupLabel,\n CommandInput,\n CommandItem,\n CommandList,\n CommandPanel,\n CommandSeparator,\n CommandShortcut,\n};\n","'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from './portal';\nimport { mergePropsWithRef } from '../lib/slot';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot='popover' {...props} />;\n}\n\ntype PopoverTriggerProps = Omit<React.ComponentProps<typeof PopoverPrimitive.Trigger>, 'render' | 'nativeButton'> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n\t/** Whether the child renders a native button. Defaults to true when asChild is used. */\n\tnativeButton?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, nativeButton, children, ...props }: PopoverTriggerProps) {\n\tif (asChild && React.isValidElement(children)) {\n\t\treturn (\n\t\t\t<PopoverPrimitive.Trigger\n\t\t\t\tdata-slot='popover-trigger'\n\t\t\t\tnativeButton={nativeButton ?? true}\n\t\t\t\t{...props}\n\t\t\trender={(triggerProps) => {\n\t\t\t\tconst { nativeButton: _, ...rest } = triggerProps as Record<string, unknown>;\n\t\t\t\treturn React.cloneElement(\n\t\t\t\t\tchildren as React.ReactElement<Record<string, unknown>>,\n\t\t\t\t\tmergePropsWithRef(rest, children as React.ReactElement),\n\t\t\t\t);\n\t\t\t}}\n\t\t\t/>\n\t\t);\n\t}\n\treturn (\n\t\t<PopoverPrimitive.Trigger data-slot='popover-trigger' nativeButton={nativeButton} {...props}>\n\t\t\t{children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot='popover-content'\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground data-[open]:animate-in data-[closed]:animate-out\n\t\t\t\t\t\tdata-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95\n\t\t\t\t\t\tdata-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\n\t\t\t\t\t\tdata-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-72 rounded-md border p-4\n\t\t\t\t\t\tshadow-md outline-hidden`,\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot='popover-anchor' {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\n","'use client';\n\nimport {\n\tcreateContext,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\ttype ComponentProps,\n\ttype MouseEventHandler,\n\ttype ReactNode,\n} from 'react';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\nimport { Badge } from './badge';\nimport { Button } from './button';\nimport { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from './command';\nimport { Popover, PopoverContent, PopoverTrigger } from './popover';\n\ntype TagsContextType = {\n\tvalue?: string;\n\tsetValue?: (value: string) => void;\n\topen: boolean;\n\tonOpenChange: (open: boolean) => void;\n\twidth?: number;\n\tsetWidth?: (width: number) => void;\n};\n\nconst TagsContext = createContext<TagsContextType>({\n\tvalue: undefined,\n\tsetValue: undefined,\n\topen: false,\n\tonOpenChange: () => {},\n\twidth: undefined,\n\tsetWidth: undefined,\n});\n\nconst useTagsContext = () => {\n\tconst context = useContext(TagsContext);\n\n\tif (!context) {\n\t\tthrow new Error('useTagsContext must be used within a TagsProvider');\n\t}\n\n\treturn context;\n};\n\nexport type TagsProps = {\n\tvalue?: string;\n\tsetValue?: (value: string) => void;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n\tchildren?: ReactNode;\n\tclassName?: string;\n};\n\nexport const Tags = ({\n\tvalue,\n\tsetValue,\n\topen: controlledOpen,\n\tonOpenChange: controlledOnOpenChange,\n\tchildren,\n\tclassName,\n}: TagsProps) => {\n\tconst [uncontrolledOpen, setUncontrolledOpen] = useState(false);\n\tconst [width, setWidth] = useState<number>();\n\tconst ref = useRef<HTMLDivElement>(null);\n\n\tconst open = controlledOpen ?? uncontrolledOpen;\n\tconst onOpenChange = controlledOnOpenChange ?? setUncontrolledOpen;\n\n\tuseEffect(() => {\n\t\tif (!ref.current) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst resizeObserver = new ResizeObserver((entries) => {\n\t\t\tsetWidth(entries[0].contentRect.width);\n\t\t});\n\n\t\tresizeObserver.observe(ref.current);\n\n\t\treturn () => {\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, []);\n\n\treturn (\n\t\t<TagsContext.Provider value={{ value, setValue, open, onOpenChange, width, setWidth }}>\n\t\t\t<Popover onOpenChange={onOpenChange} open={open}>\n\t\t\t\t<div className={cn('relative w-full', className)} ref={ref}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</Popover>\n\t\t</TagsContext.Provider>\n\t);\n};\n\nexport type TagsTriggerProps = ComponentProps<typeof Button>;\n\nexport const TagsTrigger = ({ className, children, ...props }: TagsTriggerProps) => (\n\t<PopoverTrigger asChild>\n\t\t<Button\n\t\t\tclassName={cn('h-auto w-full justify-between p-2', className)}\n\t\t\t// biome-ignore lint/a11y/useSemanticElements: \"Required\"\n\t\t\trole='combobox'\n\t\t\tvariant='outline'\n\t\t\t{...props}\n\t\t>\n\t\t\t<div className='flex flex-wrap items-center gap-1'>\n\t\t\t\t{children}\n\t\t\t\t<span className='text-muted-foreground px-2 py-px'>Select a tag...</span>\n\t\t\t</div>\n\t\t</Button>\n\t</PopoverTrigger>\n);\n\nexport type TagsValueProps = ComponentProps<typeof Badge>;\n\nexport const TagsValue = ({ className, children, onRemove, ...props }: TagsValueProps & { onRemove?: () => void }) => {\n\tconst handleRemove: MouseEventHandler<HTMLDivElement> = (event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tonRemove?.();\n\t};\n\n\treturn (\n\t\t<Badge className={cn('flex items-center gap-2', className)} {...props}>\n\t\t\t{children}\n\t\t\t{onRemove && (\n\t\t\t\t// biome-ignore lint/a11y/noStaticElementInteractions: \"This is a clickable badge\"\n\t\t\t\t// biome-ignore lint/a11y/useKeyWithClickEvents: \"This is a clickable badge\"\n\t\t\t\t<div className='hover:text-muted-foreground size-auto cursor-pointer' onClick={handleRemove}>\n\t\t\t\t\t<XIcon size={12} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</Badge>\n\t);\n};\n\nexport type TagsContentProps = ComponentProps<typeof PopoverContent>;\n\nexport const TagsContent = ({ className, children, ...props }: TagsContentProps) => {\n\tconst { width } = useTagsContext();\n\n\treturn (\n\t\t<PopoverContent className={cn('p-0', className)} style={{ width }} {...props}>\n\t\t\t<Command>{children}</Command>\n\t\t</PopoverContent>\n\t);\n};\n\nexport type TagsInputProps = ComponentProps<typeof CommandInput>;\n\nexport const TagsInput = ({ className, ...props }: TagsInputProps) => (\n\t<CommandInput className={cn('h-9', className)} {...props} />\n);\n\nexport type TagsListProps = ComponentProps<typeof CommandList>;\n\nexport const TagsList = ({ className, ...props }: TagsListProps) => (\n\t<CommandList className={cn('max-h-[200px]', className)} {...props} />\n);\n\nexport type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;\n\nexport const TagsEmpty = ({ children, className: _className, ...props }: TagsEmptyProps) => (\n\t<CommandEmpty {...props}>{children ?? 'No tags found.'}</CommandEmpty>\n);\n\nexport type TagsGroupProps = ComponentProps<typeof CommandGroup>;\n\nexport const TagsGroup = CommandGroup;\n\nexport type TagsItemProps = ComponentProps<typeof CommandItem>;\n\nexport const TagsItem = ({ className, ...props }: TagsItemProps) => (\n\t<CommandItem className={cn('cursor-pointer items-center justify-between', className)} {...props} />\n);\n"]}
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ type TextareaProps = React.ComponentProps<'textarea'> & {
5
+ size?: 'sm' | 'default' | 'lg' | number;
6
+ unstyled?: boolean;
7
+ };
8
+ declare function Textarea({ className, size, unstyled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Textarea, type TextareaProps };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { clsx } from 'clsx';
3
+ import { twMerge } from 'tailwind-merge';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+ function Textarea({ className, size = "default", unstyled = false, ...props }) {
10
+ return /* @__PURE__ */ jsx(
11
+ "span",
12
+ {
13
+ className: cn(
14
+ !unstyled && [
15
+ // Base layout
16
+ "relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base shadow-xs transition-shadow",
17
+ // Inner shadow highlight
18
+ "before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]",
19
+ "not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]",
20
+ // Focus state - use primary brand color (matches Input)
21
+ "has-focus-visible:border-primary/60 has-focus-visible:ring-[3px] has-focus-visible:ring-primary/35",
22
+ // Invalid state
23
+ "has-aria-invalid:border-destructive/36",
24
+ "has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16",
25
+ // Disabled state
26
+ "has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none",
27
+ // Dark mode
28
+ "sm:text-sm dark:bg-input/32 dark:bg-clip-border",
29
+ "dark:has-aria-invalid:ring-destructive/24",
30
+ "dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/8%)]"
31
+ ],
32
+ className
33
+ ) || void 0,
34
+ "data-size": size,
35
+ "data-slot": "textarea-control",
36
+ children: /* @__PURE__ */ jsx(
37
+ "textarea",
38
+ {
39
+ className: cn(
40
+ "field-sizing-content min-h-17.5 w-full rounded-[inherit] bg-transparent px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none max-sm:min-h-20.5",
41
+ size === "sm" && "min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5",
42
+ size === "lg" && "min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5"
43
+ ),
44
+ "data-slot": "textarea",
45
+ ...props
46
+ }
47
+ )
48
+ }
49
+ );
50
+ }
51
+
52
+ export { Textarea };
53
+ //# sourceMappingURL=textarea.js.map
54
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/utils.ts","../../src/components/textarea.tsx"],"names":[],"mappings":";;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACMA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,IAAA,GAAO,WAAW,QAAA,GAAW,KAAA,EAAO,GAAG,KAAA,EAAM,EAAkB;AAC7F,EAAA,uBACC,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACA,SAAA,EACC,EAAA;AAAA,QACC,CAAC,QAAA,IAAY;AAAA;AAAA,UAEZ,gIAAA;AAAA;AAAA,UAEA,uGAAA;AAAA,UACA,6GAAA;AAAA;AAAA,UAEA,oGAAA;AAAA;AAAA,UAEA,wCAAA;AAAA,UACA,iHAAA;AAAA;AAAA,UAEA,mFAAA;AAAA;AAAA,UAEA,iDAAA;AAAA,UACA,2CAAA;AAAA,UACA;AAAA,SACD;AAAA,QACA;AAAA,OACD,IAAK,MAAA;AAAA,MAEN,WAAA,EAAW,IAAA;AAAA,MACX,WAAA,EAAU,kBAAA;AAAA,MAEV,QAAA,kBAAA,GAAA;AAAA,QAAC,UAAA;AAAA,QAAA;AAAA,UACA,SAAA,EAAW,EAAA;AAAA,YACV,kKAAA;AAAA,YACA,SAAS,IAAA,IAAQ,wFAAA;AAAA,YACjB,SAAS,IAAA,IAAQ;AAAA,WAClB;AAAA,UACA,WAAA,EAAU,UAAA;AAAA,UACT,GAAG;AAAA;AAAA;AACL;AAAA,GACD;AAEF","file":"textarea.js","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport type * as React from 'react';\n\nimport { cn } from '../lib/utils';\n\ntype TextareaProps = React.ComponentProps<'textarea'> & {\n\tsize?: 'sm' | 'default' | 'lg' | number;\n\tunstyled?: boolean;\n};\n\nfunction Textarea({ className, size = 'default', unstyled = false, ...props }: TextareaProps) {\n\treturn (\n\t\t<span\n\t\t\tclassName={\n\t\t\t\tcn(\n\t\t\t\t\t!unstyled && [\n\t\t\t\t\t\t// Base layout\n\t\t\t\t\t\t'relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base shadow-xs transition-shadow',\n\t\t\t\t\t\t// Inner shadow highlight\n\t\t\t\t\t\t'before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]',\n\t\t\t\t\t\t'not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]',\n\t\t\t\t\t\t// Focus state - use primary brand color (matches Input)\n\t\t\t\t\t\t'has-focus-visible:border-primary/60 has-focus-visible:ring-[3px] has-focus-visible:ring-primary/35',\n\t\t\t\t\t\t// Invalid state\n\t\t\t\t\t\t'has-aria-invalid:border-destructive/36',\n\t\t\t\t\t\t'has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16',\n\t\t\t\t\t\t// Disabled state\n\t\t\t\t\t\t'has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none',\n\t\t\t\t\t\t// Dark mode\n\t\t\t\t\t\t'sm:text-sm dark:bg-input/32 dark:bg-clip-border',\n\t\t\t\t\t\t'dark:has-aria-invalid:ring-destructive/24',\n\t\t\t\t\t\t'dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/8%)]',\n\t\t\t\t\t],\n\t\t\t\t\tclassName,\n\t\t\t\t) || undefined\n\t\t\t}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"textarea-control\"\n\t\t>\n\t\t\t<textarea\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'field-sizing-content min-h-17.5 w-full rounded-[inherit] bg-transparent px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none max-sm:min-h-20.5',\n\t\t\t\t\tsize === 'sm' && 'min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5',\n\t\t\t\t\tsize === 'lg' && 'min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5',\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"textarea\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</span>\n\t);\n}\n\nexport { Textarea };\nexport type { TextareaProps };\n"]}
@@ -0,0 +1,52 @@
1
+ interface ToastErrorProps {
2
+ message: string;
3
+ description?: string;
4
+ action?: {
5
+ label: string;
6
+ onClick: () => void;
7
+ };
8
+ onDismiss?: () => void;
9
+ }
10
+ declare function showErrorToast(props: ToastErrorProps): string | number;
11
+
12
+ interface ToastInfoProps {
13
+ message: string;
14
+ description?: string;
15
+ action?: {
16
+ label: string;
17
+ onClick: () => void;
18
+ };
19
+ onDismiss?: () => void;
20
+ }
21
+ declare function showInfoToast(props: ToastInfoProps): string | number;
22
+
23
+ interface ToastSuccessProps {
24
+ message: string;
25
+ description?: string;
26
+ action?: {
27
+ label: string;
28
+ onClick: () => void;
29
+ };
30
+ onDismiss?: () => void;
31
+ }
32
+ declare function showSuccessToast(props: ToastSuccessProps): string | number;
33
+
34
+ interface ToastWarningProps {
35
+ message: string;
36
+ description?: string;
37
+ action?: {
38
+ label: string;
39
+ onClick: () => void;
40
+ };
41
+ onDismiss?: () => void;
42
+ }
43
+ declare function showWarningToast(props: ToastWarningProps): string | number;
44
+
45
+ declare const toast: {
46
+ error: typeof showErrorToast;
47
+ info: typeof showInfoToast;
48
+ success: typeof showSuccessToast;
49
+ warning: typeof showWarningToast;
50
+ };
51
+
52
+ export { type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, toast };
@@ -0,0 +1,221 @@
1
+ "use client";
2
+ import { AlertCircleIcon, XIcon, InfoIcon, CheckCircleIcon, AlertTriangleIcon } from 'lucide-react';
3
+ import { toast } from 'sonner';
4
+ import * as React from 'react';
5
+ import { cva } from 'class-variance-authority';
6
+ import { clsx } from 'clsx';
7
+ import { twMerge } from 'tailwind-merge';
8
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
+
10
+ // src/components/toast/toast-error.tsx
11
+ function cn(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+ var buttonVariants = cva(
15
+ "[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
16
+ {
17
+ defaultVariants: {
18
+ size: "default",
19
+ variant: "default"
20
+ },
21
+ variants: {
22
+ size: {
23
+ default: "h-9 px-[calc(--spacing(3)-1px)] sm:h-8",
24
+ icon: "size-9 sm:size-8",
25
+ "icon-lg": "size-10 sm:size-9",
26
+ "icon-sm": "size-8 sm:size-7",
27
+ "icon-xl": 'size-11 sm:size-10 [&_svg:not([class*="size-"])]:size-5 sm:[&_svg:not([class*="size-"])]:size-4.5',
28
+ "icon-xs": 'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*="size-"])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*="size-"])]:size-3.5',
29
+ lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9",
30
+ sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7",
31
+ xl: 'h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*="size-"])]:size-5 sm:[&_svg:not([class*="size-"])]:size-4.5',
32
+ xs: 'h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*="size-"])]:size-4 sm:[&_svg:not([class*="size-"])]:size-3.5'
33
+ },
34
+ variant: {
35
+ default: "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
36
+ destructive: "not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none",
37
+ "destructive-outline": "border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8",
38
+ ghost: "border-transparent hover:bg-accent data-pressed:bg-accent",
39
+ link: "border-transparent underline-offset-4 hover:underline",
40
+ outline: "border-border bg-background bg-clip-padding shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64",
41
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80"
42
+ }
43
+ }
44
+ }
45
+ );
46
+ var Button = React.forwardRef(
47
+ ({ className, variant, size, asChild, children, type = "button", ...props }, ref) => {
48
+ const buttonClasses = cn(buttonVariants({ className, size, variant }));
49
+ if (asChild && React.isValidElement(children)) {
50
+ const childProps = children.props;
51
+ return React.cloneElement(children, {
52
+ ...props,
53
+ className: cn(buttonClasses, childProps.className),
54
+ "data-slot": "button"
55
+ });
56
+ }
57
+ return /* @__PURE__ */ jsx("button", { ref, type, className: buttonClasses, "data-slot": "button", ...props, children });
58
+ }
59
+ );
60
+ Button.displayName = "Button";
61
+ function showErrorToast(props) {
62
+ const { message, description, action, onDismiss } = props;
63
+ return toast.custom((t) => /* @__PURE__ */ jsx(
64
+ "div",
65
+ {
66
+ className: "bg-background text-foreground border-destructive/20 w-full rounded-md border px-4 py-3 shadow-lg\n sm:w-[var(--width)]",
67
+ children: /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
68
+ /* @__PURE__ */ jsxs("div", { className: "flex grow gap-3", children: [
69
+ /* @__PURE__ */ jsx(AlertCircleIcon, { className: "text-destructive mt-0.5 shrink-0", size: 16, "aria-hidden": "true" }),
70
+ /* @__PURE__ */ jsxs("div", { className: "flex grow flex-col gap-1", children: [
71
+ /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm font-medium", children: message }),
72
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: description }),
73
+ action && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx("button", { className: "text-destructive text-sm font-medium hover:underline", onClick: action.onClick, children: action.label }) })
74
+ ] })
75
+ ] }),
76
+ /* @__PURE__ */ jsx(
77
+ Button,
78
+ {
79
+ variant: "ghost",
80
+ className: "group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent",
81
+ onClick: () => {
82
+ toast.dismiss(t);
83
+ onDismiss?.();
84
+ },
85
+ "aria-label": "Close error notification",
86
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16, className: "opacity-60 transition-opacity group-hover:opacity-100", "aria-hidden": "true" })
87
+ }
88
+ )
89
+ ] })
90
+ }
91
+ ));
92
+ }
93
+ function showInfoToast(props) {
94
+ const { message, description, action, onDismiss } = props;
95
+ return toast.custom((t) => /* @__PURE__ */ jsx(
96
+ "div",
97
+ {
98
+ className: "bg-background text-foreground border-primary/20 w-full rounded-md border px-4 py-3 shadow-lg\n sm:w-[var(--width)]",
99
+ children: /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
100
+ /* @__PURE__ */ jsxs("div", { className: "flex grow gap-3", children: [
101
+ /* @__PURE__ */ jsx(InfoIcon, { className: "text-primary mt-0.5 shrink-0", size: 16, "aria-hidden": "true" }),
102
+ /* @__PURE__ */ jsxs("div", { className: "flex grow flex-col gap-1", children: [
103
+ /* @__PURE__ */ jsx("p", { className: "text-primary text-sm font-medium", children: message }),
104
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: description }),
105
+ action && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx("button", { className: "text-primary text-sm font-medium hover:underline", onClick: action.onClick, children: action.label }) })
106
+ ] })
107
+ ] }),
108
+ /* @__PURE__ */ jsx(
109
+ Button,
110
+ {
111
+ variant: "ghost",
112
+ className: "group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent",
113
+ onClick: () => {
114
+ toast.dismiss(t);
115
+ onDismiss?.();
116
+ },
117
+ "aria-label": "Close info notification",
118
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16, className: "opacity-60 transition-opacity group-hover:opacity-100", "aria-hidden": "true" })
119
+ }
120
+ )
121
+ ] })
122
+ }
123
+ ));
124
+ }
125
+ function showSuccessToast(props) {
126
+ const { message, description, action, onDismiss } = props;
127
+ return toast.custom((t) => /* @__PURE__ */ jsx(
128
+ "div",
129
+ {
130
+ className: "bg-background text-foreground w-full rounded-md border border-green-200/60 px-4 py-3 shadow-lg\n sm:w-[var(--width)] dark:border-green-800/50",
131
+ children: /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
132
+ /* @__PURE__ */ jsxs("div", { className: "flex grow gap-3", children: [
133
+ /* @__PURE__ */ jsx(
134
+ CheckCircleIcon,
135
+ {
136
+ className: "mt-0.5 shrink-0 text-green-600 dark:text-green-500",
137
+ size: 16,
138
+ "aria-hidden": "true"
139
+ }
140
+ ),
141
+ /* @__PURE__ */ jsxs("div", { className: "flex grow flex-col gap-1", children: [
142
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-green-700 dark:text-green-400", children: message }),
143
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: description }),
144
+ action && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(
145
+ "button",
146
+ {
147
+ className: "text-sm font-medium text-green-700 hover:underline dark:text-green-400",
148
+ onClick: action.onClick,
149
+ children: action.label
150
+ }
151
+ ) })
152
+ ] })
153
+ ] }),
154
+ /* @__PURE__ */ jsx(
155
+ Button,
156
+ {
157
+ variant: "ghost",
158
+ className: "group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent",
159
+ onClick: () => {
160
+ toast.dismiss(t);
161
+ onDismiss?.();
162
+ },
163
+ "aria-label": "Close success notification",
164
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16, className: "opacity-60 transition-opacity group-hover:opacity-100", "aria-hidden": "true" })
165
+ }
166
+ )
167
+ ] })
168
+ }
169
+ ));
170
+ }
171
+ function showWarningToast(props) {
172
+ const { message, description, action, onDismiss } = props;
173
+ return toast.custom((t) => /* @__PURE__ */ jsx(
174
+ "div",
175
+ {
176
+ className: "bg-background text-foreground w-full rounded-md border border-amber-200/60 px-4 py-3 shadow-lg\n sm:w-[var(--width)] dark:border-amber-800/50",
177
+ children: /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
178
+ /* @__PURE__ */ jsxs("div", { className: "flex grow gap-3", children: [
179
+ /* @__PURE__ */ jsx(AlertTriangleIcon, { className: "mt-0.5 shrink-0 text-amber-500", size: 16, "aria-hidden": "true" }),
180
+ /* @__PURE__ */ jsxs("div", { className: "flex grow flex-col gap-1", children: [
181
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-amber-700 dark:text-amber-400", children: message }),
182
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: description }),
183
+ action && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(
184
+ "button",
185
+ {
186
+ className: "text-sm font-medium text-amber-700 hover:underline dark:text-amber-400",
187
+ onClick: action.onClick,
188
+ children: action.label
189
+ }
190
+ ) })
191
+ ] })
192
+ ] }),
193
+ /* @__PURE__ */ jsx(
194
+ Button,
195
+ {
196
+ variant: "ghost",
197
+ className: "group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent",
198
+ onClick: () => {
199
+ toast.dismiss(t);
200
+ onDismiss?.();
201
+ },
202
+ "aria-label": "Close warning notification",
203
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16, className: "opacity-60 transition-opacity group-hover:opacity-100", "aria-hidden": "true" })
204
+ }
205
+ )
206
+ ] })
207
+ }
208
+ ));
209
+ }
210
+
211
+ // src/components/toast/index.ts
212
+ var toast5 = {
213
+ error: showErrorToast,
214
+ info: showInfoToast,
215
+ success: showSuccessToast,
216
+ warning: showWarningToast
217
+ };
218
+
219
+ export { showErrorToast, showInfoToast, showSuccessToast, showWarningToast, toast5 as toast };
220
+ //# sourceMappingURL=index.js.map
221
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/button.tsx","../../../src/components/toast/toast-error.tsx","../../../src/components/toast/toast-info.tsx","../../../src/components/toast/toast-success.tsx","../../../src/components/toast/toast-warning.tsx","../../../src/components/toast/index.ts"],"names":["jsx","toast","jsxs","XIcon"],"mappings":";;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACAA,IAAM,cAAA,GAAiB,GAAA;AAAA,EACtB,0uBAAA;AAAA,EACA;AAAA,IACC,eAAA,EAAiB;AAAA,MAChB,IAAA,EAAM,SAAA;AAAA,MACN,OAAA,EAAS;AAAA,KACV;AAAA,IACA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,EAAO;AAAA;AAAA;AACvG,OAAA,EACD;AAAA;AAAA,GAED,CAAA;AACF;;;AC7CO,IAAMF,MAAAA,GAAQ;AAAA,EACpB,KAAA,EAAO,cAAA;AAAA,EACP,IAAA,EAAM,aAAA;AAAA,EACN,OAAA,EAAS,gBAAA;AAAA,EACT,OAAA,EAAS;AACV","file":"index.js","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst buttonVariants = cva(\n\t\"[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tvariant: 'default',\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-9 px-[calc(--spacing(3)-1px)] sm:h-8',\n\t\t\t\ticon: 'size-9 sm:size-8',\n\t\t\t\t'icon-lg': 'size-10 sm:size-9',\n\t\t\t\t'icon-sm': 'size-8 sm:size-7',\n\t\t\t\t'icon-xl': 'size-11 sm:size-10 [&_svg:not([class*=\"size-\"])]:size-5 sm:[&_svg:not([class*=\"size-\"])]:size-4.5',\n\t\t\t\t'icon-xs':\n\t\t\t\t\t'size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t\tlg: 'h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9',\n\t\t\t\tsm: 'h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7',\n\t\t\t\txl: 'h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*=\"size-\"])]:size-5 sm:[&_svg:not([class*=\"size-\"])]:size-4.5',\n\t\t\t\txs: 'h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*=\"size-\"])]:size-4 sm:[&_svg:not([class*=\"size-\"])]:size-3.5',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t'not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs hover:bg-primary/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none',\n\t\t\t\tdestructive:\n\t\t\t\t\t'not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs hover:bg-destructive/90 [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none',\n\t\t\t\t'destructive-outline':\n\t\t\t\t\t'border-destructive/40 bg-transparent bg-clip-padding text-destructive shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/60 [:hover,[data-pressed]]:bg-destructive/8',\n\t\t\t\tghost: 'border-transparent hover:bg-accent data-pressed:bg-accent',\n\t\t\t\tlink: 'border-transparent underline-offset-4 hover:underline',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border bg-background bg-clip-padding shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64',\n\t\t\t\tsecondary:\n\t\t\t\t\t'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 [:active,[data-pressed]]:bg-secondary/80',\n\t\t\t},\n\t\t},\n\t},\n);\n\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tvariant?: VariantProps<typeof buttonVariants>['variant'];\n\tsize?: VariantProps<typeof buttonVariants>['size'];\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, variant, size, asChild, children, type = 'button', ...props }, ref) => {\n\t\tconst buttonClasses = cn(buttonVariants({ className, size, variant }));\n\n\t\t// If asChild, render children with merged props (for wrapping Links, etc.)\n\t\tif (asChild && React.isValidElement(children)) {\n\t\t\tconst childProps = children.props as Record<string, unknown>;\n\t\t\treturn React.cloneElement(children as React.ReactElement<Record<string, unknown>>, {\n\t\t\t\t...props,\n\t\t\t\tclassName: cn(buttonClasses, childProps.className as string | undefined),\n\t\t\t\t'data-slot': 'button',\n\t\t\t});\n\t\t}\n\n\t\treturn (\n\t\t\t<button ref={ref} type={type} className={buttonClasses} data-slot=\"button\" {...props}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t);\n\t},\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\nexport type { ButtonProps };\n","'use client';\n\nimport { AlertCircleIcon, XIcon } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { Button } from '../button';\n\nexport interface ToastErrorProps {\n\tmessage: string;\n\tdescription?: string;\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\tonDismiss?: () => void;\n}\n\nexport function showErrorToast(props: ToastErrorProps) {\n\tconst { message, description, action, onDismiss } = props;\n\n\treturn toast.custom((t) => (\n\t\t<div\n\t\t\tclassName='bg-background text-foreground border-destructive/20 w-full rounded-md border px-4 py-3 shadow-lg\n\t\t\t\tsm:w-[var(--width)]'\n\t\t>\n\t\t\t<div className='flex gap-2'>\n\t\t\t\t<div className='flex grow gap-3'>\n\t\t\t\t\t<AlertCircleIcon className='text-destructive mt-0.5 shrink-0' size={16} aria-hidden='true' />\n\t\t\t\t\t<div className='flex grow flex-col gap-1'>\n\t\t\t\t\t\t<p className='text-destructive text-sm font-medium'>{message}</p>\n\t\t\t\t\t\t{description && <p className='text-muted-foreground text-sm'>{description}</p>}\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<div className='mt-2'>\n\t\t\t\t\t\t\t\t<button className='text-destructive text-sm font-medium hover:underline' onClick={action.onClick}>\n\t\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<Button\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclassName='group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent'\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttoast.dismiss(t);\n\t\t\t\t\t\tonDismiss?.();\n\t\t\t\t\t}}\n\t\t\t\t\taria-label='Close error notification'\n\t\t\t\t>\n\t\t\t\t\t<XIcon size={16} className='opacity-60 transition-opacity group-hover:opacity-100' aria-hidden='true' />\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t));\n}\n","'use client';\n\nimport { InfoIcon, XIcon } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { Button } from '../button';\n\nexport interface ToastInfoProps {\n\tmessage: string;\n\tdescription?: string;\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\tonDismiss?: () => void;\n}\n\nexport function showInfoToast(props: ToastInfoProps) {\n\tconst { message, description, action, onDismiss } = props;\n\n\treturn toast.custom((t) => (\n\t\t<div\n\t\t\tclassName='bg-background text-foreground border-primary/20 w-full rounded-md border px-4 py-3 shadow-lg\n\t\t\t\tsm:w-[var(--width)]'\n\t\t>\n\t\t\t<div className='flex gap-2'>\n\t\t\t\t<div className='flex grow gap-3'>\n\t\t\t\t\t<InfoIcon className='text-primary mt-0.5 shrink-0' size={16} aria-hidden='true' />\n\t\t\t\t\t<div className='flex grow flex-col gap-1'>\n\t\t\t\t\t\t<p className='text-primary text-sm font-medium'>{message}</p>\n\t\t\t\t\t\t{description && <p className='text-muted-foreground text-sm'>{description}</p>}\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<div className='mt-2'>\n\t\t\t\t\t\t\t\t<button className='text-primary text-sm font-medium hover:underline' onClick={action.onClick}>\n\t\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<Button\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclassName='group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent'\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttoast.dismiss(t);\n\t\t\t\t\t\tonDismiss?.();\n\t\t\t\t\t}}\n\t\t\t\t\taria-label='Close info notification'\n\t\t\t\t>\n\t\t\t\t\t<XIcon size={16} className='opacity-60 transition-opacity group-hover:opacity-100' aria-hidden='true' />\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t));\n}\n","'use client';\n\nimport { CheckCircleIcon, XIcon } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { Button } from '../button';\n\nexport interface ToastSuccessProps {\n\tmessage: string;\n\tdescription?: string;\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\tonDismiss?: () => void;\n}\n\nexport function showSuccessToast(props: ToastSuccessProps) {\n\tconst { message, description, action, onDismiss } = props;\n\n\treturn toast.custom((t) => (\n\t\t<div\n\t\t\tclassName='bg-background text-foreground w-full rounded-md border border-green-200/60 px-4 py-3 shadow-lg\n\t\t\t\tsm:w-[var(--width)] dark:border-green-800/50'\n\t\t>\n\t\t\t<div className='flex gap-2'>\n\t\t\t\t<div className='flex grow gap-3'>\n\t\t\t\t\t<CheckCircleIcon\n\t\t\t\t\t\tclassName='mt-0.5 shrink-0 text-green-600 dark:text-green-500'\n\t\t\t\t\t\tsize={16}\n\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t/>\n\t\t\t\t\t<div className='flex grow flex-col gap-1'>\n\t\t\t\t\t\t<p className='text-sm font-medium text-green-700 dark:text-green-400'>{message}</p>\n\t\t\t\t\t\t{description && <p className='text-muted-foreground text-sm'>{description}</p>}\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<div className='mt-2'>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclassName='text-sm font-medium text-green-700 hover:underline dark:text-green-400'\n\t\t\t\t\t\t\t\t\tonClick={action.onClick}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<Button\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclassName='group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent'\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttoast.dismiss(t);\n\t\t\t\t\t\tonDismiss?.();\n\t\t\t\t\t}}\n\t\t\t\t\taria-label='Close success notification'\n\t\t\t\t>\n\t\t\t\t\t<XIcon size={16} className='opacity-60 transition-opacity group-hover:opacity-100' aria-hidden='true' />\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t));\n}\n","'use client';\n\nimport { AlertTriangleIcon, XIcon } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { Button } from '../button';\n\nexport interface ToastWarningProps {\n\tmessage: string;\n\tdescription?: string;\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\tonDismiss?: () => void;\n}\n\nexport function showWarningToast(props: ToastWarningProps) {\n\tconst { message, description, action, onDismiss } = props;\n\n\treturn toast.custom((t) => (\n\t\t<div\n\t\t\tclassName='bg-background text-foreground w-full rounded-md border border-amber-200/60 px-4 py-3 shadow-lg\n\t\t\t\tsm:w-[var(--width)] dark:border-amber-800/50'\n\t\t>\n\t\t\t<div className='flex gap-2'>\n\t\t\t\t<div className='flex grow gap-3'>\n\t\t\t\t\t<AlertTriangleIcon className='mt-0.5 shrink-0 text-amber-500' size={16} aria-hidden='true' />\n\t\t\t\t\t<div className='flex grow flex-col gap-1'>\n\t\t\t\t\t\t<p className='text-sm font-medium text-amber-700 dark:text-amber-400'>{message}</p>\n\t\t\t\t\t\t{description && <p className='text-muted-foreground text-sm'>{description}</p>}\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<div className='mt-2'>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclassName='text-sm font-medium text-amber-700 hover:underline dark:text-amber-400'\n\t\t\t\t\t\t\t\t\tonClick={action.onClick}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<Button\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclassName='group -my-1.5 -me-2 size-8 shrink-0 p-0 hover:bg-transparent'\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttoast.dismiss(t);\n\t\t\t\t\t\tonDismiss?.();\n\t\t\t\t\t}}\n\t\t\t\t\taria-label='Close warning notification'\n\t\t\t\t>\n\t\t\t\t\t<XIcon size={16} className='opacity-60 transition-opacity group-hover:opacity-100' aria-hidden='true' />\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t));\n}\n","import { showErrorToast } from './toast-error';\nimport { showInfoToast } from './toast-info';\nimport { showSuccessToast } from './toast-success';\nimport { showWarningToast } from './toast-warning';\n\n// Re-export types for convenience\nexport type { ToastErrorProps } from './toast-error';\nexport type { ToastInfoProps } from './toast-info';\nexport type { ToastSuccessProps } from './toast-success';\nexport type { ToastWarningProps } from './toast-warning';\n\n// Unified toast API\nexport const toast = {\n\terror: showErrorToast,\n\tinfo: showInfoToast,\n\tsuccess: showSuccessToast,\n\twarning: showWarningToast,\n};\n\n// Also export individual functions for backward compatibility\nexport { showErrorToast, showInfoToast, showSuccessToast, showWarningToast };\n"]}
@@ -0,0 +1,29 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
4
+
5
+ type TooltipProviderProps = React.ComponentProps<typeof Tooltip$1.Provider> & {
6
+ /** @deprecated Use delay instead */
7
+ delayDuration?: number;
8
+ };
9
+ declare function TooltipProvider({ delay, delayDuration, ...props }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
10
+ type TooltipProps = React.ComponentProps<typeof Tooltip$1.Root> & {
11
+ /** @deprecated Use delay on Trigger instead */
12
+ delayDuration?: number;
13
+ };
14
+ declare function Tooltip({ delayDuration: _delayDuration, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
15
+ type TooltipTriggerProps = Omit<React.ComponentProps<typeof Tooltip$1.Trigger>, 'render'> & {
16
+ delay?: number;
17
+ /** When true, merges props onto the child element instead of rendering a button */
18
+ asChild?: boolean;
19
+ };
20
+ declare function TooltipTrigger({ delay, asChild, children, ...props }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
21
+ type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Popup> & {
22
+ sideOffset?: number;
23
+ showArrow?: boolean;
24
+ side?: 'top' | 'bottom' | 'left' | 'right';
25
+ align?: 'start' | 'center' | 'end';
26
+ };
27
+ declare function TooltipContent({ className, sideOffset, showArrow, side, align, children, ...props }: TooltipContentProps): react_jsx_runtime.JSX.Element;
28
+
29
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };