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,34 @@
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 };
package/dist/switch.js CHANGED
@@ -1,7 +1,7 @@
1
- "use client";export { Switch } from './chunk-HMUZE6EK.js';
1
+ "use client";export { Switch } from './chunk-74HPBSVY.js';
2
2
  import './chunk-GTHJWR3Q.js';
3
3
  import './chunk-MFJP5FA7.js';
4
- import './chunk-GCVA3OIV.js';
4
+ import './chunk-QDYE5LVT.js';
5
5
  import './chunk-ZSNJ6UA3.js';
6
6
  //# sourceMappingURL=switch.js.map
7
7
  //# sourceMappingURL=switch.js.map
package/dist/table.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import * as React from 'react';
2
+ import { P as PanelDividers } from './panel-El4oI68p.js';
2
3
  import { PaginationVariant, PaginationAlign, PaginationColor } from './pagination.js';
3
4
  import { S as SemanticColor } from './color-CtSxc1Rh.js';
4
5
  import { O as OverflowMode } from './overflow-Df0h42Oi.js';
5
6
  import { DropdownMenuSeparatorItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem } from './dropdown-menu.js';
7
+ import './rule-BqzaIwJy.js';
6
8
 
7
9
  /** Which edge a cell's content sits against. `end` is for QUANTITIES — counts, hours, money,
8
10
  * averages — so it also applies `tabular-nums`; figures that stack must line up digit-for-digit.
@@ -268,47 +270,84 @@ type RowMenuItem = RowAction | DropdownMenuSeparatorItem | DropdownMenuCheckboxI
268
270
  className?: string;
269
271
  };
270
272
  /**
271
- * The row-action column — `icons` (default) · `links` · `menu`.
273
+ * ONE row action, in the ONE place its presentation is spelled.
272
274
  *
273
- * A UNION, not one interface with an optional `variant`, because the `icons` variant renders the
274
- * glyph AS the button: an action with no `icon` there is a 32px blank that nothing can click by
275
- * sight. That was not hypothetical — every demo on the Table page passed `{ label, onClick }` and
276
- * the whole actions column rendered invisible. So `icon` is REQUIRED on the `icons` branch and
277
- * optional on the other two (where the label carries the meaning), the same
278
- * unrepresentable-rather-than-dev-warned discipline `{ href, confirm }` already uses above.
275
+ * There is no container `variant` and no per-table presentation switch: a row is an ARRAY of slots
276
+ * and each slot says how it draws itself. That is what lets a single row read
277
+ * `icon · icon · link · menu`, which the previous three-branch union could not express at all —
278
+ * its `variant` was a property of the COLUMN, so every action in every row rendered the same way.
279
279
  *
280
- * A caller whose `variant` is a variable of the whole union still needs no narrowing dance: items
281
- * that carry an `icon` satisfy EVERY branch, so `{ variant, items }` checks out — and items that
282
- * do not are exactly the case this union exists to reject.
280
+ * **`display` is REQUIRED on every slot, with no default.** The old shape could afford one because
281
+ * `variant` sat on the container and named the whole column at a glance; here the word appears once
282
+ * per slot, and an omitted one makes the array read `? · ? · link · menu` — the reader has to know
283
+ * the default to reconstruct the row. One slot, one spelling, and the row is legible top to bottom.
284
+ * It also makes a mistyped member fail with the branch NAMED (`"icons"` is not `"icon"`) instead of
285
+ * falling through to a default branch and then erroring about a missing `icon`, which points at the
286
+ * wrong prop.
283
287
  *
284
- * `menu` now has its own branch for two reasons. Its items are {@link RowMenuItem}s (a separator or
285
- * a group is meaningless as an icon button, so the other two variants must not accept one), and it
286
- * has **no `max`**: that prop was declared here and documented "Ignored when `variant` is `menu`",
287
- * i.e. a dead prop shipped in the type — the exact failure the one-state-owner rule was written
288
- * about (AGENTS §11). Unrepresentable beats documented-as-ignored. It is also what keeps `max`'s
289
- * `slice()` from ever cutting a group in half. The cost, paid deliberately: a caller holding
290
- * `variant` as a variable of the whole union can no longer also pass `max` without narrowing.
288
+ * - **`icon`** — a `ButtonUtility` ghost with a tooltip. **`icon` is required here: it IS the
289
+ * button.** An icon-less icon slot is a 32px blank that nothing can click by sight. That was not
290
+ * hypothetical — every demo on the Table page passed `{ label, onClick }` and the whole actions
291
+ * column rendered invisible. A type error, not a dev-warn, the same
292
+ * unrepresentable-rather-than-warned discipline `{ href, confirm }` uses above (AGENTS §4).
293
+ * - **`link`** — a `Button variant="link"`. The label carries the meaning, so `icon` stays optional;
294
+ * when given it renders as the button's leading slot rather than being silently dropped.
295
+ * - **`menu`** — a ⋮ `DropdownMenu` whose rows are {@link RowMenuItem}s: DropdownMenu's WHOLE
296
+ * vocabulary (groups, separators, submenus, checkbox, radio), because it IS a DropdownMenu. It
297
+ * sits in the SAME array as the other two and **position is the caller's** — a ⋮ is not
298
+ * automatically last, and nothing collapses into it behind your back.
299
+ *
300
+ * **There is no `max` and no auto-overflow, anywhere.** In a table the ROW is the overflow
301
+ * mechanism; an actions cell has exactly as many controls as the caller wrote. The deleted prop was
302
+ * not merely unused, it was wrong: it defaulted to **3**, and `slice(0, max - 1)` kept the HEAD, so
303
+ * a 4-action row rendered its first two inline and swallowed everything from index 2 into a ⋮ nobody
304
+ * asked for. The action that vanished was the LAST one — which by convention is the trailing
305
+ * `tone: "error"` Delete. A destructive action silently relocating into a menu is the opposite of
306
+ * what a cap is for.
307
+ *
308
+ * The three members are spelled inline rather than as named types, for the same reason
309
+ * {@link RowAction}'s base is: the API snapshot then prints the whole contract instead of a name
310
+ * that is not exported.
291
311
  */
