@storepass/components 0.4.0 → 0.6.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 (205) hide show
  1. package/CHANGELOG.md +43 -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/Drawer/Drawer.d.ts +65 -0
  51. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  52. package/dist/components/Drawer/index.d.ts +2 -0
  53. package/dist/components/Drawer/index.d.ts.map +1 -0
  54. package/dist/components/Drawer/index.js +1 -0
  55. package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -12
  56. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  57. package/dist/components/DropdownMenu/index.js +1 -1
  58. package/dist/components/FeaturedIcon/FeaturedIcon.d.ts +3 -3
  59. package/dist/components/FeaturedIcon/FeaturedIcon.d.ts.map +1 -1
  60. package/dist/components/FeaturedIcon/index.js +1 -1
  61. package/dist/components/Field/Field.d.ts +11 -11
  62. package/dist/components/Field/Field.d.ts.map +1 -1
  63. package/dist/components/Field/index.js +1 -1
  64. package/dist/components/FileUpload/FileUpload.d.ts +1 -1
  65. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  66. package/dist/components/FileUpload/index.js +1 -1
  67. package/dist/components/Footer/Footer.d.ts +5 -5
  68. package/dist/components/Footer/Footer.d.ts.map +1 -1
  69. package/dist/components/Footer/index.js +1 -1
  70. package/dist/components/Form/Form.d.ts +1 -1
  71. package/dist/components/Form/Form.d.ts.map +1 -1
  72. package/dist/components/Form/FormField.d.ts +1 -1
  73. package/dist/components/Form/FormField.d.ts.map +1 -1
  74. package/dist/components/Form/FormLayout.d.ts +3 -3
  75. package/dist/components/Form/FormLayout.d.ts.map +1 -1
  76. package/dist/components/Form/index.js +1 -1
  77. package/dist/components/Icon/Icon.d.ts +1 -1
  78. package/dist/components/Icon/Icon.d.ts.map +1 -1
  79. package/dist/components/Icon/index.js +1 -1
  80. package/dist/components/ImperativeDialog/ImperativeDialog.d.ts +1 -1
  81. package/dist/components/ImperativeDialog/ImperativeDialog.d.ts.map +1 -1
  82. package/dist/components/ImperativeDialog/index.js +1 -1
  83. package/dist/components/InlineAlert/InlineAlert.d.ts +1 -1
  84. package/dist/components/InlineAlert/InlineAlert.d.ts.map +1 -1
  85. package/dist/components/InlineAlert/index.js +1 -1
  86. package/dist/components/Input/Input.d.ts +5 -0
  87. package/dist/components/Input/Input.d.ts.map +1 -1
  88. package/dist/components/Input/index.js +1 -1
  89. package/dist/components/InputGroup/InputGroup.d.ts +10 -5
  90. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  91. package/dist/components/InputGroup/index.js +1 -1
  92. package/dist/components/Item/Item.d.ts +9 -9
  93. package/dist/components/Item/Item.d.ts.map +1 -1
  94. package/dist/components/Item/index.js +1 -1
  95. package/dist/components/Kbd/Kbd.d.ts +2 -2
  96. package/dist/components/Kbd/Kbd.d.ts.map +1 -1
  97. package/dist/components/Kbd/index.js +1 -1
  98. package/dist/components/Label/Label.d.ts +1 -1
  99. package/dist/components/Label/Label.d.ts.map +1 -1
  100. package/dist/components/Label/index.js +1 -1
  101. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  102. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  103. package/dist/components/LoadingIndicator/index.js +1 -1
  104. package/dist/components/MoneyAmount/MoneyAmount.d.ts +34 -0
  105. package/dist/components/MoneyAmount/MoneyAmount.d.ts.map +1 -0
  106. package/dist/components/MoneyAmount/formatMoney.d.ts +43 -0
  107. package/dist/components/MoneyAmount/formatMoney.d.ts.map +1 -0
  108. package/dist/components/MoneyAmount/index.d.ts +5 -0
  109. package/dist/components/MoneyAmount/index.d.ts.map +1 -0
  110. package/dist/components/MoneyAmount/index.js +1 -0
  111. package/dist/components/Navbar/Navbar.d.ts +10 -10
  112. package/dist/components/Navbar/Navbar.d.ts.map +1 -1
  113. package/dist/components/Navbar/index.js +1 -1
  114. package/dist/components/NumberField/NumberField.d.ts +7 -4
  115. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  116. package/dist/components/NumberField/index.js +1 -1
  117. package/dist/components/PageHeading/PageHeading.d.ts +83 -0
  118. package/dist/components/PageHeading/PageHeading.d.ts.map +1 -0
  119. package/dist/components/PageHeading/index.d.ts +3 -0
  120. package/dist/components/PageHeading/index.d.ts.map +1 -0
  121. package/dist/components/PageHeading/index.js +1 -0
  122. package/dist/components/PageLayout/PageLayout.d.ts +29 -0
  123. package/dist/components/PageLayout/PageLayout.d.ts.map +1 -0
  124. package/dist/components/PageLayout/index.d.ts +2 -0
  125. package/dist/components/PageLayout/index.d.ts.map +1 -0
  126. package/dist/components/PageLayout/index.js +1 -0
  127. package/dist/components/Pagination/Pagination.d.ts +7 -7
  128. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  129. package/dist/components/Pagination/index.js +1 -1
  130. package/dist/components/Panel/Panel.d.ts +5 -5
  131. package/dist/components/Panel/Panel.d.ts.map +1 -1
  132. package/dist/components/Panel/index.js +1 -1
  133. package/dist/components/PinInput/PinInput.d.ts +3 -3
  134. package/dist/components/PinInput/PinInput.d.ts.map +1 -1
  135. package/dist/components/PinInput/index.js +1 -1
  136. package/dist/components/Progress/Progress.d.ts +1 -1
  137. package/dist/components/Progress/Progress.d.ts.map +1 -1
  138. package/dist/components/Progress/index.js +1 -1
  139. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  140. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  141. package/dist/components/RadioGroup/index.js +1 -1
  142. package/dist/components/Rating/Rating.d.ts +1 -1
  143. package/dist/components/Rating/Rating.d.ts.map +1 -1
  144. package/dist/components/Rating/index.js +1 -1
  145. package/dist/components/Select/Select.d.ts +5 -1
  146. package/dist/components/Select/Select.d.ts.map +1 -1
  147. package/dist/components/Select/index.js +1 -1
  148. package/dist/components/Settings/Settings.d.ts +26 -36
  149. package/dist/components/Settings/Settings.d.ts.map +1 -1
  150. package/dist/components/Settings/index.d.ts +1 -1
  151. package/dist/components/Settings/index.d.ts.map +1 -1
  152. package/dist/components/Settings/index.js +1 -1
  153. package/dist/components/Sidebar/Sidebar.d.ts +46 -15
  154. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  155. package/dist/components/Sidebar/index.d.ts +2 -2
  156. package/dist/components/Sidebar/index.d.ts.map +1 -1
  157. package/dist/components/Sidebar/index.js +1 -1
  158. package/dist/components/Slider/Slider.d.ts +1 -1
  159. package/dist/components/Slider/Slider.d.ts.map +1 -1
  160. package/dist/components/Slider/index.js +1 -1
  161. package/dist/components/Table/Table.d.ts +8 -8
  162. package/dist/components/Table/Table.d.ts.map +1 -1
  163. package/dist/components/Table/index.js +1 -1
  164. package/dist/components/Tabs/Tabs.d.ts +11 -9
  165. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  166. package/dist/components/Tabs/index.js +1 -1
  167. package/dist/components/Tags/Tags.d.ts +1 -1
  168. package/dist/components/Tags/Tags.d.ts.map +1 -1
  169. package/dist/components/Tags/index.js +1 -1
  170. package/dist/components/Text/Text.d.ts +4 -4
  171. package/dist/components/Text/Text.d.ts.map +1 -1
  172. package/dist/components/Text/index.js +1 -1
  173. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  174. package/dist/components/Textarea/index.js +1 -1
  175. package/dist/components/Toast/Toast.d.ts +2 -2
  176. package/dist/components/Toast/Toast.d.ts.map +1 -1
  177. package/dist/components/Toast/index.js +1 -1
  178. package/dist/components/Toggle/Toggle.d.ts +1 -1
  179. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  180. package/dist/components/Toggle/index.js +1 -1
  181. package/dist/components/Tooltip/Tooltip.d.ts +5 -5
  182. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  183. package/dist/components/Tooltip/index.js +1 -1
  184. package/dist/components/VideoDialog/VideoDialog.d.ts +9 -9
  185. package/dist/components/VideoDialog/VideoDialog.d.ts.map +1 -1
  186. package/dist/components/VideoDialog/index.js +1 -1
  187. package/dist/components/index.d.ts +6 -2
  188. package/dist/components/index.d.ts.map +1 -1
  189. package/dist/index-2nc1awt9.js +2 -0
  190. package/dist/index-9scn04dv.js +2 -0
  191. package/dist/{index-rypjyrpn.js → index-aq782dhn.js} +1 -1
  192. package/dist/index-dsdw1626.js +2 -0
  193. package/dist/index-env8xaka.js +2 -0
  194. package/dist/index-mmas6ncx.js +2 -0
  195. package/dist/{index-btjxn90p.js → index-mq6f0tgx.js} +2 -2
  196. package/dist/{index-8mzg78nw.js → index-nr793zrn.js} +2 -2
  197. package/dist/index.d.ts +1 -0
  198. package/dist/index.d.ts.map +1 -1
  199. package/dist/index.js +1 -1
  200. package/dist/lib/controlSize.d.ts +59 -0
  201. package/dist/lib/controlSize.d.ts.map +1 -0
  202. package/dist/lib/utils.js +1 -1
  203. package/dist/theme.css +211 -147
  204. package/package.json +25 -22
  205. package/dist/index-1cb5sns5.js +0 -2
