jenosize-ui 0.1.0 → 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 (204) hide show
  1. package/README.md +13 -10
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
  4. package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
  5. package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
  6. package/dist/area-chart.d.ts +54 -0
  7. package/dist/area-chart.js +9 -0
  8. package/dist/avatar.d.ts +24 -0
  9. package/dist/avatar.js +13 -7
  10. package/dist/badge.d.ts +4 -0
  11. package/dist/badge.js +6 -5
  12. package/dist/bar-chart.d.ts +32 -0
  13. package/dist/bar-chart.js +9 -0
  14. package/dist/breadcrumb.d.ts +4 -0
  15. package/dist/breadcrumb.js +5 -3
  16. package/dist/button.d.ts +16 -1
  17. package/dist/button.js +10 -8
  18. package/dist/calendar.d.ts +5 -0
  19. package/dist/calendar.js +18 -14
  20. package/dist/callout.d.ts +6 -6
  21. package/dist/callout.js +12 -9
  22. package/dist/card-D56VxyAe.d.ts +123 -0
  23. package/dist/card.d.ts +3 -1
  24. package/dist/card.js +7 -3
  25. package/dist/checkbox.js +9 -7
  26. package/dist/chunk-22M75A3N.js +396 -0
  27. package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
  28. package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
  29. package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
  30. package/dist/chunk-3ZEEGXYF.js +8 -0
  31. package/dist/chunk-45Y2ZGNK.js +34 -0
  32. package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
  33. package/dist/chunk-4VGEJG4M.js +1510 -0
  34. package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
  35. package/dist/chunk-5AZKP4KZ.js +49 -0
  36. package/dist/chunk-5DP7W5HX.js +254 -0
  37. package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
  38. package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
  39. package/dist/chunk-5ZEUTSCV.js +147 -0
  40. package/dist/chunk-5ZPUAGOP.js +19 -0
  41. package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
  42. package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
  43. package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
  44. package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
  45. package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
  46. package/dist/chunk-7VLYQR4D.js +44 -0
  47. package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
  48. package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
  49. package/dist/chunk-AFYXSZGW.js +23 -0
  50. package/dist/chunk-AIARANKE.js +33 -0
  51. package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
  52. package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
  53. package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
  54. package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
  55. package/dist/chunk-BLIZ3CL3.js +49 -0
  56. package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
  57. package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
  58. package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
  59. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  60. package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
  61. package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
  62. package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
  63. package/dist/chunk-FKVPAEJ6.js +57 -0
  64. package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
  65. package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
  66. package/dist/chunk-GLKFFA7N.js +171 -0
  67. package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
  68. package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
  69. package/dist/chunk-HHYEAFCL.js +525 -0
  70. package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
  71. package/dist/chunk-IQNVSQRK.js +605 -0
  72. package/dist/chunk-KHGW72BM.js +10 -0
  73. package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
  74. package/dist/chunk-LCG34A5T.js +98 -0
  75. package/dist/chunk-LLPWQDF7.js +26 -0
  76. package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
  77. package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
  78. package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
  79. package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
  80. package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
  81. package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
  82. package/dist/chunk-NKG4N6HA.js +188 -0
  83. package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
  84. package/dist/chunk-OLLD2BZN.js +33 -0
  85. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  86. package/dist/chunk-PO2TYK3C.js +17 -0
  87. package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
  88. package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
  89. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  90. package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
  91. package/dist/chunk-RJTVCA62.js +42 -0
  92. package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
  93. package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
  94. package/dist/chunk-SKRR3ZMP.js +10 -0
  95. package/dist/chunk-T4ZFZTY6.js +62 -0
  96. package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
  97. package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
  98. package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
  99. package/dist/chunk-ULGCGKOE.js +77 -0
  100. package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
  101. package/dist/chunk-X2X7Q7NW.js +17 -0
  102. package/dist/chunk-YHBI52P2.js +10 -0
  103. package/dist/chunk-YIHKQ63K.js +13 -0
  104. package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
  105. package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
  106. package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
  107. package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
  108. package/dist/combobox.d.ts +5 -0
  109. package/dist/combobox.js +15 -12
  110. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  111. package/dist/date-input.d.ts +4 -0
  112. package/dist/date-input.js +12 -9
  113. package/dist/date-picker.d.ts +6 -0
  114. package/dist/date-picker.js +25 -20
  115. package/dist/dialog.d.ts +37 -5
  116. package/dist/dialog.js +12 -8
  117. package/dist/drawer.d.ts +20 -3
  118. package/dist/drawer.js +11 -7
  119. package/dist/dropdown-menu.d.ts +26 -2
  120. package/dist/dropdown-menu.js +9 -4
  121. package/dist/dropzone.d.ts +35 -0
  122. package/dist/dropzone.js +23 -0
  123. package/dist/form.d.ts +82 -3
  124. package/dist/form.js +205 -45
  125. package/dist/header-navigation.d.ts +19 -4
  126. package/dist/header-navigation.js +23 -16
  127. package/dist/helper.d.ts +36 -0
  128. package/dist/helper.js +3 -0
  129. package/dist/index.d.ts +32 -8
  130. package/dist/index.js +87 -62
  131. package/dist/indicator.js +4 -4
  132. package/dist/input.d.ts +4 -0
  133. package/dist/input.js +10 -8
  134. package/dist/kanban-board.d.ts +489 -0
  135. package/dist/kanban-board.js +25 -0
  136. package/dist/labels-DPrh0se9.d.ts +627 -0
  137. package/dist/line-chart.d.ts +36 -0
  138. package/dist/line-chart.js +9 -0
  139. package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
  140. package/dist/number-input.d.ts +4 -0
  141. package/dist/number-input.js +10 -8
  142. package/dist/pagination.d.ts +7 -1
  143. package/dist/pagination.js +14 -10
  144. package/dist/panel-El4oI68p.d.ts +9 -0
  145. package/dist/payment-input.d.ts +3 -2
  146. package/dist/payment-input.js +10 -8
  147. package/dist/pie-chart.d.ts +64 -0
  148. package/dist/pie-chart.js +9 -0
  149. package/dist/popover.d.ts +9 -3
  150. package/dist/popover.js +11 -7
  151. package/dist/progress-steps.d.ts +275 -0
  152. package/dist/progress-steps.js +8 -0
  153. package/dist/progress.d.ts +21 -1
  154. package/dist/progress.js +3 -2
  155. package/dist/provider.d.ts +212 -0
  156. package/dist/provider.js +7 -0
  157. package/dist/radar-chart.d.ts +77 -0
  158. package/dist/radar-chart.js +9 -0
  159. package/dist/radial-chart.d.ts +73 -0
  160. package/dist/radial-chart.js +9 -0
  161. package/dist/radio.js +9 -7
  162. package/dist/rule-BqzaIwJy.d.ts +80 -0
  163. package/dist/scroll-area.d.ts +62 -0
  164. package/dist/scroll-area.js +7 -0
  165. package/dist/select.d.ts +3 -3
  166. package/dist/select.js +17 -14
  167. package/dist/separator.d.ts +114 -0
  168. package/dist/separator.js +5 -0
  169. package/dist/shared-CxAedkiy.d.ts +68 -0
  170. package/dist/sidebar-navigation.d.ts +80 -12
  171. package/dist/sidebar-navigation.js +18 -9
  172. package/dist/skeleton.d.ts +61 -0
  173. package/dist/skeleton.js +5 -0
  174. package/dist/styles.css +1 -1
  175. package/dist/switch.js +4 -4
  176. package/dist/table.d.ts +148 -42
  177. package/dist/table.js +39 -33
  178. package/dist/tabs.d.ts +22 -0
  179. package/dist/tabs.js +3 -3
  180. package/dist/tag-input.d.ts +3 -2
  181. package/dist/tag-input.js +13 -11
  182. package/dist/tag.d.ts +4 -0
  183. package/dist/tag.js +4 -3
  184. package/dist/textarea.js +7 -5
  185. package/dist/theme.css +151 -6
  186. package/dist/theme.js +11 -9
  187. package/dist/toast.d.ts +11 -2
  188. package/dist/toast.js +12 -9
  189. package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
  190. package/dist/tooltip.d.ts +15 -1
  191. package/dist/tooltip.js +3 -2
  192. package/dist/tree.d.ts +5 -0
  193. package/dist/tree.js +8 -6
  194. package/dist/types-DR9rAEy1.d.ts +188 -0
  195. package/dist/use-uploads-KaPqDklo.d.ts +482 -0
  196. package/dist/verification-code-input.d.ts +84 -0
  197. package/dist/verification-code-input.js +14 -0
  198. package/package.json +70 -9
  199. package/dist/card-nWicloNi.d.ts +0 -80
  200. package/dist/chunk-24TO7E32.js +0 -42
  201. package/dist/chunk-FXIBGTS5.js +0 -14
  202. package/dist/chunk-MFJP5FA7.js +0 -20
  203. package/dist/chunk-ZZT2E5VT.js +0 -24
  204. package/dist/shared-BNXAdgh2.d.ts +0 -9
