jenosize-ui 0.2.0 → 0.2.2

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 (184) hide show
  1. package/README.md +2 -2
  2. package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
  3. package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
  4. package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
  5. package/dist/area-chart.d.ts +3 -2
  6. package/dist/area-chart.js +6 -5
  7. package/dist/avatar.d.ts +5 -0
  8. package/dist/avatar.js +10 -9
  9. package/dist/badge.d.ts +4 -0
  10. package/dist/badge.js +5 -4
  11. package/dist/bar-chart.d.ts +3 -2
  12. package/dist/bar-chart.js +6 -5
  13. package/dist/breadcrumb.d.ts +4 -0
  14. package/dist/breadcrumb.js +4 -2
  15. package/dist/button.d.ts +6 -1
  16. package/dist/button.js +9 -8
  17. package/dist/calendar.d.ts +5 -0
  18. package/dist/calendar.js +16 -14
  19. package/dist/callout.d.ts +6 -6
  20. package/dist/callout.js +11 -9
  21. package/dist/card-D56VxyAe.d.ts +123 -0
  22. package/dist/card.d.ts +3 -51
  23. package/dist/card.js +5 -5
  24. package/dist/checkbox.js +8 -7
  25. package/dist/{chunk-75M43ELV.js → chunk-22M75A3N.js} +75 -45
  26. package/dist/{chunk-X2X7Q7NW.js → chunk-2R3QWWOT.js} +3 -3
  27. package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
  28. package/dist/{chunk-BNIWT6CW.js → chunk-3HOHLQVP.js} +7 -6
  29. package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
  30. package/dist/chunk-3ZEEGXYF.js +8 -0
  31. package/dist/chunk-45Y2ZGNK.js +34 -0
  32. package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
  33. package/dist/{chunk-EX374YWB.js → chunk-54SIZR63.js} +15 -7
  34. package/dist/chunk-5AZKP4KZ.js +49 -0
  35. package/dist/{chunk-NA35YZRD.js → chunk-5DP7W5HX.js} +13 -11
  36. package/dist/{chunk-QKDEQFOQ.js → chunk-5KSD4WKN.js} +13 -4
  37. package/dist/{chunk-RIXEUAPY.js → chunk-5XPMY2LF.js} +5 -5
  38. package/dist/{chunk-L53Y7KUV.js → chunk-5YWH2ANQ.js} +62 -29
  39. package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
  40. package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
  41. package/dist/{chunk-RNXRZGXN.js → chunk-74AIU53R.js} +5 -3
  42. package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
  43. package/dist/{chunk-DCGTB7P7.js → chunk-7QXOGAN6.js} +111 -39
  44. package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
  45. package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
  46. package/dist/chunk-AIARANKE.js +33 -0
  47. package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
  48. package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
  49. package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
  50. package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
  51. package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
  52. package/dist/{chunk-FZBZGA3P.js → chunk-CGZXQ7PA.js} +4 -4
  53. package/dist/{chunk-GAFGIT4Q.js → chunk-D6XO4JVM.js} +30 -10
  54. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  55. package/dist/{chunk-USL3TDZM.js → chunk-DD5KJVFV.js} +321 -105
  56. package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
  57. package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
  58. package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
  59. package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
  60. package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
  61. package/dist/{chunk-PO2TYK3C.js → chunk-GWYDOZGQ.js} +3 -3
  62. package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
  63. package/dist/{chunk-DTMYD63D.js → chunk-HV2W6HUR.js} +47 -27
  64. package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
  65. package/dist/{chunk-6HJA7NPL.js → chunk-IEAWNA3V.js} +9 -4
  66. package/dist/{chunk-34J5AANZ.js → chunk-IQNVSQRK.js} +3 -3
  67. package/dist/{chunk-MCUASLZH.js → chunk-KHGW72BM.js} +3 -3
  68. package/dist/{chunk-FIGBJGH2.js → chunk-KJ5JUS53.js} +115 -79
  69. package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
  70. package/dist/{chunk-4W6AYGLR.js → chunk-LE44X5GS.js} +55 -39
  71. package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
  72. package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
  73. package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
  74. package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
  75. package/dist/{chunk-4BRMM3I5.js → chunk-MFFA5MXY.js} +7 -6
  76. package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
  77. package/dist/{chunk-VH35QHD4.js → chunk-NC63TYNW.js} +16 -8
  78. package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
  79. package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
  80. package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
  81. package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
  82. package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
  83. package/dist/{chunk-VEOYCAJP.js → chunk-QNIKRB62.js} +27 -7
  84. package/dist/{chunk-JYBGO6GY.js → chunk-R4Z7BINC.js} +11 -8
  85. package/dist/chunk-RJTVCA62.js +42 -0
  86. package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
  87. package/dist/{chunk-FKVPAEJ6.js → chunk-SKJC2KYD.js} +4 -3
  88. package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
  89. package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
  90. package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
  91. package/dist/{chunk-4HKDD3PR.js → chunk-TX57TNJS.js} +92 -58
  92. package/dist/{chunk-CWMFEF6R.js → chunk-UGBNYSBN.js} +81 -29
  93. package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
  94. package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
  95. package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
  96. package/dist/chunk-YIHKQ63K.js +13 -0
  97. package/dist/{chunk-3Z3SDKIA.js → chunk-YPNL2NBD.js} +5 -5
  98. package/dist/{chunk-MYQ3FD4Y.js → chunk-ZD3MOLIB.js} +8 -5
  99. package/dist/{chunk-BD5YKFRA.js → chunk-ZR6HNKSN.js} +5 -3
  100. package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
  101. package/dist/combobox.d.ts +5 -0
  102. package/dist/combobox.js +13 -12
  103. package/dist/date-input.d.ts +4 -0
  104. package/dist/date-input.js +11 -9
  105. package/dist/date-picker.d.ts +6 -0
  106. package/dist/date-picker.js +24 -22
  107. package/dist/dialog.d.ts +21 -1
  108. package/dist/dialog.js +11 -9
  109. package/dist/drawer.d.ts +11 -1
  110. package/dist/drawer.js +10 -8
  111. package/dist/dropdown-menu.d.ts +12 -0
  112. package/dist/dropdown-menu.js +7 -6
  113. package/dist/dropzone.d.ts +3 -2
  114. package/dist/dropzone.js +13 -12
  115. package/dist/form.d.ts +5 -4
  116. package/dist/form.js +61 -45
  117. package/dist/header-navigation.d.ts +5 -1
  118. package/dist/header-navigation.js +21 -19
  119. package/dist/helper.d.ts +36 -0
  120. package/dist/helper.js +3 -0
  121. package/dist/index.d.ts +13 -11
  122. package/dist/index.js +83 -78
  123. package/dist/indicator.js +4 -4
  124. package/dist/input.d.ts +4 -0
  125. package/dist/input.js +9 -8
  126. package/dist/kanban-board.d.ts +21 -81
  127. package/dist/kanban-board.js +15 -13
  128. package/dist/labels-DPrh0se9.d.ts +627 -0
  129. package/dist/line-chart.d.ts +3 -2
  130. package/dist/line-chart.js +6 -5
  131. package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
  132. package/dist/number-input.d.ts +4 -0
  133. package/dist/number-input.js +9 -8
  134. package/dist/pagination.d.ts +7 -1
  135. package/dist/pagination.js +11 -10
  136. package/dist/payment-input.d.ts +3 -2
  137. package/dist/payment-input.js +9 -8
  138. package/dist/pie-chart.d.ts +7 -3
  139. package/dist/pie-chart.js +6 -5
  140. package/dist/popover.js +10 -8
  141. package/dist/progress-steps.js +2 -2
  142. package/dist/progress.d.ts +21 -1
  143. package/dist/progress.js +3 -2
  144. package/dist/provider.d.ts +212 -0
  145. package/dist/provider.js +7 -0
  146. package/dist/radar-chart.d.ts +7 -3
  147. package/dist/radar-chart.js +6 -5
  148. package/dist/radial-chart.d.ts +7 -3
  149. package/dist/radial-chart.js +6 -5
  150. package/dist/radio.js +8 -7
  151. package/dist/scroll-area.js +2 -2
  152. package/dist/select.d.ts +2 -1
  153. package/dist/select.js +15 -14
  154. package/dist/shared-CxAedkiy.d.ts +68 -0
  155. package/dist/sidebar-navigation.d.ts +36 -7
  156. package/dist/sidebar-navigation.js +15 -13
  157. package/dist/skeleton.js +2 -2
  158. package/dist/styles.css +1 -1
  159. package/dist/switch.js +4 -4
  160. package/dist/table.d.ts +56 -6
  161. package/dist/table.js +37 -35
  162. package/dist/tabs.d.ts +22 -0
  163. package/dist/tabs.js +3 -3
  164. package/dist/tag-input.d.ts +3 -2
  165. package/dist/tag-input.js +12 -11
  166. package/dist/tag.d.ts +4 -0
  167. package/dist/tag.js +3 -2
  168. package/dist/textarea.js +6 -5
  169. package/dist/theme.css +69 -6
  170. package/dist/theme.js +10 -9
  171. package/dist/toast.d.ts +11 -2
  172. package/dist/toast.js +11 -9
  173. package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
  174. package/dist/tooltip.d.ts +2 -2
  175. package/dist/tooltip.js +3 -3
  176. package/dist/tree.d.ts +5 -0
  177. package/dist/tree.js +5 -4
  178. package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
  179. package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
  180. package/dist/verification-code-input.js +8 -7
  181. package/package.json +12 -1
  182. package/dist/chunk-MFJP5FA7.js +0 -20
  183. package/dist/shared-BNXAdgh2.d.ts +0 -9
  184. package/dist/surface-DFyDnrTJ.d.ts +0 -34
