jenosize-ui 0.1.0 → 0.2.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 (169) hide show
  1. package/README.md +10 -7
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/area-chart.d.ts +53 -0
  4. package/dist/area-chart.js +8 -0
  5. package/dist/avatar.d.ts +19 -0
  6. package/dist/avatar.js +12 -7
  7. package/dist/badge.js +5 -5
  8. package/dist/bar-chart.d.ts +31 -0
  9. package/dist/bar-chart.js +8 -0
  10. package/dist/breadcrumb.js +3 -3
  11. package/dist/button.d.ts +11 -1
  12. package/dist/button.js +9 -8
  13. package/dist/calendar.js +14 -12
  14. package/dist/callout.js +10 -9
  15. package/dist/card.d.ts +52 -2
  16. package/dist/card.js +6 -2
  17. package/dist/checkbox.js +6 -5
  18. package/dist/chunk-34J5AANZ.js +605 -0
  19. package/dist/{chunk-D6TPWNRK.js → chunk-3GT43XPK.js} +5 -5
  20. package/dist/{chunk-3Y5X7B5C.js → chunk-3Z3SDKIA.js} +6 -11
  21. package/dist/{chunk-MQGD2OUF.js → chunk-42FCPC77.js} +3 -3
  22. package/dist/{chunk-Z3ETJN5G.js → chunk-4BRMM3I5.js} +6 -11
  23. package/dist/{chunk-WZQFC7ZN.js → chunk-4HKDD3PR.js} +55 -16
  24. package/dist/chunk-4K6V6NNK.js +169 -0
  25. package/dist/{chunk-ZZA2LUTL.js → chunk-4R7WDDCW.js} +41 -16
  26. package/dist/{chunk-BJUZVYQC.js → chunk-4W6AYGLR.js} +12 -12
  27. package/dist/{chunk-4OLULPQG.js → chunk-54S5CUY6.js} +8 -5
  28. package/dist/{chunk-GRLSUQQE.js → chunk-5JRM3OES.js} +4 -4
  29. package/dist/chunk-5ZPUAGOP.js +19 -0
  30. package/dist/{chunk-W5GGOUUI.js → chunk-6HJA7NPL.js} +3 -3
  31. package/dist/{chunk-CME4DIML.js → chunk-6IUTVDNI.js} +22 -3
  32. package/dist/chunk-6UBYHSBX.js +147 -0
  33. package/dist/{chunk-HMUZE6EK.js → chunk-74HPBSVY.js} +3 -3
  34. package/dist/chunk-75M43ELV.js +366 -0
  35. package/dist/chunk-763VS2FY.js +10 -0
  36. package/dist/chunk-7HV6EIGZ.js +26 -0
  37. package/dist/chunk-7VLYQR4D.js +44 -0
  38. package/dist/{chunk-D5BTFSL7.js → chunk-A46ED5JQ.js} +3 -3
  39. package/dist/{chunk-W46K56XU.js → chunk-A5WQLN4B.js} +8 -24
  40. package/dist/chunk-AC6ZWKRN.js +23 -0
  41. package/dist/{chunk-E7ZSWBAK.js → chunk-BD5YKFRA.js} +4 -4
  42. package/dist/chunk-BLIZ3CL3.js +49 -0
  43. package/dist/{chunk-DRZCJCBO.js → chunk-BNIWT6CW.js} +4 -4
  44. package/dist/{chunk-JVJRHBTD.js → chunk-C6OTOTKI.js} +21 -8
  45. package/dist/chunk-CTENRS34.js +60 -0
  46. package/dist/{chunk-7IU5TMFL.js → chunk-CWMFEF6R.js} +75 -27
  47. package/dist/{chunk-JTNFJLIY.js → chunk-DCGTB7P7.js} +13 -13
  48. package/dist/{chunk-GFOAJVW5.js → chunk-DJYWPJZ3.js} +3 -3
  49. package/dist/{chunk-MUFHLP4S.js → chunk-DTMYD63D.js} +11 -22
  50. package/dist/{chunk-KDLPXXD2.js → chunk-EDOUI2BG.js} +4 -4
  51. package/dist/{chunk-R6RGJF4L.js → chunk-EDT5J5WK.js} +4 -4
  52. package/dist/{chunk-PWKWNDBS.js → chunk-EX374YWB.js} +6 -6
  53. package/dist/{chunk-F2K7VJUV.js → chunk-FFTRB2UU.js} +4 -4
  54. package/dist/chunk-FIGBJGH2.js +1474 -0
  55. package/dist/chunk-FKVPAEJ6.js +57 -0
  56. package/dist/{chunk-J7ZQQFPT.js → chunk-FZBZGA3P.js} +17 -17
  57. package/dist/{chunk-T7FCG7XV.js → chunk-GAFGIT4Q.js} +10 -10
  58. package/dist/chunk-HSVBTIP2.js +482 -0
  59. package/dist/{chunk-FHHAPGCR.js → chunk-ILICYNK7.js} +3 -3
  60. package/dist/{chunk-WFY7DKQD.js → chunk-JAVNGTOE.js} +9 -14
  61. package/dist/{chunk-7HOIZ3UO.js → chunk-JMWYCT63.js} +6 -6
  62. package/dist/{chunk-QA74ITR4.js → chunk-JUWDRRD6.js} +45 -17
  63. package/dist/{chunk-BVJWBYIG.js → chunk-JXHZHUB3.js} +4 -4
  64. package/dist/{chunk-VWC72TR3.js → chunk-JYBGO6GY.js} +7 -7
  65. package/dist/{chunk-J36M3KRX.js → chunk-L53Y7KUV.js} +13 -11
  66. package/dist/chunk-LBYCCLVI.js +33 -0
  67. package/dist/chunk-LCG34A5T.js +98 -0
  68. package/dist/chunk-M5TVCASC.js +75 -0
  69. package/dist/chunk-MCUASLZH.js +10 -0
  70. package/dist/{chunk-5RAPA22E.js → chunk-MD4AR43X.js} +4 -4
  71. package/dist/{chunk-JP26LPCY.js → chunk-MYQ3FD4Y.js} +25 -11
  72. package/dist/chunk-NA35YZRD.js +252 -0
  73. package/dist/chunk-NKDW6C7K.js +10 -0
  74. package/dist/{chunk-5NOBSXJN.js → chunk-NMERLWT7.js} +6 -6
  75. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  76. package/dist/{chunk-LME57Z6J.js → chunk-P7DH62UY.js} +6 -6
  77. package/dist/chunk-PO2TYK3C.js +17 -0
  78. package/dist/{chunk-5FATN5YD.js → chunk-PXEJ5RKO.js} +4 -4
  79. package/dist/{chunk-JYGR44ZC.js → chunk-QBHQOX23.js} +6 -6
  80. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  81. package/dist/{chunk-J2BCKBHC.js → chunk-QKDEQFOQ.js} +4 -4
  82. package/dist/{chunk-ZOOX3TUB.js → chunk-RIXEUAPY.js} +5 -5
  83. package/dist/{chunk-THC2ISYP.js → chunk-RNXRZGXN.js} +4 -4
  84. package/dist/{chunk-7EWQKTNQ.js → chunk-T2WAD4QP.js} +15 -13
  85. package/dist/{chunk-KNYKWUYX.js → chunk-TBN644IN.js} +3 -3
  86. package/dist/{chunk-MKC5HNA7.js → chunk-USL3TDZM.js} +101 -90
  87. package/dist/{chunk-CYPPEUX5.js → chunk-VEOYCAJP.js} +4 -9
  88. package/dist/{chunk-WEUJYDCV.js → chunk-VH35QHD4.js} +6 -6
  89. package/dist/chunk-VWGAMOSE.js +188 -0
  90. package/dist/{chunk-SV56BSUQ.js → chunk-WKWAUU64.js} +4 -4
  91. package/dist/chunk-X2X7Q7NW.js +17 -0
  92. package/dist/{chunk-I7WU4GTY.js → chunk-YLEHYDXC.js} +5 -5
  93. package/dist/combobox.js +12 -10
  94. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  95. package/dist/date-input.js +9 -8
  96. package/dist/date-picker.js +20 -17
  97. package/dist/dialog.d.ts +16 -4
  98. package/dist/dialog.js +8 -6
  99. package/dist/drawer.d.ts +9 -2
  100. package/dist/drawer.js +7 -5
  101. package/dist/dropdown-menu.d.ts +14 -2
  102. package/dist/dropdown-menu.js +7 -3
  103. package/dist/dropzone.d.ts +34 -0
  104. package/dist/dropzone.js +22 -0
  105. package/dist/form.d.ts +78 -0
  106. package/dist/form.js +176 -32
  107. package/dist/header-navigation.d.ts +15 -4
  108. package/dist/header-navigation.js +19 -14
  109. package/dist/index.d.ts +26 -4
  110. package/dist/index.js +76 -56
  111. package/dist/indicator.js +4 -4
  112. package/dist/input.js +8 -7
  113. package/dist/kanban-board.d.ts +549 -0
  114. package/dist/kanban-board.js +23 -0
  115. package/dist/line-chart.d.ts +35 -0
  116. package/dist/line-chart.js +8 -0
  117. package/dist/{nav-Bla0o_-1.d.ts → nav-DcCyt00p.d.ts} +8 -11
  118. package/dist/number-input.js +8 -7
  119. package/dist/pagination.js +12 -9
  120. package/dist/panel-El4oI68p.d.ts +9 -0
  121. package/dist/payment-input.js +8 -7
  122. package/dist/pie-chart.d.ts +60 -0
  123. package/dist/pie-chart.js +8 -0
  124. package/dist/popover.d.ts +9 -3
  125. package/dist/popover.js +7 -5
  126. package/dist/progress-steps.d.ts +275 -0
  127. package/dist/progress-steps.js +8 -0
  128. package/dist/progress.js +2 -2
  129. package/dist/radar-chart.d.ts +73 -0
  130. package/dist/radar-chart.js +8 -0
  131. package/dist/radial-chart.d.ts +69 -0
  132. package/dist/radial-chart.js +8 -0
  133. package/dist/radio.js +6 -5
  134. package/dist/rule-BqzaIwJy.d.ts +80 -0
  135. package/dist/scroll-area.d.ts +62 -0
  136. package/dist/scroll-area.js +7 -0
  137. package/dist/select.d.ts +1 -2
  138. package/dist/select.js +15 -13
  139. package/dist/separator.d.ts +114 -0
  140. package/dist/separator.js +5 -0
  141. package/dist/sidebar-navigation.d.ts +54 -7
  142. package/dist/sidebar-navigation.js +15 -8
  143. package/dist/skeleton.d.ts +61 -0
  144. package/dist/skeleton.js +5 -0
  145. package/dist/styles.css +1 -1
  146. package/dist/surface-DFyDnrTJ.d.ts +34 -0
  147. package/dist/switch.js +2 -2
  148. package/dist/table.d.ts +94 -38
  149. package/dist/table.js +32 -28
  150. package/dist/tabs.js +2 -2
  151. package/dist/tag-input.js +11 -10
  152. package/dist/tag.js +3 -3
  153. package/dist/textarea.js +6 -5
  154. package/dist/theme.css +82 -0
  155. package/dist/theme.js +10 -9
  156. package/dist/toast.js +10 -9
  157. package/dist/tooltip-surface-Dmvb8v5K.d.ts +35 -0
  158. package/dist/tooltip.d.ts +15 -1
  159. package/dist/tooltip.js +3 -2
  160. package/dist/tree.js +6 -5
  161. package/dist/types-6kvYwtRH.d.ts +156 -0
  162. package/dist/use-uploads-ButS4dGe.d.ts +473 -0
  163. package/dist/verification-code-input.d.ts +84 -0
  164. package/dist/verification-code-input.js +13 -0
  165. package/package.json +59 -9
  166. package/dist/card-nWicloNi.d.ts +0 -80
  167. package/dist/chunk-24TO7E32.js +0 -42
  168. package/dist/chunk-FXIBGTS5.js +0 -14
  169. package/dist/chunk-ZZT2E5VT.js +0 -24