package/dist/select.js CHANGED
@@ -1,24 +1,27 @@
1
- "use client";export { Select } from './chunk-T7FCG7XV.js';
1
+ "use client";export { Select } from './chunk-FFMTYQXE.js';
2
2
  import './chunk-7S2TBALK.js';
3
- export { NativeSelect } from './chunk-LME57Z6J.js';
3
+ export { NativeSelect } from './chunk-I6WMNXC7.js';
4
+ import './chunk-PO2TYK3C.js';
5
+ import './chunk-LYXPJERB.js';
4
6
  import './chunk-S7NNXWIN.js';
5
- import './chunk-ZZT2E5VT.js';
6
- import './chunk-FHHAPGCR.js';
7
- import './chunk-7JBNLEJ7.js';
8
- import './chunk-R6RGJF4L.js';
9
- import './chunk-W5GGOUUI.js';
7
+ import './chunk-4RBIWI2Q.js';
8
+ import './chunk-6H4LNWQ7.js';
10
9
  import './chunk-4P2NBLBW.js';
10
+ import './chunk-FKVPAEJ6.js';
11
+ import './chunk-7JBNLEJ7.js';
11
12
  import './chunk-DWKILXHE.js';
12
- import './chunk-QA74ITR4.js';
13
- import './chunk-KNYKWUYX.js';
14
- import './chunk-52IFGFTL.js';
13
+ import './chunk-X2VMIBK5.js';
15
14
  import './chunk-O2LG3PNI.js';