package/dist/tree.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import * as React from 'react';
3
+ import { n as TreeLabels } from './labels-DPrh0se9.js';
3
4
 
4
5
  /** What a slot function is told about the row it is rendering into. */
5
6
  interface TreeNodeState {
@@ -287,6 +288,10 @@ interface TreeProps<Id extends string = string> extends Omit<React.ComponentProp
287
288
  guide?: TreeGuide;
288
289
  /** Shown when the tree has no visible nodes, and inside an expanded empty branch. */
289
290
  emptyMessage?: React.ReactNode;
291
+ /** Override the component's own copy — what `emptyMessage` defaults to, the no-matches sentence,
292
+ * a failed branch's error + retry, and what the reorder live region announces. Merges under
293
+ * `<JenosizeUIProvider labels={{ tree }}>`; see `docs/i18n-policy.md`. */
294
+ labels?: TreeLabels;
290
295
  render?: useRender.RenderProp<React.ComponentProps<"ul">>;
291
296
  /** Layout/spacing for the `<ul>` only, merged via `cn()`. Cannot restyle rows. */
292
297
  className?: string;
package/dist/tree.js CHANGED
@@ -1,12 +1,13 @@
1
- "use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-T2WAD4QP.js';
1
+ "use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-POQTE7JI.js';
2
2
  import './chunk-5ZPUAGOP.js';
3
3
  import './chunk-P6CON2R2.js';
4
- import './chunk-7HV6EIGZ.js';
4
+ import './chunk-LLPWQDF7.js';
5
5
  import './chunk-F6NLE6XJ.js';
6
- import './chunk-52IFGFTL.js';
7
6
  import './chunk-EDSK6FEH.js';
7
+ import './chunk-52IFGFTL.js';
8
8
  import './chunk-BLIZ3CL3.js';
9
- import './chunk-QDYE5LVT.js';
10
9
  import './chunk-ZSNJ6UA3.js';
10
+ import './chunk-RJTVCA62.js';
11
+ import './chunk-QDYE5LVT.js';
11
12
  //# sourceMappingURL=tree.js.map
12
13
  //# sourceMappingURL=tree.js.map
@@ -1,4 +1,5 @@
1
- import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
1
+ import { C as ChartLabels } from './labels-DPrh0se9.js';
2
+ import { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
2
3
 
3
4
  /**
4
5
  * The public type surface for the chart family. No JSX, no recharts — `primitives.ts` alone names
@@ -9,22 +10,50 @@ import { T as TooltipTone } from './tooltip-surface-Dmvb8v5K.js';
9
10
  */
10
11
 
11
12
  /**
12
- * A series' colour — a closed set over the six hues `theme.css` actually declares
13
- * (neutral · brand · red · amber · green · blue). Never a hex, never a class string, never a ramp
14
- * stop: an UNDECLARED token emits no class at all — no warning, no error, no gate — so an open
15
- * string here would paint nothing and look like a rendering bug.
13
+ * A mark's colour — **any CSS colour value**.
14
+ *
15
+ * ```tsx
16
+ * "#e11d48" · "oklch(62% .21 25)" · "var(--color-utility-blue-600)" · token("utility-blue-600")
17
+ * ```
18
+ *
19
+ * This used to be a closed union over the six hues `theme.css` declares, and the reason was
20
+ * mechanical rather than aesthetic: the colour travelled as a Tailwind CLASS
21
+ * (`text-utility-blue-600`) resolved by `fill="currentColor"`, Tailwind scans source text, and an
22
+ * undeclared or computed class emits nothing at all — no warning, no error, no gate, just an
23
+ * unpainted mark. So the vocabulary had to be closed, and `data` being an arbitrary-length array
24
+ * while `palette` held exactly six hues was the direct consequence.
25
+ *
26
+ * The colour now travels as a `style={{ color }}` VALUE instead (`src/components/chart/palette.ts`),
27
+ * so nothing has to be legible to a static scanner and the ceiling is gone. What is lost with the
28
+ * union is the compile-time guarantee, and it is bought back in two places rather than one:
29
+ * **`token()`** (`src/lib/token.ts`) is a closed generated union for every house colour, and a
30
+ * dev-mode tripwire warns on a value that is not a CSS colour at all. Neither can catch a
31
+ * misspelled `var(--nope)` — that is always valid CSS — which is exactly why `token()` exists.
32
+ *
33
+ * One migration hazard worth knowing: the old hue NAMES are gone, and three of them (`"green"`,
34
+ * `"red"`, `"blue"`) are valid CSS colours, so they would now paint the CSS colour rather than the
35
+ * house token. The dev warning names each of the six explicitly.
16
36
  */
17
- type ChartColor = "brand" | "blue" | "green" | "amber" | "red" | "neutral";
37
+ type ChartColor = string;
18
38
  /**
19
- * How series with no explicit `color` are coloured.
39
+ * The colours that series with no explicit `color` cycle through, **in order**.
40
+ *
41
+ * ```tsx
42
+ * palette={[token("utility-blue-600"), token("utility-green-600"), "#e11d48"]}
43
+ * ```
44
+ *
45
+ * As long as you like. Past the list's length it cycles, and `useSeriesColors` emits one dev
46
+ * warning per mount naming the count — the same rule as before, now keyed on YOUR length rather
47
+ * than on a constant six.
20
48
  *
21
- * - `brand` — the monochrome brand ramp. Correct for ORDINAL series (this year / last year /
22
- * forecast), where a hue would imply a category that isn't there.
23
- * - `categorical` — six distinct hues, for series that genuinely are separate categories.
49
+ * `[]` — the default — is the house **brand ramp**: six steps of one hue, looping. That is right
50
+ * for ORDINAL series (this year / last year / forecast), where a hue would imply a category that
51
+ * isn't there; a three-series revenue trend rendered green/amber/red reads as *semantic state* when
52
+ * it isn't. For series that genuinely are separate categories, pass distinct hues.
24
53
  *
25
- * @default "brand"
54
+ * @default []
26
55
  */
27
- type ChartPalette = "brand" | "categorical";
56
+ type ChartPalette = readonly ChartColor[];
28
57
  /**
29
58
  * One plotted series.
30
59
  *
@@ -107,7 +136,7 @@ interface CartesianChartBaseProps<T extends object> {
107
136
  xGroup?: keyof T & string;
108
137
  /** ORDER drives colour order — deterministic, unlike a keyed record. */
109
138
  series: readonly ChartSeries<NoInfer<T>>[];
110
- /** @default "brand" */
139
+ /** @default [] — the house brand ramp, looping. */
111
140
  palette?: ChartPalette;
112
141
  /** Plot height in px. @default 240 — the reference's `h-60`. */
113
142
  height?: number;
@@ -147,6 +176,9 @@ interface CartesianChartBaseProps<T extends object> {
147
176
  tooltipTone?: TooltipTone;
148
177
  /** Shown instead of the plot when `data` is empty. @default "No data to display" */
149
178
  emptyMessage?: string;
179
+ /** Override the chart family's own copy — what `emptyMessage` defaults to. One scope for all six
180
+ * charts. Merges under `<JenosizeUIProvider labels={{ chart }}>`; see `docs/i18n-policy.md`. */
181
+ labels?: ChartLabels;
150
182
  /** Names the figure and captions the screen-reader data table. */
151
183
  "aria-label"?: string;
152
184
  /** **Layout/spacing only**, merged via `cn()`. Never restyles an axis, a mark or the tooltip. */
@@ -1,5 +1,6 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import * as React from 'react';
3
+ import { f as DropzoneLabels, g as FileListLabels } from './labels-DPrh0se9.js';
3
4
  import { S as SemanticColor } from './color-CtSxc1Rh.js';
4
5
 
5
6
  interface DropFileEntry {
@@ -290,6 +291,10 @@ interface DropzoneProps extends Omit<useRender.ComponentProps<"button">, "childr
290
291
  * the column shrink-to-fit (a flex row / grid cell). Bound it with a width in `className`.
291
292
  * @default true */
292
293
  fullWidth?: boolean;
294
+ /** Override the component's own copy — the upload prompt and the required suffix. `prompt` is the
295
+ * whole sentence, for a language that cannot keep the action first. Merges under
296
+ * `<JenosizeUIProvider labels={{ dropzone }}>`; see `docs/i18n-policy.md`. */
297
+ labels?: DropzoneLabels;
293
298
  /** Layout/spacing only, merged via `cn()` onto the field column. Never restyles the surface. */
294
299
  className?: string;
295
300
  }
@@ -322,6 +327,10 @@ interface FileListProps extends Omit<React.ComponentPropsWithoutRef<"ul">, "chil
322
327
  fileIcon?: (file: UploadFile) => React.ReactNode;
323
328
  /** Layout/spacing only, merged via `cn()` onto the `<ul>`. Never reaches a row. */
324
329
  className?: string;
330
+ /** Override the component's own copy — the three status words, the row affordance verbs, the
331
+ * retry link and the fallback failure line. Merges under
332
+ * `<JenosizeUIProvider labels={{ fileList }}>`; see `docs/i18n-policy.md`. */
333
+ labels?: FileListLabels;
325
334
  }
326
335
  /**
327
336
  * The rows an upload produces — one `<li>` per file, in whichever treatment the host picks.
@@ -1,13 +1,14 @@
1
- "use client";export { VerificationCodeInput } from './chunk-6UBYHSBX.js';
2
- import './chunk-JUWDRRD6.js';
3
- import './chunk-TBN644IN.js';
1
+ "use client";export { VerificationCodeInput } from './chunk-5ZEUTSCV.js';
2
+ import './chunk-X2VMIBK5.js';
3
+ import './chunk-5KSD4WKN.js';
4
+ import './chunk-7ZM7SNCZ.js';
4
5
  import './chunk-52IFGFTL.js';
5
- import './chunk-QKDEQFOQ.js';
6
- import './chunk-4R7WDDCW.js';
7
- import './chunk-AC6ZWKRN.js';
6
+ import './chunk-KZP6B6B3.js';
7
+ import './chunk-AFYXSZGW.js';
8
8
  import './chunk-O4GRKO3I.js';
9
9
  import './chunk-BLIZ3CL3.js';
10
- import './chunk-QDYE5LVT.js';
11
10
  import './chunk-ZSNJ6UA3.js';
11
+ import './chunk-RJTVCA62.js';
12
+ import './chunk-QDYE5LVT.js';
12
13
  //# sourceMappingURL=verification-code-input.js.map
13
14
  //# sourceMappingURL=verification-code-input.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jenosize-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Opinionated React component library — styled-on-headless on Base UI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,6 +48,14 @@
48
48
  "types": "./dist/theme-script.d.ts",
49
49
  "import": "./dist/theme-script.js"
50
50
  },
51
+ "./provider": {
52
+ "types": "./dist/provider.d.ts",
53
+ "import": "./dist/provider.js"
54
+ },
55
+ "./helper": {
56
+ "types": "./dist/helper.d.ts",
57
+ "import": "./dist/helper.js"
58
+ },
51
59
  "./button": {
52
60
  "types": "./dist/button.d.ts",
53
61
  "import": "./dist/button.js"
@@ -318,6 +326,8 @@
318
326
  "slots:check": "node scripts/check-slots.mjs --check",
319
327
  "seamless:audit": "node scripts/check-seamless.mjs",
320
328
  "seamless:check": "node scripts/check-seamless.mjs --check",
329
+ "i18n:audit": "node scripts/check-i18n.mjs",
330
+ "i18n:check": "node scripts/check-i18n.mjs --check",
321
331
  "rule:audit": "node scripts/check-rules.mjs",
322
332
  "rule:check": "node scripts/check-rules.mjs --check",
323
333
  "props:audit": "node scripts/check-prop-types.mjs",
@@ -375,6 +385,7 @@
375
385
  "@vitejs/plugin-react": "^4.3.0",
376
386
  "@vitest/coverage-v8": "^4.1.10",
377
387
  "axe-core": "^4.12.1",
388
+ "esbuild": "^0.25.12",
378
389
  "eslint": "^10.6.0",
379
390
  "eslint-config-prettier": "^10.1.8",
380
391
  "eslint-import-resolver-typescript": "^4.4.5",
@@ -1,20 +0,0 @@
1
- // src/lib/surface.ts
2
- var SURFACE_VARIANTS = ["elevated", "outlined", "subtle"];
3
- var SURFACE_PADDINGS = ["none", "sm", "md", "lg"];
4
- var SURFACE_BASE = "rounded-xl";
5
- var SURFACE_VARIANT = {
6
- elevated: "bg-primary_alt shadow-sm ring-1 ring-secondary ring-inset",
7
- outlined: "bg-primary ring-1 ring-secondary ring-inset",
8
- subtle: "bg-sunken ring-1 ring-secondary ring-inset"
9
- };
10
- var SURFACE_EDGE_OVERLAY = "relative isolate after:pointer-events-none after:absolute after:inset-0 after:z-4 after:rounded-[inherit] after:ring-1 after:ring-secondary after:ring-inset";
11
- var SURFACE_PADDING = {
12
- none: "",
13
- sm: "p-3",
14
- md: "p-4",
15
- lg: "p-6"
16
- };
17
-
18
- export { SURFACE_BASE, SURFACE_EDGE_OVERLAY, SURFACE_PADDING, SURFACE_PADDINGS, SURFACE_VARIANT, SURFACE_VARIANTS };
19
- //# sourceMappingURL=chunk-MFJP5FA7.js.map
20
- //# sourceMappingURL=chunk-MFJP5FA7.js.map
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type DialogSize = "sm" | "md" | "lg";
4
- /** A footer is a plain node, or a render-fn given a `close()` helper — the latter
5
- * lets footer buttons dismiss the dialog in BOTH controlled and uncontrolled
6
- * (`trigger`) modes without a `Dialog.Close` part. */
7
- type DialogFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
8
-
9
- export type { DialogFooter as D, DialogSize as a };
@@ -1,34 +0,0 @@
1
- /**
2
- * The **in-flow card surface** — one recipe for every bordered/rounded panel that sits in the
3
- * document flow, so the library stops shipping three spellings of the same box.
4
- *
5
- * Before this table there were three, and they disagreed on the edge technique alone:
6
- * `table/shared.ts` used `ring-1 ring-secondary` + `shadow-xs`, `field/option-row.tsx` used
7
- * `border border-secondary` + no shadow, and the playground had ~88 distinct strings approximating
8
- * both. Each `SURFACE_VARIANT` member below reproduces one of those, so the axis is derived from
9
- * what already shipped rather than invented.
10
- *
11
- * **Ring, never border.** `lib/color.ts`'s `OUTLINE` table already commits to `ring-1 ring-inset`
12
- * for exactly this reason: a `border` adds to the box, so a bordered card renders 2px larger than a
13
- * ringed sibling in the same row — the defect that got `Badge`'s `modern` variant deleted. Measured
14
- * on the `bordered` option row: the old `border` recipe boxed 200×50, the inset-ring one 200×48.
15
- * An inset ring paints *inside* the border-box, so a surface never changes size when its edge
16
- * changes weight — and a heavier selected edge cannot bleed onto whatever sits next to it.
17
- *
18
- * **Not the overlay family.** Dialog / Drawer / Toast / the four listbox popups are a separate,
19
- * already-consistent recipe — `ring-1 ring-secondary_alt ring-inset` + `shadow-lg`/`xl`, where the
20
- * alpha `border-alt` hairline reads correctly over whatever the popup floats above. Floating
21
- * elevation is a different concern from an in-flow card; do not merge them into this table.
22
- *
23
- * This module lives in `src/lib/` (not `src/components/`) so it is invisible to the dependency-graph
24
- * gate — `field/` is FOUNDATION and may import only foundation, so it could not reach a
25
- * `components/card/` module at all. Same reason `cn`, `slot` and `seamless` live here.
26
- */
27
- /** Which edge + fill the surface wears. */
28
- type SurfaceVariant = "elevated" | "outlined" | "subtle";
29
- /** The inner gutter. `none` means the caller owns all spacing (full-bleed content, e.g. a table). */
30
- type SurfacePadding = "none" | "sm" | "md" | "lg";
31
- declare const SURFACE_VARIANTS: readonly SurfaceVariant[];
32
- declare const SURFACE_PADDINGS: readonly SurfacePadding[];
33
-
34
- export { SURFACE_PADDINGS as S, SURFACE_VARIANTS as a, type SurfacePadding as b, type SurfaceVariant as c };