@jacshuo/onyx 0.1.9 → 1.0.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 (218) hide show
  1. package/README.md +191 -30
  2. package/README.zh-CN.md +745 -0
  3. package/dist/Accordion.cjs +1 -1
  4. package/dist/Accordion.d.cts +3 -1
  5. package/dist/Accordion.d.ts +3 -1
  6. package/dist/Accordion.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.d.cts +3 -1
  9. package/dist/Alert.d.ts +3 -1
  10. package/dist/Alert.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.d.cts +1 -1
  13. package/dist/Badge.d.ts +1 -1
  14. package/dist/Badge.js +1 -1
  15. package/dist/Button.cjs +1 -1
  16. package/dist/Button.js +1 -1
  17. package/dist/Card.cjs +1 -1
  18. package/dist/Card.d.cts +3 -1
  19. package/dist/Card.d.ts +3 -1
  20. package/dist/Card.js +1 -1
  21. package/dist/Checkbox.cjs +1 -0
  22. package/dist/Checkbox.d.cts +21 -0
  23. package/dist/Checkbox.d.ts +21 -0
  24. package/dist/Checkbox.js +1 -0
  25. package/dist/CodeBlock.cjs +1 -0
  26. package/dist/CodeBlock.d.cts +22 -0
  27. package/dist/CodeBlock.d.ts +22 -0
  28. package/dist/CodeBlock.js +1 -0
  29. package/dist/Dialog.cjs +1 -1
  30. package/dist/Dialog.d.cts +5 -2
  31. package/dist/Dialog.d.ts +5 -2
  32. package/dist/Dialog.js +1 -1
  33. package/dist/Dropdown.cjs +1 -1
  34. package/dist/Dropdown.d.cts +12 -0
  35. package/dist/Dropdown.d.ts +12 -0
  36. package/dist/Dropdown.js +1 -1
  37. package/dist/DropdownButton.cjs +1 -1
  38. package/dist/DropdownButton.d.cts +3 -1
  39. package/dist/DropdownButton.d.ts +3 -1
  40. package/dist/DropdownButton.js +1 -1
  41. package/dist/FileExplorer.cjs +1 -1
  42. package/dist/FileExplorer.js +1 -1
  43. package/dist/Form.cjs +1 -0
  44. package/dist/Form.d.cts +101 -0
  45. package/dist/Form.d.ts +101 -0
  46. package/dist/Form.js +1 -0
  47. package/dist/Header.cjs +1 -1
  48. package/dist/Header.d.cts +7 -1
  49. package/dist/Header.d.ts +7 -1
  50. package/dist/Header.js +1 -1
  51. package/dist/Indicator.cjs +1 -0
  52. package/dist/Indicator.d.cts +19 -0
  53. package/dist/Indicator.d.ts +19 -0
  54. package/dist/Indicator.js +1 -0
  55. package/dist/Input.cjs +1 -1
  56. package/dist/Input.js +1 -1
  57. package/dist/Label.cjs +1 -1
  58. package/dist/Label.js +1 -1
  59. package/dist/List.cjs +1 -1
  60. package/dist/List.d.cts +11 -4
  61. package/dist/List.d.ts +11 -4
  62. package/dist/List.js +1 -1
  63. package/dist/Masonry.cjs +1 -0
  64. package/dist/Masonry.d.cts +41 -0
  65. package/dist/Masonry.d.ts +41 -0
  66. package/dist/Masonry.js +1 -0
  67. package/dist/NavLink.cjs +1 -0
  68. package/dist/NavLink.d.cts +13 -0
  69. package/dist/NavLink.d.ts +13 -0
  70. package/dist/NavLink.js +1 -0
  71. package/dist/Panel.cjs +1 -1
  72. package/dist/Panel.js +1 -1
  73. package/dist/ProgressBar.cjs +1 -0
  74. package/dist/ProgressBar.d.cts +21 -0
  75. package/dist/ProgressBar.d.ts +21 -0
  76. package/dist/ProgressBar.js +1 -0
  77. package/dist/Radio.cjs +1 -0
  78. package/dist/Radio.d.cts +35 -0
  79. package/dist/Radio.d.ts +35 -0
  80. package/dist/Radio.js +1 -0
  81. package/dist/SideNav.cjs +1 -1
  82. package/dist/SideNav.d.cts +14 -1
  83. package/dist/SideNav.d.ts +14 -1
  84. package/dist/SideNav.js +1 -1
  85. package/dist/Spin.cjs +1 -0
  86. package/dist/Spin.d.cts +26 -0
  87. package/dist/Spin.d.ts +26 -0
  88. package/dist/Spin.js +1 -0
  89. package/dist/Switch.cjs +1 -0
  90. package/dist/Switch.d.cts +23 -0
  91. package/dist/Switch.d.ts +23 -0
  92. package/dist/Switch.js +1 -0
  93. package/dist/Table.cjs +1 -1
  94. package/dist/Table.d.cts +24 -4
  95. package/dist/Table.d.ts +24 -4
  96. package/dist/Table.js +1 -1
  97. package/dist/Tabs.cjs +1 -1
  98. package/dist/Tabs.d.cts +3 -1
  99. package/dist/Tabs.d.ts +3 -1
  100. package/dist/Tabs.js +1 -1
  101. package/dist/TextBox.cjs +1 -0
  102. package/dist/TextBox.d.cts +16 -0
  103. package/dist/TextBox.d.ts +16 -0
  104. package/dist/TextBox.js +1 -0
  105. package/dist/Tooltip.cjs +1 -1
  106. package/dist/Tooltip.d.cts +3 -1
  107. package/dist/Tooltip.d.ts +3 -1
  108. package/dist/Tooltip.js +1 -1
  109. package/dist/Tree.cjs +1 -1
  110. package/dist/Tree.d.cts +6 -2
  111. package/dist/Tree.d.ts +6 -2
  112. package/dist/Tree.js +1 -1
  113. package/dist/chunks/chunk-2JLNRAXS.cjs +1 -0
  114. package/dist/chunks/{chunk-BQLPFPCA.cjs → chunk-2KVAFCQI.cjs} +1 -1
  115. package/dist/chunks/chunk-3I7Y6FUJ.js +1 -0
  116. package/dist/chunks/chunk-47UMFXDG.js +1 -0
  117. package/dist/chunks/{chunk-MXDZHU6E.cjs → chunk-4D3XBPZX.cjs} +2 -2
  118. package/dist/chunks/{chunk-VDC7N5TC.js → chunk-4VFV5U3S.js} +1 -1
  119. package/dist/chunks/{chunk-N36YROV3.js → chunk-5FUEJFGY.js} +1 -1
  120. package/dist/chunks/chunk-5XT6TJGF.js +1 -0
  121. package/dist/chunks/{chunk-XCP37UUA.cjs → chunk-6BI4QL37.cjs} +1 -1
  122. package/dist/chunks/chunk-6E5ARQBB.cjs +1 -0
  123. package/dist/chunks/chunk-7CEOIZXK.js +1 -0
  124. package/dist/chunks/chunk-7XPIY2SQ.cjs +1 -0
  125. package/dist/chunks/chunk-A6HIQADJ.cjs +1 -0
  126. package/dist/chunks/{chunk-66LIYNLT.cjs → chunk-AEBULFON.cjs} +1 -1
  127. package/dist/chunks/chunk-AK5IK7ZD.js +1 -0
  128. package/dist/chunks/chunk-AN2R5URJ.js +1 -0
  129. package/dist/chunks/chunk-BTR2N5MO.cjs +2 -0
  130. package/dist/chunks/chunk-BUNOVZ23.cjs +2 -0
  131. package/dist/chunks/chunk-CEEQE7SY.js +1 -0
  132. package/dist/chunks/chunk-CMHBPMXE.js +1 -0
  133. package/dist/chunks/chunk-DWYAPPDB.cjs +1 -0
  134. package/dist/chunks/chunk-E3DST3QD.cjs +1 -0
  135. package/dist/chunks/chunk-E4EMAZ6V.js +2 -0
  136. package/dist/chunks/chunk-E5UKEXJE.js +1 -0
  137. package/dist/chunks/{chunk-HA5QPLJP.cjs → chunk-FDTREGBQ.cjs} +1 -1
  138. package/dist/chunks/chunk-FGUFBTKI.cjs +1 -0
  139. package/dist/chunks/chunk-FQZX67Z7.js +1 -0
  140. package/dist/chunks/chunk-FROZM2O6.js +1 -0
  141. package/dist/chunks/chunk-G2VO67XY.js +1 -0
  142. package/dist/chunks/{chunk-NG7F3GCN.js → chunk-GYFFUCBT.js} +1 -1
  143. package/dist/chunks/chunk-I425OSJL.js +1 -0
  144. package/dist/chunks/chunk-ICDAUJ2G.cjs +1 -0
  145. package/dist/chunks/chunk-IFRKP7M2.js +1 -0
  146. package/dist/chunks/chunk-IHBP6FI4.js +1 -0
  147. package/dist/chunks/chunk-IL5XDMUA.cjs +1 -0
  148. package/dist/chunks/chunk-IRSGPS7D.cjs +1 -0
  149. package/dist/chunks/chunk-ITWFMFVO.js +1 -0
  150. package/dist/chunks/chunk-JJP23IOG.cjs +1 -0
  151. package/dist/chunks/chunk-JRYYWYGV.cjs +1 -0
  152. package/dist/chunks/chunk-KCIICUZN.cjs +1 -0
  153. package/dist/chunks/chunk-KFQVZ2HC.cjs +1 -0
  154. package/dist/chunks/chunk-KGRBVUVK.cjs +1 -0
  155. package/dist/chunks/chunk-KY4NDB23.cjs +1 -0
  156. package/dist/chunks/chunk-KZBYFKOH.js +1 -0
  157. package/dist/chunks/chunk-LFJEIO3X.cjs +1 -0
  158. package/dist/chunks/chunk-NY27TTWN.js +1 -0
  159. package/dist/chunks/chunk-OEXZGLB4.js +1 -0
  160. package/dist/chunks/chunk-QC67HOC2.cjs +1 -0
  161. package/dist/chunks/chunk-QLFCH4TD.js +1 -0
  162. package/dist/chunks/chunk-RPBESM5F.cjs +1 -0
  163. package/dist/chunks/chunk-SC4PNYQT.js +2 -0
  164. package/dist/chunks/chunk-SLHD7PST.cjs +1 -0
  165. package/dist/chunks/chunk-UEGTVAFV.cjs +1 -0
  166. package/dist/chunks/chunk-V34PT6H4.cjs +1 -0
  167. package/dist/chunks/chunk-VUWT3NFR.js +1 -0
  168. package/dist/chunks/chunk-W5UXZVLS.cjs +1 -0
  169. package/dist/chunks/chunk-WQOSJM7L.js +2 -0
  170. package/dist/chunks/chunk-WRPPKNRG.js +1 -0
  171. package/dist/chunks/chunk-XAOBJSFW.js +1 -0
  172. package/dist/chunks/chunk-XK7SMEDO.cjs +2 -0
  173. package/dist/chunks/chunk-XO6CNALX.js +1 -0
  174. package/dist/chunks/chunk-ZY7GZOBS.js +1 -0
  175. package/dist/index.cjs +1 -1
  176. package/dist/index.d.cts +15 -4
  177. package/dist/index.d.ts +15 -4
  178. package/dist/index.js +1 -1
  179. package/dist/styles/base.css +1239 -6
  180. package/dist/styles/tokens.css +230 -0
  181. package/dist/styles.css +1333 -6
  182. package/dist/theme.cjs +1 -1
  183. package/dist/theme.d.cts +63 -1
  184. package/dist/theme.d.ts +63 -1
  185. package/dist/theme.js +1 -1
  186. package/package.json +2 -1
  187. package/dist/chunks/chunk-2DFUB3KN.js +0 -1
  188. package/dist/chunks/chunk-4BKLB4KV.cjs +0 -1
  189. package/dist/chunks/chunk-5PFWPAB6.js +0 -1
  190. package/dist/chunks/chunk-5XPTHIGM.cjs +0 -1
  191. package/dist/chunks/chunk-63LKYF4D.cjs +0 -1
  192. package/dist/chunks/chunk-6HZRNHE6.js +0 -1
  193. package/dist/chunks/chunk-6OLB4BUJ.js +0 -1
  194. package/dist/chunks/chunk-7NYDMXZT.cjs +0 -1
  195. package/dist/chunks/chunk-AAFG7R4U.cjs +0 -1
  196. package/dist/chunks/chunk-ACQOSYBI.js +0 -1
  197. package/dist/chunks/chunk-BW6NCATH.js +0 -1
  198. package/dist/chunks/chunk-DWTXICFN.js +0 -1
  199. package/dist/chunks/chunk-DXXCR4ON.js +0 -1
  200. package/dist/chunks/chunk-EK4BC3WT.cjs +0 -1
  201. package/dist/chunks/chunk-ENRXEISR.js +0 -1
  202. package/dist/chunks/chunk-ER2MYWQO.cjs +0 -1
  203. package/dist/chunks/chunk-GAK5OQW4.cjs +0 -1
  204. package/dist/chunks/chunk-JAKATE3I.js +0 -1
  205. package/dist/chunks/chunk-KVV5ZEYV.cjs +0 -1
  206. package/dist/chunks/chunk-NBLJWONR.cjs +0 -1
  207. package/dist/chunks/chunk-NCJ5A6VE.js +0 -1
  208. package/dist/chunks/chunk-ORNYPP3O.cjs +0 -1
  209. package/dist/chunks/chunk-P652JDOU.cjs +0 -1
  210. package/dist/chunks/chunk-PODSD5UT.js +0 -1
  211. package/dist/chunks/chunk-PSMWVB3O.js +0 -1
  212. package/dist/chunks/chunk-QLKUAE3R.cjs +0 -1
  213. package/dist/chunks/chunk-R2K6KI4L.js +0 -1
  214. package/dist/chunks/chunk-SCSMM2J4.js +0 -1
  215. package/dist/chunks/chunk-SMZQSZH2.js +0 -1
  216. package/dist/chunks/chunk-TDI2N27U.cjs +0 -1
  217. package/dist/chunks/chunk-U2ZQHP4I.cjs +0 -1
  218. package/dist/chunks/chunk-XOO3AGIT.js +0 -1
