igniteui-theming 1.4.2 → 1.4.3-beta.1
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/index.js +3 -0
- package/package.json +1 -1
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/schemas/_index.scss +10 -9
- package/sass/themes/schemas/components/_index.scss +2 -0
- package/sass/themes/schemas/components/dark/_avatar.scss +40 -0
- package/sass/themes/schemas/components/dark/_button.scss +388 -0
- package/sass/themes/schemas/components/dark/_checkbox.scss +70 -0
- package/sass/themes/schemas/components/dark/_combo.scss +47 -0
- package/sass/themes/schemas/components/dark/_drop-down.scss +83 -0
- package/sass/themes/schemas/components/dark/_icon.scss +37 -0
- package/sass/themes/schemas/components/dark/_index.scss +120 -0
- package/sass/themes/schemas/components/dark/_input-group.scss +120 -0
- package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
- package/sass/themes/schemas/components/dark/_radio.scss +102 -0
- package/sass/themes/schemas/components/dark/_rating.scss +29 -0
- package/sass/themes/schemas/components/dark/_select.scss +47 -0
- package/sass/themes/schemas/components/dark/_slider.scss +95 -0
- package/sass/themes/schemas/components/dark/_switch.scss +150 -0
- package/sass/themes/schemas/components/dark/_tabs.scss +54 -0
- package/sass/themes/schemas/components/dark/_tree.scss +95 -0
- package/sass/themes/schemas/components/elevation/_button.scss +63 -0
- package/sass/themes/schemas/components/elevation/_drop-down.scss +29 -0
- package/sass/themes/schemas/components/elevation/_input-group.scss +37 -0
- package/sass/themes/schemas/components/elevation/_navbar.scss +23 -0
- package/sass/themes/schemas/components/elevation/_switch.scss +15 -0
- package/sass/themes/schemas/components/light/_avatar.scss +55 -0
- package/sass/themes/schemas/components/light/_button.scss +1173 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +212 -0
- package/sass/themes/schemas/components/light/_combo.scss +203 -0
- package/sass/themes/schemas/components/light/_drop-down.scss +245 -0
- package/sass/themes/schemas/components/light/_icon.scss +46 -0
- package/sass/themes/schemas/components/light/_index.scss +121 -0
- package/sass/themes/schemas/components/light/_input-group.scss +497 -0
- package/sass/themes/schemas/components/light/_navbar.scss +95 -0
- package/sass/themes/schemas/components/light/_radio.scss +177 -0
- package/sass/themes/schemas/components/light/_rating.scss +96 -0
- package/sass/themes/schemas/components/light/_select.scss +118 -0
- package/sass/themes/schemas/components/light/_slider.scss +229 -0
- package/sass/themes/schemas/components/light/_switch.scss +311 -0
- package/sass/themes/schemas/components/light/_tabs.scss +258 -0
- package/sass/themes/schemas/components/light/_tree.scss +188 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// @package theming
|
|
6
|
+
/// @group schemas
|
|
7
|
+
/// @access public
|
|
8
|
+
////
|
|
9
|
+
|
|
10
|
+
/* stylelint-disable max-line-length */
|
|
11
|
+
|
|
12
|
+
/// Generates a light checkbox schema.
|
|
13
|
+
/// @type {Map}
|
|
14
|
+
/// @prop {Map} tick-color [color: ('surface', 500)] - The checked mark color.
|
|
15
|
+
/// @prop {Map} tick-color-hover [color: ('surface', 500)] - The checked mark color on hover.
|
|
16
|
+
/// @prop {Map} label-color [color: ('gray', 900)]- The text color used for the label text.
|
|
17
|
+
/// @prop {Map} empty-color [color: ('gray', 600)] - The unchecked border color.
|
|
18
|
+
/// @prop {Map} fill-color [color: ('secondary', 500)] - The checked border and fill colors.
|
|
19
|
+
/// @prop {Map} fill-color-hover [color: ('secondary', 500)] - The checked border and fill colors on hover.
|
|
20
|
+
/// @prop {Map} disabled-color [color: ('gray', 400)] - The disabled border and fill colors.
|
|
21
|
+
/// @prop {Map} disabled-indeterminate-color [color: ('secondary', 200)] - The disabled border and fill colors in indeterminate state.
|
|
22
|
+
/// @prop {Map} disabled-color-label [color: ('gray', 500)] - The disabled color of the label.
|
|
23
|
+
/// @prop {Map} error-color [color: ('error', 500)] - The border and fill colors in invalid state.
|
|
24
|
+
/// @prop {Map} error-color-hover [color: ('error', 500)] - The border and fill colors in invalid state on hover.
|
|
25
|
+
/// @prop {Map} error-color-focus [color: ('error', 500)] - The border and fill colors in invalid state on focus.
|
|
26
|
+
/// @prop {Number} border-radius [2px] - The border radius used for checkbox. Can be a fraction between 0 and 1, pixels, or percent.
|
|
27
|
+
/// @prop {Number} border-radius-ripple [24px] - The border radius used for checkbox ripple. Can be a fraction between 0 and 1, pixels, or percent.
|
|
28
|
+
$light-checkbox: extend(
|
|
29
|
+
(
|
|
30
|
+
type: 'light',
|
|
31
|
+
tick-color: (
|
|
32
|
+
color: ('surface', 500)
|
|
33
|
+
),
|
|
34
|
+
tick-color-hover: (
|
|
35
|
+
color: ('surface', 500)
|
|
36
|
+
),
|
|
37
|
+
label-color: (
|
|
38
|
+
color: ('gray', 900)
|
|
39
|
+
),
|
|
40
|
+
empty-color: (
|
|
41
|
+
color: ('gray', 600)
|
|
42
|
+
),
|
|
43
|
+
fill-color: (
|
|
44
|
+
color: ('secondary', 500)
|
|
45
|
+
),
|
|
46
|
+
fill-color-hover: (
|
|
47
|
+
color: ('secondary', 500)
|
|
48
|
+
),
|
|
49
|
+
disabled-color: (
|
|
50
|
+
color: ('gray', 400)
|
|
51
|
+
),
|
|
52
|
+
disabled-indeterminate-color: (
|
|
53
|
+
color: ('secondary', 100)
|
|
54
|
+
),
|
|
55
|
+
disabled-color-label: (
|
|
56
|
+
color: ('gray', 500)
|
|
57
|
+
),
|
|
58
|
+
error-color: (
|
|
59
|
+
color: ('error', 500)
|
|
60
|
+
),
|
|
61
|
+
error-color-hover: (
|
|
62
|
+
color: ('error', 500)
|
|
63
|
+
),
|
|
64
|
+
error-color-focus: (
|
|
65
|
+
color: ('error', 500)
|
|
66
|
+
),
|
|
67
|
+
border-radius: rem(2px),
|
|
68
|
+
border-radius-ripple: rem(24px)
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
/// Generates a fluent checkbox schema.
|
|
73
|
+
/// @type {Map}
|
|
74
|
+
/// @prop {Map} tick-color [color: ('surface', 500)] - The checked mark color.
|
|
75
|
+
/// @prop {Map} tick-color-hover [color: ('gray', 700)] - The checked mark color on hover when the control in unchecked.
|
|
76
|
+
/// @prop {Map} empty-color [color: ('gray', 900)] - The unchecked border color.
|
|
77
|
+
/// @prop {Map} fill-color [color: ('primary', 500)] - The checked border and fill colors.
|
|
78
|
+
/// @prop {Map} fill-color-hover [color: ('primary', 900)] - The checked border and fill colors on hover.
|
|
79
|
+
/// @prop {Map} disabled-color [color: ('gray', 400)] - The disabled border and fill colors.
|
|
80
|
+
/// @prop {Map} disabled-color-label [color: ('gray', 400)] - The disabled color of the label.
|
|
81
|
+
/// @prop {Map} focus-outline-color [color: ('gray', 800)] - The focus outlined color.
|
|
82
|
+
/// @prop {Map} error-color [color: ('error', 500)] - The border and fill colors in invalid state on hover.
|
|
83
|
+
/// @prop {Map} error-color-hover [color: ('error', 700)] - The border and fill colors in invalid state on hover.
|
|
84
|
+
/// @prop {Number} border-radius [2px] - The border radius used for checkbox. Can be a fraction between 0 and 1, pixels, or percent.
|
|
85
|
+
/// @prop {Number} border-radius-ripple [2px] - The border radius used for checkbox ripple. Can be a fraction between 0 and 1, pixels, or percent.
|
|
86
|
+
/// @requires {Map} $light-checkbox
|
|
87
|
+
$fluent-checkbox: extend(
|
|
88
|
+
$light-checkbox,
|
|
89
|
+
(
|
|
90
|
+
tick-color-hover: (
|
|
91
|
+
color: ('gray', 700)
|
|
92
|
+
),
|
|
93
|
+
focus-outline-color: (
|
|
94
|
+
color: ('gray', 800)
|
|
95
|
+
),
|
|
96
|
+
empty-color: (
|
|
97
|
+
color: ('gray', 900)
|
|
98
|
+
),
|
|
99
|
+
fill-color: (
|
|
100
|
+
color: ('primary', 500)
|
|
101
|
+
),
|
|
102
|
+
fill-color-hover: (
|
|
103
|
+
color: ('primary', 900)
|
|
104
|
+
),
|
|
105
|
+
disabled-color: (
|
|
106
|
+
color: ('gray', 400)
|
|
107
|
+
),
|
|
108
|
+
disabled-color-label: (
|
|
109
|
+
color: ('gray', 400)
|
|
110
|
+
),
|
|
111
|
+
error-color: (
|
|
112
|
+
color: ('error', 500)
|
|
113
|
+
),
|
|
114
|
+
error-color-hover: (
|
|
115
|
+
color: ('error', 700)
|
|
116
|
+
),
|
|
117
|
+
border-radius: rem(2px),
|
|
118
|
+
border-radius-ripple: rem(2px)
|
|
119
|
+
)
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
/// Generates a bootstrap checkbox schema.
|
|
123
|
+
/// @type {Map}
|
|
124
|
+
/// @prop {Map} fill-color [color: ('primary', 500)] - The checked border and fill colors.
|
|
125
|
+
/// @prop {Map} empty-color [color: ('gray', 500)] - The unchecked border color.
|
|
126
|
+
/// @prop {Map} disabled-color [color: ('primary', 200)] - The disabled border and fill colors.
|
|
127
|
+
/// @prop {Map} disabled-color-label [color: ('gray', 400)] - The disabled color of the label.
|
|
128
|
+
/// @prop {Map} focus-outline-color [color: ('primary', 100)] - The focus outlined color.
|
|
129
|
+
/// @prop {Map} error-color-hover [color: ('error', 100)] - The focus outlined color in invalid state.
|
|
130
|
+
/// @prop {Number} border-radius [4px] - The border radius used for checkbox. Can be a fraction between 0 and 1, pixels, or percent.
|
|
131
|
+
/// @prop {Number} border-radius-ripple [4px] - The border radius used for checkbox ripple. Can be a fraction between 0 and 1, pixels, or percent.
|
|
132
|
+
/// @requires {Map} $light-checkbox
|
|
133
|
+
$bootstrap-checkbox: extend(
|
|
134
|
+
$light-checkbox,
|
|
135
|
+
(
|
|
136
|
+
focus-outline-color: (
|
|
137
|
+
color: ('primary', 100)
|
|
138
|
+
),
|
|
139
|
+
fill-color: (
|
|
140
|
+
color: ('primary', 500)
|
|
141
|
+
),
|
|
142
|
+
empty-color: (
|
|
143
|
+
color: ('gray', 500)
|
|
144
|
+
),
|
|
145
|
+
disabled-color: (
|
|
146
|
+
color: ('primary', 200)
|
|
147
|
+
),
|
|
148
|
+
disabled-color-label: (
|
|
149
|
+
color: ('gray', 400)
|
|
150
|
+
),
|
|
151
|
+
error-color-hover: (
|
|
152
|
+
color: ('error', 100)
|
|
153
|
+
),
|
|
154
|
+
border-radius: rem(4px),
|
|
155
|
+
border-radius-ripple: rem(4px)
|
|
156
|
+
)
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
/// Generates an indigo checkbox schema.
|
|
160
|
+
/// @type {Map}
|
|
161
|
+
/// @prop {Color} tick-color [color: 'surface'] - The checked mark color.
|
|
162
|
+
/// @prop {Color} tick-color-hover [color: 'surface'] - The checked mark color on hover.
|
|
163
|
+
/// @prop {Map} fill-color [color: ('primary', 500)] - The checked border and fill colors.
|
|
164
|
+
/// @prop {Map} empty-color [color: ('gray', 500)] - The unchecked border color.
|
|
165
|
+
/// @prop {Map} disabled-color [color: ('gray', 300)] - The disabled border and fill colors.
|
|
166
|
+
/// @prop {Map} disabled-color-label [color: ('gray', 300)] - The disabled label color.
|
|
167
|
+
/// @prop {Map} focus-outline-color [color: ('gray', 300, .87)] - The focus outlined color.
|
|
168
|
+
/// @prop {Map} focus-outline-color-focused [color: ('secondary', 200, .87)] - The focus outlined color for focused state.
|
|
169
|
+
/// @prop {Map} outline-color-hover-unchecked [color: ('gray', 200, .87)] - The hover outlined color for unchecked state.
|
|
170
|
+
/// @prop {Map} outline-color-hover-checked [color: ('secondary', 100, .87)] - The hover outlined color for checked state.
|
|
171
|
+
/// @prop {Map} error-color-hover [color: ('error', 100, .87)] - The focus outlined color in invalid state.
|
|
172
|
+
/// @prop {Map} error-color-focus [color: ('error', 200, .87)] - The border and fill colors in invalid state on focus.
|
|
173
|
+
/// @prop {Number} border-radius [3px] - The border radius used for checkbox. Can be a fraction between 0 and 1, pixels, or percent.
|
|
174
|
+
/// @prop {Number} border-radius-ripple [3px] - The border radius used for checkbox ripple. Can be a fraction between 0 and 1, pixels, or percent.
|
|
175
|
+
/// @requires {Map} $light-checkbox
|
|
176
|
+
$indigo-checkbox: extend(
|
|
177
|
+
$light-checkbox,
|
|
178
|
+
(
|
|
179
|
+
outline-color-hover-unchecked: (
|
|
180
|
+
color: ('gray', 200, .87)
|
|
181
|
+
),
|
|
182
|
+
outline-color-hover-checked: (
|
|
183
|
+
color: ('secondary', 100, .87)
|
|
184
|
+
),
|
|
185
|
+
focus-outline-color: (
|
|
186
|
+
color: ('gray', 300, .87)
|
|
187
|
+
),
|
|
188
|
+
focus-outline-color-focused: (
|
|
189
|
+
color: ('secondary', 200, .87)
|
|
190
|
+
),
|
|
191
|
+
fill-color: (
|
|
192
|
+
color: ('primary', 500)
|
|
193
|
+
),
|
|
194
|
+
empty-color: (
|
|
195
|
+
color: ('gray', 500)
|
|
196
|
+
),
|
|
197
|
+
disabled-color: (
|
|
198
|
+
color: ('gray', 300),
|
|
199
|
+
),
|
|
200
|
+
disabled-color-label: (
|
|
201
|
+
color: ('gray', 300),
|
|
202
|
+
),
|
|
203
|
+
error-color-hover: (
|
|
204
|
+
color: ('error', 100, .87)
|
|
205
|
+
),
|
|
206
|
+
error-color-focus: (
|
|
207
|
+
color: ('error', 200, .87)
|
|
208
|
+
),
|
|
209
|
+
border-radius: rem(3px),
|
|
210
|
+
border-radius-ripple: rem(3px)
|
|
211
|
+
)
|
|
212
|
+
);
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// @package theming
|
|
6
|
+
/// @group schemas
|
|
7
|
+
/// @access public
|
|
8
|
+
////
|
|
9
|
+
|
|
10
|
+
/* stylelint-disable max-line-length */
|
|
11
|
+
|
|
12
|
+
/// Generates a light combo schema.
|
|
13
|
+
/// @type {Map}
|
|
14
|
+
/// @prop {Map} empty-list-background [color: 'surface'] - The combo list background color.
|
|
15
|
+
/// @prop {Map} search-separator-border-color [color: ('gray', 500)] - The combo search box separator color.
|
|
16
|
+
/// @prop {Map} empty-list-placeholder-color [color: ('gray', 700)] - The combo placeholder text color.
|
|
17
|
+
/// @prop {Map} toggle-button-background [color: ('gray', 300)] - The combo toggle button background color.
|
|
18
|
+
/// @prop {Map} toggle-button-background-focus [color: ('gray', 400, .3)] - The combo toggle button background color when the combo is focused.
|
|
19
|
+
/// @prop {Map} toggle-button-foreground [color: ('gray', 700)] - The combo toggle button foreground color.
|
|
20
|
+
/// @prop {Map} toggle-button-foreground-focus [color: ('gray', 700)] - The combo toggle button foreground color when the combo is focused.
|
|
21
|
+
/// @prop {Map} toggle-button-foreground-filled [color: ('gray', 900)] - The combo toggle button foreground color when the combo is focused.
|
|
22
|
+
/// @prop {Map} toggle-button-background-disabled [color: ('gray', 300)] - The combo toggle button background color when the combo is disabled.
|
|
23
|
+
/// @prop {Map} toggle-button-foreground-disabled [color: ('gray', 700)] - The combo toggle button foreground color when the combo is disabled.
|
|
24
|
+
/// @prop {Color} clear-button-background [transparent] - The combo clear button background color.
|
|
25
|
+
/// @prop {Color} clear-button-background-focus [transparent] - The combo clear button background color when the combo is focused.
|
|
26
|
+
/// @prop {Map} clear-button-foreground [contrast-color: ('gray', 100)] - The combo toggle clear foreground color.
|
|
27
|
+
/// @prop {Map} clear-button-foreground-focus [contrast-color: ('gray', 100)] - The combo clear button foreground color when the combo is focused.
|
|
28
|
+
/// @prop {Map} case-icon-color [color: ('gray', 400)] - The case sensitive icon color in inactive state for combo search input
|
|
29
|
+
/// @prop {Map} case-icon-color--active [color: ('primary', 500)] - The case sensitive icon color in active state for combo search input
|
|
30
|
+
$light-combo: (
|
|
31
|
+
case-icon-color: (
|
|
32
|
+
color: ('gray', 400)
|
|
33
|
+
),
|
|
34
|
+
case-icon-color--active: (
|
|
35
|
+
color: ('primary', 500)
|
|
36
|
+
),
|
|
37
|
+
empty-list-background: (
|
|
38
|
+
color: 'surface'
|
|
39
|
+
),
|
|
40
|
+
search-separator-border-color: (
|
|
41
|
+
color: ('gray', 500),
|
|
42
|
+
),
|
|
43
|
+
empty-list-placeholder-color: (
|
|
44
|
+
color: ('gray', 700),
|
|
45
|
+
),
|
|
46
|
+
toggle-button-background: (
|
|
47
|
+
color: ('gray', 300),
|
|
48
|
+
),
|
|
49
|
+
toggle-button-background-focus: (
|
|
50
|
+
color: ('gray', 400, .3),
|
|
51
|
+
),
|
|
52
|
+
toggle-button-foreground: (
|
|
53
|
+
color: ('gray', 700),
|
|
54
|
+
),
|
|
55
|
+
toggle-button-foreground-focus: (
|
|
56
|
+
color: ('gray', 700),
|
|
57
|
+
),
|
|
58
|
+
toggle-button-foreground-filled: (
|
|
59
|
+
color: ('gray', 900),
|
|
60
|
+
),
|
|
61
|
+
clear-button-background: transparent,
|
|
62
|
+
clear-button-background-focus: transparent,
|
|
63
|
+
clear-button-foreground: (
|
|
64
|
+
contrast-color: ('gray', 100),
|
|
65
|
+
),
|
|
66
|
+
clear-button-foreground-focus: (
|
|
67
|
+
contrast-color: ('gray', 100),
|
|
68
|
+
),
|
|
69
|
+
toggle-button-background-disabled: (
|
|
70
|
+
color: ('gray', 300),
|
|
71
|
+
),
|
|
72
|
+
toggle-button-foreground-disabled: (
|
|
73
|
+
color: ('gray', 500),
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
/// Generates a fluent combo schema.
|
|
78
|
+
/// @type {Map}
|
|
79
|
+
/// @prop {Map} toggle-button-background [color: ('gray', 100)] - The combo toggle button background color.
|
|
80
|
+
/// @prop {Map} toggle-button-background-focus [color: ('gray', 100)] - The combo toggle button background color when the combo is focused.
|
|
81
|
+
/// @prop {Color} clear-button-background [color: ('gray', 100)] - The combo clear button background color.
|
|
82
|
+
/// @prop {Color} clear-button-background-focus [color: ('gray', 100)] - The combo clear button background color when the combo is focused.
|
|
83
|
+
/// @prop {Map} toggle-button-foreground-filled [color: ('gray', 700)] - The combo toggle button foreground color when the combo is focused.
|
|
84
|
+
/// @prop {Map} toggle-button-background-disabled [color: ('gray', 100)] - The combo toggle button background color when the combo is disabled.
|
|
85
|
+
/// @prop {Map} toggle-button-foreground-disabled [color: ('gray', 400)] - The combo toggle button foreground color when the combo is disabled.
|
|
86
|
+
/// @requires {Map} $light-combo
|
|
87
|
+
$fluent-combo: extend(
|
|
88
|
+
$light-combo,
|
|
89
|
+
(
|
|
90
|
+
toggle-button-background: (
|
|
91
|
+
color: ('gray', 100),
|
|
92
|
+
),
|
|
93
|
+
toggle-button-background-focus: (
|
|
94
|
+
color: ('gray', 100),
|
|
95
|
+
),
|
|
96
|
+
toggle-button-foreground-filled: (
|
|
97
|
+
color: ('gray', 700),
|
|
98
|
+
),
|
|
99
|
+
clear-button-background: (
|
|
100
|
+
color: ('gray', 100),
|
|
101
|
+
),
|
|
102
|
+
clear-button-background-focus: (
|
|
103
|
+
color: ('gray', 100),
|
|
104
|
+
),
|
|
105
|
+
toggle-button-background-disabled: (
|
|
106
|
+
color: ('gray', 100),
|
|
107
|
+
),
|
|
108
|
+
toggle-button-foreground-disabled: (
|
|
109
|
+
color: ('gray', 400),
|
|
110
|
+
),
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
/// Generates a bootstrap combo schema.
|
|
115
|
+
/// @type {Map}
|
|
116
|
+
/// @prop {Map} toggle-button-foreground [color: ('gray', 800)] - The combo toggle button foreground color.
|
|
117
|
+
/// @prop {Map} toggle-button-foreground-filled [color: ('gray', 800)] - The combo toggle button foreground color when the combo is focused.
|
|
118
|
+
/// @prop {Map} empty-list-background [color: ('surface')] - The combo list background color.
|
|
119
|
+
/// @prop {Map} search-separator-border-color [color: ('gray', 400)] - The combo search box separator color.
|
|
120
|
+
/// @prop {Map} empty-list-placeholder-color [color: ('gray', 600)] - The combo placeholder text color.
|
|
121
|
+
/// @prop {Map} clear-button-background [color: ('gray', 300)] - The combo clear button background color.
|
|
122
|
+
/// @prop {Map} clear-button-background-focus [color: ('gray', 300)] - The combo clear button background color when the combo is focused.
|
|
123
|
+
/// @prop {Map} clear-button-foreground [color: ('gray', 800)] - The combo toggle clear foreground color.
|
|
124
|
+
/// @prop {Map} clear-button-foreground-focus [color: ('gray', 800)] - The combo clear button foreground color when the combo is focused.
|
|
125
|
+
/// @prop {Map} toggle-button-background-disabled [color: ('gray', 300)] - The combo toggle button background color when the combo is disabled.
|
|
126
|
+
/// @prop {Map} toggle-button-foreground-disabled [color: ('gray', 400)] - The combo toggle button foreground color when the combo is disabled.
|
|
127
|
+
/// @prop {Map} toggle-button-background-focus [color: ('gray', 300)] - The combo toggle button background color when the combo is focused.
|
|
128
|
+
/// @requires {Map} $light-combo
|
|
129
|
+
$bootstrap-combo: extend(
|
|
130
|
+
$light-combo,
|
|
131
|
+
(
|
|
132
|
+
empty-list-background: (
|
|
133
|
+
color: ('surface')
|
|
134
|
+
),
|
|
135
|
+
search-separator-border-color: (
|
|
136
|
+
color: ('gray', 400)
|
|
137
|
+
),
|
|
138
|
+
empty-list-placeholder-color: (
|
|
139
|
+
color: ('gray', 600)
|
|
140
|
+
),
|
|
141
|
+
clear-button-foreground: (
|
|
142
|
+
color: ('gray', 800),
|
|
143
|
+
),
|
|
144
|
+
clear-button-foreground-focus: (
|
|
145
|
+
color: ('gray', 800),
|
|
146
|
+
),
|
|
147
|
+
clear-button-background: (
|
|
148
|
+
color: ('gray', 300)
|
|
149
|
+
),
|
|
150
|
+
clear-button-background-focus: (
|
|
151
|
+
color: ('gray', 300)
|
|
152
|
+
),
|
|
153
|
+
toggle-button-foreground: (
|
|
154
|
+
color: ('gray', 800),
|
|
155
|
+
),
|
|
156
|
+
toggle-button-foreground--focus: (
|
|
157
|
+
color: ('gray', 800),
|
|
158
|
+
),
|
|
159
|
+
toggle-button-foreground-filled: (
|
|
160
|
+
color: ('gray', 800),
|
|
161
|
+
),
|
|
162
|
+
toggle-button-background-focus: (
|
|
163
|
+
color: ('gray', 300),
|
|
164
|
+
),
|
|
165
|
+
toggle-button-background-disabled: (
|
|
166
|
+
color: ('gray', 300),
|
|
167
|
+
),
|
|
168
|
+
toggle-button-foreground-disabled: (
|
|
169
|
+
color: ('gray', 400),
|
|
170
|
+
),
|
|
171
|
+
)
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
/// Generates an indigo combo schema.
|
|
175
|
+
/// @type {Map}
|
|
176
|
+
/// @prop {Color} clear-button-background-focus [transparent] - The combo clear button background color when the combo is focused.
|
|
177
|
+
/// @prop {Map} clear-button-foreground [color: ('gray', 600)] - The combo toggle clear foreground color.
|
|
178
|
+
/// @prop {Map} clear-button-foreground-focus [color: ('gray', 600)] - The combo clear button foreground color when the combo is focused.
|
|
179
|
+
/// @prop {Map} toggle-button-background-disabled [color: ('gray', 100)] - The combo toggle button background color when the combo is disabled.
|
|
180
|
+
/// @prop {Map} toggle-button-foreground-disabled [color: ('gray', 300)] - The combo toggle button foreground color when the combo is disabled.
|
|
181
|
+
/// @prop {Map} toggle-button-background-focus [color: ('gray', 300)] - The combo toggle button background color when the combo is focused.
|
|
182
|
+
/// @requires {Map} $light-combo
|
|
183
|
+
$indigo-combo: extend(
|
|
184
|
+
$light-combo,
|
|
185
|
+
(
|
|
186
|
+
clear-button-background-focus: transparent,
|
|
187
|
+
clear-button-foreground: (
|
|
188
|
+
color: ('gray', 600),
|
|
189
|
+
),
|
|
190
|
+
toggle-button-background-focus: (
|
|
191
|
+
color: ('gray', 300),
|
|
192
|
+
),
|
|
193
|
+
clear-button-foreground-focus: (
|
|
194
|
+
color: ('gray', 600),
|
|
195
|
+
),
|
|
196
|
+
toggle-button-background-disabled: (
|
|
197
|
+
color: ('gray', 100),
|
|
198
|
+
),
|
|
199
|
+
toggle-button-foreground-disabled: (
|
|
200
|
+
color: ('gray', 300),
|
|
201
|
+
),
|
|
202
|
+
)
|
|
203
|
+
);
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
@use '../elevation/drop-down' as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @package theming
|
|
7
|
+
/// @group schemas
|
|
8
|
+
/// @access public
|
|
9
|
+
////
|
|
10
|
+
|
|
11
|
+
/* stylelint-disable max-line-length */
|
|
12
|
+
|
|
13
|
+
/// Generates a light drop-down schema.
|
|
14
|
+
/// @type {Map}
|
|
15
|
+
/// @prop {Map} background-color [color: 'surface'] - The drop-down background color.
|
|
16
|
+
/// @prop {Map} header-text-color [color: ('secondary', 500)] - The drop-down header text color.
|
|
17
|
+
/// @prop {Map} item-text-color [color: ('gray', 800)] - The drop-down text color.
|
|
18
|
+
/// @prop {Map} hover-item-text-color [color: ('gray', 800)] - The drop-down hover text color.
|
|
19
|
+
/// @prop {Map} hover-item-background [color: ('gray', 100, .8)4] - The drop-down hover item background color.
|
|
20
|
+
/// @prop {Map} focused-item-background [color: ('gray', 100, .8)] - The drop-down focused item background color.
|
|
21
|
+
/// @prop {Map} focused-item-text-color [color: ('gray', 800)] - The drop-down focused item text color.
|
|
22
|
+
/// @prop {Map} selected-item-background [color: ('secondary', 100)] - The drop-down selected item background color.
|
|
23
|
+
/// @prop {Map} selected-item-text-color [contrast-color: ('secondary', 100)] - The drop-down selected item text color.
|
|
24
|
+
/// @prop {Map} selected-hover-item-background [color: ('secondary', 200)] - The drop-down selected item hover background color.
|
|
25
|
+
/// @prop {Map} selected-hover-item-text-color [contrast-color: ('secondary', 200)] - The drop-down selected item hover text color.
|
|
26
|
+
/// @prop {Map} selected-focus-item-background [color: ('secondary', 200)] - The drop-down selected item focus background color.
|
|
27
|
+
/// @prop {Map} selected-focus-item-text-color [contrast-color: ('secondary', 200)] - The drop-down selected item focus text color.
|
|
28
|
+
/// @prop {Color} disabled-item-background [transparent] - The drop-down disabled item background color.
|
|
29
|
+
/// @prop {Map} disabled-item-text-color [color: 'surface', text-contrast: (), rgba: .38] - The drop-down disabled item text color.
|
|
30
|
+
/// @prop {Number} elevation [8] - The elevation level, between 0-24, to be used for the drop-down shadow.
|
|
31
|
+
/// @prop {Number} border-width [0] - The border width used for drop-down component.
|
|
32
|
+
/// @prop {Map} border-color [color: ('gray', 300)] - The border color used for drop-down component.
|
|
33
|
+
/// @prop {Number} border-radius [4px] - The border radius used for drop-down component. Can be a fraction between 0 and 1, pixels, or percent.
|
|
34
|
+
/// @prop {Number} item-border-radius [0] - The border radius used for the drop-down items. Can be a fraction between 0 and 1, pixels, or percent.
|
|
35
|
+
/// @requires {Map} $default-elevation-drop-down
|
|
36
|
+
$light-drop-down: extend(
|
|
37
|
+
$default-elevation-drop-down,
|
|
38
|
+
(
|
|
39
|
+
background-color: (
|
|
40
|
+
color: 'surface'
|
|
41
|
+
),
|
|
42
|
+
header-text-color: (
|
|
43
|
+
color: ('secondary', 500)
|
|
44
|
+
),
|
|
45
|
+
item-text-color: (
|
|
46
|
+
color: ('gray', 800)
|
|
47
|
+
),
|
|
48
|
+
hover-item-text-color: (
|
|
49
|
+
color: ('gray', 800)
|
|
50
|
+
),
|
|
51
|
+
hover-item-background: (
|
|
52
|
+
color: ('gray', 100, .8)
|
|
53
|
+
),
|
|
54
|
+
focused-item-background: (
|
|
55
|
+
color: ('gray', 100, .8)
|
|
56
|
+
),
|
|
57
|
+
focused-item-text-color: (
|
|
58
|
+
color: ('gray', 800)
|
|
59
|
+
),
|
|
60
|
+
selected-item-background: (
|
|
61
|
+
color: ('secondary', 100),
|
|
62
|
+
),
|
|
63
|
+
selected-item-text-color: (
|
|
64
|
+
contrast-color: ('secondary', 100)
|
|
65
|
+
),
|
|
66
|
+
selected-hover-item-background: (
|
|
67
|
+
color: ('secondary', 200),
|
|
68
|
+
),
|
|
69
|
+
selected-hover-item-text-color: (
|
|
70
|
+
contrast-color: ('secondary', 200)
|
|
71
|
+
),
|
|
72
|
+
selected-focus-item-background: (
|
|
73
|
+
color: ('secondary', 200),
|
|
74
|
+
),
|
|
75
|
+
selected-focus-item-text-color: (
|
|
76
|
+
contrast-color: ('secondary', 200)
|
|
77
|
+
),
|
|
78
|
+
disabled-item-background: (
|
|
79
|
+
color: ('gray', 50, 0)
|
|
80
|
+
),
|
|
81
|
+
disabled-item-text-color: (
|
|
82
|
+
color: ('gray', 400)
|
|
83
|
+
),
|
|
84
|
+
border-color: (
|
|
85
|
+
color: ('gray', 300),
|
|
86
|
+
),
|
|
87
|
+
border-width: 0,
|
|
88
|
+
border-radius: rem(4px),
|
|
89
|
+
item-border-radius: rem(0)
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/// Generates a fluent drop-down schema.
|
|
94
|
+
/// @type {Map}
|
|
95
|
+
/// @prop {Map} selected-item-background [color: ('gray', 100)] - The drop-down selected item background color.
|
|
96
|
+
/// @prop {Map} selected-item-text-color [contrast-color: ('gray', 100)] - The drop-down selected item text color.
|
|
97
|
+
/// @prop {Map} selected-hover-item-background [color: ('gray', 200)] - The drop-down selected item hover background color.
|
|
98
|
+
/// @prop {Map} selected-hover-item-text-color [contrast-color: ('gray', 200)] - The drop-down selected item hover text color.
|
|
99
|
+
/// @prop {Map} selected-focus-item-background [color: ('gray', 200)] - The drop-down selected item focus background color.
|
|
100
|
+
/// @prop {Map} selected-focus-item-text-color [contrast-color: ('gray', 200)] - The drop-down selected item focus text color.
|
|
101
|
+
/// @prop {Number} elevation [4] - The elevation level, between 0-24, to be used for the drop-down shadow.
|
|
102
|
+
/// @prop {Number} border-radius [2px] - The border radius used for drop-down component. Can be a fraction between 0 and 1, pixels, or percent.
|
|
103
|
+
/// @prop {Number} item-border-radius [0] - The border radius used for the drop-down items. Can be a fraction between 0 and 1, pixels, or percent.
|
|
104
|
+
/// @requires {Map} $light-drop-down
|
|
105
|
+
/// @requires {Map} $fluent-elevation-drop-down
|
|
106
|
+
$fluent-drop-down: extend(
|
|
107
|
+
$light-drop-down,
|
|
108
|
+
$fluent-elevation-drop-down,
|
|
109
|
+
(
|
|
110
|
+
selected-item-background: (
|
|
111
|
+
color: ('gray', 100)
|
|
112
|
+
),
|
|
113
|
+
selected-item-text-color: (
|
|
114
|
+
contrast-color: ('gray', 100)
|
|
115
|
+
),
|
|
116
|
+
selected-hover-item-background: (
|
|
117
|
+
color: ('gray', 100)
|
|
118
|
+
),
|
|
119
|
+
selected-hover-item-text-color: (
|
|
120
|
+
contrast-color: ('gray', 200)
|
|
121
|
+
),
|
|
122
|
+
selected-focus-item-background: (
|
|
123
|
+
color: ('gray', 200)
|
|
124
|
+
),
|
|
125
|
+
selected-focus-item-text-color: (
|
|
126
|
+
contrast-color: ('gray', 200)
|
|
127
|
+
),
|
|
128
|
+
border-radius: rem(2px),
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/// Generates a bootstrap drop-down schema.
|
|
133
|
+
/// @type {Map}
|
|
134
|
+
/// @prop {Map} header-text-color [color: ('gray', 700)] - The drop-down header text color.
|
|
135
|
+
/// @prop {Map} hover-item-background [color: ('gray', 100)] - The drop-down hover item background color.
|
|
136
|
+
/// @prop {Map} focused-item-background [color: ('primary', 500)] - The drop-down focused item background color.
|
|
137
|
+
/// @prop {Map} focused-item-text-color [contrast-color('primary', 600)] - The drop-down focused item text color.
|
|
138
|
+
/// @prop {Map} selected-item-background [color: ('primary', 500)] - The drop-down selected item background color.
|
|
139
|
+
/// @prop {Map} selected-item-text-color [contrast-color('primary', 600)] - The drop-down selected item text color.
|
|
140
|
+
/// @prop {Map} selected-hover-item-background [color: ('primary', 600)] - The drop-down selected item hover background color.
|
|
141
|
+
/// @prop {Map} selected-hover-item-text-color [contrast-color('primary', 600)] - The drop-down selected item hover text color.
|
|
142
|
+
/// @prop {Map} selected-focus-item-background [color: ('primary', 600)] - The drop-down selected item focus background color.
|
|
143
|
+
/// @prop {Map} selected-focus-item-text-color [contrast-color('primary', 600)] - The drop-down selected item focus text color.
|
|
144
|
+
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the drop-down shadow.
|
|
145
|
+
/// @prop {Number} border-radius [4px] - The border radius used for drop-down component. Can be a fraction between 0 and 1, pixels, or percent.
|
|
146
|
+
/// @prop {Number} item-border-radius [0] - The border radius used for the drop-down items. Can be a fraction between 0 and 1, pixels, or percent.
|
|
147
|
+
/// @prop {Number} border-width [1px] - The border width used for drop-down component.
|
|
148
|
+
/// @requires {Map} $light-drop-down
|
|
149
|
+
/// @requires {Map} $bootstrap-elevation-drop-down
|
|
150
|
+
$bootstrap-drop-down: extend(
|
|
151
|
+
$light-drop-down,
|
|
152
|
+
$bootstrap-elevation-drop-down,
|
|
153
|
+
(
|
|
154
|
+
header-text-color: (
|
|
155
|
+
color: ('gray', 700)
|
|
156
|
+
),
|
|
157
|
+
hover-item-background: (
|
|
158
|
+
color: ('gray', 100)
|
|
159
|
+
),
|
|
160
|
+
focused-item-background: (
|
|
161
|
+
color: ('primary', 500)
|
|
162
|
+
),
|
|
163
|
+
focused-item-text-color: (
|
|
164
|
+
contrast-color: ('primary', 600)
|
|
165
|
+
),
|
|
166
|
+
selected-item-background: (
|
|
167
|
+
color: ('primary', 500),
|
|
168
|
+
),
|
|
169
|
+
selected-item-text-color: (
|
|
170
|
+
contrast-color: ('primary', 600)
|
|
171
|
+
),
|
|
172
|
+
selected-hover-item-background: (
|
|
173
|
+
color: ('primary', 600),
|
|
174
|
+
),
|
|
175
|
+
selected-hover-item-text-color: (
|
|
176
|
+
contrast-color: ('primary', 600)
|
|
177
|
+
),
|
|
178
|
+
selected-focus-item-background: (
|
|
179
|
+
color: ('primary', 600),
|
|
180
|
+
),
|
|
181
|
+
selected-focus-item-text-color: (
|
|
182
|
+
contrast-color: ('primary', 600)
|
|
183
|
+
),
|
|
184
|
+
border-width: 1px,
|
|
185
|
+
disabled-item-text-color: (
|
|
186
|
+
color: ('gray', 400)
|
|
187
|
+
)
|
|
188
|
+
)
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
/// Generates an indigo drop-down schema.
|
|
192
|
+
/// @type {Map}
|
|
193
|
+
/// @prop {Map} header-text-color [color: ('primary', 500)] - The drop-down header text color.
|
|
194
|
+
/// @prop {Color} item-text-color [color: ('gray', 700)] - The drop-down text color.
|
|
195
|
+
/// @prop {Map} hover-item-background [color: ('primary', 500, .15)] - The drop-down hover item background color.
|
|
196
|
+
/// @prop {Map} focused-item-background [color: ('primary', 500, .15)] - The drop-down focused item background color.
|
|
197
|
+
/// @prop {Map} selected-item-background [color: ('primary', 500)] - The drop-down selected item background color.
|
|
198
|
+
/// @prop {Color} selected-item-text-color [#fff] - The drop-down selected item text color.
|
|
199
|
+
/// @prop {Map} selected-hover-item-background [color: ('primary', 400)] - The drop-down selected item hover background color.
|
|
200
|
+
/// @prop {Color} selected-hover-item-text-color [#fff] - The drop-down selected item hover text color.
|
|
201
|
+
/// @prop {Map} selected-focus-item-background [color: ('primary', 400)] - The drop-down selected item focus background color.
|
|
202
|
+
/// @prop {Color} selected-focus-item-text-color [#fff] - The drop-down selected item focus text color.
|
|
203
|
+
/// @prop {Number} elevation [3] - The elevation level, between 0-24, to be used for the badge shadow.
|
|
204
|
+
/// @prop {Number} border-radius [2px] - The border radius used for drop-down component. Can be a fraction between 0 and 1, pixels, or percent.
|
|
205
|
+
/// @prop {Number} item-border-radius [2px] - The border radius used for the drop-down items. Can be a fraction between 0 and 1, pixels, or percent.
|
|
206
|
+
/// @requires {Map} $light-drop-down
|
|
207
|
+
/// @requires {Map} $indigo-elevation-drop-down
|
|
208
|
+
$indigo-drop-down: extend(
|
|
209
|
+
$light-drop-down,
|
|
210
|
+
$indigo-elevation-drop-down,
|
|
211
|
+
(
|
|
212
|
+
header-text-color: (
|
|
213
|
+
color: ('primary', 500)
|
|
214
|
+
),
|
|
215
|
+
item-text-color: (
|
|
216
|
+
color: ('gray', 700)
|
|
217
|
+
),
|
|
218
|
+
hover-item-background: (
|
|
219
|
+
color: ('primary', 500, .15),
|
|
220
|
+
),
|
|
221
|
+
focused-item-background: (
|
|
222
|
+
color: ('primary', 500, .15),
|
|
223
|
+
),
|
|
224
|
+
selected-item-background: (
|
|
225
|
+
color: ('primary', 500),
|
|
226
|
+
),
|
|
227
|
+
selected-item-text-color: (
|
|
228
|
+
contrast-color: ('primary', 500),
|
|
229
|
+
),
|
|
230
|
+
selected-hover-item-background: (
|
|
231
|
+
color: ('primary', 400),
|
|
232
|
+
),
|
|
233
|
+
selected-hover-item-text-color: (
|
|
234
|
+
contrast-color: ('primary', 400),
|
|
235
|
+
),
|
|
236
|
+
selected-focus-item-background: (
|
|
237
|
+
color: ('primary', 400),
|
|
238
|
+
),
|
|
239
|
+
selected-focus-item-text-color: (
|
|
240
|
+
contrast-color: ('primary', 400),
|
|
241
|
+
),
|
|
242
|
+
border-radius: rem(2px),
|
|
243
|
+
item-border-radius: rem(2px)
|
|
244
|
+
)
|
|
245
|
+
);
|