@lt-ui/uikit 0.0.1 → 0.0.2
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/_internal/base-button/styles.module.css +1 -1
- package/_internal/field/_motion.css +0 -0
- package/_internal/field/field.module.css +21 -23
- package/_internal/picker/picker-field.module.css +1 -1
- package/_internal/picker/picker-sheet.module.css +1 -1
- package/accordion/styles.module.css +3 -4
- package/alert/styles/alert.module.css +8 -8
- package/avatar/avatar-group.module.css +1 -1
- package/avatar/styles.module.css +3 -3
- package/badge/styles.module.css +3 -3
- package/breadcrumbs/styles.module.css +4 -4
- package/button/styles.module.css +7 -7
- package/calendar/styles.module.css +11 -11
- package/caption/styles.module.css +1 -1
- package/checkbox/styles/style.module.css +10 -12
- package/chip/styles.module.css +3 -3
- package/cjs/_internal/base-button/styles.module.css +1 -1
- package/cjs/_internal/field/_motion.css +0 -0
- package/cjs/_internal/field/field.module.css +21 -23
- package/cjs/_internal/picker/picker-field.module.css +1 -1
- package/cjs/_internal/picker/picker-sheet.module.css +1 -1
- package/cjs/accordion/styles.module.css +3 -4
- package/cjs/alert/styles/alert.module.css +8 -8
- package/cjs/avatar/avatar-group.module.css +1 -1
- package/cjs/avatar/styles.module.css +3 -3
- package/cjs/badge/styles.module.css +3 -3
- package/cjs/breadcrumbs/styles.module.css +4 -4
- package/cjs/button/styles.module.css +7 -7
- package/cjs/calendar/styles.module.css +11 -11
- package/cjs/caption/styles.module.css +1 -1
- package/cjs/checkbox/styles/style.module.css +10 -12
- package/cjs/chip/styles.module.css +3 -3
- package/cjs/date-picker/styles.module.css +10 -10
- package/cjs/drawer/styles.module.css +10 -12
- package/cjs/file/styles.module.css +3 -4
- package/cjs/hint/styles/buttons.module.css +2 -2
- package/cjs/hint/styles/hint-content.module.css +3 -3
- package/cjs/hint/styles/hint.module.css +2 -2
- package/cjs/image/viewer.module.css +1 -1
- package/cjs/list/list-divider/styles.module.css +2 -2
- package/cjs/list/list-item/styles.module.css +2 -2
- package/cjs/list/list-section/styles.module.css +4 -4
- package/cjs/modal/styles/modal-footer.module.css +3 -3
- package/cjs/modal/styles/modal-header.module.css +5 -5
- package/cjs/modal/styles/modal.module.css +2 -2
- package/cjs/navigation/navigation.js +2 -1
- package/cjs/navigation/styles/navigation.module.css +96 -81
- package/cjs/pagination/styles.module.css +2 -2
- package/cjs/pin-input/styles.module.css +2 -2
- package/cjs/progress-bar/styles.module.css +1 -1
- package/cjs/quantity-input/styles.module.css +3 -3
- package/cjs/radio/styles.module.css +4 -5
- package/cjs/radio-group/styles.module.css +1 -1
- package/cjs/segmented-control/styles/segmented-control-item.module.css +9 -9
- package/cjs/segmented-control/styles/segmented-control.module.css +4 -4
- package/cjs/select/components/select-field-multiselect-value.js +2 -2
- package/cjs/select/components/select-field.js +8 -6
- package/cjs/select/hooks/use-select-view-model.js +3 -1
- package/cjs/select/styles/select-field.module.css +20 -1
- package/cjs/select/styles/select.module.css +2 -2
- package/cjs/select/views/select-view.js +2 -2
- package/cjs/select/views/styles.module.css +1 -1
- package/cjs/snackbar/styles/snack.module.css +1 -1
- package/cjs/switch/styles/base.module.css +2 -2
- package/cjs/tabs/styles/tab-list.module.css +1 -1
- package/cjs/tabs/styles/tab.module.css +6 -6
- package/cjs/textarea/styles.module.css +1 -1
- package/cjs/theme-provider/styles.module.css +6 -6
- package/cjs/time-picker/styles.module.css +9 -9
- package/cjs/tree/styles.module.css +5 -5
- package/cjs/tree/tree-select.module.css +2 -2
- package/date-picker/styles.module.css +10 -10
- package/drawer/styles.module.css +10 -12
- package/file/styles.module.css +3 -4
- package/hint/styles/buttons.module.css +2 -2
- package/hint/styles/hint-content.module.css +3 -3
- package/hint/styles/hint.module.css +2 -2
- package/image/viewer.module.css +1 -1
- package/list/list-divider/styles.module.css +2 -2
- package/list/list-item/styles.module.css +2 -2
- package/list/list-section/styles.module.css +4 -4
- package/modal/styles/modal-footer.module.css +3 -3
- package/modal/styles/modal-header.module.css +5 -5
- package/modal/styles/modal.module.css +2 -2
- package/navigation/navigation.d.ts +1 -0
- package/navigation/navigation.js +2 -1
- package/navigation/styles/navigation.module.css +96 -81
- package/navigation/types.d.ts +2 -2
- package/package.json +6 -2
- package/pagination/styles.module.css +2 -2
- package/pin-input/styles.module.css +2 -2
- package/progress-bar/styles.module.css +1 -1
- package/quantity-input/styles.module.css +3 -3
- package/radio/styles.module.css +4 -5
- package/radio-group/styles.module.css +1 -1
- package/scss/_functions.scss +12 -24
- package/scss/_grid.scss +2 -2
- package/scss/_index.scss +1 -6
- package/scss/_interaction.scss +3 -3
- package/scss/_mixins.scss +5 -51
- package/scss/_tokens.generated.scss +578 -0
- package/scss/_tokens.scss +2 -396
- package/scss/_typography.scss +0 -1
- package/segmented-control/styles/segmented-control-item.module.css +9 -9
- package/segmented-control/styles/segmented-control.module.css +4 -4
- package/select/components/select-field-multiselect-value.d.ts +1 -0
- package/select/components/select-field-multiselect-value.js +2 -2
- package/select/components/select-field.d.ts +3 -1
- package/select/components/select-field.js +8 -6
- package/select/hooks/use-select-view-model.d.ts +3 -1
- package/select/hooks/use-select-view-model.js +3 -1
- package/select/select.d.ts +2 -1
- package/select/styles/select-field.module.css +20 -1
- package/select/styles/select.module.css +2 -2
- package/select/types.d.ts +3 -1
- package/select/views/select-view.js +2 -2
- package/select/views/styles.module.css +1 -1
- package/snackbar/styles/snack.module.css +1 -1
- package/switch/styles/base.module.css +2 -2
- package/tabs/styles/tab-list.module.css +1 -1
- package/tabs/styles/tab.module.css +6 -6
- package/textarea/styles.module.css +1 -1
- package/theme-provider/styles.module.css +6 -6
- package/time-picker/styles.module.css +9 -9
- package/tree/styles.module.css +5 -5
- package/tree/tree-select.module.css +2 -2
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
.navigation,
|
|
2
2
|
.flyout {
|
|
3
3
|
--navigation-item-height: var(--lt-ui-navigation-item-height-m, var(--control-height-m));
|
|
4
|
-
--navigation-icon-size:
|
|
5
|
-
--navigation-padding:
|
|
6
|
-
--navigation-gap: 12px;
|
|
7
|
-
--navigation-indent: calc(var(--navigation-icon-size) + var(--navigation-gap));
|
|
8
|
-
--navigation-bg: var(--lt-ui-navigation-bg, var(--background-primary));
|
|
9
|
-
--navigation-text: var(--lt-ui-navigation-color, var(--text-secondary));
|
|
10
|
-
--navigation-text-strong: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
11
|
-
--navigation-hover-bg: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
12
|
-
--navigation-selected-bg: var(--lt-ui-navigation-selected-bg, var(--accent-light));
|
|
13
|
-
--navigation-accent: var(--lt-ui-navigation-accent, var(--control-accent));
|
|
14
|
-
--navigation-border: var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
15
|
-
--navigation-rounding: var(--lt-ui-navigation-radius, var(--rounding-m));
|
|
4
|
+
--navigation-icon-size: var(--space-20);
|
|
5
|
+
--navigation-padding: var(--space-12);
|
|
16
6
|
box-sizing: border-box;
|
|
17
|
-
color: var(--navigation-text);
|
|
7
|
+
color: var(--lt-ui-navigation-color, var(--text-secondary));
|
|
18
8
|
}
|
|
19
9
|
.navigation[data-size=s], .navigation.sizeS,
|
|
20
10
|
.flyout[data-size=s],
|
|
21
11
|
.flyout.sizeS {
|
|
22
12
|
--navigation-item-height: var(--lt-ui-navigation-item-height-s, var(--control-height-s));
|
|
23
|
-
--navigation-icon-size:
|
|
24
|
-
--navigation-padding:
|
|
13
|
+
--navigation-icon-size: var(--space-16);
|
|
14
|
+
--navigation-padding: var(--space-8);
|
|
15
|
+
}
|
|
16
|
+
.navigation[data-size=m], .navigation.sizeM,
|
|
17
|
+
.flyout[data-size=m],
|
|
18
|
+
.flyout.sizeM {
|
|
19
|
+
--navigation-item-height: var(--lt-ui-navigation-item-height-m, var(--control-height-m));
|
|
20
|
+
--navigation-icon-size: var(--space-20);
|
|
21
|
+
--navigation-padding: var(--space-12);
|
|
25
22
|
}
|
|
26
23
|
.navigation[data-size=l], .navigation.sizeL,
|
|
27
24
|
.flyout[data-size=l],
|
|
28
25
|
.flyout.sizeL {
|
|
29
26
|
--navigation-item-height: var(--lt-ui-navigation-item-height-l, var(--control-height-l));
|
|
30
|
-
--navigation-icon-size:
|
|
31
|
-
--navigation-padding:
|
|
27
|
+
--navigation-icon-size: var(--space-24);
|
|
28
|
+
--navigation-padding: var(--space-16);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
.expanded,
|
|
35
32
|
.rail {
|
|
36
33
|
height: 100%;
|
|
37
|
-
background: var(--navigation-bg);
|
|
38
|
-
border-inline-end: 1px solid var(--navigation-border);
|
|
39
|
-
transition: width
|
|
34
|
+
background: var(--lt-ui-navigation-bg, var(--background-primary));
|
|
35
|
+
border-inline-end: 1px solid var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
36
|
+
transition: width 200ms ease-in-out;
|
|
40
37
|
}
|
|
41
38
|
@media (prefers-reduced-motion: reduce) {
|
|
42
39
|
.expanded,
|
|
@@ -62,7 +59,7 @@
|
|
|
62
59
|
|
|
63
60
|
.header {
|
|
64
61
|
flex: none;
|
|
65
|
-
padding:
|
|
62
|
+
padding: var(--space-16) var(--navigation-padding);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
.header,
|
|
@@ -76,14 +73,14 @@
|
|
|
76
73
|
.scroll {
|
|
77
74
|
flex: 1;
|
|
78
75
|
min-height: 0;
|
|
79
|
-
padding:
|
|
76
|
+
padding: var(--space-8);
|
|
80
77
|
overflow: hidden auto;
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
.footer {
|
|
84
81
|
flex: none;
|
|
85
|
-
padding:
|
|
86
|
-
border-block-start: 1px solid var(--navigation-border);
|
|
82
|
+
padding: var(--space-8) var(--navigation-padding);
|
|
83
|
+
border-block-start: 1px solid var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
.toggle::-moz-focus-inner {
|
|
@@ -115,11 +112,11 @@
|
|
|
115
112
|
align-items: center;
|
|
116
113
|
justify-content: center;
|
|
117
114
|
height: var(--navigation-item-height);
|
|
118
|
-
margin:
|
|
119
|
-
color: var(--navigation-text);
|
|
115
|
+
margin: var(--space-8);
|
|
116
|
+
color: var(--lt-ui-navigation-color, var(--text-secondary));
|
|
120
117
|
background: transparent;
|
|
121
118
|
border: 0;
|
|
122
|
-
border-radius: var(--navigation-rounding);
|
|
119
|
+
border-radius: var(--lt-ui-navigation-radius, var(--rounding-m));
|
|
123
120
|
}
|
|
124
121
|
.toggle > svg {
|
|
125
122
|
--icon-color: currentColor;
|
|
@@ -128,13 +125,13 @@
|
|
|
128
125
|
}
|
|
129
126
|
@media (hover: hover) and (min-width: 768px) {
|
|
130
127
|
.toggle:hover {
|
|
131
|
-
color: var(--navigation-text-
|
|
132
|
-
background: var(--navigation-hover-bg);
|
|
128
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
129
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
.toggle:active {
|
|
136
|
-
color: var(--navigation-text-
|
|
137
|
-
background: var(--navigation-hover-bg);
|
|
133
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
134
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
.list {
|
|
@@ -150,7 +147,7 @@
|
|
|
150
147
|
.group + .group,
|
|
151
148
|
.item + .group,
|
|
152
149
|
.group + .item {
|
|
153
|
-
margin-block-start:
|
|
150
|
+
margin-block-start: var(--space-16);
|
|
154
151
|
}
|
|
155
152
|
|
|
156
153
|
.group {
|
|
@@ -159,7 +156,7 @@
|
|
|
159
156
|
|
|
160
157
|
.groupTitle {
|
|
161
158
|
display: block;
|
|
162
|
-
padding:
|
|
159
|
+
padding: var(--space-8) var(--navigation-padding);
|
|
163
160
|
color: var(--text-minor);
|
|
164
161
|
font-size: 13px;
|
|
165
162
|
font-weight: 600;
|
|
@@ -169,9 +166,9 @@
|
|
|
169
166
|
|
|
170
167
|
.divider {
|
|
171
168
|
height: 1px;
|
|
172
|
-
margin:
|
|
169
|
+
margin: var(--space-8) var(--navigation-padding);
|
|
173
170
|
list-style: none;
|
|
174
|
-
background: var(--navigation-border);
|
|
171
|
+
background: var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
.control::-moz-focus-inner {
|
|
@@ -200,44 +197,53 @@
|
|
|
200
197
|
-webkit-tap-highlight-color: transparent;
|
|
201
198
|
box-sizing: border-box;
|
|
202
199
|
display: flex;
|
|
203
|
-
gap: var(--
|
|
200
|
+
gap: var(--space-12);
|
|
204
201
|
align-items: center;
|
|
205
202
|
width: 100%;
|
|
206
203
|
min-height: var(--navigation-item-height);
|
|
207
204
|
padding-block: 0;
|
|
208
|
-
padding-inline: calc(var(--navigation-padding) + var(--navigation-level, 0) * var(--navigation-
|
|
209
|
-
color: var(--navigation-text);
|
|
205
|
+
padding-inline: calc(var(--navigation-padding) + var(--navigation-level, 0) * (var(--navigation-icon-size) + var(--space-12))) var(--navigation-padding);
|
|
206
|
+
color: var(--lt-ui-navigation-color, var(--text-secondary));
|
|
210
207
|
text-align: start;
|
|
211
208
|
background: transparent;
|
|
212
209
|
border: 0;
|
|
213
|
-
border-radius: var(--navigation-rounding);
|
|
214
|
-
transition: background-color
|
|
210
|
+
border-radius: var(--lt-ui-navigation-radius, var(--rounding-m));
|
|
211
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
|
|
215
212
|
font-size: 17px;
|
|
216
213
|
font-weight: 600;
|
|
217
214
|
line-height: 1.2941176471;
|
|
218
215
|
letter-spacing: 0.2px;
|
|
219
216
|
}
|
|
217
|
+
:is(.navigation, .flyout)[data-size=s] .control, .sizeS .control {
|
|
218
|
+
font-size: 15px;
|
|
219
|
+
font-weight: 400;
|
|
220
|
+
line-height: 1.3333333333;
|
|
221
|
+
letter-spacing: 0.2px;
|
|
222
|
+
}
|
|
223
|
+
.navigation[data-label-lines="2"]:is([data-layout=expanded], [data-layout=drawer]) .control {
|
|
224
|
+
padding-block: var(--space-8);
|
|
225
|
+
}
|
|
220
226
|
@media (hover: hover) and (min-width: 768px) {
|
|
221
227
|
.control:hover {
|
|
222
|
-
color: var(--navigation-text-
|
|
223
|
-
background: var(--navigation-hover-bg);
|
|
228
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
229
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
224
230
|
}
|
|
225
231
|
}
|
|
226
232
|
.control:active {
|
|
227
|
-
color: var(--navigation-text-
|
|
228
|
-
background: var(--navigation-hover-bg);
|
|
233
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
234
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
229
235
|
}
|
|
230
236
|
.control:disabled, .control[aria-disabled=true] {
|
|
231
237
|
pointer-events: none;
|
|
232
238
|
opacity: 0.4;
|
|
233
239
|
}
|
|
234
240
|
.control.inPath {
|
|
235
|
-
color: var(--navigation-text-
|
|
241
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
236
242
|
}
|
|
237
243
|
.control.selected, .control[data-hidden-selection] {
|
|
238
|
-
color: var(--navigation-text-
|
|
239
|
-
background: var(--navigation-selected-bg);
|
|
240
|
-
box-shadow: inset 3px 0 0 var(--navigation-accent);
|
|
244
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
245
|
+
background: var(--lt-ui-navigation-selected-bg, var(--accent-light));
|
|
246
|
+
box-shadow: inset 3px 0 0 var(--lt-ui-navigation-accent, var(--control-accent));
|
|
241
247
|
}
|
|
242
248
|
@media (prefers-reduced-motion: reduce) {
|
|
243
249
|
.control {
|
|
@@ -267,6 +273,15 @@
|
|
|
267
273
|
text-overflow: ellipsis;
|
|
268
274
|
white-space: nowrap;
|
|
269
275
|
}
|
|
276
|
+
.selected .label {
|
|
277
|
+
font-weight: 600;
|
|
278
|
+
}
|
|
279
|
+
.navigation[data-label-lines="2"]:is([data-layout=expanded], [data-layout=drawer]) .label {
|
|
280
|
+
display: -webkit-box;
|
|
281
|
+
-webkit-line-clamp: 2;
|
|
282
|
+
white-space: normal;
|
|
283
|
+
-webkit-box-orient: vertical;
|
|
284
|
+
}
|
|
270
285
|
|
|
271
286
|
.labelHidden {
|
|
272
287
|
position: absolute !important;
|
|
@@ -285,16 +300,16 @@
|
|
|
285
300
|
|
|
286
301
|
.badgeCorner {
|
|
287
302
|
position: absolute;
|
|
288
|
-
inset-block-start: -
|
|
289
|
-
inset-inline-start: calc(100% -
|
|
303
|
+
inset-block-start: calc(-1 * var(--space-8));
|
|
304
|
+
inset-inline-start: calc(100% - var(--space-8));
|
|
290
305
|
line-height: 0;
|
|
291
306
|
pointer-events: none;
|
|
292
307
|
}
|
|
293
308
|
|
|
294
309
|
.nestedMark {
|
|
295
310
|
position: absolute;
|
|
296
|
-
inset-block-end: -
|
|
297
|
-
inset-inline-end: -
|
|
311
|
+
inset-block-end: calc(-1 * var(--space-4));
|
|
312
|
+
inset-inline-end: calc(-1 * var(--space-8));
|
|
298
313
|
width: 0;
|
|
299
314
|
height: 0;
|
|
300
315
|
border-block-end: 6px solid currentColor;
|
|
@@ -305,10 +320,10 @@
|
|
|
305
320
|
.chevron {
|
|
306
321
|
display: inline-flex;
|
|
307
322
|
flex: none;
|
|
308
|
-
width:
|
|
309
|
-
height:
|
|
323
|
+
width: var(--space-16);
|
|
324
|
+
height: var(--space-16);
|
|
310
325
|
margin-inline-start: auto;
|
|
311
|
-
transition: transform
|
|
326
|
+
transition: transform 200ms ease-in-out;
|
|
312
327
|
}
|
|
313
328
|
.chevron > svg {
|
|
314
329
|
--icon-color: currentColor;
|
|
@@ -326,8 +341,8 @@
|
|
|
326
341
|
}
|
|
327
342
|
|
|
328
343
|
.railControl.inPath[data-path] {
|
|
329
|
-
background: var(--navigation-selected-bg);
|
|
330
|
-
box-shadow: inset 3px 0 0 var(--navigation-accent);
|
|
344
|
+
background: var(--lt-ui-navigation-selected-bg, var(--accent-light));
|
|
345
|
+
box-shadow: inset 3px 0 0 var(--lt-ui-navigation-accent, var(--control-accent));
|
|
331
346
|
}
|
|
332
347
|
|
|
333
348
|
.panelList {
|
|
@@ -352,28 +367,28 @@
|
|
|
352
367
|
inset-inline: var(--navigation-padding);
|
|
353
368
|
height: 1px;
|
|
354
369
|
content: "";
|
|
355
|
-
background: var(--navigation-border);
|
|
370
|
+
background: var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
356
371
|
}
|
|
357
372
|
|
|
358
373
|
.bar,
|
|
359
374
|
.bottom {
|
|
360
|
-
background: var(--navigation-bg);
|
|
375
|
+
background: var(--lt-ui-navigation-bg, var(--background-primary));
|
|
361
376
|
}
|
|
362
377
|
|
|
363
378
|
.bar {
|
|
364
|
-
border-block-end: 1px solid var(--navigation-border);
|
|
379
|
+
border-block-end: 1px solid var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
365
380
|
}
|
|
366
381
|
|
|
367
382
|
.bottom {
|
|
368
383
|
padding-block-end: env(safe-area-inset-bottom);
|
|
369
|
-
border-block-start: 1px solid var(--navigation-border);
|
|
384
|
+
border-block-start: 1px solid var(--lt-ui-navigation-border-color, var(--background-secondary));
|
|
370
385
|
}
|
|
371
386
|
|
|
372
387
|
.row {
|
|
373
388
|
display: flex;
|
|
374
389
|
flex-wrap: nowrap;
|
|
375
390
|
min-width: 0;
|
|
376
|
-
padding: 0
|
|
391
|
+
padding: 0 var(--space-8);
|
|
377
392
|
margin: 0;
|
|
378
393
|
overflow: hidden;
|
|
379
394
|
list-style: none;
|
|
@@ -394,7 +409,7 @@
|
|
|
394
409
|
}
|
|
395
410
|
.barControl.selected, .barControl.inPath[data-path] {
|
|
396
411
|
background: transparent;
|
|
397
|
-
box-shadow: inset 0 -3px 0 var(--navigation-accent);
|
|
412
|
+
box-shadow: inset 0 -3px 0 var(--lt-ui-navigation-accent, var(--control-accent));
|
|
398
413
|
}
|
|
399
414
|
|
|
400
415
|
.bottomList {
|
|
@@ -404,12 +419,12 @@
|
|
|
404
419
|
.bottomControl {
|
|
405
420
|
position: relative;
|
|
406
421
|
flex-direction: column;
|
|
407
|
-
gap:
|
|
422
|
+
gap: var(--space-2);
|
|
408
423
|
justify-content: center;
|
|
409
424
|
width: auto;
|
|
410
|
-
min-width:
|
|
425
|
+
min-width: var(--space-64);
|
|
411
426
|
min-height: 56px;
|
|
412
|
-
padding: 6px
|
|
427
|
+
padding: 6px var(--space-8);
|
|
413
428
|
border-radius: 0;
|
|
414
429
|
font-size: 13px;
|
|
415
430
|
font-weight: 400;
|
|
@@ -421,7 +436,7 @@
|
|
|
421
436
|
}
|
|
422
437
|
.bottomControl.selected, .bottomControl.inPath[data-path] {
|
|
423
438
|
background: transparent;
|
|
424
|
-
box-shadow: inset 0 3px 0 var(--navigation-accent);
|
|
439
|
+
box-shadow: inset 0 3px 0 var(--lt-ui-navigation-accent, var(--control-accent));
|
|
425
440
|
}
|
|
426
441
|
|
|
427
442
|
.burger::-moz-focus-inner {
|
|
@@ -454,23 +469,23 @@
|
|
|
454
469
|
width: var(--navigation-item-height);
|
|
455
470
|
height: var(--navigation-item-height);
|
|
456
471
|
font-size: var(--navigation-icon-size);
|
|
457
|
-
color: var(--navigation-text-
|
|
472
|
+
color: var(--lt-ui-navigation-active-color, var(--text-primary));
|
|
458
473
|
background: transparent;
|
|
459
474
|
border: 0;
|
|
460
|
-
border-radius: var(--navigation-rounding);
|
|
475
|
+
border-radius: var(--lt-ui-navigation-radius, var(--rounding-m));
|
|
461
476
|
}
|
|
462
477
|
@media (hover: hover) and (min-width: 768px) {
|
|
463
478
|
.burger:hover {
|
|
464
|
-
background: var(--navigation-hover-bg);
|
|
479
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
465
480
|
}
|
|
466
481
|
}
|
|
467
482
|
.burger:active {
|
|
468
|
-
background: var(--navigation-hover-bg);
|
|
483
|
+
background: var(--lt-ui-navigation-hover-bg, var(--background-secondary));
|
|
469
484
|
}
|
|
470
485
|
|
|
471
486
|
.drawerPanel {
|
|
472
487
|
height: 100%;
|
|
473
|
-
background: var(--navigation-bg);
|
|
488
|
+
background: var(--lt-ui-navigation-bg, var(--background-primary));
|
|
474
489
|
}
|
|
475
490
|
|
|
476
491
|
.drawerInContainer.drawerInContainer {
|
|
@@ -480,7 +495,7 @@
|
|
|
480
495
|
|
|
481
496
|
.drawerBar {
|
|
482
497
|
display: flex;
|
|
483
|
-
gap:
|
|
498
|
+
gap: var(--space-8);
|
|
484
499
|
align-items: center;
|
|
485
500
|
}
|
|
486
501
|
.drawerBar[data-burger=end] {
|
|
@@ -504,10 +519,10 @@
|
|
|
504
519
|
.drawerHeader {
|
|
505
520
|
display: flex;
|
|
506
521
|
flex: none;
|
|
507
|
-
gap:
|
|
522
|
+
gap: var(--space-8);
|
|
508
523
|
align-items: center;
|
|
509
524
|
justify-content: space-between;
|
|
510
|
-
padding:
|
|
525
|
+
padding: var(--space-8) var(--space-8) var(--space-8) 0;
|
|
511
526
|
}
|
|
512
527
|
.drawerHeader .header {
|
|
513
528
|
flex: 1;
|
|
@@ -517,12 +532,12 @@
|
|
|
517
532
|
.flyout {
|
|
518
533
|
min-width: 220px;
|
|
519
534
|
max-width: 320px;
|
|
520
|
-
padding:
|
|
535
|
+
padding: var(--space-8);
|
|
521
536
|
border-radius: var(--rounding-l);
|
|
522
537
|
}
|
|
523
538
|
|
|
524
539
|
.flyoutTitle {
|
|
525
|
-
padding:
|
|
540
|
+
padding: var(--space-8) var(--space-12);
|
|
526
541
|
color: var(--text-minor);
|
|
527
542
|
font-size: 13px;
|
|
528
543
|
font-weight: 600;
|
|
@@ -538,15 +553,15 @@
|
|
|
538
553
|
|
|
539
554
|
.navigation[data-indicator=fill] .barControl,
|
|
540
555
|
.navigation[data-indicator=fill] .bottomControl {
|
|
541
|
-
border-radius: var(--navigation-rounding);
|
|
556
|
+
border-radius: var(--lt-ui-navigation-radius, var(--rounding-m));
|
|
542
557
|
}
|
|
543
558
|
.navigation[data-indicator=fill] .barControl.selected, .navigation[data-indicator=fill] .barControl.inPath[data-path],
|
|
544
559
|
.navigation[data-indicator=fill] .bottomControl.selected,
|
|
545
560
|
.navigation[data-indicator=fill] .bottomControl.inPath[data-path] {
|
|
546
|
-
background: var(--navigation-selected-bg);
|
|
561
|
+
background: var(--lt-ui-navigation-selected-bg, var(--accent-light));
|
|
547
562
|
box-shadow: none;
|
|
548
563
|
}
|
|
549
564
|
.navigation[data-indicator=fill] .row {
|
|
550
|
-
gap:
|
|
551
|
-
padding: 6px
|
|
565
|
+
gap: var(--space-4);
|
|
566
|
+
padding: 6px var(--space-8);
|
|
552
567
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.pagination {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
|
-
gap:
|
|
4
|
+
gap: var(--space-12) var(--space-24);
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
width: 100%;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
.pageSize {
|
|
76
76
|
--field-default-width: 96px;
|
|
77
77
|
display: flex;
|
|
78
|
-
gap:
|
|
78
|
+
gap: var(--space-8);
|
|
79
79
|
align-items: center;
|
|
80
80
|
min-width: 96px;
|
|
81
81
|
}
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
--input-transform-left: 7px;
|
|
32
32
|
}
|
|
33
33
|
.input.underline.s {
|
|
34
|
-
--input-left-padding:
|
|
35
|
-
--input-right-padding:
|
|
34
|
+
--input-left-padding: var(--space-4);
|
|
35
|
+
--input-right-padding: var(--space-4);
|
|
36
36
|
}
|
|
37
37
|
.input.underline.m {
|
|
38
38
|
--input-left-padding: 9px;
|
|
39
|
-
--input-right-padding:
|
|
39
|
+
--input-right-padding: var(--space-8);
|
|
40
40
|
}
|
|
41
41
|
.input.underline.l {
|
|
42
42
|
--input-left-padding: 10px;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
--outer-color: var(--lt-ui-radio-border-color, var(--control-secondary));
|
|
11
11
|
--inner-color: var(--lt-ui-radio-color, var(--control-primary));
|
|
12
12
|
--inner-width: 0px;
|
|
13
|
-
--transition-duration: 350ms;
|
|
14
13
|
}
|
|
15
14
|
.radioIcon.m {
|
|
16
15
|
--size: var(--lt-ui-radio-size-m, 20px);
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
content: "";
|
|
40
39
|
border-radius: var(--rounding-circular);
|
|
41
40
|
box-shadow: 0 0 0 var(--inner-width) var(--inner-color) inset;
|
|
42
|
-
transition: box-shadow
|
|
41
|
+
transition: box-shadow 350ms cubic-bezier(0.4, 0, 0.5, 2.6);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.inputInner {
|
|
@@ -104,7 +103,7 @@
|
|
|
104
103
|
.radio {
|
|
105
104
|
display: flex;
|
|
106
105
|
align-items: flex-start;
|
|
107
|
-
padding:
|
|
106
|
+
padding: var(--space-8);
|
|
108
107
|
color: var(--text-primary);
|
|
109
108
|
cursor: pointer;
|
|
110
109
|
user-select: none;
|
|
@@ -137,7 +136,7 @@
|
|
|
137
136
|
}
|
|
138
137
|
@media (pointer: coarse) {
|
|
139
138
|
.radio {
|
|
140
|
-
padding:
|
|
139
|
+
padding: var(--space-12);
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
.radio.block {
|
|
@@ -145,7 +144,7 @@
|
|
|
145
144
|
}
|
|
146
145
|
.radio .labelText {
|
|
147
146
|
display: block;
|
|
148
|
-
margin-inline-start:
|
|
147
|
+
margin-inline-start: var(--space-8);
|
|
149
148
|
font-size: inherit;
|
|
150
149
|
line-height: inherit;
|
|
151
150
|
color: var(--label-color, var(--text-primary));
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
justify-content: center;
|
|
46
46
|
padding: var(--item-padding, 0);
|
|
47
|
-
margin:
|
|
47
|
+
margin: var(--space-4);
|
|
48
48
|
font-family: inherit;
|
|
49
49
|
font-size: 1rem;
|
|
50
50
|
font-weight: 600;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
.segmentedControlItem.extraClickZone::before {
|
|
84
84
|
position: absolute;
|
|
85
|
-
inset:
|
|
85
|
+
inset: -8px -8px;
|
|
86
86
|
content: "";
|
|
87
87
|
}
|
|
88
88
|
.segmentedControlItem.splitted {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
font-weight: 400;
|
|
124
124
|
line-height: 1.3333333333;
|
|
125
125
|
letter-spacing: 0.2px;
|
|
126
|
-
--item-padding: 5px
|
|
126
|
+
--item-padding: 5px var(--space-12);
|
|
127
127
|
--item-square: var(--control-height-s);
|
|
128
128
|
}
|
|
129
129
|
.segmentedControlItem.m {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
font-weight: 400;
|
|
132
132
|
line-height: 1.3333333333;
|
|
133
133
|
letter-spacing: 0.2px;
|
|
134
|
-
--item-padding: 9px
|
|
134
|
+
--item-padding: 9px var(--space-20);
|
|
135
135
|
--item-square: var(--control-height-m);
|
|
136
136
|
}
|
|
137
137
|
.segmentedControlItem.l {
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
font-weight: 400;
|
|
140
140
|
line-height: 1.4117647059;
|
|
141
141
|
letter-spacing: 0.2px;
|
|
142
|
-
--item-padding: 11px
|
|
142
|
+
--item-padding: 11px var(--space-24);
|
|
143
143
|
--item-square: var(--control-height-l);
|
|
144
144
|
}
|
|
145
145
|
.segmentedControlItem.composite {
|
|
146
|
-
--item-padding:
|
|
146
|
+
--item-padding: var(--space-16);
|
|
147
147
|
--button-border-radius: var(--rounding-l);
|
|
148
148
|
}
|
|
149
149
|
.segmentedControlItem.composite .contentWrap {
|
|
@@ -167,14 +167,14 @@
|
|
|
167
167
|
line-height: 0;
|
|
168
168
|
}
|
|
169
169
|
.segmentedControlItem .iconLeft {
|
|
170
|
-
margin-inline-end:
|
|
170
|
+
margin-inline-end: var(--space-4);
|
|
171
171
|
}
|
|
172
172
|
.segmentedControlItem .iconRight {
|
|
173
|
-
margin-inline-start:
|
|
173
|
+
margin-inline-start: var(--space-4);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.extraCheck {
|
|
177
|
-
margin-inline-end:
|
|
177
|
+
margin-inline-end: var(--space-8);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.extraCheckItem {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.segmentedControl {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
|
-
margin: -
|
|
4
|
+
margin: calc(-1 * var(--space-4));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.scrollable {
|
|
8
8
|
--segmented-control-fade: var(--lt-ui-segmented-control-fade-width, 24px);
|
|
9
9
|
flex-wrap: nowrap;
|
|
10
|
-
padding:
|
|
11
|
-
margin: -
|
|
10
|
+
padding: var(--space-4);
|
|
11
|
+
margin: calc(-1 * var(--space-4));
|
|
12
12
|
overflow-x: auto;
|
|
13
13
|
overscroll-behavior-x: contain;
|
|
14
|
-
scroll-padding-inline:
|
|
14
|
+
scroll-padding-inline: var(--space-4);
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
}
|
|
17
17
|
.scrollable::-webkit-scrollbar {
|
|
@@ -45,10 +45,10 @@ const compat_1 = require("../../_internal/compat");
|
|
|
45
45
|
const typography_1 = require("../../typography");
|
|
46
46
|
const use_multiselect_collapsed_display_1 = require("../hooks/use-multiselect-collapsed-display");
|
|
47
47
|
const select_field_module_scss_1 = __importDefault(require("../styles/select-field.module.css"));
|
|
48
|
-
exports.SelectFieldMultiselectValue = (0, compat_1.withRef)(function SelectFieldMultiselectValue({ labels, size = 'l', overflowSelectedLabel, className, id, open = false, disabled, listboxId, labelledBy, activeDescendantId, onClick, onKeyDown, onFocus, onBlur, }, ref) {
|
|
48
|
+
exports.SelectFieldMultiselectValue = (0, compat_1.withRef)(function SelectFieldMultiselectValue({ labels, size = 'l', overflowSelectedLabel, className, id, open = false, disabled, listboxId, labelledBy, ariaLabel, activeDescendantId, onClick, onKeyDown, onFocus, onBlur, }, ref) {
|
|
49
49
|
const rowRef = (0, react_1.useRef)(null);
|
|
50
50
|
const { visibleText, hiddenCount, overflowLabel, setMeasureTarget, setSuffixMeasureTarget } = (0, use_multiselect_collapsed_display_1.useMultiselectCollapsedDisplay)(labels, rowRef, overflowSelectedLabel);
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, id: id, role: "combobox", tabIndex: disabled ? undefined : 0, "aria-expanded": open, "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-labelledby": labelledBy, "aria-activedescendant": open && activeDescendantId ? activeDescendantId : undefined, "aria-disabled": disabled || undefined, className: (0, clsx_1.default)(className, select_field_module_scss_1.default.multiselectValueOuter, {
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, id: id, role: "combobox", tabIndex: disabled ? undefined : 0, "aria-expanded": open, "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-labelledby": labelledBy, "aria-label": ariaLabel, "aria-activedescendant": open && activeDescendantId ? activeDescendantId : undefined, "aria-disabled": disabled || undefined, className: (0, clsx_1.default)(className, select_field_module_scss_1.default.multiselectValueOuter, {
|
|
52
52
|
[select_field_module_scss_1.default.selectValueDisabled]: disabled,
|
|
53
53
|
}), onClick: onClick, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur, children: (0, jsx_runtime_1.jsxs)("div", { ref: rowRef, className: select_field_module_scss_1.default.multiselectValue, children: [(0, jsx_runtime_1.jsxs)(typography_1.Typography, { ref: setMeasureTarget, as: "span", variant: size === 'l' ? 'body-m' : 'body-s', className: (0, clsx_1.default)(select_field_module_scss_1.default.multiselectValueText, {
|
|
54
54
|
[select_field_module_scss_1.default.multiselectValueTextEllipsis]: hiddenCount === 0,
|