@loadsmart/loadsmart-ui 5.13.1 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Select/useSelect.helpers.d.ts +2 -1
- package/dist/components/Select/useSelect.test.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/index.js +58 -46
- package/dist/index.js.map +1 -1
- package/dist/miranda-compatibility.theme-bb0cbfb2.js +2 -0
- package/dist/miranda-compatibility.theme-bb0cbfb2.js.map +1 -0
- package/dist/prop-73352de5.js +2 -0
- package/dist/{prop-0f94ff83.js.map → prop-73352de5.js.map} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/themes/alice.theme.d.ts +171 -9
- package/dist/theming/themes/index.d.ts +1 -0
- package/dist/theming/themes/loadsmart.theme.d.ts +83 -9
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +745 -0
- package/dist/theming/theming.helpers.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/package.json +4 -2
- package/src/addons/Theme/register.js +2 -1
- package/src/components/Dropdown/DropdownMenu.tsx +1 -1
- package/src/components/Dropdown/DropdownTrigger.tsx +6 -4
- package/src/components/Select/SelectOption.tsx +4 -7
- package/src/components/Select/useSelect.helpers.test.ts +63 -1
- package/src/components/Select/useSelect.helpers.ts +9 -2
- package/src/components/Select/useSelect.test.ts +207 -0
- package/src/components/Select/useSelect.ts +8 -2
- package/src/components/SideNavigation/Menu/Menu.tsx +4 -3
- package/src/components/SideNavigation/Menu/MenuBaseItem.tsx +1 -1
- package/src/components/SideNavigation/Menu/MenuLink.tsx +4 -5
- package/src/components/SideNavigation/SideNavigation.stories.tsx +1 -1
- package/src/components/Steps/ProgressSteps/ProgressStep.tsx +9 -7
- package/src/components/ToggleGroup/Toggle.tsx +58 -33
- package/src/components/ToggleGroup/ToggleGroup.tsx +32 -19
- package/src/theming/themes/alice.theme.ts +111 -20
- package/src/theming/themes/index.ts +1 -0
- package/src/theming/themes/loadsmart.theme.ts +100 -9
- package/src/theming/themes/miranda-compatibility.theme.ts +900 -0
- package/src/theming/theming.helpers.ts +6 -0
- package/dist/loadsmart.theme-63c13988.js +0 -2
- package/dist/loadsmart.theme-63c13988.js.map +0 -1
- package/dist/prop-0f94ff83.js +0 -2
|
@@ -0,0 +1,900 @@
|
|
|
1
|
+
import { toCSSValue } from '@loadsmart/miranda-tokens'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
generateBorderGetters,
|
|
5
|
+
generateColorGetter,
|
|
6
|
+
generateFontGetters,
|
|
7
|
+
generateShadowGetter,
|
|
8
|
+
generateSpacingGetter,
|
|
9
|
+
generateHeightGetter,
|
|
10
|
+
} from '../../theming/theming.helpers'
|
|
11
|
+
import rem from '../../utils/toolset/rem'
|
|
12
|
+
|
|
13
|
+
import AliceTheme, {
|
|
14
|
+
COLORS as ALICE_COLORS,
|
|
15
|
+
OPACITIES as ALICE_OPACITIES,
|
|
16
|
+
SPACINGS as ALICE_SPACINGS,
|
|
17
|
+
FONT_FAMILIES as ALICE_FONT_FAMILIES,
|
|
18
|
+
FONT_SIZES as ALICE_FONT_SIZES,
|
|
19
|
+
FONT_WEIGHTS as ALICE_FONT_WEIGHTS,
|
|
20
|
+
FONT_HEIGHTS as ALICE_FONT_HEIGHTS,
|
|
21
|
+
BORDER_RADIUSES as ALICE_BORDER_RADIUSES,
|
|
22
|
+
BORDER_WIDTHS as ALICE_BORDER_WIDTHS,
|
|
23
|
+
Z_INDEXES as ALICE_Z_INDEXES,
|
|
24
|
+
} from './alice.theme'
|
|
25
|
+
|
|
26
|
+
export const COLORS = {
|
|
27
|
+
...ALICE_COLORS,
|
|
28
|
+
'color-primary': toCSSValue('color-primary-60'),
|
|
29
|
+
'color-accent': toCSSValue('color-accent-60'),
|
|
30
|
+
|
|
31
|
+
'color-neutral-white': toCSSValue('color-neutral-0'),
|
|
32
|
+
'color-neutral-lightest': toCSSValue('color-neutral-10'),
|
|
33
|
+
'color-neutral-lighter': toCSSValue('color-neutral-20'),
|
|
34
|
+
'color-neutral-light': toCSSValue('color-neutral-40'),
|
|
35
|
+
'color-neutral': toCSSValue('color-neutral-60'),
|
|
36
|
+
'color-neutral-dark': toCSSValue('color-neutral-80'),
|
|
37
|
+
'color-neutral-darker': toCSSValue('color-neutral-90'),
|
|
38
|
+
'color-neutral-darkest': toCSSValue('color-neutral-100'),
|
|
39
|
+
|
|
40
|
+
'color-success-dark': toCSSValue('color-success-100'),
|
|
41
|
+
'color-success': toCSSValue('color-success-60'),
|
|
42
|
+
'color-success-light': toCSSValue('color-success-20'),
|
|
43
|
+
|
|
44
|
+
'color-danger-dark': toCSSValue('color-danger-100'),
|
|
45
|
+
'color-danger': toCSSValue('color-danger-60'),
|
|
46
|
+
'color-danger-light': toCSSValue('color-danger-20'),
|
|
47
|
+
|
|
48
|
+
'color-warning-dark': toCSSValue('color-warning-100'),
|
|
49
|
+
'color-warning': toCSSValue('color-warning-60'),
|
|
50
|
+
'color-warning-light': toCSSValue('color-warning-20'),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const OPACITIES = ALICE_OPACITIES
|
|
54
|
+
|
|
55
|
+
export const SPACINGS = ALICE_SPACINGS
|
|
56
|
+
|
|
57
|
+
export const FONT_FAMILIES = ALICE_FONT_FAMILIES
|
|
58
|
+
|
|
59
|
+
export const FONT_SIZES = ALICE_FONT_SIZES
|
|
60
|
+
|
|
61
|
+
export const FONT_WEIGHTS = ALICE_FONT_WEIGHTS
|
|
62
|
+
|
|
63
|
+
export const FONT_HEIGHTS = ALICE_FONT_HEIGHTS
|
|
64
|
+
|
|
65
|
+
export const SHADOWS = {
|
|
66
|
+
'shadow-none': 'none',
|
|
67
|
+
'shadow-modal': '0px 2px 6px 0px rgba(10, 10, 11, 0.4)',
|
|
68
|
+
'shadow-droplist': '0px 2px 3px 0px rgba(10, 10, 11, 0.4)',
|
|
69
|
+
'shadow-glow-primary': `0px 0px 4px 0px ${toCSSValue('color-primary-60')}`,
|
|
70
|
+
'shadow-glow-warning': `0px 0px 4px 0px ${toCSSValue('color-warning-60')}`,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const BORDER_RADIUSES = ALICE_BORDER_RADIUSES
|
|
74
|
+
|
|
75
|
+
export const BORDER_WIDTHS = ALICE_BORDER_WIDTHS
|
|
76
|
+
|
|
77
|
+
export const Z_INDEXES = ALICE_Z_INDEXES
|
|
78
|
+
|
|
79
|
+
export const HEIGHTS = {
|
|
80
|
+
'height-small': toCSSValue('global-height-small'),
|
|
81
|
+
'height-default': toCSSValue('global-height-default'),
|
|
82
|
+
'height-large': toCSSValue('global-height-large'),
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const color = generateColorGetter(COLORS)
|
|
86
|
+
const shadow = generateShadowGetter(SHADOWS)
|
|
87
|
+
const spacing = generateSpacingGetter(SPACINGS)
|
|
88
|
+
const font = generateFontGetters({
|
|
89
|
+
families: FONT_FAMILIES,
|
|
90
|
+
heights: FONT_HEIGHTS,
|
|
91
|
+
sizes: FONT_SIZES,
|
|
92
|
+
weights: FONT_WEIGHTS,
|
|
93
|
+
})
|
|
94
|
+
const border = generateBorderGetters({
|
|
95
|
+
radiuses: BORDER_RADIUSES,
|
|
96
|
+
widths: BORDER_WIDTHS,
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
const height = generateHeightGetter(HEIGHTS)
|
|
100
|
+
|
|
101
|
+
const mirandaCompatibility = {
|
|
102
|
+
...AliceTheme,
|
|
103
|
+
...BORDER_RADIUSES,
|
|
104
|
+
...BORDER_WIDTHS,
|
|
105
|
+
...COLORS,
|
|
106
|
+
...FONT_FAMILIES,
|
|
107
|
+
...FONT_HEIGHTS,
|
|
108
|
+
...FONT_SIZES,
|
|
109
|
+
...FONT_WEIGHTS,
|
|
110
|
+
...OPACITIES,
|
|
111
|
+
...SHADOWS,
|
|
112
|
+
...SPACINGS,
|
|
113
|
+
...Z_INDEXES,
|
|
114
|
+
...HEIGHTS,
|
|
115
|
+
|
|
116
|
+
// button
|
|
117
|
+
'button-border-radius': border.radius('s'),
|
|
118
|
+
'button-border-width': border.width('thin'),
|
|
119
|
+
'button-font-weight': font.weight('bold'),
|
|
120
|
+
'button-font-height': font.height('1'),
|
|
121
|
+
'button-small-font-size': font.size('5'),
|
|
122
|
+
'button-small-height': height('small'),
|
|
123
|
+
'button-small-padding-x': spacing('s'),
|
|
124
|
+
'button-small-padding-y': rem('6px'),
|
|
125
|
+
'button-font-size': font.size('3'),
|
|
126
|
+
'button-height': height('default'),
|
|
127
|
+
'button-width': 'auto',
|
|
128
|
+
'button-padding-y': rem('10px'),
|
|
129
|
+
'button-padding-x': spacing('m'),
|
|
130
|
+
'button-spacing-x': spacing('s'),
|
|
131
|
+
'button-large-font-size': font.size('3'),
|
|
132
|
+
'button-large-height': height('large'),
|
|
133
|
+
'button-large-padding-x': spacing('m'),
|
|
134
|
+
'button-large-padding-y': rem('14px'),
|
|
135
|
+
|
|
136
|
+
// button primary
|
|
137
|
+
'button-primary-background': color('primary'),
|
|
138
|
+
'button-primary-background--hover': toCSSValue('color-primary-100'),
|
|
139
|
+
'button-primary-background--focus': color('primary'),
|
|
140
|
+
'button-primary-background--active': toCSSValue('color-primary-60', 0.6),
|
|
141
|
+
'button-primary-background--disabled': color('primary'),
|
|
142
|
+
|
|
143
|
+
'button-primary-border-color': color('primary'),
|
|
144
|
+
'button-primary-border-color--hover': toCSSValue('color-primary-100'),
|
|
145
|
+
'button-primary-border-color--focus': toCSSValue('color-primary-100'),
|
|
146
|
+
'button-primary-border-color--active': toCSSValue('color-primary-60', 0.6),
|
|
147
|
+
'button-primary-border-color--disabled': color('primary'),
|
|
148
|
+
|
|
149
|
+
'button-primary-color': color('neutral-white'),
|
|
150
|
+
'button-primary-color--hover': color('neutral-white'),
|
|
151
|
+
'button-primary-color--focus': color('neutral-white'),
|
|
152
|
+
'button-primary-color--active': color('neutral-white'),
|
|
153
|
+
'button-primary-color--disabled': color('neutral-white'),
|
|
154
|
+
|
|
155
|
+
'button-primary-outline': shadow('glow-primary'),
|
|
156
|
+
|
|
157
|
+
// button secondary
|
|
158
|
+
'button-secondary-background': color('transparent'),
|
|
159
|
+
'button-secondary-background--hover': toCSSValue('color-neutral-60', 0.2),
|
|
160
|
+
'button-secondary-background--focus': toCSSValue('color-neutral-60', 0.2),
|
|
161
|
+
'button-secondary-background--active': color('transparent'),
|
|
162
|
+
'button-secondary-background--disabled': color('transparent'),
|
|
163
|
+
|
|
164
|
+
'button-secondary-border-color': color('primary'),
|
|
165
|
+
'button-secondary-border-color--hover': toCSSValue('color-primary-100'),
|
|
166
|
+
'button-secondary-border-color--focus': toCSSValue('color-primary-100'),
|
|
167
|
+
'button-secondary-border-color--active': toCSSValue('color-primary-60', 0.6),
|
|
168
|
+
'button-secondary-border-color--disabled': color('primary'),
|
|
169
|
+
|
|
170
|
+
'button-secondary-color': color('primary'),
|
|
171
|
+
'button-secondary-color--hover': toCSSValue('color-primary-100'),
|
|
172
|
+
'button-secondary-color--focus': color('primary'),
|
|
173
|
+
'button-secondary-color--active': toCSSValue('color-primary-60', 0.6),
|
|
174
|
+
'button-secondary-color--disabled': color('primary'),
|
|
175
|
+
|
|
176
|
+
'button-secondary-outline': shadow('glow-primary'),
|
|
177
|
+
|
|
178
|
+
// button secondary dark
|
|
179
|
+
'button-secondary-dark-background': color('transparent'),
|
|
180
|
+
'button-secondary-dark-background--hover': toCSSValue('color-neutral-60', 0.2),
|
|
181
|
+
'button-secondary-dark-background--focus': color('transparent'),
|
|
182
|
+
'button-secondary-dark-background--active': toCSSValue('color-neutral-60', 0.4),
|
|
183
|
+
'button-secondary-dark-background--disabled': color('transparent'),
|
|
184
|
+
|
|
185
|
+
'button-secondary-dark-border-color': color('neutral-light'),
|
|
186
|
+
'button-secondary-dark-border-color--hover': color('accent'),
|
|
187
|
+
'button-secondary-dark-border-color--focus': color('neutral-light'),
|
|
188
|
+
'button-secondary-dark-border-color--active': toCSSValue('color-primary-60', 0.6),
|
|
189
|
+
'button-secondary-dark-border-color--disabled': color('neutral-light'),
|
|
190
|
+
|
|
191
|
+
'button-secondary-dark-color': color('neutral-light'),
|
|
192
|
+
'button-secondary-dark-color--hover': color('accent'),
|
|
193
|
+
'button-secondary-dark-color--focus': color('neutral-light'),
|
|
194
|
+
'button-secondary-dark-color--active': toCSSValue('color-primary-60', 0.6),
|
|
195
|
+
'button-secondary-dark-color--disabled': color('neutral-light'),
|
|
196
|
+
|
|
197
|
+
// button warning
|
|
198
|
+
'button-warning-background': color('transparent'),
|
|
199
|
+
'button-warning-background--hover': toCSSValue('color-warning-60', 0.2),
|
|
200
|
+
'button-warning-background--focus': color('transparent'),
|
|
201
|
+
'button-warning-background--active': color('transparent'),
|
|
202
|
+
'button-warning-background--disabled': color('transparent'),
|
|
203
|
+
|
|
204
|
+
'button-warning-border-color': color('warning-dark'),
|
|
205
|
+
'button-warning-border-color--hover': color('warning'),
|
|
206
|
+
'button-warning-border-color--focus': color('warning-dark'),
|
|
207
|
+
'button-warning-border-color--active': color('warning'),
|
|
208
|
+
'button-warning-border-color--disabled': color('warning-dark'),
|
|
209
|
+
|
|
210
|
+
'button-warning-color': color('warning-dark'),
|
|
211
|
+
'button-warning-color--hover': color('warning'),
|
|
212
|
+
'button-warning-color--focus': color('warning-dark'),
|
|
213
|
+
'button-warning-color--active': color('warning'),
|
|
214
|
+
'button-warning-color--disabled': color('warning-dark'),
|
|
215
|
+
|
|
216
|
+
'button-warning-outline': shadow('glow-warning'),
|
|
217
|
+
|
|
218
|
+
// button icon
|
|
219
|
+
'button-icon-border-radius': border.radius('circle'),
|
|
220
|
+
'button-icon-small-width': height('small'),
|
|
221
|
+
'button-icon-width': height('default'),
|
|
222
|
+
'button-icon-large-width': height('large'),
|
|
223
|
+
|
|
224
|
+
'button-icon-background': color('neutral-lighter'),
|
|
225
|
+
'button-icon-background--hover': color('neutral-lighter'),
|
|
226
|
+
'button-icon-background--focus': color('neutral-lighter'),
|
|
227
|
+
'button-icon-background--active': color('neutral-light'),
|
|
228
|
+
'button-icon-background--disabled': color('neutral-lighter'),
|
|
229
|
+
|
|
230
|
+
'button-icon-border-color': color('neutral-lighter'),
|
|
231
|
+
'button-icon-border-color--hover': color('neutral-lighter'),
|
|
232
|
+
'button-icon-border-color--focus': color('neutral-lighter'),
|
|
233
|
+
'button-icon-border-color--active': color('neutral-light'),
|
|
234
|
+
'button-icon-border-color--disabled': color('neutral-lighter'),
|
|
235
|
+
|
|
236
|
+
'button-icon-color': color('neutral-darkest'),
|
|
237
|
+
'button-icon-color--hover': toCSSValue('color-primary-60'),
|
|
238
|
+
'button-icon-color--focus': color('neutral-darkest'),
|
|
239
|
+
'button-icon-color--active': color('neutral-darkest'),
|
|
240
|
+
'button-icon-color--disabled': color('neutral-darkest'),
|
|
241
|
+
|
|
242
|
+
'button-icon-outline': shadow('glow-primary'),
|
|
243
|
+
|
|
244
|
+
// tag
|
|
245
|
+
'tag-border-radius': rem('30px'),
|
|
246
|
+
'tag-border-width': border.width('thin'),
|
|
247
|
+
'tag-font-weight': font.weight('bold'),
|
|
248
|
+
'tag-font-height': font.height('1'),
|
|
249
|
+
'tag-spacing': `0 ${spacing('s')}`,
|
|
250
|
+
'tag-spacing-removable': `0 ${spacing('xs')} 0 ${spacing('s')}`,
|
|
251
|
+
'tag-width': 'auto',
|
|
252
|
+
'tag-outline': shadow('glow-primary'),
|
|
253
|
+
|
|
254
|
+
'tag-remove-button-background': color('neutral-white'),
|
|
255
|
+
'tag-remove-button-border-radius': rem('24px'),
|
|
256
|
+
'tag-icon-spacing': spacing('xs'),
|
|
257
|
+
|
|
258
|
+
// tag small
|
|
259
|
+
'tag-small-font-size': font.size('6'),
|
|
260
|
+
'tag-small-height': rem('16px'),
|
|
261
|
+
'tag-small-transform': 'uppercase',
|
|
262
|
+
'tag-small-leading-display': 'none',
|
|
263
|
+
'tag-small-remove-button-size': rem('0'),
|
|
264
|
+
'tag-small-remove-button-icon-size': rem('0'),
|
|
265
|
+
'tag-small-spacing-removable': `0 ${spacing('s')}`,
|
|
266
|
+
|
|
267
|
+
// tag medium
|
|
268
|
+
'tag-font-size': font.size('5'),
|
|
269
|
+
'tag-height': rem('24px'),
|
|
270
|
+
'tag-transform': 'none',
|
|
271
|
+
'tag-leading-display': 'inline-flex',
|
|
272
|
+
'tag-remove-button-size': rem('16px'),
|
|
273
|
+
'tag-remove-button-icon-size': rem('10px'),
|
|
274
|
+
|
|
275
|
+
// tag large
|
|
276
|
+
'tag-large-font-size': font.size('4'),
|
|
277
|
+
'tag-large-height': rem('32px'),
|
|
278
|
+
'tag-large-transform': 'none',
|
|
279
|
+
'tag-large-leading-display': 'inline-flex',
|
|
280
|
+
'tag-large-remove-button-size': rem('24px'),
|
|
281
|
+
'tag-large-remove-button-icon-size': rem('12px'),
|
|
282
|
+
|
|
283
|
+
// tag default
|
|
284
|
+
'tag-default-background': color('neutral-light'),
|
|
285
|
+
'tag-default-background--hover': toCSSValue('color-accent-60', 0.4),
|
|
286
|
+
'tag-default-background--focus': color('neutral-dark', 0.2),
|
|
287
|
+
|
|
288
|
+
'tag-default-color': color('neutral-darkest'),
|
|
289
|
+
'tag-default-color--hover': color('neutral-darkest'),
|
|
290
|
+
'tag-default-color--focus': color('neutral-dark'),
|
|
291
|
+
|
|
292
|
+
'tag-default-border-color': 'transparent',
|
|
293
|
+
'tag-default-border-color--hover': 'transparent',
|
|
294
|
+
'tag-default-border-color--focus': 'transparent',
|
|
295
|
+
|
|
296
|
+
// tag outline
|
|
297
|
+
'tag-outlined-background': color('transparent'),
|
|
298
|
+
'tag-outlined-background--hover': toCSSValue('color-accent-60', 0.4),
|
|
299
|
+
'tag-outlined-background--focus': color('neutral-white'),
|
|
300
|
+
|
|
301
|
+
'tag-outlined-color': color('neutral-darkest'),
|
|
302
|
+
'tag-outlined-color--hover': color('neutral-darkest'),
|
|
303
|
+
'tag-outlined-color--focus': color('neutral-darker'),
|
|
304
|
+
|
|
305
|
+
'tag-outlined-border-color': color('neutral-darkest'),
|
|
306
|
+
'tag-outlined-border-color--hover': color('neutral-darkest'),
|
|
307
|
+
'tag-outlined-border-color--focus': color('neutral-darker'),
|
|
308
|
+
|
|
309
|
+
// tag accent
|
|
310
|
+
'tag-accent-background': toCSSValue('color-primary-60', 0.2),
|
|
311
|
+
'tag-accent-background--hover': toCSSValue('color-primary-60', 0.4),
|
|
312
|
+
'tag-accent-background--focus': toCSSValue('color-primary-60', 0.2),
|
|
313
|
+
|
|
314
|
+
'tag-accent-color': toCSSValue('color-primary-60'),
|
|
315
|
+
'tag-accent-color--hover': toCSSValue('color-primary-60'),
|
|
316
|
+
'tag-accent-color--focus': toCSSValue('color-primary-60'),
|
|
317
|
+
|
|
318
|
+
'tag-accent-border-color': 'transparent',
|
|
319
|
+
'tag-accent-border-color--hover': 'transparent',
|
|
320
|
+
'tag-accent-border-color--focus': 'transparent',
|
|
321
|
+
|
|
322
|
+
// tag success
|
|
323
|
+
'tag-success-background': color('success-light'),
|
|
324
|
+
'tag-success-background--hover': color('success-light'),
|
|
325
|
+
'tag-success-background--focus': color('success-light'),
|
|
326
|
+
|
|
327
|
+
'tag-success-color': color('success-dark'),
|
|
328
|
+
'tag-success-color--hover': color('success-dark'),
|
|
329
|
+
'tag-success-color--focus': color('success-dark'),
|
|
330
|
+
|
|
331
|
+
'tag-success-border-color': color('success-light'),
|
|
332
|
+
'tag-success-border-color--hover': color('success-light'),
|
|
333
|
+
'tag-success-border-color--focus': color('success-light'),
|
|
334
|
+
|
|
335
|
+
// tag warning
|
|
336
|
+
'tag-warning-background': color('warning-light'),
|
|
337
|
+
'tag-warning-background--hover': color('warning-light'),
|
|
338
|
+
'tag-warning-background--focus': color('warning-light'),
|
|
339
|
+
|
|
340
|
+
'tag-warning-color': color('warning-dark'),
|
|
341
|
+
'tag-warning-color--hover': color('warning-dark'),
|
|
342
|
+
'tag-warning-color--focus': color('warning-dark'),
|
|
343
|
+
|
|
344
|
+
'tag-warning-border-color': color('warning-light'),
|
|
345
|
+
'tag-warning-border-color--hover': color('warning-light'),
|
|
346
|
+
'tag-warning-border-color--focus': color('warning-light'),
|
|
347
|
+
|
|
348
|
+
// tag danger
|
|
349
|
+
'tag-danger-background': color('danger-light'),
|
|
350
|
+
'tag-danger-background--hover': color('danger-light'),
|
|
351
|
+
'tag-danger-background--focus': color('danger-light'),
|
|
352
|
+
|
|
353
|
+
'tag-danger-color': color('danger-dark'),
|
|
354
|
+
'tag-danger-color--hover': color('danger-dark'),
|
|
355
|
+
'tag-danger-color--focus': color('danger-dark'),
|
|
356
|
+
|
|
357
|
+
'tag-danger-border-color': color('danger-light'),
|
|
358
|
+
'tag-danger-border-color--hover': color('danger-light'),
|
|
359
|
+
'tag-danger-border-color--focus': color('danger-light'),
|
|
360
|
+
|
|
361
|
+
// checkbox
|
|
362
|
+
'checkbox-color': color('neutral-darker'),
|
|
363
|
+
'checkbox-font-weight': font.weight('medium'),
|
|
364
|
+
'checkbox-font-size': font.size('4'),
|
|
365
|
+
|
|
366
|
+
'checkbox-selector-border-radius': border.radius('s'),
|
|
367
|
+
'checkbox-selector-size': rem('16px'),
|
|
368
|
+
'checkbox-selector-outline': shadow('glow-primary'),
|
|
369
|
+
|
|
370
|
+
'checkbox-small-font-size': font.size('5'),
|
|
371
|
+
|
|
372
|
+
'checkbox-selector-icon-color': color('neutral-white'),
|
|
373
|
+
|
|
374
|
+
'checkbox-selector-background': color('neutral-white'),
|
|
375
|
+
'checkbox-selector-background--hover': color('neutral-white'),
|
|
376
|
+
'checkbox-selector-background--focus': color('neutral-white'),
|
|
377
|
+
'checkbox-selector-background--disabled': color('neutral-light'),
|
|
378
|
+
|
|
379
|
+
'checkbox-selector-checked-background': color('primary'),
|
|
380
|
+
'checkbox-selector-checked-background--hover': toCSSValue('color-primary-100'),
|
|
381
|
+
'checkbox-selector-checked-background--focus': color('primary'),
|
|
382
|
+
'checkbox-selector-checked-background--disabled': color('neutral-dark'),
|
|
383
|
+
|
|
384
|
+
'checkbox-selector-border-color': color('neutral-darker'),
|
|
385
|
+
'checkbox-selector-border-color--hover': color('accent'),
|
|
386
|
+
'checkbox-selector-border-color--focus': color('accent'),
|
|
387
|
+
'checkbox-selector-border-color--disabled': color('neutral-darker'),
|
|
388
|
+
|
|
389
|
+
'checkbox-selector-checked-border-color': color('primary'),
|
|
390
|
+
'checkbox-selector-checked-border-color--hover': color('accent'),
|
|
391
|
+
'checkbox-selector-checked-border-color--focus': color('accent'),
|
|
392
|
+
'checkbox-selector-checked-border-color--disabled': color('neutral-darkest'),
|
|
393
|
+
|
|
394
|
+
// checkbox dark
|
|
395
|
+
'checkbox-dark-color': color('neutral-lighter'),
|
|
396
|
+
|
|
397
|
+
'checkbox-dark-selector-background': color('neutral-darker'),
|
|
398
|
+
'checkbox-dark-selector-background--hover': color('neutral-darker'),
|
|
399
|
+
'checkbox-dark-selector-background--focus': color('neutral-darker'),
|
|
400
|
+
'checkbox-dark-selector-background--disabled': color('neutral-neutral'),
|
|
401
|
+
|
|
402
|
+
'checkbox-dark-selector-border-color': color('neutral-lighter'),
|
|
403
|
+
'checkbox-dark-selector-border-color--hover': color('accent'),
|
|
404
|
+
'checkbox-dark-selector-border-color--focus': color('accent'),
|
|
405
|
+
'checkbox-dark-selector-border-color--disabled': color('neutral-lighter'),
|
|
406
|
+
|
|
407
|
+
// radio
|
|
408
|
+
'radio-color': color('accent'),
|
|
409
|
+
'radio-font-weight': font.weight('medium'),
|
|
410
|
+
'radio-font-size': font.size('4'),
|
|
411
|
+
|
|
412
|
+
'radio-selector-border-radius': border.radius('circle'),
|
|
413
|
+
'radio-selector-size': rem('24px'),
|
|
414
|
+
'radio-selector-outline': shadow('glow-primary'),
|
|
415
|
+
|
|
416
|
+
'radio-small-font-size': font.size('5'),
|
|
417
|
+
'radio-small-selector-size': rem('16px'),
|
|
418
|
+
|
|
419
|
+
'radio-selector-background': color('neutral-white'),
|
|
420
|
+
'radio-selector-background--hover': color('neutral-white'),
|
|
421
|
+
'radio-selector-background--focus': color('neutral-white'),
|
|
422
|
+
'radio-selector-background--disabled': color('neutral-light'),
|
|
423
|
+
|
|
424
|
+
'radio-selector-border-color': color('neutral-darker'),
|
|
425
|
+
'radio-selector-border-color--hover': color('accent'),
|
|
426
|
+
'radio-selector-border-color--focus': color('accent'),
|
|
427
|
+
'radio-selector-border-color--disabled': color('neutral-darker'),
|
|
428
|
+
|
|
429
|
+
'radio-selector-border-color--checked': toCSSValue('color-primary-60'),
|
|
430
|
+
|
|
431
|
+
// radio dark
|
|
432
|
+
'radio-dark-color': color('neutral-lighter'),
|
|
433
|
+
|
|
434
|
+
'radio-dark-selector-background': color('neutral-darker'),
|
|
435
|
+
'radio-dark-selector-background--hover': color('neutral-darker'),
|
|
436
|
+
'radio-dark-selector-background--focus': color('neutral-darker'),
|
|
437
|
+
'radio-dark-selector-background--disabled': color('neutral-neutral'),
|
|
438
|
+
|
|
439
|
+
'radio-dark-selector-border-color': color('neutral-lighter'),
|
|
440
|
+
'radio-dark-selector-border-color--hover': color('accent'),
|
|
441
|
+
'radio-dark-selector-border-color--focus': color('accent'),
|
|
442
|
+
'radio-dark-selector-border-color--disabled': color('neutral-lighter'),
|
|
443
|
+
|
|
444
|
+
// tooltip
|
|
445
|
+
'tooltip-arrow-height': rem('12px'),
|
|
446
|
+
'tooltip-arrow-width': rem('20px'),
|
|
447
|
+
'tooltip-background': color('neutral-darker'),
|
|
448
|
+
'tooltip-border-radius': rem('8px'),
|
|
449
|
+
'tooltip-color': color('neutral-white'),
|
|
450
|
+
'tooltip-dark-outline': toCSSValue('color-neutral-60', 0.4),
|
|
451
|
+
'tooltip-font-size': font.size('4'),
|
|
452
|
+
'tooltip-font-height': font.height('3'),
|
|
453
|
+
'tooltip-max-width': rem('240px'),
|
|
454
|
+
'tooltip-min-width': rem('80px'),
|
|
455
|
+
'tooltip-outline': color('neutral-darkest'),
|
|
456
|
+
'tooltip-padding-x': spacing('m'),
|
|
457
|
+
'tooltip-padding-y': spacing('s'),
|
|
458
|
+
'tooltip-margin': spacing('s'),
|
|
459
|
+
'tooltip-shadow': shadow('droplist'),
|
|
460
|
+
|
|
461
|
+
// modal
|
|
462
|
+
'modal-small-max-width': rem('344px'),
|
|
463
|
+
'modal-max-width': rem('484px'),
|
|
464
|
+
'modal-large-max-width': rem('688px'),
|
|
465
|
+
'modal-overlay-background': toCSSValue('color-neutral-100', 0.4),
|
|
466
|
+
|
|
467
|
+
// dialog
|
|
468
|
+
'dialog-header-color': color('neutral-darkest'),
|
|
469
|
+
'dialog-header-border-color': color('neutral-light'),
|
|
470
|
+
'dialog-body-font-color': color('color-neutral-darker'),
|
|
471
|
+
|
|
472
|
+
// text-field
|
|
473
|
+
'text-field-border-radius': border.radius('s'),
|
|
474
|
+
'text-field-color': color('neutral-darker'),
|
|
475
|
+
'text-field-font-size': font.size('4'),
|
|
476
|
+
'text-field-font-weight': font.weight('medium'),
|
|
477
|
+
'text-field-font-height': font.height('3'),
|
|
478
|
+
'text-field-height': height('default'),
|
|
479
|
+
'text-field-padding-x': spacing('s'),
|
|
480
|
+
'text-field-padding-y': spacing('s'),
|
|
481
|
+
|
|
482
|
+
'text-field-outline': shadow('glow-primary'),
|
|
483
|
+
|
|
484
|
+
'text-field-small-height': height('small'),
|
|
485
|
+
'text-field-small-padding-x': spacing('s'),
|
|
486
|
+
'text-field-small-padding-y': spacing('xs'),
|
|
487
|
+
'text-field-small-font-size': font.size('5'),
|
|
488
|
+
|
|
489
|
+
'text-field-large-height': height('large'),
|
|
490
|
+
'text-field-large-padding-x': spacing('s'),
|
|
491
|
+
'text-field-large-padding-y': rem('12px'),
|
|
492
|
+
'text-field-large-font-size': font.size('4'),
|
|
493
|
+
|
|
494
|
+
'text-field-background': color('neutral-white'),
|
|
495
|
+
'text-field-background--hover': color('neutral-white'),
|
|
496
|
+
'text-field-background--focus': color('neutral-white'),
|
|
497
|
+
'text-field-background--disabled': color('neutral-light'),
|
|
498
|
+
|
|
499
|
+
'text-field-border-color': color('neutral-darker'),
|
|
500
|
+
'text-field-border-color--hover': toCSSValue('color-primary-60'),
|
|
501
|
+
'text-field-border-color--focus': toCSSValue('color-primary-60'),
|
|
502
|
+
'text-field-border-color--disabled': color('neutral-darker'),
|
|
503
|
+
|
|
504
|
+
// text-field dark
|
|
505
|
+
'text-field-dark-color': color('neutral-lighter'),
|
|
506
|
+
|
|
507
|
+
'text-field-dark-background': color('neutral-darker'),
|
|
508
|
+
'text-field-dark-border-color': color('neutral-lighter'),
|
|
509
|
+
'text-field-dark-border-color--hover': color('accent'),
|
|
510
|
+
'text-field-dark-border-color--focus': color('accent'),
|
|
511
|
+
'text-field-dark-border-color--disabled': color('neutral-lighter'),
|
|
512
|
+
|
|
513
|
+
'text-field-success-border-color': color('accent'),
|
|
514
|
+
'text-field-danger-border-color': color('danger'),
|
|
515
|
+
|
|
516
|
+
'text-field-dark-outline': toCSSValue('color-neutral-60', 0.4),
|
|
517
|
+
|
|
518
|
+
// textarea
|
|
519
|
+
'textarea-border-radius': border.radius('s'),
|
|
520
|
+
'textarea-color': color('neutral-darker'),
|
|
521
|
+
'textarea-font-size': font.size('4'),
|
|
522
|
+
'textarea-font-weight': font.weight('medium'),
|
|
523
|
+
'textarea-font-height': font.height('3'),
|
|
524
|
+
'textarea-min-height': rem('64px'),
|
|
525
|
+
'textarea-padding-x': spacing('s'),
|
|
526
|
+
'textarea-padding-y': spacing('s'),
|
|
527
|
+
|
|
528
|
+
'textarea-outline': shadow('glow-primary'),
|
|
529
|
+
|
|
530
|
+
'textarea-small-padding-x': spacing('s'),
|
|
531
|
+
'textarea-small-padding-y': spacing('xs'),
|
|
532
|
+
'textarea-small-font-size': font.size('5'),
|
|
533
|
+
|
|
534
|
+
'textarea-large-height': rem('45px'),
|
|
535
|
+
'textarea-large-padding-x': spacing('s'),
|
|
536
|
+
'textarea-large-padding-y': rem('12px'),
|
|
537
|
+
'textarea-large-font-size': font.size('4'),
|
|
538
|
+
|
|
539
|
+
'textarea-background': color('neutral-white'),
|
|
540
|
+
'textarea-background--hover': color('neutral-white'),
|
|
541
|
+
'textarea-background--focus': color('neutral-white'),
|
|
542
|
+
'textarea-background--disabled': color('neutral-light'),
|
|
543
|
+
|
|
544
|
+
'textarea-border-color': color('neutral-darker'),
|
|
545
|
+
'textarea-border-color--hover': toCSSValue('color-primary-60'),
|
|
546
|
+
'textarea-border-color--focus': toCSSValue('color-primary-60'),
|
|
547
|
+
'textarea-border-color--disabled': color('neutral-darker'),
|
|
548
|
+
|
|
549
|
+
// textarea dark
|
|
550
|
+
'textarea-dark-color': color('neutral-lighter'),
|
|
551
|
+
|
|
552
|
+
'textarea-dark-background': color('neutral-darker'),
|
|
553
|
+
'textarea-dark-border-color': color('neutral-lighter'),
|
|
554
|
+
'textarea-dark-border-color--hover': color('accent'),
|
|
555
|
+
'textarea-dark-border-color--focus': color('accent'),
|
|
556
|
+
'textarea-dark-border-color--disabled': color('neutral-lighter'),
|
|
557
|
+
|
|
558
|
+
'textarea-success-border-color': color('accent'),
|
|
559
|
+
'textarea-danger-border-color': color('danger'),
|
|
560
|
+
|
|
561
|
+
'textarea-dark-outline': toCSSValue('color-neutral-60', 0.4),
|
|
562
|
+
|
|
563
|
+
// link
|
|
564
|
+
'link-font-size': font.size('3'),
|
|
565
|
+
'link-font-height': font.height('2'),
|
|
566
|
+
'link-color': toCSSValue('color-primary-60', 1),
|
|
567
|
+
|
|
568
|
+
'link-font-weight': font.weight('medium'),
|
|
569
|
+
'link-font-weight--hover': font.weight('bold'),
|
|
570
|
+
|
|
571
|
+
// breadcrumbs
|
|
572
|
+
'breadcrumbs-font-size': font.size('2'),
|
|
573
|
+
'breadcrumbs-font-height': font.height('2'),
|
|
574
|
+
'breadcrumbs-font-weight': font.weight('medium'),
|
|
575
|
+
'breadcrumbs-font-weight--active': font.weight('bold'),
|
|
576
|
+
'breadcrumbs-spacing-x': rem('36px'),
|
|
577
|
+
|
|
578
|
+
//banner
|
|
579
|
+
'banner-font-size': font.size('4'),
|
|
580
|
+
'banner-font-height': font.height('3'),
|
|
581
|
+
'banner-default-height': rem('40px'),
|
|
582
|
+
'banner-min-width': rem('320px'),
|
|
583
|
+
'banner-description-color': color('neutral-darker'),
|
|
584
|
+
'banner-title-font-weight': font.weight('bold'),
|
|
585
|
+
'banner-border-radius': border.radius('m'),
|
|
586
|
+
'banner-border-width': border.width('thin'),
|
|
587
|
+
'banner-close-button-color': color('neutral-darker'),
|
|
588
|
+
'banner-icon-width': rem('24px'),
|
|
589
|
+
'banner-icon-height': rem('24px'),
|
|
590
|
+
'banner-icon-margin-right': rem('10px'),
|
|
591
|
+
'banner-default-padding-x': spacing('m'),
|
|
592
|
+
'banner-default-padding-y': spacing('s'),
|
|
593
|
+
'banner-large-padding': spacing('m'),
|
|
594
|
+
'banner-default-icon-alignment': 'center',
|
|
595
|
+
'banner-large-icon-alignment': 'start',
|
|
596
|
+
'banner-default-close-top': spacing('s'),
|
|
597
|
+
'banner-default-close-right': spacing('s'),
|
|
598
|
+
'banner-large-close-top': rem('12px'),
|
|
599
|
+
'banner-large-close-right': rem('12px'),
|
|
600
|
+
|
|
601
|
+
//banner success
|
|
602
|
+
'banner-title-color-success': color('success-dark'),
|
|
603
|
+
'banner-border-color-success': color('success'),
|
|
604
|
+
'banner-background-success': color('success-light'),
|
|
605
|
+
|
|
606
|
+
//banner danger
|
|
607
|
+
'banner-title-color-danger': color('danger-dark'),
|
|
608
|
+
'banner-border-color-danger': color('danger'),
|
|
609
|
+
'banner-background-danger': color('danger-light'),
|
|
610
|
+
|
|
611
|
+
//banner warning
|
|
612
|
+
'banner-title-color-warning': color('warning-dark'),
|
|
613
|
+
'banner-border-color-warning': color('warning'),
|
|
614
|
+
'banner-background-warning': color('warning-light'),
|
|
615
|
+
|
|
616
|
+
//banner neutral
|
|
617
|
+
'banner-title-color-neutral': color('neutral-darker'),
|
|
618
|
+
'banner-border-color-neutral': color('neutral'),
|
|
619
|
+
'banner-background-neutral': color('neutral-light'),
|
|
620
|
+
|
|
621
|
+
//banner action
|
|
622
|
+
'banner-button-background-success': color('success-dark'),
|
|
623
|
+
'banner-button-background-neutral': color('neutral-dark'),
|
|
624
|
+
'banner-button-background-danger': color('danger-dark'),
|
|
625
|
+
'banner-button-background-warning': color('warning-dark'),
|
|
626
|
+
'banner-button-background-secondary': color('transparent'),
|
|
627
|
+
'banner-button-text-color': color('neutral-white'),
|
|
628
|
+
'banner-secondary-button-margin-left': spacing('s'),
|
|
629
|
+
|
|
630
|
+
// progressbar
|
|
631
|
+
'progressbar-height': rem('5px'),
|
|
632
|
+
'progressbar-background': color('transparent'),
|
|
633
|
+
'progressbar-line': color('darker'),
|
|
634
|
+
// neutral
|
|
635
|
+
'progressbar-neutral-fill': color('neutral-light'),
|
|
636
|
+
// success
|
|
637
|
+
'progressbar-success-fill': color('success-light'),
|
|
638
|
+
// danger
|
|
639
|
+
'progressbar-danger-fill': color('danger-light'),
|
|
640
|
+
// warning
|
|
641
|
+
'progressbar-warning-fill': color('warning-light'),
|
|
642
|
+
|
|
643
|
+
// toast
|
|
644
|
+
'toast-padding-x': spacing('m'),
|
|
645
|
+
'toast-padding-y': spacing('m'),
|
|
646
|
+
'toast-border-radius': border.radius('s'),
|
|
647
|
+
'toast-font-color': color('neutral-white'),
|
|
648
|
+
'toast-font-size': font.size('4'),
|
|
649
|
+
'toast-font-weight': font.weight('bold'),
|
|
650
|
+
'toast-font-height': font.height('3'),
|
|
651
|
+
'toast-close-x': spacing('xs'),
|
|
652
|
+
'toast-close-y': spacing('xs'),
|
|
653
|
+
'toast-shadow': shadow('modal'),
|
|
654
|
+
'toast-width': rem('320px'),
|
|
655
|
+
// neutral
|
|
656
|
+
'toast-neutral-background': color('neutral-dark'),
|
|
657
|
+
// success
|
|
658
|
+
'toast-success-background': color('success'),
|
|
659
|
+
// danger
|
|
660
|
+
'toast-danger-background': color('danger'),
|
|
661
|
+
// warning
|
|
662
|
+
'toast-warning-background': color('warning'),
|
|
663
|
+
|
|
664
|
+
// Label
|
|
665
|
+
'label-font-size': font.size('4'),
|
|
666
|
+
'label-font-weight': font.weight('medium'),
|
|
667
|
+
'label-font-height': font.height('3'),
|
|
668
|
+
'label-font-color': color('darker'),
|
|
669
|
+
|
|
670
|
+
// Label required
|
|
671
|
+
'label-required-color': color('danger'),
|
|
672
|
+
|
|
673
|
+
// Label tooltip
|
|
674
|
+
'label-tooltip-margin-left': spacing('xs'),
|
|
675
|
+
|
|
676
|
+
'label-tooltip-font-weight': font.weight('bold'),
|
|
677
|
+
'label-tooltip-font-size': font.size('5'),
|
|
678
|
+
'label-tooltip-font-color': color('darker'),
|
|
679
|
+
|
|
680
|
+
'label-tooltip-background-color': color('neutral'),
|
|
681
|
+
|
|
682
|
+
// Label dark
|
|
683
|
+
'label-dark-font-color': color('neutral-white'),
|
|
684
|
+
|
|
685
|
+
// Label tooltip dark
|
|
686
|
+
'label-tooltip-dark-font-color': color('neutral-white'),
|
|
687
|
+
|
|
688
|
+
'label-tooltip-dark-background-color': color('neutral'),
|
|
689
|
+
|
|
690
|
+
// Switch
|
|
691
|
+
'switch-width': rem('52px'),
|
|
692
|
+
'switch-height': rem('22px'),
|
|
693
|
+
'switch-border-radius': rem('22px'),
|
|
694
|
+
|
|
695
|
+
'switch-outline': shadow('glow-primary'),
|
|
696
|
+
|
|
697
|
+
// Switch Large
|
|
698
|
+
'switch-large-width': rem('70px'),
|
|
699
|
+
'switch-large-height': rem('32px'),
|
|
700
|
+
'switch-large-border-radius': rem('32px'),
|
|
701
|
+
|
|
702
|
+
// Switch Icon
|
|
703
|
+
'switch-icon-height': rem('16px'),
|
|
704
|
+
'switch-icon-width': rem('16px'),
|
|
705
|
+
'switch-icon-color': color('neutral-white'),
|
|
706
|
+
|
|
707
|
+
// Switch Icon Large
|
|
708
|
+
'switch-large-icon-height': rem('20px'),
|
|
709
|
+
'switch-large-icon-width': rem('20px'),
|
|
710
|
+
|
|
711
|
+
// Switch Icon Active
|
|
712
|
+
'switch-icon-active-x': rem('8px'),
|
|
713
|
+
'switch-icon-active-y': rem('3px'),
|
|
714
|
+
|
|
715
|
+
// Switch Large Icon Active
|
|
716
|
+
'switch-large-icon-active-x': rem('8px'),
|
|
717
|
+
'switch-large-icon-active-y': rem('6px'),
|
|
718
|
+
|
|
719
|
+
// Switch Icon Inactive
|
|
720
|
+
'switch-icon-inactive-x': rem('28px'),
|
|
721
|
+
'switch-icon-inactive-y': rem('3px'),
|
|
722
|
+
|
|
723
|
+
// Switch Large Icon Inactive
|
|
724
|
+
'switch-large-icon-inactive-x': rem('42px'),
|
|
725
|
+
'switch-large-icon-inactive-y': rem('6px'),
|
|
726
|
+
|
|
727
|
+
// Switch Inactive
|
|
728
|
+
'switch-inactive-background-color': color('neutral'),
|
|
729
|
+
'switch-inactive-background-color--hover': toCSSValue('color-neutral-80', 0.4),
|
|
730
|
+
|
|
731
|
+
// Switch Active
|
|
732
|
+
'switch-active-background-color': toCSSValue('color-primary-60'),
|
|
733
|
+
'switch-active-background-color--hover': toCSSValue('color-primary-60', 0.6),
|
|
734
|
+
|
|
735
|
+
// Switch Slider
|
|
736
|
+
'switch-slider-x': rem('3px'),
|
|
737
|
+
'switch-slider-active-x': rem('33px'),
|
|
738
|
+
'switch-slider-y': rem('3px'),
|
|
739
|
+
'switch-slider-active-y': rem('3px'),
|
|
740
|
+
'switch-slider-size': rem('16px'),
|
|
741
|
+
'switch-slider-background-color': color('neutral-white'),
|
|
742
|
+
'switch-slider-border-radius': border.radius('circle'),
|
|
743
|
+
|
|
744
|
+
// Switch Slider Large
|
|
745
|
+
'switch-slider-large-x': rem('2px'),
|
|
746
|
+
'switch-slider-large-active-x': rem('40px'),
|
|
747
|
+
'switch-slider-large-y': rem('2px'),
|
|
748
|
+
'switch-slider-large-active-y': rem('2px'),
|
|
749
|
+
'switch-slider-large-size': rem('28px'),
|
|
750
|
+
|
|
751
|
+
// steps
|
|
752
|
+
'steps-step-padding-y': spacing('xl'),
|
|
753
|
+
'steps-step-padding-x': spacing('xl'),
|
|
754
|
+
'steps-color': color('neutral-darker'),
|
|
755
|
+
'steps-progress-padding-y': spacing('xl'),
|
|
756
|
+
'steps-progress-padding-x': spacing('xl'),
|
|
757
|
+
'steps-spacing-y': spacing('3xl'),
|
|
758
|
+
'steps-indicator-size': rem('24px'),
|
|
759
|
+
'steps-conector-height': '1px',
|
|
760
|
+
'steps-conector-height--complete': '3px',
|
|
761
|
+
'steps-conector-top': '12px', // Math.round((steps-indicator-size - steps-conector-height) / 2)
|
|
762
|
+
'steps-conector-top--complete': '11px', // Math.round((steps-indicator-size - steps-conector-height--complete) / 2)
|
|
763
|
+
|
|
764
|
+
'steps-progress-step-background-color': color('neutral'),
|
|
765
|
+
'steps-progress-step-background-color--complete': toCSSValue('color-primary-60'),
|
|
766
|
+
|
|
767
|
+
// card
|
|
768
|
+
'card-background': color('neutral-white'),
|
|
769
|
+
'card-border-color': color('neutral-light'),
|
|
770
|
+
'card-border-radius': border.radius('s'),
|
|
771
|
+
'card-color': color('neutral-darker'),
|
|
772
|
+
'card-flag-background-danger': color('danger'),
|
|
773
|
+
'card-flag-background-neutral': color('neutral-light'),
|
|
774
|
+
'card-flag-background-success': color('success'),
|
|
775
|
+
'card-flag-background-warning': color('warning'),
|
|
776
|
+
'card-flag-width': rem('4px'),
|
|
777
|
+
'card-font-height': font.height('3'),
|
|
778
|
+
'card-padding-x': spacing('m'),
|
|
779
|
+
'card-padding-y': spacing('m'),
|
|
780
|
+
'card-separator-background': color('neutral-lighter'),
|
|
781
|
+
'card-subtitle-font-size': font.size('4'),
|
|
782
|
+
'card-subtitle-font-weight': font.weight('medium'),
|
|
783
|
+
'card-title-font-height': font.height('2'),
|
|
784
|
+
'card-title-font-size': font.size('3'),
|
|
785
|
+
'card-title-font-weight': font.weight('bold'),
|
|
786
|
+
|
|
787
|
+
// popover
|
|
788
|
+
'popover-background': color('neutral-white'),
|
|
789
|
+
'popover-border-color': color('neutral-light'),
|
|
790
|
+
'popover-border-radius': border.radius('s'),
|
|
791
|
+
'popover-shadow': shadow('droplist'),
|
|
792
|
+
|
|
793
|
+
// Side Navigation
|
|
794
|
+
'side-navigation-collapsing-breakpoint': rem('1280px'),
|
|
795
|
+
'side-navigation-width': rem('200px'),
|
|
796
|
+
'side-navigation-width-large': rem('300px'),
|
|
797
|
+
'side-navigation-padding-bottom': spacing('l'),
|
|
798
|
+
'side-navigation-background-color': toCSSValue('color-background-inverted'),
|
|
799
|
+
'side-navigation-component-margin-top': spacing('l'),
|
|
800
|
+
'side-navigation-logo-padding-x': spacing('l'),
|
|
801
|
+
'side-navigation-separator-color': color('neutral-dark'),
|
|
802
|
+
|
|
803
|
+
'side-navigation-menu-title-font-weight': toCSSValue('font-weight-bold'),
|
|
804
|
+
'side-navigation-menu-title-font-size': toCSSValue('font-size-5'),
|
|
805
|
+
'side-navigation-menu-title-line-height': toCSSValue('line-height-5'),
|
|
806
|
+
|
|
807
|
+
'side-navigation-menu-link-color--hover': toCSSValue('color-brand'),
|
|
808
|
+
|
|
809
|
+
'side-navigation-menu-link-background-color--active': toCSSValue(
|
|
810
|
+
'color-background-secondary-inverted'
|
|
811
|
+
),
|
|
812
|
+
'side-navigation-menu-link-box-shadow-color--active': toCSSValue('color-brand'),
|
|
813
|
+
|
|
814
|
+
'side-navigation-menu-item-color--focus': toCSSValue('color-brand'),
|
|
815
|
+
|
|
816
|
+
// Table
|
|
817
|
+
'table-row-default-color': color('neutral-white'),
|
|
818
|
+
'table-row-variant-color': toCSSValue('color-neutral-40', 0.2),
|
|
819
|
+
'table-row-selected-color': toCSSValue('color-primary-60', 0.2),
|
|
820
|
+
|
|
821
|
+
// Top Navigation
|
|
822
|
+
'top-navigation-height': rem('60px'),
|
|
823
|
+
'top-navigation-background-color': color('neutral-white'),
|
|
824
|
+
'top-navigation-border-color': color('neutral-lighter'),
|
|
825
|
+
'top-navigation-dropdown-separator-color': color('neutral-lighter'),
|
|
826
|
+
'top-navigation-dropdown-trigger-color': color('neutral'),
|
|
827
|
+
'top-navigation-dropdown-subitem-color': color('neutral-dark'),
|
|
828
|
+
'top-navigation-item-icon-color': color('neutral-dark'),
|
|
829
|
+
'top-navigation-item-color': color('neutral-darkest'),
|
|
830
|
+
'top-navigation-item-color--hover': toCSSValue('color-brand'),
|
|
831
|
+
|
|
832
|
+
// Select
|
|
833
|
+
'select-selected-option-check-color': toCSSValue('color-primary-60'),
|
|
834
|
+
'select-selected-option-background-color': toCSSValue('color-primary-60', 0.2),
|
|
835
|
+
|
|
836
|
+
// Toggle & Toggle Group
|
|
837
|
+
'toggle-text-transform': 'initial',
|
|
838
|
+
'toggle-background-color': color('transparent'),
|
|
839
|
+
'toggle-background-color--hover': toCSSValue('color-background-tertiary'),
|
|
840
|
+
'toggle-background-color--focus': color('transparent'),
|
|
841
|
+
'toggle-background-color--active': color('transparent'),
|
|
842
|
+
'toggle-background-color--disabled': color('transparent'),
|
|
843
|
+
'toggle-checked-background-color': toCSSValue('color-primary-20'),
|
|
844
|
+
'toggle-checked-background-color--hover': toCSSValue('color-background-tertiary'),
|
|
845
|
+
'toggle-checked-background-color--focus': toCSSValue('color-primary-20'),
|
|
846
|
+
'toggle-checked-background-color--active': toCSSValue('color-background-tertiary'),
|
|
847
|
+
'toggle-checked-background-color--disabled': toCSSValue('color-primary-20'),
|
|
848
|
+
'toggle-color': toCSSValue('color-primary-100'),
|
|
849
|
+
'toggle-color--hover': toCSSValue('color-primary-100'),
|
|
850
|
+
'toggle-color--focus': toCSSValue('color-primary-100'),
|
|
851
|
+
'toggle-color--active': toCSSValue('color-primary-100'),
|
|
852
|
+
'toggle-color--disabled': toCSSValue('color-primary-100'),
|
|
853
|
+
'toggle-checked-color': toCSSValue('color-primary-100'),
|
|
854
|
+
'toggle-checked-color--hover': toCSSValue('color-primary-100'),
|
|
855
|
+
'toggle-checked-color--focus': toCSSValue('color-primary-100'),
|
|
856
|
+
'toggle-checked-color--active': toCSSValue('color-primary-100'),
|
|
857
|
+
'toggle-checked-color--disabled': toCSSValue('color-primary-100'),
|
|
858
|
+
|
|
859
|
+
'toggle-single-border-color': color('transparent'),
|
|
860
|
+
'toggle-single-border-color--hover': toCSSValue('color-background-tertiary'),
|
|
861
|
+
'toggle-single-border-color--focus': toCSSValue('color-background-tertiary'),
|
|
862
|
+
'toggle-single-border-color--active': toCSSValue('color-background-tertiary'),
|
|
863
|
+
'toggle-single-border-color--disabled': color('transparent'),
|
|
864
|
+
'toggle-single-checked-border-color': toCSSValue('color-primary-20'),
|
|
865
|
+
'toggle-single-checked-border-color--disabled': toCSSValue('color-primary-20'),
|
|
866
|
+
'toggle-single-font-size': toCSSValue('font-size-4'),
|
|
867
|
+
'toggle-single-small-font-size': '10px',
|
|
868
|
+
'toggle-single-height': '30px',
|
|
869
|
+
'toggle-single-small-height': '18px',
|
|
870
|
+
|
|
871
|
+
'toggle-multiple-border-color': color('transparent'),
|
|
872
|
+
'toggle-multiple-border-color--hover': toCSSValue('color-background-tertiary'),
|
|
873
|
+
'toggle-multiple-border-color--focus': toCSSValue('color-background-tertiary'),
|
|
874
|
+
'toggle-multiple-border-color--active': toCSSValue('color-background-tertiary'),
|
|
875
|
+
'toggle-multiple-border-color--disabled': color('transparent'),
|
|
876
|
+
'toggle-multiple-checked-border-color': toCSSValue('color-primary-20'),
|
|
877
|
+
'toggle-multiple-checked-border-color--disabled': toCSSValue('color-primary-20'),
|
|
878
|
+
'toggle-multiple-font-size': toCSSValue('font-size-4'),
|
|
879
|
+
'toggle-multiple-small-font-size': font.size('5'),
|
|
880
|
+
'toggle-multiple-height': '30px',
|
|
881
|
+
'toggle-multiple-small-height': '18px',
|
|
882
|
+
|
|
883
|
+
'toggle-group-multiple-border-width': '1px',
|
|
884
|
+
'toggle-group-multiple-border-style': 'solid',
|
|
885
|
+
'toggle-group-multiple-border-color': toCSSValue('color-border'),
|
|
886
|
+
'toggle-group-multiple-border-radius': toCSSValue('border-radius-s'),
|
|
887
|
+
'toggle-group-multiple-padding': toCSSValue('spacing-1'),
|
|
888
|
+
|
|
889
|
+
'toggle-group-single-border-width': '1px',
|
|
890
|
+
'toggle-group-single-border-style': 'solid',
|
|
891
|
+
'toggle-group-single-border-color': toCSSValue('color-border'),
|
|
892
|
+
'toggle-group-single-border-radius': toCSSValue('border-radius-s'),
|
|
893
|
+
'toggle-group-single-padding': toCSSValue('spacing-1'),
|
|
894
|
+
|
|
895
|
+
// dropdown
|
|
896
|
+
'dropdown-trigger-expanded-color': toCSSValue('color-primary-60'),
|
|
897
|
+
'dropdown-trigger-height': height('default'),
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export default mirandaCompatibility
|