16
15
  import './chunk-EDSK6FEH.js';
17
- import './chunk-J2BCKBHC.js';
18
- import './chunk-24TO7E32.js';
19
- import './chunk-ZZA2LUTL.js';
16
+ import './chunk-5KSD4WKN.js';
17
+ import './chunk-7ZM7SNCZ.js';
18
+ import './chunk-52IFGFTL.js';
19
+ import './chunk-KZP6B6B3.js';
20
+ import './chunk-AFYXSZGW.js';
20
21
  import './chunk-O4GRKO3I.js';
21
- import './chunk-GCVA3OIV.js';
22
+ import './chunk-BLIZ3CL3.js';
22
23
  import './chunk-ZSNJ6UA3.js';
24
+ import './chunk-RJTVCA62.js';
25
+ import './chunk-QDYE5LVT.js';
23
26
  //# sourceMappingURL=select.js.map
24
27
  //# sourceMappingURL=select.js.map
@@ -0,0 +1,114 @@
1
+ import * as React from 'react';
2
+ import { SeparatorProps as SeparatorProps$1 } from '@base-ui/react/separator';
3
+ import { R as RuleTexture, b as RuleTone, c as RuleWeight } from './rule-BqzaIwJy.js';
4
+
5
+ type SeparatorOrientation = "horizontal" | "vertical";
6
+ /**
7
+ * How tall a VERTICAL separator stands. Horizontal always fills its line, so this does nothing there.
8
+ *
9
+ * The component owns this rather than handing it to `className`, because the library already learned
10
+ * the trap: `self-stretch` in a toolbar of unequal-height children draws a rule taller than the text
11
+ * beside it, and a 36px rule against 20px text stops reading as punctuation and starts reading as a
12
+ * table border. `Pagination` writes that lesson down at its own tick.
13
+ *
14
+ * `sm` is a 12px tick for a dense inline run (a `2.4 MB · Complete` meta row); `md` matches the
15
+ * `text-sm` line box, which is the one to reach for beside body text; `full` is the deliberate
16
+ * opt-in to the host's height, and needs a flex parent to have anything to stretch to.
17
+ */
18
+ type SeparatorLength = "sm" | "md" | "full";
19
+ /**
20
+ * `O` is threaded from `orientation` so that `length` is only REACHABLE on a vertical rule — AGENTS §4's
21
+ * "a set defined by a sibling prop is a generic threaded from it", the same mechanism every list
22
+ * control's `value` takes from its `options`.
23
+ *
24
+ * `length` is ignored entirely when the rule is horizontal (a horizontal rule fills its line), and a
25
+ * prop that is silently dropped is the shape `useTable({ paginate: false })` already refuses to have:
26
+ * a switch and its settings travel together, so a setting nobody reads must not be spellable. The
27
+ * playground had disabled the control to say so; the type says it now.
28
+ *
29
+ * A discriminated UNION (`{orientation?: "horizontal"} | {orientation: "vertical"; length?: …}`) expresses
30
+ * the same rule and was the first draft. It is not what shipped: `SeparatorProps` would become a type
31
+ * ALIAS, and `scripts/check-docs-props.mjs` only reads `ts.isInterfaceDeclaration` — Separator would have
32
+ * dropped out of the docs↔source prop gate without failing anything, which is the silent kind of hole
33
+ * AGENTS §10 exists to avoid. A generic interface keeps the guarantee AND the gate.
34
+ *
35
+ * One consequence, and it is the honest answer rather than a gap: a caller whose `orientation` is a
36
+ * RUNTIME value (`SeparatorOrientation`, as the playground's own config is) infers `O` as the full
37
+ * union, and the conditional distributes to `SeparatorLength` — so `length` stays legal there. It has
38
+ * to: which member applies is genuinely unknown at compile time.
39
+ */
40
+ interface SeparatorProps<O extends SeparatorOrientation = "horizontal"> {
41
+ /**
42
+ * Which way the rule runs. `horizontal` separates stacked rows and fills its line;
43
+ * `vertical` separates side-by-side content and takes its height from `length`.
44
+ * @default "horizontal"
45
+ */
46
+ orientation?: O;
47
+ /**
48
+ * The ink — the library-wide texture vocabulary. All three draw the SAME token, so mixing them
49
+ * reads as two weights of one rule rather than two colours: mark a major seam with `line` and a
50
+ * minor one with `dot` or `dashed`.
51
+ *
52
+ * Never a CSS `border-dotted`/`border-dashed`, which at hairline weight is 1px squares with 1px
53
+ * gaps and renders as fuzz at fractional DPR. `dot` is 3px on its thin axis where the other two
54
+ * are 1px — one px more than the dot's own diameter, so the circle still has somewhere to go when
55
+ * the browser snaps the paint rect to device pixels.
56
+ * @default "line"
57
+ */
58
+ texture?: RuleTexture;
59
+ /**
60
+ * The rule's weight in the page. `default` is the library hairline (`border-secondary`); `strong` is
61
+ * the emphatic edge (`border-strong`), for a rule inside a dense inline run — a `2.4 MB · Complete`
62
+ * meta row — where the hairline disappears against the text beside it.
63
+ *
64
+ * Two WEIGHTS of one rule, never two colours: both tones draw a neutral, so mixing them ranks two
65
+ * seams without introducing a second hue. Same reason `texture` changes the ink and not the token.
66
+ * @default "default"
67
+ */
68
+ tone?: RuleTone;
69
+ /**
70
+ * How much ink the rule lays down: **`hairline`** (1px — the library default, and what every other
71
+ * rule in the house draws) or `thick` (2px, the same texture at 2×) for a deliberate heavy break.
72
+ *
73
+ * **Every texture takes it, `dot` included** — for a dot the ink IS the dot, so `thick` is a bigger
74
+ * dot (4px on a 10px pitch, in a 5px box), exactly as it is a longer dash for `dashed`. An earlier
75
+ * draft excluded `dot` on the grounds that its ink was "already 2px", which confused the rule's BOX
76
+ * with its INK; the 5px box rather than 6 comes from the DPR measurements in `src/lib/rule.ts`.
77
+ *
78
+ * This is the ONE axis `<Separator>` has that the rest of the rule vocabulary does not — `dividers`,
79
+ * `connector` and a nav row's `texture` are hairline-only. `docs/rule-policy.md` records why.
80
+ * @default "hairline"
81
+ */
82
+ weight?: RuleWeight;
83
+ /**
84
+ * How tall a VERTICAL rule stands. Unreachable on a horizontal one, which fills its line and ignores
85
+ * this — see the note on {@link SeparatorProps}. To bound a horizontal rule, put a width in
86
+ * `className` (`className="w-12"`), which is layout and therefore already the caller's.
87
+ * @default "md"
88
+ */
89
+ length?: O extends "vertical" ? SeparatorLength : never;
90
+ /**
91
+ * Hide the rule from assistive tech. Reach for it when the rule PUNCTUATES one line of content —
92
+ * a `2.4 MB · Complete` meta row, a pager's metadata strip — rather than separating two regions.
93
+ * A screen reader announcing "separator" between two halves of one sentence is noise.
94
+ * @default false
95
+ */
96
+ decorative?: boolean;
97
+ /** Layout/spacing only (the margins around the rule), merged via `cn()`. */
98
+ className?: string;
99
+ /**
100
+ * Render as a different element where the host's markup requires one — `render={<hr />}` in a
101
+ * document flow, `render={<li />}` inside a `<ul>`. Base UI's polymorphism; there is no `as` prop.
102
+ *
103
+ * Typed off the primitive rather than off `useRender.RenderProp` because the function form is
104
+ * handed Base UI's own `SeparatorState`, which a hand-written `RenderProp<ComponentProps<"div">>`
105
+ * cannot describe.
106
+ */
107
+ render?: SeparatorProps$1["render"];
108
+ }
109
+ declare function Separator<O extends SeparatorOrientation = "horizontal">(props: SeparatorProps<O>): React.JSX.Element;
110
+ declare namespace Separator {
111
+ var displayName: string;
112
+ }
113
+
114
+ export { Separator, type SeparatorLength, type SeparatorOrientation, type SeparatorProps };
@@ -0,0 +1,5 @@
1
+ "use client";export { Separator } from './chunk-7VLYQR4D.js';
2
+ import './chunk-LCG34A5T.js';
3
+ import './chunk-ZSNJ6UA3.js';
4
+ //# sourceMappingURL=separator.js.map
5
+ //# sourceMappingURL=separator.js.map
@@ -0,0 +1,68 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * The scrim behind a modal overlay — ONE table, shared by Dialog, AlertDialog and Drawer.
5
+ *
6
+ * The two members are **alternatives, not a switch layered on a shared wash** — each states its own
7
+ * complete paint, and they differ on BOTH axes:
8
+ *
9
+ * | member | paints | reads as |
10
+ * | --------- | --------------------------------------- | ----------------------------------------------- |
11
+ * | `scrim` | `bg-overlay` — gray-950 @ 50% | dimmed; the page is plainly out of play |
12
+ * | `blur` | `bg-overlay-soft` (@ 20%) + a 6px blur | frosted; the page is present but unreadable |
13
+ *
14
+ * **A union, not a `blur?: boolean`** (AGENTS §4): the two answer the same question and only one can
15
+ * win, so the off state gets a real name instead of being an unspellable `{false}`, and a third
16
+ * treatment could join without a breaking change.
17
+ *
18
+ * **`scrim` is the default** — it is what shipped, so upgrading changes nothing. `blur` is offered as
19
+ * an opt-in rather than imposed on every existing dialog in every consuming app.
20
+ *
21
+ * ## Why 20% + 6px, where the design system says ~70% + 16px
22
+ *
23
+ * Both numbers are ours, and both were settled by rendering them on a real page rather than by reading
24
+ * the reference. That is not a liberty taken lightly — it is forced, because the Figma Modal frame has
25
+ * **nothing behind it**: an empty white artboard cannot show what a blur does, so its radius was never
26
+ * validated against content at all. Its wash we could at least measure: the render samples
27
+ * `rgb(84,84,84)` over white and `bg-overlay` is `#0a0a0a`, so `255 − 245α = 84` ⇒ α ≈ 0.70.
28
+ *
29
+ * Seven combinations were rendered over this library's own playground page and compared:
30
+ *
31
+ * | wash + radius | verdict |
32
+ * | ------------- | ------------------------------------------------------------------------------ |
33
+ * | 50% + 16px | mush — bright enough to still resolve as shapes, so the backdrop out-shouts the dialog it frames |
34
+ * | 50% + 6px | calm but heavy; reads as the old curtain with a softening |
35
+ * | 0% + 2px | barely present — no dimming, not enough blur to say the page is inert |
36
+ * | 0% + 4px | clean glass, text still legible as text |
37
+ * | 0% + 6px | clean glass, content fully illegible — but see the boundary cost below |
38
+ * | 20% + 6px | **chosen** — layout crisp, content illegible, dialog is the brightest thing |
39
+ * | 20% + 7–8px | 8px merges the sidebar rows into one column; 7px is indistinguishable from 6px |
40
+ *
41
+ * **The 20% is there to buy back a boundary, and that is a measured thing, not a taste.** With no wash
42
+ * at all, light-theme dialog-vs-backdrop contrast falls from **3.74:1** (`#FFF` on `rgb(132)`) to
43
+ * **1.00:1** — white on white wherever the page behind the panel is empty, leaving its edge to the 1px
44
+ * `ring-secondary_alt` hairline and a `shadow-xl` alone. 20% restores a visible step while staying far
45
+ * from the curtain. (In **dark** the wash buys nothing either way: the popup's `bg-primary` is
46
+ * neutral-950 and any neutral-950 wash over a neutral-950 page composites back to neutral-950, so dark
47
+ * has always separated by hairline alone — the same reason a black shadow cannot render there, see
48
+ * `src/lib/surface.ts`.)
49
+ *
50
+ * **More blur is not the lever; the wash is.** Past 6px the radius stops hiding content — which is
51
+ * already fully hidden — and starts dissolving LAYOUT, which is the one thing a backdrop should leave
52
+ * legible so the reader knows where they are.
53
+ *
54
+ * One caveat before adding a third member: `backdrop-filter` is defeated by any ancestor that creates
55
+ * a backdrop root (a `filter`, `opacity`, `transform` or `will-change` on the way up). It works here
56
+ * because the Backdrop is a direct child of the portal and carries its own opacity transition rather
57
+ * than inheriting one.
58
+ */
59
+ type OverlayBackdrop = "scrim" | "blur";
60
+ declare const OVERLAY_BACKDROPS: readonly OverlayBackdrop[];
61
+
62
+ type DialogSize = "sm" | "md" | "lg";
63
+ /** A footer is a plain node, or a render-fn given a `close()` helper — the latter
64
+ * lets footer buttons dismiss the dialog in BOTH controlled and uncontrolled
65
+ * (`trigger`) modes without a `Dialog.Close` part. */
66
+ type DialogFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
67
+
68
+ export { type DialogFooter as D, OVERLAY_BACKDROPS as O, type DialogSize as a, type OverlayBackdrop as b };
@@ -1,7 +1,10 @@
1
1
  import * as React from 'react';
