@jacshuo/onyx 0.1.9 → 0.2.1

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 (153) hide show
  1. package/README.md +47 -1
  2. package/dist/Accordion.cjs +1 -1
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Alert.cjs +1 -1
  5. package/dist/Alert.d.cts +3 -1
  6. package/dist/Alert.d.ts +3 -1
  7. package/dist/Alert.js +1 -1
  8. package/dist/Badge.cjs +1 -1
  9. package/dist/Badge.js +1 -1
  10. package/dist/Button.cjs +1 -1
  11. package/dist/Button.js +1 -1
  12. package/dist/Card.cjs +1 -1
  13. package/dist/Card.js +1 -1
  14. package/dist/Checkbox.cjs +1 -0
  15. package/dist/Checkbox.d.cts +21 -0
  16. package/dist/Checkbox.d.ts +21 -0
  17. package/dist/Checkbox.js +1 -0
  18. package/dist/CodeBlock.cjs +1 -0
  19. package/dist/CodeBlock.d.cts +22 -0
  20. package/dist/CodeBlock.d.ts +22 -0
  21. package/dist/CodeBlock.js +1 -0
  22. package/dist/Dialog.cjs +1 -1
  23. package/dist/Dialog.js +1 -1
  24. package/dist/Dropdown.cjs +1 -1
  25. package/dist/Dropdown.d.cts +8 -0
  26. package/dist/Dropdown.d.ts +8 -0
  27. package/dist/Dropdown.js +1 -1
  28. package/dist/DropdownButton.cjs +1 -1
  29. package/dist/DropdownButton.js +1 -1
  30. package/dist/FileExplorer.cjs +1 -1
  31. package/dist/FileExplorer.js +1 -1
  32. package/dist/Input.cjs +1 -1
  33. package/dist/Input.js +1 -1
  34. package/dist/Label.cjs +1 -1
  35. package/dist/Label.js +1 -1
  36. package/dist/List.cjs +1 -1
  37. package/dist/List.d.cts +6 -2
  38. package/dist/List.d.ts +6 -2
  39. package/dist/List.js +1 -1
  40. package/dist/NavLink.cjs +1 -0
  41. package/dist/NavLink.d.cts +13 -0
  42. package/dist/NavLink.d.ts +13 -0
  43. package/dist/NavLink.js +1 -0
  44. package/dist/Panel.cjs +1 -1
  45. package/dist/Panel.js +1 -1
  46. package/dist/ProgressBar.cjs +1 -0
  47. package/dist/ProgressBar.d.cts +21 -0
  48. package/dist/ProgressBar.d.ts +21 -0
  49. package/dist/ProgressBar.js +1 -0
  50. package/dist/Radio.cjs +1 -0
  51. package/dist/Radio.d.cts +33 -0
  52. package/dist/Radio.d.ts +33 -0
  53. package/dist/Radio.js +1 -0
  54. package/dist/Spin.cjs +1 -0
  55. package/dist/Spin.d.cts +26 -0
  56. package/dist/Spin.d.ts +26 -0
  57. package/dist/Spin.js +1 -0
  58. package/dist/Switch.cjs +1 -0
  59. package/dist/Switch.d.cts +23 -0
  60. package/dist/Switch.d.ts +23 -0
  61. package/dist/Switch.js +1 -0
  62. package/dist/Table.cjs +1 -1
  63. package/dist/Table.d.cts +19 -3
  64. package/dist/Table.d.ts +19 -3
  65. package/dist/Table.js +1 -1
  66. package/dist/Tabs.cjs +1 -1
  67. package/dist/Tabs.js +1 -1
  68. package/dist/TextBox.cjs +1 -0
  69. package/dist/TextBox.d.cts +16 -0
  70. package/dist/TextBox.d.ts +16 -0
  71. package/dist/TextBox.js +1 -0
  72. package/dist/Tooltip.cjs +1 -1
  73. package/dist/Tooltip.js +1 -1
  74. package/dist/Tree.cjs +1 -1
  75. package/dist/Tree.d.cts +3 -1
  76. package/dist/Tree.d.ts +3 -1
  77. package/dist/Tree.js +1 -1
  78. package/dist/chunks/chunk-24YBOQFV.cjs +2 -0
  79. package/dist/chunks/chunk-2TTIBHQ3.js +1 -0
  80. package/dist/chunks/chunk-3B5OL3PD.cjs +2 -0
  81. package/dist/chunks/chunk-64BRBJ5M.js +1 -0
  82. package/dist/chunks/{chunk-NG7F3GCN.js → chunk-6DR7FZ4Y.js} +1 -1
  83. package/dist/chunks/{chunk-N36YROV3.js → chunk-7DM4FEFY.js} +1 -1
  84. package/dist/chunks/{chunk-4BKLB4KV.cjs → chunk-7PD2UMAG.cjs} +1 -1
  85. package/dist/chunks/chunk-7QV2AV32.cjs +1 -0
  86. package/dist/chunks/chunk-A7BECCRP.cjs +1 -0
  87. package/dist/chunks/{chunk-HA5QPLJP.cjs → chunk-A7SZGBY2.cjs} +1 -1
  88. package/dist/chunks/{chunk-ENRXEISR.js → chunk-BGUKKSPF.js} +1 -1
  89. package/dist/chunks/{chunk-VDC7N5TC.js → chunk-DCWKY33F.js} +1 -1
  90. package/dist/chunks/chunk-EQXC34N2.cjs +2 -0
  91. package/dist/chunks/chunk-FROZM2O6.js +1 -0
  92. package/dist/chunks/chunk-GQDGQUKK.js +1 -0
  93. package/dist/chunks/{chunk-BQLPFPCA.cjs → chunk-GT56J65P.cjs} +1 -1
  94. package/dist/chunks/{chunk-MXDZHU6E.cjs → chunk-GW4C7AV6.cjs} +2 -2
  95. package/dist/chunks/chunk-H35HQKON.js +2 -0
  96. package/dist/chunks/chunk-H6MHL66N.js +1 -0
  97. package/dist/chunks/{chunk-EK4BC3WT.cjs → chunk-HFHOE2PH.cjs} +1 -1
  98. package/dist/chunks/{chunk-JAKATE3I.js → chunk-HR4MRHSX.js} +1 -1
  99. package/dist/chunks/{chunk-7NYDMXZT.cjs → chunk-HSLG4VVI.cjs} +1 -1
  100. package/dist/chunks/{chunk-TDI2N27U.cjs → chunk-HSWWY3SE.cjs} +1 -1
  101. package/dist/chunks/{chunk-5PFWPAB6.js → chunk-I327TE7P.js} +1 -1
  102. package/dist/chunks/{chunk-6HZRNHE6.js → chunk-IPPWOV6D.js} +1 -1
  103. package/dist/chunks/chunk-K4UGTWDR.js +1 -0
  104. package/dist/chunks/chunk-KFQVZ2HC.cjs +1 -0
  105. package/dist/chunks/chunk-KG3IXPCM.js +2 -0
  106. package/dist/chunks/chunk-LCLJVRKK.cjs +1 -0
  107. package/dist/chunks/chunk-LZZTFSBF.js +1 -0
  108. package/dist/chunks/{chunk-GAK5OQW4.cjs → chunk-MSBDCLPM.cjs} +1 -1
  109. package/dist/chunks/{chunk-PODSD5UT.js → chunk-MVGDKSBE.js} +1 -1
  110. package/dist/chunks/{chunk-66LIYNLT.cjs → chunk-NFRGBE42.cjs} +1 -1
  111. package/dist/chunks/chunk-NI2HVXR2.js +1 -0
  112. package/dist/chunks/chunk-NXWDOFPX.cjs +1 -0
  113. package/dist/chunks/chunk-NYTZZ5ZX.cjs +1 -0
  114. package/dist/chunks/{chunk-U2ZQHP4I.cjs → chunk-OMBYGQJE.cjs} +1 -1
  115. package/dist/chunks/chunk-PC4PVKTK.js +2 -0
  116. package/dist/chunks/chunk-Q53OOZJ3.cjs +1 -0
  117. package/dist/chunks/chunk-R7ZKMSZ3.js +1 -0
  118. package/dist/chunks/{chunk-XCP37UUA.cjs → chunk-SJ2HIDEM.cjs} +1 -1
  119. package/dist/chunks/{chunk-AAFG7R4U.cjs → chunk-SKZIAHHY.cjs} +1 -1
  120. package/dist/chunks/{chunk-R2K6KI4L.js → chunk-T3WU6A7R.js} +1 -1
  121. package/dist/chunks/{chunk-NCJ5A6VE.js → chunk-VHOOZBWZ.js} +1 -1
  122. package/dist/chunks/chunk-W2JIAB3E.js +1 -0
  123. package/dist/chunks/chunk-WL4AMFUA.cjs +1 -0
  124. package/dist/chunks/chunk-WQA7PVJO.js +1 -0
  125. package/dist/chunks/{chunk-DXXCR4ON.js → chunk-X3PUHNVJ.js} +1 -1
  126. package/dist/chunks/chunk-X4OS5ODF.cjs +1 -0
  127. package/dist/chunks/chunk-XOZYC6XB.cjs +1 -0
  128. package/dist/chunks/{chunk-2DFUB3KN.js → chunk-YWD2VK35.js} +1 -1
  129. package/dist/chunks/chunk-ZEHGTD6Y.cjs +1 -0
  130. package/dist/index.cjs +1 -1
  131. package/dist/index.d.cts +12 -4
  132. package/dist/index.d.ts +12 -4
  133. package/dist/index.js +1 -1
  134. package/dist/styles/base.css +728 -0
  135. package/dist/styles/tokens.css +71 -0
  136. package/dist/styles.css +728 -0
  137. package/dist/theme.cjs +1 -1
  138. package/dist/theme.d.cts +32 -1
  139. package/dist/theme.d.ts +32 -1
  140. package/dist/theme.js +1 -1
  141. package/package.json +2 -1
  142. package/dist/chunks/chunk-5XPTHIGM.cjs +0 -1
  143. package/dist/chunks/chunk-63LKYF4D.cjs +0 -1
  144. package/dist/chunks/chunk-6OLB4BUJ.js +0 -1
  145. package/dist/chunks/chunk-ACQOSYBI.js +0 -1
  146. package/dist/chunks/chunk-BW6NCATH.js +0 -1
  147. package/dist/chunks/chunk-DWTXICFN.js +0 -1
  148. package/dist/chunks/chunk-ER2MYWQO.cjs +0 -1
  149. package/dist/chunks/chunk-NBLJWONR.cjs +0 -1
  150. package/dist/chunks/chunk-ORNYPP3O.cjs +0 -1
  151. package/dist/chunks/chunk-PSMWVB3O.js +0 -1
  152. package/dist/chunks/chunk-QLKUAE3R.cjs +0 -1
  153. package/dist/chunks/chunk-SMZQSZH2.js +0 -1
