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
@@ -0,0 +1,8 @@
1
+ "use client";export { RadialChart } from './chunk-M5TVCASC.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=radial-chart.js.map
8
+ //# sourceMappingURL=radial-chart.js.map
package/dist/radio.js CHANGED
@@ -1,12 +1,13 @@
1
- "use client";export { RadioGroup } from './chunk-SV56BSUQ.js';
1
+ "use client";export { RadioGroup } from './chunk-WKWAUU64.js';
2
2
  import './chunk-GTHJWR3Q.js';
3
3
  import './chunk-MFJP5FA7.js';
4
4
  import './chunk-7JBNLEJ7.js';
5
- import './chunk-J2BCKBHC.js';
6
- import './chunk-24TO7E32.js';
7
- import './chunk-ZZA2LUTL.js';
5
+ import './chunk-QKDEQFOQ.js';
6
+ import './chunk-4R7WDDCW.js';
7
+ import './chunk-AC6ZWKRN.js';
8
8
  import './chunk-O4GRKO3I.js';
9
- import './chunk-GCVA3OIV.js';
9
+ import './chunk-BLIZ3CL3.js';
10
+ import './chunk-QDYE5LVT.js';
10
11
  import './chunk-ZSNJ6UA3.js';
11
12
  //# sourceMappingURL=radio.js.map
12
13
  //# sourceMappingURL=radio.js.map