@@ -1 +1 @@
1
- 'use strict';var chunkAAFG7R4U_cjs=require('./chunks/chunk-AAFG7R4U.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.c}});
1
+ 'use strict';var chunkV34PT6H4_cjs=require('./chunks/chunk-V34PT6H4.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkV34PT6H4_cjs.c}});
@@ -9,8 +9,10 @@ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof
9
9
  defaultValue?: string[];
10
10
  value?: string[];
11
11
  onValueChange?: (value: string[]) => void;
12
+ /** Size of triggers and content text. @default 'md' */
13
+ size?: "sm" | "md" | "lg";
12
14
  };
13
- declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
15
+ declare function Accordion({ type, defaultValue, value, onValueChange, intent, size, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
14
16
  type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
15
17
  value: string;
16
18
  };
@@ -9,8 +9,10 @@ type AccordionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof
9
9
  defaultValue?: string[];
10
10
  value?: string[];
11
11
  onValueChange?: (value: string[]) => void;
12
+ /** Size of triggers and content text. @default 'md' */
13
+ size?: "sm" | "md" | "lg";
12
14
  };
13
- declare function Accordion({ type, defaultValue, value, onValueChange, intent, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
15
+ declare function Accordion({ type, defaultValue, value, onValueChange, intent, size, className, children, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
14
16
  type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
15
17
  value: string;
16
18
  };
package/dist/Accordion.js CHANGED
@@ -1 +1 @@
1
- export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-5PFWPAB6.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-KZBYFKOH.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Alert.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunk63LKYF4D_cjs=require('./chunks/chunk-63LKYF4D.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.a}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.d}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.e}});
1
+ 'use strict';var chunkRPBESM5F_cjs=require('./chunks/chunk-RPBESM5F.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.a}});Object.defineProperty(exports,"AlertContent",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.d}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.e}});Object.defineProperty(exports,"AlertIcon",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.f}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunkRPBESM5F_cjs.g}});
package/dist/Alert.d.cts CHANGED
@@ -7,6 +7,8 @@ import 'class-variance-authority/types';
7
7
  type AlertProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
8
8
  declare function Alert({ intent, className, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
9
9
  declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
10
+ declare function AlertIcon({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
11
+ declare function AlertContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
10
12
  declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
11
13
  type AlertPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
12
14
  type AlertIntent = NonNullable<VariantProps<typeof alertVariants>["intent"]>;
@@ -25,4 +27,4 @@ declare function useAlert(): {
25
27
  removeAlert: typeof removeAlert;
26
28
  };
27
29
 
28
- export { Alert, AlertDescription, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
30
+ export { Alert, AlertContent, AlertDescription, AlertIcon, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
package/dist/Alert.d.ts CHANGED
@@ -7,6 +7,8 @@ import 'class-variance-authority/types';
7
7
  type AlertProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
8
8
  declare function Alert({ intent, className, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
9
9
  declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
10
+ declare function AlertIcon({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
11
+ declare function AlertContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
10
12
  declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
11
13
  type AlertPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
12
14
  type AlertIntent = NonNullable<VariantProps<typeof alertVariants>["intent"]>;
@@ -25,4 +27,4 @@ declare function useAlert(): {
25
27
  removeAlert: typeof removeAlert;
26
28
  };
27
29
 
28
- export { Alert, AlertDescription, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
30
+ export { Alert, AlertContent, AlertDescription, AlertIcon, type AlertOptions, type AlertPosition, AlertTitle, configureAlertTopOffset, useAlert };
package/dist/Alert.js CHANGED
@@ -1 +1 @@
1
- export{a as Alert,c as AlertDescription,b as AlertTitle,d as configureAlertTopOffset,e as useAlert}from'./chunks/chunk-BW6NCATH.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Alert,d as AlertContent,e as AlertDescription,c as AlertIcon,b as AlertTitle,f as configureAlertTopOffset,g as useAlert}from'./chunks/chunk-WRPPKNRG.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Badge.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkEK4BC3WT_cjs=require('./chunks/chunk-EK4BC3WT.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkEK4BC3WT_cjs.a}});
1
+ 'use strict';var chunkKGRBVUVK_cjs=require('./chunks/chunk-KGRBVUVK.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkKGRBVUVK_cjs.a}});
package/dist/Badge.d.cts CHANGED
@@ -5,6 +5,6 @@ import { badgeVariants } from './theme.cjs';
5
5
  import 'class-variance-authority/types';
6
6
 
7
7
  type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
8
- declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
8
+ declare function Badge({ intent, size, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
9
9
 
10
10
  export { Badge };
package/dist/Badge.d.ts CHANGED
@@ -5,6 +5,6 @@ import { badgeVariants } from './theme.js';
5
5
  import 'class-variance-authority/types';
6
6
 
7
7
  type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
8
- declare function Badge({ intent, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
8
+ declare function Badge({ intent, size, className, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
9
9
 
10
10
  export { Badge };
package/dist/Badge.js CHANGED
@@ -1 +1 @@
1
- export{a as Badge}from'./chunks/chunk-PODSD5UT.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Badge}from'./chunks/chunk-OEXZGLB4.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Button.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkBQLPFPCA_cjs=require('./chunks/chunk-BQLPFPCA.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkBQLPFPCA_cjs.a}});
1
+ 'use strict';var chunk2KVAFCQI_cjs=require('./chunks/chunk-2KVAFCQI.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunk2KVAFCQI_cjs.a}});
package/dist/Button.js CHANGED
@@ -1 +1 @@
1
- export{a as Button}from'./chunks/chunk-N36YROV3.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Button}from'./chunks/chunk-5FUEJFGY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Card.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkTDI2N27U_cjs=require('./chunks/chunk-TDI2N27U.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.g}});
1
+ 'use strict';var chunkKY4NDB23_cjs=require('./chunks/chunk-KY4NDB23.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkKY4NDB23_cjs.g}});
package/dist/Card.d.cts CHANGED
@@ -27,7 +27,9 @@ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"
27
27
  /** Media configuration. */
28
28
  media: HorizontalCardMediaProps;
29
29
  children: React.ReactNode;
30
+ /** Stack media above content on small screens. @default false */
31
+ stackOnMobile?: boolean;
30
32
  };
31
- declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
33
+ declare function HorizontalCard({ intent, media, mediaPosition, stackOnMobile, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
32
34
 
33
35
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
package/dist/Card.d.ts CHANGED
@@ -27,7 +27,9 @@ type HorizontalCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"
27
27
  /** Media configuration. */
28
28
  media: HorizontalCardMediaProps;
29
29
  children: React.ReactNode;
30
+ /** Stack media above content on small screens. @default false */
31
+ stackOnMobile?: boolean;
30
32
  };
31
- declare function HorizontalCard({ intent, media, mediaPosition, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
33
+ declare function HorizontalCard({ intent, media, mediaPosition, stackOnMobile, className, children, ...props }: HorizontalCardProps): react_jsx_runtime.JSX.Element;
32
34
 
33
35
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard };
package/dist/Card.js CHANGED
@@ -1 +1 @@
1
- export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-DXXCR4ON.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-IHBP6FI4.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkIL5XDMUA_cjs=require('./chunks/chunk-IL5XDMUA.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Checkbox",{enumerable:true,get:function(){return chunkIL5XDMUA_cjs.a}});
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { checkboxVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & Omit<VariantProps<typeof checkboxVariants>, "checked"> & {
8
+ /** Controlled checked state. */
9
+ checked?: boolean;
10
+ /** Default checked state (uncontrolled). */
11
+ defaultChecked?: boolean;
12
+ /** Indeterminate state — overrides the check icon with a dash. */
13
+ indeterminate?: boolean;
14
+ /** Callback when the checkbox is toggled. */
15
+ onCheckedChange?: (checked: boolean) => void;
16
+ /** Accessible label text shown beside the checkbox. */
17
+ label?: string;
18
+ };
19
+ declare function Checkbox({ checked: controlledChecked, defaultChecked, indeterminate, onCheckedChange, intent, size, label, id: propId, className, disabled, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { Checkbox, type CheckboxProps };
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { checkboxVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & Omit<VariantProps<typeof checkboxVariants>, "checked"> & {
8
+ /** Controlled checked state. */
9
+ checked?: boolean;
10
+ /** Default checked state (uncontrolled). */
11
+ defaultChecked?: boolean;
12
+ /** Indeterminate state — overrides the check icon with a dash. */
13
+ indeterminate?: boolean;
14
+ /** Callback when the checkbox is toggled. */
15
+ onCheckedChange?: (checked: boolean) => void;
16
+ /** Accessible label text shown beside the checkbox. */
17
+ label?: string;
18
+ };
19
+ declare function Checkbox({ checked: controlledChecked, defaultChecked, indeterminate, onCheckedChange, intent, size, label, id: propId, className, disabled, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { Checkbox, type CheckboxProps };
@@ -0,0 +1 @@
1
+ export{a as Checkbox}from'./chunks/chunk-7CEOIZXK.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkBTR2N5MO_cjs=require('./chunks/chunk-BTR2N5MO.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"CodeBlock",{enumerable:true,get:function(){return chunkBTR2N5MO_cjs.a}});
@@ -0,0 +1,22 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { codeBlockVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CodeBlockLanguage = "typescript" | "javascript" | "tsx" | "jsx" | "html" | "css" | "json" | "markdown" | "python" | "rust" | "go" | "java" | "c" | "cpp" | "csharp" | "vue" | "xml" | "yaml" | "sql" | "bash" | "shell" | (string & {});
8
+ type CodeBlockProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof codeBlockVariants> & {
9
+ /** The source code to highlight */
10
+ code: string;
11
+ /** Programming language for syntax highlighting */
12
+ language?: CodeBlockLanguage;
13
+ /** Show line numbers */
14
+ lineNumbers?: boolean;
15
+ /** Enable live editing — renders a transparent textarea over the highlighted output */
16
+ editable?: boolean;
17
+ /** Called when the user edits code (only fires when `editable` is true) */
18
+ onCodeChange?: (code: string) => void;
19
+ };
20
+ declare function CodeBlock({ code, language, lineNumbers, editable, onCodeChange, size, className, ...props }: CodeBlockProps): react_jsx_runtime.JSX.Element;
21
+
22
+ export { CodeBlock, type CodeBlockLanguage, type CodeBlockProps };
@@ -0,0 +1,22 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { codeBlockVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type CodeBlockLanguage = "typescript" | "javascript" | "tsx" | "jsx" | "html" | "css" | "json" | "markdown" | "python" | "rust" | "go" | "java" | "c" | "cpp" | "csharp" | "vue" | "xml" | "yaml" | "sql" | "bash" | "shell" | (string & {});
8
+ type CodeBlockProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof codeBlockVariants> & {
9
+ /** The source code to highlight */
10
+ code: string;
11
+ /** Programming language for syntax highlighting */
12
+ language?: CodeBlockLanguage;
13
+ /** Show line numbers */
14
+ lineNumbers?: boolean;
15
+ /** Enable live editing — renders a transparent textarea over the highlighted output */
16
+ editable?: boolean;
17
+ /** Called when the user edits code (only fires when `editable` is true) */
18
+ onCodeChange?: (code: string) => void;
19
+ };
20
+ declare function CodeBlock({ code, language, lineNumbers, editable, onCodeChange, size, className, ...props }: CodeBlockProps): react_jsx_runtime.JSX.Element;
21
+
22
+ export { CodeBlock, type CodeBlockLanguage, type CodeBlockProps };
@@ -0,0 +1 @@
1
+ export{a as CodeBlock}from'./chunks/chunk-E4EMAZ6V.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Dialog.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkU2ZQHP4I_cjs=require('./chunks/chunk-U2ZQHP4I.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.d}});
1
+ 'use strict';var chunkJJP23IOG_cjs=require('./chunks/chunk-JJP23IOG.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkJJP23IOG_cjs.d}});
package/dist/Dialog.d.cts CHANGED
@@ -13,8 +13,11 @@ type DialogProps = {
13
13
  children: React.ReactNode;
14
14
  };
15
15
  declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
16
- type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants>;
17
- declare function DialogContent({ size, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
16
+ type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants> & {
17
+ /** Where to render the dialog in the viewport. @default 'center' */
18
+ position?: "center" | "bottom";
19
+ };
20
+ declare function DialogContent({ size, position, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
18
21
  declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
19
22
  declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
20
23
  declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
package/dist/Dialog.d.ts CHANGED
@@ -13,8 +13,11 @@ type DialogProps = {
13
13
  children: React.ReactNode;
14
14
  };
15
15
  declare function Dialog({ open, onOpenChange, modal, closeOnOutsideClick, children, }: DialogProps): react_jsx_runtime.JSX.Element | null;
16
- type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants>;
17
- declare function DialogContent({ size, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
16
+ type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dialogContentVariants> & {
17
+ /** Where to render the dialog in the viewport. @default 'center' */
18
+ position?: "center" | "bottom";
19
+ };
20
+ declare function DialogContent({ size, position, className, children, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element | null;
18
21
  declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
19
22
  declare function DialogTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
20
23
  declare function DialogDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
package/dist/Dialog.js CHANGED
@@ -1 +1 @@
1
- export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-NCJ5A6VE.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-3I7Y6FUJ.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Dropdown.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunk5XPTHIGM_cjs=require('./chunks/chunk-5XPTHIGM.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunk5XPTHIGM_cjs.a}});
1
+ 'use strict';var chunkIRSGPS7D_cjs=require('./chunks/chunk-IRSGPS7D.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunkIRSGPS7D_cjs.a}});
@@ -28,17 +28,25 @@ interface DropdownBaseProps {
28
28
  align?: "left" | "right";
29
29
  /** Additional class name for the root container. */
30
30
  className?: string;
31
+ /** Controls the trigger height and text size. @default 'md' */
32
+ size?: "sm" | "md" | "lg";
33
+ /** Enable domino flip-in/flip-out animation for menu items. @default true */
34
+ animated?: boolean;
31
35
  }
32
36
  interface DropdownSingleProps extends DropdownBaseProps {
33
37
  /** Enable multi-select with checkboxes. @default false */
34
38
  multiple?: false;
35
39
  /** Currently selected value (controlled, single mode). */
36
40
  value?: string;
41
+ /** Default selected value (uncontrolled, single mode). */
42
+ defaultValue?: string;
37
43
  /** Callback fired when an option is selected (single mode). */
38
44
  onChange?: (value: string, option: DropdownOption) => void;
39
45
  /** Not used in single mode. */
40
46
  selected?: never;
41
47
  /** Not used in single mode. */
48
+ defaultSelected?: never;
49
+ /** Not used in single mode. */
42
50
  onSelectionChange?: never;
43
51
  }
44
52
  interface DropdownMultipleProps extends DropdownBaseProps {
@@ -46,11 +54,15 @@ interface DropdownMultipleProps extends DropdownBaseProps {
46
54
  multiple: true;
47
55
  /** Currently selected values (controlled, multi mode). */
48
56
  selected?: string[];
57
+ /** Default selected values (uncontrolled, multi mode). */
58
+ defaultSelected?: string[];
49
59
  /** Callback fired when selection changes (multi mode). */
50
60
  onSelectionChange?: (selected: string[]) => void;
51
61
  /** Not used in multi mode. */
52
62
  value?: never;
53
63
  /** Not used in multi mode. */
64
+ defaultValue?: never;
65
+ /** Not used in multi mode. */
54
66
  onChange?: never;
55
67
  }
56
68
  type DropdownProps = DropdownSingleProps | DropdownMultipleProps;
@@ -28,17 +28,25 @@ interface DropdownBaseProps {
28
28
  align?: "left" | "right";
29
29
  /** Additional class name for the root container. */
30
30
  className?: string;
31
+ /** Controls the trigger height and text size. @default 'md' */
32
+ size?: "sm" | "md" | "lg";
33
+ /** Enable domino flip-in/flip-out animation for menu items. @default true */
34
+ animated?: boolean;
31
35
  }
32
36
  interface DropdownSingleProps extends DropdownBaseProps {
33
37
  /** Enable multi-select with checkboxes. @default false */
34
38
  multiple?: false;
35
39
  /** Currently selected value (controlled, single mode). */
36
40
  value?: string;
41
+ /** Default selected value (uncontrolled, single mode). */
42
+ defaultValue?: string;
37
43
  /** Callback fired when an option is selected (single mode). */
38
44
  onChange?: (value: string, option: DropdownOption) => void;
39
45
  /** Not used in single mode. */
40
46
  selected?: never;
41
47
  /** Not used in single mode. */
48
+ defaultSelected?: never;
49
+ /** Not used in single mode. */
42
50
  onSelectionChange?: never;
43
51
  }
44
52
  interface DropdownMultipleProps extends DropdownBaseProps {
@@ -46,11 +54,15 @@ interface DropdownMultipleProps extends DropdownBaseProps {
46
54
  multiple: true;
47
55
  /** Currently selected values (controlled, multi mode). */
48
56
  selected?: string[];
57
+ /** Default selected values (uncontrolled, multi mode). */
58
+ defaultSelected?: string[];
49
59
  /** Callback fired when selection changes (multi mode). */
50
60
  onSelectionChange?: (selected: string[]) => void;
51
61
  /** Not used in multi mode. */
52
62
  value?: never;
53
63
  /** Not used in multi mode. */
64
+ defaultValue?: never;
65
+ /** Not used in multi mode. */
54
66
  onChange?: never;
55
67
  }
56
68
  type DropdownProps = DropdownSingleProps | DropdownMultipleProps;
package/dist/Dropdown.js CHANGED
@@ -1 +1 @@
1
- export{a as Dropdown}from'./chunks/chunk-PSMWVB3O.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Dropdown}from'./chunks/chunk-CEEQE7SY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -1 +1 @@
1
- 'use strict';var chunk4BKLB4KV_cjs=require('./chunks/chunk-4BKLB4KV.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunk4BKLB4KV_cjs.a}});
1
+ 'use strict';var chunkICDAUJ2G_cjs=require('./chunks/chunk-ICDAUJ2G.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunkICDAUJ2G_cjs.a}});
@@ -31,7 +31,9 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
31
31
  selected?: string[];
32
32
  /** Called when the selection changes (multi-select mode). */
33
33
  onSelectionChange?: (selected: string[]) => void;
34
+ /** Enable domino flip-in/flip-out animation for menu items. @default true */
35
+ animated?: boolean;
34
36
  }
35
- declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
37
+ declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, animated, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
36
38
 
37
39
  export { DropdownButton, type DropdownButtonProps, type DropdownItem };
@@ -31,7 +31,9 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
31
31
  selected?: string[];
32
32
  /** Called when the selection changes (multi-select mode). */
33
33
  onSelectionChange?: (selected: string[]) => void;
34
+ /** Enable domino flip-in/flip-out animation for menu items. @default true */
35
+ animated?: boolean;
34
36
  }
35
- declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
37
+ declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, animated, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
36
38
 
37
39
  export { DropdownButton, type DropdownButtonProps, type DropdownItem };
@@ -1 +1 @@
1
- export{a as DropdownButton}from'./chunks/chunk-JAKATE3I.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as DropdownButton}from'./chunks/chunk-47UMFXDG.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -1 +1 @@
1
- 'use strict';var chunkMXDZHU6E_cjs=require('./chunks/chunk-MXDZHU6E.cjs');require('./chunks/chunk-U2ZQHP4I.cjs'),require('./chunks/chunk-BQLPFPCA.cjs'),require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunkMXDZHU6E_cjs.a}});
1
+ 'use strict';var chunk4D3XBPZX_cjs=require('./chunks/chunk-4D3XBPZX.cjs');require('./chunks/chunk-JJP23IOG.cjs'),require('./chunks/chunk-2KVAFCQI.cjs'),require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunk4D3XBPZX_cjs.a}});
@@ -1 +1 @@
1
- export{a as FileExplorer}from'./chunks/chunk-NG7F3GCN.js';import'./chunks/chunk-NCJ5A6VE.js';import'./chunks/chunk-N36YROV3.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as FileExplorer}from'./chunks/chunk-GYFFUCBT.js';import'./chunks/chunk-3I7Y6FUJ.js';import'./chunks/chunk-5FUEJFGY.js';import'./chunks/chunk-XAOBJSFW.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Form.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkE3DST3QD_cjs=require('./chunks/chunk-E3DST3QD.cjs');require('./chunks/chunk-2JLNRAXS.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Form",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.a}});Object.defineProperty(exports,"FormItem",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.b}});Object.defineProperty(exports,"FormSection",{enumerable:true,get:function(){return chunkE3DST3QD_cjs.c}});
@@ -0,0 +1,101 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { formVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type FormLayout = "stacked" | "inline";
8
+ type FormSize = "sm" | "md" | "lg";
9
+ type FormValidationStatus = "error" | "warning" | "success" | "hint";
10
+ /** Return value of a FormItem validation callback. */
11
+ type ValidationResult = {
12
+ result: boolean;
13
+ reason: string;
14
+ };
15
+ /** Callback type for FormItem's `onValidate` prop. */
16
+ type ValidateCallback = (value: unknown) => ValidationResult;
17
+ /**
18
+ * Map of field names → ValidationResult returned from the `onValues` callback.
19
+ * Form will automatically display these errors in the matching named FormItems.
20
+ * Fields with `result: true` show a success message; `result: false` shows an error.
21
+ */
22
+ type BulkValidationResult = Record<string, ValidationResult>;
23
+ type FormProps = React.FormHTMLAttributes<HTMLFormElement> & VariantProps<typeof formVariants> & {
24
+ /**
25
+ * Label + control layout for all FormItems.
26
+ * - "stacked" — label above control (default; always used on narrow viewports)
27
+ * - "inline" — label left, control right
28
+ * @default "stacked"
29
+ */
30
+ layout?: FormLayout;
31
+ /** Form heading rendered above all items. */
32
+ title?: React.ReactNode;
33
+ /** Optional descriptive text below the heading. */
34
+ description?: React.ReactNode;
35
+ /**
36
+ * Footer slot — typically holds submit / reset buttons.
37
+ * Rendered below all FormItems, separated by a top border.
38
+ */
39
+ footer?: React.ReactNode;
40
+ /**
41
+ * Called on form submit with a plain-object snapshot of all named
42
+ * FormItem inputs (via the native FormData API).
43
+ * Call `e.preventDefault()` inside this callback to prevent a page reload.
44
+ *
45
+ * May return (or resolve to) a `BulkValidationResult` to display
46
+ * per-field errors/successes — Form automatically routes each entry
47
+ * to the matching `<FormItem name="…">`.
48
+ * Supports async (return a Promise).
49
+ */
50
+ onValues?: (values: Record<string, FormDataEntryValue>, event: React.FormEvent<HTMLFormElement>) => BulkValidationResult | void | Promise<BulkValidationResult | void>;
51
+ };
52
+ declare function Form({ children, className, intent, size, layout, title, description, footer, onValues, onSubmit, ...props }: FormProps): react_jsx_runtime.JSX.Element;
53
+ type FormValidation = {
54
+ /** Validation display status. Controls icon colour. */
55
+ status: FormValidationStatus;
56
+ /** Message text shown below the control. */
57
+ message: string;
58
+ };
59
+ type FormItemProps = {
60
+ /** Label text or element. Pass a string for automatic htmlFor wiring. */
61
+ label?: React.ReactNode;
62
+ /**
63
+ * Override the inherited layout from Form.
64
+ * Useful when a specific item needs to differ from the rest.
65
+ */
66
+ layout?: FormLayout;
67
+ /** Whether the field is required (adds a red asterisk after the label). */
68
+ required?: boolean;
69
+ /** Additional hint text rendered below the control (below validation if both present). */
70
+ hint?: React.ReactNode;
71
+ /** Externally controlled validation result. Takes precedence over `onValidate`. */
72
+ validation?: FormValidation;
73
+ /**
74
+ * Field name used by the native FormData API when the Form's `onValues`
75
+ * callback is used. Injected into the first child element automatically.
76
+ */
77
+ name?: string;
78
+ /**
79
+ * Validation callback. Called with the current value on every change.
80
+ * Return `{ result: true, reason: "" }` for success or
81
+ * `{ result: false, reason: "Error message" }` for error.
82
+ */
83
+ onValidate?: ValidateCallback;
84
+ /** Extra class on the wrapper div. */
85
+ className?: string;
86
+ children: React.ReactNode;
87
+ };
88
+ declare function FormItem({ label, layout: itemLayout, required, hint, validation, name, onValidate, className, children, }: FormItemProps): react_jsx_runtime.JSX.Element;
89
+ /**
90
+ * Optional grouping element inside a Form.
91
+ * Renders a subtle heading + divider, then its children as a nested column.
92
+ */
93
+ type FormSectionProps = {
94
+ title?: React.ReactNode;
95
+ description?: React.ReactNode;
96
+ className?: string;
97
+ children: React.ReactNode;
98
+ };
99
+ declare function FormSection({ title, description, className, children }: FormSectionProps): react_jsx_runtime.JSX.Element;
100
+
101
+ export { type BulkValidationResult, Form, FormItem, type FormItemProps, type FormLayout, type FormProps, FormSection, type FormSectionProps, type FormSize, type FormValidation, type FormValidationStatus, type ValidateCallback, type ValidationResult };