@calcifer-design/ui 0.8.0 → 0.9.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/components/Alert/Alert.module.js +5 -5
- package/dist/components/Alert/Alert_module.css +14 -14
- package/dist/components/Avatar/Avatar.module.js +3 -3
- package/dist/components/Avatar/Avatar_module.css +15 -15
- package/dist/components/AvatarGroup/AvatarGroup.module.js +4 -4
- package/dist/components/AvatarGroup/AvatarGroup_module.css +10 -10
- package/dist/components/Breadcrumb/Breadcrumb.module.js +6 -6
- package/dist/components/Breadcrumb/Breadcrumb_module.css +7 -7
- package/dist/components/Button/Button.module.js +6 -6
- package/dist/components/Button/Button_module.css +32 -32
- package/dist/components/Card/Card.module.js +5 -5
- package/dist/components/Card/Card_module.css +7 -7
- package/dist/components/CardList/CardList.module.js +3 -3
- package/dist/components/CardList/CardList_module.css +3 -3
- package/dist/components/Checkbox/Checkbox.module.js +2 -2
- package/dist/components/Checkbox/Checkbox_module.css +3 -3
- package/dist/components/ChoiceCard/ChoiceCard.module.js +8 -8
- package/dist/components/ChoiceCard/ChoiceCard_module.css +25 -25
- package/dist/components/Collapsible/Collapsible.module.js +6 -6
- package/dist/components/Collapsible/Collapsible_module.css +11 -11
- package/dist/components/DataGrid/DataGrid.d.ts +1 -1
- package/dist/components/DataGrid/DataGrid.js +149 -64
- package/dist/components/DataGrid/DataGrid.module.js +45 -32
- package/dist/components/DataGrid/DataGrid_module.css +202 -70
- package/dist/components/DataGrid/GridCardHeader.d.ts +40 -4
- package/dist/components/DataGrid/GridCardHeader.js +79 -11
- package/dist/components/DataGrid/GridChoiceFilter.d.ts +21 -0
- package/dist/components/DataGrid/GridChoiceFilter.js +157 -0
- package/dist/components/DataGrid/GridFilterRow.d.ts +22 -0
- package/dist/components/DataGrid/GridFilterRow.js +66 -0
- package/dist/components/DataGrid/GridHeaderCell.d.ts +5 -2
- package/dist/components/DataGrid/GridHeaderCell.js +4 -3
- package/dist/components/DataGrid/GridHeaderRow.d.ts +3 -1
- package/dist/components/DataGrid/GridHeaderRow.js +2 -1
- package/dist/components/DataGrid/GridRow.d.ts +8 -4
- package/dist/components/DataGrid/GridRow.js +4 -4
- package/dist/components/DataGrid/GridSearch.d.ts +19 -0
- package/dist/components/DataGrid/GridSearch.js +32 -0
- package/dist/components/DataGrid/GridStateRows.d.ts +36 -9
- package/dist/components/DataGrid/GridStateRows.js +34 -18
- package/dist/components/DataGrid/GridTextFilter.d.ts +14 -0
- package/dist/components/DataGrid/GridTextFilter.js +21 -0
- package/dist/components/DataGrid/columns.d.ts +31 -8
- package/dist/components/DataGrid/labels.d.ts +24 -0
- package/dist/components/DataGrid/labels.js +14 -0
- package/dist/components/DataGrid/query.d.ts +40 -0
- package/dist/components/DataGrid/query.js +128 -0
- package/dist/components/DataGrid/types.d.ts +52 -7
- package/dist/components/DataGrid/useDebouncedDraft.d.ts +20 -0
- package/dist/components/DataGrid/useDebouncedDraft.js +71 -0
- package/dist/components/DataGrid/useGridEntries.d.ts +3 -2
- package/dist/components/DataGrid/useGridKeyboard.d.ts +17 -7
- package/dist/components/DataGrid/useGridKeyboard.js +18 -8
- package/dist/components/DataGrid/useGridMetrics.d.ts +4 -1
- package/dist/components/DataGrid/useGridMetrics.js +4 -0
- package/dist/components/DataGrid/useGridQuery.d.ts +48 -0
- package/dist/components/DataGrid/useGridQuery.js +71 -0
- package/dist/components/DataTable/DataTable.module.js +9 -9
- package/dist/components/DataTable/DataTable_module.css +19 -19
- package/dist/components/DatePicker/DatePicker.module.js +10 -10
- package/dist/components/DatePicker/DatePicker_module.css +18 -18
- package/dist/components/Descriptions/Descriptions.module.js +4 -4
- package/dist/components/Descriptions/Descriptions_module.css +8 -8
- package/dist/components/Dialog/Dialog.module.js +8 -8
- package/dist/components/Dialog/Dialog_module.css +15 -15
- package/dist/components/EmptyState/EmptyState.module.js +5 -5
- package/dist/components/EmptyState/EmptyState_module.css +10 -10
- package/dist/components/ErrorBoundary/ErrorBoundary.module.js +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary_module.css +1 -1
- package/dist/components/Field/PickerField.module.js +4 -4
- package/dist/components/Field/PickerField_module.css +7 -7
- package/dist/components/FilterBar/FilterBar.module.js +9 -9
- package/dist/components/FilterBar/FilterBar_module.css +13 -13
- package/dist/components/Form/Form.module.js +1 -1
- package/dist/components/Form/Form_module.css +1 -1
- package/dist/components/IconButton/IconButton.d.ts +12 -1
- package/dist/components/IconButton/IconButton.js +19 -9
- package/dist/components/IconButton/IconButton.module.js +3 -2
- package/dist/components/IconButton/IconButton_module.css +68 -14
- package/dist/components/Menu/Menu.module.js +2 -2
- package/dist/components/Menu/Menu_module.css +4 -4
- package/dist/components/NavMenu/NavMenu.module.js +6 -6
- package/dist/components/NavMenu/NavMenu_module.css +12 -12
- package/dist/components/PageHeading/PageHeading.module.js +3 -3
- package/dist/components/PageHeading/PageHeading_module.css +8 -8
- package/dist/components/PageShell/PageShell.module.js +5 -5
- package/dist/components/PageShell/PageShell_module.css +9 -9
- package/dist/components/Popover/Popover.module.js +2 -2
- package/dist/components/Popover/Popover_module.css +2 -2
- package/dist/components/ProgressBar/ProgressBar.module.js +8 -8
- package/dist/components/ProgressBar/ProgressBar_module.css +19 -19
- package/dist/components/RadioGroup/RadioGroup.module.js +2 -2
- package/dist/components/RadioGroup/RadioGroup_module.css +2 -2
- package/dist/components/SearchField/SearchField.module.js +4 -4
- package/dist/components/SearchField/SearchField_module.css +7 -7
- package/dist/components/Segmented/Segmented.module.js +4 -4
- package/dist/components/Segmented/Segmented_module.css +13 -13
- package/dist/components/Select/Select.module.js +5 -5
- package/dist/components/Select/Select_module.css +11 -11
- package/dist/components/Skeleton/Skeleton.module.js +3 -3
- package/dist/components/Skeleton/Skeleton_module.css +7 -7
- package/dist/components/SkipLink/SkipLink.module.js +1 -1
- package/dist/components/SkipLink/SkipLink_module.css +2 -2
- package/dist/components/Spinner/Spinner.module.js +3 -3
- package/dist/components/Spinner/Spinner_module.css +7 -7
- package/dist/components/StatusDot/StatusDot.module.js +5 -5
- package/dist/components/StatusDot/StatusDot_module.css +11 -11
- package/dist/components/Steps/Steps.module.js +6 -6
- package/dist/components/Steps/Steps_module.css +19 -19
- package/dist/components/Switch/Switch.module.js +2 -2
- package/dist/components/Switch/Switch_module.css +5 -5
- package/dist/components/TabBar/TabBar.module.js +7 -7
- package/dist/components/TabBar/TabBar_module.css +13 -13
- package/dist/components/Tabs/Tabs.module.js +4 -4
- package/dist/components/Tabs/Tabs_module.css +6 -6
- package/dist/components/Tag/Tag.module.js +1 -1
- package/dist/components/Tag/Tag_module.css +2 -2
- package/dist/components/TextArea/TextArea.module.js +1 -1
- package/dist/components/TextArea/TextArea_module.css +3 -3
- package/dist/components/ThemeScope/ThemeScope.module.js +2 -2
- package/dist/components/ThemeScope/ThemeScope_module.css +2 -2
- package/dist/components/Timeline/Timeline.module.js +8 -8
- package/dist/components/Timeline/Timeline_module.css +13 -13
- package/dist/components/ToastRegion/ToastRegion.module.js +6 -6
- package/dist/components/ToastRegion/ToastRegion_module.css +15 -15
- package/dist/components/ToggleChip/ToggleChip.module.js +5 -5
- package/dist/components/ToggleChip/ToggleChip_module.css +14 -14
- package/dist/components/Toolbar/Toolbar.module.js +3 -3
- package/dist/components/Toolbar/Toolbar_module.css +5 -5
- package/dist/components/Tree/Tree.module.js +8 -8
- package/dist/components/Tree/Tree_module.css +20 -20
- package/dist/components/TreeSelect/TreeSelect.module.js +3 -3
- package/dist/components/TreeSelect/TreeSelect_module.css +4 -4
- package/dist/components/Upload/Upload.module.js +8 -8
- package/dist/components/Upload/Upload_module.css +16 -16
- package/dist/components/ViewField/ViewField.module.js +2 -2
- package/dist/components/ViewField/ViewField_module.css +3 -3
- package/dist/icons/FilterIcon.d.ts +6 -0
- package/dist/icons/FilterIcon.js +17 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/styles/a11y.module.js +1 -1
- package/dist/styles/a11y_module.css +1 -1
- package/dist/styles/closeCircle.module.js +1 -1
- package/dist/styles/closeCircle_module.css +2 -2
- package/dist/styles/field.module.js +14 -14
- package/dist/styles/field_module.css +33 -33
- package/dist/styles/pair.module.js +2 -2
- package/dist/styles/pair_module.css +3 -3
- package/dist/styles/popup.module.js +5 -5
- package/dist/styles/popup_module.css +17 -17
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-card-sKuGs {
|
|
2
2
|
background: var(--color-surface-raised);
|
|
3
3
|
border: 1px solid var(--color-card-border);
|
|
4
4
|
border-radius: var(--radius-popup);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.ui0-
|
|
12
|
+
.ui0-9-0-header-FnSmG {
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
align-items: center;
|
|
15
15
|
gap: var(--space-3);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.ui0-
|
|
21
|
+
.ui0-9-0-heading-cO1_Q {
|
|
22
22
|
white-space: nowrap;
|
|
23
23
|
font-size: var(--text-md);
|
|
24
24
|
font-family: var(--font-display);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
margin: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.ui0-
|
|
32
|
+
.ui0-9-0-cluster-FC5NS {
|
|
33
33
|
justify-content: flex-end;
|
|
34
34
|
align-items: center;
|
|
35
35
|
gap: var(--space-2);
|
|
@@ -38,43 +38,48 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.ui0-
|
|
41
|
+
.ui0-9-0-actions-_1Hpt {
|
|
42
42
|
align-items: center;
|
|
43
43
|
gap: var(--space-2);
|
|
44
44
|
flex-wrap: wrap;
|
|
45
45
|
display: flex;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.ui0-
|
|
48
|
+
.ui0-9-0-search-OhcyT {
|
|
49
|
+
inline-size: calc(var(--space-10) * 2);
|
|
50
|
+
max-inline-size: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ui0-9-0-scroll-FzUQa {
|
|
49
54
|
max-height: calc(100dvh - var(--space-10) * 2);
|
|
50
55
|
overflow: auto;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
.ui0-
|
|
58
|
+
.ui0-9-0-fill-gnSOL {
|
|
54
59
|
height: 100%;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
.ui0-
|
|
62
|
+
.ui0-9-0-scrollFill-ouKju {
|
|
58
63
|
flex: 1 1 0;
|
|
59
64
|
min-height: 0;
|
|
60
65
|
max-height: none;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
|
-
.ui0-
|
|
68
|
+
.ui0-9-0-table-sZLxO {
|
|
64
69
|
border-collapse: collapse;
|
|
65
70
|
width: 100%;
|
|
66
71
|
font-size: var(--text-sm);
|
|
67
72
|
font-variant-numeric: tabular-nums;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
.ui0-
|
|
75
|
+
.ui0-9-0-head-z5Rnq {
|
|
71
76
|
z-index: 1;
|
|
72
77
|
background: var(--color-surface-1);
|
|
73
78
|
position: sticky;
|
|
74
79
|
inset-block-start: 0;
|
|
75
80
|
}
|
|
76
81
|
|
|
77
|
-
.ui0-
|
|
82
|
+
.ui0-9-0-headerCell-CgaE0 {
|
|
78
83
|
padding: var(--space-2) var(--space-3);
|
|
79
84
|
text-align: start;
|
|
80
85
|
font-size: var(--text-sm);
|
|
@@ -84,7 +89,7 @@
|
|
|
84
89
|
position: relative;
|
|
85
90
|
}
|
|
86
91
|
|
|
87
|
-
.ui0-
|
|
92
|
+
.ui0-9-0-headerCell-CgaE0:before, .ui0-9-0-headerCell-CgaE0:after {
|
|
88
93
|
content: "";
|
|
89
94
|
border-block-start: 1px solid var(--color-border);
|
|
90
95
|
pointer-events: none;
|
|
@@ -92,79 +97,162 @@
|
|
|
92
97
|
inset-inline: 0;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
|
-
.ui0-
|
|
100
|
+
.ui0-9-0-headerCell-CgaE0:before {
|
|
96
101
|
inset-block-start: 0;
|
|
97
102
|
}
|
|
98
103
|
|
|
99
|
-
.ui0-
|
|
104
|
+
.ui0-9-0-headerCell-CgaE0:after {
|
|
100
105
|
inset-block-end: 0;
|
|
101
106
|
}
|
|
102
107
|
|
|
103
|
-
.ui0-
|
|
108
|
+
.ui0-9-0-headerCell-CgaE0[data-sortable] {
|
|
104
109
|
cursor: pointer;
|
|
105
110
|
-webkit-user-select: none;
|
|
106
111
|
user-select: none;
|
|
107
112
|
}
|
|
108
113
|
|
|
109
|
-
.ui0-
|
|
114
|
+
.ui0-9-0-sortIcon-aw3qW {
|
|
110
115
|
margin-inline-start: var(--space-1);
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
.ui0-
|
|
118
|
+
.ui0-9-0-sortIcon-aw3qW:after {
|
|
114
119
|
content: "↕";
|
|
115
120
|
color: var(--color-text-subtle);
|
|
116
121
|
}
|
|
117
122
|
|
|
118
|
-
.ui0-
|
|
123
|
+
.ui0-9-0-sortIcon-aw3qW[data-direction="asc"]:after {
|
|
119
124
|
content: "↑";
|
|
120
125
|
color: var(--color-link);
|
|
121
126
|
}
|
|
122
127
|
|
|
123
|
-
.ui0-
|
|
128
|
+
.ui0-9-0-sortIcon-aw3qW[data-direction="desc"]:after {
|
|
124
129
|
content: "↓";
|
|
125
130
|
color: var(--color-link);
|
|
126
131
|
}
|
|
127
132
|
|
|
128
|
-
.ui0-
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
.ui0-9-0-filterCell-mCVBO {
|
|
134
|
+
padding: var(--space-2) var(--space-3);
|
|
135
|
+
position: relative;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ui0-9-0-filterCell-mCVBO:after {
|
|
139
|
+
content: "";
|
|
140
|
+
border-block-end: 1px solid var(--color-border);
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
position: absolute;
|
|
143
|
+
inset-block-end: 0;
|
|
144
|
+
inset-inline: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ui0-9-0-choiceFilter-PSMWn {
|
|
148
|
+
inline-size: 0;
|
|
149
|
+
min-inline-size: 100%;
|
|
150
|
+
position: relative;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ui0-9-0-choiceFilter-PSMWn > .ui0-9-0-choiceInput-Mpj81 {
|
|
154
|
+
padding-inline-end: var(--space-6);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ui0-9-0-choiceTrigger-Wg0R5 {
|
|
158
|
+
width: var(--space-6);
|
|
159
|
+
color: var(--color-text-muted);
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
transition-property: transform;
|
|
131
162
|
transition-duration: var(--motion-duration-1);
|
|
132
163
|
transition-timing-function: var(--motion-ease);
|
|
164
|
+
background: none;
|
|
165
|
+
border: 0;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
align-items: center;
|
|
168
|
+
padding: 0;
|
|
169
|
+
display: inline-flex;
|
|
170
|
+
position: absolute;
|
|
171
|
+
inset-block: 0;
|
|
172
|
+
inset-inline-end: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.ui0-9-0-choiceTrigger-Wg0R5[data-popup-open] {
|
|
176
|
+
transform: rotate(180deg);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ui0-9-0-choiceTrigger-Wg0R5 > svg {
|
|
180
|
+
width: 1rem;
|
|
181
|
+
height: 1rem;
|
|
133
182
|
}
|
|
134
183
|
|
|
135
|
-
.ui0-
|
|
136
|
-
|
|
184
|
+
.ui0-9-0-choiceOption-k2H9Y {
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: var(--space-3);
|
|
188
|
+
min-height: var(--size-touch);
|
|
189
|
+
padding-inline: var(--space-3);
|
|
190
|
+
border-radius: var(--radius-md);
|
|
191
|
+
color: var(--color-text);
|
|
192
|
+
font-size: var(--text-md);
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
-webkit-user-select: none;
|
|
195
|
+
user-select: none;
|
|
196
|
+
display: flex;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ui0-9-0-choiceOption-k2H9Y[data-highlighted] {
|
|
200
|
+
background: var(--color-surface-2);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ui0-9-0-choiceIndicator-vJ8iD {
|
|
204
|
+
color: var(--color-accent);
|
|
205
|
+
flex: none;
|
|
206
|
+
display: inline-flex;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ui0-9-0-choiceIndicator-vJ8iD > svg {
|
|
210
|
+
width: 1rem;
|
|
211
|
+
height: 1rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ui0-9-0-choiceEmpty-lUwuu:not(:empty) {
|
|
215
|
+
padding: var(--space-2) var(--space-3);
|
|
216
|
+
color: var(--color-text-muted);
|
|
217
|
+
font-size: var(--text-sm);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ui0-9-0-row-OLZkz {
|
|
221
|
+
transition-property: background-color;
|
|
222
|
+
transition-duration: var(--motion-duration-1);
|
|
223
|
+
transition-timing-function: var(--motion-ease);
|
|
137
224
|
}
|
|
138
225
|
|
|
139
226
|
@media (hover: hover) {
|
|
140
|
-
.ui0-
|
|
227
|
+
.ui0-9-0-row-OLZkz:hover {
|
|
141
228
|
background: var(--color-surface-2);
|
|
142
229
|
}
|
|
143
230
|
}
|
|
144
231
|
|
|
145
|
-
.ui0-
|
|
232
|
+
.ui0-9-0-row-OLZkz[data-clickable] {
|
|
146
233
|
cursor: pointer;
|
|
147
234
|
}
|
|
148
235
|
|
|
149
|
-
.ui0-
|
|
150
|
-
background: var(--color-
|
|
236
|
+
.ui0-9-0-row-OLZkz[data-highlighted], .ui0-9-0-row-OLZkz[aria-selected="true"] {
|
|
237
|
+
background: var(--color-selected-soft);
|
|
151
238
|
}
|
|
152
239
|
|
|
153
240
|
@media (hover: hover) {
|
|
154
|
-
.ui0-
|
|
155
|
-
background: var(--color-
|
|
241
|
+
.ui0-9-0-row-OLZkz[data-highlighted]:hover, .ui0-9-0-row-OLZkz[aria-selected="true"]:hover {
|
|
242
|
+
background-color: var(--color-surface-2);
|
|
243
|
+
background-image: linear-gradient(var(--color-selected-soft), var(--color-selected-soft));
|
|
156
244
|
}
|
|
157
245
|
}
|
|
158
246
|
|
|
159
247
|
@media (forced-colors: active) {
|
|
160
|
-
.ui0-
|
|
248
|
+
.ui0-9-0-row-OLZkz[data-highlighted], .ui0-9-0-row-OLZkz[aria-selected="true"], .ui0-9-0-choiceOption-k2H9Y[data-highlighted] {
|
|
161
249
|
outline-style: solid;
|
|
162
250
|
outline-width: var(--focus-ring-width);
|
|
163
251
|
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
164
252
|
}
|
|
165
253
|
}
|
|
166
254
|
|
|
167
|
-
.ui0-
|
|
255
|
+
.ui0-9-0-cell-TYnuY {
|
|
168
256
|
min-width: calc(var(--space-3) * 5);
|
|
169
257
|
padding: var(--space-3);
|
|
170
258
|
vertical-align: middle;
|
|
@@ -172,66 +260,76 @@
|
|
|
172
260
|
font-family: var(--font-body);
|
|
173
261
|
font-weight: var(--font-weight-body);
|
|
174
262
|
overflow-wrap: anywhere;
|
|
263
|
+
box-shadow: inset 0 -1px 0 var(--color-border);
|
|
175
264
|
}
|
|
176
265
|
|
|
177
|
-
.ui0-
|
|
266
|
+
.ui0-9-0-headerCell-CgaE0:first-child, .ui0-9-0-filterCell-mCVBO:first-child, .ui0-9-0-cell-TYnuY:first-child {
|
|
178
267
|
padding-inline-start: var(--space-5);
|
|
179
268
|
}
|
|
180
269
|
|
|
181
|
-
.ui0-
|
|
270
|
+
.ui0-9-0-headerCell-CgaE0:last-child, .ui0-9-0-filterCell-mCVBO:last-child, .ui0-9-0-cell-TYnuY:last-child {
|
|
182
271
|
padding-inline-end: var(--space-5);
|
|
183
272
|
}
|
|
184
273
|
|
|
185
|
-
.ui0-
|
|
274
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-pinnedHeader-b7R5T, .ui0-9-0-filterCell-mCVBO.ui0-9-0-pinnedFilter-XpjIz, .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ {
|
|
186
275
|
text-align: center;
|
|
187
276
|
padding-inline: 0;
|
|
188
277
|
position: sticky;
|
|
189
278
|
}
|
|
190
279
|
|
|
191
|
-
.ui0-
|
|
280
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-pinnedHeader-b7R5T, .ui0-9-0-filterCell-mCVBO.ui0-9-0-pinnedFilter-XpjIz {
|
|
192
281
|
z-index: 1;
|
|
193
282
|
background: var(--color-surface-1);
|
|
194
283
|
}
|
|
195
284
|
|
|
196
|
-
.ui0-
|
|
285
|
+
.ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ {
|
|
197
286
|
background-color: var(--color-surface-raised);
|
|
198
287
|
}
|
|
199
288
|
|
|
200
289
|
@media (hover: hover) {
|
|
201
|
-
.ui0-
|
|
290
|
+
.ui0-9-0-row-OLZkz:hover .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ {
|
|
202
291
|
background-image: linear-gradient(var(--color-surface-2), var(--color-surface-2));
|
|
203
292
|
}
|
|
204
293
|
}
|
|
205
294
|
|
|
206
|
-
.ui0-
|
|
207
|
-
background-image: linear-gradient(var(--color-
|
|
295
|
+
.ui0-9-0-row-OLZkz[data-highlighted] .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ, .ui0-9-0-row-OLZkz[aria-selected="true"] .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ {
|
|
296
|
+
background-image: linear-gradient(var(--color-selected-soft), var(--color-selected-soft));
|
|
208
297
|
}
|
|
209
298
|
|
|
210
299
|
@media (hover: hover) {
|
|
211
|
-
.ui0-
|
|
212
|
-
background-image: linear-gradient(var(--color-
|
|
300
|
+
.ui0-9-0-row-OLZkz[data-highlighted]:hover .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ, .ui0-9-0-row-OLZkz[aria-selected="true"]:hover .ui0-9-0-cell-TYnuY.ui0-9-0-pinnedCell-hktdQ {
|
|
301
|
+
background-image: linear-gradient(var(--color-selected-soft), var(--color-selected-soft)),
|
|
302
|
+
linear-gradient(var(--color-surface-2), var(--color-surface-2));
|
|
213
303
|
}
|
|
214
304
|
}
|
|
215
305
|
|
|
216
|
-
.ui0-
|
|
306
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-selectHeader-ysJFY, .ui0-9-0-cell-TYnuY.ui0-9-0-selectCell-WkrzU {
|
|
217
307
|
width: calc(var(--space-2) * 5);
|
|
218
308
|
min-width: calc(var(--space-2) * 5);
|
|
219
309
|
max-width: calc(var(--space-2) * 5);
|
|
220
310
|
inset-inline-start: 0;
|
|
221
311
|
}
|
|
222
312
|
|
|
223
|
-
.ui0-
|
|
313
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-expandHeader-xZuaw, .ui0-9-0-cell-TYnuY.ui0-9-0-expandCell-nB87K {
|
|
224
314
|
width: calc(var(--space-5) + var(--space-1));
|
|
225
315
|
min-width: calc(var(--space-5) + var(--space-1));
|
|
226
316
|
max-width: calc(var(--space-5) + var(--space-1));
|
|
227
317
|
inset-inline-start: 0;
|
|
228
318
|
}
|
|
229
319
|
|
|
230
|
-
.ui0-
|
|
320
|
+
.ui0-9-0-selectHeader-ysJFY + .ui0-9-0-expandHeader-xZuaw, .ui0-9-0-selectCell-WkrzU + .ui0-9-0-expandCell-nB87K {
|
|
321
|
+
inset-inline-start: calc(var(--space-2) * 5);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ui0-9-0-filterCell-mCVBO.ui0-9-0-leadingFilter-eWybP {
|
|
325
|
+
inset-inline-start: 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ui0-9-0-leadingFilter-eWybP + .ui0-9-0-leadingFilter-eWybP {
|
|
231
329
|
inset-inline-start: calc(var(--space-2) * 5);
|
|
232
330
|
}
|
|
233
331
|
|
|
234
|
-
.ui0-
|
|
332
|
+
.ui0-9-0-expandButton-gnwRu {
|
|
235
333
|
width: var(--space-5);
|
|
236
334
|
height: var(--space-5);
|
|
237
335
|
border-radius: var(--radius-sm);
|
|
@@ -245,12 +343,12 @@
|
|
|
245
343
|
display: inline-flex;
|
|
246
344
|
}
|
|
247
345
|
|
|
248
|
-
.ui0-
|
|
346
|
+
.ui0-9-0-expandButton-gnwRu:focus-visible {
|
|
249
347
|
outline: var(--focus-ring-width) solid var(--color-focus);
|
|
250
348
|
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
251
349
|
}
|
|
252
350
|
|
|
253
|
-
.ui0-
|
|
351
|
+
.ui0-9-0-expandButton-gnwRu svg {
|
|
254
352
|
width: var(--space-4);
|
|
255
353
|
height: var(--space-4);
|
|
256
354
|
transition-property: rotate;
|
|
@@ -258,32 +356,32 @@
|
|
|
258
356
|
transition-timing-function: var(--motion-ease);
|
|
259
357
|
}
|
|
260
358
|
|
|
261
|
-
.ui0-
|
|
359
|
+
.ui0-9-0-expandButton-gnwRu[aria-expanded="true"] svg {
|
|
262
360
|
rotate: 90deg;
|
|
263
361
|
}
|
|
264
362
|
|
|
265
|
-
.ui0-
|
|
363
|
+
.ui0-9-0-table-sZLxO[data-rtl] .ui0-9-0-expandButton-gnwRu svg {
|
|
266
364
|
scale: -1 1;
|
|
267
365
|
}
|
|
268
366
|
|
|
269
|
-
.ui0-
|
|
367
|
+
.ui0-9-0-table-sZLxO[data-rtl] .ui0-9-0-expandButton-gnwRu[aria-expanded="true"] svg {
|
|
270
368
|
rotate: -90deg;
|
|
271
369
|
}
|
|
272
370
|
|
|
273
371
|
@media (prefers-reduced-motion: reduce) {
|
|
274
|
-
.ui0-
|
|
372
|
+
.ui0-9-0-expandButton-gnwRu svg {
|
|
275
373
|
transition: none;
|
|
276
374
|
}
|
|
277
375
|
}
|
|
278
376
|
|
|
279
|
-
.ui0-
|
|
377
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-actionsHeader-DXNJS, .ui0-9-0-filterCell-mCVBO.ui0-9-0-actionsFilter-sxbdF, .ui0-9-0-cell-TYnuY.ui0-9-0-actionsCell-XmWDR {
|
|
280
378
|
width: calc(var(--space-5) * 3);
|
|
281
379
|
min-width: calc(var(--space-5) * 3);
|
|
282
380
|
max-width: calc(var(--space-5) * 3);
|
|
283
381
|
inset-inline-end: 0;
|
|
284
382
|
}
|
|
285
383
|
|
|
286
|
-
.ui0-
|
|
384
|
+
.ui0-9-0-cell-TYnuY.ui0-9-0-actionsCell-XmWDR:before {
|
|
287
385
|
content: "";
|
|
288
386
|
border-inline-start: 1px solid var(--color-border);
|
|
289
387
|
pointer-events: none;
|
|
@@ -292,29 +390,34 @@
|
|
|
292
390
|
inset-inline-start: 0;
|
|
293
391
|
}
|
|
294
392
|
|
|
295
|
-
.ui0-
|
|
393
|
+
.ui0-9-0-headerCell-CgaE0.ui0-9-0-actionsHeader-DXNJS:after {
|
|
296
394
|
border-inline-start: 1px solid var(--color-border);
|
|
297
395
|
border-block-end: 1px solid var(--color-border);
|
|
298
396
|
inset-block-start: 0;
|
|
299
397
|
}
|
|
300
398
|
|
|
301
|
-
.ui0-
|
|
302
|
-
border-
|
|
399
|
+
.ui0-9-0-filterCell-mCVBO.ui0-9-0-actionsFilter-sxbdF:after {
|
|
400
|
+
border-inline-start: 1px solid var(--color-border);
|
|
401
|
+
inset-block-start: 0;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.ui0-9-0-detailRow-WsOl1 {
|
|
405
|
+
border-block-end: 1px solid var(--color-border);
|
|
303
406
|
}
|
|
304
407
|
|
|
305
|
-
.ui0-
|
|
408
|
+
.ui0-9-0-detailCell-y4qyE {
|
|
306
409
|
padding: var(--space-3) var(--space-4);
|
|
307
410
|
background: var(--color-surface-1);
|
|
308
411
|
color: var(--color-text);
|
|
309
412
|
}
|
|
310
413
|
|
|
311
|
-
.ui0-
|
|
312
|
-
padding: var(--space-3)
|
|
414
|
+
.ui0-9-0-errorCell-m9Gxy {
|
|
415
|
+
padding: var(--space-3) 0;
|
|
313
416
|
text-align: center;
|
|
314
417
|
color: var(--color-text);
|
|
315
418
|
}
|
|
316
419
|
|
|
317
|
-
.ui0-
|
|
420
|
+
.ui0-9-0-errorContent-_tmon {
|
|
318
421
|
justify-content: center;
|
|
319
422
|
align-items: center;
|
|
320
423
|
gap: var(--space-3);
|
|
@@ -322,41 +425,70 @@
|
|
|
322
425
|
display: flex;
|
|
323
426
|
}
|
|
324
427
|
|
|
325
|
-
.ui0-
|
|
428
|
+
.ui0-9-0-headerCell-CgaE0:focus-visible, .ui0-9-0-filterCell-mCVBO:focus-visible, .ui0-9-0-cell-TYnuY:focus-visible, .ui0-9-0-detailCell-y4qyE:focus-visible, .ui0-9-0-errorCell-m9Gxy:focus-visible {
|
|
326
429
|
outline: var(--focus-ring-width) solid var(--color-focus);
|
|
327
430
|
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
328
431
|
}
|
|
329
432
|
|
|
330
|
-
.ui0-
|
|
433
|
+
.ui0-9-0-row-OLZkz:last-child .ui0-9-0-cell-TYnuY {
|
|
434
|
+
box-shadow: none;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@media (forced-colors: active) {
|
|
438
|
+
.ui0-9-0-row-OLZkz {
|
|
439
|
+
border-block-end: 1px solid var(--color-border);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ui0-9-0-row-OLZkz:last-child {
|
|
443
|
+
border-block-end: 0;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ui0-9-0-row-OLZkz[data-highlighted] .ui0-9-0-cell-TYnuY, .ui0-9-0-row-OLZkz[aria-selected="true"] .ui0-9-0-cell-TYnuY {
|
|
448
|
+
color: var(--color-selected-soft-text);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.ui0-9-0-table-sZLxO[data-density="compact"] .ui0-9-0-cell-TYnuY {
|
|
331
452
|
padding-block: var(--space-2);
|
|
332
453
|
}
|
|
333
454
|
|
|
334
|
-
.ui0-
|
|
455
|
+
.ui0-9-0-table-sZLxO[data-density="compact"] .ui0-9-0-cell-TYnuY:not(.ui0-9-0-pinnedCell-hktdQ) {
|
|
335
456
|
text-overflow: ellipsis;
|
|
336
457
|
white-space: nowrap;
|
|
337
458
|
max-width: 0;
|
|
338
459
|
overflow: hidden;
|
|
339
460
|
}
|
|
340
461
|
|
|
341
|
-
.ui0-
|
|
342
|
-
padding: var(--space-8)
|
|
462
|
+
.ui0-9-0-stateCell-_44Lv {
|
|
463
|
+
padding: var(--space-8) 0;
|
|
343
464
|
text-align: center;
|
|
344
465
|
color: var(--color-text-muted);
|
|
345
466
|
}
|
|
346
467
|
|
|
347
|
-
.ui0-
|
|
468
|
+
.ui0-9-0-inView-FMUxF {
|
|
469
|
+
max-inline-size: var(--data-grid-view-inline-size, none);
|
|
470
|
+
padding-inline: var(--space-5);
|
|
471
|
+
position: sticky;
|
|
472
|
+
inset-inline-start: 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ui0-9-0-state-WLbKa {
|
|
348
476
|
justify-content: center;
|
|
349
477
|
align-items: center;
|
|
350
478
|
gap: var(--space-3);
|
|
351
479
|
display: flex;
|
|
352
480
|
}
|
|
353
481
|
|
|
354
|
-
.ui0-
|
|
482
|
+
.ui0-9-0-filteredEmpty-MXOmm {
|
|
483
|
+
--empty-state-heading-size: var(--text-lg);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ui0-9-0-spacerCell-IoOYY {
|
|
355
487
|
border: 0;
|
|
356
488
|
padding: 0;
|
|
357
489
|
}
|
|
358
490
|
|
|
359
|
-
.ui0-
|
|
491
|
+
.ui0-9-0-footer-pI1Q7 {
|
|
360
492
|
align-items: center;
|
|
361
493
|
gap: var(--space-3);
|
|
362
494
|
padding: var(--space-2) var(--space-5);
|
|
@@ -366,7 +498,7 @@
|
|
|
366
498
|
display: flex;
|
|
367
499
|
}
|
|
368
500
|
|
|
369
|
-
.ui0-
|
|
501
|
+
.ui0-9-0-rowCount-M_Nba {
|
|
370
502
|
margin-inline-start: auto;
|
|
371
503
|
}
|
|
372
504
|
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { RowData } from '@tanstack/react-table';
|
|
2
|
-
import type
|
|
3
|
-
import type { DataGridProps } from './types.js';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import type { DataGridProps, DataGridQuery } from './types.js';
|
|
4
|
+
export interface GridCardHeaderSearch {
|
|
5
|
+
/** Whether the field shows: the button is pressed while it does. */
|
|
6
|
+
open: boolean;
|
|
7
|
+
/** The search in the query. */
|
|
8
|
+
value: string;
|
|
9
|
+
buttonLabel: string;
|
|
10
|
+
fieldLabel: string;
|
|
11
|
+
clearLabel: string;
|
|
12
|
+
/** The search button: opens the field, or clears the search and closes it. */
|
|
13
|
+
onToggle: () => void;
|
|
14
|
+
/** Escape in the empty field. */
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
onSearchChange: (term: string) => void;
|
|
17
|
+
/** Focus moved into the field. */
|
|
18
|
+
onFieldFocus: () => void;
|
|
19
|
+
}
|
|
4
20
|
export interface GridCardHeaderProps {
|
|
5
21
|
heading: string;
|
|
6
22
|
headingLevel: NonNullable<DataGridProps<RowData>['headingLevel']>;
|
|
@@ -11,6 +27,26 @@ export interface GridCardHeaderProps {
|
|
|
11
27
|
refreshing: boolean;
|
|
12
28
|
toolbarLabel: string;
|
|
13
29
|
refreshLabel: string;
|
|
30
|
+
/** Gives the toolbar its search button, and the field before the toolbar. Left out, neither. */
|
|
31
|
+
search?: GridCardHeaderSearch;
|
|
32
|
+
/** Gives the toolbar its filters button, which calls this. Left out, the button is not drawn. */
|
|
33
|
+
onToggleFilters?: () => void;
|
|
34
|
+
/** Whether the filters are showing: the button is pressed while they are. */
|
|
35
|
+
filtersOpen: boolean;
|
|
36
|
+
filtersLabel: string;
|
|
37
|
+
/** Active filters plus a search: the button's badge. */
|
|
38
|
+
filterCount: number;
|
|
39
|
+
/** Whether the All / Any switch shows, before the filters button. */
|
|
40
|
+
showMatchMode: boolean;
|
|
41
|
+
matchMode: DataGridQuery['matchMode'];
|
|
42
|
+
onMatchModeChange: (matchMode: DataGridQuery['matchMode']) => void;
|
|
43
|
+
matchModeLabel: string;
|
|
44
|
+
matchAllLabel: string;
|
|
45
|
+
matchAnyLabel: string;
|
|
14
46
|
}
|
|
15
|
-
/**
|
|
16
|
-
|
|
47
|
+
/**
|
|
48
|
+
* The card's heading, with the search field while it shows, the toolbar (search, match mode, the
|
|
49
|
+
* filters button, refresh) and the consumer's actions beside it. Opening the search moves focus into
|
|
50
|
+
* its field; Escape there, once it is empty, closes it and returns focus to the search button.
|
|
51
|
+
*/
|
|
52
|
+
export declare function GridCardHeader({ heading, headingLevel, headingId, actions, onRefresh, refreshing, toolbarLabel, refreshLabel, search, onToggleFilters, filtersOpen, filtersLabel, filterCount, showMatchMode, matchMode, onMatchModeChange, matchModeLabel, matchAllLabel, matchAnyLabel, }: GridCardHeaderProps): import("react").JSX.Element;
|