sherick-ui 2.12.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/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 +3 -3
- package/dist/cjs/components/Combobox.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/NumberField.cjs +2 -2
- package/dist/cjs/components/NumberField.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/date-field.cjs +6 -3
- 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 +24 -0
- package/dist/cjs/components/ui.common.cjs.map +1 -1
- package/dist/cjs/dev.cjs +1 -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/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 +4 -4
- package/dist/esm/components/Combobox.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/NumberField.js +3 -3
- package/dist/esm/components/NumberField.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/date-field.js +6 -3
- 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 +24 -1
- package/dist/esm/components/ui.common.js.map +1 -1
- package/dist/esm/dev.js +1 -1
- package/dist/styles.css +80 -0
- package/dist/types/dev.d.cts +8 -1
- package/dist/types/dev.d.ts +8 -1
- package/dist/types/index.d.cts +59 -9
- package/dist/types/index.d.ts +59 -9
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -335,6 +335,10 @@
|
|
|
335
335
|
:where(.sui-scope).inset-0 {
|
|
336
336
|
inset: 0px
|
|
337
337
|
}
|
|
338
|
+
:where(.sui-scope).inset-x-0 {
|
|
339
|
+
left: 0px;
|
|
340
|
+
right: 0px
|
|
341
|
+
}
|
|
338
342
|
:where(.sui-scope).inset-y-0 {
|
|
339
343
|
top: 0px;
|
|
340
344
|
bottom: 0px
|
|
@@ -424,14 +428,26 @@
|
|
|
424
428
|
:where(.sui-scope).m-0 {
|
|
425
429
|
margin: 0px
|
|
426
430
|
}
|
|
431
|
+
:where(.sui-scope).-mx-1\.5 {
|
|
432
|
+
margin-left: -0.375rem;
|
|
433
|
+
margin-right: -0.375rem
|
|
434
|
+
}
|
|
427
435
|
:where(.sui-scope).-mx-2 {
|
|
428
436
|
margin-left: -0.5rem;
|
|
429
437
|
margin-right: -0.5rem
|
|
430
438
|
}
|
|
439
|
+
:where(.sui-scope).-mx-3 {
|
|
440
|
+
margin-left: -0.75rem;
|
|
441
|
+
margin-right: -0.75rem
|
|
442
|
+
}
|
|
431
443
|
:where(.sui-scope).-mx-4 {
|
|
432
444
|
margin-left: -1rem;
|
|
433
445
|
margin-right: -1rem
|
|
434
446
|
}
|
|
447
|
+
:where(.sui-scope).-my-0\.5 {
|
|
448
|
+
margin-top: -0.125rem;
|
|
449
|
+
margin-bottom: -0.125rem
|
|
450
|
+
}
|
|
435
451
|
:where(.sui-scope).-my-2 {
|
|
436
452
|
margin-top: -0.5rem;
|
|
437
453
|
margin-bottom: -0.5rem
|
|
@@ -448,6 +464,10 @@
|
|
|
448
464
|
margin-left: 1rem;
|
|
449
465
|
margin-right: 1rem
|
|
450
466
|
}
|
|
467
|
+
:where(.sui-scope).mx-auto {
|
|
468
|
+
margin-left: auto;
|
|
469
|
+
margin-right: auto
|
|
470
|
+
}
|
|
451
471
|
:where(.sui-scope).my-0\.5 {
|
|
452
472
|
margin-top: 0.125rem;
|
|
453
473
|
margin-bottom: 0.125rem
|
|
@@ -509,6 +529,9 @@
|
|
|
509
529
|
:where(.sui-scope).mr-4 {
|
|
510
530
|
margin-right: 1rem
|
|
511
531
|
}
|
|
532
|
+
:where(.sui-scope).ms-0\.5 {
|
|
533
|
+
margin-inline-start: 0.125rem
|
|
534
|
+
}
|
|
512
535
|
:where(.sui-scope).ms-1 {
|
|
513
536
|
margin-inline-start: 0.25rem
|
|
514
537
|
}
|
|
@@ -629,6 +652,9 @@
|
|
|
629
652
|
:where(.sui-scope).h-0 {
|
|
630
653
|
height: 0px
|
|
631
654
|
}
|
|
655
|
+
:where(.sui-scope).h-1 {
|
|
656
|
+
height: 0.25rem
|
|
657
|
+
}
|
|
632
658
|
:where(.sui-scope).h-1\.5 {
|
|
633
659
|
height: 0.375rem
|
|
634
660
|
}
|
|
@@ -707,6 +733,9 @@
|
|
|
707
733
|
:where(.sui-scope).min-h-28 {
|
|
708
734
|
min-height: 7rem
|
|
709
735
|
}
|
|
736
|
+
:where(.sui-scope).min-h-5 {
|
|
737
|
+
min-height: 1.25rem
|
|
738
|
+
}
|
|
710
739
|
:where(.sui-scope).min-h-7 {
|
|
711
740
|
min-height: 1.75rem
|
|
712
741
|
}
|
|
@@ -722,6 +751,9 @@
|
|
|
722
751
|
:where(.sui-scope).w-1\.5 {
|
|
723
752
|
width: 0.375rem
|
|
724
753
|
}
|
|
754
|
+
:where(.sui-scope).w-10 {
|
|
755
|
+
width: 2.5rem
|
|
756
|
+
}
|
|
725
757
|
:where(.sui-scope).w-16 {
|
|
726
758
|
width: 4rem
|
|
727
759
|
}
|
|
@@ -746,6 +778,9 @@
|
|
|
746
778
|
:where(.sui-scope).w-\[3\.25rem\] {
|
|
747
779
|
width: 3.25rem
|
|
748
780
|
}
|
|
781
|
+
:where(.sui-scope).w-\[calc\(100\%\+1\.5rem\)\] {
|
|
782
|
+
width: calc(100% + 1.5rem)
|
|
783
|
+
}
|
|
749
784
|
:where(.sui-scope).w-\[calc\(100\%\+1rem\)\] {
|
|
750
785
|
width: calc(100% + 1rem)
|
|
751
786
|
}
|
|
@@ -941,6 +976,10 @@
|
|
|
941
976
|
:where(.sui-scope).resize {
|
|
942
977
|
resize: both
|
|
943
978
|
}
|
|
979
|
+
:where(.sui-scope).scroll-px-5 {
|
|
980
|
+
scroll-padding-left: 1.25rem;
|
|
981
|
+
scroll-padding-right: 1.25rem
|
|
982
|
+
}
|
|
944
983
|
:where(.sui-scope).scroll-py-11 {
|
|
945
984
|
scroll-padding-top: 2.75rem;
|
|
946
985
|
scroll-padding-bottom: 2.75rem
|
|
@@ -969,6 +1008,9 @@
|
|
|
969
1008
|
:where(.sui-scope).flex-wrap {
|
|
970
1009
|
flex-wrap: wrap
|
|
971
1010
|
}
|
|
1011
|
+
:where(.sui-scope).flex-nowrap {
|
|
1012
|
+
flex-wrap: nowrap
|
|
1013
|
+
}
|
|
972
1014
|
:where(.sui-scope).items-start {
|
|
973
1015
|
align-items: flex-start
|
|
974
1016
|
}
|
|
@@ -1404,6 +1446,10 @@
|
|
|
1404
1446
|
padding-top: 0.5rem;
|
|
1405
1447
|
padding-bottom: 0.5rem
|
|
1406
1448
|
}
|
|
1449
|
+
:where(.sui-scope).py-2\.5 {
|
|
1450
|
+
padding-top: 0.625rem;
|
|
1451
|
+
padding-bottom: 0.625rem
|
|
1452
|
+
}
|
|
1407
1453
|
:where(.sui-scope).py-3 {
|
|
1408
1454
|
padding-top: 0.75rem;
|
|
1409
1455
|
padding-bottom: 0.75rem
|
|
@@ -1416,6 +1462,10 @@
|
|
|
1416
1462
|
padding-top: 1rem;
|
|
1417
1463
|
padding-bottom: 1rem
|
|
1418
1464
|
}
|
|
1465
|
+
:where(.sui-scope).py-5 {
|
|
1466
|
+
padding-top: 1.25rem;
|
|
1467
|
+
padding-bottom: 1.25rem
|
|
1468
|
+
}
|
|
1419
1469
|
:where(.sui-scope).py-6 {
|
|
1420
1470
|
padding-top: 1.5rem;
|
|
1421
1471
|
padding-bottom: 1.5rem
|
|
@@ -1498,6 +1548,9 @@
|
|
|
1498
1548
|
:where(.sui-scope).text-start {
|
|
1499
1549
|
text-align: start
|
|
1500
1550
|
}
|
|
1551
|
+
:where(.sui-scope).text-end {
|
|
1552
|
+
text-align: end
|
|
1553
|
+
}
|
|
1501
1554
|
:where(.sui-scope).align-top {
|
|
1502
1555
|
vertical-align: top
|
|
1503
1556
|
}
|
|
@@ -2259,6 +2312,9 @@
|
|
|
2259
2312
|
:where(.sui-scope).has-\[\[data-disabled\]\]\:cursor-not-allowed:has([data-disabled]) {
|
|
2260
2313
|
cursor: not-allowed
|
|
2261
2314
|
}
|
|
2315
|
+
:where(.sui-scope).has-\[\:focus-visible\]\:bg-sherick-ink\/\[0\.05\]:has(:focus-visible) {
|
|
2316
|
+
background-color: oklch(var(--sui-ink) / 0.05)
|
|
2317
|
+
}
|
|
2262
2318
|
:where(.sui-scope).has-\[\[data-checked\]\]\:bg-sherick-primary-soft:has([data-checked]) {
|
|
2263
2319
|
--tw-bg-opacity: 1;
|
|
2264
2320
|
background-color: oklch(var(--sui-primary-soft) / var(--tw-bg-opacity, 1))
|
|
@@ -2780,6 +2836,9 @@
|
|
|
2780
2836
|
--tw-bg-opacity: 1;
|
|
2781
2837
|
background-color: oklch(var(--sui-tray-deep) / var(--tw-bg-opacity, 1))
|
|
2782
2838
|
}
|
|
2839
|
+
:where(.sui-scope).\[\&\&\]\:active\:bg-sherick-ink\/\[0\.09\]:active.\[\&\&\]\:active\:bg-sherick-ink\/\[0\.09\]:active {
|
|
2840
|
+
background-color: oklch(var(--sui-ink) / 0.09)
|
|
2841
|
+
}
|
|
2783
2842
|
:where(.sui-scope).\[\&\&\]\:data-\[invalid\]\:focus-within\:bg-sherick-danger-soft:focus-within[data-invalid].\[\&\&\]\:data-\[invalid\]\:focus-within\:bg-sherick-danger-soft:focus-within[data-invalid] {
|
|
2784
2843
|
--tw-bg-opacity: 1;
|
|
2785
2844
|
background-color: oklch(var(--sui-danger-soft) / var(--tw-bg-opacity, 1))
|
|
@@ -2854,6 +2913,9 @@
|
|
|
2854
2913
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
|
|
2855
2914
|
}
|
|
2856
2915
|
}
|
|
2916
|
+
:where(.sui-scope).\[\&\>\*\]\:shrink-0>* {
|
|
2917
|
+
flex-shrink: 0
|
|
2918
|
+
}
|
|
2857
2919
|
:where(.sui-scope).\[\&\>label\+p\]\:-mt-1>label+p {
|
|
2858
2920
|
margin-top: -0.25rem
|
|
2859
2921
|
}
|
|
@@ -2877,6 +2939,24 @@
|
|
|
2877
2939
|
width: 1.75rem;
|
|
2878
2940
|
height: 1.75rem
|
|
2879
2941
|
}
|
|
2942
|
+
:where(.sui-scope).\[\&\>td_\:is\(a\2c button\2c input\2c select\2c textarea\2c \[tabindex\]\)\]\:relative>td :is(a,button,input,select,textarea,[tabindex]) {
|
|
2943
|
+
position: relative
|
|
2944
|
+
}
|
|
2945
|
+
:where(.sui-scope).\[\&\>td_\:is\(a\2c button\2c input\2c select\2c textarea\2c \[tabindex\]\)\]\:z-\[1\]>td :is(a,button,input,select,textarea,[tabindex]) {
|
|
2946
|
+
z-index: 1
|
|
2947
|
+
}
|
|
2948
|
+
:where(.sui-scope).\[\&\>th\[scope\=row\]_\:is\(a\2c button\)\]\:after\:absolute>th[scope=row] :is(a,button)::after {
|
|
2949
|
+
content: var(--tw-content);
|
|
2950
|
+
position: absolute
|
|
2951
|
+
}
|
|
2952
|
+
:where(.sui-scope).\[\&\>th\[scope\=row\]_\:is\(a\2c button\)\]\:after\:inset-0>th[scope=row] :is(a,button)::after {
|
|
2953
|
+
content: var(--tw-content);
|
|
2954
|
+
inset: 0px
|
|
2955
|
+
}
|
|
2956
|
+
:where(.sui-scope).\[\&\>th\[scope\=row\]_\:is\(a\2c button\)\]\:after\:content-\[\'\'\]>th[scope=row] :is(a,button)::after {
|
|
2957
|
+
--tw-content: '';
|
|
2958
|
+
content: var(--tw-content)
|
|
2959
|
+
}
|
|
2880
2960
|
:where(.sui-scope).\[\&\[data-ending-style\]\:not\(\[data-swipe-direction\]\)\]\:\[transform\:translateY\(var\(--sui-toast-from-y\2c 150\%\)\)\][data-ending-style]:not([data-swipe-direction]) {
|
|
2881
2961
|
transform: translateY(var(--sui-toast-from-y,150%))
|
|
2882
2962
|
}
|
package/dist/types/dev.d.cts
CHANGED
|
@@ -22,6 +22,7 @@ declare const recessedTop = "shadow-sherick-recessed-top";
|
|
|
22
22
|
declare const shape: {
|
|
23
23
|
readonly control: "rounded-[0.75rem]";
|
|
24
24
|
readonly mark: "rounded-[0.375rem]";
|
|
25
|
+
readonly tag: "rounded-[0.375rem]";
|
|
25
26
|
readonly row: "rounded-[0.5rem]";
|
|
26
27
|
readonly prominent: "rounded-[1rem]";
|
|
27
28
|
readonly surface: "rounded-[1.25rem]";
|
|
@@ -59,6 +60,7 @@ declare const state: {
|
|
|
59
60
|
readonly text: "cursor-text";
|
|
60
61
|
readonly quietInk: "text-sherick-ink-muted hover:text-sherick-ink focus-visible:text-sherick-ink";
|
|
61
62
|
readonly rowHover: "hover:bg-sherick-ink/[0.05]";
|
|
63
|
+
readonly rowNavigable: string;
|
|
62
64
|
readonly field: {
|
|
63
65
|
readonly hover: "hover:bg-sherick-tray-deep";
|
|
64
66
|
readonly focus: "focus:bg-sherick-tray-deep";
|
|
@@ -84,6 +86,7 @@ declare const stateLayer: {
|
|
|
84
86
|
readonly activeRow: "data-[highlighted]:before:opacity-[0.05]";
|
|
85
87
|
readonly fieldPart: string;
|
|
86
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]";
|
|
87
90
|
declare const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[min(0px,calc((100%-2.75rem)/2))] after:content-['']";
|
|
88
91
|
declare const material: {
|
|
89
92
|
readonly canvas: "bg-sherick-canvas text-sherick-ink";
|
|
@@ -253,6 +256,10 @@ declare const recipeAlphas: {
|
|
|
253
256
|
readonly mark: {
|
|
254
257
|
readonly hover: number;
|
|
255
258
|
};
|
|
259
|
+
readonly row: {
|
|
260
|
+
readonly hover: number;
|
|
261
|
+
readonly press: number;
|
|
262
|
+
};
|
|
256
263
|
};
|
|
257
264
|
readonly tint: {
|
|
258
265
|
readonly neutralSoft: number;
|
|
@@ -403,5 +410,5 @@ declare const motionPresenceToast: string;
|
|
|
403
410
|
*/
|
|
404
411
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
405
412
|
|
|
406
|
-
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, selectable, selectableRowRest, 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 };
|
|
407
414
|
export type { MotionIntent };
|
package/dist/types/dev.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const recessedTop = "shadow-sherick-recessed-top";
|
|
|
22
22
|
declare const shape: {
|
|
23
23
|
readonly control: "rounded-[0.75rem]";
|
|
24
24
|
readonly mark: "rounded-[0.375rem]";
|
|
25
|
+
readonly tag: "rounded-[0.375rem]";
|
|
25
26
|
readonly row: "rounded-[0.5rem]";
|
|
26
27
|
readonly prominent: "rounded-[1rem]";
|
|
27
28
|
readonly surface: "rounded-[1.25rem]";
|
|
@@ -59,6 +60,7 @@ declare const state: {
|
|
|
59
60
|
readonly text: "cursor-text";
|
|
60
61
|
readonly quietInk: "text-sherick-ink-muted hover:text-sherick-ink focus-visible:text-sherick-ink";
|
|
61
62
|
readonly rowHover: "hover:bg-sherick-ink/[0.05]";
|
|
63
|
+
readonly rowNavigable: string;
|
|
62
64
|
readonly field: {
|
|
63
65
|
readonly hover: "hover:bg-sherick-tray-deep";
|
|
64
66
|
readonly focus: "focus:bg-sherick-tray-deep";
|
|
@@ -84,6 +86,7 @@ declare const stateLayer: {
|
|
|
84
86
|
readonly activeRow: "data-[highlighted]:before:opacity-[0.05]";
|
|
85
87
|
readonly fieldPart: string;
|
|
86
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]";
|
|
87
90
|
declare const hitArea = "relative after:pointer-events-auto after:absolute after:inset-[min(0px,calc((100%-2.75rem)/2))] after:content-['']";
|
|
88
91
|
declare const material: {
|
|
89
92
|
readonly canvas: "bg-sherick-canvas text-sherick-ink";
|
|
@@ -253,6 +256,10 @@ declare const recipeAlphas: {
|
|
|
253
256
|
readonly mark: {
|
|
254
257
|
readonly hover: number;
|
|
255
258
|
};
|
|
259
|
+
readonly row: {
|
|
260
|
+
readonly hover: number;
|
|
261
|
+
readonly press: number;
|
|
262
|
+
};
|
|
256
263
|
};
|
|
257
264
|
readonly tint: {
|
|
258
265
|
readonly neutralSoft: number;
|
|
@@ -403,5 +410,5 @@ declare const motionPresenceToast: string;
|
|
|
403
410
|
*/
|
|
404
411
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
405
412
|
|
|
406
|
-
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, selectable, selectableRowRest, 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 };
|
|
407
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 };
|