package/README.md CHANGED
@@ -26,7 +26,7 @@ Born out of a personal passion for **cross-platform desktop development**, Onyx
26
26
 
27
27
  ## Features
28
28
 
29
- - 🎨 **30+ components** — from Button → DataTable → CinePlayer
29
+ - 🎨 **30+ components** — from Button → DataTable → CinePlayer → CodeBlock
30
30
  - 🌗 **Dark / Light mode** — class-based, works out of the box
31
31
  - 🎯 **CSS variable design tokens** — override any color via `--cp-*`, `--mp-*`, `--fe-*` custom properties
32
32
  - ⚡ **Tailwind CSS v4** — zero config, `@theme` tokens, `color-mix()` accent support
@@ -185,6 +185,7 @@ import { CinePlayer } from '@jacshuo/onyx/CinePlayer';
185
185
  | **List / ListItem** | Styled list component |
186
186
  | **Tree / TreeItem** | Expandable tree view |
187
187
  | **Chat** | Chat message list with sent/received styling |
188
+ | **CodeBlock** | Syntax-highlighted code block powered by Shiki, supports 20+ languages, line numbers, and live editable mode |
188
189
 
189
190
  ### Navigation
190
191
 
@@ -192,6 +193,7 @@ import { CinePlayer } from '@jacshuo/onyx/CinePlayer';
192
193
  |---|---|