@@ -0,0 +1,80 @@
1
+ /**
2
+ * The **rule** — the paint every divider, separator and connector in the library is drawn with.
3
+ *
4
+ * Full policy, including the register of what is deliberately NOT in this system and why:
5
+ * **`docs/rule-policy.md`**.
6
+ *
7
+ * ## Why the paint is custom properties and not classes
8
+ *
9
+ * Three consumer shapes need the same paint and cannot share one class string:
10
+ *
11
+ * (a) a real element — `<Separator>`, a nav's `<hr>`
12
+ * (b) a pseudo-element — a panel header's `::after`, a table row's `[&>td]:after:*`
13
+ * (c) an absolutely-positioned connector that brings its own geometry — ProgressSteps, a nav guide
14
+ *
15
+ * A variant prefix cannot be interpolated, and Tailwind's JIT scans source TEXT, so no class may be
16
+ * built from fragments (`panel.tsx:72` records what an interpolated fragment costs — `md:${GAP[x]}`
17
+ * compiles to nothing). But **custom properties inherit into pseudo-elements**, so making texture and
18
+ * tone property SETTERS makes them prefix-free by construction, and only the tiny reader class ever
19
+ * needs a prefix. That is the whole trick, and it is already the house idiom — `date-picker/shared.ts`
20
+ * publishes `[--dot:…]` and reads it back through `[&>button]:after:bg-(color:--dot)` for exactly
21
+ * this reason.
22
+ *
23
+ * It is also why the colour is NOT `currentColor`. On a pseudo, `bg-current` resolves against the
24
+ * host's `color` — near-black — so it would need a paired `after:text-border-secondary`, filing a
25
+ * BORDER role into the `text-*` family (the mis-file AGENTS §7 exists to prevent). The repo has
26
+ * already ruled against `bg-current` twice on the same grounds: `date-picker/shared.ts` ("it followed
27
+ * the numeral") and `Tree.tsx`'s guide dot, whose mark belongs to the LEVEL, not the row.
28
+ *
29
+ * ## The invariant: all three properties, or none
30
+ *
31
+ * A rule site sets `--rule-image` AND `--rule-size` AND `--rule` together. All three INHERIT, so a
32
+ * `dot` header inside a `line` panel would otherwise leak `5px 2px` down into every descendant rule.
33
+ * That is why {@link RULE_TEXTURE}'s `line` spells `[--rule-size:auto]` explicitly rather than
34
+ * leaning on the reader's fallback, and why {@link rulePaint} always emits a tone.
35
+ *
36
+ * ## What this does NOT own: placement
37
+ *
38
+ * Same boundary `src/lib/drop-line.ts` draws and justifies. A connector's offsets, a pseudo's
39
+ * `absolute inset-x-0`, a separator's margins — all stay the host's. This module is paint.
40
+ *
41
+ * ## Not to be confused with `drop-line.ts`
42
+ *
43
+ * A drop line is a **cursor**, not a divider: transient, brand-coloured, solid by construction, and
44
+ * its entire job is to advertise where a dragged thing will land. It shares "thin bar" with this
45
+ * module and nothing else, so it stays its own file rather than importing a texture machine it can
46
+ * never use.
47
+ */
48
+ /** The three textures. One vocabulary library-wide — a nav separator, a panel divider and a step
49
+ * connector all spell them the same way, so callers never guess. */
50
+ type RuleTexture = "line" | "dot" | "dashed";
51
+ /** `y` — a HORIZONTAL rule, separating stacked rows. `x` — a VERTICAL one, separating side-by-side
52
+ * columns. Named after the axis a rule SEPARATES, never the dimension it sets: `h-px` reads as a
53
+ * height and tells the reader nothing about which way the list runs. Same convention as
54
+ * `drop-line.ts`'s `DROP_LINE_Y` / `DROP_LINE_X`. */
55
+ type RuleAxis = "y" | "x";
56
+ /**
57
+ * The two STRUCTURAL tones: `default` is the library hairline (`border-secondary`) and `strong` is
58
+ * the emphatic edge (`border-strong` — neutral-400 / dark neutral-600).
59
+ *
60
+ * `strong` is not decoration — it is what a rule inside a dense inline run needs to stay visible
61
+ * against the text beside it (`FileList`'s meta tick).
62
+ *
63
+ * **It is deliberately NOT `border-primary`.** It was, and that made the tone axis a no-op: one ramp
64
+ * stop off the default measures ΔL 5.2 in light, and at 1px the eye cannot resolve it — the prop
65
+ * moved and the page did not change. A tone axis whose members are indistinguishable is a type that
66
+ * promises two weights and ships one, so `theme.css` mints a real fourth edge rather than this table
67
+ * borrowing the nearest one. (`border-primary` keeps its own job: the STRONG box edge. A rule and a
68
+ * box perimeter are different affordances — `docs/rule-policy.md` says why a gradient can never be a
69
+ * perimeter at all.)
70
+ *
71
+ * A rule that carries STATUS rather than structure — a ProgressSteps done-connector, a drop line —
72
+ * publishes `--rule` from its own table instead. That is a status, not a tone, and mixing the two
73
+ * would put a brand colour in a list of neutrals.
74
+ */
75
+ type RuleTone = "default" | "strong";
76
+ /** The two weight steps. `thick` doubles the ink (1px → 2px) for a deliberate heavy break; the colour
77
+ * axis for emphasis is {@link RuleTone}, and the two are independent. */
78
+ type RuleWeight = "hairline" | "thick";
79
+
80
+ export type { RuleTexture as R, RuleAxis as a, RuleTone as b, RuleWeight as c };
@@ -0,0 +1,62 @@
1
+ import * as React from 'react';
2
+
3
+ /** Which scrollbars to render. */
4
+ type ScrollAreaAxis = "vertical" | "horizontal" | "both";
5
+
6
+ interface ScrollAreaProps {
7
+ /**
8
+ * Which scrollbars to render — ONE union rather than a `vertical`/`horizontal` boolean pair, per
9
+ * AGENTS §4: the members are mutually exclusive answers to one question, and `"both"` names the
10
+ * state a pair could only spell as "set them both". @default "vertical"
11
+ */
12
+ axis?: ScrollAreaAxis;
13
+ /**
14
+ * Fade the content out at the cut edge — the library's persistent overflow cue, which the bar
15
+ * (revealed only on hover/scroll) deliberately does not duplicate.
16
+ *
17
+ * Defaults to `true` for a single axis and to `false` for `"both"`, where two gradients would
18
+ * need `mask-composite: intersect` and two bars are already unambiguous. Set explicitly on
19
+ * `"both"` and the mask follows the VERTICAL axis, the primary reading direction.
20
+ *
21
+ * Turn it off when the content must not dim — a chart, a map, edge-to-edge imagery — where a
22
+ * gradient over the last row reads as a rendering fault rather than as an affordance.
23
+ * @default true (`false` when `axis` is `"both"`)
24
+ */
25
+ fade?: boolean;
26
+ /**
27
+ * The scroll region wraps a COMPOSITE widget — a `role="menu"`, `listbox`, `tree` or `grid` you
28
+ * built yourself. Those roles constrain what their children may be, and a scroll viewport is a
29
+ * tab stop by default; both are wrong there, because the composite owns its own keyboard model
30
+ * and an interposed `div[tabindex]` fails `aria-required-children`. Set it and the wrapper
31
+ * becomes transparent to that traversal.
32
+ *
33
+ * Leave it `false` for a plain scrolling container — there the tab stop is what makes the region
34
+ * reachable by keyboard at all. @default false
35
+ */
36
+ composite?: boolean;
37
+ /**
38
+ * **Layout/spacing only** (the `max-h-*`/`max-w-*` cap, width, margin, grid/flex), merged via
39
+ * `cn()`. Never restyles the bar or the thumb. The cap belongs HERE and not on a parent: the
40
+ * scrollbars position against this box, so it is what the bar is flush with.
41
+ */
42
+ className?: string;
43
+ /** Inline style, for a cap that can only be expressed as a computed length. */
44
+ style?: React.CSSProperties;
45
+ /**
46
+ * A ref to the node that actually SCROLLS — the viewport, not this element. It is the only handle
47
+ * on `scrollTop`/`scrollHeight`, and the right `root` for an `IntersectionObserver` (infinite
48
+ * scroll, a scroll-to-top button, a sticky-header sentinel). Without it the scrolling node is
49
+ * unreachable, because the box this component's own `className` lands on does not scroll.
50
+ */
51
+ viewportRef?: React.Ref<HTMLDivElement>;
52
+ /**
53
+ * The scrolling content. **Padding goes on a wrapper INSIDE here, never on this component** — a
54
+ * gutter on the scrolling box scrolls with the content (so the last row clears the edge), while a
55
+ * gutter on an ancestor would inset the bar off the panel edge, which is the defect this
56
+ * component exists to prevent.
57
+ */
58
+ children: React.ReactNode;
59
+ }
60
+ declare function ScrollArea({ axis, fade, composite, className, style, viewportRef, children }: ScrollAreaProps): React.JSX.Element;
61
+
62
+ export { ScrollArea, type ScrollAreaAxis, type ScrollAreaProps };
@@ -0,0 +1,7 @@
1
+ "use client";export { ScrollArea } from './chunk-X2X7Q7NW.js';
2
+ import './chunk-FKVPAEJ6.js';
3
+ import './chunk-O2LG3PNI.js';
4
+ import './chunk-EDSK6FEH.js';
5
+ import './chunk-ZSNJ6UA3.js';
6
+ //# sourceMappingURL=scroll-area.js.map
7
+ //# sourceMappingURL=scroll-area.js.map
package/dist/select.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  export { S as Select, a as SelectAction, b as SelectDisplay, c as SelectIndicator, d as SelectIndicatorAlign, e as SelectOption, f as SelectProps, g as SelectRootProps, h as SelectSize } from './Select-CVbEQ2Ep.js';
2
2
  import * as React from 'react';
