@i-cell/ids-styles 0.0.13 → 0.0.14

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.
@@ -0,0 +1,599 @@
1
+ // Tailwind CSS plugin for the switch component in the i-Cell Design System
2
+ module.exports = function SwitchPlugin() {
3
+ return function ({ addComponents }) {
4
+ const cssObj = {
5
+ '.ids-switch-group': { display: 'flex', flexDirection: 'column' },
6
+ '.ids-switch-group.ids-switch-group-compact': {
7
+ gap: 'var(--ids-comp-switch-group-container-size-gap-compact)',
8
+ padding:
9
+ 'var(--ids-comp-switch-group-container-size-padding-y-compact) var(--ids-comp-switch-group-container-size-padding-x-compact)',
10
+ },
11
+ '.ids-switch-group.ids-switch-group-comfortable': {
12
+ gap: 'var(--ids-comp-switch-group-container-size-gap-comfortable)',
13
+ padding:
14
+ 'var(--ids-comp-switch-group-container-size-padding-y-comfortable) var(--ids-comp-switch-group-container-size-padding-x-comfortable)',
15
+ },
16
+ '.ids-switch-group.ids-switch-group-spacious': {
17
+ gap: 'var(--ids-comp-switch-group-container-size-gap-spacious)',
18
+ padding:
19
+ 'var(--ids-comp-switch-group-container-size-padding-y-spacious) var(--ids-comp-switch-group-container-size-padding-x-spacious)',
20
+ },
21
+ '.ids-switch-group.ids-switch-group-dense': {
22
+ gap: 'var(--ids-comp-switch-group-container-size-gap-dense)',
23
+ padding: 'var(--ids-comp-switch-group-container-size-padding-y-dense) var(--ids-comp-switch-group-container-size-padding-x-dense)',
24
+ },
25
+ '.ids-switch': { display: 'inline-flex', alignItems: 'center' },
26
+ '.ids-switch>.ids-switch__button': { background: 'none', border: 'none', margin: '0', padding: '0', cursor: 'pointer' },
27
+ '.ids-switch>.ids-switch__button:disabled': { pointerEvents: 'none' },
28
+ '.ids-switch>.ids-switch__button:focus,.ids-switch>.ids-switch__button:focus-visible': {
29
+ outlineOffset: '2px',
30
+ outlineStyle: 'solid',
31
+ },
32
+ '.ids-switch>.ids-switch__button>.ids-switch__track': {
33
+ position: 'relative',
34
+ display: 'flex',
35
+ alignItems: 'center',
36
+ justifyContent: 'space-between',
37
+ },
38
+ '.ids-switch>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon': {
39
+ position: 'absolute',
40
+ display: 'flex',
41
+ alignItems: 'center',
42
+ justifyContent: 'center',
43
+ top: 'auto',
44
+ bottom: 'auto',
45
+ },
46
+ '.ids-switch>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': { position: 'absolute' },
47
+ '.ids-switch>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
48
+ position: 'absolute',
49
+ display: 'flex',
50
+ justifyContent: 'center',
51
+ alignItems: 'center',
52
+ flexShrink: 0,
53
+ },
54
+ '.ids-switch>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': { position: 'absolute' },
55
+ '.ids-switch>.ids-switch__label': { fontStyle: 'normal' },
56
+ '.ids-switch.ids-switch-compact': { gap: 'var(--ids-comp-switch-container-size-gap-compact)' },
57
+ '.ids-switch.ids-switch-compact>.ids-switch__button': { borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-compact)' },
58
+ '.ids-switch.ids-switch-compact>.ids-switch__button:focus,.ids-switch.ids-switch-compact>.ids-switch__button:focus-visible': {
59
+ outlineWidth: 'var(--ids-comp-switch-focused-outline-outline-compact)',
60
+ },
61
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track': {
62
+ width: 'var(--ids-comp-switch-track-size-width-compact)',
63
+ height: 'var(--ids-comp-switch-handle-size-height-compact)',
64
+ padding: 'var(--ids-comp-switch-track-size-padding-y-compact) var(--ids-comp-switch-track-size-padding-x-compact)',
65
+ borderRadius: 'var(--ids-comp-switch-track-size-border-radius-compact)',
66
+ boxSizing: 'content-box',
67
+ },
68
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon': {
69
+ width: 'var(--ids-comp-switch-handle-size-width-compact)',
70
+ height: 'var(--ids-comp-switch-handle-size-height-compact)',
71
+ },
72
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
73
+ width: 'var(--ids-comp-switch-icon-size-width-compact)',
74
+ height: 'var(--ids-comp-switch-icon-size-height-compact)',
75
+ },
76
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(1)': {
77
+ left: 'var(--ids-comp-switch-track-size-padding-x-compact)',
78
+ },
79
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(2)': {
80
+ right: 'var(--ids-comp-switch-track-size-padding-x-compact)',
81
+ },
82
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
83
+ width: 'var(--ids-comp-switch-handle-size-width-compact)',
84
+ height: 'var(--ids-comp-switch-handle-size-height-compact)',
85
+ borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-compact)',
86
+ transition: 'left 100ms ease-in-out',
87
+ },
88
+ '.ids-switch.ids-switch-compact>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
89
+ width: 'var(--ids-comp-switch-icon-size-width-compact)',
90
+ height: 'var(--ids-comp-switch-icon-size-height-compact)',
91
+ },
92
+ '.ids-switch.ids-switch-compact>.ids-switch__label': {
93
+ fontFamily: 'var(--ids-comp-switch-label-typography-font-family-compact)',
94
+ fontSize: 'var(--ids-comp-switch-label-typography-font-size-compact)',
95
+ fontWeight: 'var(--ids-comp-switch-label-typography-font-weight-compact)',
96
+ lineHeight: 'var(--ids-comp-switch-label-typography-line-height-compact)',
97
+ letterSpacing: 'var(--ids-comp-switch-label-typography-letter-spacing-compact)',
98
+ },
99
+ '.ids-switch.ids-switch-compact:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
100
+ left: 'var(--ids-comp-switch-track-size-padding-x-compact)',
101
+ },
102
+ '.ids-switch.ids-switch-compact.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
103
+ left: 'calc(100% - var(--ids-comp-switch-track-size-padding-x-compact) - var(--ids-comp-switch-handle-size-width-compact))',
104
+ },
105
+ '.ids-switch.ids-switch-comfortable': { gap: 'var(--ids-comp-switch-container-size-gap-comfortable)' },
106
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button': {
107
+ borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-comfortable)',
108
+ },
109
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button:focus,.ids-switch.ids-switch-comfortable>.ids-switch__button:focus-visible': {
110
+ outlineWidth: 'var(--ids-comp-switch-focused-outline-outline-comfortable)',
111
+ },
112
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track': {
113
+ width: 'var(--ids-comp-switch-track-size-width-comfortable)',
114
+ height: 'var(--ids-comp-switch-handle-size-height-comfortable)',
115
+ padding: 'var(--ids-comp-switch-track-size-padding-y-comfortable) var(--ids-comp-switch-track-size-padding-x-comfortable)',
116
+ borderRadius: 'var(--ids-comp-switch-track-size-border-radius-comfortable)',
117
+ boxSizing: 'content-box',
118
+ },
119
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon': {
120
+ width: 'var(--ids-comp-switch-handle-size-width-comfortable)',
121
+ height: 'var(--ids-comp-switch-handle-size-height-comfortable)',
122
+ },
123
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
124
+ width: 'var(--ids-comp-switch-icon-size-width-comfortable)',
125
+ height: 'var(--ids-comp-switch-icon-size-height-comfortable)',
126
+ },
127
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(1)': {
128
+ left: 'var(--ids-comp-switch-track-size-padding-x-comfortable)',
129
+ },
130
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(2)': {
131
+ right: 'var(--ids-comp-switch-track-size-padding-x-comfortable)',
132
+ },
133
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
134
+ width: 'var(--ids-comp-switch-handle-size-width-comfortable)',
135
+ height: 'var(--ids-comp-switch-handle-size-height-comfortable)',
136
+ borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-comfortable)',
137
+ transition: 'left 100ms ease-in-out',
138
+ },
139
+ '.ids-switch.ids-switch-comfortable>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
140
+ width: 'var(--ids-comp-switch-icon-size-width-comfortable)',
141
+ height: 'var(--ids-comp-switch-icon-size-height-comfortable)',
142
+ },
143
+ '.ids-switch.ids-switch-comfortable>.ids-switch__label': {
144
+ fontFamily: 'var(--ids-comp-switch-label-typography-font-family-comfortable)',
145
+ fontSize: 'var(--ids-comp-switch-label-typography-font-size-comfortable)',
146
+ fontWeight: 'var(--ids-comp-switch-label-typography-font-weight-comfortable)',
147
+ lineHeight: 'var(--ids-comp-switch-label-typography-line-height-comfortable)',
148
+ letterSpacing: 'var(--ids-comp-switch-label-typography-letter-spacing-comfortable)',
149
+ },
150
+ '.ids-switch.ids-switch-comfortable:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
151
+ left: 'var(--ids-comp-switch-track-size-padding-x-comfortable)',
152
+ },
153
+ '.ids-switch.ids-switch-comfortable.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
154
+ left: 'calc(100% - var(--ids-comp-switch-track-size-padding-x-comfortable) - var(--ids-comp-switch-handle-size-width-comfortable))',
155
+ },
156
+ '.ids-switch.ids-switch-spacious': { gap: 'var(--ids-comp-switch-container-size-gap-spacious)' },
157
+ '.ids-switch.ids-switch-spacious>.ids-switch__button': { borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-spacious)' },
158
+ '.ids-switch.ids-switch-spacious>.ids-switch__button:focus,.ids-switch.ids-switch-spacious>.ids-switch__button:focus-visible': {
159
+ outlineWidth: 'var(--ids-comp-switch-focused-outline-outline-spacious)',
160
+ },
161
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track': {
162
+ width: 'var(--ids-comp-switch-track-size-width-spacious)',
163
+ height: 'var(--ids-comp-switch-handle-size-height-spacious)',
164
+ padding: 'var(--ids-comp-switch-track-size-padding-y-spacious) var(--ids-comp-switch-track-size-padding-x-spacious)',
165
+ borderRadius: 'var(--ids-comp-switch-track-size-border-radius-spacious)',
166
+ boxSizing: 'content-box',
167
+ },
168
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon': {
169
+ width: 'var(--ids-comp-switch-handle-size-width-spacious)',
170
+ height: 'var(--ids-comp-switch-handle-size-height-spacious)',
171
+ },
172
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
173
+ width: 'var(--ids-comp-switch-icon-size-width-spacious)',
174
+ height: 'var(--ids-comp-switch-icon-size-height-spacious)',
175
+ },
176
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(1)': {
177
+ left: 'var(--ids-comp-switch-track-size-padding-x-spacious)',
178
+ },
179
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(2)': {
180
+ right: 'var(--ids-comp-switch-track-size-padding-x-spacious)',
181
+ },
182
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
183
+ width: 'var(--ids-comp-switch-handle-size-width-spacious)',
184
+ height: 'var(--ids-comp-switch-handle-size-height-spacious)',
185
+ borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-spacious)',
186
+ transition: 'left 100ms ease-in-out',
187
+ },
188
+ '.ids-switch.ids-switch-spacious>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
189
+ width: 'var(--ids-comp-switch-icon-size-width-spacious)',
190
+ height: 'var(--ids-comp-switch-icon-size-height-spacious)',
191
+ },
192
+ '.ids-switch.ids-switch-spacious>.ids-switch__label': {
193
+ fontFamily: 'var(--ids-comp-switch-label-typography-font-family-spacious)',
194
+ fontSize: 'var(--ids-comp-switch-label-typography-font-size-spacious)',
195
+ fontWeight: 'var(--ids-comp-switch-label-typography-font-weight-spacious)',
196
+ lineHeight: 'var(--ids-comp-switch-label-typography-line-height-spacious)',
197
+ letterSpacing: 'var(--ids-comp-switch-label-typography-letter-spacing-spacious)',
198
+ },
199
+ '.ids-switch.ids-switch-spacious:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
200
+ left: 'var(--ids-comp-switch-track-size-padding-x-spacious)',
201
+ },
202
+ '.ids-switch.ids-switch-spacious.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
203
+ left: 'calc(100% - var(--ids-comp-switch-track-size-padding-x-spacious) - var(--ids-comp-switch-handle-size-width-spacious))',
204
+ },
205
+ '.ids-switch.ids-switch-dense': { gap: 'var(--ids-comp-switch-container-size-gap-dense)' },
206
+ '.ids-switch.ids-switch-dense>.ids-switch__button': { borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-dense)' },
207
+ '.ids-switch.ids-switch-dense>.ids-switch__button:focus,.ids-switch.ids-switch-dense>.ids-switch__button:focus-visible': {
208
+ outlineWidth: 'var(--ids-comp-switch-focused-outline-outline-dense)',
209
+ },
210
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track': {
211
+ width: 'var(--ids-comp-switch-track-size-width-dense)',
212
+ height: 'var(--ids-comp-switch-handle-size-height-dense)',
213
+ padding: 'var(--ids-comp-switch-track-size-padding-y-dense) var(--ids-comp-switch-track-size-padding-x-dense)',
214
+ borderRadius: 'var(--ids-comp-switch-track-size-border-radius-dense)',
215
+ boxSizing: 'content-box',
216
+ },
217
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon': {
218
+ width: 'var(--ids-comp-switch-handle-size-width-dense)',
219
+ height: 'var(--ids-comp-switch-handle-size-height-dense)',
220
+ },
221
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
222
+ width: 'var(--ids-comp-switch-icon-size-width-dense)',
223
+ height: 'var(--ids-comp-switch-icon-size-height-dense)',
224
+ },
225
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(1)': {
226
+ left: 'var(--ids-comp-switch-track-size-padding-x-dense)',
227
+ },
228
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon:nth-child(2)': {
229
+ right: 'var(--ids-comp-switch-track-size-padding-x-dense)',
230
+ },
231
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
232
+ width: 'var(--ids-comp-switch-handle-size-width-dense)',
233
+ height: 'var(--ids-comp-switch-handle-size-height-dense)',
234
+ borderRadius: 'var(--ids-comp-switch-handle-size-border-radius-dense)',
235
+ transition: 'left 100ms ease-in-out',
236
+ },
237
+ '.ids-switch.ids-switch-dense>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
238
+ width: 'var(--ids-comp-switch-icon-size-width-dense)',
239
+ height: 'var(--ids-comp-switch-icon-size-height-dense)',
240
+ },
241
+ '.ids-switch.ids-switch-dense>.ids-switch__label': {
242
+ fontFamily: 'var(--ids-comp-switch-label-typography-font-family-dense)',
243
+ fontSize: 'var(--ids-comp-switch-label-typography-font-size-dense)',
244
+ fontWeight: 'var(--ids-comp-switch-label-typography-font-weight-dense)',
245
+ lineHeight: 'var(--ids-comp-switch-label-typography-line-height-dense)',
246
+ letterSpacing: 'var(--ids-comp-switch-label-typography-letter-spacing-dense)',
247
+ },
248
+ '.ids-switch.ids-switch-dense:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
249
+ left: 'var(--ids-comp-switch-track-size-padding-x-dense)',
250
+ },
251
+ '.ids-switch.ids-switch-dense.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
252
+ left: 'calc(100% - var(--ids-comp-switch-track-size-padding-x-dense) - var(--ids-comp-switch-handle-size-width-dense))',
253
+ },
254
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track': {
255
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-surface-default)',
256
+ },
257
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
258
+ color: 'var(--ids-comp-switch-track-off-color-fg-icon-surface-default)',
259
+ },
260
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
261
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-surface-default)',
262
+ },
263
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
264
+ color: 'var(--ids-comp-switch-handle-off-color-fg-icon-surface-default)',
265
+ },
266
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button+.ids-switch__label': {
267
+ color: 'var(--ids-comp-switch-label-color-fg-surface-default)',
268
+ },
269
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track': {
270
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-surface-hovered)',
271
+ },
272
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
273
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-surface-default)' },
274
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle': {
275
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-surface-default)',
276
+ },
277
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon':
278
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-surface-default)' },
279
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:hover+.ids-switch__label': {
280
+ color: 'var(--ids-comp-switch-label-color-fg-surface-hovered)',
281
+ },
282
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track': {
283
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-surface-pressed)',
284
+ },
285
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
286
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-surface-default)' },
287
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle': {
288
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-surface-default)',
289
+ },
290
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
291
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-surface-default)' },
292
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:active+.ids-switch__label': {
293
+ color: 'var(--ids-comp-switch-label-color-fg-surface-pressed)',
294
+ },
295
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible':
296
+ { outlineColor: 'var(--ids-comp-switch-focused-outline-color-surface-focused)' },
297
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track':
298
+ { backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-surface-focused)' },
299
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
300
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-surface-default)' },
301
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle':
302
+ { backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-surface-default)' },
303
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle>.ids-icon':
304
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-surface-default)' },
305
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus+.ids-switch__label,.ids-switch.ids-switch-surface:not(.ids-switch-disabled)>.ids-switch__button:focus-visible+.ids-switch__label':
306
+ { color: 'var(--ids-comp-switch-label-color-fg-surface-focused)' },
307
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track': {
308
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-surface-default)',
309
+ },
310
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
311
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-surface-default)' },
312
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
313
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-surface-default)',
314
+ },
315
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
316
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-surface-default)' },
317
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track': {
318
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-surface-hovered)',
319
+ },
320
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
321
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-surface-default)' },
322
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle':
323
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-surface-default)' },
324
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon':
325
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-surface-default)' },
326
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track': {
327
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-surface-pressed)',
328
+ },
329
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
330
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-surface-default)' },
331
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle':
332
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-surface-default)' },
333
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
334
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-surface-default)' },
335
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track': {
336
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-surface-focused)',
337
+ },
338
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
339
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-surface-default)' },
340
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle':
341
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-surface-default)' },
342
+ '.ids-switch.ids-switch-surface:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon':
343
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-surface-default)' },
344
+ '.ids-switch.ids-switch-surface.ids-switch-disabled>.ids-switch__button+.ids-switch__label': {
345
+ color: 'var(--ids-comp-switch-label-color-fg-surface-disabled)',
346
+ },
347
+ '.ids-switch.ids-switch-surface.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track': {
348
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-surface-disabled)',
349
+ },
350
+ '.ids-switch.ids-switch-surface.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
351
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-surface-disabled)' },
352
+ '.ids-switch.ids-switch-surface.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
353
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-surface-disabled)',
354
+ },
355
+ '.ids-switch.ids-switch-surface.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
356
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-surface-disabled)' },
357
+ '.ids-switch.ids-switch-surface.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track': {
358
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-surface-disabled)',
359
+ },
360
+ '.ids-switch.ids-switch-surface.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
361
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-surface-disabled)' },
362
+ '.ids-switch.ids-switch-surface.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
363
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-surface-disabled)',
364
+ },
365
+ '.ids-switch.ids-switch-surface.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
366
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-surface-disabled)' },
367
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track': {
368
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-light-default)',
369
+ },
370
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
371
+ color: 'var(--ids-comp-switch-track-off-color-fg-icon-light-default)',
372
+ },
373
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
374
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-light-default)',
375
+ },
376
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
377
+ color: 'var(--ids-comp-switch-handle-off-color-fg-icon-light-default)',
378
+ },
379
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button+.ids-switch__label': {
380
+ color: 'var(--ids-comp-switch-label-color-fg-light-default)',
381
+ },
382
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track': {
383
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-light-hovered)',
384
+ },
385
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
386
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-light-default)' },
387
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle': {
388
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-light-default)',
389
+ },
390
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon': {
391
+ color: 'var(--ids-comp-switch-handle-off-color-fg-icon-light-default)',
392
+ },
393
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:hover+.ids-switch__label': {
394
+ color: 'var(--ids-comp-switch-label-color-fg-light-hovered)',
395
+ },
396
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track': {
397
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-light-pressed)',
398
+ },
399
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
400
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-light-default)' },
401
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle': {
402
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-light-default)',
403
+ },
404
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
405
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-light-default)' },
406
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:active+.ids-switch__label': {
407
+ color: 'var(--ids-comp-switch-label-color-fg-light-pressed)',
408
+ },
409
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible':
410
+ { outlineColor: 'var(--ids-comp-switch-focused-outline-color-light-focused)' },
411
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track':
412
+ { backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-light-focused)' },
413
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
414
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-light-default)' },
415
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle':
416
+ { backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-light-default)' },
417
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle>.ids-icon':
418
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-light-default)' },
419
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus+.ids-switch__label,.ids-switch.ids-switch-light:not(.ids-switch-disabled)>.ids-switch__button:focus-visible+.ids-switch__label':
420
+ { color: 'var(--ids-comp-switch-label-color-fg-light-focused)' },
421
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track': {
422
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-light-default)',
423
+ },
424
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
425
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-light-default)' },
426
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
427
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-light-default)',
428
+ },
429
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
430
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-light-default)' },
431
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track': {
432
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-light-hovered)',
433
+ },
434
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
435
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-light-default)' },
436
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle':
437
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-light-default)' },
438
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon':
439
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-light-default)' },
440
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track': {
441
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-light-pressed)',
442
+ },
443
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
444
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-light-default)' },
445
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle':
446
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-light-default)' },
447
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
448
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-light-default)' },
449
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track': {
450
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-light-focused)',
451
+ },
452
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
453
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-light-default)' },
454
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle':
455
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-light-default)' },
456
+ '.ids-switch.ids-switch-light:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon':
457
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-light-default)' },
458
+ '.ids-switch.ids-switch-light.ids-switch-disabled>.ids-switch__button+.ids-switch__label': {
459
+ color: 'var(--ids-comp-switch-label-color-fg-light-disabled)',
460
+ },
461
+ '.ids-switch.ids-switch-light.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track': {
462
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-light-disabled)',
463
+ },
464
+ '.ids-switch.ids-switch-light.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
465
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-light-disabled)' },
466
+ '.ids-switch.ids-switch-light.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
467
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-light-disabled)',
468
+ },
469
+ '.ids-switch.ids-switch-light.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
470
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-light-disabled)' },
471
+ '.ids-switch.ids-switch-light.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track': {
472
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-light-disabled)',
473
+ },
474
+ '.ids-switch.ids-switch-light.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
475
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-light-disabled)' },
476
+ '.ids-switch.ids-switch-light.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
477
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-light-disabled)',
478
+ },
479
+ '.ids-switch.ids-switch-light.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
480
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-light-disabled)' },
481
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track': {
482
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-primary-default)',
483
+ },
484
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon': {
485
+ color: 'var(--ids-comp-switch-track-off-color-fg-icon-primary-default)',
486
+ },
487
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
488
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-primary-default)',
489
+ },
490
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon': {
491
+ color: 'var(--ids-comp-switch-handle-off-color-fg-icon-primary-default)',
492
+ },
493
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button+.ids-switch__label': {
494
+ color: 'var(--ids-comp-switch-label-color-fg-primary-default)',
495
+ },
496
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track': {
497
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-primary-hovered)',
498
+ },
499
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
500
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-primary-default)' },
501
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle': {
502
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-primary-default)',
503
+ },
504
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon':
505
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-primary-default)' },
506
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:hover+.ids-switch__label': {
507
+ color: 'var(--ids-comp-switch-label-color-fg-primary-hovered)',
508
+ },
509
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track': {
510
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-primary-pressed)',
511
+ },
512
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
513
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-primary-default)' },
514
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle': {
515
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-primary-default)',
516
+ },
517
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
518
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-primary-default)' },
519
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:active+.ids-switch__label': {
520
+ color: 'var(--ids-comp-switch-label-color-fg-primary-pressed)',
521
+ },
522
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible':
523
+ { outlineColor: 'var(--ids-comp-switch-focused-outline-color-primary-focused)' },
524
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track':
525
+ { backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-primary-focused)' },
526
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
527
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-primary-default)' },
528
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle':
529
+ { backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-primary-default)' },
530
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible>.ids-switch__track>.ids-switch__handle>.ids-icon':
531
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-primary-default)' },
532
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus+.ids-switch__label,.ids-switch.ids-switch-primary:not(.ids-switch-disabled)>.ids-switch__button:focus-visible+.ids-switch__label':
533
+ { color: 'var(--ids-comp-switch-label-color-fg-primary-focused)' },
534
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track': {
535
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-primary-default)',
536
+ },
537
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
538
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-primary-default)' },
539
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
540
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-primary-default)',
541
+ },
542
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
543
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-primary-default)' },
544
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track': {
545
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-primary-hovered)',
546
+ },
547
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
548
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-primary-default)' },
549
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle':
550
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-primary-default)' },
551
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:hover>.ids-switch__track>.ids-switch__handle>.ids-icon':
552
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-primary-default)' },
553
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track': {
554
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-primary-pressed)',
555
+ },
556
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
557
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-primary-default)' },
558
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle':
559
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-primary-default)' },
560
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:active>.ids-switch__track>.ids-switch__handle>.ids-icon':
561
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-primary-default)' },
562
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track': {
563
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-primary-focused)',
564
+ },
565
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
566
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-primary-default)' },
567
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle':
568
+ { backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-primary-default)' },
569
+ '.ids-switch.ids-switch-primary:not(.ids-switch-disabled).ids-switch-on>.ids-switch__button:focus>.ids-switch__track>.ids-switch__handle>.ids-icon':
570
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-primary-default)' },
571
+ '.ids-switch.ids-switch-primary.ids-switch-disabled>.ids-switch__button+.ids-switch__label': {
572
+ color: 'var(--ids-comp-switch-label-color-fg-primary-disabled)',
573
+ },
574
+ '.ids-switch.ids-switch-primary.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track': {
575
+ backgroundColor: 'var(--ids-comp-switch-track-off-color-bg-primary-disabled)',
576
+ },
577
+ '.ids-switch.ids-switch-primary.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
578
+ { color: 'var(--ids-comp-switch-track-off-color-fg-icon-primary-disabled)' },
579
+ '.ids-switch.ids-switch-primary.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
580
+ backgroundColor: 'var(--ids-comp-switch-handle-off-color-bg-primary-disabled)',
581
+ },
582
+ '.ids-switch.ids-switch-primary.ids-switch-disabled:not(.ids-switch-on)>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
583
+ { color: 'var(--ids-comp-switch-handle-off-color-fg-icon-primary-disabled)' },
584
+ '.ids-switch.ids-switch-primary.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track': {
585
+ backgroundColor: 'var(--ids-comp-switch-track-on-color-bg-primary-disabled)',
586
+ },
587
+ '.ids-switch.ids-switch-primary.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__track-icon>.ids-icon':
588
+ { color: 'var(--ids-comp-switch-track-on-color-fg-icon-primary-disabled)' },
589
+ '.ids-switch.ids-switch-primary.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle': {
590
+ backgroundColor: 'var(--ids-comp-switch-handle-on-color-bg-primary-disabled)',
591
+ },
592
+ '.ids-switch.ids-switch-primary.ids-switch-disabled.ids-switch-on>.ids-switch__button>.ids-switch__track>.ids-switch__handle>.ids-icon':
593
+ { color: 'var(--ids-comp-switch-handle-on-color-fg-icon-primary-disabled)' },
594
+ '.ids-switch.ids-switch-disabled': { cursor: 'not-allowed' },
595
+ };
596
+
597
+ addComponents(cssObj);
598
+ };
599
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i-cell/ids-styles",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "description": "Stylesheets for i-Cell Design System UI Kit components (currently Vue and Angular)",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://github.com/i-Cell-Mobilsoft-Open-Source/ids-styles#readme",
37
37
  "devDependencies": {
38
- "@i-cell/ids-tokens": "0.0.22",
38
+ "@i-cell/ids-tokens": "0.0.23",
39
39
  "commander": "^12.1.0",
40
40
  "gulp": "^5.0.0",
41
41
  "gulp-prettier": "^6.0.0",