@utrecht/form-toggle-css 1.1.0 → 1.2.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/CHANGELOG.md +27 -0
- package/design.md +7 -0
- package/dist/index.css +1 -1
- package/package.json +11 -4
- package/src/_mixin.scss +1 -1
- package/src/tokens.json +248 -38
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @utrecht/form-toggle-css
|
|
2
|
+
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7814d98: Fixed form toggle token variable name to be in line with our naming convention.
|
|
8
|
+
|
|
9
|
+
`--utrecht-form-toggle-background-disabled-background-color` to `--utrecht-form-toggle-disabled-background-color`
|
|
10
|
+
|
|
11
|
+
## 1.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 9196935: Added metadata for form-toggle tokens.
|
|
16
|
+
|
|
17
|
+
## 1.1.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 62f1157: Add SCSS files to `src/` directory of CSS component packages.
|
|
22
|
+
|
|
23
|
+
## 1.0.0
|
|
24
|
+
|
|
25
|
+
### Major Changes
|
|
26
|
+
|
|
27
|
+
- 856d996: Switch from alpha releases to semantic versioning.
|
package/design.md
ADDED
package/dist/index.css
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.utrecht-form-toggle__track--disabled, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:disabled ~ .utrecht-form-toggle__track {
|
|
118
|
-
background-color: var(--utrecht-form-toggle-
|
|
118
|
+
background-color: var(--utrecht-form-toggle-disabled-background-color, #ddd);
|
|
119
119
|
color: var(--utrecht-form-toggle-disabled-color, black);
|
|
120
120
|
}
|
|
121
121
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1
|
|
2
|
+
"version": "1.2.1",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Form toggle component for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
6
6
|
"name": "@utrecht/form-toggle-css",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/",
|
|
9
|
-
"
|
|
9
|
+
"docs/",
|
|
10
|
+
"src/",
|
|
11
|
+
"*.md"
|
|
10
12
|
],
|
|
11
13
|
"main": "dist/index.css",
|
|
12
14
|
"devDependencies": {
|
|
13
|
-
"rollup": "
|
|
14
|
-
"@utrecht/focus-ring-css": "1.
|
|
15
|
+
"rollup": "4.18.0",
|
|
16
|
+
"@utrecht/focus-ring-css": "1.2.0"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"nl-design-system"
|
|
@@ -19,6 +21,11 @@
|
|
|
19
21
|
"publishConfig": {
|
|
20
22
|
"access": "public"
|
|
21
23
|
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git+ssh",
|
|
26
|
+
"url": "git@github.com:nl-design-system/utrecht.git",
|
|
27
|
+
"directory": "components/form-toggle"
|
|
28
|
+
},
|
|
22
29
|
"scripts": {
|
|
23
30
|
"build": "rollup -c ../rollup.config.mjs",
|
|
24
31
|
"clean": "rimraf dist"
|
package/src/_mixin.scss
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
@mixin utrecht-form-toggle__track--disabled {
|
|
118
|
-
background-color: var(--utrecht-form-toggle-
|
|
118
|
+
background-color: var(--utrecht-form-toggle-disabled-background-color, #ddd);
|
|
119
119
|
color: var(--utrecht-form-toggle-disabled-color, black);
|
|
120
120
|
}
|
|
121
121
|
|
package/src/tokens.json
CHANGED
|
@@ -6,57 +6,151 @@
|
|
|
6
6
|
"nl.nldesignsystem.css.property": {
|
|
7
7
|
"syntax": "<color>",
|
|
8
8
|
"inherits": true
|
|
9
|
-
}
|
|
10
|
-
|
|
9
|
+
},
|
|
10
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
11
|
+
},
|
|
12
|
+
"type": "color"
|
|
11
13
|
},
|
|
12
14
|
"background-color": {
|
|
13
15
|
"$extensions": {
|
|
14
16
|
"nl.nldesignsystem.css.property": {
|
|
15
17
|
"syntax": "<color>",
|
|
16
18
|
"inherits": true
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
+
},
|
|
20
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
21
|
+
},
|
|
22
|
+
"type": "color"
|
|
19
23
|
},
|
|
20
24
|
"border-color": {
|
|
21
25
|
"$extensions": {
|
|
22
26
|
"nl.nldesignsystem.css.property": {
|
|
23
27
|
"syntax": "<color>",
|
|
24
28
|
"inherits": true
|
|
25
|
-
}
|
|
26
|
-
|
|
29
|
+
},
|
|
30
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
31
|
+
},
|
|
32
|
+
"type": "color"
|
|
33
|
+
},
|
|
34
|
+
"border-style": {
|
|
35
|
+
"$extensions": {
|
|
36
|
+
"nl.nldesignsystem.css.property": {
|
|
37
|
+
"syntax": "*",
|
|
38
|
+
"inherits": true
|
|
39
|
+
},
|
|
40
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
41
|
+
},
|
|
42
|
+
"type": "other"
|
|
27
43
|
},
|
|
28
44
|
"border-radius": {
|
|
29
45
|
"$extensions": {
|
|
30
46
|
"nl.nldesignsystem.css.property": {
|
|
31
|
-
"syntax": "<length>",
|
|
47
|
+
"syntax": "<length-percentage>",
|
|
32
48
|
"inherits": true
|
|
33
|
-
}
|
|
34
|
-
|
|
49
|
+
},
|
|
50
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
51
|
+
},
|
|
52
|
+
"type": "borderRadius"
|
|
35
53
|
},
|
|
36
54
|
"border-width": {
|
|
37
55
|
"$extensions": {
|
|
38
56
|
"nl.nldesignsystem.css.property": {
|
|
39
57
|
"syntax": "<length>",
|
|
40
58
|
"inherits": true
|
|
41
|
-
}
|
|
42
|
-
|
|
59
|
+
},
|
|
60
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
61
|
+
},
|
|
62
|
+
"type": "borderWidth"
|
|
43
63
|
},
|
|
44
64
|
"color": {
|
|
45
65
|
"$extensions": {
|
|
46
66
|
"nl.nldesignsystem.css.property": {
|
|
47
67
|
"syntax": "<color>",
|
|
48
68
|
"inherits": true
|
|
49
|
-
}
|
|
50
|
-
|
|
69
|
+
},
|
|
70
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
71
|
+
},
|
|
72
|
+
"type": "color"
|
|
73
|
+
},
|
|
74
|
+
"height": {
|
|
75
|
+
"$extensions": {
|
|
76
|
+
"nl.nldesignsystem.css.property": {
|
|
77
|
+
"syntax": "<length>",
|
|
78
|
+
"inherits": true
|
|
79
|
+
},
|
|
80
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
81
|
+
},
|
|
82
|
+
"type": "sizing"
|
|
83
|
+
},
|
|
84
|
+
"padding-inline-end": {
|
|
85
|
+
"$extensions": {
|
|
86
|
+
"nl.nldesignsystem.css.property": {
|
|
87
|
+
"syntax": "<length>",
|
|
88
|
+
"inherits": true
|
|
89
|
+
},
|
|
90
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
91
|
+
},
|
|
92
|
+
"type": "spacing"
|
|
93
|
+
},
|
|
94
|
+
"padding-inline-start": {
|
|
95
|
+
"$extensions": {
|
|
96
|
+
"nl.nldesignsystem.css.property": {
|
|
97
|
+
"syntax": "<length>",
|
|
98
|
+
"inherits": true
|
|
99
|
+
},
|
|
100
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
101
|
+
},
|
|
102
|
+
"type": "spacing"
|
|
103
|
+
},
|
|
104
|
+
"padding-block-end": {
|
|
105
|
+
"$extensions": {
|
|
106
|
+
"nl.nldesignsystem.css.property": {
|
|
107
|
+
"syntax": "<length>",
|
|
108
|
+
"inherits": true
|
|
109
|
+
},
|
|
110
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
111
|
+
},
|
|
112
|
+
"type": "spacing"
|
|
113
|
+
},
|
|
114
|
+
"padding-block-start": {
|
|
115
|
+
"$extensions": {
|
|
116
|
+
"nl.nldesignsystem.css.property": {
|
|
117
|
+
"syntax": "<length>",
|
|
118
|
+
"inherits": true
|
|
119
|
+
},
|
|
120
|
+
"nl.nldesignsystem.figma.supports-token": true
|
|
121
|
+
},
|
|
122
|
+
"type": "spacing"
|
|
123
|
+
},
|
|
124
|
+
"width": {
|
|
125
|
+
"$extensions": {
|
|
126
|
+
"nl.nldesignsystem.css.property": {
|
|
127
|
+
"syntax": "<length>",
|
|
128
|
+
"inherits": true
|
|
129
|
+
},
|
|
130
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
131
|
+
},
|
|
132
|
+
"type": "sizing"
|
|
51
133
|
},
|
|
52
134
|
"track": {
|
|
135
|
+
"border-color": {
|
|
136
|
+
"$extensions": {
|
|
137
|
+
"nl.nldesignsystem.css.property": {
|
|
138
|
+
"syntax": "<color>",
|
|
139
|
+
"inherits": true
|
|
140
|
+
},
|
|
141
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
142
|
+
},
|
|
143
|
+
"type": "color"
|
|
144
|
+
},
|
|
53
145
|
"border-radius": {
|
|
54
146
|
"$extensions": {
|
|
55
147
|
"nl.nldesignsystem.css.property": {
|
|
56
|
-
"syntax": "<length>",
|
|
148
|
+
"syntax": "<length-percentage>",
|
|
57
149
|
"inherits": true
|
|
58
|
-
}
|
|
59
|
-
|
|
150
|
+
},
|
|
151
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
152
|
+
},
|
|
153
|
+
"type": "borderRadius"
|
|
60
154
|
},
|
|
61
155
|
"disabled": {
|
|
62
156
|
"background-color": {
|
|
@@ -64,8 +158,20 @@
|
|
|
64
158
|
"nl.nldesignsystem.css.property": {
|
|
65
159
|
"syntax": "<color>",
|
|
66
160
|
"inherits": true
|
|
67
|
-
}
|
|
68
|
-
|
|
161
|
+
},
|
|
162
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
163
|
+
},
|
|
164
|
+
"type": "color"
|
|
165
|
+
},
|
|
166
|
+
"border-color": {
|
|
167
|
+
"$extensions": {
|
|
168
|
+
"nl.nldesignsystem.css.property": {
|
|
169
|
+
"syntax": "<color>",
|
|
170
|
+
"inherits": true
|
|
171
|
+
},
|
|
172
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
173
|
+
},
|
|
174
|
+
"type": "color"
|
|
69
175
|
}
|
|
70
176
|
}
|
|
71
177
|
},
|
|
@@ -75,32 +181,60 @@
|
|
|
75
181
|
"nl.nldesignsystem.css.property": {
|
|
76
182
|
"syntax": "<color>",
|
|
77
183
|
"inherits": true
|
|
78
|
-
}
|
|
79
|
-
|
|
184
|
+
},
|
|
185
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
186
|
+
},
|
|
187
|
+
"type": "color"
|
|
188
|
+
},
|
|
189
|
+
"border-radius": {
|
|
190
|
+
"$extensions": {
|
|
191
|
+
"nl.nldesignsystem.css.property": {
|
|
192
|
+
"syntax": "<length-percentage>",
|
|
193
|
+
"inherits": true
|
|
194
|
+
},
|
|
195
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
196
|
+
},
|
|
197
|
+
"type": "borderRadius"
|
|
198
|
+
},
|
|
199
|
+
"box-shadow": {
|
|
200
|
+
"$extensions": {
|
|
201
|
+
"nl.nldesignsystem.css.property": {
|
|
202
|
+
"syntax": "*",
|
|
203
|
+
"inherits": true
|
|
204
|
+
},
|
|
205
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
206
|
+
},
|
|
207
|
+
"type": "boxShadow"
|
|
80
208
|
},
|
|
81
209
|
"margin-inline-start": {
|
|
82
210
|
"$extensions": {
|
|
83
211
|
"nl.nldesignsystem.css.property": {
|
|
84
212
|
"syntax": "<length>",
|
|
85
213
|
"inherits": true
|
|
86
|
-
}
|
|
87
|
-
|
|
214
|
+
},
|
|
215
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
216
|
+
},
|
|
217
|
+
"type": "spacing"
|
|
88
218
|
},
|
|
89
219
|
"margin-inline-end": {
|
|
90
220
|
"$extensions": {
|
|
91
221
|
"nl.nldesignsystem.css.property": {
|
|
92
222
|
"syntax": "<length>",
|
|
93
223
|
"inherits": true
|
|
94
|
-
}
|
|
95
|
-
|
|
224
|
+
},
|
|
225
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
226
|
+
},
|
|
227
|
+
"type": "spacing"
|
|
96
228
|
},
|
|
97
229
|
"min-inline-size": {
|
|
98
230
|
"$extensions": {
|
|
99
231
|
"nl.nldesignsystem.css.property": {
|
|
100
232
|
"syntax": "<length>",
|
|
101
233
|
"inherits": true
|
|
102
|
-
}
|
|
103
|
-
|
|
234
|
+
},
|
|
235
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
236
|
+
},
|
|
237
|
+
"type": "sizing"
|
|
104
238
|
},
|
|
105
239
|
"disabled": {
|
|
106
240
|
"box-shadow": {
|
|
@@ -108,16 +242,20 @@
|
|
|
108
242
|
"nl.nldesignsystem.css.property": {
|
|
109
243
|
"syntax": "*",
|
|
110
244
|
"inherits": true
|
|
111
|
-
}
|
|
112
|
-
|
|
245
|
+
},
|
|
246
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
247
|
+
},
|
|
248
|
+
"type": "boxShadow"
|
|
113
249
|
},
|
|
114
250
|
"background-color": {
|
|
115
251
|
"$extensions": {
|
|
116
252
|
"nl.nldesignsystem.css.property": {
|
|
117
253
|
"syntax": "<color>",
|
|
118
254
|
"inherits": true
|
|
119
|
-
}
|
|
120
|
-
|
|
255
|
+
},
|
|
256
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
257
|
+
},
|
|
258
|
+
"type": "color"
|
|
121
259
|
}
|
|
122
260
|
}
|
|
123
261
|
},
|
|
@@ -127,8 +265,52 @@
|
|
|
127
265
|
"nl.nldesignsystem.css.property": {
|
|
128
266
|
"syntax": "<color>",
|
|
129
267
|
"inherits": true
|
|
130
|
-
}
|
|
131
|
-
|
|
268
|
+
},
|
|
269
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
270
|
+
},
|
|
271
|
+
"type": "color"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"disabled": {
|
|
275
|
+
"border-color": {
|
|
276
|
+
"$extensions": {
|
|
277
|
+
"nl.nldesignsystem.css.property": {
|
|
278
|
+
"syntax": "<color>",
|
|
279
|
+
"inherits": true
|
|
280
|
+
},
|
|
281
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
282
|
+
},
|
|
283
|
+
"type": "color"
|
|
284
|
+
},
|
|
285
|
+
"border-style": {
|
|
286
|
+
"$extensions": {
|
|
287
|
+
"nl.nldesignsystem.css.property": {
|
|
288
|
+
"syntax": "*",
|
|
289
|
+
"inherits": true
|
|
290
|
+
},
|
|
291
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
292
|
+
},
|
|
293
|
+
"type": "other"
|
|
294
|
+
},
|
|
295
|
+
"border-width": {
|
|
296
|
+
"$extensions": {
|
|
297
|
+
"nl.nldesignsystem.css.property": {
|
|
298
|
+
"syntax": "<length>",
|
|
299
|
+
"inherits": true
|
|
300
|
+
},
|
|
301
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
302
|
+
},
|
|
303
|
+
"type": "borderWidth"
|
|
304
|
+
},
|
|
305
|
+
"color": {
|
|
306
|
+
"$extensions": {
|
|
307
|
+
"nl.nldesignsystem.css.property": {
|
|
308
|
+
"syntax": "<color>",
|
|
309
|
+
"inherits": true
|
|
310
|
+
},
|
|
311
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
312
|
+
},
|
|
313
|
+
"type": "color"
|
|
132
314
|
}
|
|
133
315
|
},
|
|
134
316
|
"focus": {
|
|
@@ -137,24 +319,52 @@
|
|
|
137
319
|
"nl.nldesignsystem.css.property": {
|
|
138
320
|
"syntax": "<color>",
|
|
139
321
|
"inherits": true
|
|
140
|
-
}
|
|
141
|
-
|
|
322
|
+
},
|
|
323
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
324
|
+
},
|
|
325
|
+
"type": "color"
|
|
142
326
|
},
|
|
143
327
|
"border-style": {
|
|
144
328
|
"$extensions": {
|
|
145
329
|
"nl.nldesignsystem.css.property": {
|
|
146
330
|
"syntax": "*",
|
|
147
331
|
"inherits": true
|
|
148
|
-
}
|
|
149
|
-
|
|
332
|
+
},
|
|
333
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
334
|
+
},
|
|
335
|
+
"type": "other"
|
|
150
336
|
},
|
|
151
337
|
"border-width": {
|
|
152
338
|
"$extensions": {
|
|
153
339
|
"nl.nldesignsystem.css.property": {
|
|
154
340
|
"syntax": "<length>",
|
|
155
341
|
"inherits": true
|
|
156
|
-
}
|
|
157
|
-
|
|
342
|
+
},
|
|
343
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
344
|
+
},
|
|
345
|
+
"type": "borderWidth"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"hover": {
|
|
349
|
+
"background-color": {
|
|
350
|
+
"$extensions": {
|
|
351
|
+
"nl.nldesignsystem.css.property": {
|
|
352
|
+
"syntax": "<color>",
|
|
353
|
+
"inherits": true
|
|
354
|
+
},
|
|
355
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
356
|
+
},
|
|
357
|
+
"type": "color"
|
|
358
|
+
},
|
|
359
|
+
"color": {
|
|
360
|
+
"$extensions": {
|
|
361
|
+
"nl.nldesignsystem.css.property": {
|
|
362
|
+
"syntax": "<color>",
|
|
363
|
+
"inherits": true
|
|
364
|
+
},
|
|
365
|
+
"nl.nldesignsystem.figma.supports-token": false
|
|
366
|
+
},
|
|
367
|
+
"type": "color"
|
|
158
368
|
}
|
|
159
369
|
}
|
|
160
370
|
}
|