@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
|
@@ -14,82 +14,107 @@ import ToggleGroupContext, { SelectableContext } from './ToggleGroupContext'
|
|
|
14
14
|
import type { ToggleGroupOptionProps, ToggleGroupType } from './ToggleGroup.types'
|
|
15
15
|
|
|
16
16
|
const ToggleButton = styled(BaseButton)<{ $type: ToggleGroupType }>`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
text-transform: ${token('toggle-text-transform')};
|
|
18
|
+
|
|
19
|
+
background-color: ${conditional({
|
|
20
|
+
'toggle-background-color': whenProps({ 'aria-checked': false }),
|
|
21
|
+
'toggle-checked-background-color': whenProps({ 'aria-checked': true }),
|
|
20
22
|
})};
|
|
21
23
|
|
|
22
24
|
border-color: ${conditional({
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'color-transparent': whenProps({ $type: 'single', 'aria-checked': false }),
|
|
25
|
+
'toggle-single-border-color': whenProps({ $type: 'single', 'aria-checked': false }),
|
|
26
|
+
'toggle-single-checked-border-color': whenProps({ $type: 'single', 'aria-checked': true }),
|
|
27
|
+
'toggle-multiple-border-color': whenProps({ $type: 'multiple', 'aria-checked': false }),
|
|
28
|
+
'toggle-multiple-checked-border-color': whenProps({ $type: 'multiple', 'aria-checked': true }),
|
|
28
29
|
})};
|
|
29
30
|
|
|
30
31
|
color: ${conditional({
|
|
31
|
-
'color
|
|
32
|
-
'
|
|
32
|
+
'toggle-color': whenProps({ 'aria-checked': false }),
|
|
33
|
+
'toggle-checked-color': whenProps({ 'aria-checked': true }),
|
|
33
34
|
})};
|
|
34
35
|
|
|
35
36
|
padding: ${token('space-xs')} ${token('space-s')};
|
|
36
37
|
|
|
37
38
|
${hoverable`
|
|
38
39
|
border-color: ${conditional({
|
|
39
|
-
'
|
|
40
|
-
'color
|
|
40
|
+
'toggle-multiple-border-color--hover': whenProps({ $type: 'multiple' }),
|
|
41
|
+
'toggle-single-border-color--hover': whenProps({ $type: 'single' }),
|
|
41
42
|
})};
|
|
42
43
|
|
|
43
44
|
background-color: ${conditional({
|
|
44
|
-
'color
|
|
45
|
-
'
|
|
45
|
+
'toggle-background-color--hover': whenProps({ 'aria-checked': false }),
|
|
46
|
+
'toggle-checked-background-color--hover': whenProps({ 'aria-checked': true }),
|
|
46
47
|
})};
|
|
48
|
+
|
|
47
49
|
color: ${conditional({
|
|
48
|
-
'color
|
|
49
|
-
'
|
|
50
|
+
'toggle-color--hover': whenProps({ 'aria-checked': false }),
|
|
51
|
+
'toggle-checked-color--hover': whenProps({ 'aria-checked': true }),
|
|
50
52
|
})};
|
|
51
53
|
`}
|
|
52
54
|
|
|
53
55
|
${focusable`
|
|
54
|
-
border-color: ${
|
|
56
|
+
border-color: ${conditional({
|
|
57
|
+
'toggle-multiple-border-color--focus': whenProps({ $type: 'multiple' }),
|
|
58
|
+
'toggle-single-border-color--focus': whenProps({ $type: 'single' }),
|
|
59
|
+
})};
|
|
60
|
+
|
|
55
61
|
background-color: ${conditional({
|
|
56
|
-
'color
|
|
57
|
-
'
|
|
62
|
+
'toggle-background-color--focus': whenProps({ 'aria-checked': false }),
|
|
63
|
+
'toggle-checked-background-color--focus': whenProps({ 'aria-checked': true }),
|
|
58
64
|
})};
|
|
65
|
+
|
|
59
66
|
color: ${conditional({
|
|
60
|
-
'color
|
|
61
|
-
'
|
|
67
|
+
'toggle-color--focus': whenProps({ 'aria-checked': false }),
|
|
68
|
+
'toggle-checked-color--focus': whenProps({ 'aria-checked': true }),
|
|
62
69
|
})};
|
|
63
70
|
|
|
64
71
|
box-shadow: ${token('button-primary-outline')};
|
|
65
72
|
`}
|
|
66
73
|
|
|
67
74
|
${activatable`
|
|
68
|
-
border-color:
|
|
75
|
+
border-color: ${conditional({
|
|
76
|
+
'toggle-multiple-border-color--active': whenProps({ $type: 'multiple' }),
|
|
77
|
+
'toggle-single-border-color--active': whenProps({ $type: 'single' }),
|
|
78
|
+
})};
|
|
79
|
+
|
|
69
80
|
background-color: ${conditional({
|
|
70
|
-
'color
|
|
71
|
-
'color
|
|
81
|
+
'toggle-background-color--active': whenProps({ 'aria-checked': false }),
|
|
82
|
+
'toggle-checked-background-color--active': whenProps({ 'aria-checked': true }),
|
|
72
83
|
})};
|
|
84
|
+
|
|
73
85
|
color: ${conditional({
|
|
74
|
-
'color
|
|
75
|
-
'
|
|
86
|
+
'toggle-color--active': whenProps({ 'aria-checked': false }),
|
|
87
|
+
'toggle-checked-color--active': whenProps({ 'aria-checked': true }),
|
|
76
88
|
})};
|
|
77
89
|
`}
|
|
78
90
|
|
|
79
91
|
${disableable`
|
|
80
92
|
opacity: 1; // toggle group already applies opacity; we don't want to overlap it.
|
|
81
93
|
|
|
94
|
+
background-color: ${conditional({
|
|
95
|
+
'toggle-background-color--disabled': whenProps({ 'aria-checked': false }),
|
|
96
|
+
'toggle-checked-background-color--disabled': whenProps({ 'aria-checked': true }),
|
|
97
|
+
})};
|
|
98
|
+
|
|
82
99
|
border-color: ${conditional({
|
|
83
|
-
'
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
100
|
+
'toggle-single-border-color--disabled': whenProps({ $type: 'single', 'aria-checked': false }),
|
|
101
|
+
'toggle-single-checked-border-color--disabled': whenProps({
|
|
102
|
+
$type: 'single',
|
|
103
|
+
'aria-checked': true,
|
|
104
|
+
}),
|
|
105
|
+
'toggle-multiple-border-color--disabled': whenProps({
|
|
106
|
+
$type: 'multiple',
|
|
107
|
+
'aria-checked': false,
|
|
108
|
+
}),
|
|
109
|
+
'toggle-multiple-checked-border-color--disabled': whenProps({
|
|
110
|
+
$type: 'multiple',
|
|
111
|
+
'aria-checked': true,
|
|
112
|
+
}),
|
|
88
113
|
})};
|
|
89
114
|
|
|
90
115
|
color: ${conditional({
|
|
91
|
-
'color
|
|
92
|
-
'
|
|
116
|
+
'toggle-color--disabled': whenProps({ 'aria-checked': false }),
|
|
117
|
+
'toggle-checked-color--disabled': whenProps({ 'aria-checked': true }),
|
|
93
118
|
})};
|
|
94
119
|
`}
|
|
95
120
|
`
|
|
@@ -21,32 +21,45 @@ import type {
|
|
|
21
21
|
|
|
22
22
|
const Container = styled(Group)<{ $multiple: boolean; $scale: ToggleGroupProps['scale'] }>`
|
|
23
23
|
padding: ${conditional({
|
|
24
|
-
'
|
|
25
|
-
'
|
|
24
|
+
'toggle-group-multiple-padding': whenProps({ $multiple: true }),
|
|
25
|
+
'toggle-group-single-padding': whenProps({ $multiple: false }),
|
|
26
26
|
})};
|
|
27
27
|
|
|
28
|
-
${({
|
|
29
|
-
$multiple
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
border-color: ${conditional({
|
|
29
|
+
'toggle-group-multiple-border-color': whenProps({ $multiple: true }),
|
|
30
|
+
'toggle-group-single-border-color': whenProps({ $multiple: false }),
|
|
31
|
+
})};
|
|
32
|
+
|
|
33
|
+
border-style: ${conditional({
|
|
34
|
+
'toggle-group-multiple-border-style': whenProps({ $multiple: true }),
|
|
35
|
+
'toggle-group-single-border-style': whenProps({ $multiple: false }),
|
|
36
|
+
})};
|
|
37
|
+
|
|
38
|
+
border-width: ${conditional({
|
|
39
|
+
'toggle-group-multiple-border-width': whenProps({ $multiple: true }),
|
|
40
|
+
'toggle-group-single-border-width': whenProps({ $multiple: false }),
|
|
41
|
+
})};
|
|
42
|
+
|
|
43
|
+
border-radius: ${conditional({
|
|
44
|
+
'toggle-group-multiple-border-radius': whenProps({ $multiple: true }),
|
|
45
|
+
'toggle-group-single-border-radius': whenProps({ $multiple: false }),
|
|
46
|
+
})};
|
|
37
47
|
|
|
38
48
|
${disableable()}
|
|
39
49
|
|
|
40
50
|
${Toggle} {
|
|
41
|
-
${conditional({
|
|
42
|
-
'
|
|
51
|
+
height: ${conditional({
|
|
52
|
+
'toggle-single-height': whenProps({ $multiple: false, $scale: 'default' }),
|
|
53
|
+
'toggle-single-small-height': whenProps({ $multiple: false, $scale: 'small' }),
|
|
54
|
+
'toggle-multiple-height': whenProps({ $multiple: true, $scale: 'default' }),
|
|
55
|
+
'toggle-multiple-small-height': whenProps({ $multiple: true, $scale: 'small' }),
|
|
43
56
|
})};
|
|
44
57
|
|
|
45
|
-
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
58
|
+
font-size: ${conditional({
|
|
59
|
+
'toggle-single-font-size': whenProps({ $multiple: false, $scale: 'default' }),
|
|
60
|
+
'toggle-single-small-font-size': whenProps({ $multiple: false, $scale: 'small' }),
|
|
61
|
+
'toggle-multiple-font-size': whenProps({ $multiple: true, $scale: 'default' }),
|
|
62
|
+
'toggle-multiple-small-font-size': whenProps({ $multiple: true, $scale: 'small' }),
|
|
50
63
|
})};
|
|
51
64
|
}
|
|
52
65
|
`
|
|
@@ -118,7 +131,7 @@ function ToggleGroup(props: ToggleGroupProps): JSX.Element {
|
|
|
118
131
|
id={id}
|
|
119
132
|
role={multiple ? 'group' : 'radiogroup'}
|
|
120
133
|
align="center"
|
|
121
|
-
space=
|
|
134
|
+
space="xs"
|
|
122
135
|
$multiple={multiple}
|
|
123
136
|
$scale={scale}
|
|
124
137
|
>
|
|
@@ -4,11 +4,12 @@ import {
|
|
|
4
4
|
generateFontGetters,
|
|
5
5
|
generateShadowGetter,
|
|
6
6
|
generateSpacingGetter,
|
|
7
|
+
generateHeightGetter,
|
|
7
8
|
} from '../../theming/theming.helpers'
|
|
8
9
|
|
|
9
10
|
import rem from '../../utils/toolset/rem'
|
|
10
11
|
|
|
11
|
-
const COLORS = {
|
|
12
|
+
export const COLORS = {
|
|
12
13
|
'color-primary': '#56748E',
|
|
13
14
|
'color-accent': '#0B6FB6',
|
|
14
15
|
|
|
@@ -44,7 +45,7 @@ export const OPACITIES = {
|
|
|
44
45
|
'opacity-100': 1,
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
const SPACINGS = {
|
|
48
|
+
export const SPACINGS = {
|
|
48
49
|
'space-none': 0,
|
|
49
50
|
'space-2xs': rem('2px'),
|
|
50
51
|
'space-xs': rem('4px'),
|
|
@@ -56,12 +57,12 @@ const SPACINGS = {
|
|
|
56
57
|
'space-3xl': rem('48px'),
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
const FONT_FAMILIES = {
|
|
60
|
+
export const FONT_FAMILIES = {
|
|
60
61
|
'font-family-default': 'Manrope, sans-serif',
|
|
61
62
|
'font-family-monospace': 'Roboto Mono, monospace',
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
const FONT_SIZES = {
|
|
65
|
+
export const FONT_SIZES = {
|
|
65
66
|
'font-size-6': rem('10px'),
|
|
66
67
|
'font-size-5': rem('12px'),
|
|
67
68
|
'font-size-4': rem('14px'),
|
|
@@ -70,19 +71,19 @@ const FONT_SIZES = {
|
|
|
70
71
|
'font-size-1': rem('26px'),
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
const FONT_WEIGHTS = {
|
|
74
|
+
export const FONT_WEIGHTS = {
|
|
74
75
|
'font-weight-regular': 400,
|
|
75
76
|
'font-weight-medium': 500,
|
|
76
77
|
'font-weight-bold': 800,
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
const FONT_HEIGHTS = {
|
|
80
|
+
export const FONT_HEIGHTS = {
|
|
80
81
|
'font-height-1': '100%',
|
|
81
82
|
'font-height-2': '125%',
|
|
82
83
|
'font-height-3': '140%',
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
const SHADOWS = {
|
|
86
|
+
export const SHADOWS = {
|
|
86
87
|
'shadow-none': 'none',
|
|
87
88
|
'shadow-modal': '0px 2px 6px 0px rgba(10, 10, 11, 0.4)',
|
|
88
89
|
'shadow-droplist': '0px 2px 3px 0px rgba(10, 10, 11, 0.4)',
|
|
@@ -90,7 +91,7 @@ const SHADOWS = {
|
|
|
90
91
|
'shadow-glow-warning': '0px 0px 4px 0px rgba(255, 206, 79, 1.0)',
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
const BORDER_RADIUSES = {
|
|
94
|
+
export const BORDER_RADIUSES = {
|
|
94
95
|
'border-radius-none': 0,
|
|
95
96
|
'border-radius-s': rem('4px'),
|
|
96
97
|
'border-radius-m': rem('8px'),
|
|
@@ -98,14 +99,14 @@ const BORDER_RADIUSES = {
|
|
|
98
99
|
'border-radius-circle': '50%',
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
const BORDER_WIDTHS = {
|
|
102
|
+
export const BORDER_WIDTHS = {
|
|
102
103
|
'border-width-none': 0,
|
|
103
104
|
'border-width-thin': '1px',
|
|
104
105
|
'border-width-medium': '2px',
|
|
105
106
|
'border-width-bold': '4px',
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
const Z_INDEXES = {
|
|
109
|
+
export const Z_INDEXES = {
|
|
109
110
|
'z-index-none': 0,
|
|
110
111
|
'z-index-default': 1,
|
|
111
112
|
'z-index-droplist': 10,
|
|
@@ -114,12 +115,18 @@ const Z_INDEXES = {
|
|
|
114
115
|
'z-index-modal': 30,
|
|
115
116
|
}
|
|
116
117
|
|
|
117
|
-
const TEXT_ALIGNMENT = {
|
|
118
|
+
export const TEXT_ALIGNMENT = {
|
|
118
119
|
left: 'left',
|
|
119
120
|
center: 'center',
|
|
120
121
|
right: 'right',
|
|
121
122
|
}
|
|
122
123
|
|
|
124
|
+
export const HEIGHTS = {
|
|
125
|
+
'height-small': rem('24px'),
|
|
126
|
+
'height-default': rem('36px'),
|
|
127
|
+
'height-large': rem('48px'),
|
|
128
|
+
}
|
|
129
|
+
|
|
123
130
|
const color = generateColorGetter(COLORS)
|
|
124
131
|
const shadow = generateShadowGetter(SHADOWS)
|
|
125
132
|
const spacing = generateSpacingGetter(SPACINGS)
|
|
@@ -134,6 +141,8 @@ const border = generateBorderGetters({
|
|
|
134
141
|
widths: BORDER_WIDTHS,
|
|
135
142
|
})
|
|
136
143
|
|
|
144
|
+
const height = generateHeightGetter(HEIGHTS)
|
|
145
|
+
|
|
137
146
|
// TODO: how to inherit from other theme?
|
|
138
147
|
|
|
139
148
|
const alice = {
|
|
@@ -149,23 +158,25 @@ const alice = {
|
|
|
149
158
|
...SPACINGS,
|
|
150
159
|
...Z_INDEXES,
|
|
151
160
|
...TEXT_ALIGNMENT,
|
|
161
|
+
...HEIGHTS,
|
|
162
|
+
|
|
152
163
|
// button
|
|
153
164
|
'button-border-radius': border.radius('s'),
|
|
154
165
|
'button-border-width': border.width('thin'),
|
|
155
166
|
'button-font-weight': font.weight('bold'),
|
|
156
167
|
'button-font-height': font.height('1'),
|
|
157
168
|
'button-small-font-size': font.size('5'),
|
|
158
|
-
'button-small-height':
|
|
169
|
+
'button-small-height': height('small'),
|
|
159
170
|
'button-small-padding-x': spacing('s'),
|
|
160
171
|
'button-small-padding-y': rem('6px'),
|
|
161
172
|
'button-font-size': font.size('3'),
|
|
162
|
-
'button-height':
|
|
173
|
+
'button-height': height('default'),
|
|
163
174
|
'button-width': 'auto',
|
|
164
175
|
'button-padding-y': rem('10px'),
|
|
165
176
|
'button-padding-x': spacing('m'),
|
|
166
177
|
'button-spacing-x': spacing('s'),
|
|
167
178
|
'button-large-font-size': font.size('3'),
|
|
168
|
-
'button-large-height':
|
|
179
|
+
'button-large-height': height('large'),
|
|
169
180
|
'button-large-padding-x': spacing('m'),
|
|
170
181
|
'button-large-padding-y': rem('14px'),
|
|
171
182
|
|
|
@@ -253,9 +264,9 @@ const alice = {
|
|
|
253
264
|
|
|
254
265
|
// button icon
|
|
255
266
|
'button-icon-border-radius': border.radius('circle'),
|
|
256
|
-
'button-icon-small-width':
|
|
257
|
-
'button-icon-width':
|
|
258
|
-
'button-icon-large-width':
|
|
267
|
+
'button-icon-small-width': height('small'),
|
|
268
|
+
'button-icon-width': height('default'),
|
|
269
|
+
'button-icon-large-width': height('large'),
|
|
259
270
|
|
|
260
271
|
'button-icon-background': color('neutral-lighter'),
|
|
261
272
|
'button-icon-background--hover': color('neutral-lighter'),
|
|
@@ -511,18 +522,18 @@ const alice = {
|
|
|
511
522
|
'text-field-font-size': font.size('4'),
|
|
512
523
|
'text-field-font-weight': font.weight('medium'),
|
|
513
524
|
'text-field-font-height': font.height('3'),
|
|
514
|
-
'text-field-height':
|
|
525
|
+
'text-field-height': height('default'),
|
|
515
526
|
'text-field-padding-x': spacing('s'),
|
|
516
527
|
'text-field-padding-y': spacing('s'),
|
|
517
528
|
|
|
518
529
|
'text-field-outline': shadow('glow-primary'),
|
|
519
530
|
|
|
520
|
-
'text-field-small-height':
|
|
531
|
+
'text-field-small-height': height('small'),
|
|
521
532
|
'text-field-small-padding-x': spacing('s'),
|
|
522
533
|
'text-field-small-padding-y': spacing('xs'),
|
|
523
534
|
'text-field-small-font-size': font.size('5'),
|
|
524
535
|
|
|
525
|
-
'text-field-large-height':
|
|
536
|
+
'text-field-large-height': height('large'),
|
|
526
537
|
'text-field-large-padding-x': spacing('s'),
|
|
527
538
|
'text-field-large-padding-y': rem('12px'),
|
|
528
539
|
'text-field-large-font-size': font.size('4'),
|
|
@@ -797,6 +808,9 @@ const alice = {
|
|
|
797
808
|
'steps-conector-top': '12px', // Math.round((steps-indicator-size - steps-conector-height) / 2)
|
|
798
809
|
'steps-conector-top--complete': '11px', // Math.round((steps-indicator-size - steps-conector-height--complete) / 2)
|
|
799
810
|
|
|
811
|
+
'steps-progress-step-background-color': color('neutral'),
|
|
812
|
+
'steps-progress-step-background-color--complete': color('accent'),
|
|
813
|
+
|
|
800
814
|
// card
|
|
801
815
|
'card-background': color('neutral-white'),
|
|
802
816
|
'card-border-color': color('neutral-light'),
|
|
@@ -833,6 +847,16 @@ const alice = {
|
|
|
833
847
|
'side-navigation-logo-padding-x': spacing('l'),
|
|
834
848
|
'side-navigation-separator-color': color('neutral-dark'),
|
|
835
849
|
|
|
850
|
+
'side-navigation-menu-title-font-weight': font.weight('bold'),
|
|
851
|
+
'side-navigation-menu-title-font-size': font.size('5'),
|
|
852
|
+
'side-navigation-menu-title-line-height': font.height('3'),
|
|
853
|
+
|
|
854
|
+
'side-navigation-menu-link-color--hover': color('primary'),
|
|
855
|
+
'side-navigation-menu-link-background-color--active': color('neutral-darkest', 0.2),
|
|
856
|
+
'side-navigation-menu-link-box-shadow-color--active': color('primary'),
|
|
857
|
+
|
|
858
|
+
'side-navigation-menu-item-color--focus': color('primary'),
|
|
859
|
+
|
|
836
860
|
// Table
|
|
837
861
|
'table-row-default-color': color('neutral-white'),
|
|
838
862
|
'table-row-variant-color': color('neutral-light', 0.2),
|
|
@@ -848,6 +872,73 @@ const alice = {
|
|
|
848
872
|
'top-navigation-item-icon-color': color('neutral-dark'),
|
|
849
873
|
'top-navigation-item-color': color('neutral-darkest'),
|
|
850
874
|
'top-navigation-item-color--hover': color('primary'),
|
|
875
|
+
|
|
876
|
+
// Select
|
|
877
|
+
'select-selected-option-check-color': color('accent'),
|
|
878
|
+
'select-selected-option-background-color': color('accent', 0.2),
|
|
879
|
+
|
|
880
|
+
// Toggle & Toggle Group
|
|
881
|
+
'toggle-text-transform': 'uppercase',
|
|
882
|
+
'toggle-background-color': color('transparent'),
|
|
883
|
+
'toggle-background-color--hover': color('transparent'),
|
|
884
|
+
'toggle-background-color--focus': color('transparent'),
|
|
885
|
+
'toggle-background-color--active': color('transparent'),
|
|
886
|
+
'toggle-background-color--disabled': color('transparent'),
|
|
887
|
+
'toggle-checked-background-color': color('neutral-darkest'),
|
|
888
|
+
'toggle-checked-background-color--hover': color('neutral-dark'),
|
|
889
|
+
'toggle-checked-background-color--focus': color('neutral-darker'),
|
|
890
|
+
'toggle-checked-background-color--active': color('neutral'),
|
|
891
|
+
'toggle-checked-background-color--disabled': color('neutral-darkest'),
|
|
892
|
+
'toggle-color': color('neutral-darker'),
|
|
893
|
+
'toggle-color--hover': color('neutral-dark'),
|
|
894
|
+
'toggle-color--focus': color('neutral-darker'),
|
|
895
|
+
'toggle-color--active': color('neutral'),
|
|
896
|
+
'toggle-color--disabled': color('neutral-darker'),
|
|
897
|
+
'toggle-checked-color': color('neutral-white'),
|
|
898
|
+
'toggle-checked-color--hover': color('neutral-white'),
|
|
899
|
+
'toggle-checked-color--focus': color('neutral-white'),
|
|
900
|
+
'toggle-checked-color--active': color('neutral-white'),
|
|
901
|
+
'toggle-checked-color--disabled': color('neutral-lightest'),
|
|
902
|
+
|
|
903
|
+
'toggle-single-border-color': color('transparent'),
|
|
904
|
+
'toggle-single-border-color--hover': color('transparent'),
|
|
905
|
+
'toggle-single-border-color--focus': color('neutral-darker'),
|
|
906
|
+
'toggle-single-border-color--active': color('neutral'),
|
|
907
|
+
'toggle-single-border-color--disabled': color('transparent'),
|
|
908
|
+
'toggle-single-checked-border-color': color('neutral-darkest'),
|
|
909
|
+
'toggle-single-checked-border-color--disabled': color('neutral-darkest'),
|
|
910
|
+
'toggle-single-font-size': font.size('4'),
|
|
911
|
+
'toggle-single-small-font-size': '10px',
|
|
912
|
+
'toggle-single-height': '28px',
|
|
913
|
+
'toggle-single-small-height': '16px',
|
|
914
|
+
|
|
915
|
+
'toggle-multiple-border-color': color('neutral-darkest'),
|
|
916
|
+
'toggle-multiple-border-color--hover': color('neutral-dark'),
|
|
917
|
+
'toggle-multiple-border-color--focus': color('neutral-darker'),
|
|
918
|
+
'toggle-multiple-border-color--active': color('neutral'),
|
|
919
|
+
'toggle-multiple-border-color--disabled': color('neutral-darkest'),
|
|
920
|
+
'toggle-multiple-checked-border-color': color('neutral-darkest'),
|
|
921
|
+
'toggle-multiple-checked-border-color--disabled': color('neutral-darkest'),
|
|
922
|
+
'toggle-multiple-font-size': font.size('4'),
|
|
923
|
+
'toggle-multiple-small-font-size': font.size('5'),
|
|
924
|
+
'toggle-multiple-height': '36px',
|
|
925
|
+
'toggle-multiple-small-height': '24px',
|
|
926
|
+
|
|
927
|
+
'toggle-group-multiple-border-width': 'initial',
|
|
928
|
+
'toggle-group-multiple-border-style': 'none',
|
|
929
|
+
'toggle-group-multiple-border-color': 'initial',
|
|
930
|
+
'toggle-group-multiple-border-radius': 'initial',
|
|
931
|
+
'toggle-group-multiple-padding': 0,
|
|
932
|
+
|
|
933
|
+
'toggle-group-single-border-width': '1px',
|
|
934
|
+
'toggle-group-single-border-style': 'solid',
|
|
935
|
+
'toggle-group-single-border-color': color('neutral-darker'),
|
|
936
|
+
'toggle-group-single-border-radius': border.radius('s'),
|
|
937
|
+
'toggle-group-single-padding': '3px',
|
|
938
|
+
|
|
939
|
+
// dropdown
|
|
940
|
+
'dropdown-trigger-expanded-color': color('accent'),
|
|
941
|
+
'dropdown-trigger-height': height('default'),
|
|
851
942
|
}
|
|
852
943
|
|
|
853
944
|
export default alice
|