@@ -0,0 +1,65 @@
1
+ import { Drawer as BaseDrawer } from "@base-ui/react/drawer";
2
+ import { type ComponentProps, type HTMLAttributes } from "react";
3
+ export type DrawerSide = "bottom" | "right" | "left";
4
+ export interface DrawerRootProps extends Omit<BaseDrawer.Root.Props, "swipeDirection"> {
5
+ /** Bottom sheets for quick tasks; side drawers for browsing and commerce. */
6
+ side?: DrawerSide;
7
+ }
8
+ /** A touch-friendly sheet with soft surfaces, swipe dismissal, and persistent actions. */
9
+ declare function DrawerRoot({ side, ...props }: DrawerRootProps): import("react").JSX.Element;
10
+ declare const popupVariants: (props?: ({
11
+ side?: "left" | "right" | "bottom" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ export type DrawerBackdropProps = Omit<ComponentProps<typeof BaseDrawer.Backdrop>, "className"> & {
14
+ className?: string;
15
+ };
16
+ declare function DrawerBackdrop({ className, ...props }: DrawerBackdropProps): import("react").JSX.Element;
17
+ export type DrawerViewportProps = Omit<ComponentProps<typeof BaseDrawer.Viewport>, "className"> & {
18
+ className?: string;
19
+ };
20
+ declare function DrawerViewport({ className, ...props }: DrawerViewportProps): import("react").JSX.Element;
21
+ export type DrawerPopupProps = Omit<ComponentProps<typeof BaseDrawer.Popup>, "className"> & {
22
+ className?: string;
23
+ };
24
+ declare function DrawerPopup({ className, ...props }: DrawerPopupProps): import("react").JSX.Element;
25
+ export type DrawerHandleProps = HTMLAttributes<HTMLDivElement>;
26
+ declare function DrawerHandle({ className, ...props }: DrawerHandleProps): import("react").JSX.Element | null;
27
+ export type DrawerHeaderProps = HTMLAttributes<HTMLDivElement>;
28
+ declare function DrawerHeader({ className, ...props }: DrawerHeaderProps): import("react").JSX.Element;
29
+ export type DrawerTitleProps = Omit<ComponentProps<typeof BaseDrawer.Title>, "className"> & {
30
+ className?: string;
31
+ };
32
+ declare function DrawerTitle({ className, ...props }: DrawerTitleProps): import("react").JSX.Element;
33
+ export type DrawerDescriptionProps = Omit<ComponentProps<typeof BaseDrawer.Description>, "className"> & {
34
+ className?: string;
35
+ };
36
+ declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): import("react").JSX.Element;
37
+ export type DrawerBodyProps = Omit<ComponentProps<typeof BaseDrawer.Content>, "className"> & {
38
+ className?: string;
39
+ };
40
+ declare function DrawerBody({ className, ...props }: DrawerBodyProps): import("react").JSX.Element;
41
+ export type DrawerFooterProps = HTMLAttributes<HTMLDivElement>;
42
+ declare function DrawerFooter({ className, ...props }: DrawerFooterProps): import("react").JSX.Element;
43
+ export type DrawerCloseButtonProps = Omit<ComponentProps<typeof BaseDrawer.Close>, "className"> & {
44
+ className?: string;
45
+ };
46
+ declare function DrawerCloseButton({ className, children, ...props }: DrawerCloseButtonProps): import("react").JSX.Element;
47
+ export declare const Drawer: {
48
+ Root: typeof DrawerRoot;
49
+ Trigger: BaseDrawer.Trigger;
50
+ Portal: BaseDrawer.Portal;
51
+ Backdrop: typeof DrawerBackdrop;
52
+ Viewport: typeof DrawerViewport;
53
+ Popup: typeof DrawerPopup;
54
+ Handle: typeof DrawerHandle;
55
+ Header: typeof DrawerHeader;
56
+ Title: typeof DrawerTitle;
57
+ Description: typeof DrawerDescription;
58
+ Body: typeof DrawerBody;
59
+ Footer: typeof DrawerFooter;
60
+ Close: BaseDrawer.Close;
61
+ CloseButton: typeof DrawerCloseButton;
62
+ VirtualKeyboardProvider: typeof BaseDrawer.VirtualKeyboardProvider;
63
+ };
64
+ export { popupVariants as drawerPopupVariants };
65
+ //# sourceMappingURL=Drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EACN,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAGrD,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACrD,6EAA6E;IAC7E,IAAI,CAAC,EAAE,UAAU,CAAC;CAClB;AAED,0FAA0F;AAC1F,iBAAS,UAAU,CAAC,EAAE,IAAe,EAAE,GAAG,KAA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er/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ import{ed as O}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import{xe as M}from"../../index-aq782dhn.js";import{ye as G}from"../../lib/utils.js";import{Drawer as E}from"@base-ui/react/drawer";import{faXmark as Q}from"@fortawesome/pro-solid-svg-icons";import{cva as U}from"class-variance-authority";import{createContext as W,useContext as L}from"react";import{jsx as A}from"react/jsx-runtime";var K=W("bottom");function Y({side:q="bottom",...z}){return A(K.Provider,{value:q,children:A(E.Root,{swipeDirection:q==="bottom"?"down":q,...z})})}var Z=U(["relative flex min-h-0 w-full flex-col border border-hairline bg-background text-foreground shadow-xl outline-none","transition-transform duration-[calc(420ms*var(--drawer-swipe-strength,1))] ease-[cubic-bezier(0.32,0.72,0,1)]","data-[swiping]:transition-none motion-reduce:transition-none"],{variants:{side:{bottom:"max-h-[calc(100dvh-env(safe-area-inset-top)-1rem-var(--drawer-keyboard-inset,0px))] max-w-lg rounded-t-2xl border-b-0 [transform:translateY(calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y,0px)))] data-[starting-style]:[transform:translateY(100%)] data-[ending-style]:[transform:translateY(100%)]",right:"h-full max-w-md rounded-l-2xl border-r-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(100%)] data-[ending-style]:[transform:translateX(100%)]",left:"h-full max-w-md rounded-r-2xl border-l-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(-100%)] data-[ending-style]:[transform:translateX(-100%)]"}},defaultVariants:{side:"bottom"}});function _({className:q,...z}){return A(E.Backdrop,{"data-slot":"drawer-backdrop",className:G("fixed inset-0 z-50 bg-overlay/35 opacity-[calc(1-var(--drawer-swipe-progress,0))] transition-opacity duration-300 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[swiping]:transition-none motion-reduce:transition-none",q),...z})}function $({className:q,...z}){let J=L(K);return A(E.Viewport,{"data-slot":"drawer-viewport",className:G("fixed inset-0 z-50 flex [bottom:var(--drawer-keyboard-inset,0px)]",J==="bottom"?"items-end justify-center":J==="right"?"justify-end":"justify-start",q),...z})}function f({className:q,...z}){let J=L(K);return A(E.Popup,{"data-slot":"drawer-popup","data-side":J,className:G(Z({side:J}),q),...z})}function g({className:q,...z}){if(L(K)!=="bottom")return null;return A("div",{...z,"aria-hidden":"true","data-slot":"drawer-handle",className:G("flex h-7 shrink-0 items-center justify-center",q),children:A("span",{className:"h-1 w-9 rounded-full bg-foreground/20"})})}function F({className:q,...z}){return A("div",{"data-slot":"drawer-header",className:G("relative shrink-0 px-6 pb-4 pt-6 [[data-side=bottom]_&]:pt-2",q),...z})}function P({className:q,...z}){return A(E.Title,{"data-slot":"drawer-title",className:G("pr-12 text-lg font-semibold text-foreground",q),...z})}function R({className:q,...z}){return A(E.Description,{"data-slot":"drawer-description",className:G("mt-2 text-sm leading-normal text-muted-foreground",q),...z})}function T({className:q,...z}){return A(E.Content,{"data-slot":"drawer-body",className:G("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pb-6","[background-image:linear-gradient(var(--color-background)_30%,transparent),linear-gradient(transparent,var(--color-background)_70%),linear-gradient(var(--color-ink-pressed),transparent),linear-gradient(transparent,var(--color-ink-pressed))] [background-size:100%_32px,100%_32px,100%_10px,100%_10px] [background-position:top,bottom,top,bottom] [background-repeat:no-repeat] [background-attachment:local,local,scroll,scroll]",q),...z})}function X({className:q,...z}){return A("div",{"data-slot":"drawer-footer",className:G("flex shrink-0 flex-col gap-3 border-t border-hairline px-6 pt-4 pb-[max(1.5rem,env(safe-area-inset-bottom))]",q),...z})}function b({className:q,children:z,...J}){return A(E.Close,{"aria-label":"Close drawer","data-slot":"drawer-close",className:G(O({variant:"ghost",size:"icon-xl"}),"absolute right-4 top-4 text-tertiary [[data-side=bottom]_&]:top-0",q),...J,children:z??A(M,{icon:Q})})}var V={Root:Y,Trigger:E.Trigger,Portal:E.Portal,Backdrop:_,Viewport:$,Popup:f,Handle:g,Header:F,Title:P,Description:R,Body:T,Footer:X,Close:E.Close,CloseButton:b,VirtualKeyboardProvider:E.VirtualKeyboardProvider};export{Z as drawerPopupVariants,V as Drawer};export{Z as cc,V as dc};
@@ -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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EAC1B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAUxB;AAED,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,0BAA0B,+BAQ5B;AAED,iBAAS,oBAAoB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,yBAAyB,+BAU3B;AAED,iBAAS,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAEpE;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,2BAA2B,+BAW7B;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,UAAc,EACd,WAAgB,EAChB,GAAG,KAAK,EACR,EAAE,2BAA2B,+BAoB7B;AAED,eAAO,MAAM,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{xe as J}from"../../index-aq782dhn.js";import{ye 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 ec,Q as fc,U as gc,W as hc,X as ic,Y as jc,Z as kc,g as lc};
@@ -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{xe as q}from"../../index-aq782dhn.js";import{ye 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 Ec,L as Fc};
@@ -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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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{ye 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 mc,O as nc,Q as oc,_ as pc,$ as qc,g as rc,M as sc,T as tc,U as uc,V as vc,E as wc,F as xc,I as yc};
@@ -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,C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C;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,UAAU,CAAC,EAC1B,KAAK,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,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{Dc as k}from"../Progress/index.js";import{Fc as S}from"../FeaturedIcon/index.js";import"../Button/index.js";import{fd as I}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import{xe as V}from"../../index-aq782dhn.js";import{ye 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 zc,l as Ac};
@@ -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,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W,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{ye 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 Gc,w as Hc,M as Ic,v as Jc,y as Kc};
@@ -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,OAA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 +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{nc as Z,uc as _,wc as $,yc as k}from"../Field/index.js";import{ye 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 ub,E as vb,q as wb,B as xb,g as yb};
@@ -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{xe as o}from"../../index-aq782dhn.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{fd as T}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import{ke 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 zb,U as Ab,R as Bb,b as Cb};
@@ -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,OA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