3
+ import { C as ControlSize } from './control-size-CaxQhkKh.js';
3
4
  import '@base-ui/react/select';
4
5
  import './multi-value-CJb_tnvi.js';
5
6
  import './options-CPEIgjtd.js';
6
7
 
7
- type ControlSize = "sm" | "md" | "lg";
8
-
9
8
  type NativeSelectSize = ControlSize;
10
9
  /** A native `<option>` row. The native element can only render plain text, so
11
10
  * `label` is a `string` (no rich metadata — that's the styled `Select`). */
package/dist/select.js CHANGED
@@ -1,24 +1,26 @@
1
- "use client";export { Select } from './chunk-T7FCG7XV.js';
1
+ "use client";export { Select } from './chunk-GAFGIT4Q.js';
2
2
  import './chunk-7S2TBALK.js';
3
- export { NativeSelect } from './chunk-LME57Z6J.js';
3
+ export { NativeSelect } from './chunk-P7DH62UY.js';
4
+ import './chunk-EDT5J5WK.js';
4
5
  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';
6
+ import './chunk-PO2TYK3C.js';
7
+ import './chunk-ILICYNK7.js';
8
+ import './chunk-6HJA7NPL.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';
13
+ import './chunk-JUWDRRD6.js';
14
+ import './chunk-TBN644IN.js';
14
15
  import './chunk-52IFGFTL.js';