2
- import { b as NavItem, c as NavLink } from './nav-Bla0o_-1.js';
3
- export { N as NavActionReveal, a as NavGroup, d as NavMatch, e as NavRowAction, f as NavSeparator, g as NavSeparatorVariant } from './nav-Bla0o_-1.js';
2
+ import { b as NavItem, c as NavLink } from './nav-CKKqjBs6.js';
3
+ export { N as NavActionReveal, a as NavGroup, d as NavMatch, e as NavRowAction, f as NavSeparator } from './nav-CKKqjBs6.js';
4
+ import { k as SidebarNavigationLabels } from './labels-DPrh0se9.js';
5
+ import './rule-BqzaIwJy.js';
4
6
  import './dropdown-menu.js';
7
+ import './panel-El4oI68p.js';
5
8
 
6
9
  interface SidebarContextValue {
7
10
  /** Whether the sidebar is showing its icon rail. */
@@ -22,17 +25,34 @@ declare function useSidebar(): SidebarContextValue;
22
25
  /** Viewport width under which the sidebar collapses itself. Tailwind's own steps. */
23
26
  type SidebarBreakpoint = "sm" | "md" | "lg" | "xl";
24
27
  interface SidebarProviderProps {
25
- /** Controlled collapse state. Omit to let the provider own it. */
28
+ /**
29
+ * Controlled collapse state. Omit to let the provider own it.
30
+ *
31
+ * **The only prop that gives an SSR app a correct first byte.** `localStorage` is invisible to
32
+ * the server, so under SSR persist the choice in a cookie, read it in the server component, and
33
+ * pass it here — with `storageKey` left off.
34
+ */
26
35
  collapsed?: boolean;
27
- /** Uncontrolled initial state, used when nothing is stored. @default false */
36
+ /** Uncontrolled initial state. Also what the server renders, and what the client's first render
37
+ * matches — the stored value is applied a step later, before paint. @default false */
28
38
  defaultCollapsed?: boolean;
29
- /** Fires on every change, including the responsive and keyboard ones. */
39
+ /** Fires on every change, including the responsive and keyboard ones. Not fired for the initial
40
+ * restore from `storageKey`, which is the first value arriving rather than a change. */
30
41
  onCollapsedChange?: (collapsed: boolean) => void;
31
- /** `localStorage` key to remember the user's choice across reloads. Omit for no persistence. */
42
+ /**
43
+ * `localStorage` key to remember the user's choice across reloads. Omit for no persistence.
44
+ *
45
+ * **Client-only, by nature.** The server cannot read it, so it is applied in a layout effect
46
+ * (before paint, after hydration) rather than during the first render — which keeps hydration
47
+ * clean at the cost of the server's HTML always showing `defaultCollapsed`. For a correct first
48
+ * byte, use {@link SidebarProviderProps.collapsed} with a cookie instead.
49
+ */
32
50
  storageKey?: string;
33
51
  /** Bind ⌘B (⌃B off macOS) to the toggle. @default true */
34
52
  shortcut?: boolean;
35
- /** Collapse automatically below this viewport width. Omit to never auto-collapse. */
53
+ /** Collapse automatically below this viewport width. Omit to never auto-collapse. Client-only
54
+ * for the same reason as `storageKey` — the server cannot measure a viewport — and applied the
55
+ * same way, before paint. It wins over the stored choice. */
36
56
  collapseBelow?: SidebarBreakpoint;
37
57
  children?: React.ReactNode;
38
58
  }
@@ -75,6 +95,43 @@ type SidebarNavigationAccent = "brand" | "neutral";
75
95
  * leaves the gutter empty and lets the indent alone carry the nesting.
76
96
  */
77
97
  type SidebarNavigationGuide = "line" | "dot" | "none";
98
+ /**
99
+ * The identity lockup pinned at the very top of the column.
100
+ *
101
+ * It exists because `header` could not do this job. `header` is an opaque caller node, and at 64px
102
+ * the rail simply CLIPS it — a "AJT CRM & Loyalty" wordmark came out sliced mid-word. A brand is the
103
+ * one top-of-column thing whose collapse behaviour is not a matter of taste: the mark survives, the
104
+ * name goes. So the component owns it, and `header` goes back to being what every demo already used
105
+ * it for — the search field under the logo, exactly UUI's own stacking order.
106
+ */
107
+ interface SidebarNavigationBrand {
108
+ /** The mark. The one thing that survives the rail. Sized by the slot; ~32px square reads best. */
109
+ logo: React.ReactNode;
110
+ /**
111
+ * Product or workspace name, beside the mark. **Dropped when collapsed** — and when the lockup is
112
+ * interactive it becomes the link's `aria-label`, so the accessible name survives the rail even
113
+ * though the text does not.
114
+ *
115
+ * `string`, not `ReactNode`: this is text a human wrote (AGENTS §4), and a string is what makes
116
+ * that `aria-label` derivable at all.
117
+ */
118
+ name?: string;
119
+ /** Makes the lockup a link home. Without it (and without `onClick`) it renders as a plain `<div>`. */
120
+ href?: string;
121
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
122
+ }
123
+ /**
124
+ * A pinned slot that may swap its content when the column collapses.
125
+ *
126
+ * The function form is the same DATA → NODE category `TabItem.content` and `Dialog`'s `close()`
127
+ * render-fn already occupy (AGENTS §11): the caller chooses what the slot SAYS, never how the nav is
128
+ * built. It exists because a 280px `<Input>` or `<AvatarLabelGroup>` has no meaningful rendering at
129
+ * 64px — the playground was already hand-rolling this swap off `useSidebar()`, which is the tell that
130
+ * the component owed it.
131
+ */
132
+ type SidebarNavigationSlot = React.ReactNode | ((state: {
133
+ collapsed: boolean;
134
+ }) => React.ReactNode);
78
135
  interface SidebarNavigationProps {
79
136
  /** The navigation tree: rows, separators, and titled groups. Rows nest recursively. */
80
137
  items: NavItem[];
@@ -95,12 +152,20 @@ interface SidebarNavigationProps {
95
152
  * same indent and the same axis. @default "line"
96
153
  */
97
154
  guide?: SidebarNavigationGuide;
98
- /** Pinned above the rows — a logo, a search `<Input>`. */
99
- header?: React.ReactNode;
155
+ /** Logo + product name, pinned above everything. Collapsed, only the mark survives. */
156
+ brand?: SidebarNavigationBrand;
157
+ /**
158
+ * Pinned under `brand`, above the rows — a search `<Input>`. Pass a function to swap it for a
159
+ * rail-sized node when the column collapses.
160
+ */
161
+ header?: SidebarNavigationSlot;
100
162
  /** Rows pinned at the bottom, above `footer` — Support, Settings. Same recipe as `items`. */
101
163
  footerItems?: NavLink[];
102
- /** Pinned below everything — an `<AvatarLabelGroup>` account card, a plan chip. */
103
- footer?: React.ReactNode;
164
+ /**
165
+ * Pinned below everything — an `<AvatarLabelGroup>` account card, a plan chip. Pass a function to
166
+ * swap it (an `<Avatar>` alone, say) when the column collapses.
167
+ */
168
+ footer?: SidebarNavigationSlot;
104
169
  /**
105
170
  * Collapse to an icon rail: rows become icon-only with a tooltip, and a row with
106
171
  * children opens a flyout menu. Omit to inherit from an enclosing
@@ -113,6 +178,9 @@ interface SidebarNavigationProps {
113
178
  loading?: boolean;
114
179
  /** Accessible name for the `<nav>` landmark. @default "Main" */
115
180
  "aria-label"?: string;
181
+ /** Override the component's own copy — the collapse handle's two names. Merges under
182
+ * `<JenosizeUIProvider labels={{ sidebarNavigation }}>`; see `docs/i18n-policy.md`. */
183
+ labels?: SidebarNavigationLabels;
116
184
  /** Layout/spacing overrides for the `<nav>` only (merged via `cn()`). Cannot restyle rows. */
117
185
  className?: string;
118
186
  }
@@ -126,4 +194,4 @@ declare namespace SidebarNavigation {
126
194
  var displayName: string;
127
195
  }
128
196
 
129
- export { NavItem, NavLink, type SidebarBreakpoint, type SidebarContextValue, SidebarNavigation, type SidebarNavigationAccent, type SidebarNavigationGuide, type SidebarNavigationProps, SidebarProvider, type SidebarProviderProps, SidebarTrigger, type SidebarTriggerProps, useSidebar };
197
+ export { NavItem, NavLink, type SidebarBreakpoint, type SidebarContextValue, SidebarNavigation, type SidebarNavigationAccent, type SidebarNavigationBrand, type SidebarNavigationGuide, type SidebarNavigationProps, type SidebarNavigationSlot, SidebarProvider, type SidebarProviderProps, SidebarTrigger, type SidebarTriggerProps, useSidebar };
@@ -1,15 +1,24 @@
1
- "use client";export { SidebarNavigation, SidebarProvider, SidebarTrigger, useSidebar } from './chunk-7IU5TMFL.js';
2
- import './chunk-FXIBGTS5.js';
3
- import './chunk-JP26LPCY.js';
4
- import './chunk-JVJRHBTD.js';
5
- import './chunk-ZZT2E5VT.js';
6
- import './chunk-52IFGFTL.js';
1
+ "use client";export { SidebarNavigation, SidebarProvider, SidebarTrigger, useSidebar } from './chunk-ZMFY7WAY.js';
2
+ import './chunk-6B6BWTXC.js';
3
+ import './chunk-LLPWQDF7.js';
4
+ import './chunk-LO22VQL5.js';
5
+ import './chunk-PO2TYK3C.js';
6
+ import './chunk-FKVPAEJ6.js';
7
+ import './chunk-45Y2ZGNK.js';
8
+ import './chunk-7VLYQR4D.js';
9
+ import './chunk-LCG34A5T.js';
10
+ import './chunk-5AZKP4KZ.js';
11
+ import './chunk-AZ7DKRBY.js';
12
+ import './chunk-MCQG4H6T.js';
7
13
  import './chunk-O2LG3PNI.js';
8
14
  import './chunk-EDSK6FEH.js';
9
- import './chunk-24TO7E32.js';
10
- import './chunk-ZZA2LUTL.js';
15
+ import './chunk-52IFGFTL.js';
16
+ import './chunk-KZP6B6B3.js';
17
+ import './chunk-AFYXSZGW.js';
11
18
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
19
+ import './chunk-BLIZ3CL3.js';
13
20
  import './chunk-ZSNJ6UA3.js';
21
+ import './chunk-RJTVCA62.js';
22
+ import './chunk-QDYE5LVT.js';
14
23
  //# sourceMappingURL=sidebar-navigation.js.map
15
24
  //# sourceMappingURL=sidebar-navigation.js.map
@@ -0,0 +1,61 @@
1
+ import * as React from 'react';
2
+
3
+ /** Corner treatment. `bar` is the text/box placeholder; `circle` is for an avatar or a dot. */
4
+ type SkeletonShape = "bar" | "circle";
5
+ /** Line height for a {@link SkeletonText} stack, on the library's usual three-step ladder. */
6
+ type SkeletonTextSize = "sm" | "md" | "lg";
7
+ interface SkeletonProps {
8
+ /** Corner treatment — `bar` for text and boxes, `circle` for an avatar or a dot. @default "bar" */
9
+ shape?: SkeletonShape;
10
+ /**
11
+ * The BOX: sizing/spacing classes, merged via `cn()` — `h-4 w-32`, `size-10`, `w-3/5`.
12
+ * A skeleton has no intrinsic size, so this is how it gets one; with no height class it
13
+ * collapses to nothing.
14
+ */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * One loading placeholder.
19
+ *
20
+ * Always `aria-hidden`: a skeleton carries no accessible content, and announcing a dozen empty
21
+ * boxes is worse than announcing nothing. **Put `aria-busy` on the region that is loading** — that
22
+ * is what tells assistive tech "loading", once, in the right place.
23
+ *
24
+ * ```tsx
25
+ * <div aria-busy="true" className="flex items-center gap-3">
26
+ * <Skeleton shape="circle" className="size-10" />
27
+ * <Skeleton className="h-4 w-40" />
28
+ * </div>
29
+ * ```
30
+ */
31
+ declare function Skeleton({ shape, className }: SkeletonProps): React.JSX.Element;
32
+ declare namespace Skeleton {
33
+ var displayName: string;
34
+ }
35
+ interface SkeletonTextProps {
36
+ /**
37
+ * How many lines to draw. @default 3
38
+ *
39
+ * Open `number` by necessity (TypeScript has no positive-integer type) — `src/lib/dev-warn.ts`
40
+ * reports a zero/negative/fractional value in dev instead of silently rendering nothing.
41
+ */
42
+ lines?: number;
43
+ /** Line height, matching the text this stands in for. @default "md" */
44
+ size?: SkeletonTextSize;
45
+ /** Layout/spacing only (the stack's own margin/width bound), merged via `cn()`. */
46
+ className?: string;
47
+ }
48
+ /**
49
+ * A stack of placeholder lines at staggered widths, for a run of prose — a card body, a
50
+ * description, a comment.
51
+ *
52
+ * The widths come from the library's fixed set (`src/lib/skeleton.ts`) rather than from a prop:
53
+ * the whole point is that every text skeleton has the same rhythm, and a `widths` prop would be a
54
+ * knob nobody tunes. The last line is short, the way a real paragraph's is.
55
+ */
56
+ declare function SkeletonText({ lines, size, className }: SkeletonTextProps): React.JSX.Element;
57
+ declare namespace SkeletonText {
58
+ var displayName: string;
59
+ }
60
+
61
+ export { Skeleton, type SkeletonProps, type SkeletonShape, SkeletonText, type SkeletonTextProps, type SkeletonTextSize };
@@ -0,0 +1,5 @@
1
+ "use client";export { Skeleton, SkeletonText } from './chunk-LLPWQDF7.js';
2
+ import './chunk-ZSNJ6UA3.js';
3
+ import './chunk-QDYE5LVT.js';
4
+ //# sourceMappingURL=skeleton.js.map
5
+ //# sourceMappingURL=skeleton.js.map