@storepass/components 0.4.0 → 0.5.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 (200) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +104 -68
  3. package/dist/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  5. package/dist/components/Accordion/index.js +1 -1
  6. package/dist/components/AlertDialog/AlertDialog.d.ts +9 -9
  7. package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
  8. package/dist/components/AlertDialog/index.js +1 -1
  9. package/dist/components/Avatar/Avatar.d.ts +3 -3
  10. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  11. package/dist/components/Avatar/index.js +1 -1
  12. package/dist/components/Badge/Badge.d.ts +1 -1
  13. package/dist/components/Badge/Badge.d.ts.map +1 -1
  14. package/dist/components/Badge/index.js +1 -1
  15. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +7 -7
  16. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  17. package/dist/components/Breadcrumbs/index.js +1 -1
  18. package/dist/components/Button/Button.d.ts +5 -3
  19. package/dist/components/Button/Button.d.ts.map +1 -1
  20. package/dist/components/Button/index.js +1 -1
  21. package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  22. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  23. package/dist/components/ButtonGroup/index.js +1 -1
  24. package/dist/components/Card/Card.d.ts +8 -8
  25. package/dist/components/Card/Card.d.ts.map +1 -1
  26. package/dist/components/Card/index.js +1 -1
  27. package/dist/components/Carousel/Carousel.d.ts +6 -6
  28. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  29. package/dist/components/Carousel/index.js +1 -1
  30. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  31. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  32. package/dist/components/Checkbox/index.js +1 -1
  33. package/dist/components/Collapsible/Collapsible.d.ts +5 -4
  34. package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
  35. package/dist/components/Collapsible/index.js +1 -1
  36. package/dist/components/Combobox/Combobox.d.ts +22 -20
  37. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  38. package/dist/components/Combobox/index.js +1 -1
  39. package/dist/components/Command/Command.d.ts +39 -2
  40. package/dist/components/Command/Command.d.ts.map +1 -1
  41. package/dist/components/Command/index.d.ts +1 -1
  42. package/dist/components/Command/index.d.ts.map +1 -1
  43. package/dist/components/Command/index.js +1 -1
  44. package/dist/components/DatePicker/DatePicker.d.ts +6 -2
  45. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  46. package/dist/components/DatePicker/index.js +1 -1
  47. package/dist/components/Dialog/Dialog.d.ts +9 -9
  48. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  49. package/dist/components/Dialog/index.js +1 -1
  50. package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -12
  51. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  52. package/dist/components/DropdownMenu/index.js +1 -1
  53. package/dist/components/FeaturedIcon/FeaturedIcon.d.ts +3 -3
  54. package/dist/components/FeaturedIcon/FeaturedIcon.d.ts.map +1 -1
  55. package/dist/components/FeaturedIcon/index.js +1 -1
  56. package/dist/components/Field/Field.d.ts +11 -11
  57. package/dist/components/Field/Field.d.ts.map +1 -1
  58. package/dist/components/Field/index.js +1 -1
  59. package/dist/components/FileUpload/FileUpload.d.ts +1 -1
  60. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  61. package/dist/components/FileUpload/index.js +1 -1
  62. package/dist/components/Footer/Footer.d.ts +5 -5
  63. package/dist/components/Footer/Footer.d.ts.map +1 -1
  64. package/dist/components/Footer/index.js +1 -1
  65. package/dist/components/Form/Form.d.ts +1 -1
  66. package/dist/components/Form/Form.d.ts.map +1 -1
  67. package/dist/components/Form/FormField.d.ts +1 -1
  68. package/dist/components/Form/FormField.d.ts.map +1 -1
  69. package/dist/components/Form/FormLayout.d.ts +3 -3
  70. package/dist/components/Form/FormLayout.d.ts.map +1 -1
  71. package/dist/components/Form/index.js +1 -1
  72. package/dist/components/Icon/Icon.d.ts +1 -1
  73. package/dist/components/Icon/Icon.d.ts.map +1 -1
  74. package/dist/components/Icon/index.js +1 -1
  75. package/dist/components/ImperativeDialog/ImperativeDialog.d.ts +1 -1
  76. package/dist/components/ImperativeDialog/ImperativeDialog.d.ts.map +1 -1
  77. package/dist/components/ImperativeDialog/index.js +1 -1
  78. package/dist/components/InlineAlert/InlineAlert.d.ts +1 -1
  79. package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -1
  80. package/dist/components/InlineAlert/index.js +1 -1
  81. package/dist/components/Input/Input.d.ts +5 -0
  82. package/dist/components/Input/Input.d.ts.map +1 -1
  83. package/dist/components/Input/index.js +1 -1
  84. package/dist/components/InputGroup/InputGroup.d.ts +10 -5
  85. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  86. package/dist/components/InputGroup/index.js +1 -1
  87. package/dist/components/Item/Item.d.ts +9 -9
  88. package/dist/components/Item/Item.d.ts.map +1 -1
  89. package/dist/components/Item/index.js +1 -1
  90. package/dist/components/Kbd/Kbd.d.ts +2 -2
  91. package/dist/components/Kbd/Kbd.d.ts.map +1 -1
  92. package/dist/components/Kbd/index.js +1 -1
  93. package/dist/components/Label/Label.d.ts +1 -1
  94. package/dist/components/Label/Label.d.ts.map +1 -1
  95. package/dist/components/Label/index.js +1 -1
  96. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  97. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  98. package/dist/components/LoadingIndicator/index.js +1 -1
  99. package/dist/components/MoneyAmount/MoneyAmount.d.ts +34 -0
  100. package/dist/components/MoneyAmount/MoneyAmount.d.ts.map +1 -0
  101. package/dist/components/MoneyAmount/formatMoney.d.ts +43 -0
  102. package/dist/components/MoneyAmount/formatMoney.d.ts.map +1 -0
  103. package/dist/components/MoneyAmount/index.d.ts +5 -0
  104. package/dist/components/MoneyAmount/index.d.ts.map +1 -0
  105. package/dist/components/MoneyAmount/index.js +1 -0
  106. package/dist/components/Navbar/Navbar.d.ts +10 -10
  107. package/dist/components/Navbar/Navbar.d.ts.map +1 -1
  108. package/dist/components/Navbar/index.js +1 -1
  109. package/dist/components/NumberField/NumberField.d.ts +7 -4
  110. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  111. package/dist/components/NumberField/index.js +1 -1
  112. package/dist/components/PageHeading/PageHeading.d.ts +83 -0
  113. package/dist/components/PageHeading/PageHeading.d.ts.map +1 -0
  114. package/dist/components/PageHeading/index.d.ts +3 -0
  115. package/dist/components/PageHeading/index.d.ts.map +1 -0
  116. package/dist/components/PageHeading/index.js +1 -0
  117. package/dist/components/PageLayout/PageLayout.d.ts +29 -0
  118. package/dist/components/PageLayout/PageLayout.d.ts.map +1 -0
  119. package/dist/components/PageLayout/index.d.ts +2 -0
  120. package/dist/components/PageLayout/index.d.ts.map +1 -0
  121. package/dist/components/PageLayout/index.js +1 -0
  122. package/dist/components/Pagination/Pagination.d.ts +7 -7
  123. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  124. package/dist/components/Pagination/index.js +1 -1
  125. package/dist/components/Panel/Panel.d.ts +5 -5
  126. package/dist/components/Panel/Panel.d.ts.map +1 -1
  127. package/dist/components/Panel/index.js +1 -1
  128. package/dist/components/PinInput/PinInput.d.ts +3 -3
  129. package/dist/components/PinInput/PinInput.d.ts.map +1 -1
  130. package/dist/components/PinInput/index.js +1 -1
  131. package/dist/components/Progress/Progress.d.ts +1 -1
  132. package/dist/components/Progress/Progress.d.ts.map +1 -1
  133. package/dist/components/Progress/index.js +1 -1
  134. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  135. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  136. package/dist/components/RadioGroup/index.js +1 -1
  137. package/dist/components/Rating/Rating.d.ts +1 -1
  138. package/dist/components/Rating/Rating.d.ts.map +1 -1
  139. package/dist/components/Rating/index.js +1 -1
  140. package/dist/components/Select/Select.d.ts +5 -1
  141. package/dist/components/Select/Select.d.ts.map +1 -1
  142. package/dist/components/Select/index.js +1 -1
  143. package/dist/components/Settings/Settings.d.ts +26 -36
  144. package/dist/components/Settings/Settings.d.ts.map +1 -1
  145. package/dist/components/Settings/index.d.ts +1 -1
  146. package/dist/components/Settings/index.d.ts.map +1 -1
  147. package/dist/components/Settings/index.js +1 -1
  148. package/dist/components/Sidebar/Sidebar.d.ts +15 -10
  149. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  150. package/dist/components/Sidebar/index.d.ts +1 -1
  151. package/dist/components/Sidebar/index.d.ts.map +1 -1
  152. package/dist/components/Sidebar/index.js +1 -1
  153. package/dist/components/Slider/Slider.d.ts +1 -1
  154. package/dist/components/Slider/Slider.d.ts.map +1 -1
  155. package/dist/components/Slider/index.js +1 -1
  156. package/dist/components/Table/Table.d.ts +8 -8
  157. package/dist/components/Table/Table.d.ts.map +1 -1
  158. package/dist/components/Table/index.js +1 -1
  159. package/dist/components/Tabs/Tabs.d.ts +11 -9
  160. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  161. package/dist/components/Tabs/index.js +1 -1
  162. package/dist/components/Tags/Tags.d.ts +1 -1
  163. package/dist/components/Tags/Tags.d.ts.map +1 -1
  164. package/dist/components/Tags/index.js +1 -1
  165. package/dist/components/Text/Text.d.ts +4 -4
  166. package/dist/components/Text/Text.d.ts.map +1 -1
  167. package/dist/components/Text/index.js +1 -1
  168. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  169. package/dist/components/Textarea/index.js +1 -1
  170. package/dist/components/Toast/Toast.d.ts +2 -2
  171. package/dist/components/Toast/Toast.d.ts.map +1 -1
  172. package/dist/components/Toast/index.js +1 -1
  173. package/dist/components/Toggle/Toggle.d.ts +1 -1
  174. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  175. package/dist/components/Toggle/index.js +1 -1
  176. package/dist/components/Tooltip/Tooltip.d.ts +5 -5
  177. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  178. package/dist/components/Tooltip/index.js +1 -1
  179. package/dist/components/VideoDialog/VideoDialog.d.ts +9 -9
  180. package/dist/components/VideoDialog/VideoDialog.d.ts.map +1 -1
  181. package/dist/components/VideoDialog/index.js +1 -1
  182. package/dist/components/index.d.ts +4 -1
  183. package/dist/components/index.d.ts.map +1 -1
  184. package/dist/index-27w72p7z.js +2 -0
  185. package/dist/{index-rypjyrpn.js → index-7abyvs9n.js} +1 -1
  186. package/dist/index-8b3c6nnb.js +2 -0
  187. package/dist/{index-8mzg78nw.js → index-9v1g4s39.js} +2 -2
  188. package/dist/index-f862wbmh.js +2 -0
  189. package/dist/index-qfdc271j.js +2 -0
  190. package/dist/{index-btjxn90p.js → index-s2mc6jzt.js} +2 -2
  191. package/dist/index-st80n69g.js +2 -0
  192. package/dist/index.d.ts +1 -0
  193. package/dist/index.d.ts.map +1 -1
  194. package/dist/index.js +1 -1
  195. package/dist/lib/controlSize.d.ts +59 -0
  196. package/dist/lib/controlSize.d.ts.map +1 -0
  197. package/dist/lib/utils.js +1 -1
  198. package/dist/theme.css +211 -147
  199. package/package.json +24 -22
  200. package/dist/index-1cb5sns5.js +0 -2