292
- type RowActions<Row> = {
293
- /** Icon buttons with tooltips — the default, and the densest. */
294
- variant?: "icons";
295
- /** `icon` is required here: it IS the button. */
296
- items: (row: Row) => readonly (RowAction & {
297
- icon: React.ReactNode;
298
- })[];
299
- /** Past this many, the tail collapses into a menu. */
300
- max?: number;
301
- } | {
302
- /** `links` — inline link buttons. */
303
- variant: "links";
304
- items: (row: Row) => readonly RowAction[];
305
- /** Past this many, the tail collapses into a menu. */
306
- max?: number;
307
- } | {
308
- /** `menu` — one ⋮ dots menu, with DropdownMenu's whole item vocabulary. */
309
- variant: "menu";
310
- items: (row: Row) => readonly RowMenuItem[];
312
+ type RowActionSlot =
313
+ /** The glyph IS the button, so `icon` is required. */
314
+ (RowAction & {
315
+ display: "icon";
316
+ icon: React.ReactNode;
317
+ items?: never;
318
+ })
319
+ /** An inline text button. `icon`, when present, renders leading. */
320
+ | (RowAction & {
321
+ display: "link";
322
+ items?: never;
323
+ }) | {
324
+ display: "menu";
325
+ /** The menu's rows — DropdownMenu's whole vocabulary. An empty array renders no slot. */
326
+ items: readonly RowMenuItem[];
327
+ /**
328
+ * The ⋮ trigger's tooltip and accessible name. @default "Row actions"
329
+ *
330
+ * A `string`, not a `ReactNode`: it becomes an `aria-label`, which cannot take a node.
331
+ */
332
+ label?: string;
333
+ /** A row whose menu exists but is unavailable. The trigger stays in place (so the column's
334
+ * right edge does not jitter row to row) and never opens — unlike `items: []`, which
335
+ * renders no slot at all. */
336
+ disabled?: boolean;
337
+ onClick?: never;
338
+ href?: never;
339
+ confirm?: never;
340
+ tone?: never;
341
+ icon?: never;
311
342
  };
343
+ /**
344
+ * The row-action column: a resolver, and nothing else.
345
+ *
346
+ * `rowActions` IS the function — there is no wrapper object left to hold options, because there are
347
+ * none. This is the same category {@link TableColumn.cell} and {@link RowExpansion} occupy (data →
348
+ * node, never structure), so the flat-only contract in AGENTS §11 is unchanged.
349
+ */
350
+ type RowActions<Row> = (row: Row) => readonly RowActionSlot[];
312
351
  interface BulkAction {
313
352
  label: string;
314
353
  icon?: React.ReactNode;
@@ -613,8 +652,25 @@ interface TableProps<Row, K extends string = string> {
613
652
  table: UseTableResult<Row, K>;
614
653
  /** `sm` (36px header / 56px rows) · `md` (44 / 72). @default "md" */
615
654
  size?: TableSize;
616
- /** Hairline dividers, or alternating fills. @default "divided" */
655
+ /**
656
+ * How the BODY ROWS are separated — hairline rules, or alternating fills. @default "divided"
657
+ *
658
+ * Distinct from {@link TableProps.dividers}, and the split is deliberate: this answers "rules or
659
+ * stripes for the data?", which is a question about the rows and has an either/or answer that a
660
+ * texture cannot express. `dividers` answers "how is the CHROME seamed?".
661
+ */
617
662
  treatment?: TableTreatment;
663
+ /**
664
+ * How the CHROME band seams are drawn — under the toolbar, under the header band, above the
665
+ * pagination footer, and around the card stack's own bands. The library-wide texture vocabulary
666
+ * (`src/lib/rule.ts`), with `"none"` naming the off state.
667
+ *
668
+ * NOT the body rows: those are {@link TableProps.treatment}, because "rules vs stripes" is a
669
+ * different question from "which ink". A table showing 200 dotted row rules is noise; a dotted
670
+ * seam under its toolbar is a legitimate quiet-chrome choice.
671
+ * @default "line"
672
+ */
673
+ dividers?: PanelDividers;
618
674
  /**
619
675
  * Whether a row washes under the pointer. `"none"` turns the wash off for a table that is pure
620
676
  * output — nothing on the row responds to a click, so feedback that says "this is interactive"
@@ -689,4 +745,4 @@ interface TableProps<Row, K extends string = string> {
689
745
  */
690
746
  declare function Table<Row, K extends string = string>(props: TableProps<Row, K>): React.JSX.Element;
691
747
 
692
- export { type ActiveFilter, type BulkAction, type CardPriority, type ColumnAlign, type ColumnFilter, type ColumnPin, type DateRangeFilter, type ExpansionResolver, type FacetFilter, type FilterValue, type NumberFilter, type RowAction, type RowActions, type RowExpansion, type RowMenuItem, type SelectionState, type SortDirection, Table, type TableColumn, type TableColumnGroup, type TableColumns, type TableFilters, type TablePaginateOptions, type TablePaginationOptions, type TableProps, type TableResponsive, type TableRowClick, type TableRowHover, type TableSize, type TableSort, type TableToolbar, type TableTreatment, type TextFilter, type UseTableOptions, type UseTableResult, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable };
748
+ export { type ActiveFilter, type BulkAction, type CardPriority, type ColumnAlign, type ColumnFilter, type ColumnPin, type DateRangeFilter, type ExpansionResolver, type FacetFilter, type FilterValue, type NumberFilter, type RowAction, type RowActionSlot, type RowActions, type RowExpansion, type RowMenuItem, type SelectionState, type SortDirection, Table, type TableColumn, type TableColumnGroup, type TableColumns, type TableFilters, type TablePaginateOptions, type TablePaginationOptions, type TableProps, type TableResponsive, type TableRowClick, type TableRowHover, type TableSize, type TableSort, type TableToolbar, type TableTreatment, type TextFilter, type UseTableOptions, type UseTableResult, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable };
package/dist/table.js CHANGED
@@ -1,44 +1,48 @@
1
- "use client";export { Table, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './chunk-MKC5HNA7.js';
2
- import './chunk-WFY7DKQD.js';
3
- import './chunk-BVJWBYIG.js';
1
+ "use client";export { Table, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './chunk-USL3TDZM.js';
2
+ import './chunk-JXHZHUB3.js';
4
3
  import './chunk-OHUFNYGN.js';
5
- import './chunk-PWKWNDBS.js';
6
- import './chunk-THC2ISYP.js';
7
- import './chunk-CYPPEUX5.js';
8
- import './chunk-J7ZQQFPT.js';
9
- import './chunk-FXIBGTS5.js';
10
- import './chunk-JP26LPCY.js';
4
+ import './chunk-JAVNGTOE.js';
5
+ import './chunk-EX374YWB.js';
6
+ import './chunk-RNXRZGXN.js';
7
+ import './chunk-VEOYCAJP.js';
8
+ import './chunk-MYQ3FD4Y.js';
9
+ import './chunk-7HV6EIGZ.js';
10
+ import './chunk-FZBZGA3P.js';
11
11
  import './chunk-F6NLE6XJ.js';
12
- import './chunk-ZOOX3TUB.js';
12
+ import './chunk-RIXEUAPY.js';
13
13
  import './chunk-GTHJWR3Q.js';
14
14
  import './chunk-MFJP5FA7.js';
15
- import './chunk-W46K56XU.js';
16
- import './chunk-CME4DIML.js';
17
- import './chunk-MQGD2OUF.js';
18
- import './chunk-JVJRHBTD.js';
19
- import './chunk-7HOIZ3UO.js';
15
+ import './chunk-7VLYQR4D.js';
16
+ import './chunk-LCG34A5T.js';
17
+ import './chunk-A5WQLN4B.js';
18
+ import './chunk-42FCPC77.js';
19
+ import './chunk-C6OTOTKI.js';
20
+ import './chunk-6IUTVDNI.js';
21
+ import './chunk-JMWYCT63.js';
20
22
  import './chunk-7EUAMHMU.js';
21
- import './chunk-T7FCG7XV.js';
23
+ import './chunk-GAFGIT4Q.js';
22
24
  import './chunk-7S2TBALK.js';
23
- import './chunk-LME57Z6J.js';
25
+ import './chunk-P7DH62UY.js';
26
+ import './chunk-EDT5J5WK.js';
24
27
  import './chunk-S7NNXWIN.js';
25
- import './chunk-ZZT2E5VT.js';
26
- import './chunk-FHHAPGCR.js';
27
- import './chunk-7JBNLEJ7.js';
28
- import './chunk-R6RGJF4L.js';
29
- import './chunk-W5GGOUUI.js';
28
+ import './chunk-PO2TYK3C.js';
29
+ import './chunk-ILICYNK7.js';
30
+ import './chunk-6HJA7NPL.js';
30
31
  import './chunk-4P2NBLBW.js';
32
+ import './chunk-FKVPAEJ6.js';
33
+ import './chunk-7JBNLEJ7.js';
31
34
  import './chunk-DWKILXHE.js';
32
- import './chunk-QA74ITR4.js';
33
- import './chunk-KNYKWUYX.js';
35
+ import './chunk-JUWDRRD6.js';
36
+ import './chunk-TBN644IN.js';
34
37
  import './chunk-52IFGFTL.js';
35
38
  import './chunk-O2LG3PNI.js';
36
39
  import './chunk-EDSK6FEH.js';
37
- import './chunk-J2BCKBHC.js';
38
- import './chunk-24TO7E32.js';
39
- import './chunk-ZZA2LUTL.js';
40
+ import './chunk-QKDEQFOQ.js';
41
+ import './chunk-4R7WDDCW.js';
42
+ import './chunk-AC6ZWKRN.js';
40
43
  import './chunk-O4GRKO3I.js';
41
- import './chunk-GCVA3OIV.js';
44
+ import './chunk-BLIZ3CL3.js';
45
+ import './chunk-QDYE5LVT.js';
42
46
  import './chunk-ZSNJ6UA3.js';
43
47
  //# sourceMappingURL=table.js.map
44
48
  //# sourceMappingURL=table.js.map
package/dist/tabs.js CHANGED
@@ -1,8 +1,8 @@
1
- "use client";export { Tabs } from './chunk-4OLULPQG.js';
1
+ "use client";export { Tabs } from './chunk-54S5CUY6.js';
2
2
  import './chunk-52IFGFTL.js';
3
3
  import './chunk-O2LG3PNI.js';
4
4
  import './chunk-EDSK6FEH.js';
5
- import './chunk-GCVA3OIV.js';
5
+ import './chunk-QDYE5LVT.js';
6
6
  import './chunk-ZSNJ6UA3.js';
7
7
  //# sourceMappingURL=tabs.js.map
8
8
  //# sourceMappingURL=tabs.js.map
package/dist/tag-input.js CHANGED
@@ -1,19 +1,20 @@
1
- "use client";export { TagInputOuter } from './chunk-VWC72TR3.js';
2
- export { TagInput } from './chunk-WEUJYDCV.js';
3
- import './chunk-R6RGJF4L.js';
4
- import './chunk-W5GGOUUI.js';
1
+ "use client";export { TagInputOuter } from './chunk-JYBGO6GY.js';
2
+ export { TagInput } from './chunk-VH35QHD4.js';
3
+ import './chunk-EDT5J5WK.js';
4
+ import './chunk-6HJA7NPL.js';
5
5
  import './chunk-4P2NBLBW.js';
6
6
  import './chunk-DWKILXHE.js';
7
- import './chunk-QA74ITR4.js';
8
- import './chunk-KNYKWUYX.js';
7
+ import './chunk-JUWDRRD6.js';
8
+ import './chunk-TBN644IN.js';
9
9
  import './chunk-52IFGFTL.js';
10
10
  import './chunk-O2LG3PNI.js';
11
11
  import './chunk-EDSK6FEH.js';
12
- import './chunk-J2BCKBHC.js';
13
- import './chunk-24TO7E32.js';
14
- import './chunk-ZZA2LUTL.js';
12
+ import './chunk-QKDEQFOQ.js';
13
+ import './chunk-4R7WDDCW.js';
14
+ import './chunk-AC6ZWKRN.js';
15
15
  import './chunk-O4GRKO3I.js';
16
- import './chunk-GCVA3OIV.js';
16
+ import './chunk-BLIZ3CL3.js';
17
+ import './chunk-QDYE5LVT.js';
17
18
  import './chunk-ZSNJ6UA3.js';
18
19
  //# sourceMappingURL=tag-input.js.map
19
20
  //# sourceMappingURL=tag-input.js.map
package/dist/tag.js CHANGED
@@ -1,9 +1,9 @@
1
- "use client";export { Tag, TagGroup } from './chunk-R6RGJF4L.js';
1
+ "use client";export { Tag, TagGroup } from './chunk-EDT5J5WK.js';
2
2
  import './chunk-4P2NBLBW.js';
3
3
  import './chunk-DWKILXHE.js';
4
4
  import './chunk-52IFGFTL.js';
5
- import './chunk-24TO7E32.js';
6
- import './chunk-GCVA3OIV.js';
5
+ import './chunk-BLIZ3CL3.js';
6
+ import './chunk-QDYE5LVT.js';
7
7
  import './chunk-ZSNJ6UA3.js';
8
8
  //# sourceMappingURL=tag.js.map
9
9
  //# sourceMappingURL=tag.js.map
package/dist/textarea.js CHANGED
@@ -1,12 +1,13 @@
1
- "use client";export { Textarea } from './chunk-KDLPXXD2.js';
1
+ "use client";export { Textarea } from './chunk-EDOUI2BG.js';
2
2
  import './chunk-7EUAMHMU.js';
3
3
  import './chunk-O2LG3PNI.js';
4
4
  import './chunk-EDSK6FEH.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=textarea.js.map
12
13
  //# sourceMappingURL=textarea.js.map
package/dist/theme.css CHANGED
@@ -212,6 +212,24 @@
212
212
  /* Absorbs the former `fg-on-brand` AND `fg-on-inverse` — both were the literal #ffffff in both
213
213
  * themes. (`text-primary_on-brand` is NOT equivalent: its dark value is neutral-50.) */
214
214
  --color-fg-white: #ffffff;
215
+ /* Primary feedback glyph tints — the -600 stop, one step deeper than the `-secondary` pair below.
216
+ * NOT interchangeable with `text-success-primary`/`text-warning-primary`/`text-error-primary`:
217
+ * identical here in LIGHT (both -600) and DIVERGENT in dark (fg -500 vs text -400), which is exactly
218
+ * the §7 trap — a glyph mis-filed under the `text-*` family passes the light baseline and fails the
219
+ * dark one. Used by the FileList status glyphs (`CircleCheckIcon` / `CircleXIcon`) and by
220
+ * `ButtonUtility`'s `color` axis (`GLYPH` in `src/lib/color.ts`). */
221
+ --color-fg-success-primary: var(--color-green-600);
222
+ --color-fg-warning-primary: var(--color-amber-600);
223
+ --color-fg-error-primary: var(--color-red-600);
224
+ /* The hover step for the three feedback glyphs. Load-bearing, not polish: over `bg-ghost-hover`
225
+ * — the wash a `tertiary` icon button takes — success and warning at REST measure 2.97 / 2.95,
226
+ * i.e. BELOW §1.4.11's 3:1 at the exact moment the pointer is on the control. Stepping the glyph,
227
+ * not merely washing the box, is what keeps every co-occurring pair ≥3:1; it is the same lesson
228
+ * `DISMISS` records in `src/lib/color.ts`. Dark steps LIGHTER (-400), mirroring
229
+ * `fg-brand-secondary_hover`, so the transition stays monotonic in both themes. */
230
+ --color-fg-success-primary_hover: var(--color-green-700);
231
+ --color-fg-warning-primary_hover: var(--color-amber-700);
232
+ --color-fg-error-primary_hover: var(--color-red-700);
215
233
  /* Leading-dot / secondary glyph tints — the saturated -500 stop. */
216
234
  --color-fg-brand-secondary: var(--color-brand-500);
217
235
  --color-fg-brand-secondary_hover: var(--color-brand-600);
@@ -225,6 +243,18 @@
225
243
  * falls. Reads as backwards in a diff; it is not. */
226
244
  --color-border-secondary: var(--color-neutral-200);
227
245
  --color-border-primary: var(--color-neutral-300);
246
+ /* The EMPHATIC edge — `<Separator tone="strong">` and the rule vocabulary's `--rule` (src/lib/rule.ts).
247
+ *
248
+ * A WEIGHT word, not a fourth ordinal: the tertiary → secondary → primary rank has no name above
249
+ * `primary`, and `strong` matches the `RuleTone` member 1:1 so the token and the prop read the same.
250
+ *
251
+ * Minted because `strong` used to BE `border-primary`, one ramp stop off the default — measured
252
+ * ΔL 5.2 in light on a 1px line, which is not a weight the eye can resolve, so the prop moved and
253
+ * nothing happened. neutral-400 / dark neutral-600 puts it at ΔL 21.4 / 17.0: two weights of one
254
+ * rule, which is the whole point of the tone axis. It is NOT `fg-quaternary` (same light value):
255
+ * that role is non-text FOREGROUND and a rule is an EDGE — the §7 mis-file, invisible in light and
256
+ * wrong in dark, where the two diverge. */
257
+ --color-border-strong: var(--color-neutral-400);
228
258
  /* One stop softer than `border-secondary` — a subordinate rule that must read as beneath the grid
229
259
  * it subdivides. Minted for the calendar's sub-hour slot line: ruling every 30-minute step at full
230
260
  * weight turns a time grid into ruled paper. DARK IS HOUSE (neutral-900): UUI's own value there is
@@ -427,6 +457,7 @@
427
457
  /* ── border-color ── */
428
458
  --border-color-secondary: var(--color-border-secondary);
429
459
  --border-color-primary: var(--color-border-primary);
460
+ --border-color-strong: var(--color-border-strong);
430
461
  --border-color-tertiary: var(--color-border-tertiary);
431
462
  --border-color-secondary_alt: var(--color-border-secondary_alt);
432
463
  --border-color-brand: var(--color-border-brand);
@@ -438,6 +469,7 @@
438
469
  /* ── ring-color ── */
439
470
  --ring-color-secondary: var(--color-border-secondary);
440
471
  --ring-color-primary: var(--color-border-primary);
472
+ --ring-color-strong: var(--color-border-strong);
441
473
  --ring-color-tertiary: var(--color-border-tertiary);
442
474
  --ring-color-secondary_alt: var(--color-border-secondary_alt);
443
475
  --ring-color-brand: var(--color-border-brand);
@@ -449,6 +481,7 @@
449
481
  /* ── outline-color ── */
450
482
  --outline-color-secondary: var(--color-border-secondary);
451
483
  --outline-color-primary: var(--color-border-primary);
484
+ --outline-color-strong: var(--color-border-strong);
452
485
  --outline-color-tertiary: var(--color-border-tertiary);
453
486
  --outline-color-secondary_alt: var(--color-border-secondary_alt);
454
487
  --outline-color-brand: var(--color-border-brand);
@@ -708,6 +741,16 @@
708
741
  /* neutral-500 in both themes — constant, so it is declared by absence in this block. Against a
709
742
  * neutral-600 rest it still steps LIGHTER here, which is the direction a dark hover must go. */
710
743
  --color-fg-disabled: var(--color-neutral-600);
744
+ /* -500 here, while `text-success-primary`/`text-warning-primary`/`text-error-primary` go to -400.
745
+ * The two families are equal in light and split in dark — see the light block. */
746
+ --color-fg-success-primary: var(--color-green-500);
747
+ --color-fg-warning-primary: var(--color-amber-500);
748
+ --color-fg-error-primary: var(--color-red-500);
749
+ /* The hover step goes LIGHTER here (-400) where light goes darker (-700) — a dark surface needs the
750
+ * hovered glyph to step OUT of the page, not into it. Same direction as `fg-brand-secondary_hover`. */
751
+ --color-fg-success-primary_hover: var(--color-green-400);
752
+ --color-fg-warning-primary_hover: var(--color-amber-400);
753
+ --color-fg-error-primary_hover: var(--color-red-400);
711
754
  --color-fg-brand-secondary: var(--color-brand-400);
712
755
  --color-fg-brand-secondary_hover: var(--color-brand-300);
713
756
  --color-fg-error-secondary: var(--color-red-400);
@@ -716,6 +759,9 @@
716
759
  /* Borders */
717
760
  --color-border-secondary: var(--color-neutral-800);
718
761
  --color-border-primary: var(--color-neutral-700);
762
+ /* neutral-600, TWO stops past `border-primary` — dark needs the extra step because the emphatic
763
+ * rule has to climb away from a near-black page, not sink toward it. ΔL 17.0 against the default. */
764
+ --color-border-strong: var(--color-neutral-600);
719
765
  /* neutral-900 — HOUSE. UUI's own value here is neutral-800, identical to its `border-secondary`. */
720
766
  --color-border-tertiary: var(--color-neutral-900);
721
767
  /* Resolves to a solid gray in dark, not a translucent black — matches `border-secondary`. */
@@ -843,6 +889,7 @@
843
889
  /* ── border-color ── */
844
890
  --border-color-secondary: var(--color-border-secondary);
845
891
  --border-color-primary: var(--color-border-primary);
892
+ --border-color-strong: var(--color-border-strong);
846
893
  --border-color-tertiary: var(--color-border-tertiary);
847
894
  --border-color-secondary_alt: var(--color-border-secondary_alt);
848
895
  --border-color-brand: var(--color-border-brand);
@@ -854,6 +901,7 @@
854
901
  /* ── ring-color ── */
855
902
  --ring-color-secondary: var(--color-border-secondary);
856
903
  --ring-color-primary: var(--color-border-primary);
904
+ --ring-color-strong: var(--color-border-strong);
857
905
  --ring-color-tertiary: var(--color-border-tertiary);
858
906
  --ring-color-secondary_alt: var(--color-border-secondary_alt);
859
907
  --ring-color-brand: var(--color-border-brand);
@@ -865,6 +913,7 @@
865
913
  /* ── outline-color ── */
866
914
  --outline-color-secondary: var(--color-border-secondary);
867
915
  --outline-color-primary: var(--color-border-primary);
916
+ --outline-color-strong: var(--color-border-strong);
868
917
  --outline-color-tertiary: var(--color-border-tertiary);
869
918
  --outline-color-secondary_alt: var(--color-border-secondary_alt);
870
919
  --outline-color-brand: var(--color-border-brand);
@@ -907,6 +956,39 @@
907
956
  }
908
957
  }
909
958
 
959
+ /* The RULE readers — the paint half of every divider, separator and connector in the library.
960
+ * The table that drives them is `src/lib/rule.ts`; the policy is `docs/rule-policy.md`.
961
+ *
962
+ * Why the texture arrives as a custom property instead of a class: three consumer shapes need the
963
+ * same paint — a real element (`<Separator>`), a pseudo-element (a panel header's `::after`) and an
964
+ * absolutely-positioned connector (ProgressSteps). A variant prefix (`after:`) cannot be
965
+ * interpolated and Tailwind's JIT scans source TEXT, so no class may be built from fragments. But
966
+ * custom properties INHERIT into pseudo-elements, so if texture and tone are property SETTERS they
967
+ * are prefix-free by construction and only this reader ever needs prefixing (`after:rule-y`).
968
+ *
969
+ * `background-image` even for the solid case: it is the one property all three textures can express,
970
+ * so the reader stays texture-agnostic. A 1px `linear-gradient(c,c)` is pixel-identical to a
971
+ * `background-color` — no edge falls inside the box, so there is nothing to antialias differently.
972
+ *
973
+ * The `var()` fallbacks are the chosen failure mode: a rule whose properties never arrived degrades
974
+ * to the house hairline, never to nothing. `--rule-image: initial` is how the `line` texture opts
975
+ * back into that fallback — `initial` on a custom property IS the guaranteed-invalid value, so
976
+ * `var(--rule-image, …)` takes the fallback branch. That keeps the long expression here, once,
977
+ * instead of in every table cell. */
978
+ @utility rule-y {
979
+ background-image: var(--rule-image, linear-gradient(var(--rule, var(--color-border-secondary)), var(--rule, var(--color-border-secondary))));
980
+ background-size: var(--rule-size, auto);
981
+ background-repeat: repeat-x;
982
+ }
983
+
984
+ /* The same, for a rule that runs DOWN. Named after `src/lib/drop-line.ts`: the axis a rule
985
+ * SEPARATES, never the dimension it sets — `rule-x` separates side-by-side columns. */
986
+ @utility rule-x {
987
+ background-image: var(--rule-image, linear-gradient(var(--rule, var(--color-border-secondary)), var(--rule, var(--color-border-secondary))));
988
+ background-size: var(--rule-size, auto);
989
+ background-repeat: repeat-y;
990
+ }
991
+
910
992
  /* Toast's auto-dismiss countdown — the bar pinned to the card's bottom edge that shows how long
911
993
  * is left before the toast leaves on its own.
912
994
  *
package/dist/theme.js CHANGED
@@ -1,15 +1,16 @@
1
- "use client";export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme } from './chunk-GRLSUQQE.js';
2
- import './chunk-W46K56XU.js';
3
- import './chunk-CME4DIML.js';
4
- import './chunk-MQGD2OUF.js';
5
- import './chunk-JVJRHBTD.js';
1
+ "use client";export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme } from './chunk-5JRM3OES.js';
2
+ import './chunk-A5WQLN4B.js';
3
+ import './chunk-42FCPC77.js';
4
+ import './chunk-C6OTOTKI.js';
5
+ import './chunk-6IUTVDNI.js';
6
6
  import './chunk-DWKILXHE.js';
7
- import './chunk-KNYKWUYX.js';
7
+ import './chunk-TBN644IN.js';
8
8
  import './chunk-52IFGFTL.js';
9
- import './chunk-24TO7E32.js';
10
- import './chunk-ZZA2LUTL.js';
9
+ import './chunk-4R7WDDCW.js';
10
+ import './chunk-AC6ZWKRN.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
12
+ import './chunk-BLIZ3CL3.js';
13
+ import './chunk-QDYE5LVT.js';
13
14
  import './chunk-ZSNJ6UA3.js';
14
15
  //# sourceMappingURL=theme.js.map
15
16
  //# sourceMappingURL=theme.js.map
package/dist/toast.js CHANGED
@@ -1,15 +1,16 @@
1
- "use client";export { ToastProvider, toast } from './chunk-I7WU4GTY.js';
2
- import './chunk-W46K56XU.js';
3
- import './chunk-CME4DIML.js';
4
- import './chunk-MQGD2OUF.js';
5
- import './chunk-JVJRHBTD.js';
1
+ "use client";export { ToastProvider, toast } from './chunk-YLEHYDXC.js';
2
+ import './chunk-A5WQLN4B.js';
3
+ import './chunk-42FCPC77.js';
4
+ import './chunk-C6OTOTKI.js';
5
+ import './chunk-6IUTVDNI.js';
6
6
  import './chunk-DWKILXHE.js';
7
- import './chunk-KNYKWUYX.js';
7
+ import './chunk-TBN644IN.js';
8
8
  import './chunk-52IFGFTL.js';
9
- import './chunk-24TO7E32.js';
10
- import './chunk-ZZA2LUTL.js';
9
+ import './chunk-4R7WDDCW.js';
10
+ import './chunk-AC6ZWKRN.js';
11
11
  import './chunk-O4GRKO3I.js';
12
- import './chunk-GCVA3OIV.js';
12
+ import './chunk-BLIZ3CL3.js';
13
+ import './chunk-QDYE5LVT.js';
13
14
  import './chunk-ZSNJ6UA3.js';
14
15
  //# sourceMappingURL=toast.js.map
15
16
  //# sourceMappingURL=toast.js.map
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The tooltip surface — **ONE recipe, two tones**, shared by `<Tooltip>` (the real, triggered one)
3
+ * and by the chart family's internal `ChartTooltipContent`.
4
+ *
5
+ * Why this file exists: the two used to be *parallel* strings that happened to match, with a comment
6
+ * in each promising they'd stay that way. Nothing gated it — `chart/shared.ts`'s `TOOLTIP.surface`
7
+ * and `tooltip/Tooltip.tsx`'s `POPUP` could drift on any edit and no test, gate or baseline would
8
+ * notice, because the two never render in the same screenshot. A promise between two files is not a
9
+ * contract; one exported table is.
10
+ *
11
+ * **`tone` is a prop, not a media query.** The light/dark split is already inside the tokens — every
12
+ * role below is theme-paired in `theme.css`, so BOTH tones render correctly in BOTH themes. What
13
+ * `tone` picks is which *relationship to the page* the tooltip has:
14
+ *
15
+ * - **`surface`** (default) — a raised panel: it reads as sitting ABOVE its host. Same recipe as the
16
+ * library's other floating readouts (`Progress`'s value bubble, `DRAG_GHOST`, `Card` elevated), so
17
+ * a tooltip and a drag ghost over the same page are the same object. `bg-primary_alt` rather than
18
+ * `bg-primary` for the documented reason: in dark, `bg-primary` IS the page (neutral-950) and a
19
+ * black `shadow-lg` is invisible against it, so the fill has to do the elevating — `_alt` steps one
20
+ * stop up.
21
+ * - **`inverse`** — the older always-dark chip. Kept because it is genuinely the right answer over an
22
+ * image, a video frame, or a `bg-primary-solid` stage (the playground's own dark Button stages),
23
+ * where a raised light panel competes with the content instead of annotating it.
24
+ *
25
+ * §4: the union member owns EVERY behaviour derived from it, in ONE table — so a tone's arrow fill
26
+ * lives here beside its surface class, and nothing outside this file re-derives a colour from the
27
+ * tone's name.
28
+ */
29
+ /**
30
+ * Which relationship to the page the tooltip has. Both members are correct in both themes — see the
31
+ * file comment for why this is a prop and not a `prefers-color-scheme` branch.
32
+ */
33
+ type TooltipTone = "surface" | "inverse";
34
+
35
+ export type { TooltipTone as T };