15
16
  import './chunk-O2LG3PNI.js';
16
17
  import './chunk-EDSK6FEH.js';
17
- import './chunk-J2BCKBHC.js';
18
- import './chunk-24TO7E32.js';
19
- import './chunk-ZZA2LUTL.js';
18
+ import './chunk-QKDEQFOQ.js';
19
+ import './chunk-4R7WDDCW.js';
20
+ import './chunk-AC6ZWKRN.js';
20
21
  import './chunk-O4GRKO3I.js';
21
- import './chunk-GCVA3OIV.js';
22
+ import './chunk-BLIZ3CL3.js';
23
+ import './chunk-QDYE5LVT.js';
22
24
  import './chunk-ZSNJ6UA3.js';
23
25
  //# sourceMappingURL=select.js.map
24
26
  //# 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
@@ -1,7 +1,9 @@
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-DcCyt00p.js';
3
+ export { N as NavActionReveal, a as NavGroup, d as NavMatch, e as NavRowAction, f as NavSeparator } from './nav-DcCyt00p.js';
4
+ import './rule-BqzaIwJy.js';
4
5
  import './dropdown-menu.js';
6
+ import './panel-El4oI68p.js';
5
7
 
6
8
  interface SidebarContextValue {
7
9
  /** Whether the sidebar is showing its icon rail. */
@@ -75,6 +77,43 @@ type SidebarNavigationAccent = "brand" | "neutral";
75
77
  * leaves the gutter empty and lets the indent alone carry the nesting.
76
78
  */
77
79
  type SidebarNavigationGuide = "line" | "dot" | "none";
80
+ /**
81
+ * The identity lockup pinned at the very top of the column.
82
+ *
83
+ * It exists because `header` could not do this job. `header` is an opaque caller node, and at 64px
84
+ * the rail simply CLIPS it — a "AJT CRM & Loyalty" wordmark came out sliced mid-word. A brand is the
85
+ * one top-of-column thing whose collapse behaviour is not a matter of taste: the mark survives, the
86
+ * name goes. So the component owns it, and `header` goes back to being what every demo already used
87
+ * it for — the search field under the logo, exactly UUI's own stacking order.
88
+ */
89
+ interface SidebarNavigationBrand {
90
+ /** The mark. The one thing that survives the rail. Sized by the slot; ~32px square reads best. */
91
+ logo: React.ReactNode;
92
+ /**
93
+ * Product or workspace name, beside the mark. **Dropped when collapsed** — and when the lockup is
94
+ * interactive it becomes the link's `aria-label`, so the accessible name survives the rail even
95
+ * though the text does not.
96
+ *
97
+ * `string`, not `ReactNode`: this is text a human wrote (AGENTS §4), and a string is what makes
98
+ * that `aria-label` derivable at all.
99
+ */
100
+ name?: string;
101
+ /** Makes the lockup a link home. Without it (and without `onClick`) it renders as a plain `<div>`. */
102
+ href?: string;
103
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
104
+ }
105
+ /**
106
+ * A pinned slot that may swap its content when the column collapses.
107
+ *
108
+ * The function form is the same DATA → NODE category `TabItem.content` and `Dialog`'s `close()`
109
+ * render-fn already occupy (AGENTS §11): the caller chooses what the slot SAYS, never how the nav is
110
+ * built. It exists because a 280px `<Input>` or `<AvatarLabelGroup>` has no meaningful rendering at
111
+ * 64px — the playground was already hand-rolling this swap off `useSidebar()`, which is the tell that
112
+ * the component owed it.
113
+ */
114
+ type SidebarNavigationSlot = React.ReactNode | ((state: {
115
+ collapsed: boolean;
116
+ }) => React.ReactNode);
78
117
  interface SidebarNavigationProps {
79
118
  /** The navigation tree: rows, separators, and titled groups. Rows nest recursively. */
80
119
  items: NavItem[];
@@ -95,12 +134,20 @@ interface SidebarNavigationProps {
95
134
  * same indent and the same axis. @default "line"
96
135
  */
97
136
  guide?: SidebarNavigationGuide;
98
- /** Pinned above the rows — a logo, a search `<Input>`. */
99
- header?: React.ReactNode;
137
+ /** Logo + product name, pinned above everything. Collapsed, only the mark survives. */
138
+ brand?: SidebarNavigationBrand;
139
+ /**
140
+ * Pinned under `brand`, above the rows — a search `<Input>`. Pass a function to swap it for a
141
+ * rail-sized node when the column collapses.
142
+ */
143
+ header?: SidebarNavigationSlot;
100
144
  /** Rows pinned at the bottom, above `footer` — Support, Settings. Same recipe as `items`. */
101
145
  footerItems?: NavLink[];
102
- /** Pinned below everything — an `<AvatarLabelGroup>` account card, a plan chip. */
103
- footer?: React.ReactNode;
146
+ /**
147
+ * Pinned below everything — an `<AvatarLabelGroup>` account card, a plan chip. Pass a function to
148
+ * swap it (an `<Avatar>` alone, say) when the column collapses.
149
+ */
150
+ footer?: SidebarNavigationSlot;
104
151
  /**
105
152
  * Collapse to an icon rail: rows become icon-only with a tooltip, and a row with
106
153
  * children opens a flyout menu. Omit to inherit from an enclosing
@@ -126,4 +173,4 @@ declare namespace SidebarNavigation {
126
173
  var displayName: string;
127
174
  }
128
175
 
129
- export { NavItem, NavLink, type SidebarBreakpoint, type SidebarContextValue, SidebarNavigation, type SidebarNavigationAccent, type SidebarNavigationGuide, type SidebarNavigationProps, SidebarProvider, type SidebarProviderProps, SidebarTrigger, type SidebarTriggerProps, useSidebar };
176
+ 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,22 @@
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';
1
+ "use client";export { SidebarNavigation, SidebarProvider, SidebarTrigger, useSidebar } from './chunk-CWMFEF6R.js';
2
+ import './chunk-MYQ3FD4Y.js';
3
+ import './chunk-7HV6EIGZ.js';
4
+ import './chunk-FZBZGA3P.js';
5
+ import './chunk-MFJP5FA7.js';
6
+ import './chunk-7VLYQR4D.js';
7
+ import './chunk-LCG34A5T.js';
8
+ import './chunk-C6OTOTKI.js';
9
+ import './chunk-6IUTVDNI.js';
10
+ import './chunk-PO2TYK3C.js';
11
+ import './chunk-FKVPAEJ6.js';
6
12
  import './chunk-52IFGFTL.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-4R7WDDCW.js';
16
+ import './chunk-AC6ZWKRN.js';
11
17
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
18
+ import './chunk-BLIZ3CL3.js';
19
+ import './chunk-QDYE5LVT.js';
13
20
  import './chunk-ZSNJ6UA3.js';
14
21
  //# sourceMappingURL=sidebar-navigation.js.map
15
22
  //# 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-7HV6EIGZ.js';
2
+ import './chunk-QDYE5LVT.js';
3
+ import './chunk-ZSNJ6UA3.js';
4
+ //# sourceMappingURL=skeleton.js.map
5
+ //# sourceMappingURL=skeleton.js.map