@@ -1,15 +1,16 @@
1
- "use client";export { NumberInput } from './chunk-JYGR44ZC.js';
1
+ "use client";export { NumberInput } from './chunk-QBHQOX23.js';
2
2
  import './chunk-7EUAMHMU.js';
3
- import './chunk-QA74ITR4.js';
4
- import './chunk-KNYKWUYX.js';
3
+ import './chunk-JUWDRRD6.js';
4
+ import './chunk-TBN644IN.js';
5
5
  import './chunk-52IFGFTL.js';
6
6
  import './chunk-O2LG3PNI.js';
7
7
  import './chunk-EDSK6FEH.js';
8
- import './chunk-J2BCKBHC.js';
9
- import './chunk-24TO7E32.js';
10
- import './chunk-ZZA2LUTL.js';
8
+ import './chunk-QKDEQFOQ.js';
9
+ import './chunk-4R7WDDCW.js';
10
+ import './chunk-AC6ZWKRN.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
12
+ import './chunk-BLIZ3CL3.js';
13
+ import './chunk-QDYE5LVT.js';
13
14
  import './chunk-ZSNJ6UA3.js';
14
15
  //# sourceMappingURL=number-input.js.map
15
16
  //# sourceMappingURL=number-input.js.map
@@ -1,17 +1,20 @@
1
- "use client";export { Pagination, pageWindow } from './chunk-WFY7DKQD.js';
2
- import './chunk-7HOIZ3UO.js';
1
+ "use client";export { Pagination, pageWindow } from './chunk-JAVNGTOE.js';
2
+ import './chunk-7VLYQR4D.js';
3
+ import './chunk-LCG34A5T.js';
4
+ import './chunk-JMWYCT63.js';
3
5
  import './chunk-7EUAMHMU.js';
