@igne-agency/react-web-ui 0.4.0 → 0.6.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/base.css +3 -0
- package/dist/components/accordion/accordion.css +21 -21
- package/dist/components/accordion/accordion.d.ts +17 -4
- package/dist/components/accordion/accordion.js +83 -36
- package/dist/components/accordion/accordion.module.js +6 -6
- package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
- package/dist/components/attachment-tile/attachment-preview.js +388 -119
- package/dist/components/attachment-tile/attachment-tile.css +31 -25
- package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
- package/dist/components/attachment-tile/attachment-tile.js +160 -43
- package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/avatar/avatar.css +9 -9
- package/dist/components/avatar/avatar.d.ts +50 -5
- package/dist/components/avatar/avatar.js +178 -64
- package/dist/components/avatar/avatar.module.js +3 -3
- package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
- package/dist/components/avatar-group/avatar-group-context.js +2 -2
- package/dist/components/avatar-group/avatar-group.css +26 -20
- package/dist/components/avatar-group/avatar-group.d.ts +85 -27
- package/dist/components/avatar-group/avatar-group.js +400 -246
- package/dist/components/avatar-group/avatar-group.module.js +8 -8
- package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
- package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
- package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
- package/dist/components/button/button.css +29 -31
- package/dist/components/button/button.d.ts +20 -16
- package/dist/components/button/button.js +140 -145
- package/dist/components/button/button.module.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox-field/checkbox-field.js +63 -49
- package/dist/components/checkbox-field/checkbox.css +105 -56
- package/dist/components/checkbox-field/checkbox.d.ts +3 -2
- package/dist/components/checkbox-field/checkbox.js +12 -9
- package/dist/components/checkbox-field/checkbox.module.js +4 -4
- package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
- package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
- package/dist/components/collapsible/collapsible.css +20 -20
- package/dist/components/collapsible/collapsible.d.ts +17 -4
- package/dist/components/collapsible/collapsible.js +83 -36
- package/dist/components/collapsible/collapsible.module.js +5 -5
- package/dist/components/combobox-field/combobox-field.js +206 -158
- package/dist/components/combobox-field/combobox.css +492 -277
- package/dist/components/combobox-field/combobox.d.ts +148 -39
- package/dist/components/combobox-field/combobox.js +506 -206
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/value-state-view.css +5 -5
- package/dist/components/combobox-field/value-state-view.module.js +4 -4
- package/dist/components/composer/composer-attachments.d.ts +30 -11
- package/dist/components/composer/composer-attachments.js +45 -40
- package/dist/components/composer/composer-editor.css +40 -35
- package/dist/components/composer/composer-editor.d.ts +14 -4
- package/dist/components/composer/composer-editor.js +134 -44
- package/dist/components/composer/composer-editor.module.js +5 -5
- package/dist/components/composer/composer.css +22 -22
- package/dist/components/composer/composer.d.ts +13 -2
- package/dist/components/composer/composer.js +78 -63
- package/dist/components/composer/composer.module.js +5 -5
- package/dist/components/composer/index.d.ts +2 -2
- package/dist/components/composer/mention-text.css +5 -5
- package/dist/components/composer/mention-text.module.js +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
- package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
- package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
- package/dist/components/conversation/conversation.css +52 -52
- package/dist/components/conversation/conversation.d.ts +43 -18
- package/dist/components/conversation/conversation.js +120 -78
- package/dist/components/conversation/conversation.module.js +15 -15
- package/dist/components/date-field/date-field.d.ts +1 -1
- package/dist/components/date-field/date-field.js +202 -100
- package/dist/components/date-field/date-input.d.ts +73 -37
- package/dist/components/date-field/date-input.js +72 -45
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.js +219 -107
- package/dist/components/date-range-field/date-range-input.d.ts +84 -40
- package/dist/components/date-range-field/date-range-input.js +83 -48
- package/dist/components/dialog/dialog.css +32 -32
- package/dist/components/dialog/dialog.d.ts +8 -7
- package/dist/components/dialog/dialog.js +8 -26
- package/dist/components/dialog/dialog.module.js +6 -6
- package/dist/components/divider/divider.css +6 -6
- package/dist/components/divider/divider.d.ts +36 -2
- package/dist/components/divider/divider.js +195 -29
- package/dist/components/divider/divider.module.js +3 -3
- package/dist/components/drawer/drawer.css +55 -56
- package/dist/components/drawer/drawer.d.ts +8 -7
- package/dist/components/drawer/drawer.js +8 -26
- package/dist/components/drawer/drawer.module.js +6 -6
- package/dist/components/field/field.css +34 -24
- package/dist/components/field/field.d.ts +60 -37
- package/dist/components/field/field.js +242 -157
- package/dist/components/field/field.module.js +12 -10
- package/dist/components/field/input-parts.d.ts +11 -13
- package/dist/components/field/input-parts.js +23 -42
- package/dist/components/field-placeholder/field-placeholder.css +6 -6
- package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
- package/dist/components/fieldset/field-group.d.ts +1 -1
- package/dist/components/fieldset/field-group.js +48 -42
- package/dist/components/fieldset/fieldset-root.d.ts +1 -1
- package/dist/components/fieldset/fieldset-root.js +19 -17
- package/dist/components/fieldset/fieldset.d.ts +2 -2
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-field/file-field.css +126 -60
- package/dist/components/file-field/file-field.js +201 -109
- package/dist/components/file-field/file-field.module.js +4 -4
- package/dist/components/file-field/file-input.d.ts +66 -40
- package/dist/components/file-field/file-input.js +188 -132
- package/dist/components/filter-bar/filter-bar.css +8 -8
- package/dist/components/filter-bar/filter-bar.d.ts +12 -3
- package/dist/components/filter-bar/filter-bar.js +23 -25
- package/dist/components/filter-bar/filter-bar.module.js +5 -5
- package/dist/components/form/form.d.ts +19 -7
- package/dist/components/form/form.js +80 -29
- package/dist/components/icon/icon.css +2 -2
- package/dist/components/icon/icon.module.js +1 -1
- package/dist/components/link/link.css +6 -5
- package/dist/components/link/link.module.js +1 -1
- package/dist/components/menu/menu.css +52 -47
- package/dist/components/menu/menu.d.ts +32 -25
- package/dist/components/menu/menu.js +75 -124
- package/dist/components/menu/menu.module.js +8 -8
- package/dist/components/nav/nav-context.d.ts +1 -1
- package/dist/components/nav/nav-item-view.d.ts +10 -13
- package/dist/components/nav/nav-item-view.js +42 -54
- package/dist/components/nav/nav.css +150 -119
- package/dist/components/nav/nav.d.ts +61 -17
- package/dist/components/nav/nav.js +271 -176
- package/dist/components/nav/nav.module.js +17 -15
- package/dist/components/number-field/number-field.css +153 -64
- package/dist/components/number-field/number-field.d.ts +2 -2
- package/dist/components/number-field/number-field.js +112 -91
- package/dist/components/number-field/number-field.module.js +6 -6
- package/dist/components/number-field/number-input.d.ts +43 -23
- package/dist/components/number-field/number-input.js +179 -125
- package/dist/components/otp-field/otp-field.css +153 -60
- package/dist/components/otp-field/otp-field.d.ts +2 -2
- package/dist/components/otp-field/otp-field.js +62 -46
- package/dist/components/otp-field/otp-field.module.js +4 -4
- package/dist/components/otp-field/otp-input.d.ts +8 -6
- package/dist/components/otp-field/otp-input.js +92 -92
- package/dist/components/pagination/pagination.d.ts +46 -15
- package/dist/components/pagination/pagination.js +217 -224
- package/dist/components/password-field/password-field.css +23 -23
- package/dist/components/password-field/password-field.js +107 -85
- package/dist/components/password-field/password-field.module.js +8 -8
- package/dist/components/password-field/password-strength.d.ts +107 -3
- package/dist/components/password-field/password-strength.js +569 -92
- package/dist/components/photo-field/photo-field.js +137 -112
- package/dist/components/photo-field/photo-input.css +67 -44
- package/dist/components/photo-field/photo-input.d.ts +59 -15
- package/dist/components/photo-field/photo-input.js +173 -86
- package/dist/components/photo-field/photo-input.module.js +10 -8
- package/dist/components/popover/popover.css +41 -41
- package/dist/components/popover/popover.d.ts +66 -25
- package/dist/components/popover/popover.js +332 -217
- package/dist/components/popover/popover.module.js +15 -19
- package/dist/components/radio-group-field/radio-group-field.js +80 -71
- package/dist/components/radio-group-field/radio-group.css +112 -60
- package/dist/components/radio-group-field/radio-group.d.ts +19 -3
- package/dist/components/radio-group-field/radio-group.js +66 -23
- package/dist/components/radio-group-field/radio-group.module.js +4 -4
- package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
- package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
- package/dist/components/segmented-control-field/segmented-control.css +132 -79
- package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
- package/dist/components/segmented-control-field/segmented-control.js +124 -41
- package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
- package/dist/components/select-field/select.css +214 -101
- package/dist/components/select-field/select.d.ts +43 -11
- package/dist/components/select-field/select.js +194 -109
- package/dist/components/select-field/select.module.js +14 -14
- package/dist/components/skeleton/skeleton.css +4 -4
- package/dist/components/skeleton/skeleton.module.js +3 -3
- package/dist/components/stale/stale.css +15 -15
- package/dist/components/stale/stale.d.ts +27 -3
- package/dist/components/stale/stale.js +147 -66
- package/dist/components/stale/stale.module.js +6 -6
- package/dist/components/status-message/status-message.css +22 -22
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/switch-field/switch-field.js +77 -57
- package/dist/components/switch-field/switch.css +112 -63
- package/dist/components/switch-field/switch.d.ts +20 -3
- package/dist/components/switch-field/switch.js +70 -27
- package/dist/components/switch-field/switch.module.js +4 -4
- package/dist/components/tabs/tabs.css +32 -32
- package/dist/components/tabs/tabs.d.ts +21 -7
- package/dist/components/tabs/tabs.js +73 -14
- package/dist/components/tabs/tabs.module.js +7 -7
- package/dist/components/tag/tag.css +84 -84
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +94 -94
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.css +159 -82
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +139 -110
- package/dist/components/text-field/text-field.module.js +9 -9
- package/dist/components/text-field/text-input.d.ts +81 -45
- package/dist/components/text-field/text-input.js +366 -217
- package/dist/components/textarea-field/textarea-field.css +7 -2
- package/dist/components/textarea-field/textarea-field.js +72 -56
- package/dist/components/textarea-field/textarea-field.module.js +2 -2
- package/dist/components/time-field/time-field.js +153 -60
- package/dist/components/time-field/time-input.d.ts +21 -10
- package/dist/components/time-field/time-input.js +22 -11
- package/dist/components/toast/toast-provider.css +34 -31
- package/dist/components/toast/toast-provider.d.ts +63 -14
- package/dist/components/toast/toast-provider.js +174 -111
- package/dist/components/toast/toast-provider.module.js +7 -7
- package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
- package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
- package/dist/components/toggle-group-field/toggle-group.css +117 -67
- package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group-field/toggle-group.js +2 -2
- package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/components/tooltip/tooltip.module.js +1 -1
- package/dist/data-table/data-table-content.js +6 -5
- package/dist/data-table/data-table-parts.d.ts +41 -13
- package/dist/data-table/data-table-parts.js +213 -172
- package/dist/data-table/data-table-selection.d.ts +105 -3
- package/dist/data-table/data-table-selection.js +654 -145
- package/dist/data-table/data-table.css +125 -128
- package/dist/data-table/data-table.d.ts +21 -26
- package/dist/data-table/data-table.js +20 -23
- package/dist/data-table/data-table.module.js +32 -34
- package/dist/data-table/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
- package/dist/lib/calendar/calendar-navigation.js +185 -118
- package/dist/lib/calendar/calendar-parts.d.ts +143 -0
- package/dist/lib/calendar/calendar-parts.js +540 -0
- package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
- package/dist/lib/calendar/calendar-prefab.js +311 -0
- package/dist/lib/calendar/calendar-year.d.ts +3 -1
- package/dist/lib/calendar/calendar-year.js +139 -131
- package/dist/lib/calendar/temporal.css +325 -232
- package/dist/lib/calendar/temporal.d.ts +67 -82
- package/dist/lib/calendar/temporal.js +258 -569
- package/dist/lib/calendar/temporal.module.js +38 -38
- package/dist/lib/forms/use-connected-field.d.ts +1 -1
- package/dist/lib/forms/use-connected-field.js +1 -1
- package/dist/lib/render-as.d.ts +13 -0
- package/dist/lib/render-as.js +46 -0
- package/dist/terrazzo/index.d.ts +4 -3
- package/dist/terrazzo/index.js +17 -6
- package/dist/tokens.css +28 -4
- package/package.json +2 -2
- package/tokens/dark.tokens.json +6 -0
- package/tokens/sys.tokens.json +7 -0
- package/dist/components/button/close-button.d.ts +0 -16
- package/dist/components/button/close-button.js +0 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
.
|
|
3
|
+
._root_ywjb2_3 {
|
|
4
4
|
--_table-radius: var(
|
|
5
5
|
--table-radius,
|
|
6
6
|
var(--sys-radius-md)
|
|
@@ -70,18 +70,18 @@
|
|
|
70
70
|
);
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
|
-
gap: var(--sys-unit-8);
|
|
74
|
-
color: var(--sys-color-text);
|
|
73
|
+
gap: var(--table-gap, var(--sys-unit-8));
|
|
74
|
+
color: var(--table-fg, var(--sys-color-text));
|
|
75
75
|
min-block-size: 0;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
._toolbar_ywjb2_77 {
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-shrink: 0;
|
|
80
80
|
flex-wrap: wrap;
|
|
81
81
|
align-items: center;
|
|
82
|
-
gap: var(--sys-unit-8);
|
|
82
|
+
gap: var(--table-toolbar-gap, var(--sys-unit-8));
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
._scrollFrame_ywjb2_84 {
|
|
85
85
|
position: relative;
|
|
86
86
|
display: flex;
|
|
87
87
|
flex: 0 1 auto;
|
|
@@ -89,16 +89,10 @@
|
|
|
89
89
|
min-block-size: 0;
|
|
90
90
|
timeline-scope: --table-scroll;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
93
|
-
display: flex;
|
|
94
|
-
flex: 1 1 0;
|
|
95
|
-
min-inline-size: 0;
|
|
96
|
-
min-block-size: 0;
|
|
97
|
-
}
|
|
98
|
-
._staleOverlay_k21i7_98 {
|
|
92
|
+
._staleOverlay_ywjb2_92 {
|
|
99
93
|
border-radius: var(--_table-radius);
|
|
100
94
|
}
|
|
101
|
-
.
|
|
95
|
+
._contentWrap_ywjb2_95 {
|
|
102
96
|
position: relative;
|
|
103
97
|
isolation: isolate;
|
|
104
98
|
flex: 1 1 0;
|
|
@@ -106,19 +100,19 @@
|
|
|
106
100
|
min-block-size: 0;
|
|
107
101
|
overflow: auto;
|
|
108
102
|
border-radius: var(--_table-radius);
|
|
109
|
-
background: var(--sys-color-surface);
|
|
103
|
+
background: var(--table-bg, var(--sys-color-surface));
|
|
110
104
|
scroll-timeline: --table-scroll inline;
|
|
111
105
|
}
|
|
112
|
-
.
|
|
106
|
+
._contentWrap_ywjb2_95 {
|
|
113
107
|
outline: 0 solid var(--sys-color-focus-ring);
|
|
114
108
|
outline-offset: var(--sys-focus-ring-offset);
|
|
115
109
|
}
|
|
116
|
-
.
|
|
110
|
+
._contentWrap_ywjb2_95:focus-visible {
|
|
117
111
|
outline-width: var(--sys-focus-ring-width);
|
|
118
112
|
}
|
|
119
113
|
@supports (animation-timeline: scroll()) {
|
|
120
|
-
.
|
|
121
|
-
.
|
|
114
|
+
._scrollFrame_ywjb2_84::before,
|
|
115
|
+
._scrollFrame_ywjb2_84::after {
|
|
122
116
|
position: absolute;
|
|
123
117
|
z-index: 1;
|
|
124
118
|
inset-block: 0 var(--table-scrollbar-block, 0px);
|
|
@@ -129,24 +123,24 @@
|
|
|
129
123
|
animation-fill-mode: both;
|
|
130
124
|
animation-timeline: --table-scroll;
|
|
131
125
|
}
|
|
132
|
-
.
|
|
133
|
-
.
|
|
126
|
+
._scrollFrame_ywjb2_84:has(._th_ywjb2_126[data-sticky=start])::before,
|
|
127
|
+
._scrollFrame_ywjb2_84:has(._th_ywjb2_126[data-sticky=end])::after {
|
|
134
128
|
content: "";
|
|
135
129
|
}
|
|
136
|
-
.
|
|
130
|
+
._scrollFrame_ywjb2_84::before {
|
|
137
131
|
inset-inline-start: var(--table-sticky-total, 0px);
|
|
138
132
|
background: linear-gradient(to right, var(--_table-edge-shadow), transparent);
|
|
139
|
-
animation-name:
|
|
133
|
+
animation-name: _edgeStart_ywjb2_1;
|
|
140
134
|
animation-range: var(--_table-edge-slack) calc(var(--_table-edge-cue) + var(--_table-edge-slack));
|
|
141
135
|
}
|
|
142
|
-
.
|
|
136
|
+
._scrollFrame_ywjb2_84::after {
|
|
143
137
|
inset-inline-end: calc(var(--table-sticky-end-total, 0px) + var(--table-scrollbar-inline, 0px));
|
|
144
138
|
background: linear-gradient(to left, var(--_table-edge-shadow), transparent);
|
|
145
|
-
animation-name:
|
|
139
|
+
animation-name: _edgeEnd_ywjb2_1;
|
|
146
140
|
animation-range: calc(100% - var(--_table-edge-cue) - var(--_table-edge-slack)) calc(100% - var(--_table-edge-slack));
|
|
147
141
|
}
|
|
148
142
|
}
|
|
149
|
-
@keyframes
|
|
143
|
+
@keyframes _edgeStart_ywjb2_1 {
|
|
150
144
|
from {
|
|
151
145
|
opacity: 0;
|
|
152
146
|
}
|
|
@@ -154,7 +148,7 @@
|
|
|
154
148
|
opacity: 1;
|
|
155
149
|
}
|
|
156
150
|
}
|
|
157
|
-
@keyframes
|
|
151
|
+
@keyframes _edgeEnd_ywjb2_1 {
|
|
158
152
|
from {
|
|
159
153
|
opacity: 1;
|
|
160
154
|
}
|
|
@@ -162,66 +156,66 @@
|
|
|
162
156
|
opacity: 0;
|
|
163
157
|
}
|
|
164
158
|
}
|
|
165
|
-
.
|
|
159
|
+
._refreshFailed_ywjb2_159 {
|
|
166
160
|
display: flex;
|
|
167
161
|
flex-shrink: 0;
|
|
168
162
|
flex-wrap: wrap;
|
|
169
163
|
align-items: center;
|
|
170
|
-
gap: var(--sys-unit-6);
|
|
171
|
-
border-radius: var(--sys-radius-md);
|
|
172
|
-
background: var(--sys-color-error-bg);
|
|
173
|
-
padding: var(--sys-unit-6) var(--sys-unit-8);
|
|
174
|
-
color: var(--sys-color-error-fg);
|
|
175
|
-
font: var(--sys-font-label-medium);
|
|
176
|
-
}
|
|
177
|
-
.
|
|
164
|
+
gap: var(--table-refresh-failed-gap, var(--sys-unit-6));
|
|
165
|
+
border-radius: var(--table-refresh-failed-radius, var(--sys-radius-md));
|
|
166
|
+
background: var(--table-refresh-failed-bg, var(--sys-color-error-bg));
|
|
167
|
+
padding: var(--table-refresh-failed-pad-y, var(--sys-unit-6)) var(--table-refresh-failed-pad-x, var(--sys-unit-8));
|
|
168
|
+
color: var(--table-refresh-failed-fg, var(--sys-color-error-fg));
|
|
169
|
+
font: var(--table-refresh-failed-font, var(--sys-font-label-medium));
|
|
170
|
+
}
|
|
171
|
+
._table_ywjb2_171 {
|
|
178
172
|
inline-size: max-content;
|
|
179
173
|
min-inline-size: var(--_table-min-inline);
|
|
180
174
|
border-collapse: separate;
|
|
181
175
|
border-spacing: 0;
|
|
182
|
-
font: var(--sys-font-body-medium);
|
|
176
|
+
font: var(--table-font, var(--sys-font-body-medium));
|
|
183
177
|
font-variant-numeric: tabular-nums;
|
|
184
178
|
}
|
|
185
|
-
.
|
|
179
|
+
._thead_ywjb2_179 {
|
|
186
180
|
position: sticky;
|
|
187
181
|
inset-block-start: 0;
|
|
188
182
|
z-index: 2;
|
|
189
183
|
background: var(--_table-header-bg);
|
|
190
184
|
}
|
|
191
|
-
.
|
|
185
|
+
._th_ywjb2_126 {
|
|
192
186
|
block-size: var(--_table-header-min-block);
|
|
193
187
|
padding: var(--_table-header-pad-y) var(--_table-cell-pad-x);
|
|
194
188
|
vertical-align: middle;
|
|
195
189
|
color: var(--_table-header-fg);
|
|
196
190
|
text-align: start;
|
|
197
|
-
font: var(--sys-font-label-small);
|
|
191
|
+
font: var(--table-header-font, var(--sys-font-label-small));
|
|
198
192
|
white-space: nowrap;
|
|
199
193
|
}
|
|
200
|
-
.
|
|
194
|
+
._th_ywjb2_126:has(> ._sortToggle_ywjb2_194) {
|
|
201
195
|
padding: 0;
|
|
202
196
|
}
|
|
203
|
-
.
|
|
197
|
+
._sortToggle_ywjb2_194 {
|
|
204
198
|
display: flex;
|
|
205
199
|
align-items: center;
|
|
206
|
-
gap: var(--sys-unit-4);
|
|
200
|
+
gap: var(--table-sort-gap, var(--sys-unit-4));
|
|
207
201
|
inline-size: 100%;
|
|
208
|
-
border-radius: var(--sys-radius-full);
|
|
202
|
+
border-radius: var(--table-sort-radius, var(--sys-radius-full));
|
|
209
203
|
padding: var(--_table-header-pad-y) var(--_table-cell-pad-x);
|
|
210
204
|
color: inherit;
|
|
211
205
|
font: inherit;
|
|
212
206
|
}
|
|
213
|
-
.
|
|
207
|
+
._sortToggle_ywjb2_194 {
|
|
214
208
|
outline: 0 solid var(--sys-color-focus-ring);
|
|
215
209
|
outline-offset: var(--sys-focus-ring-offset);
|
|
216
210
|
}
|
|
217
|
-
.
|
|
211
|
+
._sortToggle_ywjb2_194:focus-visible {
|
|
218
212
|
outline-width: var(--sys-focus-ring-width);
|
|
219
213
|
}
|
|
220
|
-
.
|
|
214
|
+
._sortToggle_ywjb2_194 {
|
|
221
215
|
position: relative;
|
|
222
216
|
isolation: isolate;
|
|
223
217
|
}
|
|
224
|
-
.
|
|
218
|
+
._sortToggle_ywjb2_194::after {
|
|
225
219
|
content: "";
|
|
226
220
|
position: absolute;
|
|
227
221
|
z-index: -1;
|
|
@@ -232,91 +226,91 @@
|
|
|
232
226
|
pointer-events: none;
|
|
233
227
|
}
|
|
234
228
|
@media not (prefers-reduced-motion) {
|
|
235
|
-
.
|
|
229
|
+
._sortToggle_ywjb2_194::after {
|
|
236
230
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard);
|
|
237
231
|
}
|
|
238
232
|
}
|
|
239
|
-
.
|
|
233
|
+
._sortToggle_ywjb2_194:hover:not(:disabled, [data-disabled])::after {
|
|
240
234
|
opacity: var(--sys-state-hover);
|
|
241
235
|
}
|
|
242
|
-
.
|
|
236
|
+
._sortToggle_ywjb2_194:active:not(:disabled, [data-disabled])::after {
|
|
243
237
|
opacity: var(--sys-state-pressed);
|
|
244
238
|
}
|
|
245
|
-
.
|
|
239
|
+
._sortToggle_ywjb2_194 {
|
|
246
240
|
outline-offset: calc(-1 * var(--sys-focus-ring-width));
|
|
247
241
|
}
|
|
248
|
-
.
|
|
242
|
+
._th_ywjb2_126[data-numeric=true] ._sortToggle_ywjb2_194 {
|
|
249
243
|
justify-content: flex-end;
|
|
250
244
|
}
|
|
251
|
-
.
|
|
245
|
+
._sortIcon_ywjb2_245 {
|
|
252
246
|
display: inline-flex;
|
|
253
247
|
flex-shrink: 0;
|
|
254
248
|
font-size: var(--table-sort-icon-size, 1em);
|
|
255
249
|
}
|
|
256
|
-
.
|
|
250
|
+
._sortIcon_ywjb2_245[data-sort=none] {
|
|
257
251
|
color: color-mix(in oklab, var(--_table-header-fg) 55%, var(--_table-header-bg));
|
|
258
252
|
}
|
|
259
|
-
.
|
|
260
|
-
.
|
|
253
|
+
._th_ywjb2_126[data-fit=true],
|
|
254
|
+
._td_ywjb2_254[data-fit=true] {
|
|
261
255
|
inline-size: 1px;
|
|
262
256
|
white-space: nowrap;
|
|
263
257
|
}
|
|
264
|
-
.
|
|
265
|
-
.
|
|
258
|
+
._th_ywjb2_126[data-numeric=true],
|
|
259
|
+
._td_ywjb2_254[data-numeric=true] {
|
|
266
260
|
text-align: end;
|
|
267
261
|
font-variant-numeric: tabular-nums;
|
|
268
262
|
}
|
|
269
|
-
.
|
|
270
|
-
.
|
|
263
|
+
._th_ywjb2_126[data-sticky],
|
|
264
|
+
._td_ywjb2_254[data-sticky] {
|
|
271
265
|
position: sticky;
|
|
272
266
|
z-index: 1;
|
|
273
267
|
}
|
|
274
|
-
.
|
|
268
|
+
._th_ywjb2_126[data-sticky] {
|
|
275
269
|
background: var(--_table-header-bg);
|
|
276
270
|
}
|
|
277
|
-
.
|
|
278
|
-
background: var(--sys-color-surface);
|
|
271
|
+
._td_ywjb2_254[data-sticky] {
|
|
272
|
+
background: var(--table-bg, var(--sys-color-surface));
|
|
279
273
|
}
|
|
280
274
|
@media not (prefers-reduced-motion) {
|
|
281
|
-
.
|
|
275
|
+
._td_ywjb2_254[data-sticky] {
|
|
282
276
|
transition: background-color var(--sys-motion-instant) var(--sys-motion-standard);
|
|
283
277
|
}
|
|
284
278
|
}
|
|
285
|
-
.
|
|
279
|
+
._row_ywjb2_279[data-stripe=true] ._td_ywjb2_254[data-sticky] {
|
|
286
280
|
background: var(--_table-row-stripe);
|
|
287
281
|
}
|
|
288
|
-
.
|
|
282
|
+
._row_ywjb2_279:hover ._td_ywjb2_254[data-sticky] {
|
|
289
283
|
background: var(--_table-row-hover);
|
|
290
284
|
}
|
|
291
285
|
@media not (prefers-reduced-motion) {
|
|
292
|
-
.
|
|
286
|
+
._row_ywjb2_279 {
|
|
293
287
|
transition: background-color var(--sys-motion-instant) var(--sys-motion-standard);
|
|
294
288
|
}
|
|
295
289
|
}
|
|
296
|
-
.
|
|
290
|
+
._row_ywjb2_279[data-stripe=true] {
|
|
297
291
|
background: var(--_table-row-stripe);
|
|
298
292
|
}
|
|
299
|
-
.
|
|
293
|
+
._row_ywjb2_279:hover {
|
|
300
294
|
background: var(--_table-row-hover);
|
|
301
295
|
}
|
|
302
|
-
.
|
|
296
|
+
._td_ywjb2_254 {
|
|
303
297
|
padding: var(--_table-cell-pad-y) var(--_table-cell-pad-x);
|
|
304
298
|
vertical-align: middle;
|
|
305
299
|
white-space: nowrap;
|
|
306
300
|
}
|
|
307
|
-
.
|
|
301
|
+
._subRow_ywjb2_301 {
|
|
308
302
|
background: var(--_table-subrow-bg);
|
|
309
303
|
}
|
|
310
|
-
.
|
|
304
|
+
._subRow_ywjb2_301 > td {
|
|
311
305
|
padding: 0;
|
|
312
306
|
}
|
|
313
|
-
.
|
|
307
|
+
._subRow_ywjb2_301 > ._td_ywjb2_254[data-sticky] {
|
|
314
308
|
background: var(--_table-subrow-bg);
|
|
315
309
|
}
|
|
316
|
-
.
|
|
317
|
-
min-inline-size: var(--sys-unit-16);
|
|
310
|
+
._skeletonBar_ywjb2_310 {
|
|
311
|
+
min-inline-size: var(--table-skeleton-min-inline, var(--sys-unit-16));
|
|
318
312
|
}
|
|
319
|
-
.
|
|
313
|
+
._busyCaption_ywjb2_313 {
|
|
320
314
|
position: absolute;
|
|
321
315
|
overflow: hidden;
|
|
322
316
|
clip-path: inset(50%);
|
|
@@ -324,23 +318,23 @@
|
|
|
324
318
|
block-size: 1px;
|
|
325
319
|
white-space: nowrap;
|
|
326
320
|
}
|
|
327
|
-
.
|
|
328
|
-
padding: var(--sys-unit-24) var(--_table-cell-pad-x);
|
|
329
|
-
color: var(--sys-color-text-muted);
|
|
321
|
+
._stateCell_ywjb2_321 {
|
|
322
|
+
padding: var(--table-state-pad-y, var(--sys-unit-24)) var(--_table-cell-pad-x);
|
|
323
|
+
color: var(--table-state-fg, var(--sys-color-text-muted));
|
|
330
324
|
text-align: center;
|
|
331
325
|
}
|
|
332
|
-
.
|
|
333
|
-
color: var(--sys-color-error-fg);
|
|
326
|
+
._errorState_ywjb2_326 {
|
|
327
|
+
color: var(--table-error-fg, var(--sys-color-error-fg));
|
|
334
328
|
}
|
|
335
|
-
.
|
|
329
|
+
._pagination_ywjb2_329 {
|
|
336
330
|
flex-shrink: 0;
|
|
337
331
|
align-self: flex-end;
|
|
338
332
|
}
|
|
339
|
-
.
|
|
333
|
+
._selectionContainer_ywjb2_333 {
|
|
340
334
|
container: selection-bar/inline-size;
|
|
341
335
|
min-inline-size: 0;
|
|
342
336
|
}
|
|
343
|
-
.
|
|
337
|
+
._selectionBar_ywjb2_337 {
|
|
344
338
|
--_selection-stagger: var(
|
|
345
339
|
--selection-stagger,
|
|
346
340
|
calc(var(--sys-motion-instant) / 4)
|
|
@@ -359,107 +353,110 @@
|
|
|
359
353
|
flex-shrink: 0;
|
|
360
354
|
flex-wrap: nowrap;
|
|
361
355
|
align-items: center;
|
|
362
|
-
gap: var(--sys-unit-6);
|
|
356
|
+
gap: var(--selection-gap, var(--sys-unit-6));
|
|
363
357
|
isolation: isolate;
|
|
364
358
|
min-inline-size: 0;
|
|
365
359
|
overflow-x: auto;
|
|
366
360
|
border-radius: var(--_selection-radius);
|
|
367
361
|
padding-block: var(--_selection-pad);
|
|
368
362
|
padding-inline: 0;
|
|
369
|
-
color: var(--sys-color-text);
|
|
363
|
+
color: var(--selection-fg, var(--sys-color-text));
|
|
370
364
|
white-space: nowrap;
|
|
371
365
|
}
|
|
372
|
-
.
|
|
366
|
+
._selectionBar_ywjb2_337 {
|
|
373
367
|
outline: 0 solid var(--sys-color-focus-ring);
|
|
374
368
|
outline-offset: var(--sys-focus-ring-offset);
|
|
375
369
|
}
|
|
376
|
-
.
|
|
370
|
+
._selectionBar_ywjb2_337:focus-visible {
|
|
377
371
|
outline-width: var(--sys-focus-ring-width);
|
|
378
372
|
}
|
|
379
|
-
.
|
|
373
|
+
._selectionBar_ywjb2_337::before {
|
|
380
374
|
position: absolute;
|
|
381
375
|
inset: 0;
|
|
382
376
|
z-index: -1;
|
|
383
377
|
border-radius: inherit;
|
|
384
|
-
background: var(--sys-color-surface);
|
|
378
|
+
background: var(--selection-bg, var(--sys-color-surface));
|
|
385
379
|
content: "";
|
|
386
380
|
opacity: 0;
|
|
387
381
|
scale: 0.98 0.8;
|
|
388
382
|
}
|
|
389
|
-
.
|
|
390
|
-
--_selection-text-inset: var(
|
|
383
|
+
._selectionBar_ywjb2_337[data-selected] {
|
|
384
|
+
--_selection-text-inset: var(
|
|
385
|
+
--selection-text-inset,
|
|
386
|
+
var(--sys-unit-6)
|
|
387
|
+
);
|
|
391
388
|
padding-inline: var(--_selection-pad);
|
|
392
389
|
}
|
|
393
|
-
.
|
|
390
|
+
._selectionBar_ywjb2_337[data-selected]::before {
|
|
394
391
|
opacity: 1;
|
|
395
392
|
scale: 1;
|
|
396
393
|
}
|
|
397
394
|
@media not (prefers-reduced-motion) {
|
|
398
|
-
.
|
|
395
|
+
._selectionBar_ywjb2_337 {
|
|
399
396
|
transition: padding-inline var(--sys-motion-instant) var(--sys-motion-accelerate);
|
|
400
397
|
}
|
|
401
|
-
.
|
|
398
|
+
._selectionBar_ywjb2_337::before {
|
|
402
399
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-accelerate), scale var(--sys-motion-instant) var(--sys-motion-accelerate);
|
|
403
400
|
}
|
|
404
|
-
.
|
|
401
|
+
._selectionBar_ywjb2_337[data-selected] {
|
|
405
402
|
transition-duration: var(--sys-motion-short);
|
|
406
403
|
transition-timing-function: var(--sys-motion-emphasized);
|
|
407
404
|
}
|
|
408
|
-
.
|
|
405
|
+
._selectionBar_ywjb2_337[data-selected]::before {
|
|
409
406
|
transition-duration: var(--sys-motion-short);
|
|
410
407
|
transition-timing-function: var(--sys-motion-emphasized);
|
|
411
408
|
}
|
|
412
409
|
}
|
|
413
|
-
.
|
|
410
|
+
._selectionSummary_ywjb2_410 {
|
|
414
411
|
display: grid;
|
|
415
412
|
flex-shrink: 0;
|
|
416
413
|
align-items: center;
|
|
417
414
|
padding-inline-start: var(--_selection-text-inset);
|
|
418
415
|
}
|
|
419
416
|
@media not (prefers-reduced-motion) {
|
|
420
|
-
.
|
|
417
|
+
._selectionSummary_ywjb2_410 {
|
|
421
418
|
transition: padding-inline-start var(--sys-motion-instant) var(--sys-motion-accelerate);
|
|
422
419
|
}
|
|
423
|
-
.
|
|
420
|
+
._selectionBar_ywjb2_337[data-selected] ._selectionSummary_ywjb2_410 {
|
|
424
421
|
transition-duration: var(--sys-motion-short);
|
|
425
422
|
transition-timing-function: var(--sys-motion-emphasized);
|
|
426
423
|
}
|
|
427
424
|
}
|
|
428
|
-
.
|
|
429
|
-
.
|
|
430
|
-
.
|
|
425
|
+
._selectionTotal_ywjb2_425,
|
|
426
|
+
._selectionCount_ywjb2_426,
|
|
427
|
+
._selectionMeasure_ywjb2_427 {
|
|
431
428
|
grid-area: 1/1;
|
|
432
|
-
font: var(--sys-font-body-medium);
|
|
429
|
+
font: var(--selection-font, var(--sys-font-body-medium));
|
|
433
430
|
}
|
|
434
|
-
.
|
|
435
|
-
color: var(--sys-color-text-muted);
|
|
431
|
+
._selectionTotal_ywjb2_425 {
|
|
432
|
+
color: var(--selection-total-fg, var(--sys-color-text-muted));
|
|
436
433
|
}
|
|
437
|
-
.
|
|
434
|
+
._selectionCount_ywjb2_426 {
|
|
438
435
|
font-variant-numeric: tabular-nums;
|
|
439
436
|
}
|
|
440
|
-
.
|
|
437
|
+
._selectionBar_ywjb2_337:not([data-selected]) ._selectionCount_ywjb2_426 {
|
|
441
438
|
opacity: 0;
|
|
442
439
|
translate: 0 var(--sys-unit-2);
|
|
443
440
|
}
|
|
444
|
-
.
|
|
441
|
+
._selectionBar_ywjb2_337[data-selected] ._selectionCount_ywjb2_426 {
|
|
445
442
|
opacity: 1;
|
|
446
443
|
translate: 0;
|
|
447
444
|
}
|
|
448
|
-
.
|
|
445
|
+
._selectionMeasure_ywjb2_427 {
|
|
449
446
|
visibility: hidden;
|
|
450
447
|
font-variant-numeric: tabular-nums;
|
|
451
448
|
}
|
|
452
|
-
.
|
|
449
|
+
._selectionBar_ywjb2_337[data-selected] ._selectionTotal_ywjb2_425 {
|
|
453
450
|
opacity: 0;
|
|
454
451
|
translate: 0 calc(-1 * var(--sys-unit-2));
|
|
455
452
|
}
|
|
456
453
|
@media not (prefers-reduced-motion) {
|
|
457
|
-
.
|
|
458
|
-
.
|
|
454
|
+
._selectionTotal_ywjb2_425,
|
|
455
|
+
._selectionCount_ywjb2_426 {
|
|
459
456
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), translate var(--sys-motion-instant) var(--sys-motion-standard);
|
|
460
457
|
}
|
|
461
458
|
}
|
|
462
|
-
.
|
|
459
|
+
._selectionStatus_ywjb2_459 {
|
|
463
460
|
position: absolute;
|
|
464
461
|
overflow: hidden;
|
|
465
462
|
clip-path: inset(50%);
|
|
@@ -467,53 +464,53 @@
|
|
|
467
464
|
block-size: 1px;
|
|
468
465
|
white-space: nowrap;
|
|
469
466
|
}
|
|
470
|
-
.
|
|
467
|
+
._selectionActions_ywjb2_467 {
|
|
471
468
|
display: flex;
|
|
472
469
|
flex: 1 1 auto;
|
|
473
470
|
flex-wrap: nowrap;
|
|
474
471
|
align-items: center;
|
|
475
472
|
gap: var(--_selection-pad);
|
|
476
473
|
}
|
|
477
|
-
.
|
|
474
|
+
._selectionActions_ywjb2_467 > * {
|
|
478
475
|
opacity: 1;
|
|
479
476
|
}
|
|
480
|
-
.
|
|
477
|
+
._selectionActions_ywjb2_467[inert] {
|
|
481
478
|
visibility: hidden;
|
|
482
479
|
}
|
|
483
|
-
.
|
|
480
|
+
._selectionActions_ywjb2_467[inert] > * {
|
|
484
481
|
opacity: 0;
|
|
485
482
|
}
|
|
486
483
|
@media not (prefers-reduced-motion) {
|
|
487
|
-
.
|
|
484
|
+
._selectionActions_ywjb2_467 {
|
|
488
485
|
transition: visibility var(--sys-motion-instant);
|
|
489
486
|
}
|
|
490
|
-
.
|
|
487
|
+
._selectionActions_ywjb2_467 > * {
|
|
491
488
|
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard);
|
|
492
489
|
}
|
|
493
|
-
.
|
|
490
|
+
._selectionActions_ywjb2_467:not([inert]) > :nth-child(1) {
|
|
494
491
|
transition-delay: var(--_selection-stagger);
|
|
495
492
|
}
|
|
496
|
-
.
|
|
493
|
+
._selectionActions_ywjb2_467:not([inert]) > :nth-child(2) {
|
|
497
494
|
transition-delay: calc(var(--_selection-stagger) * 2);
|
|
498
495
|
}
|
|
499
496
|
}
|
|
500
|
-
.
|
|
497
|
+
._selectionSelectAll_ywjb2_497[data-starting-style], ._selectionSelectAll_ywjb2_497[data-ending-style] {
|
|
501
498
|
opacity: 0;
|
|
502
499
|
}
|
|
503
|
-
.
|
|
500
|
+
._selectionBulk_ywjb2_500 {
|
|
504
501
|
display: flex;
|
|
505
502
|
flex-wrap: nowrap;
|
|
506
503
|
align-items: center;
|
|
507
|
-
gap: var(--sys-unit-6);
|
|
504
|
+
gap: var(--selection-bulk-gap, var(--sys-unit-6));
|
|
508
505
|
margin-inline-start: auto;
|
|
509
506
|
}
|
|
510
507
|
@container selection-bar (max-width: 36rem) {
|
|
511
|
-
.
|
|
508
|
+
._selectionBar_ywjb2_337 {
|
|
512
509
|
flex-wrap: wrap;
|
|
513
510
|
overflow-x: visible;
|
|
514
511
|
row-gap: var(--_selection-pad);
|
|
515
512
|
}
|
|
516
|
-
.
|
|
513
|
+
._selectionActions_ywjb2_467 {
|
|
517
514
|
flex-wrap: wrap;
|
|
518
515
|
}
|
|
519
516
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactTable } from "@tanstack/react-table";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
import { type
|
|
3
|
+
import { type PaginationRootProps } from "../components/pagination/pagination.tsx";
|
|
4
4
|
import type { RowSelectionView } from "../lib/hooks/use-row-selection.ts";
|
|
5
5
|
import { DataTableContent } from "./data-table-content.tsx";
|
|
6
|
-
import { Body, Cell, ErrorMessage, Frame, Head, HeaderCell, HeaderRow, LoadingCaption, PlaceholderRows, RefreshFailed, Row, Scroller, SortButton, StaleOverlay, StateRow, SubRow, Table } from "./data-table-parts.tsx";
|
|
6
|
+
import { Body, Cell, ErrorMessage, Frame, Head, HeaderCell, HeaderRow, LoadingCaption, PlaceholderRows, RefreshFailed, Row, Scroller, SortButton, SortIcon, StaleOverlay, StateRow, SubRow, Table } from "./data-table-parts.tsx";
|
|
7
7
|
import { DataTableSelectionBar } from "./data-table-selection.tsx";
|
|
8
8
|
import type { DataTableStatus } from "./resolve-view.ts";
|
|
9
9
|
import { type DataTableFeatures } from "./table-features.ts";
|
|
@@ -36,18 +36,18 @@ export type DataTableToolbarProps = Readonly<{
|
|
|
36
36
|
/** Layout slot above the table for search, filters and actions. */
|
|
37
37
|
declare const Toolbar: ({ children, className, }: DataTableToolbarProps) => ReactNode;
|
|
38
38
|
type TableBoundPagination = "pageIndex" | "pageCount" | "pageSize" | "pageSizes" | "onPageIndexChange" | "onPageSizeChange";
|
|
39
|
-
export type DataTablePaginationProps = Omit<PaginationRootProps, TableBoundPagination
|
|
40
|
-
children?: undefined;
|
|
41
|
-
}>) | (Readonly<{
|
|
42
|
-
/** The `Pagination` parts, such as `Pagination.PageSize`, `Pagination.Index` and `Pagination.Controls`, in place of the ready-made pager. */
|
|
43
|
-
children: ReactNode;
|
|
44
|
-
}> & Readonly<Partial<Record<keyof PaginationContentProps, undefined>>>));
|
|
39
|
+
export type DataTablePaginationProps = Omit<PaginationRootProps, TableBoundPagination>;
|
|
45
40
|
/**
|
|
46
|
-
* The
|
|
47
|
-
* `manualPagination` + server `rowCount`)
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
41
|
+
* The `Pagination.Root` driven by the instance's pagination API (built with
|
|
42
|
+
* `manualPagination` + server `rowCount`), holding the `Pagination` parts it is
|
|
43
|
+
* given. The page sizes come from the table's `meta.pageSizeOptions`, and
|
|
44
|
+
* picking one returns to the first page.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <DataTable.Pagination>
|
|
48
|
+
* <Pagination.Index label={page => `Page ${page.pageIndex + 1} of ${page.pageCount}`} />
|
|
49
|
+
* <Pagination.Controls>…</Pagination.Controls>
|
|
50
|
+
* </DataTable.Pagination>
|
|
51
51
|
*/
|
|
52
52
|
declare const DataTablePagination: (props: DataTablePaginationProps) => ReactNode;
|
|
53
53
|
type DataTableParts = Readonly<{
|
|
@@ -66,6 +66,7 @@ type DataTableParts = Readonly<{
|
|
|
66
66
|
HeaderRow: typeof HeaderRow;
|
|
67
67
|
HeaderCell: typeof HeaderCell;
|
|
68
68
|
SortButton: typeof SortButton;
|
|
69
|
+
SortIcon: typeof SortIcon;
|
|
69
70
|
Body: typeof Body;
|
|
70
71
|
Row: typeof Row;
|
|
71
72
|
Cell: typeof Cell;
|
|
@@ -98,19 +99,13 @@ type DataTableParts = Readonly<{
|
|
|
98
99
|
* sortAscendingIcon={<ArrowUpwardIcon />}
|
|
99
100
|
* sortDescendingIcon={<ArrowDownwardIcon />}
|
|
100
101
|
* />
|
|
101
|
-
* <DataTable.Pagination
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* firstIcon={<FirstPageIcon />}
|
|
109
|
-
* previousIcon={<ChevronLeftIcon />}
|
|
110
|
-
* nextIcon={<ChevronRightIcon />}
|
|
111
|
-
* lastIcon={<LastPageIcon />}
|
|
112
|
-
* checkIcon={<CheckIcon />}
|
|
113
|
-
* />
|
|
102
|
+
* <DataTable.Pagination>
|
|
103
|
+
* <Pagination.Index label={page => `Page ${page.pageIndex + 1} of ${page.pageCount}`} />
|
|
104
|
+
* <Pagination.Controls>
|
|
105
|
+
* <Pagination.Previous render={<IconButton label="Previous page" variant="tertiary"><ChevronLeftIcon /></IconButton>} />
|
|
106
|
+
* <Pagination.Next render={<IconButton label="Next page" variant="tertiary"><ChevronRightIcon /></IconButton>} />
|
|
107
|
+
* </Pagination.Controls>
|
|
108
|
+
* </DataTable.Pagination>
|
|
114
109
|
* </DataTable.Root>
|
|
115
110
|
*/
|
|
116
111
|
export declare const DataTable: DataTableParts;
|