@byline/ui 1.10.2 → 1.10.3
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/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion_module.css +6 -6
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/avatar/avatar_module.css +4 -4
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge_module.css +8 -8
- package/dist/components/button/button-group_module.css +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button_module.css +46 -42
- package/dist/components/button/combo-button_module.css +6 -6
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/copy-button_module.css +7 -7
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card_module.css +9 -9
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip_module.css +41 -38
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown_module.css +8 -8
- package/dist/components/hamburger/hamburger.js +3 -3
- package/dist/components/hamburger/hamburger_module.css +16 -16
- package/dist/components/inputs/autocomplete.js +9 -9
- package/dist/components/inputs/autocomplete_module.css +36 -36
- package/dist/components/inputs/checkbox-group.js +1 -1
- package/dist/components/inputs/checkbox-group_module.css +1 -1
- package/dist/components/inputs/checkbox.js +5 -5
- package/dist/components/inputs/checkbox_module.css +31 -31
- package/dist/components/inputs/error-text_module.css +4 -4
- package/dist/components/inputs/help-text.js +1 -1
- package/dist/components/inputs/help-text_module.css +4 -4
- package/dist/components/inputs/input-adornment.js +1 -1
- package/dist/components/inputs/input-adornment_module.css +3 -3
- package/dist/components/inputs/input.js +5 -5
- package/dist/components/inputs/input_module.css +38 -38
- package/dist/components/inputs/label_module.css +2 -2
- package/dist/components/inputs/radio-group.js +1 -1
- package/dist/components/inputs/radio-group_module.css +18 -18
- package/dist/components/inputs/select.js +3 -3
- package/dist/components/inputs/select_module.css +8 -8
- package/dist/components/inputs/text-area.js +1 -1
- package/dist/components/inputs/text-area_module.css +3 -3
- package/dist/components/notifications/alert.js +10 -10
- package/dist/components/notifications/alert_module.css +16 -16
- package/dist/components/notifications/toast.js +7 -7
- package/dist/components/notifications/toast_module.css +25 -24
- package/dist/components/pager/pagination.js +2 -2
- package/dist/components/pager/pagination_module.css +6 -6
- package/dist/components/scroll-area/scroll-area.js +7 -7
- package/dist/components/scroll-area/scroll-area_module.css +9 -9
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
- package/dist/components/section/section.js +1 -1
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer_module.css +6 -6
- package/dist/components/table/table.js +8 -8
- package/dist/components/table/table_module.css +15 -15
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/tabs/tabs_module.css +9 -9
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tooltip/tooltip_module.css +6 -6
- package/dist/fields/checkbox/checkbox-field.js +2 -1
- package/dist/fields/checkbox/checkbox-field.module.js +6 -0
- package/dist/fields/checkbox/checkbox-field_module.css +4 -0
- package/dist/forms/form-context.d.ts +1 -0
- package/dist/forms/form-context.js +3 -2
- package/dist/loaders/ellipses.js +2 -2
- package/dist/loaders/ellipses_module.css +2 -2
- package/dist/loaders/ring.js +2 -2
- package/dist/loaders/ring_module.css +2 -2
- package/dist/loaders/spinner.js +3 -3
- package/dist/loaders/spinner_module.css +3 -3
- package/dist/styles/styles.css +12 -0
- package/dist/widgets/datepicker/datepicker.js +11 -11
- package/dist/widgets/datepicker/datepicker_module.css +21 -21
- package/dist/widgets/drawer/drawer-container.js +1 -1
- package/dist/widgets/drawer/drawer-content.js +1 -1
- package/dist/widgets/drawer/drawer-header.js +1 -1
- package/dist/widgets/drawer/drawer-top-actions.js +1 -1
- package/dist/widgets/drawer/drawer.js +2 -2
- package/dist/widgets/drawer/drawer_module.css +11 -11
- package/dist/widgets/modal/modal-actions.js +1 -1
- package/dist/widgets/modal/modal-container.js +1 -1
- package/dist/widgets/modal/modal-content.js +1 -1
- package/dist/widgets/modal/modal-header.js +1 -1
- package/dist/widgets/modal/modal.js +2 -2
- package/dist/widgets/modal/modal_module.css +12 -12
- package/dist/widgets/search/search.js +6 -0
- package/dist/widgets/timeline/timeline_module.css +10 -10
- package/package.json +4 -4
- package/src/components/accordion/accordion.module.css +4 -4
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/components/avatar/avatar.module.css +4 -4
- package/src/components/avatar/avatar.tsx +4 -4
- package/src/components/badge/badge.module.css +8 -8
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/button/button-group.module.css +2 -2
- package/src/components/button/button.module.css +162 -86
- package/src/components/button/button.tsx +4 -4
- package/src/components/button/combo-button.module.css +7 -7
- package/src/components/button/control-buttons.module.css +5 -5
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +7 -7
- package/src/components/button/copy-button.tsx +5 -5
- package/src/components/card/card.module.css +9 -9
- package/src/components/card/card.tsx +6 -6
- package/src/components/chips/chip.module.css +126 -71
- package/src/components/chips/chip.tsx +8 -12
- package/src/components/container/container.module.css +4 -4
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +7 -7
- package/src/components/dropdown/dropdown.tsx +8 -8
- package/src/components/hamburger/hamburger.module.css +16 -16
- package/src/components/hamburger/hamburger.tsx +3 -3
- package/src/components/inputs/autocomplete.module.css +42 -42
- package/src/components/inputs/autocomplete.tsx +12 -14
- package/src/components/inputs/checkbox-group.module.css +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.module.css +38 -34
- package/src/components/inputs/checkbox.tsx +8 -11
- package/src/components/inputs/error-text.module.css +4 -4
- package/src/components/inputs/help-text.module.css +4 -4
- package/src/components/inputs/help-text.tsx +1 -3
- package/src/components/inputs/input-adornment.module.css +3 -3
- package/src/components/inputs/input-adornment.tsx +2 -2
- package/src/components/inputs/input.module.css +45 -45
- package/src/components/inputs/input.tsx +8 -12
- package/src/components/inputs/label.module.css +2 -2
- package/src/components/inputs/radio-group.module.css +17 -17
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.module.css +8 -8
- package/src/components/inputs/select.tsx +3 -3
- package/src/components/inputs/text-area.module.css +4 -4
- package/src/components/inputs/text-area.tsx +3 -3
- package/src/components/notifications/alert.module.css +16 -16
- package/src/components/notifications/alert.tsx +11 -11
- package/src/components/notifications/toast.module.css +41 -28
- package/src/components/notifications/toast.tsx +7 -9
- package/src/components/pager/pagination.module.css +6 -6
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +5 -5
- package/src/components/scroll-area/scroll-area.tsx +7 -7
- package/src/components/scroll-to-top/scroll-to-top.module.css +9 -9
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +18 -8
- package/src/components/table/table.module.css +15 -15
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +4 -4
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +2 -2
- package/src/components/tooltip/tooltip.tsx +2 -2
- package/src/fields/checkbox/checkbox-field.module.css +4 -0
- package/src/fields/checkbox/checkbox-field.tsx +2 -1
- package/src/forms/form-context.tsx +10 -2
- package/src/icons/source/icon-infonomic.svg +2 -2
- package/src/loaders/ellipses.module.css +2 -2
- package/src/loaders/ellipses.tsx +2 -2
- package/src/loaders/ring.module.css +2 -2
- package/src/loaders/ring.tsx +2 -2
- package/src/loaders/spinner.module.css +3 -3
- package/src/loaders/spinner.tsx +3 -6
- package/src/styles/styles.css +12 -0
- package/src/widgets/datepicker/datepicker.module.css +15 -15
- package/src/widgets/datepicker/datepicker.tsx +11 -21
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +11 -11
- package/src/widgets/drawer/drawer.tsx +2 -2
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal.module.css +12 -12
- package/src/widgets/modal/modal.tsx +2 -2
- package/src/widgets/search/search.tsx +2 -0
- package/src/widgets/timeline/timeline.module.css +10 -10
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.chip,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-chip) {
|
|
15
15
|
--chip-font-size: 0.9rem;
|
|
16
16
|
--chip-height: 34px;
|
|
17
17
|
--chip-padding-y: 0.35rem;
|
|
@@ -39,33 +39,33 @@
|
|
|
39
39
|
|
|
40
40
|
.chip:disabled,
|
|
41
41
|
.chip[disabled],
|
|
42
|
-
:global(.
|
|
43
|
-
:global(.
|
|
42
|
+
:global(.byline-chip):disabled,
|
|
43
|
+
:global(.byline-chip)[disabled] {
|
|
44
44
|
pointer-events: none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.chip:focus,
|
|
48
48
|
.chip:active,
|
|
49
|
-
:global(.
|
|
50
|
-
:global(.
|
|
49
|
+
:global(.byline-chip):focus,
|
|
50
|
+
:global(.byline-chip):active {
|
|
51
51
|
outline-color: var(--ring-color);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.label,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-chip-label) {
|
|
56
56
|
display: inline-flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.icon,
|
|
62
|
-
:global(.
|
|
62
|
+
:global(.byline-chip-icon) {
|
|
63
63
|
width: var(--chip-icon-size);
|
|
64
64
|
height: var(--chip-icon-size);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.iconWrapper,
|
|
68
|
-
:global(.
|
|
68
|
+
:global(.byline-chip-icon-wrapper) {
|
|
69
69
|
display: inline-flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.close-icon,
|
|
76
|
-
:global(.
|
|
76
|
+
:global(.byline-chip-close-icon) {
|
|
77
77
|
width: calc(var(--chip-icon-size) * 0.9);
|
|
78
78
|
height: calc(var(--chip-icon-size) * 0.9);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/* Sizes ----------------------------------------------------------- */
|
|
82
82
|
.xs,
|
|
83
|
-
:global(.
|
|
83
|
+
:global(.byline-chip-xs) {
|
|
84
84
|
--chip-height: 24px;
|
|
85
85
|
--chip-padding-y: 0.15rem;
|
|
86
86
|
--chip-padding-x: 0.3rem;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.sm,
|
|
93
|
-
:global(.
|
|
93
|
+
:global(.byline-chip-sm) {
|
|
94
94
|
--chip-height: 28px;
|
|
95
95
|
--chip-padding-y: 0.2rem;
|
|
96
96
|
--chip-padding-x: 0.3rem;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.md,
|
|
102
|
-
:global(.
|
|
102
|
+
:global(.byline-chip-md) {
|
|
103
103
|
--chip-height: 32px;
|
|
104
104
|
--chip-padding-y: 0.25rem;
|
|
105
105
|
--chip-padding-x: 0.3rem;
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.lg,
|
|
111
|
-
:global(.
|
|
111
|
+
:global(.byline-chip-lg) {
|
|
112
112
|
--chip-gap: var(--gap-2);
|
|
113
113
|
--chip-height: 36px;
|
|
114
114
|
--chip-padding-y: 0.3rem;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.xl,
|
|
121
|
-
:global(.
|
|
121
|
+
:global(.byline-chip-xl) {
|
|
122
122
|
--chip-gap: var(--gap-2);
|
|
123
123
|
--chip-height: 40px;
|
|
124
124
|
--chip-padding-y: 0.3rem;
|
|
@@ -130,34 +130,37 @@
|
|
|
130
130
|
/* Variants -------------------------------------------------------- */
|
|
131
131
|
/* Variants - Consuming Variables */
|
|
132
132
|
.filled,
|
|
133
|
-
:global(.
|
|
133
|
+
:global(.byline-chip-filled) {
|
|
134
134
|
color: var(--chip-variant-filled-foreground);
|
|
135
135
|
background-color: var(--chip-variant-filled);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.filled:hover,
|
|
139
|
-
:global(.
|
|
139
|
+
:global(.byline-chip-filled):hover {
|
|
140
140
|
background-color: var(--chip-variant-filled-hover);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.filled:focus,
|
|
144
144
|
.filled:active,
|
|
145
|
-
:global(.
|
|
146
|
-
:global(.
|
|
145
|
+
:global(.byline-chip-filled):focus,
|
|
146
|
+
:global(.byline-chip-filled):active {
|
|
147
147
|
--ring-color: var(--chip-ring-color);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.filled:disabled,
|
|
151
151
|
.filled[disabled],
|
|
152
|
-
:global(.
|
|
153
|
-
:global(.
|
|
152
|
+
:global(.byline-chip-filled):disabled,
|
|
153
|
+
:global(.byline-chip-filled)[disabled] {
|
|
154
154
|
background-color: var(
|
|
155
155
|
--chip-variant-filled-disabled,
|
|
156
156
|
oklch(from var(--chip-variant-filled) calc(l * 1.1) calc(c * 0.85) h)
|
|
157
157
|
);
|
|
158
158
|
color: var(
|
|
159
159
|
--chip-variant-filled-foreground-disabled,
|
|
160
|
-
oklch(
|
|
160
|
+
oklch(
|
|
161
|
+
from var(--chip-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85)
|
|
162
|
+
h
|
|
163
|
+
)
|
|
161
164
|
);
|
|
162
165
|
}
|
|
163
166
|
|
|
@@ -165,34 +168,37 @@
|
|
|
165
168
|
/* Weak variant for close button on selected chip */
|
|
166
169
|
|
|
167
170
|
.filled-weak,
|
|
168
|
-
:global(.
|
|
171
|
+
:global(.byline-chip-filled-weak) {
|
|
169
172
|
color: var(--chip-variant-filled-weak-foreground);
|
|
170
173
|
background-color: var(--chip-variant-filled-weak);
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
.filled-weak:hover,
|
|
174
|
-
:global(.
|
|
177
|
+
:global(.byline-chip-filled-weak):hover {
|
|
175
178
|
background-color: var(--chip-variant-filled-weak-hover);
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
.filled-weak:focus,
|
|
179
182
|
.filled-weak:active,
|
|
180
|
-
:global(.
|
|
181
|
-
:global(.
|
|
183
|
+
:global(.byline-chip-filled-weak):focus,
|
|
184
|
+
:global(.byline-chip-filled-weak):active {
|
|
182
185
|
--ring-color: var(--chip-ring-color);
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
.filled-weak:disabled,
|
|
186
189
|
.filled-weak[disabled],
|
|
187
|
-
:global(.
|
|
188
|
-
:global(.
|
|
190
|
+
:global(.byline-chip-filled-weak):disabled,
|
|
191
|
+
:global(.byline-chip-filled-weak)[disabled] {
|
|
189
192
|
background-color: var(
|
|
190
193
|
--chip-variant-filled-weak-disabled,
|
|
191
194
|
oklch(from var(--chip-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h)
|
|
192
195
|
);
|
|
193
196
|
color: var(
|
|
194
197
|
--chip-variant-filled-weak-foreground-disabled,
|
|
195
|
-
oklch(
|
|
198
|
+
oklch(
|
|
199
|
+
from var(--chip-variant-filled-weak-foreground) calc(l * 0.9)
|
|
200
|
+
calc(c * 0.85) h
|
|
201
|
+
)
|
|
196
202
|
);
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -200,7 +206,7 @@
|
|
|
200
206
|
/* Outlined variant */
|
|
201
207
|
|
|
202
208
|
.outlined,
|
|
203
|
-
:global(.
|
|
209
|
+
:global(.byline-chip-outlined) {
|
|
204
210
|
border: 1px solid var(--chip-variant-outlined-border);
|
|
205
211
|
color: var(--chip-variant-outlined-foreground);
|
|
206
212
|
background-color: var(--chip-variant-outlined);
|
|
@@ -208,58 +214,65 @@
|
|
|
208
214
|
|
|
209
215
|
.outlined:disabled,
|
|
210
216
|
.outlined[disabled],
|
|
211
|
-
:global(.
|
|
212
|
-
:global(.
|
|
217
|
+
:global(.byline-chip-outlined):disabled,
|
|
218
|
+
:global(.byline-chip-outlined)[disabled] {
|
|
213
219
|
border-color: var(
|
|
214
220
|
--chip-variant-outlined-border-disabled,
|
|
215
|
-
oklch(
|
|
221
|
+
oklch(
|
|
222
|
+
from var(--chip-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h
|
|
223
|
+
)
|
|
216
224
|
);
|
|
217
225
|
color: var(
|
|
218
226
|
--chip-variant-outlined-foreground-disabled,
|
|
219
|
-
oklch(
|
|
227
|
+
oklch(
|
|
228
|
+
from var(--chip-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7)
|
|
229
|
+
h
|
|
230
|
+
)
|
|
220
231
|
);
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
.outlined:hover,
|
|
224
|
-
:global(.
|
|
235
|
+
:global(.byline-chip-outlined):hover {
|
|
225
236
|
background-color: var(--chip-variant-outlined-hover);
|
|
226
237
|
}
|
|
227
238
|
|
|
228
239
|
.outlined:focus,
|
|
229
240
|
.outlined:active,
|
|
230
|
-
:global(.
|
|
231
|
-
:global(.
|
|
241
|
+
:global(.byline-chip-outlined):focus,
|
|
242
|
+
:global(.byline-chip-outlined):active {
|
|
232
243
|
--ring-color: var(--chip-ring-color);
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
.text,
|
|
236
|
-
:global(.
|
|
247
|
+
:global(.byline-chip-text) {
|
|
237
248
|
background-color: var(--chip-variant-text);
|
|
238
249
|
color: var(--chip-variant-text-foreground);
|
|
239
250
|
}
|
|
240
251
|
|
|
241
252
|
.text:disabled,
|
|
242
253
|
.text[disabled],
|
|
243
|
-
:global(.
|
|
244
|
-
:global(.
|
|
245
|
-
color: oklch(
|
|
254
|
+
:global(.byline-chip-text):disabled,
|
|
255
|
+
:global(.byline-chip-text)[disabled] {
|
|
256
|
+
color: oklch(
|
|
257
|
+
from var(--chip-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h
|
|
258
|
+
);
|
|
246
259
|
}
|
|
247
260
|
|
|
248
261
|
.text:hover,
|
|
249
|
-
:global(.
|
|
262
|
+
:global(.byline-chip-text):hover {
|
|
250
263
|
background-color: var(--chip-variant-text-hover);
|
|
251
264
|
}
|
|
252
265
|
|
|
253
266
|
.text:focus,
|
|
254
267
|
.text:active,
|
|
255
|
-
:global(.
|
|
256
|
-
:global(.
|
|
268
|
+
:global(.byline-chip-text):focus,
|
|
269
|
+
:global(.byline-chip-text):active {
|
|
257
270
|
--ring-color: var(--chip-ring-color);
|
|
258
271
|
}
|
|
259
272
|
|
|
260
273
|
/* Intents - Defining Variables */
|
|
261
274
|
.primary,
|
|
262
|
-
:global(.
|
|
275
|
+
:global(.byline-chip-primary) {
|
|
263
276
|
--chip-ring-color: var(--ring-primary);
|
|
264
277
|
|
|
265
278
|
/* Filled */
|
|
@@ -267,14 +280,18 @@
|
|
|
267
280
|
--chip-variant-filled-hover: var(--fill-primary-strong-hover);
|
|
268
281
|
--chip-variant-filled-disabled: var(--fill-primary-strong-disabled);
|
|
269
282
|
--chip-variant-filled-foreground: var(--text-on-primary-strong);
|
|
270
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
283
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
284
|
+
--text-on-primary-strong-disabled
|
|
285
|
+
);
|
|
271
286
|
|
|
272
287
|
/* Filled Weak */
|
|
273
288
|
--chip-variant-filled-weak: var(--fill-primary-weak);
|
|
274
289
|
--chip-variant-filled-weak-hover: var(--fill-primary-weak-hover);
|
|
275
290
|
--chip-variant-filled-weak-disabled: var(--fill-primary-weak-disabled);
|
|
276
291
|
--chip-variant-filled-weak-foreground: var(--text-on-primary-weak);
|
|
277
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
292
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
293
|
+
--text-on-primary-weak-disabled
|
|
294
|
+
);
|
|
278
295
|
|
|
279
296
|
/* Outlined */
|
|
280
297
|
--chip-variant-outlined: var(--fill-primary-outlined);
|
|
@@ -282,11 +299,13 @@
|
|
|
282
299
|
--chip-variant-outlined-border: var(--stroke-primary);
|
|
283
300
|
--chip-variant-outlined-border-disabled: var(--stroke-primary-disabled);
|
|
284
301
|
--chip-variant-outlined-foreground: var(--text-on-primary-outlined);
|
|
285
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
302
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
303
|
+
--text-on-primary-outlined-disabled
|
|
304
|
+
);
|
|
286
305
|
}
|
|
287
306
|
|
|
288
307
|
.secondary,
|
|
289
|
-
:global(.
|
|
308
|
+
:global(.byline-chip-secondary) {
|
|
290
309
|
--chip-ring-color: var(--ring-secondary);
|
|
291
310
|
|
|
292
311
|
/* Filled */
|
|
@@ -294,14 +313,18 @@
|
|
|
294
313
|
--chip-variant-filled-hover: var(--fill-secondary-strong-hover);
|
|
295
314
|
--chip-variant-filled-disabled: var(--fill-secondary-strong-disabled);
|
|
296
315
|
--chip-variant-filled-foreground: var(--text-on-secondary-strong);
|
|
297
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
316
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
317
|
+
--text-on-secondary-strong-disabled
|
|
318
|
+
);
|
|
298
319
|
|
|
299
320
|
/* Filled Weak */
|
|
300
321
|
--chip-variant-filled-weak: var(--fill-secondary-weak);
|
|
301
322
|
--chip-variant-filled-weak-foreground: var(--text-on-secondary-weak);
|
|
302
323
|
--chip-variant-filled-weak-hover: var(--fill-secondary-weak-hover);
|
|
303
324
|
--chip-variant-filled-weak-disabled: var(--fill-secondary-weak-disabled);
|
|
304
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
325
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
326
|
+
--text-on-secondary-weak-disabled
|
|
327
|
+
);
|
|
305
328
|
|
|
306
329
|
/* Outlined */
|
|
307
330
|
--chip-variant-outlined: var(--fill-secondary-outlined);
|
|
@@ -309,11 +332,13 @@
|
|
|
309
332
|
--chip-variant-outlined-border: var(--stroke-secondary);
|
|
310
333
|
--chip-variant-outlined-border-disabled: var(--stroke-secondary-disabled);
|
|
311
334
|
--chip-variant-outlined-foreground: var(--text-on-secondary-outlined);
|
|
312
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
335
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
336
|
+
--text-on-secondary-outlined-disabled
|
|
337
|
+
);
|
|
313
338
|
}
|
|
314
339
|
|
|
315
340
|
.noeffect,
|
|
316
|
-
:global(.
|
|
341
|
+
:global(.byline-chip-noeffect) {
|
|
317
342
|
--chip-ring-color: var(--ring-noeffect);
|
|
318
343
|
|
|
319
344
|
/* Filled */
|
|
@@ -321,14 +346,18 @@
|
|
|
321
346
|
--chip-variant-filled-hover: var(--fill-noeffect-strong-hover);
|
|
322
347
|
--chip-variant-filled-disabled: var(--fill-noeffect-strong-disabled);
|
|
323
348
|
--chip-variant-filled-foreground: var(--text-on-noeffect-strong);
|
|
324
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
349
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
350
|
+
--text-on-noeffect-strong-disabled
|
|
351
|
+
);
|
|
325
352
|
|
|
326
353
|
/* Filled Weak */
|
|
327
354
|
--chip-variant-filled-weak: var(--fill-noeffect-weak);
|
|
328
355
|
--chip-variant-filled-weak-hover: var(--fill-noeffect-weak-hover);
|
|
329
356
|
--chip-variant-filled-weak-disabled: var(--fill-noeffect-weak-disabled);
|
|
330
357
|
--chip-variant-filled-weak-foreground: var(--text-on-noeffect-weak);
|
|
331
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
358
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
359
|
+
--text-on-noeffect-weak-disabled
|
|
360
|
+
);
|
|
332
361
|
|
|
333
362
|
/* Outlined */
|
|
334
363
|
--chip-variant-outlined: var(--fill-noeffect-outlined);
|
|
@@ -336,11 +365,13 @@
|
|
|
336
365
|
--chip-variant-outlined-border: var(--stroke-noeffect);
|
|
337
366
|
--chip-variant-outlined-border-disabled: var(--stroke-noeffect-disabled);
|
|
338
367
|
--chip-variant-outlined-foreground: var(--text-on-noeffect-outlined);
|
|
339
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
368
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
369
|
+
--text-on-noeffect-outlined-disabled
|
|
370
|
+
);
|
|
340
371
|
}
|
|
341
372
|
|
|
342
373
|
.success,
|
|
343
|
-
:global(.
|
|
374
|
+
:global(.byline-chip-success) {
|
|
344
375
|
--chip-ring-color: var(--ring-success);
|
|
345
376
|
|
|
346
377
|
/* Filled */
|
|
@@ -348,14 +379,18 @@
|
|
|
348
379
|
--chip-variant-filled-hover: var(--fill-success-strong-hover);
|
|
349
380
|
--chip-variant-filled-disabled: var(--fill-success-strong-disabled);
|
|
350
381
|
--chip-variant-filled-foreground: var(--text-on-success-strong);
|
|
351
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
382
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
383
|
+
--text-on-success-strong-disabled
|
|
384
|
+
);
|
|
352
385
|
|
|
353
386
|
/* Filled Weak */
|
|
354
387
|
--chip-variant-filled-weak: var(--fill-success-weak);
|
|
355
388
|
--chip-variant-filled-weak-hover: var(--fill-success-weak-hover);
|
|
356
389
|
--chip-variant-filled-weak-disabled: var(--fill-success-weak-disabled);
|
|
357
390
|
--chip-variant-filled-weak-foreground: var(--text-on-success-weak);
|
|
358
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
391
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
392
|
+
--text-on-success-weak-disabled
|
|
393
|
+
);
|
|
359
394
|
|
|
360
395
|
/* Outlined */
|
|
361
396
|
--chip-variant-outlined: var(--fill-success-outlined);
|
|
@@ -363,11 +398,13 @@
|
|
|
363
398
|
--chip-variant-outlined-border: var(--stroke-success);
|
|
364
399
|
--chip-variant-outlined-border-disabled: var(--stroke-success-disabled);
|
|
365
400
|
--chip-variant-outlined-foreground: var(--text-on-success-outlined);
|
|
366
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
401
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
402
|
+
--text-on-success-outlined-disabled
|
|
403
|
+
);
|
|
367
404
|
}
|
|
368
405
|
|
|
369
406
|
.info,
|
|
370
|
-
:global(.
|
|
407
|
+
:global(.byline-chip-info) {
|
|
371
408
|
--chip-ring-color: var(--ring-info);
|
|
372
409
|
|
|
373
410
|
/* Filled */
|
|
@@ -375,14 +412,18 @@
|
|
|
375
412
|
--chip-variant-filled-hover: var(--fill-info-strong-hover);
|
|
376
413
|
--chip-variant-filled-disabled: var(--fill-info-strong-disabled);
|
|
377
414
|
--chip-variant-filled-foreground: var(--text-on-info-strong);
|
|
378
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
415
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
416
|
+
--text-on-info-strong-disabled
|
|
417
|
+
);
|
|
379
418
|
|
|
380
419
|
/* Filled Weak */
|
|
381
420
|
--chip-variant-filled-weak: var(--fill-info-weak);
|
|
382
421
|
--chip-variant-filled-weak-hover: var(--fill-info-weak-hover);
|
|
383
422
|
--chip-variant-filled-weak-disabled: var(--fill-info-weak-disabled);
|
|
384
423
|
--chip-variant-filled-weak-foreground: var(--text-on-info-weak);
|
|
385
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
424
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
425
|
+
--text-on-info-weak-disabled
|
|
426
|
+
);
|
|
386
427
|
|
|
387
428
|
/* Outlined */
|
|
388
429
|
--chip-variant-outlined: var(--fill-info-outlined);
|
|
@@ -390,11 +431,13 @@
|
|
|
390
431
|
--chip-variant-outlined-border: var(--stroke-info);
|
|
391
432
|
--chip-variant-outlined-border-disabled: var(--stroke-info-disabled);
|
|
392
433
|
--chip-variant-outlined-foreground: var(--text-on-info-outlined);
|
|
393
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
434
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
435
|
+
--text-on-info-outlined-disabled
|
|
436
|
+
);
|
|
394
437
|
}
|
|
395
438
|
|
|
396
439
|
.warning,
|
|
397
|
-
:global(.
|
|
440
|
+
:global(.byline-chip-warning) {
|
|
398
441
|
--chip-ring-color: var(--ring-warning);
|
|
399
442
|
|
|
400
443
|
/* Filled */
|
|
@@ -402,14 +445,18 @@
|
|
|
402
445
|
--chip-variant-filled-hover: var(--fill-warning-strong-hover);
|
|
403
446
|
--chip-variant-filled-disabled: var(--fill-warning-strong-disabled);
|
|
404
447
|
--chip-variant-filled-foreground: var(--text-on-warning-strong);
|
|
405
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
448
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
449
|
+
--text-on-warning-strong-disabled
|
|
450
|
+
);
|
|
406
451
|
|
|
407
452
|
/* Filled Weak */
|
|
408
453
|
--chip-variant-filled-weak: var(--fill-warning-weak);
|
|
409
454
|
--chip-variant-filled-weak-hover: var(--fill-warning-weak-hover);
|
|
410
455
|
--chip-variant-filled-weak-disabled: var(--fill-warning-weak-disabled);
|
|
411
456
|
--chip-variant-filled-weak-foreground: var(--text-on-warning-weak);
|
|
412
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
457
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
458
|
+
--text-on-warning-weak-disabled
|
|
459
|
+
);
|
|
413
460
|
|
|
414
461
|
/* Outlined */
|
|
415
462
|
--chip-variant-outlined: var(--fill-warning-outlined);
|
|
@@ -417,11 +464,13 @@
|
|
|
417
464
|
--chip-variant-outlined-border: var(--stroke-warning);
|
|
418
465
|
--chip-variant-outlined-border-disabled: var(--stroke-warning-disabled);
|
|
419
466
|
--chip-variant-outlined-foreground: var(--text-on-warning-outlined);
|
|
420
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
467
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
468
|
+
--text-on-warning-outlined-disabled
|
|
469
|
+
);
|
|
421
470
|
}
|
|
422
471
|
|
|
423
472
|
.danger,
|
|
424
|
-
:global(.
|
|
473
|
+
:global(.byline-chip-danger) {
|
|
425
474
|
--chip-ring-color: var(--ring-danger);
|
|
426
475
|
|
|
427
476
|
/* Filled */
|
|
@@ -429,14 +478,18 @@
|
|
|
429
478
|
--chip-variant-filled-hover: var(--fill-danger-strong-hover);
|
|
430
479
|
--chip-variant-filled-disabled: var(--fill-danger-strong-disabled);
|
|
431
480
|
--chip-variant-filled-foreground: var(--text-on-danger-strong);
|
|
432
|
-
--chip-variant-filled-foreground-disabled: var(
|
|
481
|
+
--chip-variant-filled-foreground-disabled: var(
|
|
482
|
+
--text-on-danger-strong-disabled
|
|
483
|
+
);
|
|
433
484
|
|
|
434
485
|
/* Filled Weak */
|
|
435
486
|
--chip-variant-filled-weak: var(--fill-danger-weak);
|
|
436
487
|
--chip-variant-filled-weak-hover: var(--fill-danger-weak-hover);
|
|
437
488
|
--chip-variant-filled-weak-disabled: var(--fill-danger-weak-disabled);
|
|
438
489
|
--chip-variant-filled-weak-foreground: var(--text-on-danger-weak);
|
|
439
|
-
--chip-variant-filled-weak-foreground-disabled: var(
|
|
490
|
+
--chip-variant-filled-weak-foreground-disabled: var(
|
|
491
|
+
--text-on-danger-weak-disabled
|
|
492
|
+
);
|
|
440
493
|
|
|
441
494
|
/* Outlined */
|
|
442
495
|
--chip-variant-outlined: transparent;
|
|
@@ -444,6 +497,8 @@
|
|
|
444
497
|
--chip-variant-outlined-border: var(--stroke-danger);
|
|
445
498
|
--chip-variant-outlined-border-disabled: var(--stroke-danger-disabled);
|
|
446
499
|
--chip-variant-outlined-foreground: var(--text-on-danger-outlined);
|
|
447
|
-
--chip-variant-outlined-foreground-disabled: var(
|
|
500
|
+
--chip-variant-outlined-foreground-disabled: var(
|
|
501
|
+
--text-on-danger-outlined-disabled
|
|
502
|
+
);
|
|
448
503
|
}
|
|
449
504
|
}
|
|
@@ -138,7 +138,7 @@ export const Chip = ({
|
|
|
138
138
|
onClick={handleRemoveClick}
|
|
139
139
|
onKeyDown={handleRemoveKeyDown}
|
|
140
140
|
>
|
|
141
|
-
<CloseIcon className={cx('
|
|
141
|
+
<CloseIcon className={cx('byline-chip-close-icon', styles.icon, styles['close-icon'])} />
|
|
142
142
|
</button>
|
|
143
143
|
) : (
|
|
144
144
|
endIcon
|
|
@@ -154,10 +154,10 @@ export const Chip = ({
|
|
|
154
154
|
'aria-pressed': isSelectable ? isSelected : undefined,
|
|
155
155
|
'aria-selected': isSelectable ? isSelected : undefined,
|
|
156
156
|
className: cx(
|
|
157
|
-
'
|
|
158
|
-
`
|
|
159
|
-
`
|
|
160
|
-
`
|
|
157
|
+
'byline-chip',
|
|
158
|
+
`byline-chip-${variant}`,
|
|
159
|
+
`byline-chip-${intent}`,
|
|
160
|
+
`byline-chip-${size}`,
|
|
161
161
|
{ selected: isSelected, disabled, removable: isRemovable },
|
|
162
162
|
styles.chip,
|
|
163
163
|
styles[appliedVariant],
|
|
@@ -171,15 +171,11 @@ export const Chip = ({
|
|
|
171
171
|
children: (
|
|
172
172
|
<>
|
|
173
173
|
{leadingIcon != null && (
|
|
174
|
-
<span className={cx('
|
|
175
|
-
{leadingIcon}
|
|
176
|
-
</span>
|
|
174
|
+
<span className={cx('byline-chip-icon-wrapper', styles.iconWrapper)}>{leadingIcon}</span>
|
|
177
175
|
)}
|
|
178
|
-
<span className={cx('
|
|
176
|
+
<span className={cx('byline-chip-label', styles.label)}>{children}</span>
|
|
179
177
|
{trailingIcon != null && (
|
|
180
|
-
<span className={cx('
|
|
181
|
-
{trailingIcon}
|
|
182
|
-
</span>
|
|
178
|
+
<span className={cx('byline-chip-icon-wrapper', styles.iconWrapper)}>{trailingIcon}</span>
|
|
183
179
|
)}
|
|
184
180
|
</>
|
|
185
181
|
),
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.container,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-container) {
|
|
15
15
|
width: 100%;
|
|
16
16
|
padding: 0 1rem;
|
|
17
17
|
margin: 0 auto;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/* Large */
|
|
23
23
|
@media (min-width: 66rem) {
|
|
24
24
|
.container,
|
|
25
|
-
:global(.
|
|
25
|
+
:global(.byline-container) {
|
|
26
26
|
max-width: 64rem;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
/* X-Large */
|
|
31
31
|
@media (min-width: 77rem) {
|
|
32
32
|
.container,
|
|
33
|
-
:global(.
|
|
33
|
+
:global(.byline-container) {
|
|
34
34
|
max-width: 74.375rem;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
/* 2X-Large */
|
|
39
39
|
@media (min-width: 94rem) {
|
|
40
40
|
.container,
|
|
41
|
-
:global(.
|
|
41
|
+
:global(.byline-container) {
|
|
42
42
|
max-width: 87.5rem;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -16,7 +16,7 @@ export const Container = function Container({
|
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement>
|
|
17
17
|
}): React.JSX.Element {
|
|
18
18
|
return (
|
|
19
|
-
<div ref={ref} {...rest} className={cx('
|
|
19
|
+
<div ref={ref} {...rest} className={cx('byline-container', styles.container, className)}>
|
|
20
20
|
{children}
|
|
21
21
|
</div>
|
|
22
22
|
)
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.dropdown-content,
|
|
14
14
|
.dropdown-subcontent,
|
|
15
|
-
:global(.
|
|
16
|
-
:global(.
|
|
15
|
+
:global(.byline-dropdown-content),
|
|
16
|
+
:global(.byline-dropdown-subcontent) {
|
|
17
17
|
z-index: 20;
|
|
18
18
|
background-color: var(--surface-panel-elevated);
|
|
19
19
|
padding: 4px;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.dropdown-item,
|
|
47
|
-
:global(.
|
|
47
|
+
:global(.byline-dropdown-item) {
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
gap: var(--gap-1);
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
.dropdown-item:hover,
|
|
64
64
|
.dropdown-item:focus,
|
|
65
65
|
.dropdown-item[data-highlighted],
|
|
66
|
-
:global(.
|
|
67
|
-
:global(.
|
|
68
|
-
:global(.
|
|
66
|
+
:global(.byline-dropdown-item):hover,
|
|
67
|
+
:global(.byline-dropdown-item):focus,
|
|
68
|
+
:global(.byline-dropdown-item)[data-highlighted] {
|
|
69
69
|
background-color: var(--surface-item-hover);
|
|
70
70
|
color: var(--surface-item-text-hover);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.dropdown-separator,
|
|
74
|
-
:global(.
|
|
74
|
+
:global(.byline-dropdown-separator) {
|
|
75
75
|
width: 90%;
|
|
76
76
|
background-color: var(--surface-panel-border);
|
|
77
77
|
margin: var(--spacing-4) 0;
|