193
194
  | **SideNav** | Collapsible sidebar with icons, sections, and multiple collapse modes |
194
195
  | **Header** | App header with nav items and action buttons |
196
+ | **NavLink** | Semantic text link (`<a>`) with auto external-link detection, intent/size/underline variants |
195
197
  | **Tabs** | Tab bar with sliding indicator animation |
196
198
 
197
199
  ### Disclosure
@@ -406,6 +408,50 @@ function NotifyButton() {
406
408
  }
407
409
  ```
408
410
 
411
+ ### NavLink
412
+
413
+ ```tsx
414
+ import { NavLink } from '@jacshuo/onyx';
415
+
416
+ {/* Internal link */}
417
+ <NavLink href="/about">About</NavLink>
418
+
419
+ {/* Auto-detected external — shows icon + sets target="_blank" automatically */}
420
+ <NavLink href="https://github.com">GitHub</NavLink>
421
+
422
+ {/* Suppress external icon */}
423
+ <NavLink href="https://example.com" external={false}>Example</NavLink>
424
+
425
+ {/* Variants */}
426
+ <NavLink href="/docs" intent="secondary" size="lg" underline="always">Docs</NavLink>
427
+ ```
428
+
429
+ ### CodeBlock
430
+
431
+ ```tsx
432
+ import { CodeBlock } from '@jacshuo/onyx';
433
+
434
+ {/* Basic syntax highlighting */}
435
+ <CodeBlock code={`const x = 42;`} language="typescript" />
436
+
437
+ {/* With line numbers */}
438
+ <CodeBlock code={sourceCode} language="tsx" lineNumbers />
439
+
440
+ {/* Live editable editor */}
441
+ function Editor() {
442
+ const [code, setCode] = useState('console.log("hello")');
443
+ return (
444
+ <CodeBlock
445
+ code={code}
446
+ language="typescript"
447
+ editable
448
+ onCodeChange={setCode}
449
+ lineNumbers
450
+ />
451
+ );
452
+ }
453
+ ```
454
+
409
455
  ### MiniPlayer
410
456
 
411
457
  ```tsx
