@loadsmart/loadsmart-ui 6.0.15 → 6.0.16
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/Text/Text.d.ts +1 -1
- package/dist/index.js +198 -160
- package/dist/index.js.map +1 -1
- package/dist/miranda-compatibility.theme-22a9ce26.js +2 -0
- package/dist/miranda-compatibility.theme-22a9ce26.js.map +1 -0
- package/dist/{prop-82e9ff9d.js → prop-201ffe28.js} +2 -2
- package/dist/{prop-82e9ff9d.js.map → prop-201ffe28.js.map} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/theming/index.js +1 -1
- package/dist/theming/themes/alice.theme.d.ts +70 -15
- package/dist/theming/themes/loadsmart.theme.d.ts +70 -15
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +141 -85
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/src/common/CloseButton/CloseButton.tsx +4 -1
- package/src/common/SelectionWrapper.tsx +8 -0
- package/src/components/Button/Button.tsx +44 -21
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Dropdown/DropdownTrigger.tsx +9 -11
- package/src/components/Link/Link.tsx +9 -0
- package/src/components/Radio/Radio.tsx +1 -1
- package/src/components/Select/SelectTrigger.tsx +1 -1
- package/src/components/Switch/Switch.tsx +3 -1
- package/src/components/Tag/Tag.tsx +24 -4
- package/src/components/TextField/TextField.tsx +5 -2
- package/src/components/Textarea/Textarea.tsx +5 -2
- package/src/components/ToggleGroup/Toggle.tsx +3 -1
- package/src/theming/themes/alice.theme.ts +83 -15
- package/src/theming/themes/loadsmart.theme.ts +85 -16
- package/src/theming/themes/miranda-compatibility.theme.ts +181 -113
- package/dist/miranda-compatibility.theme-f99913ed.js +0 -2
- package/dist/miranda-compatibility.theme-f99913ed.js.map +0 -1
|
@@ -64,6 +64,8 @@ const TriggerButton = styled(
|
|
|
64
64
|
|
|
65
65
|
border: none;
|
|
66
66
|
|
|
67
|
+
height: ${token('dropdown-trigger-height')};
|
|
68
|
+
|
|
67
69
|
text-transform: ${conditional({
|
|
68
70
|
capitalize: whenProps({ outlined: false, variant: 'tertiary' }),
|
|
69
71
|
uppercase: whenProps({ outlined: true }),
|
|
@@ -159,21 +161,15 @@ const DropdownTriggerWrapper = styled.div<DropdownTriggerWrapperProps>`
|
|
|
159
161
|
border-width: ${token('button-border-width')};
|
|
160
162
|
border-style: solid;
|
|
161
163
|
border-color: ${conditional({
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'color
|
|
164
|
+
'dropdown-trigger-border-color': whenProps({ scheme: 'light', $outlined: true }),
|
|
165
|
+
'dropdown-trigger-dark-border-color': whenProps({ scheme: 'dark', $outlined: true }),
|
|
166
|
+
'dropdown-trigger-outlined-border-color': whenProps({ $outlined: false }),
|
|
165
167
|
})};
|
|
166
168
|
|
|
167
169
|
font-size: ${token('font-size-4')};
|
|
168
170
|
|
|
169
171
|
color: ${token('color-neutral-darker')};
|
|
170
172
|
|
|
171
|
-
height: ${conditional({
|
|
172
|
-
'dropdown-trigger-height': whenProps({ $scale: 'default' }),
|
|
173
|
-
'dropdown-trigger-small-height': whenProps({ $scale: 'small' }),
|
|
174
|
-
'dropdown-trigger-large-height': whenProps({ $scale: 'large' }),
|
|
175
|
-
})};
|
|
176
|
-
|
|
177
173
|
box-sizing: border-box;
|
|
178
174
|
|
|
179
175
|
flex: 1;
|
|
@@ -210,7 +206,9 @@ const DropdownTriggerWrapper = styled.div<DropdownTriggerWrapperProps>`
|
|
|
210
206
|
'color-transparent': whenProps({ $outlined: false }),
|
|
211
207
|
})};
|
|
212
208
|
|
|
213
|
-
|
|
209
|
+
box-shadow: ${conditional({ 'dropdown-trigger-box-shadow': whenProps({ $outlined: true }) })};
|
|
210
|
+
outline: ${token('dropdown-trigger-outline')};
|
|
211
|
+
outline-offset: ${token('dropdown-trigger-outline-offset')};
|
|
214
212
|
`}
|
|
215
213
|
|
|
216
214
|
${activatable`
|
|
@@ -231,7 +229,7 @@ const TriggerHandle = styled(BaseButton)`
|
|
|
231
229
|
border-radius: 0 ${token('border-radius-s')} ${token('border-radius-s')} 0;
|
|
232
230
|
border: none;
|
|
233
231
|
|
|
234
|
-
height:
|
|
232
|
+
height: ${token('dropdown-trigger-height')};
|
|
235
233
|
`
|
|
236
234
|
|
|
237
235
|
const RotatableIcon = styled(DefaultIcon)<{ $rotate: boolean }>`
|
|
@@ -8,6 +8,7 @@ import font from 'styles/font'
|
|
|
8
8
|
import transition from 'styles/transition'
|
|
9
9
|
import ellipsizable from 'styles/ellipsizable'
|
|
10
10
|
import hoverable from 'styles/hoverable'
|
|
11
|
+
import focusable from 'styles/focusable'
|
|
11
12
|
import disableable from 'styles/disableable'
|
|
12
13
|
import { getToken as token } from 'theming'
|
|
13
14
|
|
|
@@ -37,11 +38,19 @@ const StyledBaseAnchor = styled.a`
|
|
|
37
38
|
|
|
38
39
|
min-height: 24px;
|
|
39
40
|
|
|
41
|
+
border-radius: ${token('border-radius-s')};
|
|
42
|
+
|
|
40
43
|
${hoverable`
|
|
41
44
|
text-decoration: underline;
|
|
42
45
|
font-weight: ${token('link-font-weight--hover')};
|
|
43
46
|
`}
|
|
44
47
|
|
|
48
|
+
${focusable`
|
|
49
|
+
box-shadow: ${token('link-box-shadow')};
|
|
50
|
+
outline: ${token('link-outline')};
|
|
51
|
+
outline-offset: ${token('link-outline-offset')};
|
|
52
|
+
`}
|
|
53
|
+
|
|
45
54
|
${disableable``}
|
|
46
55
|
|
|
47
56
|
${({ children }) =>
|
|
@@ -112,7 +112,7 @@ const Selector = styled.input<SelectionStyleProps>`
|
|
|
112
112
|
'radio-dark-selector-border-color--focus': whenProps({ scheme: 'dark' }),
|
|
113
113
|
})};
|
|
114
114
|
|
|
115
|
-
box-shadow: ${token('radio-selector-
|
|
115
|
+
box-shadow: ${token('radio-selector-box-shadow')};
|
|
116
116
|
`}
|
|
117
117
|
`
|
|
118
118
|
|
|
@@ -64,7 +64,9 @@ const SwitchWrapper = styled.label<WithAdditionalProps>`
|
|
|
64
64
|
`}
|
|
65
65
|
|
|
66
66
|
${focusable`
|
|
67
|
-
box-shadow: ${token('switch-
|
|
67
|
+
box-shadow: ${token('switch-box-shadow')};
|
|
68
|
+
outline: ${token('switch-outline')};
|
|
69
|
+
outline-offset: ${token('switch-outline-offset')};
|
|
68
70
|
`}
|
|
69
71
|
|
|
70
72
|
${disableable``}
|
|
@@ -80,9 +80,14 @@ const StyledSpan = styled.span<TagProps>`
|
|
|
80
80
|
})};
|
|
81
81
|
|
|
82
82
|
padding: ${conditional({
|
|
83
|
-
'tag-spacing': whenProps({ removable: (removable) => !removable }),
|
|
84
|
-
'tag-spacing
|
|
85
|
-
|
|
83
|
+
'tag-small-spacing': whenProps({ size: 'small', removable: (removable) => !removable }),
|
|
84
|
+
'tag-spacing': whenProps({
|
|
85
|
+
size: (size) => !['small', 'large'].includes(size ?? ''),
|
|
86
|
+
removable: (removable) => !removable,
|
|
87
|
+
}),
|
|
88
|
+
'tag-large-spacing': whenProps({ size: 'large', removable: (removable) => !removable }),
|
|
89
|
+
'tag-removable-spacing': whenProps([{ size: (size) => size !== 'small', removable: true }]),
|
|
90
|
+
'tag-small-removable-spacing': whenProps([{ size: 'small', removable: true }]),
|
|
86
91
|
})};
|
|
87
92
|
|
|
88
93
|
min-width: ${token('tag-width')};
|
|
@@ -92,6 +97,12 @@ const StyledSpan = styled.span<TagProps>`
|
|
|
92
97
|
'tag-large-height': whenProps({ size: 'large' }),
|
|
93
98
|
})};
|
|
94
99
|
|
|
100
|
+
font-weight: ${conditional({
|
|
101
|
+
'tag-font-weight': whenProps({ size: 'default' }),
|
|
102
|
+
'tag-small-font-weight': whenProps({ size: 'small' }),
|
|
103
|
+
'tag-large-font-weight': whenProps({ size: 'large' }),
|
|
104
|
+
})};
|
|
105
|
+
|
|
95
106
|
color: ${conditional({
|
|
96
107
|
'tag-default-color': whenProps({ variant: 'default' }),
|
|
97
108
|
'tag-outlined-color': whenProps({ variant: 'outlined' }),
|
|
@@ -223,7 +234,16 @@ const StyledSpan = styled.span<TagProps>`
|
|
|
223
234
|
'tag-warning-background--focus': whenProps({ variant: 'warning' }),
|
|
224
235
|
'tag-danger-background--focus': whenProps({ variant: 'danger' }),
|
|
225
236
|
})};
|
|
226
|
-
box-shadow: ${token('tag-
|
|
237
|
+
box-shadow: ${token('tag-box-shadow')};
|
|
238
|
+
outline: ${conditional({
|
|
239
|
+
'tag-default-outline': whenProps({ variant: 'default' }),
|
|
240
|
+
'tag-outlined-outline': whenProps({ variant: 'outlined' }),
|
|
241
|
+
'tag-accent-outline': whenProps({ variant: 'accent' }),
|
|
242
|
+
'tag-success-outline': whenProps({ variant: 'success' }),
|
|
243
|
+
'tag-warning-outline': whenProps({ variant: 'warning' }),
|
|
244
|
+
'tag-danger-outline': whenProps({ variant: 'danger' }),
|
|
245
|
+
})};
|
|
246
|
+
outline-offset: ${token('tag-outline-offset')};
|
|
227
247
|
`}
|
|
228
248
|
|
|
229
249
|
${disableable`
|
|
@@ -96,9 +96,12 @@ const InputWrapper = styled.div<WithAdditionalProps>`
|
|
|
96
96
|
})};
|
|
97
97
|
|
|
98
98
|
box-shadow: ${conditional({
|
|
99
|
-
'text-field-
|
|
100
|
-
'text-field-dark-
|
|
99
|
+
'text-field-box-shadow': whenProps({ scheme: 'light' }),
|
|
100
|
+
'text-field-dark-box-shadow': whenProps({ scheme: 'dark' }),
|
|
101
101
|
})};
|
|
102
|
+
|
|
103
|
+
outline: ${token('text-field-outline')};
|
|
104
|
+
outline-offset: ${token('text-field-outline-offset')};
|
|
102
105
|
`}
|
|
103
106
|
|
|
104
107
|
${disableable()}
|
|
@@ -93,9 +93,12 @@ const TextareaWrapper = styled.div<WithAdditionalProps>`
|
|
|
93
93
|
})};
|
|
94
94
|
|
|
95
95
|
box-shadow: ${conditional({
|
|
96
|
-
'textarea-
|
|
97
|
-
'textarea-dark-
|
|
96
|
+
'textarea-box-shadow': whenProps({ scheme: 'light' }),
|
|
97
|
+
'textarea-dark-box-shadow': whenProps({ scheme: 'dark' }),
|
|
98
98
|
})};
|
|
99
|
+
|
|
100
|
+
outline: ${token('textarea-outline')};
|
|
101
|
+
outline-offset: ${token('textarea-outline-offset')};
|
|
99
102
|
`}
|
|
100
103
|
|
|
101
104
|
${disableable()}
|
|
@@ -68,7 +68,9 @@ const ToggleButton = styled(BaseButton)<{ $type: ToggleGroupType }>`
|
|
|
68
68
|
'toggle-checked-color--focus': whenProps({ 'aria-checked': true }),
|
|
69
69
|
})};
|
|
70
70
|
|
|
71
|
-
box-shadow: ${token('
|
|
71
|
+
box-shadow: ${token('toggle-box-shadow')};
|
|
72
|
+
outline: ${token('toggle-outline')};
|
|
73
|
+
outline-offset: ${token('toggle-outline-offset')};
|
|
72
74
|
`}
|
|
73
75
|
|
|
74
76
|
${activatable`
|
|
@@ -179,6 +179,7 @@ const alice = {
|
|
|
179
179
|
'button-large-height': height('large'),
|
|
180
180
|
'button-large-padding-x': spacing('m'),
|
|
181
181
|
'button-large-padding-y': rem('14px'),
|
|
182
|
+
'button-outline-offset': '0',
|
|
182
183
|
|
|
183
184
|
// button primary
|
|
184
185
|
'button-primary-background': color('primary'),
|
|
@@ -199,7 +200,8 @@ const alice = {
|
|
|
199
200
|
'button-primary-color--active': color('neutral-white'),
|
|
200
201
|
'button-primary-color--disabled': color('neutral-white'),
|
|
201
202
|
|
|
202
|
-
'button-primary-outline':
|
|
203
|
+
'button-primary-outline': 'none',
|
|
204
|
+
'button-primary-box-shadow': shadow('glow-primary'),
|
|
203
205
|
|
|
204
206
|
// button secondary
|
|
205
207
|
'button-secondary-background': color('transparent'),
|
|
@@ -220,7 +222,8 @@ const alice = {
|
|
|
220
222
|
'button-secondary-color--active': color('accent', 0.6),
|
|
221
223
|
'button-secondary-color--disabled': color('primary'),
|
|
222
224
|
|
|
223
|
-
'button-secondary-outline':
|
|
225
|
+
'button-secondary-outline': 'none',
|
|
226
|
+
'button-secondary-box-shadow': shadow('glow-primary'),
|
|
224
227
|
|
|
225
228
|
// button secondary dark
|
|
226
229
|
'button-secondary-dark-background': color('transparent'),
|
|
@@ -241,6 +244,28 @@ const alice = {
|
|
|
241
244
|
'button-secondary-dark-color--active': color('accent', 0.6),
|
|
242
245
|
'button-secondary-dark-color--disabled': color('neutral-light'),
|
|
243
246
|
|
|
247
|
+
// button tertiary
|
|
248
|
+
'button-tertiary-background': color('transparent'),
|
|
249
|
+
'button-tertiary-background--hover': color('neutral', 0.2),
|
|
250
|
+
'button-tertiary-background--focus': color('neutral', 0.2),
|
|
251
|
+
'button-tertiary-background--active': color('transparent'),
|
|
252
|
+
'button-tertiary-background--disabled': color('transparent'),
|
|
253
|
+
|
|
254
|
+
'button-tertiary-border-color': color('transparent'),
|
|
255
|
+
'button-tertiary-border-color--hover': color('transparent'),
|
|
256
|
+
'button-tertiary-border-color--focus': color('transparent'),
|
|
257
|
+
'button-tertiary-border-color--active': color('accent', 0.6),
|
|
258
|
+
'button-tertiary-border-color--disabled': color('transparent'),
|
|
259
|
+
|
|
260
|
+
'button-tertiary-color': color('neutral-darker'),
|
|
261
|
+
'button-tertiary-color--hover': color('accent'),
|
|
262
|
+
'button-tertiary-color--focus': color('primary'),
|
|
263
|
+
'button-tertiary-color--active': color('accent', 0.6),
|
|
264
|
+
'button-tertiary-color--disabled': color('neutral-darker'),
|
|
265
|
+
|
|
266
|
+
'button-tertiary-outline': 'none',
|
|
267
|
+
'button-tertiary-box-shadow': 'none',
|
|
268
|
+
|
|
244
269
|
// button warning
|
|
245
270
|
'button-warning-background': color('transparent'),
|
|
246
271
|
'button-warning-background--hover': color('warning', 0.2),
|
|
@@ -260,7 +285,8 @@ const alice = {
|
|
|
260
285
|
'button-warning-color--active': color('warning'),
|
|
261
286
|
'button-warning-color--disabled': color('warning-dark'),
|
|
262
287
|
|
|
263
|
-
'button-warning-outline':
|
|
288
|
+
'button-warning-outline': 'none',
|
|
289
|
+
'button-warning-box-shadow': shadow('glow-warning'),
|
|
264
290
|
|
|
265
291
|
// button icon
|
|
266
292
|
'button-icon-border-radius': border.radius('circle'),
|
|
@@ -286,17 +312,18 @@ const alice = {
|
|
|
286
312
|
'button-icon-color--active': color('neutral-darkest'),
|
|
287
313
|
'button-icon-color--disabled': color('neutral-darkest'),
|
|
288
314
|
|
|
289
|
-
'button-icon-
|
|
315
|
+
'button-icon-box-shadow': shadow('glow-primary'),
|
|
316
|
+
'button-icon-outline': 'none',
|
|
290
317
|
|
|
291
318
|
// tag
|
|
292
319
|
'tag-border-radius': rem('30px'),
|
|
293
320
|
'tag-border-width': border.width('thin'),
|
|
294
|
-
'tag-font-weight': font.weight('bold'),
|
|
295
321
|
'tag-font-height': font.height('1'),
|
|
296
322
|
'tag-spacing': `0 ${spacing('s')}`,
|
|
297
|
-
'tag-spacing
|
|
323
|
+
'tag-removable-spacing': `0 ${spacing('xs')} 0 ${spacing('s')}`,
|
|
298
324
|
'tag-width': 'auto',
|
|
299
|
-
'tag-
|
|
325
|
+
'tag-box-shadow': shadow('glow-primary'),
|
|
326
|
+
'tag-outline-offset': '0',
|
|
300
327
|
|
|
301
328
|
'tag-remove-button-background': color('neutral-white'),
|
|
302
329
|
'tag-remove-button-border-radius': rem('24px'),
|
|
@@ -304,15 +331,18 @@ const alice = {
|
|
|
304
331
|
|
|
305
332
|
// tag small
|
|
306
333
|
'tag-small-font-size': font.size('6'),
|
|
334
|
+
'tag-small-font-weight': font.weight('bold'),
|
|
307
335
|
'tag-small-height': rem('16px'),
|
|
308
336
|
'tag-small-transform': 'uppercase',
|
|
309
337
|
'tag-small-leading-display': 'none',
|
|
310
338
|
'tag-small-remove-button-size': rem('0'),
|
|
311
339
|
'tag-small-remove-button-icon-size': rem('0'),
|
|
312
|
-
'tag-small-spacing
|
|
340
|
+
'tag-small-spacing': `0 ${spacing('s')}`,
|
|
341
|
+
'tag-small-removable-spacing': `0 ${spacing('s')}`,
|
|
313
342
|
|
|
314
343
|
// tag medium
|
|
315
344
|
'tag-font-size': font.size('5'),
|
|
345
|
+
'tag-font-weight': font.weight('bold'),
|
|
316
346
|
'tag-height': rem('24px'),
|
|
317
347
|
'tag-transform': 'none',
|
|
318
348
|
'tag-leading-display': 'inline-flex',
|
|
@@ -321,11 +351,13 @@ const alice = {
|
|
|
321
351
|
|
|
322
352
|
// tag large
|
|
323
353
|
'tag-large-font-size': font.size('4'),
|
|
354
|
+
'tag-large-font-weight': font.weight('bold'),
|
|
324
355
|
'tag-large-height': rem('32px'),
|
|
325
356
|
'tag-large-transform': 'none',
|
|
326
357
|
'tag-large-leading-display': 'inline-flex',
|
|
327
358
|
'tag-large-remove-button-size': rem('24px'),
|
|
328
359
|
'tag-large-remove-button-icon-size': rem('12px'),
|
|
360
|
+
'tag-large-spacing': `0 ${spacing('s')}`,
|
|
329
361
|
|
|
330
362
|
// tag default
|
|
331
363
|
'tag-default-background': color('neutral-light'),
|
|
@@ -340,6 +372,8 @@ const alice = {
|
|
|
340
372
|
'tag-default-border-color--hover': 'transparent',
|
|
341
373
|
'tag-default-border-color--focus': 'transparent',
|
|
342
374
|
|
|
375
|
+
'tag-default-outline': 'none',
|
|
376
|
+
|
|
343
377
|
// tag outline
|
|
344
378
|
'tag-outlined-background': color('transparent'),
|
|
345
379
|
'tag-outlined-background--hover': color('accent', 0.4),
|
|
@@ -353,6 +387,8 @@ const alice = {
|
|
|
353
387
|
'tag-outlined-border-color--hover': color('neutral-darkest'),
|
|
354
388
|
'tag-outlined-border-color--focus': color('neutral-darker'),
|
|
355
389
|
|
|
390
|
+
'tag-outline-outline': 'none',
|
|
391
|
+
|
|
356
392
|
// tag accent
|
|
357
393
|
'tag-accent-background': color('accent', 0.2),
|
|
358
394
|
'tag-accent-background--hover': color('accent', 0.4),
|
|
@@ -366,6 +402,8 @@ const alice = {
|
|
|
366
402
|
'tag-accent-border-color--hover': 'transparent',
|
|
367
403
|
'tag-accent-border-color--focus': 'transparent',
|
|
368
404
|
|
|
405
|
+
'tag-accent-outline': 'none',
|
|
406
|
+
|
|
369
407
|
// tag success
|
|
370
408
|
'tag-success-background': color('success-light'),
|
|
371
409
|
'tag-success-background--hover': color('success-light'),
|
|
@@ -379,6 +417,8 @@ const alice = {
|
|
|
379
417
|
'tag-success-border-color--hover': color('success-light'),
|
|
380
418
|
'tag-success-border-color--focus': color('success-light'),
|
|
381
419
|
|
|
420
|
+
'tag-success-outline': 'none',
|
|
421
|
+
|
|
382
422
|
// tag warning
|
|
383
423
|
'tag-warning-background': color('warning-light'),
|
|
384
424
|
'tag-warning-background--hover': color('warning-light'),
|
|
@@ -392,6 +432,8 @@ const alice = {
|
|
|
392
432
|
'tag-warning-border-color--hover': color('warning-light'),
|
|
393
433
|
'tag-warning-border-color--focus': color('warning-light'),
|
|
394
434
|
|
|
435
|
+
'tag-warning-outline': 'none',
|
|
436
|
+
|
|
395
437
|
// tag danger
|
|
396
438
|
'tag-danger-background': color('danger-light'),
|
|
397
439
|
'tag-danger-background--hover': color('danger-light'),
|
|
@@ -405,6 +447,8 @@ const alice = {
|
|
|
405
447
|
'tag-danger-border-color--hover': color('danger-light'),
|
|
406
448
|
'tag-danger-border-color--focus': color('danger-light'),
|
|
407
449
|
|
|
450
|
+
'tag-danger-outline': 'none',
|
|
451
|
+
|
|
408
452
|
// checkbox
|
|
409
453
|
'checkbox-color': color('neutral-darker'),
|
|
410
454
|
'checkbox-font-weight': font.weight('medium'),
|
|
@@ -412,7 +456,9 @@ const alice = {
|
|
|
412
456
|
|
|
413
457
|
'checkbox-selector-border-radius': border.radius('s'),
|
|
414
458
|
'checkbox-selector-size': rem('16px'),
|
|
415
|
-
'checkbox-selector-
|
|
459
|
+
'checkbox-selector-box-shadow': shadow('glow-primary'),
|
|
460
|
+
'checkbox-selector-outline': 'none',
|
|
461
|
+
'checkbox-selector-outline-offset': '0',
|
|
416
462
|
|
|
417
463
|
'checkbox-small-font-size': font.size('5'),
|
|
418
464
|
|
|
@@ -458,7 +504,7 @@ const alice = {
|
|
|
458
504
|
|
|
459
505
|
'radio-selector-border-radius': border.radius('circle'),
|
|
460
506
|
'radio-selector-size': rem('24px'),
|
|
461
|
-
'radio-selector-
|
|
507
|
+
'radio-selector-box-shadow': shadow('glow-primary'),
|
|
462
508
|
|
|
463
509
|
'radio-small-font-size': font.size('5'),
|
|
464
510
|
'radio-small-selector-size': rem('16px'),
|
|
@@ -526,7 +572,9 @@ const alice = {
|
|
|
526
572
|
'text-field-padding-x': spacing('s'),
|
|
527
573
|
'text-field-padding-y': spacing('s'),
|
|
528
574
|
|
|
529
|
-
'text-field-
|
|
575
|
+
'text-field-box-shadow': shadow('glow-primary'),
|
|
576
|
+
'text-field-outline': 'none',
|
|
577
|
+
'text-field-outline-offset': '0',
|
|
530
578
|
|
|
531
579
|
'text-field-small-height': height('small'),
|
|
532
580
|
'text-field-small-padding-x': spacing('s'),
|
|
@@ -560,7 +608,7 @@ const alice = {
|
|
|
560
608
|
'text-field-success-border-color': color('accent'),
|
|
561
609
|
'text-field-danger-border-color': color('danger'),
|
|
562
610
|
|
|
563
|
-
'text-field-dark-
|
|
611
|
+
'text-field-dark-box-shadow': color('neutral', 0.4),
|
|
564
612
|
|
|
565
613
|
// textarea
|
|
566
614
|
'textarea-border-radius': border.radius('s'),
|
|
@@ -572,7 +620,9 @@ const alice = {
|
|
|
572
620
|
'textarea-padding-x': spacing('s'),
|
|
573
621
|
'textarea-padding-y': spacing('s'),
|
|
574
622
|
|
|
575
|
-
'textarea-
|
|
623
|
+
'textarea-box-shadow': shadow('glow-primary'),
|
|
624
|
+
'textarea-outline': 'none',
|
|
625
|
+
'textarea-outline-offset': '0',
|
|
576
626
|
|
|
577
627
|
'textarea-small-padding-x': spacing('s'),
|
|
578
628
|
'textarea-small-padding-y': spacing('xs'),
|
|
@@ -605,7 +655,7 @@ const alice = {
|
|
|
605
655
|
'textarea-success-border-color': color('accent'),
|
|
606
656
|
'textarea-danger-border-color': color('danger'),
|
|
607
657
|
|
|
608
|
-
'textarea-dark-
|
|
658
|
+
'textarea-dark-box-shadow': color('neutral', 0.4),
|
|
609
659
|
|
|
610
660
|
// link
|
|
611
661
|
'link-font-size': font.size('3'),
|
|
@@ -615,6 +665,10 @@ const alice = {
|
|
|
615
665
|
'link-font-weight': font.weight('medium'),
|
|
616
666
|
'link-font-weight--hover': font.weight('bold'),
|
|
617
667
|
|
|
668
|
+
'link-box-shadow': shadow('glow-primary'),
|
|
669
|
+
'link-outline': 'none',
|
|
670
|
+
'link-outline-offset': '0',
|
|
671
|
+
|
|
618
672
|
// breadcrumbs
|
|
619
673
|
'breadcrumbs-font-size': font.size('2'),
|
|
620
674
|
'breadcrumbs-font-height': font.height('2'),
|
|
@@ -739,7 +793,9 @@ const alice = {
|
|
|
739
793
|
'switch-height': rem('22px'),
|
|
740
794
|
'switch-border-radius': rem('22px'),
|
|
741
795
|
|
|
742
|
-
'switch-
|
|
796
|
+
'switch-box-shadow': shadow('glow-primary'),
|
|
797
|
+
'switch-outline': 'none',
|
|
798
|
+
'switch-outline-offset': '0',
|
|
743
799
|
|
|
744
800
|
// Switch Large
|
|
745
801
|
'switch-large-width': rem('70px'),
|
|
@@ -880,11 +936,16 @@ const alice = {
|
|
|
880
936
|
'top-navigation-item-color--hover': color('primary'),
|
|
881
937
|
|
|
882
938
|
// Select
|
|
939
|
+
'select-trigger-height': '100%',
|
|
940
|
+
'select-trigger-border-color': color('neutral-lighter'),
|
|
883
941
|
'select-selected-option-check-color': color('accent'),
|
|
884
942
|
'select-selected-option-background-color': color('accent', 0.2),
|
|
885
943
|
|
|
886
944
|
// Toggle & Toggle Group
|
|
887
945
|
'toggle-text-transform': 'uppercase',
|
|
946
|
+
'toggle-box-shadow': shadow('glow-primary'),
|
|
947
|
+
'toggle-outline': 'none',
|
|
948
|
+
'toggle-outline-offset': '0',
|
|
888
949
|
'toggle-background-color': color('transparent'),
|
|
889
950
|
'toggle-background-color--hover': color('transparent'),
|
|
890
951
|
'toggle-background-color--focus': color('transparent'),
|
|
@@ -945,10 +1006,17 @@ const alice = {
|
|
|
945
1006
|
'toggle-group-single-padding': '3px',
|
|
946
1007
|
|
|
947
1008
|
// dropdown
|
|
1009
|
+
'dropdown-trigger-border-color': color('primary'),
|
|
1010
|
+
'dropdown-trigger-dark-border-color': color('neutral-light'),
|
|
1011
|
+
'dropdown-trigger-outlined-border-color': color('transparent'),
|
|
948
1012
|
'dropdown-trigger-expanded-color': color('accent'),
|
|
949
1013
|
'dropdown-trigger-height': height('default'),
|
|
950
1014
|
'dropdown-trigger-small-height': height('small'),
|
|
951
1015
|
'dropdown-trigger-large-height': height('large'),
|
|
1016
|
+
|
|
1017
|
+
'dropdown-trigger-box-shadow': shadow('glow-primary'),
|
|
1018
|
+
'dropdown-trigger-outline': 'none',
|
|
1019
|
+
'dropdown-trigger-outline-offset': '0',
|
|
952
1020
|
}
|
|
953
1021
|
|
|
954
1022
|
export default alice
|