sherick-ui 2.11.0 → 2.13.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.
- package/dist/cjs/components/Badge.cjs +21 -2
- package/dist/cjs/components/Badge.cjs.map +1 -1
- package/dist/cjs/components/Card.cjs +3 -3
- package/dist/cjs/components/Card.cjs.map +1 -1
- package/dist/cjs/components/CheckboxGroup.cjs.map +1 -1
- package/dist/cjs/components/Chip.cjs +9 -6
- package/dist/cjs/components/Chip.cjs.map +1 -1
- package/dist/cjs/components/ChipGroup.cjs +21 -2
- package/dist/cjs/components/ChipGroup.cjs.map +1 -1
- package/dist/cjs/components/Combobox.cjs +4 -4
- package/dist/cjs/components/Combobox.cjs.map +1 -1
- package/dist/cjs/components/Command.cjs +1 -1
- package/dist/cjs/components/Command.cjs.map +1 -1
- package/dist/cjs/components/DatePicker.cjs +1 -1
- package/dist/cjs/components/DatePicker.cjs.map +1 -1
- package/dist/cjs/components/DateRangePicker.cjs +1 -1
- package/dist/cjs/components/DateRangePicker.cjs.map +1 -1
- package/dist/cjs/components/DateTimePicker.cjs +1 -1
- package/dist/cjs/components/DateTimePicker.cjs.map +1 -1
- package/dist/cjs/components/Drawer.cjs +10 -4
- package/dist/cjs/components/Drawer.cjs.map +1 -1
- package/dist/cjs/components/Field.cjs +10 -0
- package/dist/cjs/components/Field.cjs.map +1 -1
- package/dist/cjs/components/Input.cjs +2 -2
- package/dist/cjs/components/Input.cjs.map +1 -1
- package/dist/cjs/components/NumberField.cjs +2 -2
- package/dist/cjs/components/NumberField.cjs.map +1 -1
- package/dist/cjs/components/RadioGroup.cjs.map +1 -1
- package/dist/cjs/components/Search.cjs +1 -1
- package/dist/cjs/components/Search.cjs.map +1 -1
- package/dist/cjs/components/Select.cjs +1 -1
- package/dist/cjs/components/Select.cjs.map +1 -1
- package/dist/cjs/components/Table.cjs +23 -5
- package/dist/cjs/components/Table.cjs.map +1 -1
- package/dist/cjs/components/Textarea.cjs +1 -1
- package/dist/cjs/components/Textarea.cjs.map +1 -1
- package/dist/cjs/components/choice-row.cjs +1 -1
- package/dist/cjs/components/choice-row.cjs.map +1 -1
- package/dist/cjs/components/date-field.cjs +7 -4
- package/dist/cjs/components/date-field.cjs.map +1 -1
- package/dist/cjs/components/edge-fade.cjs +1 -1
- package/dist/cjs/components/edge-fade.cjs.map +1 -1
- package/dist/cjs/components/ui.common.cjs +100 -56
- package/dist/cjs/components/ui.common.cjs.map +1 -1
- package/dist/cjs/components/ui.motion.cjs +2 -3
- package/dist/cjs/components/ui.motion.cjs.map +1 -1
- package/dist/cjs/dev.cjs +4 -0
- package/dist/cjs/dev.cjs.map +1 -1
- package/dist/esm/components/Badge.js +22 -3
- package/dist/esm/components/Badge.js.map +1 -1
- package/dist/esm/components/Card.js +4 -4
- package/dist/esm/components/Card.js.map +1 -1
- package/dist/esm/components/CheckboxGroup.js.map +1 -1
- package/dist/esm/components/Chip.js +9 -6
- package/dist/esm/components/Chip.js.map +1 -1
- package/dist/esm/components/ChipGroup.js +22 -3
- package/dist/esm/components/ChipGroup.js.map +1 -1
- package/dist/esm/components/Combobox.js +6 -6
- package/dist/esm/components/Combobox.js.map +1 -1
- package/dist/esm/components/Command.js +2 -2
- package/dist/esm/components/Command.js.map +1 -1
- package/dist/esm/components/DatePicker.js +1 -1
- package/dist/esm/components/DatePicker.js.map +1 -1
- package/dist/esm/components/DateRangePicker.js +1 -1
- package/dist/esm/components/DateRangePicker.js.map +1 -1
- package/dist/esm/components/DateTimePicker.js +1 -1
- package/dist/esm/components/DateTimePicker.js.map +1 -1
- package/dist/esm/components/Drawer.js +11 -5
- package/dist/esm/components/Drawer.js.map +1 -1
- package/dist/esm/components/Field.js +10 -1
- package/dist/esm/components/Field.js.map +1 -1
- package/dist/esm/components/Input.js +3 -3
- package/dist/esm/components/Input.js.map +1 -1
- package/dist/esm/components/NumberField.js +4 -4
- package/dist/esm/components/NumberField.js.map +1 -1
- package/dist/esm/components/RadioGroup.js.map +1 -1
- package/dist/esm/components/Search.js +2 -2
- package/dist/esm/components/Search.js.map +1 -1
- package/dist/esm/components/Select.js +2 -2
- package/dist/esm/components/Select.js.map +1 -1
- package/dist/esm/components/Table.js +24 -6
- package/dist/esm/components/Table.js.map +1 -1
- package/dist/esm/components/Textarea.js +2 -2
- package/dist/esm/components/Textarea.js.map +1 -1
- package/dist/esm/components/choice-row.js +2 -2
- package/dist/esm/components/choice-row.js.map +1 -1
- package/dist/esm/components/date-field.js +8 -5
- package/dist/esm/components/date-field.js.map +1 -1
- package/dist/esm/components/edge-fade.js +1 -1
- package/dist/esm/components/edge-fade.js.map +1 -1
- package/dist/esm/components/ui.common.js +98 -58
- package/dist/esm/components/ui.common.js.map +1 -1
- package/dist/esm/components/ui.motion.js +2 -3
- package/dist/esm/components/ui.motion.js.map +1 -1
- package/dist/esm/dev.js +1 -1
- package/dist/styles.css +149 -53
- package/dist/theme.css +40 -28
- package/dist/types/dev.d.cts +19 -7
- package/dist/types/dev.d.ts +19 -7
- package/dist/types/index.d.cts +59 -9
- package/dist/types/index.d.ts +59 -9
- package/package.json +5 -3
package/dist/types/dev.d.cts
CHANGED
|
@@ -10,16 +10,19 @@ declare const groupFocusRing = "group-focus-visible:outline group-focus-visible:
|
|
|
10
10
|
declare const forcedBoundary = "forced-colors:outline forced-colors:outline-1 forced-colors:outline-offset-[-1px]";
|
|
11
11
|
declare const elevation: {
|
|
12
12
|
readonly flat: "shadow-sherick-flat";
|
|
13
|
+
readonly resting: "shadow-sherick-resting";
|
|
13
14
|
readonly raised: string;
|
|
14
15
|
readonly floating: string;
|
|
15
16
|
readonly control: "shadow-sherick-control";
|
|
16
17
|
readonly recessed: "shadow-sherick-recessed";
|
|
17
18
|
readonly well: "shadow-sherick-well";
|
|
19
|
+
readonly mark: "shadow-sherick-mark";
|
|
18
20
|
};
|
|
19
21
|
declare const recessedTop = "shadow-sherick-recessed-top";
|
|
20
22
|
declare const shape: {
|
|
21
23
|
readonly control: "rounded-[0.75rem]";
|
|
22
24
|
readonly mark: "rounded-[0.375rem]";
|
|
25
|
+
readonly tag: "rounded-[0.375rem]";
|
|
23
26
|
readonly row: "rounded-[0.5rem]";
|
|
24
27
|
readonly prominent: "rounded-[1rem]";
|
|
25
28
|
readonly surface: "rounded-[1.25rem]";
|
|
@@ -34,7 +37,7 @@ declare const edgeTone: {
|
|
|
34
37
|
readonly rule: "border-sherick-edge/[0.075]";
|
|
35
38
|
};
|
|
36
39
|
declare const rim: {
|
|
37
|
-
readonly field: "border-[1.5px]
|
|
40
|
+
readonly field: "forced-colors:border-[1.5px]";
|
|
38
41
|
readonly dashed: string;
|
|
39
42
|
readonly dashedHover: "hover:after:bg-sherick-ink-muted";
|
|
40
43
|
readonly dashedDragging: "data-[dragging]:after:bg-sherick-primary";
|
|
@@ -57,6 +60,7 @@ declare const state: {
|
|
|
57
60
|
readonly text: "cursor-text";
|
|
58
61
|
readonly quietInk: "text-sherick-ink-muted hover:text-sherick-ink focus-visible:text-sherick-ink";
|
|
59
62
|
readonly rowHover: "hover:bg-sherick-ink/[0.05]";
|
|
63
|
+
readonly rowNavigable: string;
|
|
60
64
|
readonly field: {
|
|
61
65
|
readonly hover: "hover:bg-sherick-tray-deep";
|
|
62
66
|
readonly focus: "focus:bg-sherick-tray-deep";
|
|
@@ -82,19 +86,22 @@ declare const stateLayer: {
|
|
|
82
86
|
readonly activeRow: "data-[highlighted]:before:opacity-[0.05]";
|
|
83
87
|
readonly fieldPart: string;
|
|
84
88
|
};
|
|
89
|
+
declare const rowTarget = "relative [&>th[scope=row]_:is(a,button)]:after:absolute [&>th[scope=row]_:is(a,button)]:after:inset-0 [&>th[scope=row]_:is(a,button)]:after:content-[''] [&>td_:is(a,button,input,select,textarea,[tabindex])]:relative [&>td_:is(a,button,input,select,textarea,[tabindex])]:z-[1]";
|
|
85
90
|
declare const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[min(0px,calc((100%-2.75rem)/2))] after:content-['']";
|
|
86
91
|
declare const material: {
|
|
87
92
|
readonly canvas: "bg-sherick-canvas text-sherick-ink";
|
|
88
93
|
readonly matteQuiet: "bg-sherick-surface/[0.42] text-sherick-ink";
|
|
89
|
-
readonly matte: "bg-sherick-surface
|
|
94
|
+
readonly matte: "bg-sherick-surface text-sherick-ink";
|
|
90
95
|
readonly matteHigh: "bg-sherick-surface-high/[0.72] text-sherick-ink";
|
|
91
|
-
readonly control: "bg-sherick-
|
|
96
|
+
readonly control: "bg-sherick-tray text-sherick-ink placeholder:text-sherick-ink-muted";
|
|
92
97
|
readonly controlError: "bg-sherick-danger-soft text-sherick-ink placeholder:text-sherick-danger";
|
|
93
98
|
readonly handle: "bg-sherick-ink-muted text-sherick-canvas";
|
|
94
99
|
readonly acrylic: "bg-sherick-surface-float/[var(--sui-glass-fill)] bg-[image:var(--sui-glass-gradient)] text-sherick-ink";
|
|
95
100
|
readonly acrylicDense: "bg-sherick-surface-float/[var(--sui-glass-dense-fill)] bg-[image:var(--sui-glass-gradient-dense)] text-sherick-ink";
|
|
96
101
|
readonly acrylicHero: "bg-sherick-surface-overlay/[var(--sui-overlay-fill)] bg-[image:var(--sui-glass-hero-gradient)] text-sherick-ink";
|
|
97
102
|
};
|
|
103
|
+
declare const fieldWell: string;
|
|
104
|
+
declare const fieldWellError: string;
|
|
98
105
|
declare const mediaCanvas = "bg-sherick-media";
|
|
99
106
|
declare const matteInset = "bg-sherick-surface-high/[0.35] text-sherick-ink";
|
|
100
107
|
declare const type: {
|
|
@@ -216,6 +223,7 @@ declare const currentDestination: {
|
|
|
216
223
|
readonly inTrack: "bg-sherick-primary-selected text-sherick-primary font-semibold";
|
|
217
224
|
};
|
|
218
225
|
declare const puck = "bg-sherick-puck";
|
|
226
|
+
declare const selectableRowRest: string;
|
|
219
227
|
declare const selectableRowSurface: string;
|
|
220
228
|
declare const selectableRowSupporting = "group-has-[[data-checked]]:text-sherick-ink";
|
|
221
229
|
declare const selectable: {
|
|
@@ -248,6 +256,10 @@ declare const recipeAlphas: {
|
|
|
248
256
|
readonly mark: {
|
|
249
257
|
readonly hover: number;
|
|
250
258
|
};
|
|
259
|
+
readonly row: {
|
|
260
|
+
readonly hover: number;
|
|
261
|
+
readonly press: number;
|
|
262
|
+
};
|
|
251
263
|
};
|
|
252
264
|
readonly tint: {
|
|
253
265
|
readonly neutralSoft: number;
|
|
@@ -260,6 +272,7 @@ declare const recipeAlphas: {
|
|
|
260
272
|
readonly quiet: number;
|
|
261
273
|
readonly card: number;
|
|
262
274
|
readonly groove: number;
|
|
275
|
+
readonly choiceRow: number;
|
|
263
276
|
readonly control: number;
|
|
264
277
|
readonly hover: number;
|
|
265
278
|
readonly engaged: number;
|
|
@@ -382,9 +395,8 @@ declare const motionActivityIndeterminate: string;
|
|
|
382
395
|
* is, and arrowing through a list with a soft fade on every row leaves a smear of half-lit rows.
|
|
383
396
|
* The row's layer therefore changes in one step, for the pointer and the keyboard alike. */
|
|
384
397
|
declare const motionRowLayer = "before:transition-none";
|
|
385
|
-
/** A rim drawn as an overlay of its own —
|
|
386
|
-
*
|
|
387
|
-
* on the same press curve as the surface beneath it. */
|
|
398
|
+
/** A rim drawn as an overlay of its own — a drop target's dashes — carries its own feedback
|
|
399
|
+
* timing: it steps up on hover, on the same press curve as the surface beneath it. */
|
|
388
400
|
declare const motionRim = "after:transition-[background-color,border-color,opacity] after:duration-press after:ease-press motion-reduce:after:transition-none";
|
|
389
401
|
declare const motionStateLayer = "before:transition-opacity before:duration-release before:ease-release active:before:duration-tactile active:before:ease-press group-active:before:duration-tactile group-active:before:ease-press motion-reduce:before:transition-none";
|
|
390
402
|
declare const motionDisclose = "transition-[height] duration-release ease-release data-[starting-style]:h-0 data-[ending-style]:h-0 data-[ending-style]:duration-overlay-exit data-[ending-style]:ease-exit motion-reduce:transition-none";
|
|
@@ -398,5 +410,5 @@ declare const motionPresenceToast: string;
|
|
|
398
410
|
*/
|
|
399
411
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
400
412
|
|
|
401
|
-
export { cn, codeWell, currentDestination, density, detail, disclosure, edge, edgeTone, elevation, fieldLabel, fieldLayout, fieldMessage, focusRing, focusRingDrag, focusRingHeld, focusRingInset, focusRingWithin, forcedBoundary, groupFocusRing, headingRhythm, hitArea, iconSlot, iconStroke, list, material, matteInset, mediaCanvas, motionActivityIndeterminate, motionActivityIndeterminateReduced, motionActivityPulse, motionActivitySpin, motionArrive, motionDirect, motionDisclose, motionFeedback, motionInkPress, motionOrient, motionPresenceAnchored, motionPresenceModal, motionPresenceScrim, motionPresenceScrimUtility, motionPresenceSheet, motionPresenceToast, motionPresenceTooltip, motionPresenceUtility, motionRelocate, motionRelocateLong, motionRim, motionRowLayer, motionStateLayer, motionTactile, motionTactileField, motionTactileWide, overlay, parentFocusRingInset, puck, recessedTop, recipeAlphas, richText, rim, selectable, selectableRowSupporting, selectableRowSurface, shape, stacking, state, stateLayer, stateLayerQuietComposite, text, tone, type };
|
|
413
|
+
export { cn, codeWell, currentDestination, density, detail, disclosure, edge, edgeTone, elevation, fieldLabel, fieldLayout, fieldMessage, fieldWell, fieldWellError, focusRing, focusRingDrag, focusRingHeld, focusRingInset, focusRingWithin, forcedBoundary, groupFocusRing, headingRhythm, hitArea, iconSlot, iconStroke, list, material, matteInset, mediaCanvas, motionActivityIndeterminate, motionActivityIndeterminateReduced, motionActivityPulse, motionActivitySpin, motionArrive, motionDirect, motionDisclose, motionFeedback, motionInkPress, motionOrient, motionPresenceAnchored, motionPresenceModal, motionPresenceScrim, motionPresenceScrimUtility, motionPresenceSheet, motionPresenceToast, motionPresenceTooltip, motionPresenceUtility, motionRelocate, motionRelocateLong, motionRim, motionRowLayer, motionStateLayer, motionTactile, motionTactileField, motionTactileWide, overlay, parentFocusRingInset, puck, recessedTop, recipeAlphas, richText, rim, rowTarget, selectable, selectableRowRest, selectableRowSupporting, selectableRowSurface, shape, stacking, state, stateLayer, stateLayerQuietComposite, text, tone, type };
|
|
402
414
|
export type { MotionIntent };
|
package/dist/types/dev.d.ts
CHANGED
|
@@ -10,16 +10,19 @@ declare const groupFocusRing = "group-focus-visible:outline group-focus-visible:
|
|
|
10
10
|
declare const forcedBoundary = "forced-colors:outline forced-colors:outline-1 forced-colors:outline-offset-[-1px]";
|
|
11
11
|
declare const elevation: {
|
|
12
12
|
readonly flat: "shadow-sherick-flat";
|
|
13
|
+
readonly resting: "shadow-sherick-resting";
|
|
13
14
|
readonly raised: string;
|
|
14
15
|
readonly floating: string;
|
|
15
16
|
readonly control: "shadow-sherick-control";
|
|
16
17
|
readonly recessed: "shadow-sherick-recessed";
|
|
17
18
|
readonly well: "shadow-sherick-well";
|
|
19
|
+
readonly mark: "shadow-sherick-mark";
|
|
18
20
|
};
|
|
19
21
|
declare const recessedTop = "shadow-sherick-recessed-top";
|
|
20
22
|
declare const shape: {
|
|
21
23
|
readonly control: "rounded-[0.75rem]";
|
|
22
24
|
readonly mark: "rounded-[0.375rem]";
|
|
25
|
+
readonly tag: "rounded-[0.375rem]";
|
|
23
26
|
readonly row: "rounded-[0.5rem]";
|
|
24
27
|
readonly prominent: "rounded-[1rem]";
|
|
25
28
|
readonly surface: "rounded-[1.25rem]";
|
|
@@ -34,7 +37,7 @@ declare const edgeTone: {
|
|
|
34
37
|
readonly rule: "border-sherick-edge/[0.075]";
|
|
35
38
|
};
|
|
36
39
|
declare const rim: {
|
|
37
|
-
readonly field: "border-[1.5px]
|
|
40
|
+
readonly field: "forced-colors:border-[1.5px]";
|
|
38
41
|
readonly dashed: string;
|
|
39
42
|
readonly dashedHover: "hover:after:bg-sherick-ink-muted";
|
|
40
43
|
readonly dashedDragging: "data-[dragging]:after:bg-sherick-primary";
|
|
@@ -57,6 +60,7 @@ declare const state: {
|
|
|
57
60
|
readonly text: "cursor-text";
|
|
58
61
|
readonly quietInk: "text-sherick-ink-muted hover:text-sherick-ink focus-visible:text-sherick-ink";
|
|
59
62
|
readonly rowHover: "hover:bg-sherick-ink/[0.05]";
|
|
63
|
+
readonly rowNavigable: string;
|
|
60
64
|
readonly field: {
|
|
61
65
|
readonly hover: "hover:bg-sherick-tray-deep";
|
|
62
66
|
readonly focus: "focus:bg-sherick-tray-deep";
|
|
@@ -82,19 +86,22 @@ declare const stateLayer: {
|
|
|
82
86
|
readonly activeRow: "data-[highlighted]:before:opacity-[0.05]";
|
|
83
87
|
readonly fieldPart: string;
|
|
84
88
|
};
|
|
89
|
+
declare const rowTarget = "relative [&>th[scope=row]_:is(a,button)]:after:absolute [&>th[scope=row]_:is(a,button)]:after:inset-0 [&>th[scope=row]_:is(a,button)]:after:content-[''] [&>td_:is(a,button,input,select,textarea,[tabindex])]:relative [&>td_:is(a,button,input,select,textarea,[tabindex])]:z-[1]";
|
|
85
90
|
declare const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[min(0px,calc((100%-2.75rem)/2))] after:content-['']";
|
|
86
91
|
declare const material: {
|
|
87
92
|
readonly canvas: "bg-sherick-canvas text-sherick-ink";
|
|
88
93
|
readonly matteQuiet: "bg-sherick-surface/[0.42] text-sherick-ink";
|
|
89
|
-
readonly matte: "bg-sherick-surface
|
|
94
|
+
readonly matte: "bg-sherick-surface text-sherick-ink";
|
|
90
95
|
readonly matteHigh: "bg-sherick-surface-high/[0.72] text-sherick-ink";
|
|
91
|
-
readonly control: "bg-sherick-
|
|
96
|
+
readonly control: "bg-sherick-tray text-sherick-ink placeholder:text-sherick-ink-muted";
|
|
92
97
|
readonly controlError: "bg-sherick-danger-soft text-sherick-ink placeholder:text-sherick-danger";
|
|
93
98
|
readonly handle: "bg-sherick-ink-muted text-sherick-canvas";
|
|
94
99
|
readonly acrylic: "bg-sherick-surface-float/[var(--sui-glass-fill)] bg-[image:var(--sui-glass-gradient)] text-sherick-ink";
|
|
95
100
|
readonly acrylicDense: "bg-sherick-surface-float/[var(--sui-glass-dense-fill)] bg-[image:var(--sui-glass-gradient-dense)] text-sherick-ink";
|
|
96
101
|
readonly acrylicHero: "bg-sherick-surface-overlay/[var(--sui-overlay-fill)] bg-[image:var(--sui-glass-hero-gradient)] text-sherick-ink";
|
|
97
102
|
};
|
|
103
|
+
declare const fieldWell: string;
|
|
104
|
+
declare const fieldWellError: string;
|
|
98
105
|
declare const mediaCanvas = "bg-sherick-media";
|
|
99
106
|
declare const matteInset = "bg-sherick-surface-high/[0.35] text-sherick-ink";
|
|
100
107
|
declare const type: {
|
|
@@ -216,6 +223,7 @@ declare const currentDestination: {
|
|
|
216
223
|
readonly inTrack: "bg-sherick-primary-selected text-sherick-primary font-semibold";
|
|
217
224
|
};
|
|
218
225
|
declare const puck = "bg-sherick-puck";
|
|
226
|
+
declare const selectableRowRest: string;
|
|
219
227
|
declare const selectableRowSurface: string;
|
|
220
228
|
declare const selectableRowSupporting = "group-has-[[data-checked]]:text-sherick-ink";
|
|
221
229
|
declare const selectable: {
|
|
@@ -248,6 +256,10 @@ declare const recipeAlphas: {
|
|
|
248
256
|
readonly mark: {
|
|
249
257
|
readonly hover: number;
|
|
250
258
|
};
|
|
259
|
+
readonly row: {
|
|
260
|
+
readonly hover: number;
|
|
261
|
+
readonly press: number;
|
|
262
|
+
};
|
|
251
263
|
};
|
|
252
264
|
readonly tint: {
|
|
253
265
|
readonly neutralSoft: number;
|
|
@@ -260,6 +272,7 @@ declare const recipeAlphas: {
|
|
|
260
272
|
readonly quiet: number;
|
|
261
273
|
readonly card: number;
|
|
262
274
|
readonly groove: number;
|
|
275
|
+
readonly choiceRow: number;
|
|
263
276
|
readonly control: number;
|
|
264
277
|
readonly hover: number;
|
|
265
278
|
readonly engaged: number;
|
|
@@ -382,9 +395,8 @@ declare const motionActivityIndeterminate: string;
|
|
|
382
395
|
* is, and arrowing through a list with a soft fade on every row leaves a smear of half-lit rows.
|
|
383
396
|
* The row's layer therefore changes in one step, for the pointer and the keyboard alike. */
|
|
384
397
|
declare const motionRowLayer = "before:transition-none";
|
|
385
|
-
/** A rim drawn as an overlay of its own —
|
|
386
|
-
*
|
|
387
|
-
* on the same press curve as the surface beneath it. */
|
|
398
|
+
/** A rim drawn as an overlay of its own — a drop target's dashes — carries its own feedback
|
|
399
|
+
* timing: it steps up on hover, on the same press curve as the surface beneath it. */
|
|
388
400
|
declare const motionRim = "after:transition-[background-color,border-color,opacity] after:duration-press after:ease-press motion-reduce:after:transition-none";
|
|
389
401
|
declare const motionStateLayer = "before:transition-opacity before:duration-release before:ease-release active:before:duration-tactile active:before:ease-press group-active:before:duration-tactile group-active:before:ease-press motion-reduce:before:transition-none";
|
|
390
402
|
declare const motionDisclose = "transition-[height] duration-release ease-release data-[starting-style]:h-0 data-[ending-style]:h-0 data-[ending-style]:duration-overlay-exit data-[ending-style]:ease-exit motion-reduce:transition-none";
|
|
@@ -398,5 +410,5 @@ declare const motionPresenceToast: string;
|
|
|
398
410
|
*/
|
|
399
411
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
400
412
|
|
|
401
|
-
export { cn, codeWell, currentDestination, density, detail, disclosure, edge, edgeTone, elevation, fieldLabel, fieldLayout, fieldMessage, focusRing, focusRingDrag, focusRingHeld, focusRingInset, focusRingWithin, forcedBoundary, groupFocusRing, headingRhythm, hitArea, iconSlot, iconStroke, list, material, matteInset, mediaCanvas, motionActivityIndeterminate, motionActivityIndeterminateReduced, motionActivityPulse, motionActivitySpin, motionArrive, motionDirect, motionDisclose, motionFeedback, motionInkPress, motionOrient, motionPresenceAnchored, motionPresenceModal, motionPresenceScrim, motionPresenceScrimUtility, motionPresenceSheet, motionPresenceToast, motionPresenceTooltip, motionPresenceUtility, motionRelocate, motionRelocateLong, motionRim, motionRowLayer, motionStateLayer, motionTactile, motionTactileField, motionTactileWide, overlay, parentFocusRingInset, puck, recessedTop, recipeAlphas, richText, rim, selectable, selectableRowSupporting, selectableRowSurface, shape, stacking, state, stateLayer, stateLayerQuietComposite, text, tone, type };
|
|
413
|
+
export { cn, codeWell, currentDestination, density, detail, disclosure, edge, edgeTone, elevation, fieldLabel, fieldLayout, fieldMessage, fieldWell, fieldWellError, focusRing, focusRingDrag, focusRingHeld, focusRingInset, focusRingWithin, forcedBoundary, groupFocusRing, headingRhythm, hitArea, iconSlot, iconStroke, list, material, matteInset, mediaCanvas, motionActivityIndeterminate, motionActivityIndeterminateReduced, motionActivityPulse, motionActivitySpin, motionArrive, motionDirect, motionDisclose, motionFeedback, motionInkPress, motionOrient, motionPresenceAnchored, motionPresenceModal, motionPresenceScrim, motionPresenceScrimUtility, motionPresenceSheet, motionPresenceToast, motionPresenceTooltip, motionPresenceUtility, motionRelocate, motionRelocateLong, motionRim, motionRowLayer, motionStateLayer, motionTactile, motionTactileField, motionTactileWide, overlay, parentFocusRingInset, puck, recessedTop, recipeAlphas, richText, rim, rowTarget, selectable, selectableRowRest, selectableRowSupporting, selectableRowSurface, shape, stacking, state, stateLayer, stateLayerQuietComposite, text, tone, type };
|
|
402
414
|
export type { MotionIntent };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -252,9 +252,17 @@ interface AvatarProps extends Omit<ComponentPropsWithoutRef<"span">, "children">
|
|
|
252
252
|
}
|
|
253
253
|
declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
254
254
|
|
|
255
|
+
/**
|
|
256
|
+
* `default` is the badge as it has always been: a soft capsule with full-ink copy. `subtle` is a tag set
|
|
257
|
+
* inside a row of content, such as a reason in a table cell: the role's soft tint with the role's own
|
|
258
|
+
* tone as its copy, at the supporting type step, in a rounded rectangle rather than a capsule.
|
|
259
|
+
*/
|
|
260
|
+
type BadgeAppearance = "default" | "subtle";
|
|
255
261
|
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
256
262
|
children: ReactNode;
|
|
257
263
|
variant?: Variant;
|
|
264
|
+
/** The badge's weight: the standalone capsule, or the lighter tag for a row of content. */
|
|
265
|
+
appearance?: BadgeAppearance;
|
|
258
266
|
icon?: ReactNode;
|
|
259
267
|
}
|
|
260
268
|
declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
@@ -455,6 +463,11 @@ interface ChipAnatomy {
|
|
|
455
463
|
children: ReactNode;
|
|
456
464
|
variant?: Variant;
|
|
457
465
|
icon?: ReactNode;
|
|
466
|
+
/**
|
|
467
|
+
* A figure after the label, such as how many records a filter holds ("All 36"). It is part of the
|
|
468
|
+
* chip's name, set in tabular figures in the label's own ink.
|
|
469
|
+
*/
|
|
470
|
+
count?: ReactNode;
|
|
458
471
|
className?: string;
|
|
459
472
|
}
|
|
460
473
|
/**
|
|
@@ -518,6 +531,12 @@ declare const Chip: React__default.ForwardRefExoticComponent<ChipProps & React__
|
|
|
518
531
|
} & React__default.RefAttributes<HTMLElement>>;
|
|
519
532
|
};
|
|
520
533
|
|
|
534
|
+
/**
|
|
535
|
+
* What a row of chips does when they do not fit its width. `wrap` (the default) starts a new line;
|
|
536
|
+
* `scroll` keeps one line that scrolls inside itself, with an edge fade on each side that has more
|
|
537
|
+
* chips beyond it (§19).
|
|
538
|
+
*/
|
|
539
|
+
type ChipGroupOverflow = "wrap" | "scroll";
|
|
521
540
|
interface ChipGroupProps extends Omit<ToggleGroup$1.Props<string>, "multiple" | "className" | "render"> {
|
|
522
541
|
children: ReactNode;
|
|
523
542
|
/**
|
|
@@ -526,17 +545,11 @@ interface ChipGroupProps extends Omit<ToggleGroup$1.Props<string>, "multiple" |
|
|
|
526
545
|
* between this group and a `ToggleGroup`.
|
|
527
546
|
*/
|
|
528
547
|
multiple?: boolean;
|
|
548
|
+
/** Whether the chips wrap onto new lines or scroll along one line. */
|
|
549
|
+
overflow?: ChipGroupOverflow;
|
|
529
550
|
/** Styles the group's own row. The chips style themselves. */
|
|
530
551
|
className?: string;
|
|
531
552
|
}
|
|
532
|
-
/**
|
|
533
|
-
* A row of chips sharing one value. It is the primitive's group with a chip row's own anatomy:
|
|
534
|
-
* no track, because a chip is a control in its own right rather than a segment of one — and
|
|
535
|
-
* Base UI still owns the group value, the roving tab index and the arrow keys.
|
|
536
|
-
*
|
|
537
|
-
* A tag inside the group is not a toggle, so it takes no part in the shared value and no part in
|
|
538
|
-
* the roving focus; its dismiss control is reachable by Tab like any other control.
|
|
539
|
-
*/
|
|
540
553
|
declare const ChipGroup: React__default.ForwardRefExoticComponent<Omit<ChipGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
541
554
|
|
|
542
555
|
interface OptionGroup<Option> {
|
|
@@ -628,6 +641,12 @@ interface ComboboxCommonProps {
|
|
|
628
641
|
loading?: boolean;
|
|
629
642
|
/** The field's density: `sm` for a dense filter row, `md` (the default) or `lg`. */
|
|
630
643
|
size?: FieldSize;
|
|
644
|
+
/**
|
|
645
|
+
* Whether the field offers its clear control. Leave it out (`false`) for a field whose value is its own
|
|
646
|
+
* resting default, such as "All campaigns", where clearing would only empty a choice the reader is
|
|
647
|
+
* meant to keep. Defaults to `true`.
|
|
648
|
+
*/
|
|
649
|
+
clearable?: boolean;
|
|
631
650
|
/** The copy of the control's own parts, for a locale or a product's wording. */
|
|
632
651
|
labels?: Partial<ComboboxLabels>;
|
|
633
652
|
/** Styles the control's own box. The popup and its rows style themselves. */
|
|
@@ -1910,7 +1929,21 @@ interface TableColumn {
|
|
|
1910
1929
|
* A row header is what a screen reader announces with every cell beside it.
|
|
1911
1930
|
*/
|
|
1912
1931
|
rowHeader?: boolean;
|
|
1932
|
+
/**
|
|
1933
|
+
* The edge this column's header and body cells align to. Figures compared down a column — counts,
|
|
1934
|
+
* amounts, durations — sit at the `end`, so their digits line up. Defaults to `start`.
|
|
1935
|
+
*/
|
|
1936
|
+
align?: "start" | "end";
|
|
1913
1937
|
}
|
|
1938
|
+
/**
|
|
1939
|
+
* `default` is the table's own quiet sheet. `flush` gives that sheet up — no fill and no corner — for a
|
|
1940
|
+
* table set inside a surface that already holds it, such as a `Card`, so the two never draw a frame in a
|
|
1941
|
+
* frame. A flush table hangs its cell inset past both of its edges (§17): its first column lines up with
|
|
1942
|
+
* the content above and below it, and its row lines and row fills reach into the surface's padding.
|
|
1943
|
+
*/
|
|
1944
|
+
type TableAppearance = "default" | "flush";
|
|
1945
|
+
/** `normal` rows, or `compact` rows with a smaller, quieter header for a dense overview. */
|
|
1946
|
+
type TableDensity = "normal" | "compact";
|
|
1914
1947
|
interface TableProps extends Omit<ComponentPropsWithoutRef<"div">, "children" | "role"> {
|
|
1915
1948
|
headers: Array<string | TableColumn>;
|
|
1916
1949
|
rows: ReactNode[][];
|
|
@@ -1927,6 +1960,17 @@ interface TableProps extends Omit<ComponentPropsWithoutRef<"div">, "children" |
|
|
|
1927
1960
|
className?: string;
|
|
1928
1961
|
/** Classes for the native table element. */
|
|
1929
1962
|
tableClassName?: string;
|
|
1963
|
+
/** Whether the table draws its own sheet (`default`) or sits flush in the surface around it. */
|
|
1964
|
+
appearance?: TableAppearance;
|
|
1965
|
+
/** How tightly the rows are set. */
|
|
1966
|
+
density?: TableDensity;
|
|
1967
|
+
/**
|
|
1968
|
+
* Every row leads somewhere. Put the row's link (or button) in its row header cell (a column with
|
|
1969
|
+
* `rowHeader`): its hit area covers the whole row, so a press anywhere in the row opens it. The rows
|
|
1970
|
+
* take the pointer cursor, keep the hover tint while keyboard focus is inside them, and answer a press,
|
|
1971
|
+
* so a touch screen sees the response too. Other controls in the row keep their own press.
|
|
1972
|
+
*/
|
|
1973
|
+
interactive?: boolean;
|
|
1930
1974
|
}
|
|
1931
1975
|
declare const Table: React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1932
1976
|
|
|
@@ -2054,6 +2098,12 @@ interface DrawerProps {
|
|
|
2054
2098
|
side?: DrawerSide;
|
|
2055
2099
|
/** The accessible name of the sheet's dismissal control. Defaults to "Close". */
|
|
2056
2100
|
closeLabel?: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* Draws a grab handle centred at the top of a bottom sheet, the mark a phone's own sheets carry. It is a
|
|
2103
|
+
* visual mark only: the sheet is dismissed by its close control, Escape or a press outside, not by a
|
|
2104
|
+
* drag. It applies to `side="bottom"` and is ignored on the other edges.
|
|
2105
|
+
*/
|
|
2106
|
+
handle?: boolean;
|
|
2057
2107
|
}
|
|
2058
2108
|
interface DrawerTriggerProps {
|
|
2059
2109
|
/**
|
|
@@ -2252,4 +2302,4 @@ interface DirectionProviderProps {
|
|
|
2252
2302
|
declare const DirectionProvider: ({ direction, children }: DirectionProviderProps) => React__default.JSX.Element;
|
|
2253
2303
|
|
|
2254
2304
|
export { Accordion, Alert, AlertDialog, Avatar, Badge, Breadcrumb, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, ChipGroup, Collapsible, Combobox, Command, CommandPalette, DatePicker, DateRangePicker, DateTimePicker, Dialog, DirectionProvider, Divider, Drawer, Field, FileUpload, Form, IconButton, Input, Media, Menu, NavGroup, NavItem, NumberField, Pagination, Popover, Progress, RadioGroup, Search, SegmentedControl, Select, Skeleton, Slider, Spinner, Stepper, Switch, Table, Tabs, Textarea, ToastProvider, ToastViewport, ToggleGroup, Tooltip, TooltipProvider, TreeView, createToastManager, useToast };
|
|
2255
|
-
export type { AccordionHeadingLevel, AccordionItemProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps, AlertDialogProps, AlertDialogTriggerProps, AlertProps, AvatarProps, BadgeProps, BreadcrumbItem, BreadcrumbLabels, BreadcrumbProps, ButtonAppearance, ButtonProps, ButtonSize, CalendarDate, CalendarDateTime, CalendarLabels, CalendarProps, CardDescriptionProps, CardProps, CardTitleProps, CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, ChipGroupProps, ChipProps, ChoiceAppearance, CollapsiblePanelProps, CollapsibleProps, CollapsibleTriggerProps, ComboboxLabels, ComboboxMultipleProps, ComboboxOption, ComboboxOptionGroup, ComboboxPasteDetails, ComboboxProps, ComboboxSingleProps, CommandItem, CommandLabels, CommandPaletteProps, CommandProps, DatePickerProps, DateRange, DateRangePickerProps, DateTimePickerLabels, DateTimePickerProps, DialogAttachment, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTriggerProps, DirectionProviderProps, DividerProps, DividerWeight, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerSide, DrawerTriggerProps, FieldProps, FieldSize, FileRejection, FileUploadLabels, FileUploadProps, FormErrors, FormProps, IconButtonAppearance, IconButtonProps, IconButtonSize, InputProps, MediaImageProps, MediaVideoProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, NavGroupHeadingLevel, NavGroupItem, NavGroupProps, NavItemProps, NumberFieldProps, OverlayAlign, OverlaySide, PaginationLabels, PaginationProps, PartProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, ProgressProps, RadioGroupOption, RadioGroupProps, SearchProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectOptionGroup, SelectProps, SkeletonProps, SliderProps, SpinnerProps, StepperItem, StepperProps, SwitchProps, Tab, TableColumn, TableProps, TabsLabels, TabsProps, TextareaProps, ToastActionOptions, ToastLabels, ToastManager, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProviderProps, ToastType, ToastUpdateOptions, ToastViewportProps, ToggleGroupItemProps, ToggleGroupProps, TooltipProps, TooltipProviderProps, TreeViewItem, TreeViewProps, TriggerProps, Variant };
|
|
2305
|
+
export type { AccordionHeadingLevel, AccordionItemProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps, AlertDialogProps, AlertDialogTriggerProps, AlertProps, AvatarProps, BadgeAppearance, BadgeProps, BreadcrumbItem, BreadcrumbLabels, BreadcrumbProps, ButtonAppearance, ButtonProps, ButtonSize, CalendarDate, CalendarDateTime, CalendarLabels, CalendarProps, CardDescriptionProps, CardProps, CardTitleProps, CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, ChipGroupOverflow, ChipGroupProps, ChipProps, ChoiceAppearance, CollapsiblePanelProps, CollapsibleProps, CollapsibleTriggerProps, ComboboxLabels, ComboboxMultipleProps, ComboboxOption, ComboboxOptionGroup, ComboboxPasteDetails, ComboboxProps, ComboboxSingleProps, CommandItem, CommandLabels, CommandPaletteProps, CommandProps, DatePickerProps, DateRange, DateRangePickerProps, DateTimePickerLabels, DateTimePickerProps, DialogAttachment, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTriggerProps, DirectionProviderProps, DividerProps, DividerWeight, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerSide, DrawerTriggerProps, FieldProps, FieldSize, FileRejection, FileUploadLabels, FileUploadProps, FormErrors, FormProps, IconButtonAppearance, IconButtonProps, IconButtonSize, InputProps, MediaImageProps, MediaVideoProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, NavGroupHeadingLevel, NavGroupItem, NavGroupProps, NavItemProps, NumberFieldProps, OverlayAlign, OverlaySide, PaginationLabels, PaginationProps, PartProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, ProgressProps, RadioGroupOption, RadioGroupProps, SearchProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectOptionGroup, SelectProps, SkeletonProps, SliderProps, SpinnerProps, StepperItem, StepperProps, SwitchProps, Tab, TableAppearance, TableColumn, TableDensity, TableProps, TabsLabels, TabsProps, TextareaProps, ToastActionOptions, ToastLabels, ToastManager, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProviderProps, ToastType, ToastUpdateOptions, ToastViewportProps, ToggleGroupItemProps, ToggleGroupProps, TooltipProps, TooltipProviderProps, TreeViewItem, TreeViewProps, TriggerProps, Variant };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -252,9 +252,17 @@ interface AvatarProps extends Omit<ComponentPropsWithoutRef<"span">, "children">
|
|
|
252
252
|
}
|
|
253
253
|
declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
254
254
|
|
|
255
|
+
/**
|
|
256
|
+
* `default` is the badge as it has always been: a soft capsule with full-ink copy. `subtle` is a tag set
|
|
257
|
+
* inside a row of content, such as a reason in a table cell: the role's soft tint with the role's own
|
|
258
|
+
* tone as its copy, at the supporting type step, in a rounded rectangle rather than a capsule.
|
|
259
|
+
*/
|
|
260
|
+
type BadgeAppearance = "default" | "subtle";
|
|
255
261
|
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
256
262
|
children: ReactNode;
|
|
257
263
|
variant?: Variant;
|
|
264
|
+
/** The badge's weight: the standalone capsule, or the lighter tag for a row of content. */
|
|
265
|
+
appearance?: BadgeAppearance;
|
|
258
266
|
icon?: ReactNode;
|
|
259
267
|
}
|
|
260
268
|
declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
@@ -455,6 +463,11 @@ interface ChipAnatomy {
|
|
|
455
463
|
children: ReactNode;
|
|
456
464
|
variant?: Variant;
|
|
457
465
|
icon?: ReactNode;
|
|
466
|
+
/**
|
|
467
|
+
* A figure after the label, such as how many records a filter holds ("All 36"). It is part of the
|
|
468
|
+
* chip's name, set in tabular figures in the label's own ink.
|
|
469
|
+
*/
|
|
470
|
+
count?: ReactNode;
|
|
458
471
|
className?: string;
|
|
459
472
|
}
|
|
460
473
|
/**
|
|
@@ -518,6 +531,12 @@ declare const Chip: React__default.ForwardRefExoticComponent<ChipProps & React__
|
|
|
518
531
|
} & React__default.RefAttributes<HTMLElement>>;
|
|
519
532
|
};
|
|
520
533
|
|
|
534
|
+
/**
|
|
535
|
+
* What a row of chips does when they do not fit its width. `wrap` (the default) starts a new line;
|
|
536
|
+
* `scroll` keeps one line that scrolls inside itself, with an edge fade on each side that has more
|
|
537
|
+
* chips beyond it (§19).
|
|
538
|
+
*/
|
|
539
|
+
type ChipGroupOverflow = "wrap" | "scroll";
|
|
521
540
|
interface ChipGroupProps extends Omit<ToggleGroup$1.Props<string>, "multiple" | "className" | "render"> {
|
|
522
541
|
children: ReactNode;
|
|
523
542
|
/**
|
|
@@ -526,17 +545,11 @@ interface ChipGroupProps extends Omit<ToggleGroup$1.Props<string>, "multiple" |
|
|
|
526
545
|
* between this group and a `ToggleGroup`.
|
|
527
546
|
*/
|
|
528
547
|
multiple?: boolean;
|
|
548
|
+
/** Whether the chips wrap onto new lines or scroll along one line. */
|
|
549
|
+
overflow?: ChipGroupOverflow;
|
|
529
550
|
/** Styles the group's own row. The chips style themselves. */
|
|
530
551
|
className?: string;
|
|
531
552
|
}
|
|
532
|
-
/**
|
|
533
|
-
* A row of chips sharing one value. It is the primitive's group with a chip row's own anatomy:
|
|
534
|
-
* no track, because a chip is a control in its own right rather than a segment of one — and
|
|
535
|
-
* Base UI still owns the group value, the roving tab index and the arrow keys.
|
|
536
|
-
*
|
|
537
|
-
* A tag inside the group is not a toggle, so it takes no part in the shared value and no part in
|
|
538
|
-
* the roving focus; its dismiss control is reachable by Tab like any other control.
|
|
539
|
-
*/
|
|
540
553
|
declare const ChipGroup: React__default.ForwardRefExoticComponent<Omit<ChipGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
541
554
|
|
|
542
555
|
interface OptionGroup<Option> {
|
|
@@ -628,6 +641,12 @@ interface ComboboxCommonProps {
|
|
|
628
641
|
loading?: boolean;
|
|
629
642
|
/** The field's density: `sm` for a dense filter row, `md` (the default) or `lg`. */
|
|
630
643
|
size?: FieldSize;
|
|
644
|
+
/**
|
|
645
|
+
* Whether the field offers its clear control. Leave it out (`false`) for a field whose value is its own
|
|
646
|
+
* resting default, such as "All campaigns", where clearing would only empty a choice the reader is
|
|
647
|
+
* meant to keep. Defaults to `true`.
|
|
648
|
+
*/
|
|
649
|
+
clearable?: boolean;
|
|
631
650
|
/** The copy of the control's own parts, for a locale or a product's wording. */
|
|
632
651
|
labels?: Partial<ComboboxLabels>;
|
|
633
652
|
/** Styles the control's own box. The popup and its rows style themselves. */
|
|
@@ -1910,7 +1929,21 @@ interface TableColumn {
|
|
|
1910
1929
|
* A row header is what a screen reader announces with every cell beside it.
|
|
1911
1930
|
*/
|
|
1912
1931
|
rowHeader?: boolean;
|
|
1932
|
+
/**
|
|
1933
|
+
* The edge this column's header and body cells align to. Figures compared down a column — counts,
|
|
1934
|
+
* amounts, durations — sit at the `end`, so their digits line up. Defaults to `start`.
|
|
1935
|
+
*/
|
|
1936
|
+
align?: "start" | "end";
|
|
1913
1937
|
}
|
|
1938
|
+
/**
|
|
1939
|
+
* `default` is the table's own quiet sheet. `flush` gives that sheet up — no fill and no corner — for a
|
|
1940
|
+
* table set inside a surface that already holds it, such as a `Card`, so the two never draw a frame in a
|
|
1941
|
+
* frame. A flush table hangs its cell inset past both of its edges (§17): its first column lines up with
|
|
1942
|
+
* the content above and below it, and its row lines and row fills reach into the surface's padding.
|
|
1943
|
+
*/
|
|
1944
|
+
type TableAppearance = "default" | "flush";
|
|
1945
|
+
/** `normal` rows, or `compact` rows with a smaller, quieter header for a dense overview. */
|
|
1946
|
+
type TableDensity = "normal" | "compact";
|
|
1914
1947
|
interface TableProps extends Omit<ComponentPropsWithoutRef<"div">, "children" | "role"> {
|
|
1915
1948
|
headers: Array<string | TableColumn>;
|
|
1916
1949
|
rows: ReactNode[][];
|
|
@@ -1927,6 +1960,17 @@ interface TableProps extends Omit<ComponentPropsWithoutRef<"div">, "children" |
|
|
|
1927
1960
|
className?: string;
|
|
1928
1961
|
/** Classes for the native table element. */
|
|
1929
1962
|
tableClassName?: string;
|
|
1963
|
+
/** Whether the table draws its own sheet (`default`) or sits flush in the surface around it. */
|
|
1964
|
+
appearance?: TableAppearance;
|
|
1965
|
+
/** How tightly the rows are set. */
|
|
1966
|
+
density?: TableDensity;
|
|
1967
|
+
/**
|
|
1968
|
+
* Every row leads somewhere. Put the row's link (or button) in its row header cell (a column with
|
|
1969
|
+
* `rowHeader`): its hit area covers the whole row, so a press anywhere in the row opens it. The rows
|
|
1970
|
+
* take the pointer cursor, keep the hover tint while keyboard focus is inside them, and answer a press,
|
|
1971
|
+
* so a touch screen sees the response too. Other controls in the row keep their own press.
|
|
1972
|
+
*/
|
|
1973
|
+
interactive?: boolean;
|
|
1930
1974
|
}
|
|
1931
1975
|
declare const Table: React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1932
1976
|
|
|
@@ -2054,6 +2098,12 @@ interface DrawerProps {
|
|
|
2054
2098
|
side?: DrawerSide;
|
|
2055
2099
|
/** The accessible name of the sheet's dismissal control. Defaults to "Close". */
|
|
2056
2100
|
closeLabel?: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* Draws a grab handle centred at the top of a bottom sheet, the mark a phone's own sheets carry. It is a
|
|
2103
|
+
* visual mark only: the sheet is dismissed by its close control, Escape or a press outside, not by a
|
|
2104
|
+
* drag. It applies to `side="bottom"` and is ignored on the other edges.
|
|
2105
|
+
*/
|
|
2106
|
+
handle?: boolean;
|
|
2057
2107
|
}
|
|
2058
2108
|
interface DrawerTriggerProps {
|
|
2059
2109
|
/**
|
|
@@ -2252,4 +2302,4 @@ interface DirectionProviderProps {
|
|
|
2252
2302
|
declare const DirectionProvider: ({ direction, children }: DirectionProviderProps) => React__default.JSX.Element;
|
|
2253
2303
|
|
|
2254
2304
|
export { Accordion, Alert, AlertDialog, Avatar, Badge, Breadcrumb, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, ChipGroup, Collapsible, Combobox, Command, CommandPalette, DatePicker, DateRangePicker, DateTimePicker, Dialog, DirectionProvider, Divider, Drawer, Field, FileUpload, Form, IconButton, Input, Media, Menu, NavGroup, NavItem, NumberField, Pagination, Popover, Progress, RadioGroup, Search, SegmentedControl, Select, Skeleton, Slider, Spinner, Stepper, Switch, Table, Tabs, Textarea, ToastProvider, ToastViewport, ToggleGroup, Tooltip, TooltipProvider, TreeView, createToastManager, useToast };
|
|
2255
|
-
export type { AccordionHeadingLevel, AccordionItemProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps, AlertDialogProps, AlertDialogTriggerProps, AlertProps, AvatarProps, BadgeProps, BreadcrumbItem, BreadcrumbLabels, BreadcrumbProps, ButtonAppearance, ButtonProps, ButtonSize, CalendarDate, CalendarDateTime, CalendarLabels, CalendarProps, CardDescriptionProps, CardProps, CardTitleProps, CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, ChipGroupProps, ChipProps, ChoiceAppearance, CollapsiblePanelProps, CollapsibleProps, CollapsibleTriggerProps, ComboboxLabels, ComboboxMultipleProps, ComboboxOption, ComboboxOptionGroup, ComboboxPasteDetails, ComboboxProps, ComboboxSingleProps, CommandItem, CommandLabels, CommandPaletteProps, CommandProps, DatePickerProps, DateRange, DateRangePickerProps, DateTimePickerLabels, DateTimePickerProps, DialogAttachment, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTriggerProps, DirectionProviderProps, DividerProps, DividerWeight, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerSide, DrawerTriggerProps, FieldProps, FieldSize, FileRejection, FileUploadLabels, FileUploadProps, FormErrors, FormProps, IconButtonAppearance, IconButtonProps, IconButtonSize, InputProps, MediaImageProps, MediaVideoProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, NavGroupHeadingLevel, NavGroupItem, NavGroupProps, NavItemProps, NumberFieldProps, OverlayAlign, OverlaySide, PaginationLabels, PaginationProps, PartProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, ProgressProps, RadioGroupOption, RadioGroupProps, SearchProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectOptionGroup, SelectProps, SkeletonProps, SliderProps, SpinnerProps, StepperItem, StepperProps, SwitchProps, Tab, TableColumn, TableProps, TabsLabels, TabsProps, TextareaProps, ToastActionOptions, ToastLabels, ToastManager, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProviderProps, ToastType, ToastUpdateOptions, ToastViewportProps, ToggleGroupItemProps, ToggleGroupProps, TooltipProps, TooltipProviderProps, TreeViewItem, TreeViewProps, TriggerProps, Variant };
|
|
2305
|
+
export type { AccordionHeadingLevel, AccordionItemProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps, AlertDialogProps, AlertDialogTriggerProps, AlertProps, AvatarProps, BadgeAppearance, BadgeProps, BreadcrumbItem, BreadcrumbLabels, BreadcrumbProps, ButtonAppearance, ButtonProps, ButtonSize, CalendarDate, CalendarDateTime, CalendarLabels, CalendarProps, CardDescriptionProps, CardProps, CardTitleProps, CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, ChipGroupOverflow, ChipGroupProps, ChipProps, ChoiceAppearance, CollapsiblePanelProps, CollapsibleProps, CollapsibleTriggerProps, ComboboxLabels, ComboboxMultipleProps, ComboboxOption, ComboboxOptionGroup, ComboboxPasteDetails, ComboboxProps, ComboboxSingleProps, CommandItem, CommandLabels, CommandPaletteProps, CommandProps, DatePickerProps, DateRange, DateRangePickerProps, DateTimePickerLabels, DateTimePickerProps, DialogAttachment, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTriggerProps, DirectionProviderProps, DividerProps, DividerWeight, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerSide, DrawerTriggerProps, FieldProps, FieldSize, FileRejection, FileUploadLabels, FileUploadProps, FormErrors, FormProps, IconButtonAppearance, IconButtonProps, IconButtonSize, InputProps, MediaImageProps, MediaVideoProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, NavGroupHeadingLevel, NavGroupItem, NavGroupProps, NavItemProps, NumberFieldProps, OverlayAlign, OverlaySide, PaginationLabels, PaginationProps, PartProps, PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, ProgressProps, RadioGroupOption, RadioGroupProps, SearchProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectOptionGroup, SelectProps, SkeletonProps, SliderProps, SpinnerProps, StepperItem, StepperProps, SwitchProps, Tab, TableAppearance, TableColumn, TableDensity, TableProps, TabsLabels, TabsProps, TextareaProps, ToastActionOptions, ToastLabels, ToastManager, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProviderProps, ToastType, ToastUpdateOptions, ToastViewportProps, ToggleGroupItemProps, ToggleGroupProps, TooltipProps, TooltipProviderProps, TreeViewItem, TreeViewProps, TriggerProps, Variant };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sherick-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "A React component library in graphite and iris, with light and dark themes.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -67,7 +67,10 @@
|
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"dev:watch": "bun scripts/build-styles.ts && rollup -c -w",
|
|
70
|
-
"build": "bun run clean && bun
|
|
70
|
+
"build": "bun run clean && bun run --parallel build:styles build:modules build:types",
|
|
71
|
+
"build:styles": "bun scripts/build-styles.ts",
|
|
72
|
+
"build:modules": "rollup -c --configTarget=modules",
|
|
73
|
+
"build:types": "rollup -c --configTarget=types",
|
|
71
74
|
"prepack": "bun run build && node scripts/stage-bundled-base-ui.mjs stage",
|
|
72
75
|
"postpack": "node scripts/stage-bundled-base-ui.mjs restore",
|
|
73
76
|
"typecheck": "tsc --noEmit",
|
|
@@ -100,7 +103,6 @@
|
|
|
100
103
|
},
|
|
101
104
|
"devDependencies": {
|
|
102
105
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
103
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
104
106
|
"@types/node": "^24.13.4",
|
|
105
107
|
"@types/prismjs": "^1.26.6",
|
|
106
108
|
"@types/react": "^19.3.0",
|