@@ -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 chunkSKZIAHHY_cjs=require('./chunks/chunk-SKZIAHHY.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.c}});
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-I327TE7P.js';import'./chunks/chunk-H6MHL66N.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 chunkZEHGTD6Y_cjs=require('./chunks/chunk-ZEHGTD6Y.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.a}});Object.defineProperty(exports,"AlertContent",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.d}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.e}});Object.defineProperty(exports,"AlertIcon",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.f}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunkZEHGTD6Y_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-GQDGQUKK.js';import'./chunks/chunk-H6MHL66N.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 chunkHFHOE2PH_cjs=require('./chunks/chunk-HFHOE2PH.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkHFHOE2PH_cjs.a}});
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-MVGDKSBE.js';import'./chunks/chunk-H6MHL66N.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 chunkGT56J65P_cjs=require('./chunks/chunk-GT56J65P.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkGT56J65P_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-7DM4FEFY.js';import'./chunks/chunk-H6MHL66N.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 chunkHSWWY3SE_cjs=require('./chunks/chunk-HSWWY3SE.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.g}});
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-X3PUHNVJ.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkXOZYC6XB_cjs=require('./chunks/chunk-XOZYC6XB.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Checkbox",{enumerable:true,get:function(){return chunkXOZYC6XB_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-64BRBJ5M.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunk3B5OL3PD_cjs=require('./chunks/chunk-3B5OL3PD.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"CodeBlock",{enumerable:true,get:function(){return chunk3B5OL3PD_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-PC4PVKTK.js';import'./chunks/chunk-H6MHL66N.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 chunkOMBYGQJE_cjs=require('./chunks/chunk-OMBYGQJE.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.d}});
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-VHOOZBWZ.js';import'./chunks/chunk-H6MHL66N.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 chunkQ53OOZJ3_cjs=require('./chunks/chunk-Q53OOZJ3.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunkQ53OOZJ3_cjs.a}});
@@ -34,11 +34,15 @@ interface DropdownSingleProps extends DropdownBaseProps {
34
34
  multiple?: false;
35
35
  /** Currently selected value (controlled, single mode). */
36
36
  value?: string;
37
+ /** Default selected value (uncontrolled, single mode). */
38
+ defaultValue?: string;
37
39
  /** Callback fired when an option is selected (single mode). */
38
40
  onChange?: (value: string, option: DropdownOption) => void;
39
41
  /** Not used in single mode. */
40
42
  selected?: never;
41
43
  /** Not used in single mode. */
44
+ defaultSelected?: never;
45
+ /** Not used in single mode. */
42
46
  onSelectionChange?: never;
43
47
  }
44
48
  interface DropdownMultipleProps extends DropdownBaseProps {
@@ -46,11 +50,15 @@ interface DropdownMultipleProps extends DropdownBaseProps {
46
50
  multiple: true;
47
51
  /** Currently selected values (controlled, multi mode). */
48
52
  selected?: string[];
53
+ /** Default selected values (uncontrolled, multi mode). */
54
+ defaultSelected?: string[];
49
55
  /** Callback fired when selection changes (multi mode). */
50
56
  onSelectionChange?: (selected: string[]) => void;
51
57
  /** Not used in multi mode. */
52
58
  value?: never;
53
59
  /** Not used in multi mode. */
60
+ defaultValue?: never;
61
+ /** Not used in multi mode. */
54
62
  onChange?: never;
55
63
  }
56
64
  type DropdownProps = DropdownSingleProps | DropdownMultipleProps;
@@ -34,11 +34,15 @@ interface DropdownSingleProps extends DropdownBaseProps {
34
34
  multiple?: false;
35
35
  /** Currently selected value (controlled, single mode). */
36
36
  value?: string;
37
+ /** Default selected value (uncontrolled, single mode). */
38
+ defaultValue?: string;
37
39
  /** Callback fired when an option is selected (single mode). */
38
40
  onChange?: (value: string, option: DropdownOption) => void;
39
41
  /** Not used in single mode. */
40
42
  selected?: never;
41
43
  /** Not used in single mode. */
44
+ defaultSelected?: never;
45
+ /** Not used in single mode. */
42
46
  onSelectionChange?: never;
43
47
  }
44
48
  interface DropdownMultipleProps extends DropdownBaseProps {
@@ -46,11 +50,15 @@ interface DropdownMultipleProps extends DropdownBaseProps {
46
50
  multiple: true;
47
51
  /** Currently selected values (controlled, multi mode). */
48
52
  selected?: string[];
53
+ /** Default selected values (uncontrolled, multi mode). */
54
+ defaultSelected?: string[];
49
55
  /** Callback fired when selection changes (multi mode). */
50
56
  onSelectionChange?: (selected: string[]) => void;
51
57
  /** Not used in multi mode. */
52
58
  value?: never;
53
59
  /** Not used in multi mode. */
60
+ defaultValue?: never;
61
+ /** Not used in multi mode. */
54
62
  onChange?: never;
55
63
  }
56
64
  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-LZZTFSBF.js';import'./chunks/chunk-H6MHL66N.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 chunk7PD2UMAG_cjs=require('./chunks/chunk-7PD2UMAG.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunk7PD2UMAG_cjs.a}});
@@ -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-HR4MRHSX.js';import'./chunks/chunk-H6MHL66N.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 chunkGW4C7AV6_cjs=require('./chunks/chunk-GW4C7AV6.cjs');require('./chunks/chunk-OMBYGQJE.cjs'),require('./chunks/chunk-GT56J65P.cjs'),require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunkGW4C7AV6_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-6DR7FZ4Y.js';import'./chunks/chunk-VHOOZBWZ.js';import'./chunks/chunk-7DM4FEFY.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Input.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkXCP37UUA_cjs=require('./chunks/chunk-XCP37UUA.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkXCP37UUA_cjs.a}});
1
+ 'use strict';var chunkSJ2HIDEM_cjs=require('./chunks/chunk-SJ2HIDEM.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkSJ2HIDEM_cjs.a}});
package/dist/Input.js CHANGED
@@ -1 +1 @@
1
- export{a as Input}from'./chunks/chunk-2DFUB3KN.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Input}from'./chunks/chunk-YWD2VK35.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Label.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkHA5QPLJP_cjs=require('./chunks/chunk-HA5QPLJP.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkHA5QPLJP_cjs.a}});
1
+ 'use strict';var chunkA7SZGBY2_cjs=require('./chunks/chunk-A7SZGBY2.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkA7SZGBY2_cjs.a}});
package/dist/Label.js CHANGED
@@ -1 +1 @@
1
- export{a as Label}from'./chunks/chunk-6HZRNHE6.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Label}from'./chunks/chunk-IPPWOV6D.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/List.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkORNYPP3O_cjs=require('./chunks/chunk-ORNYPP3O.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkORNYPP3O_cjs.a}});Object.defineProperty(exports,"ListItem",{enumerable:true,get:function(){return chunkORNYPP3O_cjs.b}});
1
+ 'use strict';var chunkNXWDOFPX_cjs=require('./chunks/chunk-NXWDOFPX.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkNXWDOFPX_cjs.a}});Object.defineProperty(exports,"ListItem",{enumerable:true,get:function(){return chunkNXWDOFPX_cjs.b}});
package/dist/List.d.cts CHANGED
@@ -6,6 +6,10 @@ import 'class-variance-authority/types';
6
6
 
7
7
  type ListProps = React.HTMLAttributes<HTMLUListElement> & VariantProps<typeof listVariants>;
8
8
  declare function List({ intent, className, ...props }: ListProps): react_jsx_runtime.JSX.Element;
9
- declare function ListItem({ className, ...props }: React.LiHTMLAttributes<HTMLLIElement>): react_jsx_runtime.JSX.Element;
9
+ type ListItemProps = React.LiHTMLAttributes<HTMLLIElement> & {
10
+ /** Action buttons rendered on the right side of the item. */
11
+ actions?: React.ReactNode;
12
+ };
13
+ declare function ListItem({ actions, className, children, ...props }: ListItemProps): react_jsx_runtime.JSX.Element;
10
14
 
11
- export { List, ListItem };
15
+ export { List, ListItem, type ListItemProps };
package/dist/List.d.ts CHANGED
@@ -6,6 +6,10 @@ import 'class-variance-authority/types';
6
6
 
7
7
  type ListProps = React.HTMLAttributes<HTMLUListElement> & VariantProps<typeof listVariants>;
8
8
  declare function List({ intent, className, ...props }: ListProps): react_jsx_runtime.JSX.Element;
9
- declare function ListItem({ className, ...props }: React.LiHTMLAttributes<HTMLLIElement>): react_jsx_runtime.JSX.Element;
9
+ type ListItemProps = React.LiHTMLAttributes<HTMLLIElement> & {
10
+ /** Action buttons rendered on the right side of the item. */
11
+ actions?: React.ReactNode;
12
+ };
13
+ declare function ListItem({ actions, className, children, ...props }: ListItemProps): react_jsx_runtime.JSX.Element;
10
14
 
11
- export { List, ListItem };
15
+ export { List, ListItem, type ListItemProps };
package/dist/List.js CHANGED
@@ -1 +1 @@
1
- export{a as List,b as ListItem}from'./chunks/chunk-DWTXICFN.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as List,b as ListItem}from'./chunks/chunk-NI2HVXR2.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunk24YBOQFV_cjs=require('./chunks/chunk-24YBOQFV.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"NavLink",{enumerable:true,get:function(){return chunk24YBOQFV_cjs.a}});
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { navLinkVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type NavLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<typeof navLinkVariants> & {
8
+ /** Show external-link icon. Defaults to `true` when `target="_blank"` or href starts with `http`. */
9
+ external?: boolean;
10
+ };
11
+ declare function NavLink({ intent, size, underline, external, className, children, href, target, rel, ...props }: NavLinkProps): react_jsx_runtime.JSX.Element;
12
+
13
+ export { NavLink };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { navLinkVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type NavLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<typeof navLinkVariants> & {
8
+ /** Show external-link icon. Defaults to `true` when `target="_blank"` or href starts with `http`. */
9
+ external?: boolean;
10
+ };
11
+ declare function NavLink({ intent, size, underline, external, className, children, href, target, rel, ...props }: NavLinkProps): react_jsx_runtime.JSX.Element;
12
+
13
+ export { NavLink };
@@ -0,0 +1 @@
1
+ export{a as NavLink}from'./chunks/chunk-KG3IXPCM.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Panel.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunk66LIYNLT_cjs=require('./chunks/chunk-66LIYNLT.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Panel",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.a}});Object.defineProperty(exports,"PanelContent",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.c}});Object.defineProperty(exports,"PanelHeader",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.b}});
1
+ 'use strict';var chunkNFRGBE42_cjs=require('./chunks/chunk-NFRGBE42.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Panel",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.a}});Object.defineProperty(exports,"PanelContent",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.c}});Object.defineProperty(exports,"PanelHeader",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.b}});
package/dist/Panel.js CHANGED
@@ -1 +1 @@
1
- export{a as Panel,c as PanelContent,b as PanelHeader}from'./chunks/chunk-VDC7N5TC.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
1
+ export{a as Panel,c as PanelContent,b as PanelHeader}from'./chunks/chunk-DCWKY33F.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkA7BECCRP_cjs=require('./chunks/chunk-A7BECCRP.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"ProgressBar",{enumerable:true,get:function(){return chunkA7BECCRP_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 { progressBarVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ type ProgressBarProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressBarVariants> & {
8
+ /** Current value 0–100 */
9
+ value?: number;
10
+ /** Show the percentage label inside the bar */
11
+ showLabel?: boolean;
12
+ /** Enable the indeterminate (loading) animation — ignores `value` */
13
+ indeterminate?: boolean;
14
+ /** Enable the shine / pulse glow animation on the fill */
15
+ animated?: boolean;
16
+ /** Duration of the value transition in ms @default 500 */
17
+ duration?: number;
18
+ };
19
+ declare function ProgressBar({ value, size, intent, edge, showLabel, indeterminate, animated, duration, className, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { ProgressBar, type ProgressBarProps };
@@ -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 { progressBarVariants } from './theme.js';
5
+ import 'class-variance-authority/types';
6
+
7
+ type ProgressBarProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressBarVariants> & {
8
+ /** Current value 0–100 */
9
+ value?: number;
10
+ /** Show the percentage label inside the bar */
11
+ showLabel?: boolean;
12
+ /** Enable the indeterminate (loading) animation — ignores `value` */
13
+ indeterminate?: boolean;
14
+ /** Enable the shine / pulse glow animation on the fill */
15
+ animated?: boolean;
16
+ /** Duration of the value transition in ms @default 500 */
17
+ duration?: number;
18
+ };
19
+ declare function ProgressBar({ value, size, intent, edge, showLabel, indeterminate, animated, duration, className, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
20
+
21
+ export { ProgressBar, type ProgressBarProps };
@@ -0,0 +1 @@
1
+ export{a as ProgressBar}from'./chunks/chunk-K4UGTWDR.js';import'./chunks/chunk-H6MHL66N.js';import'./chunks/chunk-AXBJKPZZ.js';
package/dist/Radio.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var chunkWL4AMFUA_cjs=require('./chunks/chunk-WL4AMFUA.cjs');require('./chunks/chunk-NYTZZ5ZX.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Radio",{enumerable:true,get:function(){return chunkWL4AMFUA_cjs.b}});Object.defineProperty(exports,"RadioGroup",{enumerable:true,get:function(){return chunkWL4AMFUA_cjs.a}});
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { radioVariants } from './theme.cjs';
5
+ import 'class-variance-authority/types';
6
+
7
+ interface RadioGroupProps {
8
+ /** Form field name shared by all radios. */
9
+ name?: string;
10
+ /** Controlled selected value. */
11
+ value?: string;
12
+ /** Default selected value (uncontrolled). */
13
+ defaultValue?: string;
14
+ /** Callback when selection changes. */
15
+ onValueChange?: (value: string) => void;
16
+ /** Shared intent for all child radios. */
17
+ intent?: VariantProps<typeof radioVariants>["intent"];
18
+ /** Shared size for all child radios. */
19
+ size?: VariantProps<typeof radioVariants>["size"];
20
+ disabled?: boolean;
21
+ className?: string;
22
+ children: React.ReactNode;
23
+ }
24
+ declare function RadioGroup({ name: nameProp, value: controlledValue, defaultValue, onValueChange, intent, size, disabled, className, children, }: RadioGroupProps): react_jsx_runtime.JSX.Element;
25
+ type RadioProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & Omit<VariantProps<typeof radioVariants>, "checked"> & {
26
+ /** The value of this radio option. */
27
+ value: string;
28
+ /** Accessible label text shown beside the radio. */
29
+ label?: string;
30
+ };
31
+ declare function Radio({ value, intent: intentProp, size: sizeProp, label, id: propId, className, disabled: disabledProp, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
32
+
33
+ export { Radio, RadioGroup, type RadioGroupProps, type RadioProps };