@synergy-design-system/tokens 1.0.0-main.10 → 1.0.0-main.12
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 +14 -0
- package/dist/js/index.d.ts +935 -0
- package/dist/js/index.js +4 -4
- package/dist/scss/_tokens.scss +4 -4
- package/dist/themes/dark.css +5 -8
- package/dist/themes/light.css +5 -8
- package/package.json +6 -2
- package/src/figma-tokens/$metadata.json +1 -1
- package/src/figma-tokens/$themes.json +1 -1
- package/src/figma-tokens/_docs.json +205 -19
- package/src/figma-tokens/semantic/input.json +1 -1
- package/src/figma-tokens/semantic/toggle.json +18 -0
- package/src/figma-tokens/semantic/toggles.json +0 -16
package/dist/js/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.11
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -581,17 +581,17 @@ export const SynInputFontSizeLarge = 'var(--syn-input-font-size-large)';
|
|
|
581
581
|
/**
|
|
582
582
|
* @type {string}
|
|
583
583
|
*/
|
|
584
|
-
export const
|
|
584
|
+
export const SynToggleSizeSmall = 'var(--syn-toggle-size-small)';
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* @type {string}
|
|
588
588
|
*/
|
|
589
|
-
export const
|
|
589
|
+
export const SynToggleSizeMedium = 'var(--syn-toggle-size-medium)';
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* @type {string}
|
|
593
593
|
*/
|
|
594
|
-
export const
|
|
594
|
+
export const SynToggleSizeLarge = 'var(--syn-toggle-size-large)';
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
597
|
* @type {string}
|
package/dist/scss/_tokens.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.11
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
$SynFontSize2xSmall: var(--syn-font-size-2x-small) !default;
|
|
@@ -117,9 +117,9 @@ $SynInputReadonlyColorFocus: var(--syn-input-readonly-color-focus) !default;
|
|
|
117
117
|
$SynInputFontSizeSmall: var(--syn-input-font-size-small) !default;
|
|
118
118
|
$SynInputFontSizeMedium: var(--syn-input-font-size-medium) !default;
|
|
119
119
|
$SynInputFontSizeLarge: var(--syn-input-font-size-large) !default;
|
|
120
|
-
$
|
|
121
|
-
$
|
|
122
|
-
$
|
|
120
|
+
$SynToggleSizeSmall: var(--syn-toggle-size-small) !default;
|
|
121
|
+
$SynToggleSizeMedium: var(--syn-toggle-size-medium) !default;
|
|
122
|
+
$SynToggleSizeLarge: var(--syn-toggle-size-large) !default;
|
|
123
123
|
$SynColorPrimary50: var(--syn-color-primary-50) !default;
|
|
124
124
|
$SynColorPrimary100: var(--syn-color-primary-100) !default;
|
|
125
125
|
$SynColorPrimary200: var(--syn-color-primary-200) !default;
|
package/dist/themes/dark.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.11
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Wed, 29 Nov 2023 08:00:35 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
123
123
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
124
124
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
125
|
-
--syn-size-small: 14px;
|
|
126
|
-
--syn-size-medium: var(--syn-spacing-medium);
|
|
127
|
-
--syn-size-large: var(--syn-spacing-large);
|
|
125
|
+
--syn-toggle-size-small: 14px;
|
|
126
|
+
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
127
|
+
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
128
128
|
--syn-color-primary-50: #072E4A;
|
|
129
129
|
--syn-color-primary-100: #0B486F;
|
|
130
130
|
--syn-color-primary-200: #065786;
|
|
@@ -230,9 +230,6 @@
|
|
|
230
230
|
--syn-input-filled-color-hover: var(--syn-color-neutral-800);
|
|
231
231
|
--syn-input-filled-color-focus: var(--syn-color-neutral-700);
|
|
232
232
|
--syn-input-filled-color-disabled: var(--syn-color-neutral-800);
|
|
233
|
-
--syn-toggle-size-small: 0.875rem;
|
|
234
|
-
--syn-toggle-size-medium: 1.125rem;
|
|
235
|
-
--syn-toggle-size-large: 1.375rem;
|
|
236
233
|
--syn-overlay-background-color: hsl(0 0% 0% / 43%);
|
|
237
234
|
--syn-panel-background-color: var(--syn-color-neutral-50);
|
|
238
235
|
--syn-panel-border-color: var(--syn-color-neutral-200);
|
package/dist/themes/light.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.11
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Wed, 29 Nov 2023 08:00:35 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
123
123
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
124
124
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
125
|
-
--syn-size-small: 14px;
|
|
126
|
-
--syn-size-medium: var(--syn-spacing-medium);
|
|
127
|
-
--syn-size-large: var(--syn-spacing-large);
|
|
125
|
+
--syn-toggle-size-small: 14px;
|
|
126
|
+
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
127
|
+
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
128
128
|
--syn-color-primary-50: #f0f9ff;
|
|
129
129
|
--syn-color-primary-100: #e0f1FE;
|
|
130
130
|
--syn-color-primary-200: #b9e5fe;
|
|
@@ -230,9 +230,6 @@
|
|
|
230
230
|
--syn-input-filled-color-hover: var(--syn-color-neutral-800);
|
|
231
231
|
--syn-input-filled-color-focus: var(--syn-color-neutral-700);
|
|
232
232
|
--syn-input-filled-color-disabled: var(--syn-color-neutral-800);
|
|
233
|
-
--syn-toggle-size-small: 0.875rem;
|
|
234
|
-
--syn-toggle-size-medium: 1.125rem;
|
|
235
|
-
--syn-toggle-size-large: 1.375rem;
|
|
236
233
|
--syn-overlay-background-color: hsl(240 3.8% 46.1% / 33%);
|
|
237
234
|
--syn-panel-background-color: var(--syn-color-neutral-0);
|
|
238
235
|
--syn-panel-border-color: var(--syn-color-neutral-200);
|
package/package.json
CHANGED
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"@synergy-design-system/eslint-config-syn": "0.1.0"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/js/index.d.ts",
|
|
25
|
+
"import": "./dist/js/index.js"
|
|
26
|
+
},
|
|
24
27
|
"./themes/*": "./dist/themes/*",
|
|
25
28
|
"./scss": "./dist/scss/_tokens.scss"
|
|
26
29
|
},
|
|
@@ -100,7 +103,8 @@
|
|
|
100
103
|
]
|
|
101
104
|
},
|
|
102
105
|
"type": "module",
|
|
103
|
-
"
|
|
106
|
+
"types": "./dist/js/index.d.ts",
|
|
107
|
+
"version": "1.0.0-main.12",
|
|
104
108
|
"scripts": {
|
|
105
109
|
"build": "pnpm clean && node scripts/build.js",
|
|
106
110
|
"clean": "rimraf build",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
"color/primitives": "source",
|
|
318
318
|
"semantic/input": "enabled",
|
|
319
319
|
"semantic/button": "enabled",
|
|
320
|
-
"semantic/
|
|
320
|
+
"semantic/toggle": "enabled"
|
|
321
321
|
},
|
|
322
322
|
"$figmaCollectionId": "VariableCollectionId:790:67393",
|
|
323
323
|
"$figmaModeId": "790:0",
|
|
@@ -213,13 +213,85 @@
|
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"checkbox": {
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
|
|
216
|
+
"default": {
|
|
217
|
+
"description": {
|
|
218
|
+
"value": "Checkboxes allow the user to toggle an option on or off.",
|
|
219
|
+
"type": "text"
|
|
220
|
+
},
|
|
221
|
+
"title": {
|
|
222
|
+
"value": "Checkbox",
|
|
223
|
+
"type": "text"
|
|
224
|
+
}
|
|
219
225
|
},
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
226
|
+
"checked": {
|
|
227
|
+
"title": {
|
|
228
|
+
"value": "Checked",
|
|
229
|
+
"type": "text"
|
|
230
|
+
},
|
|
231
|
+
"description": {
|
|
232
|
+
"value": "Use the checked attribute to activate the checkbox.",
|
|
233
|
+
"type": "text"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"indeterminate": {
|
|
237
|
+
"title": {
|
|
238
|
+
"value": "Indeterminate",
|
|
239
|
+
"type": "text"
|
|
240
|
+
},
|
|
241
|
+
"description": {
|
|
242
|
+
"value": "Use the indeterminate attribute to make the checkbox indeterminate.",
|
|
243
|
+
"type": "text"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"focus": {
|
|
247
|
+
"title": {
|
|
248
|
+
"value": "Focus",
|
|
249
|
+
"type": "text"
|
|
250
|
+
},
|
|
251
|
+
"description": {
|
|
252
|
+
"value": "The focus event gives the user feedback that the Checkbox has been focused by the keyboard interaction.",
|
|
253
|
+
"type": "text"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"disabled": {
|
|
257
|
+
"title": {
|
|
258
|
+
"value": "Disabled",
|
|
259
|
+
"type": "text"
|
|
260
|
+
},
|
|
261
|
+
"description": {
|
|
262
|
+
"value": "Use the disabled attribute to disable the checkbox.",
|
|
263
|
+
"type": "text"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"sizes": {
|
|
267
|
+
"title": {
|
|
268
|
+
"value": "Sizes",
|
|
269
|
+
"type": "text"
|
|
270
|
+
},
|
|
271
|
+
"description": {
|
|
272
|
+
"value": "Use the size attribute to change a checkbox’s size.",
|
|
273
|
+
"type": "text"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"invalid": {
|
|
277
|
+
"title": {
|
|
278
|
+
"value": "Invalid",
|
|
279
|
+
"type": "text"
|
|
280
|
+
},
|
|
281
|
+
"description": {
|
|
282
|
+
"value": "The invalid status is used to warn the user that the Checkbox is invalid. For example, if the check is mandatory and nothing has been checked.",
|
|
283
|
+
"type": "text"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"validity": {
|
|
287
|
+
"title": {
|
|
288
|
+
"value": "Custom Validity",
|
|
289
|
+
"type": "text"
|
|
290
|
+
},
|
|
291
|
+
"description": {
|
|
292
|
+
"value": "Use the setCustomValidity() method to set a custom validation message. This will prevent the form from submitting and make the browser display the error message you provide. To clear the error, call this function with an empty string.",
|
|
293
|
+
"type": "text"
|
|
294
|
+
}
|
|
223
295
|
}
|
|
224
296
|
},
|
|
225
297
|
"color-picker": {
|
|
@@ -323,13 +395,55 @@
|
|
|
323
395
|
}
|
|
324
396
|
},
|
|
325
397
|
"icon-button": {
|
|
326
|
-
"
|
|
327
|
-
"
|
|
328
|
-
|
|
398
|
+
"default": {
|
|
399
|
+
"description": {
|
|
400
|
+
"value": "Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n\nFor a full list of icons that come bundled with Synergy, refer to the Assets.",
|
|
401
|
+
"type": "text"
|
|
402
|
+
},
|
|
403
|
+
"title": {
|
|
404
|
+
"value": "Icon Button",
|
|
405
|
+
"type": "text"
|
|
406
|
+
}
|
|
329
407
|
},
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
|
|
408
|
+
"sizes": {
|
|
409
|
+
"title": {
|
|
410
|
+
"value": "Sizes",
|
|
411
|
+
"type": "text"
|
|
412
|
+
},
|
|
413
|
+
"description": {
|
|
414
|
+
"value": "Use the size attribute to change a icon-button size.",
|
|
415
|
+
"type": "text"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"disabled": {
|
|
419
|
+
"title": {
|
|
420
|
+
"value": "Disabled",
|
|
421
|
+
"type": "text"
|
|
422
|
+
},
|
|
423
|
+
"description": {
|
|
424
|
+
"value": "Use the disabled attribute to disable the icon button.",
|
|
425
|
+
"type": "text"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"focus": {
|
|
429
|
+
"title": {
|
|
430
|
+
"value": "Focus",
|
|
431
|
+
"type": "text"
|
|
432
|
+
},
|
|
433
|
+
"description": {
|
|
434
|
+
"value": "The focus event gives the user feedback that the icon-button has been focused by the keyboard interaction.",
|
|
435
|
+
"type": "text"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"color": {
|
|
439
|
+
"title": {
|
|
440
|
+
"value": "Color",
|
|
441
|
+
"type": "text"
|
|
442
|
+
},
|
|
443
|
+
"description": {
|
|
444
|
+
"value": "The Icon button can have two color variants, Primary or Neutral Color.",
|
|
445
|
+
"type": "text"
|
|
446
|
+
}
|
|
333
447
|
}
|
|
334
448
|
},
|
|
335
449
|
"icon": {
|
|
@@ -809,13 +923,35 @@
|
|
|
809
923
|
}
|
|
810
924
|
},
|
|
811
925
|
"tag": {
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
|
|
926
|
+
"default": {
|
|
927
|
+
"description": {
|
|
928
|
+
"value": "Tags are used as labels to organize things or to indicate a selection.",
|
|
929
|
+
"type": "text"
|
|
930
|
+
},
|
|
931
|
+
"title": {
|
|
932
|
+
"value": "Tag",
|
|
933
|
+
"type": "text"
|
|
934
|
+
}
|
|
815
935
|
},
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
|
|
936
|
+
"size": {
|
|
937
|
+
"title": {
|
|
938
|
+
"value": "Sizes",
|
|
939
|
+
"type": "text"
|
|
940
|
+
},
|
|
941
|
+
"description": {
|
|
942
|
+
"value": "Use the size attribute to change a tab’s size.",
|
|
943
|
+
"type": "text"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
"removable": {
|
|
947
|
+
"title": {
|
|
948
|
+
"value": "Removable",
|
|
949
|
+
"type": "text"
|
|
950
|
+
},
|
|
951
|
+
"description": {
|
|
952
|
+
"value": "Use the removable attribute to add a remove button to the tag.",
|
|
953
|
+
"type": "text"
|
|
954
|
+
}
|
|
819
955
|
}
|
|
820
956
|
},
|
|
821
957
|
"textarea": {
|
|
@@ -982,12 +1118,62 @@
|
|
|
982
1118
|
},
|
|
983
1119
|
"radio": {
|
|
984
1120
|
"default": {
|
|
1121
|
+
"description": {
|
|
1122
|
+
"value": "Radios allow the user to select a single option from a group. \\nRadios are designed to be used with radio groups.",
|
|
1123
|
+
"type": "text"
|
|
1124
|
+
},
|
|
985
1125
|
"title": {
|
|
986
1126
|
"value": "Radio",
|
|
987
1127
|
"type": "text"
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"focus": {
|
|
1131
|
+
"title": {
|
|
1132
|
+
"value": "Focus",
|
|
1133
|
+
"type": "text"
|
|
1134
|
+
},
|
|
1135
|
+
"description": {
|
|
1136
|
+
"value": "The focus event gives the user feedback that the Radio has been focused by the keyboard interaction.",
|
|
1137
|
+
"type": "text"
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"disabled": {
|
|
1141
|
+
"title": {
|
|
1142
|
+
"value": "Disabled",
|
|
1143
|
+
"type": "text"
|
|
1144
|
+
},
|
|
1145
|
+
"description": {
|
|
1146
|
+
"value": "Use the disabled attribute to disable a radio.",
|
|
1147
|
+
"type": "text"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
"sizes": {
|
|
1151
|
+
"title": {
|
|
1152
|
+
"value": "Sizes",
|
|
1153
|
+
"type": "text"
|
|
1154
|
+
},
|
|
1155
|
+
"description": {
|
|
1156
|
+
"value": "Add the size attribute to the Radio Group to change the radios’ size.",
|
|
1157
|
+
"type": "text"
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"invalid": {
|
|
1161
|
+
"title": {
|
|
1162
|
+
"value": "Invalid",
|
|
1163
|
+
"type": "text"
|
|
1164
|
+
},
|
|
1165
|
+
"description": {
|
|
1166
|
+
"value": "The invalid status is used to warn the user that the Radio is invalid. For example, if the radio is mandatory and nothing has been checked.",
|
|
1167
|
+
"type": "text"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"value": {
|
|
1171
|
+
"title": {
|
|
1172
|
+
"value": "Initial Value",
|
|
1173
|
+
"type": "text"
|
|
988
1174
|
},
|
|
989
1175
|
"description": {
|
|
990
|
-
"value": "
|
|
1176
|
+
"value": "To set the initial value and checked state, use the value attribute on the containing radio group.",
|
|
991
1177
|
"type": "text"
|
|
992
1178
|
}
|
|
993
1179
|
}
|