@@ -64,18 +64,18 @@ export interface DropdownMenuSubContentProps extends Omit<React.ComponentPropsWi
64
64
  /**
65
65
  * A menu that appears when triggered, providing a list of actions or options.
66
66
  */
67
- declare function DropdownMenuRoot({ children, ...props }: DropdownMenuRootProps): import("react/jsx-runtime").JSX.Element;
68
- declare function DropdownMenuTrigger({ className, children, asChild, ...props }: DropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
69
- declare function DropdownMenuPortal({ children, ...props }: DropdownMenuPortalProps): import("react/jsx-runtime").JSX.Element;
70
- declare function DropdownMenuContent({ className, children, side, align, sideOffset, alignOffset, ...props }: DropdownMenuContentProps): import("react/jsx-runtime").JSX.Element;
71
- declare function DropdownMenuItem({ className, children, disabled, ...props }: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
72
- declare function DropdownMenuGroup({ className, children, ...props }: DropdownMenuGroupProps): import("react/jsx-runtime").JSX.Element;
73
- declare function DropdownMenuLabel({ className, children, ...props }: DropdownMenuLabelProps): import("react/jsx-runtime").JSX.Element;
74
- declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
75
- declare function DropdownMenuShortcut({ className, children, ...props }: DropdownMenuShortcutProps): import("react/jsx-runtime").JSX.Element;
76
- declare function DropdownMenuSub({ children, ...props }: DropdownMenuSubProps): import("react/jsx-runtime").JSX.Element;
77
- declare function DropdownMenuSubTrigger({ className, children, ...props }: DropdownMenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
78
- declare function DropdownMenuSubContent({ className, children, side, align, sideOffset, alignOffset, ...props }: DropdownMenuSubContentProps): import("react/jsx-runtime").JSX.Element;
67
+ declare function DropdownMenuRoot({ children, ...props }: DropdownMenuRootProps): import("react").JSX.Element;
68
+ declare function DropdownMenuTrigger({ className, children, asChild, ...props }: DropdownMenuTriggerProps): import("react").JSX.Element;
69
+ declare function DropdownMenuPortal({ children, ...props }: DropdownMenuPortalProps): import("react").JSX.Element;
70
+ declare function DropdownMenuContent({ className, children, side, align, sideOffset, alignOffset, ...props }: DropdownMenuContentProps): import("react").JSX.Element;
71
+ declare function DropdownMenuItem({ className, children, disabled, ...props }: DropdownMenuItemProps): import("react").JSX.Element;
72
+ declare function DropdownMenuGroup({ className, children, ...props }: DropdownMenuGroupProps): import("react").JSX.Element;
73
+ declare function DropdownMenuLabel({ className, children, ...props }: DropdownMenuLabelProps): import("react").JSX.Element;
74
+ declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): import("react").JSX.Element;
75
+ declare function DropdownMenuShortcut({ className, children, ...props }: DropdownMenuShortcutProps): import("react").JSX.Element;
76
+ declare function DropdownMenuSub({ children, ...props }: DropdownMenuSubProps): import("react").JSX.Element;
77
+ declare function DropdownMenuSubTrigger({ className, children, ...props }: DropdownMenuSubTriggerProps): import("react").JSX.Element;
78
+ declare function DropdownMenuSubContent({ className, children, side, align, sideOffset, alignOffset, ...props }: DropdownMenuSubContentProps): import("react").JSX.Element;
79
79
  export declare const DropdownMenu: {
80
80
  Root: typeof DropdownMenuRoot;
81
81
  Trigger: typeof DropdownMenuTrigger;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,QAAA,MAAM,2BAA2B,oFAQ/B,CAAC;AAEH,QAAA,MAAM,wBAAwB,oFAM5B,CAAC;AAEH,QAAA,MAAM,yBAAyB,oFAE7B,CAAC;AAEH,QAAA,MAAM,6BAA6B,oFAAuC,CAAC;AAE3E,QAAA,MAAM,4BAA4B,oFAEhC,CAAC;AAEH,QAAA,MAAM,8BAA8B,oFAMlC,CAAC;AAEH,QAAA,MAAM,8BAA8B,oFAQlC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,QAAQ,CAAC,IAAI,CAAC,KAAK;IACjE,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,wBAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,OAAO,CAAC,EACvD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,uBAAwB,SAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK;IACrE,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,MAA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M,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,OAAO,EACN,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,GAC9B,CAAC"}
@@ -1 +1 @@
1
- import"../Icon/index.js";import{Rd as J}from"../../index-rypjyrpn.js";import{Sd as z}from"../../lib/utils.js";import{Menu as y}from"@base-ui/react/menu";import{faChevronRight as _}from"@fortawesome/pro-solid-svg-icons";import{cva as E}from"class-variance-authority";import{jsx as q,jsxs as B}from"react/jsx-runtime";var K=E(["bg-background text-foreground","z-50 min-w-[8rem] overflow-hidden rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]),Q=E(["relative flex w-full cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]),U=E(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),W=E(["-mx-1.5 my-1 h-px bg-border"]),X=E(["ml-auto text-xs tracking-widest text-muted-foreground"]),Y=E(["relative flex w-full cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[popup-open]:bg-accent data-[popup-open]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"]),Z=E(["bg-background text-foreground","z-50 min-w-[8rem] overflow-hidden rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]);function $({children:D,...P}){return q(y.Root,{...P,children:D})}function L({className:D,children:P,asChild:k,...A}){return q(y.Trigger,{"data-slot":"dropdown-menu-trigger",className:z(D),render:k?P:void 0,...A,children:k?void 0:P})}function R({children:D,...P}){return q(y.Portal,{...P,children:D})}function T({className:D,children:P,side:k="bottom",align:A="start",sideOffset:F=4,alignOffset:G,...H}){return q(y.Portal,{children:q(y.Positioner,{className:"outline-none z-50",side:k,sideOffset:F,align:A,alignOffset:G,children:q(y.Popup,{"data-slot":"dropdown-menu-content",className:z(K(),D),...H,children:P})})})}function I({className:D,children:P,disabled:k,...A}){return q(y.Item,{"data-slot":"dropdown-menu-item",className:z(Q(),D),disabled:k,...A,children:P})}function S({className:D,children:P,...k}){return q("fieldset",{"data-slot":"dropdown-menu-group",className:z("border-0 p-0 m-0",D),...k,children:P})}function b({className:D,children:P,...k}){return q("div",{"data-slot":"dropdown-menu-label",className:z(U(),D),...k,children:P})}function w({className:D,...P}){return q(y.Separator,{"data-slot":"dropdown-menu-separator",className:z(W(),D),...P})}function C({className:D,children:P,...k}){return q("span",{"data-slot":"dropdown-menu-shortcut",className:z(X(),D),...k,children:P})}function V({children:D,...P}){return q(y.SubmenuRoot,{...P,children:D})}function O({className:D,children:P,...k}){return B(y.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger",className:z(Y(),D),...k,children:[P,q(J,{icon:_,className:"ml-auto size-4"})]})}function v({className:D,children:P,side:k,align:A,sideOffset:F=2,alignOffset:G=-4,...H}){return q(y.Portal,{children:q(y.Positioner,{className:"outline-none z-50",side:k,align:A,sideOffset:F,alignOffset:G,children:q(y.Popup,{"data-slot":"dropdown-menu-sub-content",className:z(Z(),D),...H,children:P})})})}var g={Root:$,Trigger:L,Portal:R,Content:T,Item:I,Group:S,Label:b,Separator:w,Shortcut:C,Sub:V,SubTrigger:O,SubContent:v};export{Y as dropdownMenuSubTriggerVariants,Z as dropdownMenuSubContentVariants,X as dropdownMenuShortcutVariants,W as dropdownMenuSeparatorVariants,U as dropdownMenuLabelVariants,Q as dropdownMenuItemVariants,K as dropdownMenuContentVariants,g as DropdownMenu};export{K as Lb,Q as Mb,U as Nb,W as Ob,X as Pb,Y as Qb,Z as Rb,g as Sb};
1
+ import"../Icon/index.js";import{se as J}from"../../index-7abyvs9n.js";import{te as z}from"../../lib/utils.js";import{Menu as y}from"@base-ui/react/menu";import{faChevronRight as _}from"@fortawesome/pro-solid-svg-icons";import{cva as E}from"class-variance-authority";import{jsx as q,jsxs as B}from"react/jsx-runtime";var K=E(["bg-background text-foreground","z-50 min-w-[8rem] overflow-hidden rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]),Q=E(["relative flex w-full cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]),U=E(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),W=E(["-mx-1.5 my-1 h-px bg-border"]),X=E(["ml-auto text-xs tracking-widest text-muted-foreground"]),Y=E(["relative flex w-full cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[popup-open]:bg-accent data-[popup-open]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"]),Z=E(["bg-background text-foreground","z-50 min-w-[8rem] overflow-hidden rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]);function $({children:D,...P}){return q(y.Root,{...P,children:D})}function L({className:D,children:P,asChild:k,...A}){return q(y.Trigger,{"data-slot":"dropdown-menu-trigger",className:z(D),render:k?P:void 0,...A,children:k?void 0:P})}function R({children:D,...P}){return q(y.Portal,{...P,children:D})}function T({className:D,children:P,side:k="bottom",align:A="start",sideOffset:F=4,alignOffset:G,...H}){return q(y.Portal,{children:q(y.Positioner,{className:"outline-none z-50",side:k,sideOffset:F,align:A,alignOffset:G,children:q(y.Popup,{"data-slot":"dropdown-menu-content",className:z(K(),D),...H,children:P})})})}function I({className:D,children:P,disabled:k,...A}){return q(y.Item,{"data-slot":"dropdown-menu-item",className:z(Q(),D),disabled:k,...A,children:P})}function S({className:D,children:P,...k}){return q("fieldset",{"data-slot":"dropdown-menu-group",className:z("border-0 p-0 m-0",D),...k,children:P})}function b({className:D,children:P,...k}){return q("div",{"data-slot":"dropdown-menu-label",className:z(U(),D),...k,children:P})}function w({className:D,...P}){return q(y.Separator,{"data-slot":"dropdown-menu-separator",className:z(W(),D),...P})}function C({className:D,children:P,...k}){return q("span",{"data-slot":"dropdown-menu-shortcut",className:z(X(),D),...k,children:P})}function V({children:D,...P}){return q(y.SubmenuRoot,{...P,children:D})}function O({className:D,children:P,...k}){return B(y.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger",className:z(Y(),D),...k,children:[P,q(J,{icon:_,className:"ml-auto size-4"})]})}function v({className:D,children:P,side:k,align:A,sideOffset:F=2,alignOffset:G=-4,...H}){return q(y.Portal,{children:q(y.Positioner,{className:"outline-none z-50",side:k,align:A,sideOffset:F,alignOffset:G,children:q(y.Popup,{"data-slot":"dropdown-menu-sub-content",className:z(Z(),D),...H,children:P})})})}var g={Root:$,Trigger:L,Portal:R,Content:T,Item:I,Group:S,Label:b,Separator:w,Shortcut:C,Sub:V,SubTrigger:O,SubContent:v};export{Y as dropdownMenuSubTriggerVariants,Z as dropdownMenuSubContentVariants,X as dropdownMenuShortcutVariants,W as dropdownMenuSeparatorVariants,U as dropdownMenuLabelVariants,Q as dropdownMenuItemVariants,K as dropdownMenuContentVariants,g as DropdownMenu};export{K as Wb,Q as Xb,U as Yb,W as Zb,X as _b,Y as $b,Z as ac,g as bc};
@@ -3,7 +3,7 @@ import { type VariantProps } from "class-variance-authority";
3
3
  import type * as React from "react";
4
4
  declare const featuredIconVariants: (props?: ({
5
5
  color?: "info" | "warning" | "success" | "error" | "brand" | "gray" | null | undefined;
6
- variant?: "light" | "modern" | "solid" | null | undefined;
6
+ variant?: "ghost" | "light" | "modern" | "solid" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export interface FeaturedIconProps extends Omit<React.ComponentProps<"div">, "color">, VariantProps<typeof featuredIconVariants> {
@@ -12,8 +12,8 @@ export interface FeaturedIconProps extends Omit<React.ComponentProps<"div">, "co
12
12
  /**
13
13
  * An icon centered in a themed container. Used at the top of empty states, modals, alerts, and feature lists.
14
14
  *
15
- * variant: light is a soft tinted background with a colored icon, modern is a white background with a border and shadow with a colored icon only, and solid is a filled background with a contrasting icon.
15
+ * variant: light is a soft tinted background with a colored icon, modern is a white background with a border and shadow with a colored icon only, solid is a filled background with a contrasting icon, and ghost is the colored icon alone with no container fill (the container still reserves its size for alignment).
16
16
  */
17
- export declare function FeaturedIcon({ color, variant, size, icon, className, ...props }: FeaturedIconProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function FeaturedIcon({ color, variant, size, icon, className, ...props }: FeaturedIconProps): React.JSX.Element;
18
18
  export { featuredIconVariants };
19
19
  //# sourceMappingURL=FeaturedIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturedIcon.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedIcon/FeaturedIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,QAAA,MAAM,oBAAoB;;;;8EA0HzB,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EACjD,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC1C,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACR,EAAE,iBAAiB,2CAUnB;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"FeaturedIcon.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedIcon/FeaturedIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,QAAA,MAAM,oBAAoB;;;;8EAyJzB,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EACjD,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC1C,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACR,EAAE,iBAAiB,qBAUnB;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{Rd as q}from"../../index-rypjyrpn.js";import{Sd as P}from"../../lib/utils.js";import{cva as K}from"class-variance-authority";import{jsx as F}from"react/jsx-runtime";var B=K("inline-flex items-center justify-center shrink-0 [&_[data-slot=icon]]:shrink-0",{variants:{color:{brand:"",gray:"",success:"",warning:"",error:"",info:""},variant:{light:"",modern:"bg-background border border-input shadow-xs",solid:""},size:{sm:"size-8 rounded-lg [&_[data-slot=icon]]:text-sm",md:"size-10 rounded-lg [&_[data-slot=icon]]:text-base",lg:"size-12 rounded-xl [&_[data-slot=icon]]:text-lg",xl:"size-14 rounded-xl [&_[data-slot=icon]]:text-xl"}},compoundVariants:[{color:"brand",variant:"light",className:"bg-utility-brand-50 text-utility-brand-600"},{color:"gray",variant:"light",className:"bg-utility-gray-100 text-utility-gray-600"},{color:"success",variant:"light",className:"bg-utility-success-50 text-utility-success-600"},{color:"warning",variant:"light",className:"bg-utility-warning-50 text-utility-warning-600"},{color:"error",variant:"light",className:"bg-utility-error-50 text-utility-error-600"},{color:"info",variant:"light",className:"bg-utility-blue-50 text-utility-blue-600"},{color:"brand",variant:"modern",className:"text-utility-brand-600"},{color:"gray",variant:"modern",className:"text-utility-gray-600"},{color:"success",variant:"modern",className:"text-utility-success-600"},{color:"warning",variant:"modern",className:"text-utility-warning-600"},{color:"error",variant:"modern",className:"text-utility-error-600"},{color:"info",variant:"modern",className:"text-utility-blue-600"},{color:"brand",variant:"solid",className:"bg-primary text-primary-foreground"},{color:"gray",variant:"solid",className:"bg-utility-gray-600 text-white"},{color:"success",variant:"solid",className:"bg-success text-white"},{color:"warning",variant:"solid",className:"bg-warning text-warning-foreground"},{color:"error",variant:"solid",className:"bg-destructive text-white"},{color:"info",variant:"solid",className:"bg-info text-white"}],defaultVariants:{color:"brand",variant:"light",size:"md"}});function L({color:C,variant:D,size:E,icon:G,className:H,...J}){return F("div",{"data-slot":"featured-icon",className:P(B({color:C,variant:D,size:E}),H),...J,children:F(q,{icon:G})})}export{B as featuredIconVariants,L as FeaturedIcon};export{B as Yb,L as Zb};
1
+ import{se as q}from"../../index-7abyvs9n.js";import{te as P}from"../../lib/utils.js";import{cva as K}from"class-variance-authority";import{jsx as F}from"react/jsx-runtime";var B=K("inline-flex items-center justify-center shrink-0 [&_[data-slot=icon]]:shrink-0",{variants:{color:{brand:"",gray:"",success:"",warning:"",error:"",info:""},variant:{light:"",modern:"bg-background border border-input shadow-xs",solid:"",ghost:""},size:{sm:"size-8 rounded-lg [&_[data-slot=icon]]:text-sm",md:"size-10 rounded-lg [&_[data-slot=icon]]:text-base",lg:"size-12 rounded-xl [&_[data-slot=icon]]:text-lg",xl:"size-14 rounded-xl [&_[data-slot=icon]]:text-xl"}},compoundVariants:[{color:"brand",variant:"light",className:"bg-utility-brand-50 text-utility-brand-600"},{color:"gray",variant:"light",className:"bg-utility-gray-100 text-utility-gray-600"},{color:"success",variant:"light",className:"bg-utility-success-50 text-utility-success-600"},{color:"warning",variant:"light",className:"bg-utility-warning-50 text-utility-warning-600"},{color:"error",variant:"light",className:"bg-utility-error-50 text-utility-error-600"},{color:"info",variant:"light",className:"bg-utility-blue-50 text-utility-blue-600"},{color:"brand",variant:"modern",className:"text-utility-brand-600"},{color:"gray",variant:"modern",className:"text-utility-gray-600"},{color:"success",variant:"modern",className:"text-utility-success-600"},{color:"warning",variant:"modern",className:"text-utility-warning-600"},{color:"error",variant:"modern",className:"text-utility-error-600"},{color:"info",variant:"modern",className:"text-utility-blue-600"},{color:"brand",variant:"solid",className:"bg-primary text-primary-foreground"},{color:"gray",variant:"solid",className:"bg-utility-gray-600 text-white"},{color:"success",variant:"solid",className:"bg-success text-white"},{color:"warning",variant:"solid",className:"bg-warning text-warning-foreground"},{color:"error",variant:"solid",className:"bg-destructive text-white"},{color:"info",variant:"solid",className:"bg-info text-white"},{color:"brand",variant:"ghost",className:"text-utility-brand-600"},{color:"gray",variant:"ghost",className:"text-utility-gray-600"},{color:"success",variant:"ghost",className:"text-utility-success-600"},{color:"warning",variant:"ghost",className:"text-utility-warning-600"},{color:"error",variant:"ghost",className:"text-utility-error-600"},{color:"info",variant:"ghost",className:"text-utility-blue-600"}],defaultVariants:{color:"brand",variant:"light",size:"md"}});function L({color:C,variant:D,size:E,icon:G,className:H,...J}){return F("div",{"data-slot":"featured-icon",className:P(B({color:C,variant:D,size:E}),H),...J,children:F(q,{icon:G})})}export{B as featuredIconVariants,L as FeaturedIcon};export{B as hc,L as ic};
@@ -4,7 +4,7 @@ import { type ReactNode } from "react";
4
4
  declare function useInFieldContainer(): boolean;
5
5
  declare function FieldContainerProvider({ children }: {
6
6
  children: ReactNode;
7
- }): import("react/jsx-runtime").JSX.Element;
7
+ }): import("react").JSX.Element;
8
8
  declare const fieldVariants: (props?: ({
9
9
  orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
10
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -18,40 +18,40 @@ export interface FieldProps extends Omit<React.ComponentPropsWithoutRef<typeof B
18
18
  * in a Form and reach for FormField; use these primitives directly when you need
19
19
  * custom layouts.
20
20
  */
21
- declare function Field({ className, orientation, children, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
21
+ declare function Field({ className, orientation, children, ...props }: FieldProps): import("react").JSX.Element;
22
22
  export interface FieldSetProps extends React.ComponentPropsWithoutRef<"fieldset"> {
23
23
  }
24
- declare function FieldSet({ className, ...props }: FieldSetProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function FieldSet({ className, ...props }: FieldSetProps): import("react").JSX.Element;
25
25
  export interface FieldLegendProps extends React.ComponentPropsWithoutRef<"legend"> {
26
26
  variant?: "legend" | "label";
27
27
  }
28
- declare function FieldLegend({ className, variant, ...props }: FieldLegendProps): import("react/jsx-runtime").JSX.Element;
28
+ declare function FieldLegend({ className, variant, ...props }: FieldLegendProps): import("react").JSX.Element;
29
29
  export interface FieldGroupProps extends React.ComponentPropsWithoutRef<"div"> {
30
30
  }
31
- declare function FieldGroup({ className, ...props }: FieldGroupProps): import("react/jsx-runtime").JSX.Element;
31
+ declare function FieldGroup({ className, ...props }: FieldGroupProps): import("react").JSX.Element;
32
32
  export interface FieldContentProps extends React.ComponentPropsWithoutRef<"div"> {
33
33
  }
34
- declare function FieldContent({ className, ...props }: FieldContentProps): import("react/jsx-runtime").JSX.Element;
34
+ declare function FieldContent({ className, ...props }: FieldContentProps): import("react").JSX.Element;
35
35
  export interface FieldLabelProps extends Omit<React.ComponentPropsWithoutRef<typeof BaseField.Label>, "className"> {
36
36
  className?: string;
37
37
  }
38
- declare function FieldLabel({ className, ...props }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
38
+ declare function FieldLabel({ className, ...props }: FieldLabelProps): import("react").JSX.Element;
39
39
  export interface FieldTitleProps extends React.ComponentPropsWithoutRef<"div"> {
40
40
  }
41
- declare function FieldTitle({ className, ...props }: FieldTitleProps): import("react/jsx-runtime").JSX.Element;
41
+ declare function FieldTitle({ className, ...props }: FieldTitleProps): import("react").JSX.Element;
42
42
  export interface FieldDescriptionProps extends Omit<React.ComponentPropsWithoutRef<typeof BaseField.Description>, "className"> {
43
43
  className?: string;
44
44
  }
45
- declare function FieldDescription({ className, ...props }: FieldDescriptionProps): import("react/jsx-runtime").JSX.Element;
45
+ declare function FieldDescription({ className, ...props }: FieldDescriptionProps): import("react").JSX.Element;
46
46
  export interface FieldSeparatorProps extends React.ComponentPropsWithoutRef<"div"> {
47
47
  }
48
- declare function FieldSeparator({ children, className, ...props }: FieldSeparatorProps): import("react/jsx-runtime").JSX.Element;
48
+ declare function FieldSeparator({ children, className, ...props }: FieldSeparatorProps): import("react").JSX.Element;
49
49
  export interface FieldErrorProps extends Omit<React.ComponentPropsWithoutRef<typeof BaseField.Error>, "className"> {
50
50
  className?: string;
51
51
  errors?: Array<{
52
52
  message?: string;
53
53
  } | undefined>;
54
54
  }
55
- declare function FieldError({ className, children, errors, ...props }: FieldErrorProps): import("react/jsx-runtime").JSX.Element | null;
55
+ declare function FieldError({ className, children, errors, ...props }: FieldErrorProps): import("react").JSX.Element | null;
56
56
  export { Field, FieldContainerProvider, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, useInFieldContainer, };
57
57
  //# sourceMappingURL=Field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAiB,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAY3E,iBAAS,mBAAmB,IAAI,OAAO,CAEtC;AAED,iBAAS,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAMpE;AAED,QAAA,MAAM,aAAa;;8EA2BlB,CAAC;AAEF,MAAM,WAAW,UAChB,SAAQ,IAAI,CACV,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EACrD,WAAW,CACX,EACD,YAAY,CAAC,OAAO,aAAa,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,WAAwB,EACxB,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,UAAU,2CAYZ;AAED,MAAM,WAAW,aAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC;CAAG;AAEtD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAYvD;AAED,MAAM,WAAW,gBAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IAChD,OAAO,C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B,CAAC,OAAO,SAAS,CAAC,WAAW,CAAC,EAC5D,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAavE;AAED,MAAM,WAAW,mBAChB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAEjD,iBAAS,cAAc,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACR,EAAE,mBAAmB,+BAsBrB;AAED,MAAM,WAAW,eAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EACtD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CACjD;AAED,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACR,EAAE,eAAe,sCAyCjB;AAED,OAAO,EACN,KAAK,EACL,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,UAAU,EACV,aAAa,EACb,mBAAmB,GACnB,CAAC"}
@@ -1 +1 @@
1
- import{Sd as G}from"../../lib/utils.js";import{Field as A}from"@base-ui/react/field";import{cva as R}from"class-variance-authority";import{createContext as W,useContext as X,useMemo as Y}from"react";import{jsx as D,jsxs as q}from"react/jsx-runtime";var K=W(!1);function Z(){return X(K)}function O({children:P}){return D(K.Provider,{value:!0,children:P})}var Q=R("group/field flex w-full gap-3 border-0 p-0 m-0 data-[invalid]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function _({className:P,orientation:L="vertical",children:S,...z}){return D(A.Root,{"data-slot":"field","data-orientation":L,className:G(Q({orientation:L}),P),render:D("fieldset",{}),...z,children:D(O,{children:S})})}function $({className:P,...L}){return D("fieldset",{"data-slot":"field-set",className:G("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",P),...L})}function g({className:P,variant:L="legend",...S}){return D("legend",{"data-slot":"field-legend","data-variant":L,className:G("mb-3 font-medium text-foreground","data-[variant=legend]:text-base","data-[variant=label]:text-sm",P),...S})}function M({className:P,...L}){return D("div",{"data-slot":"field-group",className:G("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",P),...L})}function T({className:P,...L}){return D("div",{"data-slot":"field-content",className:G("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",P),...L})}function U({className:P,...L}){return D(A.Label,{"data-slot":"field-label",className:G("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none","group/field-label peer/field-label w-fit leading-snug group-data-[disabled]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary",P),...L})}function V({className:P,...L}){return D("div",{"data-slot":"field-label",className:G("flex w-fit items-center gap-2 text-sm leading-snug font-medium text-foreground group-data-[disabled]/field:opacity-50",P),...L})}function E({className:P,...L}){return D(A.Description,{"data-slot":"field-description",className:G("text-muted-foreground text-[13px] leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",P),...L})}function F({children:P,className:L,...S}){return q("div",{"data-slot":"field-separator","data-content":!!P,className:G("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",L),...S,children:[D("div",{className:"absolute inset-0 top-1/2 h-px bg-border"}),P&&D("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:P})]})}function I({className:P,children:L,errors:S,...z}){let J=Y(()=>{if(L)return L;if(!S?.length)return null;let H=[...new Map(S.map((k)=>[k?.message,k])).values()];if(H?.length===1)return H[0]?.message;return D("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:H.map((k)=>k?.message&&D("li",{children:k.message},k.message))})},[L,S]);if(!J&&!z.match)return null;return D(A.Error,{"data-slot":"field-error",className:G("text-destructive text-sm font-normal",P),...z,children:J})}export{Z as useInFieldContainer,Q as fieldVariants,V as FieldTitle,$ as FieldSet,F as FieldSeparator,g as FieldLegend,U as FieldLabel,M as FieldGroup,I as FieldError,E as FieldDescription,T as FieldContent,O as FieldContainerProvider,_ as Field};export{Z as ic,O as jc,Q as kc,_ as lc,$ as mc,g as nc,M as oc,T as pc,U as qc,V as rc,E as sc,F as tc,I as uc};
1
+ import{te as G}from"../../lib/utils.js";import{Field as A}from"@base-ui/react/field";import{cva as R}from"class-variance-authority";import{createContext as W,useContext as X,useMemo as Y}from"react";import{jsx as D,jsxs as q}from"react/jsx-runtime";var K=W(!1);function Z(){return X(K)}function O({children:P}){return D(K.Provider,{value:!0,children:P})}var Q=R("group/field flex w-full gap-3 border-0 p-0 m-0 data-[invalid]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function _({className:P,orientation:L="vertical",children:S,...z}){return D(A.Root,{"data-slot":"field","data-orientation":L,className:G(Q({orientation:L}),P),render:D("fieldset",{}),...z,children:D(O,{children:S})})}function $({className:P,...L}){return D("fieldset",{"data-slot":"field-set",className:G("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",P),...L})}function g({className:P,variant:L="legend",...S}){return D("legend",{"data-slot":"field-legend","data-variant":L,className:G("mb-3 font-medium text-foreground","data-[variant=legend]:text-base","data-[variant=label]:text-sm",P),...S})}function M({className:P,...L}){return D("div",{"data-slot":"field-group",className:G("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",P),...L})}function T({className:P,...L}){return D("div",{"data-slot":"field-content",className:G("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",P),...L})}function U({className:P,...L}){return D(A.Label,{"data-slot":"field-label",className:G("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none","group/field-label peer/field-label w-fit leading-snug group-data-[disabled]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary",P),...L})}function V({className:P,...L}){return D("div",{"data-slot":"field-label",className:G("flex w-fit items-center gap-2 text-sm leading-snug font-medium text-foreground group-data-[disabled]/field:opacity-50",P),...L})}function E({className:P,...L}){return D(A.Description,{"data-slot":"field-description",className:G("text-muted-foreground text-[13px] leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",P),...L})}function F({children:P,className:L,...S}){return q("div",{"data-slot":"field-separator","data-content":!!P,className:G("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",L),...S,children:[D("div",{className:"absolute inset-0 top-1/2 h-px bg-border"}),P&&D("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:P})]})}function I({className:P,children:L,errors:S,...z}){let J=Y(()=>{if(L)return L;if(!S?.length)return null;let H=[...new Map(S.map((k)=>[k?.message,k])).values()];if(H?.length===1)return H[0]?.message;return D("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:H.map((k)=>k?.message&&D("li",{children:k.message},k.message))})},[L,S]);if(!J&&!z.match)return null;return D(A.Error,{"data-slot":"field-error",className:G("text-destructive text-sm font-normal",P),...z,children:J})}export{Z as useInFieldContainer,Q as fieldVariants,V as FieldTitle,$ as FieldSet,F as FieldSeparator,g as FieldLegend,U as FieldLabel,M as FieldGroup,I as FieldError,E as FieldDescription,T as FieldContent,O as FieldContainerProvider,_ as Field};export{Z as tc,O as uc,Q as vc,_ as wc,$ as xc,g as yc,M as zc,T as Ac,U as Bc,V as Cc,E as Dc,F as Ec,I as Fc};
@@ -16,6 +16,6 @@ export interface FileUploadProps extends Omit<React.ComponentProps<"div">, "onCh
16
16
  /**
17
17
  * A drag-and-drop dropzone with a hidden file input and an upload queue showing each file's name, size, optional progress, and a remove action.
18
18
  */
19
- export declare function FileUpload({ value, defaultValue, onFilesChange, multiple, accept, maxSize, disabled, progress, label, hint, className, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function FileUpload({ value, defaultValue, onFilesChange, multiple, accept, maxSize, disabled, progress, label, hint, className, ...props }: FileUploadProps): import("react").JSX.Element;
20
20
  export { fileUploadVariants };
21
21
  //# sourceMappingURL=FileUpload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGN,KAAK,SAAS,EAId,MAAM,OAAO,CAAC;AAOf,QAAA,MAAM,kBAAkB,2FAMvB,CAAC;AAiBF,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,EACrE,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,UA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AAK,EACR,EAAE,eAAe,+BA0NjB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{Xb as k}from"../Progress/index.js";import{Zb as S}from"../FeaturedIcon/index.js";import"../Button/index.js";import{Qc as I}from"../../index-1cb5sns5.js";import"../Icon/index.js";import{Rd as V}from"../../index-rypjyrpn.js";import{Sd as L}from"../../lib/utils.js";import{faCloudArrowUp as r,faFile as n,faXmark as t}from"@fortawesome/pro-solid-svg-icons";import{cva as d}from"class-variance-authority";import{useCallback as H,useRef as a,useState as w}from"react";import{jsx as G,jsxs as Y,Fragment as s}from"react/jsx-runtime";var h=d("flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed border-input bg-background p-6 text-center transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[dragging]:border-primary data-[dragging]:bg-utility-brand-50",{variants:{},defaultVariants:{}});function i(Q){if(Q<1000)return`${Q} B`;let _=["KB","MB","GB","TB"],J=Q/1000,M=0;while(J>=1000&&M<_.length-1)J/=1000,M+=1;return`${J<10?J.toFixed(1):Math.round(J).toString()} ${_[M]}`}function l({value:Q,defaultValue:_,onFilesChange:J,multiple:M,accept:P,maxSize:K,disabled:q,progress:R,label:v,hint:y,className:F,...C}){let O=Q!==void 0,[m,p]=w(_??[]),[j,$]=w(!1),[A,f]=w([]),z=a(null),T=O?Q:m,E=H((U)=>{if(!O)p(U);J?.(U)},[O,J]),X=H((U)=>{let Z=Array.from(U),W=[],D=[];for(let N of Z){if(K!==void 0&&N.size>K){D.push(N.name);continue}W.push(N)}if(f(D),W.length===0)return;E(M?[...T,...W]:W.slice(0,1))},[T,K,M,E]),g=H((U)=>{E(T.filter((Z,W)=>W!==U))},[T,E]),B=H(()=>{if(q)return;z.current?.click()},[q]),x=H((U)=>{if(U.key==="Enter"||U.key===" ")U.preventDefault(),B()},[B]),o=H((U)=>{if(q)return;U.preventDefault(),$(!0)},[q]),b=H((U)=>{if(q)return;U.preventDefault(),$(!0)},[q]),c=H((U)=>{if(U.preventDefault(),U.currentTarget.contains(U.relatedTarget))return;$(!1)},[]),u=H((U)=>{if(U.preventDefault(),$(!1),q)return;if(U.dataTransfer.files.length>0)X(U.dataTransfer.files)},[X,q]);return Y("div",{"data-slot":"file-upload-root",className:L("flex flex-col gap-3"),children:[Y("div",{"data-slot":"file-upload",role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,"data-disabled":q?"":void 0,"data-dragging":j?"":void 0,className:L(h(),F),onClick:B,onKeyDown:x,onDragEnter:b,onDragOver:o,onDragLeave:c,onDrop:u,...C,children:[G("input",{ref:z,"data-slot":"file-upload-input",type:"file",className:"sr-only",accept:P,multiple:M,disabled:q,onChange:(U)=>{if(U.target.files&&U.target.files.length>0)X(U.target.files);U.target.value=""}}),G(S,{icon:r,color:"brand",variant:"light"}),G("div",{"data-slot":"file-upload-text",className:"text-sm text-foreground",children:v??Y(s,{children:[G("span",{className:"font-semibold text-primary",children:"Click to upload"})," ","or drag and drop"]})}),y&&G("div",{"data-slot":"file-upload-hint",className:"text-sm text-muted-foreground",children:y})]}),A.length>0&&G("div",{"data-slot":"file-upload-error",className:"text-sm text-destructive",children:A.length===1?`${A[0]} is too large.`:`${A.length} files are too large.`}),T.length>0&&G("ul",{"data-slot":"file-upload-list",className:"flex flex-col gap-2",children:T.map((U,Z)=>Y("li",{"data-slot":"file-upload-item",className:"flex items-center gap-3 rounded-lg border border-input bg-background p-3",children:[G(V,{icon:n,"data-slot":"file-upload-item-icon",className:"size-5 shrink-0 text-muted-foreground"}),Y("div",{"data-slot":"file-upload-item-info",className:"flex min-w-0 flex-1 flex-col gap-1",children:[Y("div",{className:"flex items-baseline justify-between gap-2",children:[G("span",{className:"truncate text-sm font-medium text-foreground",children:U.name}),G("span",{className:"shrink-0 text-sm text-muted-foreground tabular-nums",children:i(U.size)})]}),R?.[U.name]!==void 0&&G(k,{size:"sm",value:R[U.name]??null})]}),G(I,{type:"button",variant:"ghost",size:"icon-sm",disabled:q,"aria-label":`Remove ${U.name}`,onClick:()=>g(Z),children:G(V,{icon:t})})]},`${U.name}-${U.size}-${Z}`))})]})}export{h as fileUploadVariants,l as FileUpload};export{h as Tb,l as Ub};
1
+ import{gc as k}from"../Progress/index.js";import{ic as S}from"../FeaturedIcon/index.js";import"../Button/index.js";import{ad as I}from"../../index-8b3c6nnb.js";import"../../index-st80n69g.js";import"../Icon/index.js";import{se as V}from"../../index-7abyvs9n.js";import{te as L}from"../../lib/utils.js";import{faCloudArrowUp as r,faFile as n,faXmark as t}from"@fortawesome/pro-solid-svg-icons";import{cva as d}from"class-variance-authority";import{useCallback as H,useRef as a,useState as w}from"react";import{jsx as G,jsxs as Y,Fragment as s}from"react/jsx-runtime";var h=d("flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed border-input bg-background p-6 text-center transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 hover:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[dragging]:border-primary data-[dragging]:bg-utility-brand-50",{variants:{},defaultVariants:{}});function i(Q){if(Q<1000)return`${Q} B`;let _=["KB","MB","GB","TB"],J=Q/1000,M=0;while(J>=1000&&M<_.length-1)J/=1000,M+=1;return`${J<10?J.toFixed(1):Math.round(J).toString()} ${_[M]}`}function l({value:Q,defaultValue:_,onFilesChange:J,multiple:M,accept:P,maxSize:K,disabled:q,progress:R,label:v,hint:y,className:F,...C}){let O=Q!==void 0,[m,p]=w(_??[]),[j,$]=w(!1),[A,f]=w([]),z=a(null),T=O?Q:m,E=H((U)=>{if(!O)p(U);J?.(U)},[O,J]),X=H((U)=>{let Z=Array.from(U),W=[],D=[];for(let N of Z){if(K!==void 0&&N.size>K){D.push(N.name);continue}W.push(N)}if(f(D),W.length===0)return;E(M?[...T,...W]:W.slice(0,1))},[T,K,M,E]),g=H((U)=>{E(T.filter((Z,W)=>W!==U))},[T,E]),B=H(()=>{if(q)return;z.current?.click()},[q]),x=H((U)=>{if(U.key==="Enter"||U.key===" ")U.preventDefault(),B()},[B]),o=H((U)=>{if(q)return;U.preventDefault(),$(!0)},[q]),b=H((U)=>{if(q)return;U.preventDefault(),$(!0)},[q]),c=H((U)=>{if(U.preventDefault(),U.currentTarget.contains(U.relatedTarget))return;$(!1)},[]),u=H((U)=>{if(U.preventDefault(),$(!1),q)return;if(U.dataTransfer.files.length>0)X(U.dataTransfer.files)},[X,q]);return Y("div",{"data-slot":"file-upload-root",className:L("flex flex-col gap-3"),children:[Y("div",{"data-slot":"file-upload",role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,"data-disabled":q?"":void 0,"data-dragging":j?"":void 0,className:L(h(),F),onClick:B,onKeyDown:x,onDragEnter:b,onDragOver:o,onDragLeave:c,onDrop:u,...C,children:[G("input",{ref:z,"data-slot":"file-upload-input",type:"file",className:"sr-only",accept:P,multiple:M,disabled:q,onChange:(U)=>{if(U.target.files&&U.target.files.length>0)X(U.target.files);U.target.value=""}}),G(S,{icon:r,color:"brand",variant:"light"}),G("div",{"data-slot":"file-upload-text",className:"text-sm text-foreground",children:v??Y(s,{children:[G("span",{className:"font-semibold text-primary",children:"Click to upload"})," ","or drag and drop"]})}),y&&G("div",{"data-slot":"file-upload-hint",className:"text-sm text-muted-foreground",children:y})]}),A.length>0&&G("div",{"data-slot":"file-upload-error",className:"text-sm text-destructive",children:A.length===1?`${A[0]} is too large.`:`${A.length} files are too large.`}),T.length>0&&G("ul",{"data-slot":"file-upload-list",className:"flex flex-col gap-2",children:T.map((U,Z)=>Y("li",{"data-slot":"file-upload-item",className:"flex items-center gap-3 rounded-lg border border-input bg-background p-3",children:[G(V,{icon:n,"data-slot":"file-upload-item-icon",className:"size-5 shrink-0 text-muted-foreground"}),Y("div",{"data-slot":"file-upload-item-info",className:"flex min-w-0 flex-1 flex-col gap-1",children:[Y("div",{className:"flex items-baseline justify-between gap-2",children:[G("span",{className:"truncate text-sm font-medium text-foreground",children:U.name}),G("span",{className:"shrink-0 text-sm text-muted-foreground tabular-nums",children:i(U.size)})]}),R?.[U.name]!==void 0&&G(k,{size:"sm",value:R[U.name]??null})]}),G(I,{type:"button",variant:"ghost",size:"icon-sm",disabled:q,"aria-label":`Remove ${U.name}`,onClick:()=>g(Z),children:G(V,{icon:t})})]},`${U.name}-${U.size}-${Z}`))})]})}export{h as fileUploadVariants,l as FileUpload};export{h as cc,l as dc};
@@ -8,19 +8,19 @@ export interface FooterProps extends React.ComponentProps<"footer"> {
8
8
  * reads as inset text on whatever surface it sits on rather than another
9
9
  * bordered block.
10
10
  */
11
- export declare function Footer({ className, ...props }: FooterProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Footer({ className, ...props }: FooterProps): React.JSX.Element;
12
12
  export interface FooterRowProps extends React.ComponentProps<"div"> {
13
13
  }
14
- export declare function FooterRow({ className, ...props }: FooterRowProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function FooterRow({ className, ...props }: FooterRowProps): React.JSX.Element;
15
15
  export interface FooterMetaProps extends React.ComponentProps<"div"> {
16
16
  }
17
17
  /** Left-aligned meta text — copyright, build version, and the like. */
18
- export declare function FooterMeta({ className, ...props }: FooterMetaProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function FooterMeta({ className, ...props }: FooterMetaProps): React.JSX.Element;
19
19
  export interface FooterNavProps extends React.ComponentProps<"nav"> {
20
20
  }
21
21
  /** Right-aligned link list; leaves are FooterLink. */
22
- export declare function FooterNav({ className, "aria-label": ariaLabel, ...props }: FooterNavProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function FooterNav({ className, "aria-label": ariaLabel, ...props }: FooterNavProps): React.JSX.Element;
23
23
  export interface FooterLinkProps extends React.ComponentProps<"a"> {
24
24
  }
25
- export declare function FooterLink({ className, ...props }: FooterLinkProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function FooterLink({ className, ...props }: FooterLinkProps): React.JSX.Element;
26
26
  //# sourceMappingURL=Footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;CAAG;AAEtE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAQ1D;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEtE,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAWhE;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEvE,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAWlE;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEtE,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,EACzB,SAAS,EACT,YAAY,EAAE,SAAoB,EAClC,GAAG,KAAK,EACR,EAAE,cAAc,2CAShB;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC;CAAG;AAErE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAWlE"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;CAAG;AAEtE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,qBAQ1D;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEtE,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,qBAWhE;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEvE,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAWlE;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;CAAG;AAEtE,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,EACzB,SAAS,EACT,YAAY,EAAE,SAAoB,EAClC,GAAG,KAAK,EACR,EAAE,cAAc,qBAShB;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC;CAAG;AAErE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAWlE"}
@@ -1 +1 @@
1
- import{Sd as F}from"../../lib/utils.js";import{jsx as P}from"react/jsx-runtime";function f({className:o,...t}){return P("footer",{"data-slot":"footer",className:F("select-none",o),...t})}function w({className:o,...t}){return P("div",{"data-slot":"footer-row",className:F("flex flex-wrap items-center justify-between gap-2",o),...t})}function M({className:o,...t}){return P("div",{"data-slot":"footer-meta",className:F("flex flex-wrap items-center gap-3 text-xs text-quaternary",o),...t})}function v({className:o,"aria-label":t="Footer",...r}){return P("nav",{"data-slot":"footer-nav","aria-label":t,className:F("flex flex-wrap gap-4",o),...r})}function y({className:o,...t}){return P("a",{"data-slot":"footer-link",className:F("text-xs text-quaternary transition-colors hover:text-tertiary",o),...t})}export{w as FooterRow,v as FooterNav,M as FooterMeta,y as FooterLink,f as Footer};export{f as _b,w as $b,M as ac,v as bc,y as cc};
1
+ import{te as F}from"../../lib/utils.js";import{jsx as P}from"react/jsx-runtime";function f({className:o,...t}){return P("footer",{"data-slot":"footer",className:F("select-none",o),...t})}function w({className:o,...t}){return P("div",{"data-slot":"footer-row",className:F("flex flex-wrap items-center justify-between gap-2",o),...t})}function M({className:o,...t}){return P("div",{"data-slot":"footer-meta",className:F("flex flex-wrap items-center gap-3 text-xs text-quaternary",o),...t})}function v({className:o,"aria-label":t="Footer",...r}){return P("nav",{"data-slot":"footer-nav","aria-label":t,className:F("flex flex-wrap gap-4",o),...r})}function y({className:o,...t}){return P("a",{"data-slot":"footer-link",className:F("text-xs text-quaternary transition-colors hover:text-tertiary",o),...t})}export{w as FooterRow,v as FooterNav,M as FooterMeta,y as FooterLink,f as Footer};export{f as jc,w as kc,M as lc,v as mc,y as nc};
@@ -21,6 +21,6 @@ export interface FormProps<FormValues extends Record<string, any> = Record<strin
21
21
  * </Form>
22
22
  * ```
23
23
  */
24
- declare function Form<FormValues extends Record<string, any> = Record<string, any>>({ className, ...props }: FormProps<FormValues>): import("react/jsx-runtime").JSX.Element;
24
+ declare function Form<FormValues extends Record<string, any> = Record<string, any>>({ className, ...props }: FormProps<FormValues>): import("react").JSX.Element;
25
25
  export { Form };
26
26
  //# sourceMappingURL=Form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,WAAW,SAAS,CAEzB,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC3D,SAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,IAAI,CAEZ,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3D,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,2CAa/C;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,WAAW,SAAS,CAEzB,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC3D,SAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,IAAI,CAEZ,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3D,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,+BAa/C;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -46,6 +46,6 @@ export interface FormFieldProps extends Omit<React.ComponentPropsWithoutRef<type
46
46
  * </FormField>
47
47
  * ```
48
48
  */
49
- declare function FormField({ name, label, description, error, required, orientation, className, children, ...props }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
49
+ declare function FormField({ name, label, description, error, required, orientation, className, children, ...props }: FormFieldProps): import("react").JSX.Element;
50
50
  export { FormField };
51
51
  //# sourceMappingURL=FormField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,MAAM,WAAW,cAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EACrD,WAAW,GAAG,QAAQ,GAAG,aAAa,CACtC;IACD,oFAAoF;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,SAAS,CAAC,EAClB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,EACR,WAAwB,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,cAAc,2CAyDhB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,MAAM,WAAW,cAChB,SAAQ,IAAI,CACX,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EACrD,WAAW,GAAG,QAAQ,GAAG,aAAa,CACtC;IACD,oFAAoF;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,SAAS,CAAC,EAClB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,EACR,WAAwB,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,cAAc,+BAyDhB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -18,7 +18,7 @@ export interface FormSectionProps extends Omit<ComponentPropsWithoutRef<"section
18
18
  * automatically when sections are direct children. In a custom container,
19
19
  * stack sections on a gap-10 column for the same rhythm.
20
20
  */
21
- export declare function FormSection({ title, description, className, children, ...props }: FormSectionProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function FormSection({ title, description, className, children, ...props }: FormSectionProps): import("react").JSX.Element;
22
22
  declare const formRowColumns: {
23
23
  readonly 2: "sm:grid-cols-2";
24
24
  readonly 3: "sm:grid-cols-3";
@@ -35,7 +35,7 @@ export interface FormRowProps extends Omit<ComponentPropsWithoutRef<"div">, "cla
35
35
  * (`columns={3}` + `className="sm:col-span-2"` on the field = a 2/3-width
36
36
  * field); extra children wrap onto new rows on the same rhythm.
37
37
  */
38
- export declare function FormRow({ columns, className, ...props }: FormRowProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare function FormRow({ columns, className, ...props }: FormRowProps): import("react").JSX.Element;
39
39
  declare const formActionsVariants: (props?: ({
40
40
  justify?: "center" | "end" | "start" | "between" | null | undefined;
41
41
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -48,6 +48,6 @@ export interface FormActionsProps extends Omit<ComponentPropsWithoutRef<"div">,
48
48
  * rhythm with the same full-width rule the sections divide with; after a
49
49
  * plain field stack it renders bare.
50
50
  */
51
- export declare function FormActions({ justify, className, ...props }: FormActionsProps): import("react/jsx-runtime").JSX.Element;
51
+ export declare function FormActions({ justify, className, ...props }: FormActionsProps): import("react").JSX.Element;
52
52
  export {};
53
53
  //# sourceMappingURL=FormLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBjE,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACxE,kEAAkE;IAClE,KAAK,EAAE,SAAS,CAAC;IACjB,wCAAwC;IACxC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,2CAsBlB;AAED,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC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AC;AAEX,MAAM,WAAW,YAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC1D,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAYzE;AAED,QAAA,MAAM,mBAAmB;;8EAYvB,CAAC;AAEH,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,gBAAgB,+BAYlB"}
@@ -1 +1 @@
1
- import{jc as Z,qc as _,sc as $,uc as k}from"../Field/index.js";import{Sd as z}from"../../lib/utils.js";import{Form as V}from"@base-ui/react/form";import{jsx as D}from"react/jsx-runtime";function C({className:R,...P}){return D(V,{"data-slot":"form",className:z("flex w-full flex-col gap-6 has-[>[data-slot=form-section]]:gap-10",R),...P})}import{Field as X}from"@base-ui/react/field";import{jsx as A,jsxs as G,Fragment as Y}from"react/jsx-runtime";function E({name:R,label:P,description:S,error:J,required:K,orientation:L="vertical",className:T,children:Q,...U}){let M=P&&G(_,{children:[P,K&&A("span",{className:"text-destructive",children:" *"})]}),O=S&&A($,{children:S}),W=J?A(k,{match:!0,className:"text-sm text-destructive",children:J}):A(X.Error,{"data-slot":"field-error",className:"text-sm text-destructive"});return A(X.Root,{name:R,"data-slot":"form-field",className:z("group/field flex w-full flex-col gap-1.5",T),...U,children:A(Z,{children:L==="horizontal"?G(Y,{children:[G("div",{className:"flex items-start gap-3",children:[Q,(M||O)&&G("div",{className:"flex flex-1 flex-col gap-1 leading-snug",children:[M,O]})]}),W]}):G(Y,{children:[M,Q,O,W]})})})}import{cva as F}from"class-variance-authority";import{jsx as H,jsxs as I}from"react/jsx-runtime";function q({title:R,description:P,className:S,children:J,...K}){return I("section",{"data-slot":"form-section",className:z("flex flex-col gap-8","[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-10",S),...K,children:[I("div",{className:"flex flex-col gap-1",children:[H("h3",{className:"text-base font-semibold text-foreground",children:R}),P&&H("p",{className:"max-w-2xl text-sm text-muted-foreground",children:P})]}),H("div",{className:"flex flex-col gap-6",children:J})]})}var w={2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4"};function B({columns:R=2,className:P,...S}){return H("div",{"data-slot":"form-row",className:z("grid grid-cols-1 gap-6",w[R],P),...S})}var y=F("flex items-center gap-3",{variants:{justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{justify:"end"}});function g({justify:R,className:P,...S}){return H("div",{"data-slot":"form-actions",className:z(y({justify:R}),"[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-6",P),...S})}export{q as FormSection,B as FormRow,E as FormField,g as FormActions,C as Form};export{C as dc,E as ec,q as fc,B as gc,g as hc};
1
+ import{Bc as _,Dc as $,Fc as k,uc as Z}from"../Field/index.js";import{te as z}from"../../lib/utils.js";import{Form as V}from"@base-ui/react/form";import{jsx as D}from"react/jsx-runtime";function C({className:R,...P}){return D(V,{"data-slot":"form",className:z("flex w-full flex-col gap-6 has-[>[data-slot=form-section]]:gap-10",R),...P})}import{Field as X}from"@base-ui/react/field";import{jsx as A,jsxs as G,Fragment as Y}from"react/jsx-runtime";function E({name:R,label:P,description:S,error:J,required:K,orientation:L="vertical",className:T,children:Q,...U}){let M=P&&G(_,{children:[P,K&&A("span",{className:"text-destructive",children:" *"})]}),O=S&&A($,{children:S}),W=J?A(k,{match:!0,className:"text-sm text-destructive",children:J}):A(X.Error,{"data-slot":"field-error",className:"text-sm text-destructive"});return A(X.Root,{name:R,"data-slot":"form-field",className:z("group/field flex w-full flex-col gap-1.5",T),...U,children:A(Z,{children:L==="horizontal"?G(Y,{children:[G("div",{className:"flex items-start gap-3",children:[Q,(M||O)&&G("div",{className:"flex flex-1 flex-col gap-1 leading-snug",children:[M,O]})]}),W]}):G(Y,{children:[M,Q,O,W]})})})}import{cva as F}from"class-variance-authority";import{jsx as H,jsxs as I}from"react/jsx-runtime";function q({title:R,description:P,className:S,children:J,...K}){return I("section",{"data-slot":"form-section",className:z("flex flex-col gap-8","[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-10",S),...K,children:[I("div",{className:"flex flex-col gap-1",children:[H("h3",{className:"text-base font-semibold text-foreground",children:R}),P&&H("p",{className:"max-w-2xl text-sm text-muted-foreground",children:P})]}),H("div",{className:"flex flex-col gap-6",children:J})]})}var w={2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4"};function B({columns:R=2,className:P,...S}){return H("div",{"data-slot":"form-row",className:z("grid grid-cols-1 gap-6",w[R],P),...S})}var y=F("flex items-center gap-3",{variants:{justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{justify:"end"}});function g({justify:R,className:P,...S}){return H("div",{"data-slot":"form-actions",className:z(y({justify:R}),"[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-6",P),...S})}export{q as FormSection,B as FormRow,E as FormField,g as FormActions,C as Form};export{C as oc,E as pc,q as qc,B as rc,g as sc};
@@ -30,5 +30,5 @@ export interface IconProps extends Omit<FontAwesomeIconProps, "icon"> {
30
30
  * `flex items-center justify-center` box (flex ignores vertical-align), or give
31
31
  * the wrapper those flex classes.
32
32
  */
33
- export declare function Icon({ icon, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare function Icon({ icon, ...props }: IconProps): import("react").JSX.Element;
34
34
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACpE,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEjD"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACpE,IAAI,EAAE,cAAc,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAEjD"}
@@ -1 +1 @@
1
- import{Rd as o}from"../../index-rypjyrpn.js";export{o as Icon};
1
+ import{se as o}from"../../index-7abyvs9n.js";export{o as Icon};
@@ -21,7 +21,7 @@ export interface ImperativeDialogProviderProps {
21
21
  /**
22
22
  * A hook-based alternative to browser alert() and confirm() dialogs. Wrap your app with ImperativeDialogProvider and use useAlert() and useConfirm() hooks.
23
23
  */
24
- export declare function ImperativeDialogProvider({ children, }: ImperativeDialogProviderProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function ImperativeDialogProvider({ children, }: ImperativeDialogProviderProps): import("react").JSX.Element;
25
25
  export declare function useImperativeDialog(): ImperativeDialogContextValue;
26
26
  export declare function useAlert(): (options: AlertOptions | string) => Promise<void>;
27
27
  export declare function useConfirm(): (options: ConfirmOptions | string) => Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"ImperativeDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ImperativeDialog/ImperativeDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAIf,UAAU,YAAY;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,cAAc;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC;AAQD,UAAU,4BAA4B;IACrC,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAChE;AAKD,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACxC,QAAQ,GACR,EAAE,6BAA6B,2CA8F/B;AAED,wBAAgB,mBAAmB,IAAI,4BAA4B,CAQlE;AAED,wBAAgB,QAAQ,cA1HN,YAAY,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CA6HxD;AAED,wBAAgB,UAAU,cA9HN,cAAc,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAiI/D"}
1
+ {"version":3,"file":"ImperativeDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ImperativeDialog/ImperativeDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,SAAS,EAKd,MAAM,OAAO,CAAC;AAIf,UAAU,YAAY;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,cAAc;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC;AAQD,UAAU,4BAA4B;IACrC,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAChE;AAKD,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACxC,QAAQ,GACR,EAAE,6BAA6B,+BA8F/B;AAED,wBAAgB,mBAAmB,IAAI,4BAA4B,CAQlE;AAED,wBAAgB,QAAQ,cA1HN,YAAY,GAAG,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CA6HxD;AAED,wBAAgB,UAAU,cA9HN,cAAc,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAiI/D"}
@@ -1 +1 @@
1
- import"../Button/index.js";import{Qc as T}from"../../index-1cb5sns5.js";import{Ed as y}from"../AlertDialog/index.js";import"../../lib/utils.js";import{createContext as z,useCallback as Q,useContext as I,useRef as S,useState as _}from"react";import{jsx as E,jsxs as K,Fragment as k}from"react/jsx-runtime";var $=z(null);function B({children:q}){let[J,V]=_(null),[F,L]=_(!1),X=S(null),W=Q((P)=>{let N=typeof P==="string"?{title:P}:P;return new Promise((H)=>{X.current=()=>H(),V({type:"alert",options:N,resolve:()=>H()}),L(!0)})},[]),w=Q((P)=>{let N=typeof P==="string"?{title:P}:P;return new Promise((H)=>{X.current=H,V({type:"confirm",options:N,resolve:H}),L(!0)})},[]),M=Q((P)=>{J?.resolve(P),L(!1)},[J]),Y=J?.type==="confirm",G=J?.options,Z=G;return K($.Provider,{value:{alert:W,confirm:w},children:[q,E(y.Root,{open:F,onOpenChange:(P)=>{if(!P)M(!1)},children:K(y.Portal,{children:[E(y.Backdrop,{}),E(y.Popup,{children:G&&K(k,{children:[E(y.Title,{children:G.title}),G.description&&E(y.Description,{children:G.description}),K(y.Actions,{children:[Y&&E(T,{variant:"ghost",onClick:()=>M(!1),children:Z?.cancelLabel??"Cancel"}),E(T,{variant:Y?Z?.variant??"primary":"primary",onClick:()=>M(!0),children:G.confirmLabel??"OK"})]})]})})]})})]})}function U(){let q=I($);if(!q)throw Error("useImperativeDialog must be used within an ImperativeDialogProvider");return q}function R(){let{alert:q}=U();return q}function b(){let{confirm:q}=U();return q}export{U as useImperativeDialog,b as useConfirm,R as useAlert,B as ImperativeDialogProvider};export{B as db,U as eb,R as fb,b as gb};
1
+ import"../Button/index.js";import{ad as T}from"../../index-8b3c6nnb.js";import"../../index-st80n69g.js";import{fe as y}from"../AlertDialog/index.js";import"../../lib/utils.js";import{createContext as z,useCallback as Q,useContext as I,useRef as S,useState as _}from"react";import{jsx as E,jsxs as K,Fragment as k}from"react/jsx-runtime";var $=z(null);function B({children:q}){let[J,V]=_(null),[F,L]=_(!1),X=S(null),W=Q((P)=>{let N=typeof P==="string"?{title:P}:P;return new Promise((H)=>{X.current=()=>H(),V({type:"alert",options:N,resolve:()=>H()}),L(!0)})},[]),w=Q((P)=>{let N=typeof P==="string"?{title:P}:P;return new Promise((H)=>{X.current=H,V({type:"confirm",options:N,resolve:H}),L(!0)})},[]),M=Q((P)=>{J?.resolve(P),L(!1)},[J]),Y=J?.type==="confirm",G=J?.options,Z=G;return K($.Provider,{value:{alert:W,confirm:w},children:[q,E(y.Root,{open:F,onOpenChange:(P)=>{if(!P)M(!1)},children:K(y.Portal,{children:[E(y.Backdrop,{}),E(y.Popup,{children:G&&K(k,{children:[E(y.Title,{children:G.title}),G.description&&E(y.Description,{children:G.description}),K(y.Actions,{children:[Y&&E(T,{variant:"ghost",onClick:()=>M(!1),children:Z?.cancelLabel??"Cancel"}),E(T,{variant:Y?Z?.variant??"primary":"primary",onClick:()=>M(!0),children:G.confirmLabel??"OK"})]})]})})]})})]})}function U(){let q=I($);if(!q)throw Error("useImperativeDialog must be used within an ImperativeDialogProvider");return q}function R(){let{alert:q}=U();return q}function b(){let{confirm:q}=U();return q}export{U as useImperativeDialog,b as useConfirm,R as useAlert,B as ImperativeDialogProvider};export{B as qb,U as rb,R as sb,b as tb};
@@ -17,6 +17,6 @@ export interface InlineAlertProps extends Omit<ComponentPropsWithoutRef<"div">,
17
17
  * SettingsContainer or SettingsSection. Transient feedback should use Toast
18
18
  * instead.
19
19
  */
20
- export declare function InlineAlert({ variant, className, children, ...props }: InlineAlertProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function InlineAlert({ variant, className, children, ...props }: InlineAlertProps): import("react").JSX.Element;
21
21
  export { inlineAlertVariants };
22
22
  //# sourceMappingURL=InlineAlert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/components/InlineAlert/InlineAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,QAAA,MAAM,mBAAmB;;8EAqBxB,CAAC;AASF,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzC,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,2CAWlB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/components/InlineAlert/InlineAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,QAAA,MAAM,mBAAmB;;8EAqBxB,CAAC;AASF,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EACzD,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzC,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,+BAWlB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{Rd as y}from"../../index-rypjyrpn.js";import{Sd as q}from"../../lib/utils.js";import{faCircleCheck as G,faCircleExclamation as H,faCircleInfo as J,faTriangleExclamation as K}from"@fortawesome/pro-solid-svg-icons";import{cva as L}from"class-variance-authority";import{jsx as P,jsxs as Q}from"react/jsx-runtime";var z=L(["flex items-start gap-2.5 rounded-lg border px-3 py-2.5 text-sm","[&_[data-slot=icon]]:mt-0.5 [&_[data-slot=icon]]:shrink-0"],{variants:{variant:{error:"border-utility-error-200 bg-utility-error-50 text-error-primary [&_[data-slot=icon]]:text-utility-error-600",warning:"border-utility-warning-200 bg-utility-warning-50 text-warning-primary [&_[data-slot=icon]]:text-utility-warning-600",success:"border-utility-success-200 bg-utility-success-50 text-success-primary [&_[data-slot=icon]]:text-utility-success-600",info:"border-utility-blue-200 bg-utility-blue-50 text-secondary [&_[data-slot=icon]]:text-utility-blue-600"}},defaultVariants:{variant:"info"}}),M={error:H,warning:K,success:G,info:J};function O({variant:A,className:B,children:D,...F}){return Q("div",{"data-slot":"inline-alert",className:q(z({variant:A}),B),...F,children:[P(y,{icon:M[A??"info"]}),P("div",{className:"min-w-0",children:D})]})}export{z as inlineAlertVariants,O as InlineAlert};export{z as hb,O as ib};
1
+ import{se as y}from"../../index-7abyvs9n.js";import{te as q}from"../../lib/utils.js";import{faCircleCheck as G,faCircleExclamation as H,faCircleInfo as J,faTriangleExclamation as K}from"@fortawesome/pro-solid-svg-icons";import{cva as L}from"class-variance-authority";import{jsx as P,jsxs as Q}from"react/jsx-runtime";var z=L(["flex items-start gap-2.5 rounded-lg border px-3 py-2.5 text-sm","[&_[data-slot=icon]]:mt-0.5 [&_[data-slot=icon]]:shrink-0"],{variants:{variant:{error:"border-utility-error-200 bg-utility-error-50 text-error-primary [&_[data-slot=icon]]:text-utility-error-600",warning:"border-utility-warning-200 bg-utility-warning-50 text-warning-primary [&_[data-slot=icon]]:text-utility-warning-600",success:"border-utility-success-200 bg-utility-success-50 text-success-primary [&_[data-slot=icon]]:text-utility-success-600",info:"border-utility-blue-200 bg-utility-blue-50 text-secondary [&_[data-slot=icon]]:text-utility-blue-600"}},defaultVariants:{variant:"info"}}),M={error:H,warning:K,success:G,info:J};function O({variant:A,className:B,children:D,...F}){return Q("div",{"data-slot":"inline-alert",className:q(z({variant:A}),B),...F,children:[P(y,{icon:M[A??"info"]}),P("div",{className:"min-w-0",children:D})]})}export{z as inlineAlertVariants,O as InlineAlert};export{z as ub,O as vb};
@@ -17,6 +17,11 @@ export interface InputProps extends Omit<React.ComponentPropsWithoutRef<typeof B
17
17
  }
18
18
  /**
19
19
  * A text input component with label and error state support.
20
+ *
21
+ * Size follows the shared control-size contract (h-8 / h-9 / h-10,
22
+ * text-sm/font-medium) so inputs align with Button, Select, Combobox, and
23
+ * NumberField in a row. Leading/trailing icons use the same optical edge
24
+ * inset as Select's chevron.
20
25
  */
21
26
  export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
22
27
  export { inputVariants, inputWrapperVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAInD,QAAA,MAAM,aAAa;;8EAclB,CAAC;AAEF,QAAA,MAAM,oBAAoB;;8EAczB,CAAC;AAEF,MAAM,WAAW,UAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAAE,MAAM,CAAC,EACrE,YAAY,CAAC,OAAO,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,yGAoGjB,CAAC;AAIF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWnD,QAAA,MAAM,aAAa;;8EAUlB,CAAC;AAMF,QAAA,MAAM,oBAAoB;;8EAUzB,CAAC;AAEF,MAAM,WAAW,UAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAAE,MAAM,CAAC,EACrE,YAAY,CAAC,OAAO,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,yGA4HjB,CAAC;AAIF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{ic as X}from"../Field/index.js";import{Sd as L}from"../../lib/utils.js";import{Field as K}from"@base-ui/react/field";import{Input as m}from"@base-ui/react/input";import{cva as Y}from"class-variance-authority";import{forwardRef as z}from"react";import{jsx as k,jsxs as U}from"react/jsx-runtime";var Z=Y("file:text-foreground placeholder:text-muted-foreground/60 selection:bg-primary selection:text-primary-foreground w-full min-w-0 bg-background text-base outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium md:text-sm",{variants:{size:{sm:"h-8 py-1.5 text-xs",md:"h-9 py-1",lg:"h-10 py-2 text-base md:text-sm"}},defaultVariants:{size:"md"}}),_=Y("border-input flex w-full items-center rounded-lg border bg-background shadow-xs transition-[color,box-shadow]",{variants:{size:{sm:"h-8 [&_[data-slot=icon]]:size-3 text-xs",md:"h-9 [&_[data-slot=icon]]:size-3.5 text-sm",lg:"h-10 [&_[data-slot=icon]]:size-4 text-base md:text-sm"}},defaultVariants:{size:"md"}}),$=z(({label:G,error:M,leading:q,trailing:y,addonBefore:H,addonAfter:J,className:C,id:R,value:O,defaultValue:W,size:P,...w},E)=>{let N=X(),Q=R||G?.toLowerCase().replace(/\s+/g,"-"),D=q||y||H||J,I=O!==void 0?{value:O}:{defaultValue:W??""},S=k(m,{ref:E,id:Q,"data-slot":"input",className:L(Z({size:P}),D?q?"pl-2":"pl-3":"px-3",D?y?"pr-2":"pr-3":void 0,!D&&["rounded-lg border border-input shadow-xs transition-[color,box-shadow]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[invalid]:ring-destructive/20 data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],C),...I,...w}),T=D?U("div",{className:L(_({size:P}),"overflow-hidden","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","has-[[data-disabled]]:pointer-events-none has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50","has-[[data-invalid]]:ring-destructive/20 has-[[data-invalid]]:border-destructive","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground/60"),children:[H&&k("span",{className:"flex items-center self-stretch border-r border-input bg-muted px-3 text-muted-foreground",children:H}),q&&k("span",{className:"flex items-center pl-3",children:q}),S,y&&k("span",{className:"flex items-center pr-3",children:y}),J&&k("span",{className:"flex items-center self-stretch border-l border-input bg-muted px-3 text-muted-foreground",children:J})]}):S;if(N)return T;return U(K.Root,{invalid:M?!0:void 0,className:"flex flex-col gap-1",children:[G&&k(K.Label,{htmlFor:Q,className:"text-sm font-medium text-foreground",children:G}),T,k(K.Error,{className:"text-sm text-destructive",children:M})]})});$.displayName="Input";export{_ as inputWrapperVariants,Z as inputVariants,$ as Input};export{$ as jb};
1
+ import{tc as V}from"../Field/index.js";import{Cd as S,Fd as h,Hd as Z,Md as L}from"../../index-st80n69g.js";import{te as q}from"../../lib/utils.js";import{Field as $}from"@base-ui/react/field";import{Input as b}from"@base-ui/react/input";import{cva as w}from"class-variance-authority";import{forwardRef as I}from"react";import{jsx as k,jsxs as m}from"react/jsx-runtime";var F=w("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground w-full min-w-0 bg-background outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",{variants:{size:h},defaultVariants:{size:"md"}}),N=w(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground h-full min-w-0 flex-1 bg-transparent outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium ${S}`),R=w("border-input flex w-full items-center rounded-lg border bg-background shadow-xs transition-[color,box-shadow]",{variants:{size:L},defaultVariants:{size:"md"}}),B=I(({label:K,error:D,leading:y,trailing:J,addonBefore:M,addonAfter:Q,className:x,id:z,value:P,defaultValue:A,size:Y,...C},j)=>{let v=V(),U=z||K?.toLowerCase().replace(/\s+/g,"-"),W=y||J||M||Q,X=Y??"md",E=P!==void 0?{value:P}:{defaultValue:A??""},G=k(b,{ref:j,id:U,"data-slot":"input",className:q(W?[N(),y?"pl-2":"pl-3",J?"pr-2":"pr-3"]:[F({size:Y}),"rounded-lg border border-input shadow-xs transition-[color,box-shadow]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[invalid]:ring-destructive/20 data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],x),...E,...C}),H=W?m("div",{"data-slot":"input-wrapper",className:q(R({size:Y}),"overflow-hidden","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","has-[[data-disabled]]:pointer-events-none has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50","has-[[data-invalid]]:ring-destructive/20 has-[[data-invalid]]:border-destructive","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground/60"),children:[M&&k("span",{className:"flex items-center self-stretch border-r border-input bg-muted px-3 text-muted-foreground",children:M}),y&&k("span",{className:q("flex items-center",Z[X].leading),children:y}),G,J&&k("span",{className:q("flex items-center",Z[X].trailing),children:J}),Q&&k("span",{className:"flex items-center self-stretch border-l border-input bg-muted px-3 text-muted-foreground",children:Q})]}):G;if(v)return H;return m($.Root,{invalid:D?!0:void 0,className:"flex flex-col gap-1",children:[K&&k($.Label,{htmlFor:U,className:"text-sm font-medium text-foreground",children:K}),H,k($.Error,{className:"text-sm text-destructive",children:D})]})});B.displayName="Input";export{R as inputWrapperVariants,F as inputVariants,B as Input};export{B as wb};
@@ -8,25 +8,30 @@ export interface InputGroupProps extends Omit<React.ComponentProps<"div">, "size
8
8
  /**
9
9
  * A compound component for composing inputs with addons such as icons, buttons, text, and keyboard shortcuts.
10
10
  *
11
- * InputGroup's sm/md/lg sizes match Input/Select heights (h-8/h-9/h-10) so groups align with form controls in a row. InputGroupButton uses its own compact size scale (xs/sm/icon-xs/icon-sm), tuned to sit inside the field as an inset chip rather than a slab filling it edge-to-edge. Disabling the inner control also propagates the disabled visual state to the whole group.
11
+ * InputGroup's sm/md/lg sizes follow the shared control-size contract
12
+ * (h-8 / h-9 / h-10, text-sm/font-medium) so groups align with Button, Input,
13
+ * and Select in a row. Decorative icons use the same optical edge inset as
14
+ * Input/Select. InputGroupButton icon sizes nest into the field like Combobox
15
+ * triggers (`p-0.5`); labeled chips stay compact (xs/sm). Disabling the inner
16
+ * control also propagates the disabled visual state to the whole group.
12
17
  */
13
- declare function InputGroup({ className, size, ...props }: InputGroupProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function InputGroup({ className, size, ...props }: InputGroupProps): import("react").JSX.Element;
14
19
  declare const inputGroupAddonVariants: (props?: ({
15
20
  align?: "inline-end" | "inline-start" | "block-start" | "block-end" | null | undefined;
16
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
22
  export interface InputGroupAddonProps extends React.ComponentProps<"div">, VariantProps<typeof inputGroupAddonVariants> {
18
23
  }
19
- declare function InputGroupAddon({ className, align, ...props }: InputGroupAddonProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function InputGroupAddon({ className, align, ...props }: InputGroupAddonProps): import("react").JSX.Element;
20
25
  declare const inputGroupButtonVariants: (props?: ({
21
26
  size?: "sm" | "xs" | "icon-sm" | "icon-xs" | null | undefined;
22
27
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
28
  export interface InputGroupButtonProps extends Omit<ButtonProps, "type" | "size">, VariantProps<typeof inputGroupButtonVariants> {
24
29
  type?: "button" | "submit" | "reset";
25
30
  }
26
- declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): import("react/jsx-runtime").JSX.Element;
31
+ declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): import("react").JSX.Element;
27
32
  export interface InputGroupTextProps extends React.ComponentProps<"span"> {
28
33
  }
29
- declare function InputGroupText({ className, ...props }: InputGroupTextProps): import("react/jsx-runtime").JSX.Element;
34
+ declare function InputGroupText({ className, ...props }: InputGroupTextProps): import("react").JSX.Element;
30
35
  export interface InputGroupInputProps extends React.ComponentPropsWithoutRef<"input"> {
31
36
  }
32
37
  declare const InputGroupInput: import("react").ForwardRefExoticComponent<InputGroupInputProps & import("react").RefAttributes<HTMLInputElement>>;