4
- import './chunk-LME57Z6J.js';
5
- import './chunk-QA74ITR4.js';
6
- import './chunk-KNYKWUYX.js';
6
+ import './chunk-P7DH62UY.js';
7
+ import './chunk-JUWDRRD6.js';
8
+ import './chunk-TBN644IN.js';
7
9
  import './chunk-52IFGFTL.js';
8
10
  import './chunk-O2LG3PNI.js';
9
11
  import './chunk-EDSK6FEH.js';
10
- import './chunk-J2BCKBHC.js';
11
- import './chunk-24TO7E32.js';
12
- import './chunk-ZZA2LUTL.js';
12
+ import './chunk-QKDEQFOQ.js';
13
+ import './chunk-4R7WDDCW.js';
14
+ import './chunk-AC6ZWKRN.js';
13
15
  import './chunk-O4GRKO3I.js';
14
- import './chunk-GCVA3OIV.js';
16
+ import './chunk-BLIZ3CL3.js';
17
+ import './chunk-QDYE5LVT.js';
15
18
  import './chunk-ZSNJ6UA3.js';
16
19
  //# sourceMappingURL=pagination.js.map
17
20
  //# sourceMappingURL=pagination.js.map
@@ -0,0 +1,9 @@
1
+ import { R as RuleTexture } from './rule-BqzaIwJy.js';
2
+
3
+ /**
4
+ * How a panel's header/footer rules are drawn — the library-wide texture vocabulary plus the named
5
+ * off state. See {@link PanelChromeProps.dividers}.
6
+ */
7
+ type PanelDividers = RuleTexture | "none";
8
+
9
+ export type { PanelDividers as P };
@@ -1,15 +1,16 @@
1
- "use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-D6TPWNRK.js';
1
+ "use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-3GT43XPK.js';
2
2
  import './chunk-7EUAMHMU.js';
3
- import './chunk-QA74ITR4.js';
4
- import './chunk-KNYKWUYX.js';
3
+ import './chunk-JUWDRRD6.js';
4
+ import './chunk-TBN644IN.js';
5
5
  import './chunk-52IFGFTL.js';
6
6
  import './chunk-O2LG3PNI.js';
7
7
  import './chunk-EDSK6FEH.js';
8
- import './chunk-J2BCKBHC.js';
9
- import './chunk-24TO7E32.js';
10
- import './chunk-ZZA2LUTL.js';
8
+ import './chunk-QKDEQFOQ.js';
9
+ import './chunk-4R7WDDCW.js';
10
+ import './chunk-AC6ZWKRN.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
12
+ import './chunk-BLIZ3CL3.js';
13
+ import './chunk-QDYE5LVT.js';
13
14
  import './chunk-ZSNJ6UA3.js';
14
15
  //# sourceMappingURL=payment-input.js.map
15
16
  //# sourceMappingURL=payment-input.js.map
