@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.
Files changed (152) hide show
  1. package/dist/components/Alert/Alert.module.js +5 -5
  2. package/dist/components/Alert/Alert_module.css +14 -14
  3. package/dist/components/Avatar/Avatar.module.js +3 -3
  4. package/dist/components/Avatar/Avatar_module.css +15 -15
  5. package/dist/components/AvatarGroup/AvatarGroup.module.js +4 -4
  6. package/dist/components/AvatarGroup/AvatarGroup_module.css +10 -10
  7. package/dist/components/Breadcrumb/Breadcrumb.module.js +6 -6
  8. package/dist/components/Breadcrumb/Breadcrumb_module.css +7 -7
  9. package/dist/components/Button/Button.module.js +6 -6
  10. package/dist/components/Button/Button_module.css +32 -32
  11. package/dist/components/Card/Card.module.js +5 -5
  12. package/dist/components/Card/Card_module.css +7 -7
  13. package/dist/components/CardList/CardList.module.js +3 -3
  14. package/dist/components/CardList/CardList_module.css +3 -3
  15. package/dist/components/Checkbox/Checkbox.module.js +2 -2
  16. package/dist/components/Checkbox/Checkbox_module.css +3 -3
  17. package/dist/components/ChoiceCard/ChoiceCard.module.js +8 -8
  18. package/dist/components/ChoiceCard/ChoiceCard_module.css +25 -25
  19. package/dist/components/Collapsible/Collapsible.module.js +6 -6
  20. package/dist/components/Collapsible/Collapsible_module.css +11 -11
  21. package/dist/components/DataGrid/DataGrid.d.ts +1 -1
  22. package/dist/components/DataGrid/DataGrid.js +149 -64
  23. package/dist/components/DataGrid/DataGrid.module.js +45 -32
  24. package/dist/components/DataGrid/DataGrid_module.css +202 -70
  25. package/dist/components/DataGrid/GridCardHeader.d.ts +40 -4
  26. package/dist/components/DataGrid/GridCardHeader.js +79 -11
  27. package/dist/components/DataGrid/GridChoiceFilter.d.ts +21 -0
  28. package/dist/components/DataGrid/GridChoiceFilter.js +157 -0
  29. package/dist/components/DataGrid/GridFilterRow.d.ts +22 -0
  30. package/dist/components/DataGrid/GridFilterRow.js +66 -0
  31. package/dist/components/DataGrid/GridHeaderCell.d.ts +5 -2
  32. package/dist/components/DataGrid/GridHeaderCell.js +4 -3
  33. package/dist/components/DataGrid/GridHeaderRow.d.ts +3 -1
  34. package/dist/components/DataGrid/GridHeaderRow.js +2 -1
  35. package/dist/components/DataGrid/GridRow.d.ts +8 -4
  36. package/dist/components/DataGrid/GridRow.js +4 -4
  37. package/dist/components/DataGrid/GridSearch.d.ts +19 -0
  38. package/dist/components/DataGrid/GridSearch.js +32 -0
  39. package/dist/components/DataGrid/GridStateRows.d.ts +36 -9
  40. package/dist/components/DataGrid/GridStateRows.js +34 -18
  41. package/dist/components/DataGrid/GridTextFilter.d.ts +14 -0
  42. package/dist/components/DataGrid/GridTextFilter.js +21 -0
  43. package/dist/components/DataGrid/columns.d.ts +31 -8
  44. package/dist/components/DataGrid/labels.d.ts +24 -0
  45. package/dist/components/DataGrid/labels.js +14 -0
  46. package/dist/components/DataGrid/query.d.ts +40 -0
  47. package/dist/components/DataGrid/query.js +128 -0
  48. package/dist/components/DataGrid/types.d.ts +52 -7
  49. package/dist/components/DataGrid/useDebouncedDraft.d.ts +20 -0
  50. package/dist/components/DataGrid/useDebouncedDraft.js +71 -0
  51. package/dist/components/DataGrid/useGridEntries.d.ts +3 -2
  52. package/dist/components/DataGrid/useGridKeyboard.d.ts +17 -7
  53. package/dist/components/DataGrid/useGridKeyboard.js +18 -8
  54. package/dist/components/DataGrid/useGridMetrics.d.ts +4 -1
  55. package/dist/components/DataGrid/useGridMetrics.js +4 -0
  56. package/dist/components/DataGrid/useGridQuery.d.ts +48 -0
  57. package/dist/components/DataGrid/useGridQuery.js +71 -0
  58. package/dist/components/DataTable/DataTable.module.js +9 -9
  59. package/dist/components/DataTable/DataTable_module.css +19 -19
  60. package/dist/components/DatePicker/DatePicker.module.js +10 -10
  61. package/dist/components/DatePicker/DatePicker_module.css +18 -18
  62. package/dist/components/Descriptions/Descriptions.module.js +4 -4
  63. package/dist/components/Descriptions/Descriptions_module.css +8 -8
  64. package/dist/components/Dialog/Dialog.module.js +8 -8
  65. package/dist/components/Dialog/Dialog_module.css +15 -15
  66. package/dist/components/EmptyState/EmptyState.module.js +5 -5
  67. package/dist/components/EmptyState/EmptyState_module.css +10 -10
  68. package/dist/components/ErrorBoundary/ErrorBoundary.module.js +1 -1
  69. package/dist/components/ErrorBoundary/ErrorBoundary_module.css +1 -1
  70. package/dist/components/Field/PickerField.module.js +4 -4
  71. package/dist/components/Field/PickerField_module.css +7 -7
  72. package/dist/components/FilterBar/FilterBar.module.js +9 -9
  73. package/dist/components/FilterBar/FilterBar_module.css +13 -13
  74. package/dist/components/Form/Form.module.js +1 -1
  75. package/dist/components/Form/Form_module.css +1 -1
  76. package/dist/components/IconButton/IconButton.d.ts +12 -1
  77. package/dist/components/IconButton/IconButton.js +19 -9
  78. package/dist/components/IconButton/IconButton.module.js +3 -2
  79. package/dist/components/IconButton/IconButton_module.css +68 -14
  80. package/dist/components/Menu/Menu.module.js +2 -2
  81. package/dist/components/Menu/Menu_module.css +4 -4
  82. package/dist/components/NavMenu/NavMenu.module.js +6 -6
  83. package/dist/components/NavMenu/NavMenu_module.css +12 -12
  84. package/dist/components/PageHeading/PageHeading.module.js +3 -3
  85. package/dist/components/PageHeading/PageHeading_module.css +8 -8
  86. package/dist/components/PageShell/PageShell.module.js +5 -5
  87. package/dist/components/PageShell/PageShell_module.css +9 -9
  88. package/dist/components/Popover/Popover.module.js +2 -2
  89. package/dist/components/Popover/Popover_module.css +2 -2
  90. package/dist/components/ProgressBar/ProgressBar.module.js +8 -8
  91. package/dist/components/ProgressBar/ProgressBar_module.css +19 -19
  92. package/dist/components/RadioGroup/RadioGroup.module.js +2 -2
  93. package/dist/components/RadioGroup/RadioGroup_module.css +2 -2
  94. package/dist/components/SearchField/SearchField.module.js +4 -4
  95. package/dist/components/SearchField/SearchField_module.css +7 -7
  96. package/dist/components/Segmented/Segmented.module.js +4 -4
  97. package/dist/components/Segmented/Segmented_module.css +13 -13
  98. package/dist/components/Select/Select.module.js +5 -5
  99. package/dist/components/Select/Select_module.css +11 -11
  100. package/dist/components/Skeleton/Skeleton.module.js +3 -3
  101. package/dist/components/Skeleton/Skeleton_module.css +7 -7
  102. package/dist/components/SkipLink/SkipLink.module.js +1 -1
  103. package/dist/components/SkipLink/SkipLink_module.css +2 -2
  104. package/dist/components/Spinner/Spinner.module.js +3 -3
  105. package/dist/components/Spinner/Spinner_module.css +7 -7
  106. package/dist/components/StatusDot/StatusDot.module.js +5 -5
  107. package/dist/components/StatusDot/StatusDot_module.css +11 -11
  108. package/dist/components/Steps/Steps.module.js +6 -6
  109. package/dist/components/Steps/Steps_module.css +19 -19
  110. package/dist/components/Switch/Switch.module.js +2 -2
  111. package/dist/components/Switch/Switch_module.css +5 -5
  112. package/dist/components/TabBar/TabBar.module.js +7 -7
  113. package/dist/components/TabBar/TabBar_module.css +13 -13
  114. package/dist/components/Tabs/Tabs.module.js +4 -4
  115. package/dist/components/Tabs/Tabs_module.css +6 -6
  116. package/dist/components/Tag/Tag.module.js +1 -1
  117. package/dist/components/Tag/Tag_module.css +2 -2
  118. package/dist/components/TextArea/TextArea.module.js +1 -1
  119. package/dist/components/TextArea/TextArea_module.css +3 -3
  120. package/dist/components/ThemeScope/ThemeScope.module.js +2 -2
  121. package/dist/components/ThemeScope/ThemeScope_module.css +2 -2
  122. package/dist/components/Timeline/Timeline.module.js +8 -8
  123. package/dist/components/Timeline/Timeline_module.css +13 -13
  124. package/dist/components/ToastRegion/ToastRegion.module.js +6 -6
  125. package/dist/components/ToastRegion/ToastRegion_module.css +15 -15
  126. package/dist/components/ToggleChip/ToggleChip.module.js +5 -5
  127. package/dist/components/ToggleChip/ToggleChip_module.css +14 -14
  128. package/dist/components/Toolbar/Toolbar.module.js +3 -3
  129. package/dist/components/Toolbar/Toolbar_module.css +5 -5
  130. package/dist/components/Tree/Tree.module.js +8 -8
  131. package/dist/components/Tree/Tree_module.css +20 -20
  132. package/dist/components/TreeSelect/TreeSelect.module.js +3 -3
  133. package/dist/components/TreeSelect/TreeSelect_module.css +4 -4
  134. package/dist/components/Upload/Upload.module.js +8 -8
  135. package/dist/components/Upload/Upload_module.css +16 -16
  136. package/dist/components/ViewField/ViewField.module.js +2 -2
  137. package/dist/components/ViewField/ViewField_module.css +3 -3
  138. package/dist/icons/FilterIcon.d.ts +6 -0
  139. package/dist/icons/FilterIcon.js +17 -0
  140. package/dist/index.d.ts +2 -1
  141. package/dist/index.js +1 -0
  142. package/dist/styles/a11y.module.js +1 -1
  143. package/dist/styles/a11y_module.css +1 -1
  144. package/dist/styles/closeCircle.module.js +1 -1
  145. package/dist/styles/closeCircle_module.css +2 -2
  146. package/dist/styles/field.module.js +14 -14
  147. package/dist/styles/field_module.css +33 -33
  148. package/dist/styles/pair.module.js +2 -2
  149. package/dist/styles/pair_module.css +3 -3
  150. package/dist/styles/popup.module.js +5 -5
  151. package/dist/styles/popup_module.css +17 -17
  152. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- .ui0-8-0-viewport-nOzLZ {
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-8-0-viewport-nOzLZ[data-variant="sheet"] {
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-8-0-viewport-nOzLZ[data-side="end"] {
14
+ .ui0-9-0-viewport-nOzLZ[data-side="end"] {
15
15
  place-items: center end;
16
16
  }
17
17
 
18
- .ui0-8-0-header-KgP3n {
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-8-0-heading-EfBAx {
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-8-0-heading-EfBAx {
37
+ h4.ui0-9-0-heading-EfBAx {
38
38
  letter-spacing: var(--dialog-heading-tracking, normal);
39
39
  }
40
40
 
41
- .ui0-8-0-headerEnd-sEInd {
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-8-0-handle-z1dbF {
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-8-0-description-ZV1a4 {
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-8-0-body-mavCB {
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-8-0-body-mavCB:focus-visible {
75
+ .ui0-9-0-body-mavCB:focus-visible {
76
76
  outline-offset: calc(-1 * var(--focus-ring-width));
77
77
  }
78
78
 
79
- .ui0-8-0-footer-CAuV7 {
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-8-0-header-KgP3n, [data-popup="sheet"] > .ui0-8-0-description-ZV1a4, [data-popup="sheet"] > .ui0-8-0-footer-CAuV7 {
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-8-0-body-mavCB {
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-8-0-footer-CAuV7 {
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-8-0-root-Gqpml",
4
- illustration: "ui0-8-0-illustration-gt1N5",
5
- heading: "ui0-8-0-heading-aF5X5",
6
- body: "ui0-8-0-body-uj_Dd",
7
- actions: "ui0-8-0-actions-AwsGn"
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-8-0-root-Gqpml {
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-8-0-root-Gqpml[data-align="center"] {
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-8-0-root-Gqpml[data-align="start"] {
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-8-0-root-Gqpml[data-tone="selected"] {
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-8-0-illustration-gt1N5 {
28
+ .ui0-9-0-illustration-gt1N5 {
29
29
  display: flex;
30
30
  }
31
31
 
32
- .ui0-8-0-heading-aF5X5 {
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-8-0-body-uj_Dd {
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-8-0-root-Gqpml[data-tone="neutral"] .ui0-8-0-body-uj_Dd {
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-8-0-actions-AwsGn {
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-8-0-root-Gqpml[data-align="center"] .ui0-8-0-actions-AwsGn {
62
+ .ui0-9-0-root-Gqpml[data-align="center"] .ui0-9-0-actions-AwsGn {
63
63
  justify-content: center;
64
64
  }
65
65
 
@@ -1,5 +1,5 @@
1
1
  import "./ErrorBoundary_module.css";
2
2
  const ErrorBoundary_module = {
3
- root: "ui0-8-0-root-_RQKT"
3
+ root: "ui0-9-0-root-_RQKT"
4
4
  };
5
5
  export default ErrorBoundary_module;
@@ -1,4 +1,4 @@
1
- .ui0-8-0-root-_RQKT {
1
+ .ui0-9-0-root-_RQKT {
2
2
  gap: var(--space-3);
3
3
  justify-items: start;
4
4
  display: grid;
@@ -1,8 +1,8 @@
1
1
  import "./PickerField_module.css";
2
2
  const PickerField_module = {
3
- row: "ui0-8-0-row-nA5dt",
4
- trigger: "ui0-8-0-trigger-EkNQz",
5
- value: "ui0-8-0-value-iJ2rA",
6
- icon: "ui0-8-0-icon-fNz5y"
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-8-0-row-nA5dt {
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-8-0-trigger-EkNQz {
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-8-0-trigger-EkNQz[data-icon-placement="start"] {
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-8-0-value-iJ2rA {
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-8-0-value-iJ2rA[data-placeholder] {
27
+ .ui0-9-0-value-iJ2rA[data-placeholder] {
28
28
  color: var(--color-text-muted);
29
29
  }
30
30
 
31
- .ui0-8-0-icon-fNz5y {
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-8-0-icon-fNz5y > svg {
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-8-0-root-qnTXQ",
4
- controls: "ui0-8-0-controls-UYZLG",
5
- search: "ui0-8-0-search-tu3RA",
6
- summary: "ui0-8-0-summary-CSd_P",
7
- count: "ui0-8-0-count-dGqXH",
8
- chips: "ui0-8-0-chips-BHcAD",
9
- chip: "ui0-8-0-chip-wCX2N",
10
- chipLabel: "ui0-8-0-chipLabel-lhx4e",
11
- remove: "ui0-8-0-remove-RNUMA"
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-8-0-root-qnTXQ {
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-0-controls-UYZLG {
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-8-0-controls-UYZLG > * {
15
+ .ui0-9-0-controls-UYZLG > * {
16
16
  min-width: 0;
17
17
  max-width: 100%;
18
18
  }
19
19
 
20
- .ui0-8-0-search-tu3RA {
20
+ .ui0-9-0-search-tu3RA {
21
21
  flex: 16rem;
22
22
  }
23
23
 
24
- .ui0-8-0-summary-CSd_P {
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-8-0-count-dGqXH {
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-8-0-chips-BHcAD {
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-8-0-chip-wCX2N {
47
+ .ui0-9-0-chip-wCX2N {
48
48
  min-width: 0;
49
49
  max-width: 100%;
50
50
  }
51
51
 
52
- .ui0-8-0-chipLabel-lhx4e {
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-8-0-remove-RNUMA {
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-8-0-remove-RNUMA:after {
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-8-0-remove-RNUMA > svg {
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-8-0-remove-RNUMA:hover {
93
+ .ui0-9-0-remove-RNUMA:hover {
94
94
  background: var(--color-surface-3);
95
95
  color: var(--color-text);
96
96
  }
@@ -1,5 +1,5 @@
1
1
  import "./Form_module.css";
2
2
  const Form_module = {
3
- root: "ui0-8-0-root-ontz3"
3
+ root: "ui0-9-0-root-ontz3"
4
4
  };
5
5
  export default Form_module;
@@ -1,4 +1,4 @@
1
- .ui0-8-0-root-ontz3 {
1
+ .ui0-9-0-root-ontz3 {
2
2
  gap: var(--space-5);
3
3
  flex-direction: column;
4
4
  display: flex;
@@ -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
- function IconButton({ label, variant = 'ghost', size = 'md', loading = false, disabled, className, children, nativeButton, ...rest }) {
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__*/ jsx(Button, {
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
- children: /*#__PURE__*/ jsx("span", {
23
- className: IconButton_module.icon,
24
- children: loading ? /*#__PURE__*/ jsx(Spinner, {
25
- size: "sm"
26
- }) : children
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,6 +1,7 @@
1
1
  import "./IconButton_module.css";
2
2
  const IconButton_module = {
3
- root: "ui0-8-0-root-TzUP5",
4
- icon: "ui0-8-0-icon-WceXT"
3
+ root: "ui0-9-0-root-TzUP5",
4
+ icon: "ui0-9-0-icon-WceXT",
5
+ badge: "ui0-9-0-badge-jpgYY"
5
6
  };
6
7
  export default IconButton_module;
@@ -1,4 +1,4 @@
1
- .ui0-8-0-root-TzUP5 {
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-8-0-root-TzUP5[data-size="sm"] {
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-8-0-root-TzUP5[data-variant="secondary"] {
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-8-0-root-TzUP5[data-variant="primary"] {
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-8-0-root-TzUP5[data-variant="soft"] {
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-8-0-root-TzUP5[data-variant="ghost"]:hover:not([data-disabled]) {
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-8-0-root-TzUP5[data-variant="secondary"]:hover:not([data-disabled]) {
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-8-0-root-TzUP5[data-variant="primary"]:hover:not([data-disabled]) {
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-8-0-root-TzUP5[data-variant="soft"]:hover:not([data-disabled]) {
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-8-0-root-TzUP5:active:not([data-disabled]) {
73
+ .ui0-9-0-root-TzUP5:active:not([data-disabled]) {
63
74
  transform: scale(.96);
64
75
  }
65
76
 
66
- .ui0-8-0-root-TzUP5[data-disabled] {
77
+ .ui0-9-0-root-TzUP5[data-disabled] {
67
78
  cursor: not-allowed;
68
79
  opacity: .45;
69
80
  }
70
81
 
71
- .ui0-8-0-icon-WceXT {
82
+ .ui0-9-0-icon-WceXT {
72
83
  display: inline-flex;
73
84
  }
74
85
 
75
- .ui0-8-0-icon-WceXT > svg {
86
+ .ui0-9-0-icon-WceXT > svg {
76
87
  width: 1.25rem;
77
88
  height: 1.25rem;
78
89
  }
79
90
 
80
- .ui0-8-0-root-TzUP5[data-size="sm"] .ui0-8-0-icon-WceXT > svg, .ui0-8-0-root-TzUP5[data-variant="soft"] .ui0-8-0-icon-WceXT > svg {
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,6 +1,6 @@
1
1
  import "./Menu_module.css";
2
2
  const Menu_module = {
3
- item: "ui0-8-0-item-toMw6",
4
- separator: "ui0-8-0-separator-mmvmF"
3
+ item: "ui0-9-0-item-toMw6",
4
+ separator: "ui0-9-0-separator-mmvmF"
5
5
  };
6
6
  export default Menu_module;
@@ -1,4 +1,4 @@
1
- .ui0-8-0-item-toMw6 {
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-8-0-item-toMw6[data-highlighted] {
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-8-0-item-toMw6[data-disabled] {
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-8-0-separator-mmvmF {
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-8-0-root-wsLiH",
4
- list: "ui0-8-0-list-hzkjq",
5
- link: "ui0-8-0-link-R0jaI",
6
- trigger: "ui0-8-0-trigger-dj75u",
7
- triggerIcon: "ui0-8-0-triggerIcon-gSo04",
8
- item: "ui0-8-0-item-yXJoa"
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;