@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-viewport-nOzLZ {
|
|
2
2
|
padding: var(--space-4);
|
|
3
3
|
place-items: center;
|
|
4
4
|
display: grid;
|
|
@@ -6,22 +6,22 @@
|
|
|
6
6
|
inset: 0;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.ui0-
|
|
9
|
+
.ui0-9-0-viewport-nOzLZ[data-variant="sheet"] {
|
|
10
10
|
place-items: end center;
|
|
11
11
|
padding: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.ui0-
|
|
14
|
+
.ui0-9-0-viewport-nOzLZ[data-side="end"] {
|
|
15
15
|
place-items: center end;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ui0-
|
|
18
|
+
.ui0-9-0-header-KgP3n {
|
|
19
19
|
align-items: center;
|
|
20
20
|
gap: var(--space-3);
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.ui0-
|
|
24
|
+
.ui0-9-0-heading-EfBAx {
|
|
25
25
|
min-width: 0;
|
|
26
26
|
color: var(--color-text);
|
|
27
27
|
font-size: var(--dialog-heading-size, var(--text-h3));
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
flex: auto;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
h4.ui0-
|
|
37
|
+
h4.ui0-9-0-heading-EfBAx {
|
|
38
38
|
letter-spacing: var(--dialog-heading-tracking, normal);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.ui0-
|
|
41
|
+
.ui0-9-0-headerEnd-sEInd {
|
|
42
42
|
align-items: center;
|
|
43
43
|
gap: var(--space-2);
|
|
44
44
|
margin-inline-start: auto;
|
|
45
45
|
display: flex;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.ui0-
|
|
48
|
+
.ui0-9-0-handle-z1dbF {
|
|
49
49
|
width: var(--sheet-handle-width, 2.5rem);
|
|
50
50
|
height: var(--sheet-handle-height, .3125rem);
|
|
51
51
|
border-radius: var(--radius-full);
|
|
@@ -54,7 +54,7 @@ h4.ui0-8-0-heading-EfBAx {
|
|
|
54
54
|
align-self: center;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.ui0-
|
|
57
|
+
.ui0-9-0-description-ZV1a4 {
|
|
58
58
|
color: var(--color-text-muted);
|
|
59
59
|
font-family: var(--font-body);
|
|
60
60
|
font-weight: var(--font-weight-body);
|
|
@@ -62,7 +62,7 @@ h4.ui0-8-0-heading-EfBAx {
|
|
|
62
62
|
line-height: var(--leading-prose);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.ui0-
|
|
65
|
+
.ui0-9-0-body-mavCB {
|
|
66
66
|
--dialog-body-ring-room: calc(var(--focus-ring-width) + var(--focus-ring-offset));
|
|
67
67
|
--dialog-body-ring-reach: calc(var(--dialog-body-ring-room) * -1);
|
|
68
68
|
min-height: 0;
|
|
@@ -72,27 +72,27 @@ h4.ui0-8-0-heading-EfBAx {
|
|
|
72
72
|
overflow-y: auto;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.ui0-
|
|
75
|
+
.ui0-9-0-body-mavCB:focus-visible {
|
|
76
76
|
outline-offset: calc(-1 * var(--focus-ring-width));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.ui0-
|
|
79
|
+
.ui0-9-0-footer-CAuV7 {
|
|
80
80
|
justify-content: flex-end;
|
|
81
81
|
gap: var(--space-2);
|
|
82
82
|
flex-wrap: wrap;
|
|
83
83
|
display: flex;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
[data-popup="sheet"] > .ui0-
|
|
86
|
+
[data-popup="sheet"] > .ui0-9-0-header-KgP3n, [data-popup="sheet"] > .ui0-9-0-description-ZV1a4, [data-popup="sheet"] > .ui0-9-0-footer-CAuV7 {
|
|
87
87
|
flex: none;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
[data-popup="sheet"] > .ui0-
|
|
90
|
+
[data-popup="sheet"] > .ui0-9-0-body-mavCB {
|
|
91
91
|
flex: auto;
|
|
92
92
|
min-height: 0;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
[data-popup="sheet"] > .ui0-
|
|
95
|
+
[data-popup="sheet"] > .ui0-9-0-footer-CAuV7 {
|
|
96
96
|
margin-top: auto;
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./EmptyState_module.css";
|
|
2
2
|
const EmptyState_module = {
|
|
3
|
-
root: "ui0-
|
|
4
|
-
illustration: "ui0-
|
|
5
|
-
heading: "ui0-
|
|
6
|
-
body: "ui0-
|
|
7
|
-
actions: "ui0-
|
|
3
|
+
root: "ui0-9-0-root-Gqpml",
|
|
4
|
+
illustration: "ui0-9-0-illustration-gt1N5",
|
|
5
|
+
heading: "ui0-9-0-heading-aF5X5",
|
|
6
|
+
body: "ui0-9-0-body-uj_Dd",
|
|
7
|
+
actions: "ui0-9-0-actions-AwsGn"
|
|
8
8
|
};
|
|
9
9
|
export default EmptyState_module;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-root-Gqpml {
|
|
2
2
|
gap: var(--space-3);
|
|
3
3
|
padding: var(--space-5);
|
|
4
4
|
border-radius: var(--radius-card);
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
position: relative;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.ui0-
|
|
13
|
+
.ui0-9-0-root-Gqpml[data-align="center"] {
|
|
14
14
|
text-align: center;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ui0-
|
|
18
|
+
.ui0-9-0-root-Gqpml[data-align="start"] {
|
|
19
19
|
text-align: start;
|
|
20
20
|
align-items: flex-start;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.ui0-
|
|
23
|
+
.ui0-9-0-root-Gqpml[data-tone="selected"] {
|
|
24
24
|
background: var(--color-selected);
|
|
25
25
|
color: var(--color-selected-text);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.ui0-
|
|
28
|
+
.ui0-9-0-illustration-gt1N5 {
|
|
29
29
|
display: flex;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.ui0-
|
|
32
|
+
.ui0-9-0-heading-aF5X5 {
|
|
33
33
|
font-size: var(--empty-state-heading-size, var(--text-h3));
|
|
34
34
|
font-family: var(--font-display);
|
|
35
35
|
font-weight: var(--font-weight-display);
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
margin: 0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.ui0-
|
|
43
|
+
.ui0-9-0-body-uj_Dd {
|
|
44
44
|
max-width: 28ch;
|
|
45
45
|
font-size: var(--text-md);
|
|
46
46
|
font-family: var(--font-body);
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
line-height: var(--leading-prose);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.ui0-
|
|
51
|
+
.ui0-9-0-root-Gqpml[data-tone="neutral"] .ui0-9-0-body-uj_Dd {
|
|
52
52
|
color: var(--color-text-muted);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.ui0-
|
|
55
|
+
.ui0-9-0-actions-AwsGn {
|
|
56
56
|
gap: var(--space-2);
|
|
57
57
|
margin-top: var(--space-2);
|
|
58
58
|
flex-wrap: wrap;
|
|
59
59
|
display: flex;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.ui0-
|
|
62
|
+
.ui0-9-0-root-Gqpml[data-align="center"] .ui0-9-0-actions-AwsGn {
|
|
63
63
|
justify-content: center;
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./PickerField_module.css";
|
|
2
2
|
const PickerField_module = {
|
|
3
|
-
row: "ui0-
|
|
4
|
-
trigger: "ui0-
|
|
5
|
-
value: "ui0-
|
|
6
|
-
icon: "ui0-
|
|
3
|
+
row: "ui0-9-0-row-nA5dt",
|
|
4
|
+
trigger: "ui0-9-0-trigger-EkNQz",
|
|
5
|
+
value: "ui0-9-0-value-iJ2rA",
|
|
6
|
+
icon: "ui0-9-0-icon-fNz5y"
|
|
7
7
|
};
|
|
8
8
|
export default PickerField_module;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-row-nA5dt {
|
|
2
2
|
align-items: center;
|
|
3
3
|
gap: var(--space-2);
|
|
4
4
|
display: flex;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.ui0-
|
|
7
|
+
.ui0-9-0-trigger-EkNQz {
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
gap: var(--space-3);
|
|
10
10
|
text-align: start;
|
|
@@ -13,28 +13,28 @@
|
|
|
13
13
|
min-width: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.ui0-
|
|
16
|
+
.ui0-9-0-trigger-EkNQz[data-icon-placement="start"] {
|
|
17
17
|
justify-content: flex-start;
|
|
18
18
|
gap: var(--space-2);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.ui0-
|
|
21
|
+
.ui0-9-0-value-iJ2rA {
|
|
22
22
|
white-space: nowrap;
|
|
23
23
|
text-overflow: ellipsis;
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.ui0-
|
|
27
|
+
.ui0-9-0-value-iJ2rA[data-placeholder] {
|
|
28
28
|
color: var(--color-text-muted);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.ui0-
|
|
31
|
+
.ui0-9-0-icon-fNz5y {
|
|
32
32
|
color: var(--color-text-muted);
|
|
33
33
|
flex: none;
|
|
34
34
|
display: inline-flex;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.ui0-
|
|
37
|
+
.ui0-9-0-icon-fNz5y > svg {
|
|
38
38
|
width: 1rem;
|
|
39
39
|
height: 1rem;
|
|
40
40
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./FilterBar_module.css";
|
|
2
2
|
const FilterBar_module = {
|
|
3
|
-
root: "ui0-
|
|
4
|
-
controls: "ui0-
|
|
5
|
-
search: "ui0-
|
|
6
|
-
summary: "ui0-
|
|
7
|
-
count: "ui0-
|
|
8
|
-
chips: "ui0-
|
|
9
|
-
chip: "ui0-
|
|
10
|
-
chipLabel: "ui0-
|
|
11
|
-
remove: "ui0-
|
|
3
|
+
root: "ui0-9-0-root-qnTXQ",
|
|
4
|
+
controls: "ui0-9-0-controls-UYZLG",
|
|
5
|
+
search: "ui0-9-0-search-tu3RA",
|
|
6
|
+
summary: "ui0-9-0-summary-CSd_P",
|
|
7
|
+
count: "ui0-9-0-count-dGqXH",
|
|
8
|
+
chips: "ui0-9-0-chips-BHcAD",
|
|
9
|
+
chip: "ui0-9-0-chip-wCX2N",
|
|
10
|
+
chipLabel: "ui0-9-0-chipLabel-lhx4e",
|
|
11
|
+
remove: "ui0-9-0-remove-RNUMA"
|
|
12
12
|
};
|
|
13
13
|
export default FilterBar_module;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-root-qnTXQ {
|
|
2
2
|
gap: var(--space-3);
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
display: flex;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.ui0-
|
|
8
|
+
.ui0-9-0-controls-UYZLG {
|
|
9
9
|
align-items: flex-end;
|
|
10
10
|
gap: var(--space-3);
|
|
11
11
|
flex-wrap: wrap;
|
|
12
12
|
display: flex;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.ui0-
|
|
15
|
+
.ui0-9-0-controls-UYZLG > * {
|
|
16
16
|
min-width: 0;
|
|
17
17
|
max-width: 100%;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.ui0-
|
|
20
|
+
.ui0-9-0-search-tu3RA {
|
|
21
21
|
flex: 16rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.ui0-
|
|
24
|
+
.ui0-9-0-summary-CSd_P {
|
|
25
25
|
align-items: center;
|
|
26
26
|
gap: var(--space-2);
|
|
27
27
|
flex-wrap: wrap;
|
|
28
28
|
display: flex;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.ui0-
|
|
31
|
+
.ui0-9-0-count-dGqXH {
|
|
32
32
|
color: var(--color-text-muted);
|
|
33
33
|
font-size: var(--text-sm);
|
|
34
34
|
line-height: var(--leading-snug);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.ui0-
|
|
37
|
+
.ui0-9-0-chips-BHcAD {
|
|
38
38
|
gap: var(--space-2);
|
|
39
39
|
flex-wrap: wrap;
|
|
40
40
|
min-width: 0;
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
display: flex;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.ui0-
|
|
47
|
+
.ui0-9-0-chip-wCX2N {
|
|
48
48
|
min-width: 0;
|
|
49
49
|
max-width: 100%;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.ui0-
|
|
52
|
+
.ui0-9-0-chipLabel-lhx4e {
|
|
53
53
|
min-width: 0;
|
|
54
54
|
padding-block: var(--space-1);
|
|
55
55
|
white-space: normal;
|
|
56
56
|
overflow-wrap: anywhere;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.ui0-
|
|
59
|
+
.ui0-9-0-remove-RNUMA {
|
|
60
60
|
width: 1.5rem;
|
|
61
61
|
height: 1.5rem;
|
|
62
62
|
border-radius: var(--radius-full);
|
|
@@ -77,20 +77,20 @@
|
|
|
77
77
|
position: relative;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.ui0-
|
|
80
|
+
.ui0-9-0-remove-RNUMA:after {
|
|
81
81
|
--remove-reach: calc(var(--space-2) * -1);
|
|
82
82
|
content: "";
|
|
83
83
|
inset: var(--remove-reach);
|
|
84
84
|
position: absolute;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.ui0-
|
|
87
|
+
.ui0-9-0-remove-RNUMA > svg {
|
|
88
88
|
width: .875rem;
|
|
89
89
|
height: .875rem;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@media (hover: hover) {
|
|
93
|
-
.ui0-
|
|
93
|
+
.ui0-9-0-remove-RNUMA:hover {
|
|
94
94
|
background: var(--color-surface-3);
|
|
95
95
|
color: var(--color-text);
|
|
96
96
|
}
|
|
@@ -18,6 +18,17 @@ export interface IconButtonProps extends Omit<ComponentPropsWithoutRef<typeof Ba
|
|
|
18
18
|
size?: IconButtonSize;
|
|
19
19
|
/** Swaps the icon for a spinner, keeps the button focusable, and blocks activation. */
|
|
20
20
|
loading?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Makes the button a toggle: sets `aria-pressed` and, when true, draws the selected state. Leave it
|
|
23
|
+
* undefined for a plain button, which then carries no `aria-pressed` but one you pass yourself.
|
|
24
|
+
*/
|
|
25
|
+
pressed?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A small count in the button's top-end corner, hidden from assistive technology. Put the count
|
|
28
|
+
* in `label` as well ("Filters, 2 active"). Nothing shows for 0 or undefined; above 99 it reads
|
|
29
|
+
* "99+".
|
|
30
|
+
*/
|
|
31
|
+
badge?: number;
|
|
21
32
|
className?: string;
|
|
22
33
|
}
|
|
23
|
-
export declare function IconButton({ label, variant, size, loading, disabled, className, children, nativeButton, ...rest }: IconButtonProps): import("react").JSX.Element;
|
|
34
|
+
export declare function IconButton({ label, variant, size, loading, pressed, badge, disabled, className, children, nativeButton, ...rest }: IconButtonProps): import("react").JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "@base-ui/react/button";
|
|
3
3
|
import { Spinner } from "../Spinner/Spinner.js";
|
|
4
4
|
import IconButton_module from "./IconButton.module.js";
|
|
5
|
-
|
|
5
|
+
const BADGE_CAP = 99;
|
|
6
|
+
function IconButton({ label, variant = 'ghost', size = 'md', loading = false, pressed, badge, disabled, className, children, nativeButton, ...rest }) {
|
|
6
7
|
const isDisabled = Boolean(disabled) || loading;
|
|
7
8
|
const isNativeButton = nativeButton ?? !rest.render;
|
|
8
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/ jsxs(Button, {
|
|
9
10
|
...rest,
|
|
10
11
|
nativeButton: isNativeButton,
|
|
11
12
|
className: [
|
|
@@ -15,16 +16,25 @@ function IconButton({ label, variant = 'ghost', size = 'md', loading = false, di
|
|
|
15
16
|
"data-variant": variant,
|
|
16
17
|
"data-size": size,
|
|
17
18
|
"data-loading": loading ? '' : void 0,
|
|
19
|
+
"data-pressed": pressed ? '' : void 0,
|
|
18
20
|
disabled: isDisabled,
|
|
19
21
|
focusableWhenDisabled: loading,
|
|
20
22
|
"aria-label": label,
|
|
21
23
|
"aria-busy": loading || void 0,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"aria-pressed": pressed ?? rest['aria-pressed'],
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ jsx("span", {
|
|
27
|
+
className: IconButton_module.icon,
|
|
28
|
+
children: loading ? /*#__PURE__*/ jsx(Spinner, {
|
|
29
|
+
size: "sm"
|
|
30
|
+
}) : children
|
|
31
|
+
}),
|
|
32
|
+
void 0 !== badge && badge > 0 ? /*#__PURE__*/ jsx("span", {
|
|
33
|
+
className: IconButton_module.badge,
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: badge > BADGE_CAP ? `${BADGE_CAP}+` : badge
|
|
36
|
+
}) : null
|
|
37
|
+
]
|
|
28
38
|
});
|
|
29
39
|
}
|
|
30
40
|
export { IconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-root-TzUP5 {
|
|
2
2
|
min-height: var(--size-control);
|
|
3
3
|
min-width: var(--size-control);
|
|
4
4
|
border-radius: var(--radius-full);
|
|
@@ -14,71 +14,125 @@
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
padding: 0;
|
|
16
16
|
display: inline-flex;
|
|
17
|
+
position: relative;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
.ui0-
|
|
20
|
+
.ui0-9-0-root-TzUP5[data-size="sm"] {
|
|
20
21
|
min-height: var(--size-control-sm);
|
|
21
22
|
min-width: var(--size-control-sm);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
.ui0-
|
|
25
|
+
.ui0-9-0-root-TzUP5[data-variant="secondary"] {
|
|
25
26
|
border-radius: var(--radius-control);
|
|
26
27
|
background: var(--color-surface-raised);
|
|
27
28
|
border-color: var(--color-border-strong);
|
|
28
29
|
color: var(--color-text);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
.ui0-
|
|
32
|
+
.ui0-9-0-root-TzUP5[data-variant="primary"] {
|
|
32
33
|
background: var(--color-accent);
|
|
33
34
|
color: var(--color-accent-text);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
.ui0-
|
|
37
|
+
.ui0-9-0-root-TzUP5[data-variant="soft"] {
|
|
37
38
|
background: var(--color-surface-2);
|
|
38
39
|
color: var(--color-text);
|
|
39
40
|
box-shadow: var(--icon-button-shadow, none);
|
|
40
41
|
border-color: #0000;
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
.ui0-9-0-root-TzUP5[data-pressed] {
|
|
45
|
+
background: var(--color-selected-soft);
|
|
46
|
+
color: var(--color-selected-soft-text);
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
@media (hover: hover) {
|
|
44
|
-
.ui0-
|
|
50
|
+
.ui0-9-0-root-TzUP5[data-variant="ghost"]:hover:not([data-disabled]) {
|
|
45
51
|
background: var(--color-surface-2);
|
|
46
52
|
color: var(--color-text);
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
.ui0-
|
|
55
|
+
.ui0-9-0-root-TzUP5[data-variant="secondary"]:hover:not([data-disabled]) {
|
|
50
56
|
background: var(--color-surface-2);
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
.ui0-
|
|
59
|
+
.ui0-9-0-root-TzUP5[data-variant="primary"]:hover:not([data-disabled]) {
|
|
54
60
|
background: var(--color-accent-hover);
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
.ui0-
|
|
63
|
+
.ui0-9-0-root-TzUP5[data-variant="soft"]:hover:not([data-disabled]) {
|
|
58
64
|
background: var(--color-surface-3);
|
|
59
65
|
}
|
|
66
|
+
|
|
67
|
+
.ui0-9-0-root-TzUP5[data-pressed]:hover:not([data-disabled]) {
|
|
68
|
+
background: var(--color-selected-soft);
|
|
69
|
+
color: var(--color-selected-soft-text);
|
|
70
|
+
}
|
|
60
71
|
}
|
|
61
72
|
|
|
62
|
-
.ui0-
|
|
73
|
+
.ui0-9-0-root-TzUP5:active:not([data-disabled]) {
|
|
63
74
|
transform: scale(.96);
|
|
64
75
|
}
|
|
65
76
|
|
|
66
|
-
.ui0-
|
|
77
|
+
.ui0-9-0-root-TzUP5[data-disabled] {
|
|
67
78
|
cursor: not-allowed;
|
|
68
79
|
opacity: .45;
|
|
69
80
|
}
|
|
70
81
|
|
|
71
|
-
.ui0-
|
|
82
|
+
.ui0-9-0-icon-WceXT {
|
|
72
83
|
display: inline-flex;
|
|
73
84
|
}
|
|
74
85
|
|
|
75
|
-
.ui0-
|
|
86
|
+
.ui0-9-0-icon-WceXT > svg {
|
|
76
87
|
width: 1.25rem;
|
|
77
88
|
height: 1.25rem;
|
|
78
89
|
}
|
|
79
90
|
|
|
80
|
-
.ui0-
|
|
91
|
+
.ui0-9-0-root-TzUP5[data-size="sm"] .ui0-9-0-icon-WceXT > svg, .ui0-9-0-root-TzUP5[data-variant="soft"] .ui0-9-0-icon-WceXT > svg {
|
|
81
92
|
width: 1rem;
|
|
82
93
|
height: 1rem;
|
|
83
94
|
}
|
|
84
95
|
|
|
96
|
+
.ui0-9-0-badge-jpgYY {
|
|
97
|
+
--badge-size: calc(var(--text-2xs) * 1.5);
|
|
98
|
+
min-inline-size: var(--badge-size);
|
|
99
|
+
min-block-size: var(--badge-size);
|
|
100
|
+
padding-inline: var(--space-1);
|
|
101
|
+
border-radius: var(--radius-full);
|
|
102
|
+
background: var(--color-accent);
|
|
103
|
+
color: var(--color-accent-text);
|
|
104
|
+
font-size: var(--text-2xs);
|
|
105
|
+
line-height: var(--leading-tight);
|
|
106
|
+
font-variant-numeric: tabular-nums;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
align-items: center;
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
position: absolute;
|
|
111
|
+
inset-block-start: 0;
|
|
112
|
+
inset-inline-end: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ui0-9-0-root-TzUP5[data-variant="primary"] .ui0-9-0-badge-jpgYY {
|
|
116
|
+
background: var(--color-accent-text);
|
|
117
|
+
color: var(--color-accent);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ui0-9-0-root-TzUP5[data-variant="primary"][data-pressed] .ui0-9-0-badge-jpgYY {
|
|
121
|
+
background: var(--color-accent);
|
|
122
|
+
color: var(--color-accent-text);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media (forced-colors: active) {
|
|
126
|
+
.ui0-9-0-root-TzUP5[data-pressed], .ui0-9-0-root-TzUP5[data-pressed]:hover:not([data-disabled]) {
|
|
127
|
+
forced-color-adjust: none;
|
|
128
|
+
color: highlighttext;
|
|
129
|
+
background: highlight;
|
|
130
|
+
outline-color: canvastext;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ui0-9-0-root-TzUP5[data-variant][data-pressed] .ui0-9-0-badge-jpgYY {
|
|
134
|
+
color: highlight;
|
|
135
|
+
background: highlighttext;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ui0-
|
|
1
|
+
.ui0-9-0-item-toMw6 {
|
|
2
2
|
min-height: var(--size-touch);
|
|
3
3
|
padding-inline: var(--space-3);
|
|
4
4
|
border-radius: var(--radius-md);
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
display: flex;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.ui0-
|
|
15
|
+
.ui0-9-0-item-toMw6[data-highlighted] {
|
|
16
16
|
background: var(--color-surface-2);
|
|
17
17
|
color: var(--color-text);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.ui0-
|
|
20
|
+
.ui0-9-0-item-toMw6[data-disabled] {
|
|
21
21
|
color: var(--color-text-subtle);
|
|
22
22
|
cursor: not-allowed;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.ui0-
|
|
25
|
+
.ui0-9-0-separator-mmvmF {
|
|
26
26
|
height: 1px;
|
|
27
27
|
margin-block: var(--space-1);
|
|
28
28
|
background: var(--color-border);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./NavMenu_module.css";
|
|
2
2
|
const NavMenu_module = {
|
|
3
|
-
root: "ui0-
|
|
4
|
-
list: "ui0-
|
|
5
|
-
link: "ui0-
|
|
6
|
-
trigger: "ui0-
|
|
7
|
-
triggerIcon: "ui0-
|
|
8
|
-
item: "ui0-
|
|
3
|
+
root: "ui0-9-0-root-wsLiH",
|
|
4
|
+
list: "ui0-9-0-list-hzkjq",
|
|
5
|
+
link: "ui0-9-0-link-R0jaI",
|
|
6
|
+
trigger: "ui0-9-0-trigger-dj75u",
|
|
7
|
+
triggerIcon: "ui0-9-0-triggerIcon-gSo04",
|
|
8
|
+
item: "ui0-9-0-item-yXJoa"
|
|
9
9
|
};
|
|
10
10
|
export default NavMenu_module;
|