@@ -0,0 +1,60 @@
1
+ import * as React from 'react';
2
+ import { c as ChartDatum, P as PieDonut, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-6kvYwtRH.js';
3
+ import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
4
+
5
+ interface PieChartProps {
6
+ data: readonly ChartDatum[];
7
+ /**
8
+ * The centre: how fat the ring is, or `false` for a solid disc.
9
+ *
10
+ * ONE union rather than a boolean plus a separate `thickness`, which could spell
11
+ * `donut={false} thickness="thick"` — a contradiction only a dev-warn could police. The band is a
12
+ * FRACTION of the radius (`PIE_DONUT`), so it stays proportional across the `size` ladder.
13
+ *
14
+ * @default "regular" — the reference's pie, and the only ring it draws.
15
+ */
16
+ donut?: PieDonut;
17
+ /**
18
+ * The radius ladder. **This also sets the height** — a donut's box is its diameter, so a pie sized
19
+ * by an arbitrary pixel height would just letterbox. It is the one chart in the family with no
20
+ * `height` prop.
21
+ *
22
+ * @default "md"
23
+ */
24
+ size?: ChartSize;
25
+ /** @default "brand" */
26
+ palette?: ChartPalette;
27
+ /** @default "bottom" */
28
+ legend?: ChartLegendPlacement;
29
+ /** @default (v) => v.toLocaleString() */
30
+ formatValue?: (value: number) => string;
31
+ /** @default true */
32
+ tooltip?: boolean;
33
+ /**
34
+ * The hover tooltip's surface — the same union `<Tooltip>` takes, so a chart tooltip and a real
35
+ * tooltip on the same page are one object. **Both members are correct in both themes**; this is
36
+ * not a theme switch, the light/dark split already lives in the tokens.
37
+ *
38
+ * - `surface` — a raised panel (default), like every other floating readout in the library.
39
+ * - `inverse` — the always-dark chip. For a chart on a dark stage or over imagery.
40
+ *
41
+ * @default "surface"
42
+ */
43
+ tooltipTone?: TooltipTone;
44
+ /** @default "No data to display" */
45
+ emptyMessage?: string;
46
+ /** Names the figure and captions the screen-reader data table. */
47
+ "aria-label"?: string;
48
+ /** **Layout/spacing only**, merged via `cn()`. Never restyles a slice or the legend. */
49
+ className?: string;
50
+ }
51
+ /**
52
+ * A part-to-whole breakdown.
53
+ *
54
+ * Built on a hidden recharts engine — none of its vocabulary is public, there are no compound parts
55
+ * and there is no prop passthrough. Chrome is plot-only: the caller wraps it in a `<Card>` and
56
+ * writes their own header.
57
+ */
58
+ declare function PieChart({ data, donut, size, palette, legend, formatValue, tooltip, tooltipTone, emptyMessage, className, "aria-label": ariaLabel, }: PieChartProps): React.JSX.Element;
59
+
60
+ export { PieChart, type PieChartProps };
@@ -0,0 +1,8 @@
1
+ "use client";export { PieChart } from './chunk-CTENRS34.js';
2
+ import './chunk-LBYCCLVI.js';
3
+ import './chunk-75M43ELV.js';
4
+ import './chunk-AC6ZWKRN.js';
5
+ import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZSNJ6UA3.js';
7
+ //# sourceMappingURL=pie-chart.js.map
8
+ //# sourceMappingURL=pie-chart.js.map
package/dist/popover.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { b as PopoverSide, P as PopoverAlign, c as PopoverSize, a as PopoverFooter } from './shared-BYXJPnsN.js';
3
+ import { P as PanelDividers } from './panel-El4oI68p.js';
4
+ import './rule-BqzaIwJy.js';
3
5
 
4
6
  interface PopoverProps {
5
7
  /** Opens the popover from your own element (e.g. a `<Button>`) and wires focus-return
@@ -24,9 +26,13 @@ interface PopoverProps {
24
26
  /** Render the top-right close icon button. A popover already dismisses on outside-press
25
27
  * and Esc and sits beside its trigger, so this is off unless you ask for it. @default false */
26
28
  showClose?: boolean;
27
- /** Draw a full-bleed hairline between the header and body, and the body and footer. Reads as
28
- * a fence rather than a section across a short surface, so it is off by default. @default false */
29
- dividers?: boolean;
29
+ /**
30
+ * Full-bleed rule between the header and body, and the body and footer — in the library-wide
31
+ * texture vocabulary (`line` · `dot` · `dashed`), with `"none"` naming the off state. All three
32
+ * draw the same token; the texture changes the ink, never the colour. See `docs/rule-policy.md`.
33
+ * @default "none"
34
+ */
35
+ dividers?: PanelDividers;
30
36
  /** Enter a modal state when open — scrim-free focus trap plus scroll lock, so `Tab` stays
31
37
  * inside. Off by default: non-modal is what lets a footer or a preset rail be reachable
32
38
  * without a trap, and it is the structural difference from `Dialog`. @default false */
package/dist/popover.js CHANGED
@@ -1,14 +1,16 @@
1
- "use client";export { Popover } from './chunk-3Y5X7B5C.js';
2
- import './chunk-CYPPEUX5.js';
3
- import './chunk-J7ZQQFPT.js';
1
+ "use client";export { Popover } from './chunk-3Z3SDKIA.js';
2
+ import './chunk-VEOYCAJP.js';
3
+ import './chunk-FZBZGA3P.js';
4
4
  import './chunk-MFJP5FA7.js';
5
- import './chunk-MQGD2OUF.js';
5
+ import './chunk-LCG34A5T.js';
6
+ import './chunk-42FCPC77.js';
6
7
  import './chunk-S7NNXWIN.js';
8
+ import './chunk-FKVPAEJ6.js';
7
9
  import './chunk-52IFGFTL.js';
8
10
  import './chunk-O2LG3PNI.js';
9
11
  import './chunk-EDSK6FEH.js';
10
- import './chunk-24TO7E32.js';
11
12
  import './chunk-O4GRKO3I.js';
13
+ import './chunk-BLIZ3CL3.js';
12
14
  import './chunk-ZSNJ6UA3.js';
13
15
  //# sourceMappingURL=popover.js.map
14
16
  //# sourceMappingURL=popover.js.map
@@ -0,0 +1,275 @@
1
+ import * as React from 'react';
2
+ import { R as RuleTexture } from './rule-BqzaIwJy.js';
3
+
4
+ /**
5
+ * What a step IS, at a point in time. Five named states, not a pair of booleans — `complete` and
6
+ * `current` are not independent switches (a step you completed and came back to is both), and
7
+ * `error`/`skipped` are answers to the same question, so they belong in one union.
8
+ *
9
+ * - **`incomplete`** — not reached yet, or reached and left without completing.
10
+ * - **`current`** — where the user is now. Exactly one step per rail.
11
+ * - **`complete`** — its `validate` passed (or the caller said so). A FACT, not a position:
12
+ * going back does not un-complete it.
13
+ * - **`error`** — a live `validate` failure, or a caller-set `status: "error"`.
14
+ * - **`skipped`** — the flow legitimately went past it. Caller-set only; position cannot know.
15
+ */
16
+ type StepStatus = "incomplete" | "current" | "complete" | "error" | "skipped";
17
+ /**
18
+ * What a step's status can be OVERRIDDEN to.
19
+ *
20
+ * Deliberately NOT the whole {@link StepStatus} union: position already derives `incomplete`,
21
+ * `current` and `complete`, and letting a caller write `status: "current"` would invent a second
22
+ * owner for the one thing `useSteps` exists to hold. These two are exactly what position cannot
23
+ * know — a step the SERVER rejected, and one the flow legitimately jumped.
24
+ */
25
+ type StepStatusOverride = Extract<StepStatus, "error" | "skipped">;
26
+ interface StepItem<V extends string = string> {
27
+ /**
28
+ * Stable identity. **Required** — `current`, `completed`, `errors` and `visited` are all keyed
29
+ * by it, and it is what makes the generic `V` bite (an `as const` items table narrows every
30
+ * value-side option to the values you actually declared).
31
+ */
32
+ value: V;
33
+ /** The visible name. Free text (`OPEN_BY_DESIGN`: `free-text`). */
34
+ label: string;
35
+ /**
36
+ * The muted second line under the label.
37
+ *
38
+ * `description` is Dialog's word for a paragraph under a title, and the reference's own word —
39
+ * not `supporting` (the listbox word, which carries a value's metadata) and not `hint` (the
40
+ * field word, which is guidance for an input). Free text (`OPEN_BY_DESIGN`: `free-text`).
41
+ */
42
+ description?: string;
43
+ /**
44
+ * The marker glyph under `marker="icon"`. Ignored by every other `marker` value; a step with no
45
+ * `icon` under `marker="icon"` falls back to its NUMBER rather than to an empty box.
46
+ *
47
+ * **Not a slot.** AGENTS §4 exempts a single-icon control's `icon` from the `leading`/`trailing`
48
+ * rule (the `ButtonUtility` precedent) — there is one glyph, it has one position, and there is no
49
+ * trailing counterpart to be symmetric with. It therefore does not go through `<Slot>`.
50
+ */
51
+ icon?: React.ReactNode;
52
+ /** Inert: never focusable, never a valid `goTo` target, faded. */
53
+ disabled?: boolean;
54
+ /**
55
+ * Overrides the derived status. **Only for what POSITION cannot know** — a step the server
56
+ * rejected, or one the flow legitimately skipped.
57
+ *
58
+ * `"error"` here is STICKY: it outranks everything except a live `validate` failure and only the
59
+ * caller can clear it. A `validate` failure is not sticky — it lives in `errors` and clears on
60
+ * the next successful attempt.
61
+ */
62
+ status?: StepStatusOverride;
63
+ /**
64
+ * Gate LEAVING this step. Return the error message, or `null` when it passes.
65
+ *
66
+ * Mirrors §6's Field contract exactly: a non-empty message IMPLIES invalid. The hook never calls
67
+ * this on entry or on render — only on a move that leaves the step (`next()`, and a forward
68
+ * `goTo` under `navigation="linear"`), because eager validation fires async work during render
69
+ * and paints a step red before the user has typed anything.
70
+ */
71
+ validate?: () => string | null | Promise<string | null>;
72
+ /**
73
+ * The panel body, rendered by `<StepPanel>`. A function is evaluated **lazily**, only on first
74
+ * mount, and cached for that panel's lifetime — Tabs' proven shape.
75
+ */
76
+ content?: React.ReactNode | (() => React.ReactNode);
77
+ /** Layout/spacing for THIS step's `<li>` only, merged via `cn()`. Never restyles internals. */
78
+ className?: string;
79
+ }
80
+ /**
81
+ * **THE status table.** Precedence, highest first:
82
+ *
83
+ * 1. a LIVE `validate` failure → `"error"`
84
+ * 2. `item.status` override → `"error" | "skipped"`
85
+ * 3. `completed.has(value)` → `"complete"`
86
+ * 4. `value === current` → `"current"`
87
+ * 5. otherwise → `"incomplete"`
88
+ *
89
+ * **Rung 3 outranks rung 4 deliberately**, and it is the subtle one: the CURRENT step may also be
90
+ * complete — you finished it, then came Back. `"complete"` is the honest answer, because it is a
91
+ * fact about the work while `"current"` is a fact about the cursor. The rail therefore asks the
92
+ * two questions SEPARATELY (`statusOf(v)` for the fill, `steps.current === v` for the halo) and
93
+ * draws both; see `03-rail.md` § "current AND complete".
94
+ *
95
+ * Rung 1 outranks rung 2 so that a caller's sticky `status: "error"` cannot mask a fresher, more
96
+ * specific failure message the user just produced.
97
+ */
98
+ declare function resolveStepStatus<V extends string>(args: {
99
+ value: V;
100
+ current: V;
101
+ completed: ReadonlySet<V>;
102
+ errors: ReadonlyMap<V, string>;
103
+ override?: StepStatusOverride;
104
+ }): StepStatus;
105
+ /** `value` → item. Memoised by the hook per `items` identity so lookups are not O(n) per row. */
106
+ declare function buildStepMap<V extends string>(items: readonly StepItem<V>[]): ReadonlyMap<V, StepItem<V>>;
107
+ /** The first non-disabled item's value — the uncontrolled seed. Tabs' `items.find(…)` precedent. */
108
+ declare function firstEnabledStep<V extends string>(items: readonly StepItem<V>[]): V | undefined;
109
+
110
+ /**
111
+ * What stands in for each step.
112
+ *
113
+ * The first four are the round/rounded marker family. **`bar` is the odd member and owns its whole
114
+ * layout**: it draws no marker at all — a 4px rule across the top of the cell (down its left, when
115
+ * vertical) with the label beneath it — so the text goes LEFT rather than centred, the cells take a
116
+ * real gap ({@link LIST_BAR}) because the bars themselves tile the rail, and `connector` is ignored,
117
+ * there being nothing between two adjacent bars to draw. Per AGENTS §4 the member owns every
118
+ * behaviour derived from it, and those behaviours live in {@link BAR} / {@link BAR_STATUS} /
119
+ * {@link BAR_BODY} rather than being re-derived from the string anywhere else.
120
+ */
121
+ type StepMarker = "dot" | "number" | "icon" | "featured" | "bar";
122
+ /**
123
+ * How the run between two steps is drawn — the library-wide texture vocabulary (`src/lib/rule.ts`,
124
+ * the same one `<Separator>` and a panel's `dividers` take) plus the named off state.
125
+ *
126
+ * The connector is the one host where all three read cleanly at full strength: it is a 2px bar, not
127
+ * a hairline, so a true 3-on/3-off dash renders crisply — and `dot` takes a third px on top of that
128
+ * ({@link CONNECTOR_WEIGHT}) so its dot has somewhere to go when the paint rect snaps.
129
+ */
130
+ type StepConnector = RuleTexture | "none";
131
+ type StepOrientation = "horizontal" | "vertical";
132
+ type StepSize = "sm" | "md" | "lg";
133
+
134
+ interface UseStepsOptions<V extends string = string> {
135
+ /** The steps, in order. The ONE data channel — the views have none. */
136
+ items: readonly StepItem<V>[];
137
+ /** Controlled current step. Checked against `items` — `NoInfer` keeps it out of inference so
138
+ * the union cannot widen to admit a value you never declared. */
139
+ value?: NoInfer<V>;
140
+ /** Uncontrolled seed, read once. @default the first non-disabled item */
141
+ defaultValue?: NoInfer<V>;
142
+ onValueChange?: (value: V) => void;
143
+ /** Uncontrolled seed — how a half-finished wizard is RESTORED from storage. */
144
+ defaultCompleted?: readonly NoInfer<V>[];
145
+ /** Controlled completed set. A `Set` or an array — both are accepted. */
146
+ completed?: ReadonlySet<NoInfer<V>> | readonly NoInfer<V>[];
147
+ /** Fires with the whole new set — how a half-finished wizard is PERSISTED. */
148
+ onCompletedChange?: (completed: ReadonlySet<V>) => void;
149
+ }
150
+ interface UseStepsResult<V extends string = string> {
151
+ /** Echoed back — the views never get a second data channel (AGENTS §11). */
152
+ items: readonly StepItem<V>[];
153
+ /**
154
+ * The id prefix both views derive their element ids from (`stepLabelId`).
155
+ *
156
+ * It lives HERE because the hook instance is the ONLY thing `<ProgressSteps>` and `<StepPanel>`
157
+ * share: a `useId()` in each would give the panel's `aria-labelledby` a base the rail's label
158
+ * never used, so every panel would point at an id that does not exist. Sharing the FUNCTION is
159
+ * not enough — the base has to be shared too.
160
+ */
161
+ id: string;
162
+ current: V;
163
+ /** Position of `current` in `items`. `-1` only for an empty `items`. */
164
+ currentIndex: number;
165
+ /**
166
+ * The current item.
167
+ *
168
+ * `undefined` ONLY for an empty `items` array, which is degenerate but must not crash. Typed
169
+ * honestly rather than asserted non-null: a type that is TIGHTER than the truth is the same
170
+ * defect as one that is looser (AGENTS §4).
171
+ */
172
+ currentItem: StepItem<V> | undefined;
173
+ /** Steps whose work is done. A FACT, not a position — going Back does not shrink it. */
174
+ completed: ReadonlySet<V>;
175
+ /** Live `validate` failures, value → message. Distinct from a sticky `item.status: "error"`. */
176
+ errors: ReadonlyMap<V, string>;
177
+ /** No enabled step BEFORE `current` — i.e. `back()` would do nothing. */
178
+ isFirst: boolean;
179
+ /** No enabled step AFTER `current` — i.e. `next()` cannot advance. Label your button from this. */
180
+ isLast: boolean;
181
+ /** True while a `validate()` is in flight. Drives `<Button loading={steps.validating}>`. */
182
+ validating: boolean;
183
+ /**
184
+ * Every panel value mounted at least once. Owned HERE so `mount="visited"` in `<StepPanel>` is a
185
+ * pure read — a second visited set in the view would be a desyncable axis.
186
+ */
187
+ visited: ReadonlySet<V>;
188
+ statusOf: (value: V) => StepStatus;
189
+ /** Validates the current step, then advances. Resolves `false` if blocked or already last. */
190
+ next: () => Promise<boolean>;
191
+ /** Never validates. No-op at the first step. */
192
+ back: () => void;
193
+ /**
194
+ * Jump to any step. A FORWARD jump validates every step it passes and lands on the first
195
+ * failure; a BACKWARD jump never validates. Resolves `false` if it was blocked — a failed
196
+ * validate, a `disabled` target, or a validate already in flight.
197
+ */
198
+ goTo: (value: V) => Promise<boolean>;
199
+ /** Back to the initial step; empties `completed` and `errors`. KEEPS `visited`. */
200
+ reset: () => void;
201
+ }
202
+ declare function useSteps<const V extends string>(options: UseStepsOptions<V>): UseStepsResult<V>;
203
+
204
+ interface ProgressStepsProps<V extends string = string> {
205
+ /** The `useSteps()` instance. **Required** — an optional engine means a second state owner. */
206
+ steps: UseStepsResult<V>;
207
+ /**
208
+ * What sits in each step's marker.
209
+ *
210
+ * `dot` and `number` need nothing from the item; `icon` and `featured` render `item.icon` and
211
+ * fall back to the step NUMBER when it is absent (never to an empty box). A **complete** step
212
+ * always shows a check instead — the tick is what "done" means, and it is the one thing a
213
+ * numbered rail would otherwise have no way to say.
214
+ *
215
+ * **`bar` draws no marker at all** — a 4px rule across the top of each cell (down its left, when
216
+ * vertical) with the label beneath it, left-aligned. Being its own track, it ignores `connector`.
217
+ * @default "number"
218
+ */
219
+ marker?: StepMarker;
220
+ /**
221
+ * Show each step's label and description.
222
+ *
223
+ * `false` is the compact rail: markers only, hugging and centred, with the text column dropped
224
+ * from the layout but NOT from the accessible name — a screen reader still hears
225
+ * "<label>, step N of M". Pair it with a caption of your own if the count should be visible;
226
+ * `useSteps()` returns `currentIndex` and `items`, so that is one line at the call site.
227
+ * @default true
228
+ */
229
+ labels?: boolean;
230
+ /** Draw the line between steps. Ignored by `marker="bar"`, which is its own track. @default "line" */
231
+ connector?: StepConnector;
232
+ /** @default "horizontal" */
233
+ orientation?: StepOrientation;
234
+ /** Marker, glyph, text and gap scale. @default "md" */
235
+ size?: StepSize;
236
+ /** Accessible name for the list. @default "Progress" */
237
+ "aria-label"?: string;
238
+ /** Layout/spacing only, merged via `cn()` — the ONE class hook. Never restyles internals. */
239
+ className?: string;
240
+ }
241
+ declare function ProgressSteps<V extends string = string>(props: ProgressStepsProps<V>): React.JSX.Element;
242
+ declare namespace ProgressSteps {
243
+ var displayName: string;
244
+ }
245
+
246
+ /**
247
+ * When a step's panel exists in the DOM.
248
+ *
249
+ * ONE union, not `keepMounted?: boolean` — there are three useful behaviours and the boolean
250
+ * spelling leaves the default with no name (AGENTS §4).
251
+ *
252
+ * - **`visited`** (default) — mounted on first visit and kept, hidden, thereafter. An uncontrolled
253
+ * `<input defaultValue>` still holds what the user typed, so going Back restores it for free.
254
+ * **This is the default because a wizard that eats its own inputs is the bug this union exists
255
+ * to prevent.**
256
+ * - **`all`** — every panel mounted upfront. For a deep link, a print view, or a form that must
257
+ * register every field before its first submit.
258
+ * - **`current`** — the inactive panel is unmounted and destroyed (Tabs' behaviour). The escape
259
+ * hatch for a long wizard with heavy panels; state must live in your form or store, or it is gone.
260
+ */
261
+ type StepMount = "visited" | "all" | "current";
262
+ interface StepPanelProps<V extends string = string> {
263
+ /** The SAME `useSteps()` instance the rail reads. **Required** — one state owner. */
264
+ steps: UseStepsResult<V>;
265
+ /** @default "visited" */
266
+ mount?: StepMount;
267
+ /** Layout/spacing only, merged via `cn()` — the ONE class hook. */
268
+ className?: string;
269
+ }
270
+ declare function StepPanel<V extends string = string>(props: StepPanelProps<V>): React.JSX.Element;
271
+ declare namespace StepPanel {
272
+ var displayName: string;
273
+ }
274
+
275
+ export { ProgressSteps, type ProgressStepsProps, type StepConnector, type StepItem, type StepMarker, type StepMount, type StepOrientation, StepPanel, type StepPanelProps, type StepSize, type StepStatus, type StepStatusOverride, type UseStepsOptions, type UseStepsResult, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps };
@@ -0,0 +1,8 @@
1
+ "use client";export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './chunk-34J5AANZ.js';
2
+ import './chunk-LCG34A5T.js';
3
+ import './chunk-6IUTVDNI.js';
4
+ import './chunk-DWKILXHE.js';
5
+ import './chunk-BLIZ3CL3.js';
6
+ import './chunk-ZSNJ6UA3.js';
7
+ //# sourceMappingURL=progress-steps.js.map
8
+ //# sourceMappingURL=progress-steps.js.map
package/dist/progress.js CHANGED
@@ -1,5 +1,5 @@
1
- "use client";export { Progress } from './chunk-D5BTFSL7.js';
2
- import './chunk-GCVA3OIV.js';
1
+ "use client";export { Progress } from './chunk-A46ED5JQ.js';
2
+ import './chunk-QDYE5LVT.js';
3
3
  import './chunk-ZSNJ6UA3.js';
4
4
  //# sourceMappingURL=progress.js.map
5
5
  //# sourceMappingURL=progress.js.map
@@ -0,0 +1,73 @@
1
+ import * as React from 'react';
2
+ import { f as ChartSeries, e as ChartPalette, d as ChartLegendPlacement } from './types-6kvYwtRH.js';
3
+ import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
4
+
5
+ interface RadarChartProps<T extends object> {
6
+ /** One row per spoke, with a column per series. */
7
+ data: readonly T[];
8
+ /**
9
+ * The category-axis column — one spoke per row.
10
+ *
11
+ * Named `angle` rather than `x` because there is no x here and calling it one would be a lie.
12
+ */
13
+ angle: keyof T & string;
14
+ /** ORDER drives colour order. */
15
+ series: readonly ChartSeries<NoInfer<T>>[];
16
+ /** @default "brand" */
17
+ palette?: ChartPalette;
18
+ /** Radius domain. A fixed value is what makes two radars comparable side by side. @default "auto" */
19
+ max?: number | "auto";
20
+ /**
21
+ * How many concentric grid rings to draw — **and therefore which values the pills read**, since a
22
+ * ring IS a labelled tick. Raising it tightens the grid; lowering it opens it up.
23
+ *
24
+ * **It is a TARGET, not a guarantee**, which is why it is a `number` and not a union of the counts
25
+ * we like. The engine rounds the domain into whole steps and returns however many that took, so a
26
+ * small domain quietly yields fewer: `gridRings={5}` on `[0, 5]` renders 4, and anything below 2
27
+ * floors to 2 (an outer ring and the centre). A union would name outcomes it cannot deliver.
28
+ *
29
+ * **Round labels are arithmetic, not a setting.** `n` rings is `n − 1` gaps, so on a `[0, 100]`
30
+ * domain 3 gives `0/50/100` and 5 gives `0/25/50/75/100`, while the default 4 gives
31
+ * `0/35/70/100`. Pick by whether the labels or the spacing matters more for your data.
32
+ *
33
+ * @default 4
34
+ */
35
+ gridRings?: number;
36
+ /** @default 320 */
37
+ height?: number;
38
+ /** @default "bottom" */
39
+ legend?: ChartLegendPlacement;
40
+ /** @default (v) => v.toLocaleString() */
41
+ formatValue?: (value: number) => string;
42
+ /** @default true */
43
+ tooltip?: boolean;
44
+ /**
45
+ * The hover tooltip's surface — the same union `<Tooltip>` takes, so a chart tooltip and a real
46
+ * tooltip on the same page are one object. **Both members are correct in both themes**; this is
47
+ * not a theme switch, the light/dark split already lives in the tokens.
48
+ *
49
+ * - `surface` — a raised panel (default), like every other floating readout in the library.
50
+ * - `inverse` — the always-dark chip. For a chart on a dark stage or over imagery.
51
+ *
52
+ * @default "surface"
53
+ */
54
+ tooltipTone?: TooltipTone;
55
+ /** @default "No data to display" */
56
+ emptyMessage?: string;
57
+ /** Names the figure and captions the screen-reader data table. */
58
+ "aria-label"?: string;
59
+ /** **Layout/spacing only**, merged via `cn()`. Never restyles a spoke or the grid. */
60
+ className?: string;
61
+ }
62
+ /**
63
+ * A multi-series comparison over a shared set of spokes.
64
+ *
65
+ * Wide rows plus a `series[]`, exactly like the cartesian trio — a radar IS a multi-series chart
66
+ * over a category axis; only the projection differs.
67
+ *
68
+ * Built on a hidden recharts engine — none of its vocabulary is public, there are no compound parts
69
+ * and there is no prop passthrough.
70
+ */
71
+ declare function RadarChart<T extends object>({ data, angle, series, palette, max, gridRings, height, legend, formatValue, tooltip, tooltipTone, emptyMessage, className, "aria-label": ariaLabel, }: RadarChartProps<T>): React.JSX.Element;
72
+
73
+ export { RadarChart, type RadarChartProps };
@@ -0,0 +1,8 @@
1
+ "use client";export { RadarChart } from './chunk-4K6V6NNK.js';
2
+ import './chunk-LBYCCLVI.js';
3
+ import './chunk-75M43ELV.js';
4
+ import './chunk-AC6ZWKRN.js';
5
+ import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZSNJ6UA3.js';
7
+ //# sourceMappingURL=radar-chart.js.map
8
+ //# sourceMappingURL=radar-chart.js.map
@@ -0,0 +1,69 @@
1
+ import * as React from 'react';
2
+ import { c as ChartDatum, g as ChartSize, e as ChartPalette, d as ChartLegendPlacement } from './types-6kvYwtRH.js';
3
+ import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
4
+
5
+ interface RadialChartProps {
6
+ /**
7
+ * One entry reads as a progress ring; N entries as a multi-ring activity gauge — the same tree
8
+ * with a different data length, which is why they are one component rather than two.
9
+ *
10
+ * **`data[0]` is the INNERMOST ring**, and each entry after it steps outward. The legend follows
11
+ * the same order, so a row read top-down matches a ring read inside-out.
12
+ */
13
+ data: readonly ChartDatum[];
14
+ /**
15
+ * The radius ladder. Also sets the height and the centre readout's type step — a gauge's box is
16
+ * its diameter, so there is no `height` prop.
17
+ *
18
+ * @default "md"
19
+ */
20
+ size?: ChartSize;
21
+ /** @default "brand" */
22
+ palette?: ChartPalette;
23
+ /**
24
+ * The big centre figure, e.g. `"40%"`.
25
+ *
26
+ * This and `description` are the ONE exception to the family's plot-only chrome, and the reason is
27
+ * structural rather than stylistic: they are SVG `<text>` painted inside the ring, not a card
28
+ * header. A gauge without its centre readout is not a gauge.
29
+ */
30
+ label?: string;
31
+ /** The small centre caption above it, e.g. `"Active users"`. */
32
+ description?: string;
33
+ /** Arc domain. A fixed value is what makes two gauges comparable side by side. @default "auto" */
34
+ max?: number | "auto";
35
+ /** The neutral background ring behind each bar. @default true */
36
+ track?: boolean;
37
+ /** @default "bottom" */
38
+ legend?: ChartLegendPlacement;
39
+ /** @default (v) => v.toLocaleString() */
40
+ formatValue?: (value: number) => string;
41
+ /** @default true */
42
+ tooltip?: boolean;
43
+ /**
44
+ * The hover tooltip's surface — the same union `<Tooltip>` takes, so a chart tooltip and a real
45
+ * tooltip on the same page are one object. **Both members are correct in both themes**; this is
46
+ * not a theme switch, the light/dark split already lives in the tokens.
47
+ *
48
+ * - `surface` — a raised panel (default), like every other floating readout in the library.
49
+ * - `inverse` — the always-dark chip. For a chart on a dark stage or over imagery.
50
+ *
51
+ * @default "surface"
52
+ */
53
+ tooltipTone?: TooltipTone;
54
+ /** @default "No data to display" */
55
+ emptyMessage?: string;
56
+ /** Names the figure and captions the screen-reader data table. */
57
+ "aria-label"?: string;
58
+ /** **Layout/spacing only**, merged via `cn()`. Never restyles a ring or the centre readout. */
59
+ className?: string;
60
+ }
61
+ /**
62
+ * A progress ring, or a concentric activity gauge.
63
+ *
64
+ * Built on a hidden recharts engine — none of its vocabulary is public, there are no compound parts
65
+ * and there is no prop passthrough.
66
+ */
67
+ declare function RadialChart({ data, size, palette, label, description, max, track, legend, formatValue, tooltip, tooltipTone, emptyMessage, className, "aria-label": ariaLabel, }: RadialChartProps): React.JSX.Element;
68
+
69
+ export { RadialChart, type RadialChartProps };