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.
- package/README.md +13 -10
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +54 -0
- package/dist/area-chart.js +9 -0
- package/dist/avatar.d.ts +24 -0
- package/dist/avatar.js +13 -7
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +6 -5
- package/dist/bar-chart.d.ts +32 -0
- package/dist/bar-chart.js +9 -0
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +5 -3
- package/dist/button.d.ts +16 -1
- package/dist/button.js +10 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +18 -14
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +12 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -1
- package/dist/card.js +7 -3
- package/dist/checkbox.js +9 -7
- package/dist/chunk-22M75A3N.js +396 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
- package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/chunk-4VGEJG4M.js +1510 -0
- package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/chunk-5DP7W5HX.js +254 -0
- package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
- package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
- package/dist/chunk-5ZEUTSCV.js +147 -0
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
- package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
- package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
- package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
- package/dist/chunk-AFYXSZGW.js +23 -0
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
- package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
- package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
- package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
- package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
- package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
- package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
- package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
- package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
- package/dist/chunk-GLKFFA7N.js +171 -0
- package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
- package/dist/chunk-HHYEAFCL.js +525 -0
- package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
- package/dist/chunk-IQNVSQRK.js +605 -0
- package/dist/chunk-KHGW72BM.js +10 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-LLPWQDF7.js +26 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
- package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
- package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
- package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/chunk-NKG4N6HA.js +188 -0
- package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
- package/dist/chunk-OLLD2BZN.js +33 -0
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
- package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
- package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
- package/dist/chunk-SKRR3ZMP.js +10 -0
- package/dist/chunk-T4ZFZTY6.js +62 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
- package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
- package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
- package/dist/chunk-ULGCGKOE.js +77 -0
- package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/chunk-YHBI52P2.js +10 -0
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
- package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
- package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +15 -12
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +12 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +25 -20
- package/dist/dialog.d.ts +37 -5
- package/dist/dialog.js +12 -8
- package/dist/drawer.d.ts +20 -3
- package/dist/drawer.js +11 -7
- package/dist/dropdown-menu.d.ts +26 -2
- package/dist/dropdown-menu.js +9 -4
- package/dist/dropzone.d.ts +35 -0
- package/dist/dropzone.js +23 -0
- package/dist/form.d.ts +82 -3
- package/dist/form.js +205 -45
- package/dist/header-navigation.d.ts +19 -4
- package/dist/header-navigation.js +23 -16
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +87 -62
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +10 -8
- package/dist/kanban-board.d.ts +489 -0
- package/dist/kanban-board.js +25 -0
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +36 -0
- package/dist/line-chart.js +9 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +10 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +14 -10
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +10 -8
- package/dist/pie-chart.d.ts +64 -0
- package/dist/pie-chart.js +9 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +11 -7
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +77 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radial-chart.d.ts +73 -0
- package/dist/radial-chart.js +9 -0
- package/dist/radio.js +9 -7
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +3 -3
- package/dist/select.js +17 -14
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +80 -12
- package/dist/sidebar-navigation.js +18 -9
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +148 -42
- package/dist/table.js +39 -33
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +13 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +4 -3
- package/dist/textarea.js +7 -5
- package/dist/theme.css +151 -6
- package/dist/theme.js +11 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +12 -9
- package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +8 -6
- package/dist/types-DR9rAEy1.d.ts +188 -0
- package/dist/use-uploads-KaPqDklo.d.ts +482 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +14 -0
- package/package.json +70 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/chunk-ZZT2E5VT.js +0 -24
- package/dist/shared-BNXAdgh2.d.ts +0 -9
package/dist/switch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";export { Switch } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-GCVA3OIV.js';
|
|
1
|
+
"use client";export { Switch } from './chunk-QDKETK7D.js';
|
|
2
|
+
import './chunk-D7EE5GWU.js';
|
|
3
|
+
import './chunk-45Y2ZGNK.js';
|
|
5
4
|
import './chunk-ZSNJ6UA3.js';
|
|
5
|
+
import './chunk-QDYE5LVT.js';
|
|
6
6
|
//# sourceMappingURL=switch.js.map
|
|
7
7
|
//# sourceMappingURL=switch.js.map
|
package/dist/table.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
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 { T as TableLabels } from './labels-DPrh0se9.js';
|
|
8
|
+
import './rule-BqzaIwJy.js';
|
|
6
9
|
|
|
7
10
|
/** Which edge a cell's content sits against. `end` is for QUANTITIES — counts, hours, money,
|
|
8
11
|
* averages — so it also applies `tabular-nums`; figures that stack must line up digit-for-digit.
|
|
@@ -208,11 +211,31 @@ type RowAction = {
|
|
|
208
211
|
icon?: React.ReactNode;
|
|
209
212
|
/** Fires on activation — and still fires on an `href` action, for the analytics/side-effect case. */
|
|
210
213
|
onClick?: () => void;
|
|
211
|
-
/** Tints the control — `error` for a destructive action.
|
|
212
|
-
|
|
214
|
+
/** Tints the control — `error` for a destructive action. The library's ONE colour axis, so it is
|
|
215
|
+
* spelled `color` here exactly as on `Button`/`Badge`/`Callout` (it was `tone` before this pass). */
|
|
216
|
+
color?: SemanticColor;
|
|
213
217
|
/** A disabled action is never a link: navigation is the browser's and an `<a>` cannot be
|
|
214
218
|
* disabled, so dropping the `href` is what actually makes it inert. */
|
|
215
219
|
disabled?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* WHY this action is disabled — a short sentence, shown only while `disabled` is true.
|
|
222
|
+
*
|
|
223
|
+
* It exists because a page CANNOT add it from outside. A disabled control emits no pointer
|
|
224
|
+
* events, so an explanation has to hang off a focusable wrapper — and `Table` builds the trigger
|
|
225
|
+
* itself, so the caller never holds an element to wrap. That asymmetry (a page can explain a
|
|
226
|
+
* disabled Button, but not a disabled row action) is the whole argument for putting it here.
|
|
227
|
+
*
|
|
228
|
+
* How it renders is per presentation, because a tooltip is not available in both:
|
|
229
|
+
* · `icon` / `link` — a `<Tooltip>` on a focusable wrapper the cell owns. The wrapper is what
|
|
230
|
+
* keeps the explanation reachable at all: a disabled control drops out of the tab order and
|
|
231
|
+
* takes its reason with it.
|
|
232
|
+
* · `menu` — supporting text UNDER the row's label. A floating popover anchored inside an open
|
|
233
|
+
* popover is its own problem, and a menu row has somewhere to put a second line.
|
|
234
|
+
* Either way it joins the control's accessible NAME, so it is announced without a hover.
|
|
235
|
+
*
|
|
236
|
+
* Ignored unless `disabled`. Free text a human wrote, so `string` (see `docs/type-safety-policy.md`).
|
|
237
|
+
*/
|
|
238
|
+
disabledReason?: string;
|
|
216
239
|
} & ({
|
|
217
240
|
href: string;
|
|
218
241
|
confirm?: never;
|
|
@@ -223,6 +246,15 @@ type RowAction = {
|
|
|
223
246
|
title: string;
|
|
224
247
|
description?: string;
|
|
225
248
|
confirmLabel?: string;
|
|
249
|
+
/**
|
|
250
|
+
* The dismiss button's label. Defaults to the `table.cancel` label, so an app that has
|
|
251
|
+
* declared its copy once does not repeat it per action.
|
|
252
|
+
*
|
|
253
|
+
* It exists beside `confirmLabel` because the pair reads as deliberate otherwise: three
|
|
254
|
+
* translatable strings and then a fourth, hard-coded, on the button that means STOP — in a
|
|
255
|
+
* modal asking permission to do something irreversible.
|
|
256
|
+
*/
|
|
257
|
+
cancelLabel?: string;
|
|
226
258
|
};
|
|
227
259
|
});
|
|
228
260
|
/**
|
|
@@ -238,7 +270,7 @@ type RowAction = {
|
|
|
238
270
|
* So the union substitutes {@link RowAction} for DropdownMenu's action row and reuses the rest:
|
|
239
271
|
*
|
|
240
272
|
* - **action row** — a `RowAction`, keeping the row-action extras a bare menu row has no idea about
|
|
241
|
-
* (`
|
|
273
|
+
* (`color`, `confirm`, and the disabled-drops-`href` rule).
|
|
242
274
|
* - **`{ separator: true }`** · **checkbox** · **radio** — no row-action semantics to add, so these
|
|
243
275
|
* are DropdownMenu's own types, passed through untouched.
|
|
244
276
|
* - **group** and **submenu** — spelled here rather than reused, because their `items` must recurse
|
|
@@ -268,57 +300,101 @@ type RowMenuItem = RowAction | DropdownMenuSeparatorItem | DropdownMenuCheckboxI
|
|
|
268
300
|
className?: string;
|
|
269
301
|
};
|
|
270
302
|
/**
|
|
271
|
-
*
|
|
303
|
+
* ONE row action, in the ONE place its presentation is spelled.
|
|
304
|
+
*
|
|
305
|
+
* There is no container `variant` and no per-table presentation switch: a row is an ARRAY of slots
|
|
306
|
+
* and each slot says how it draws itself. That is what lets a single row read
|
|
307
|
+
* `icon · icon · link · menu`, which the previous three-branch union could not express at all —
|
|
308
|
+
* its `variant` was a property of the COLUMN, so every action in every row rendered the same way.
|
|
272
309
|
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* the
|
|
277
|
-
*
|
|
278
|
-
*
|
|
310
|
+
* **`display` is REQUIRED on every slot, with no default.** The old shape could afford one because
|
|
311
|
+
* `variant` sat on the container and named the whole column at a glance; here the word appears once
|
|
312
|
+
* per slot, and an omitted one makes the array read `? · ? · link · menu` — the reader has to know
|
|
313
|
+
* the default to reconstruct the row. One slot, one spelling, and the row is legible top to bottom.
|
|
314
|
+
* It also makes a mistyped member fail with the branch NAMED (`"icons"` is not `"icon"`) instead of
|
|
315
|
+
* falling through to a default branch and then erroring about a missing `icon`, which points at the
|
|
316
|
+
* wrong prop.
|
|
279
317
|
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
318
|
+
* - **`icon`** — a `ButtonUtility` ghost with a tooltip. **`icon` is required here: it IS the
|
|
319
|
+
* button.** An icon-less icon slot is a 32px blank that nothing can click by sight. That was not
|
|
320
|
+
* hypothetical — every demo on the Table page passed `{ label, onClick }` and the whole actions
|
|
321
|
+
* column rendered invisible. A type error, not a dev-warn, the same
|
|
322
|
+
* unrepresentable-rather-than-warned discipline `{ href, confirm }` uses above (AGENTS §4).
|
|
323
|
+
* - **`link`** — a `Button variant="link"`. The label carries the meaning, so `icon` stays optional;
|
|
324
|
+
* when given it renders as the button's leading slot rather than being silently dropped.
|
|
325
|
+
* - **`menu`** — a ⋮ `DropdownMenu` whose rows are {@link RowMenuItem}s: DropdownMenu's WHOLE
|
|
326
|
+
* vocabulary (groups, separators, submenus, checkbox, radio), because it IS a DropdownMenu. It
|
|
327
|
+
* sits in the SAME array as the other two and **position is the caller's** — a ⋮ is not
|
|
328
|
+
* automatically last, and nothing collapses into it behind your back.
|
|
283
329
|
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* `
|
|
290
|
-
*
|
|
330
|
+
* **There is no `max` and no auto-overflow, anywhere.** In a table the ROW is the overflow
|
|
331
|
+
* mechanism; an actions cell has exactly as many controls as the caller wrote. The deleted prop was
|
|
332
|
+
* not merely unused, it was wrong: it defaulted to **3**, and `slice(0, max - 1)` kept the HEAD, so
|
|
333
|
+
* a 4-action row rendered its first two inline and swallowed everything from index 2 into a ⋮ nobody
|
|
334
|
+
* asked for. The action that vanished was the LAST one — which by convention is the trailing
|
|
335
|
+
* `color: "error"` Delete. A destructive action silently relocating into a menu is the opposite of
|
|
336
|
+
* what a cap is for.
|
|
337
|
+
*
|
|
338
|
+
* The three members are spelled inline rather than as named types, for the same reason
|
|
339
|
+
* {@link RowAction}'s base is: the API snapshot then prints the whole contract instead of a name
|
|
340
|
+
* that is not exported.
|
|
291
341
|
*/
|
|
292
|
-
type
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
342
|
+
type RowActionSlot =
|
|
343
|
+
/** The glyph IS the button, so `icon` is required. */
|
|
344
|
+
(RowAction & {
|
|
345
|
+
display: "icon";
|
|
346
|
+
icon: React.ReactNode;
|
|
347
|
+
items?: never;
|
|
348
|
+
})
|
|
349
|
+
/** An inline text button. `icon`, when present, renders leading. */
|
|
350
|
+
| (RowAction & {
|
|
351
|
+
display: "link";
|
|
352
|
+
items?: never;
|
|
353
|
+
}) | {
|
|
354
|
+
display: "menu";
|
|
355
|
+
/** The menu's rows — DropdownMenu's whole vocabulary. An empty array renders no slot. */
|
|
356
|
+
items: readonly RowMenuItem[];
|
|
357
|
+
/**
|
|
358
|
+
* The ⋮ trigger's tooltip and accessible name. @default "Row actions"
|
|
359
|
+
*
|
|
360
|
+
* A `string`, not a `ReactNode`: it becomes an `aria-label`, which cannot take a node.
|
|
361
|
+
*/
|
|
362
|
+
label?: string;
|
|
363
|
+
/** A row whose menu exists but is unavailable. The trigger stays in place (so the column's
|
|
364
|
+
* right edge does not jitter row to row) and never opens — unlike `items: []`, which
|
|
365
|
+
* renders no slot at all. */
|
|
366
|
+
disabled?: boolean;
|
|
367
|
+
/** WHY the ⋮ is unavailable — a tooltip on a focusable wrapper the cell owns, same as an
|
|
368
|
+
* `icon` slot's. Ignored unless `disabled`; a disabled trigger opens nothing, so the reason
|
|
369
|
+
* is the only thing it CAN say. (An individual disabled ROW states its own separately.) */
|
|
370
|
+
disabledReason?: string;
|
|
371
|
+
onClick?: never;
|
|
372
|
+
href?: never;
|
|
373
|
+
confirm?: never;
|
|
374
|
+
color?: never;
|
|
375
|
+
icon?: never;
|
|
311
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* The row-action column: a resolver, and nothing else.
|
|
379
|
+
*
|
|
380
|
+
* `rowActions` IS the function — there is no wrapper object left to hold options, because there are
|
|
381
|
+
* none. This is the same category {@link TableColumn.cell} and {@link RowExpansion} occupy (data →
|
|
382
|
+
* node, never structure), so the flat-only contract in AGENTS §11 is unchanged.
|
|
383
|
+
*/
|
|
384
|
+
type RowActions<Row> = (row: Row) => readonly RowActionSlot[];
|
|
312
385
|
interface BulkAction {
|
|
313
386
|
label: string;
|
|
314
387
|
icon?: React.ReactNode;
|
|
315
|
-
|
|
388
|
+
color?: SemanticColor;
|
|
316
389
|
onClick: (ids: ReadonlySet<string>) => void;
|
|
317
390
|
/** Routes the action through the same confirmation dialog a `RowAction` uses. */
|
|
318
391
|
confirm?: {
|
|
319
392
|
title: string;
|
|
320
393
|
description?: string;
|
|
321
394
|
confirmLabel?: string;
|
|
395
|
+
/** The dismiss button's label. Defaults to the `table.cancel` label, so an app that has
|
|
396
|
+
* declared its copy once does not repeat it per action. */
|
|
397
|
+
cancelLabel?: string;
|
|
322
398
|
};
|
|
323
399
|
}
|
|
324
400
|
interface TableToolbar {
|
|
@@ -535,6 +611,14 @@ interface UseTableResult<Row, K extends string = string> {
|
|
|
535
611
|
selectionOnPage: number;
|
|
536
612
|
/** Toggle one row. Under `single` this REPLACES the selection; under `none` it does nothing. */
|
|
537
613
|
toggleRow: (id: string) => void;
|
|
614
|
+
/**
|
|
615
|
+
* Adds every selectable row between two ids, inclusive — what Shift+click and Shift+arrow commit.
|
|
616
|
+
*
|
|
617
|
+
* Additive (Shift means EXTEND), ordered by what is on screen rather than by the source array, and
|
|
618
|
+
* inert outside `selection: "multiple"`. Without it the view had no engine call to make, which is
|
|
619
|
+
* why range selection did not exist at all.
|
|
620
|
+
*/
|
|
621
|
+
selectRange: (fromId: string, toId: string) => void;
|
|
538
622
|
/** Replace the whole selection with one row — what `single` commits. */
|
|
539
623
|
selectOnly: (id: string) => void;
|
|
540
624
|
/** Select-all for the visible page. Only `multiple` has a page to select. */
|
|
@@ -613,8 +697,25 @@ interface TableProps<Row, K extends string = string> {
|
|
|
613
697
|
table: UseTableResult<Row, K>;
|
|
614
698
|
/** `sm` (36px header / 56px rows) · `md` (44 / 72). @default "md" */
|
|
615
699
|
size?: TableSize;
|
|
616
|
-
/**
|
|
700
|
+
/**
|
|
701
|
+
* How the BODY ROWS are separated — hairline rules, or alternating fills. @default "divided"
|
|
702
|
+
*
|
|
703
|
+
* Distinct from {@link TableProps.dividers}, and the split is deliberate: this answers "rules or
|
|
704
|
+
* stripes for the data?", which is a question about the rows and has an either/or answer that a
|
|
705
|
+
* texture cannot express. `dividers` answers "how is the CHROME seamed?".
|
|
706
|
+
*/
|
|
617
707
|
treatment?: TableTreatment;
|
|
708
|
+
/**
|
|
709
|
+
* How the CHROME band seams are drawn — under the toolbar, under the header band, above the
|
|
710
|
+
* pagination footer, and around the card stack's own bands. The library-wide texture vocabulary
|
|
711
|
+
* (`src/lib/rule.ts`), with `"none"` naming the off state.
|
|
712
|
+
*
|
|
713
|
+
* NOT the body rows: those are {@link TableProps.treatment}, because "rules vs stripes" is a
|
|
714
|
+
* different question from "which ink". A table showing 200 dotted row rules is noise; a dotted
|
|
715
|
+
* seam under its toolbar is a legitimate quiet-chrome choice.
|
|
716
|
+
* @default "line"
|
|
717
|
+
*/
|
|
718
|
+
dividers?: PanelDividers;
|
|
618
719
|
/**
|
|
619
720
|
* Whether a row washes under the pointer. `"none"` turns the wash off for a table that is pure
|
|
620
721
|
* output — nothing on the row responds to a click, so feedback that says "this is interactive"
|
|
@@ -674,6 +775,11 @@ interface TableProps<Row, K extends string = string> {
|
|
|
674
775
|
maxHeight?: number;
|
|
675
776
|
/** @default "scroll" */
|
|
676
777
|
responsive?: TableResponsive;
|
|
778
|
+
/** Override the table family's own copy — the selection and expansion controls, the empty and
|
|
779
|
+
* error states, the toolbar's search + filter names, its selection live region, and card mode's
|
|
780
|
+
* sort row. ONE scope for `Table` + its toolbar, cells and cards. Merges under
|
|
781
|
+
* `<JenosizeUIProvider labels={{ table }}>`; see `docs/i18n-policy.md`. */
|
|
782
|
+
labels?: TableLabels;
|
|
677
783
|
/** Layout/spacing only. Never restyles internals. */
|
|
678
784
|
className?: string;
|
|
679
785
|
}
|
|
@@ -689,4 +795,4 @@ interface TableProps<Row, K extends string = string> {
|
|
|
689
795
|
*/
|
|
690
796
|
declare function Table<Row, K extends string = string>(props: TableProps<Row, K>): React.JSX.Element;
|
|
691
797
|
|
|
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 };
|
|
798
|
+
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,50 @@
|
|
|
1
|
-
"use client";export { Table, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
"use client";export { Table, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './chunk-U4WSJAYK.js';
|
|
2
|
+
import './chunk-6MMBQVRO.js';
|
|
3
|
+
import './chunk-LQURV7HQ.js';
|
|
4
4
|
import './chunk-OHUFNYGN.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-ZOOX3TUB.js';
|
|
13
|
-
import './chunk-GTHJWR3Q.js';
|
|
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';
|
|
20
|
-
import './chunk-7EUAMHMU.js';
|
|
21
|
-
import './chunk-T7FCG7XV.js';
|
|
5
|
+
import './chunk-6B6BWTXC.js';
|
|
6
|
+
import './chunk-54SIZR63.js';
|
|
7
|
+
import './chunk-LLPWQDF7.js';
|
|
8
|
+
import './chunk-3H444OJA.js';
|
|
9
|
+
import './chunk-CKMWBVRR.js';
|
|
10
|
+
import './chunk-LO22VQL5.js';
|
|
11
|
+
import './chunk-FFMTYQXE.js';
|
|
22
12
|
import './chunk-7S2TBALK.js';
|
|
23
|
-
import './chunk-
|
|
13
|
+
import './chunk-I6WMNXC7.js';
|
|
14
|
+
import './chunk-PO2TYK3C.js';
|
|
15
|
+
import './chunk-LYXPJERB.js';
|
|
24
16
|
import './chunk-S7NNXWIN.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-R6RGJF4L.js';
|
|
29
|
-
import './chunk-W5GGOUUI.js';
|
|
17
|
+
import './chunk-F6NLE6XJ.js';
|
|
18
|
+
import './chunk-4RBIWI2Q.js';
|
|
19
|
+
import './chunk-6H4LNWQ7.js';
|
|
30
20
|
import './chunk-4P2NBLBW.js';
|
|
21
|
+
import './chunk-FKVPAEJ6.js';
|
|
22
|
+
import './chunk-5XPMY2LF.js';
|
|
23
|
+
import './chunk-7JBNLEJ7.js';
|
|
24
|
+
import './chunk-D7EE5GWU.js';
|
|
25
|
+
import './chunk-45Y2ZGNK.js';
|
|
26
|
+
import './chunk-7VLYQR4D.js';
|
|
27
|
+
import './chunk-LCG34A5T.js';
|
|
28
|
+
import './chunk-5AZKP4KZ.js';
|
|
29
|
+
import './chunk-OACWA4TC.js';
|
|
30
|
+
import './chunk-AZ7DKRBY.js';
|
|
31
|
+
import './chunk-MCQG4H6T.js';
|
|
32
|
+
import './chunk-CGHYXWTT.js';
|
|
31
33
|
import './chunk-DWKILXHE.js';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-7GUPNTAH.js';
|
|
35
|
+
import './chunk-7EUAMHMU.js';
|
|
36
|
+
import './chunk-X2VMIBK5.js';
|
|
35
37
|
import './chunk-O2LG3PNI.js';
|
|
36
38
|
import './chunk-EDSK6FEH.js';
|
|
37
|
-
import './chunk-
|
|
38
|
-
import './chunk-
|
|
39
|
-
import './chunk-
|
|
39
|
+
import './chunk-5KSD4WKN.js';
|
|
40
|
+
import './chunk-7ZM7SNCZ.js';
|
|
41
|
+
import './chunk-52IFGFTL.js';
|
|
42
|
+
import './chunk-KZP6B6B3.js';
|
|
43
|
+
import './chunk-AFYXSZGW.js';
|
|
40
44
|
import './chunk-O4GRKO3I.js';
|
|
41
|
-
import './chunk-
|
|
45
|
+
import './chunk-BLIZ3CL3.js';
|
|
42
46
|
import './chunk-ZSNJ6UA3.js';
|
|
47
|
+
import './chunk-RJTVCA62.js';
|
|
48
|
+
import './chunk-QDYE5LVT.js';
|
|
43
49
|
//# sourceMappingURL=table.js.map
|
|
44
50
|
//# sourceMappingURL=table.js.map
|
package/dist/tabs.d.ts
CHANGED
|
@@ -26,6 +26,28 @@ interface TabItem<V extends string = string> {
|
|
|
26
26
|
trailing?: React.ReactNode;
|
|
27
27
|
/** Disable this single tab (focusable per the ARIA pattern, but never activates). */
|
|
28
28
|
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Render this tab as your own element — the router escape hatch. Same shape and same name as
|
|
31
|
+
* `NavLink.render` and `BreadcrumbItem.render`, deliberately: a caller who learned it on one
|
|
32
|
+
* uses it here without looking it up (AGENTS §4 `Polymorphism`).
|
|
33
|
+
*
|
|
34
|
+
* **Why a strip of tabs needs one at all.** When the "panels" are ROUTES rather than content, each
|
|
35
|
+
* tab is a destination, and a destination has to be an `<a href>` — otherwise there is no
|
|
36
|
+
* ⌘-click, no middle-click, no "open in new tab", no status-bar URL, and nothing for the app's
|
|
37
|
+
* router to intercept. `HeaderNavigation`'s `secondary="tabs"` tier had no way to say that, so it
|
|
38
|
+
* navigated imperatively with `location.assign` — a full document load, and worse: this list sets
|
|
39
|
+
* `activateOnFocus`, so ARROW-KEYING THE STRIP fired that navigation on the first keypress and the
|
|
40
|
+
* tier could not be traversed by keyboard at all.
|
|
41
|
+
*
|
|
42
|
+
* Pass an element, never a component: `render={<Link href="/members" />}`. Base UI merges the
|
|
43
|
+
* tab's own props (role, `aria-selected`, roving `tabIndex`, handlers, className) onto it, so
|
|
44
|
+
* anything you set — `aria-current="page"`, `target`, `onClick` — survives the swap.
|
|
45
|
+
*
|
|
46
|
+
* A tab with `render` still owns `value`: that is what wires it to the strip's selection, and
|
|
47
|
+
* with a CONTROLLED `value` derived from the route, arrow-key focus moves without moving the
|
|
48
|
+
* selection — which is exactly right, since "you are here" must not change until you arrive.
|
|
49
|
+
*/
|
|
50
|
+
render?: React.ReactElement;
|
|
29
51
|
/** Layout/spacing overrides for THIS tab button only (e.g. `flex-1`), merged via `cn()`. */
|
|
30
52
|
className?: string;
|
|
31
53
|
/** Keep THIS panel mounted (hidden) when inactive — overrides the root `keepMounted`. */
|
package/dist/tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use client";export { Tabs } from './chunk-
|
|
2
|
-
import './chunk-52IFGFTL.js';
|
|
1
|
+
"use client";export { Tabs } from './chunk-AIGYMTCU.js';
|
|
3
2
|
import './chunk-O2LG3PNI.js';
|
|
4
3
|
import './chunk-EDSK6FEH.js';
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-52IFGFTL.js';
|
|
6
5
|
import './chunk-ZSNJ6UA3.js';
|
|
6
|
+
import './chunk-QDYE5LVT.js';
|
|
7
7
|
//# sourceMappingURL=tabs.js.map
|
|
8
8
|
//# sourceMappingURL=tabs.js.map
|
package/dist/tag-input.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { d as TagInputBaseProps } from './TagInput-
|
|
2
|
-
export { T as TagInput, a as TagInputProps, b as TagInputSeparator, c as TagInputSize } from './TagInput-
|
|
1
|
+
import { d as TagInputBaseProps } from './TagInput-BaBeve6L.js';
|
|
2
|
+
export { T as TagInput, a as TagInputProps, b as TagInputSeparator, c as TagInputSize } from './TagInput-BaBeve6L.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import './labels-DPrh0se9.js';
|
|
4
5
|
|
|
5
6
|
type TagInputOuterProps = TagInputBaseProps;
|
|
6
7
|
/** Tag input with removable pills rendered in a block BELOW the field.
|
package/dist/tag-input.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
"use client";export { TagInputOuter } from './chunk-
|
|
2
|
-
export { TagInput } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
"use client";export { TagInputOuter } from './chunk-MVG5MABV.js';
|
|
2
|
+
export { TagInput } from './chunk-QHH6AUR3.js';
|
|
3
|
+
import './chunk-LYXPJERB.js';
|
|
4
|
+
import './chunk-6H4LNWQ7.js';
|
|
5
5
|
import './chunk-4P2NBLBW.js';
|
|
6
6
|
import './chunk-DWKILXHE.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-KNYKWUYX.js';
|
|
9
|
-
import './chunk-52IFGFTL.js';
|
|
7
|
+
import './chunk-X2VMIBK5.js';
|
|
10
8
|
import './chunk-O2LG3PNI.js';
|
|
11
9
|
import './chunk-EDSK6FEH.js';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
10
|
+
import './chunk-5KSD4WKN.js';
|
|
11
|
+
import './chunk-7ZM7SNCZ.js';
|
|
12
|
+
import './chunk-52IFGFTL.js';
|
|
13
|
+
import './chunk-KZP6B6B3.js';
|
|
14
|
+
import './chunk-AFYXSZGW.js';
|
|
15
15
|
import './chunk-O4GRKO3I.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-BLIZ3CL3.js';
|
|
17
17
|
import './chunk-ZSNJ6UA3.js';
|
|
18
|
+
import './chunk-RJTVCA62.js';
|
|
19
|
+
import './chunk-QDYE5LVT.js';
|
|
18
20
|
//# sourceMappingURL=tag-input.js.map
|
|
19
21
|
//# sourceMappingURL=tag-input.js.map
|
package/dist/tag.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { O as OverflowMode } from './overflow-Df0h42Oi.js';
|
|
3
|
+
import { l as TagLabels } from './labels-DPrh0se9.js';
|
|
3
4
|
import { b as Option } from './options-CPEIgjtd.js';
|
|
4
5
|
|
|
5
6
|
type TagSize = "sm" | "md" | "lg";
|
|
@@ -25,6 +26,9 @@ interface TagProps extends Omit<React.ComponentPropsWithoutRef<"span">, "childre
|
|
|
25
26
|
onRemove?: () => void;
|
|
26
27
|
/** Accessible label for the close button. @default `Remove ${children}` (string label) or "Remove tag". */
|
|
27
28
|
removeLabel?: string;
|
|
29
|
+
/** Override the component's own copy — what the remove button is named when `removeLabel` is
|
|
30
|
+
* absent. Merges under `<JenosizeUIProvider labels={{ tag }}>`; see `docs/i18n-policy.md`. */
|
|
31
|
+
labels?: TagLabels;
|
|
28
32
|
/** Take the close button out of the tab order (removal is driven elsewhere, e.g. `TagInput`'s Backspace). @default false */
|
|
29
33
|
removeExcludeFromTabOrder?: boolean;
|
|
30
34
|
/** `cursor-not-allowed` + disables the close button (the pill keeps full color, per UUI). @default false */
|
package/dist/tag.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
"use client";export { Tag, TagGroup } from './chunk-
|
|
1
|
+
"use client";export { Tag, TagGroup } from './chunk-LYXPJERB.js';
|
|
2
2
|
import './chunk-4P2NBLBW.js';
|
|
3
3
|
import './chunk-DWKILXHE.js';
|
|
4
4
|
import './chunk-52IFGFTL.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-GCVA3OIV.js';
|
|
5
|
+
import './chunk-BLIZ3CL3.js';
|
|
7
6
|
import './chunk-ZSNJ6UA3.js';
|
|
7
|
+
import './chunk-RJTVCA62.js';
|
|
8
|
+
import './chunk-QDYE5LVT.js';
|
|
8
9
|
//# sourceMappingURL=tag.js.map
|
|
9
10
|
//# sourceMappingURL=tag.js.map
|
package/dist/textarea.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
"use client";export { Textarea } from './chunk-
|
|
1
|
+
"use client";export { Textarea } from './chunk-GQRSABRN.js';
|
|
2
2
|
import './chunk-7EUAMHMU.js';
|
|
3
3
|
import './chunk-O2LG3PNI.js';
|
|
4
4
|
import './chunk-EDSK6FEH.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-5KSD4WKN.js';
|
|
6
|
+
import './chunk-KZP6B6B3.js';
|
|
7
|
+
import './chunk-AFYXSZGW.js';
|
|
8
8
|
import './chunk-O4GRKO3I.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-BLIZ3CL3.js';
|
|
10
10
|
import './chunk-ZSNJ6UA3.js';
|
|
11
|
+
import './chunk-RJTVCA62.js';
|
|
12
|
+
import './chunk-QDYE5LVT.js';
|
|
11
13
|
//# sourceMappingURL=textarea.js.map
|
|
12
14
|
//# sourceMappingURL=textarea.js.map
|