@synergy-design-system/tokens 1.11.0 → 1.12.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 +14 -0
- package/README.md +2 -0
- package/dist/js/index.d.ts +6 -1
- package/dist/js/index.js +6 -1
- package/dist/scss/_tokens.scss +2 -1
- package/dist/themes/dark.css +3 -2
- package/dist/themes/light.css +3 -2
- package/package.json +5 -5
- package/src/figma-tokens/_docs.json +185 -19
- package/src/figma-tokens/globals.json +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@synergy-design-system/tokens-v1.12.1](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.12.0...tokens/1.12.1) (2024-04-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 🤔 update dependencies ([#438](https://github.com/synergy-design-system/synergy-design-system/issues/438)) ([f3d648b](https://github.com/synergy-design-system/synergy-design-system/commit/f3d648b2071214cd6d58ff18d66e434dd32bfc76))
|
|
7
|
+
|
|
8
|
+
# [@synergy-design-system/tokens-v1.12.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.11.0...tokens/1.12.0) (2024-04-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* ✨ opacity-token 50% ([#428](https://github.com/synergy-design-system/synergy-design-system/issues/428)) ([ec1493d](https://github.com/synergy-design-system/synergy-design-system/commit/ec1493d8c0cedaf6568be970e8d9a5c0c1ab82fa))
|
|
14
|
+
|
|
1
15
|
# [@synergy-design-system/tokens-v1.11.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.10.0...tokens/1.11.0) (2024-04-08)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
This package provides the design tokens that form the base for all components of the synergy design system.
|
|
4
4
|
It provides multiple exports for colors, spacings, shadows, sizings, etc. that can be also consumed by applications directly.
|
|
5
5
|
|
|
6
|
+
The source of the tokens can be found at [Figma](https://www.figma.com/file/bZFqk9urD3NlghGUKrkKCR/Synergy-Digital-Design-System?type=design&node-id=104-235&mode=design&t=GPu4VVd9yffLLAaS-0)
|
|
7
|
+
|
|
6
8
|
---
|
|
7
9
|
|
|
8
10
|
## Installation
|
package/dist/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.
|
|
2
|
+
* @synergy-design-system/tokens version 1.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -269,6 +269,11 @@ export const SynBorderWidthXLarge: string;
|
|
|
269
269
|
*/
|
|
270
270
|
export const SynFontSansFallback: string;
|
|
271
271
|
|
|
272
|
+
/**
|
|
273
|
+
* Maps to the css variable `--syn-opacity-medium`
|
|
274
|
+
*/
|
|
275
|
+
export const SynOpacityMedium: string;
|
|
276
|
+
|
|
272
277
|
/**
|
|
273
278
|
* Maps to the css variable `--syn-button-font-size-small`
|
|
274
279
|
*/
|
package/dist/js/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.
|
|
2
|
+
* @synergy-design-system/tokens version 1.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -268,6 +268,11 @@ export const SynBorderWidthXLarge = 'var(--syn-border-width-x-large)';
|
|
|
268
268
|
*/
|
|
269
269
|
export const SynFontSansFallback = 'var(--syn-font-sans-fallback)';
|
|
270
270
|
|
|
271
|
+
/**
|
|
272
|
+
* @type {string}
|
|
273
|
+
*/
|
|
274
|
+
export const SynOpacityMedium = 'var(--syn-opacity-medium)';
|
|
275
|
+
|
|
271
276
|
/**
|
|
272
277
|
* @type {string}
|
|
273
278
|
*/
|
package/dist/scss/_tokens.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.
|
|
2
|
+
* @synergy-design-system/tokens version 1.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
$SynFontSizeXSmall: var(--syn-font-size-x-small) !default;
|
|
@@ -55,6 +55,7 @@ $SynBorderWidthMedium: var(--syn-border-width-medium) !default;
|
|
|
55
55
|
$SynBorderWidthLarge: var(--syn-border-width-large) !default;
|
|
56
56
|
$SynBorderWidthXLarge: var(--syn-border-width-x-large) !default;
|
|
57
57
|
$SynFontSansFallback: var(--syn-font-sans-fallback) !default;
|
|
58
|
+
$SynOpacityMedium: var(--syn-opacity-medium) !default;
|
|
58
59
|
$SynButtonFontSizeSmall: var(--syn-button-font-size-small) !default;
|
|
59
60
|
$SynButtonFontSizeMedium: var(--syn-button-font-size-medium) !default;
|
|
60
61
|
$SynButtonFontSizeLarge: var(--syn-button-font-size-large) !default;
|
package/dist/themes/dark.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.
|
|
2
|
+
* @synergy-design-system/tokens version 1.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Tue, 23 Apr 2024 09:42:20 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root, .syn-theme-dark {
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
--syn-border-width-large: 3px; /* Large */
|
|
62
62
|
--syn-border-width-x-large: 4px; /* X Large */
|
|
63
63
|
--syn-font-sans-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
64
|
+
--syn-opacity-medium: 0.5; /* 50% */
|
|
64
65
|
--syn-button-font-size-small: var(--syn-font-size-small);
|
|
65
66
|
--syn-button-font-size-medium: var(--syn-font-size-medium);
|
|
66
67
|
--syn-button-font-size-large: var(--syn-font-size-large);
|
package/dist/themes/light.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.
|
|
2
|
+
* @synergy-design-system/tokens version 1.12.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Tue, 23 Apr 2024 09:42:20 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root, .syn-theme-light {
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
--syn-border-width-large: 3px; /* Large */
|
|
62
62
|
--syn-border-width-x-large: 4px; /* X Large */
|
|
63
63
|
--syn-font-sans-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
64
|
+
--syn-opacity-medium: 0.5; /* 50% */
|
|
64
65
|
--syn-button-font-size-small: var(--syn-font-size-small);
|
|
65
66
|
--syn-button-font-size-medium: var(--syn-font-size-medium);
|
|
66
67
|
--syn-button-font-size-large: var(--syn-font-size-large);
|
package/package.json
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"@semantic-release/changelog": "^6.0.3",
|
|
9
9
|
"@semantic-release/exec": "^6.0.3",
|
|
10
10
|
"@semantic-release/git": "^10.0.1",
|
|
11
|
-
"@tokens-studio/sd-transforms": "^0.14.
|
|
11
|
+
"@tokens-studio/sd-transforms": "^0.14.4",
|
|
12
12
|
"chalk": "^5.3.0",
|
|
13
|
-
"change-case": "^4.
|
|
14
|
-
"eslint": "^8.
|
|
13
|
+
"change-case": "^5.4.4",
|
|
14
|
+
"eslint": "^8.57.0",
|
|
15
15
|
"eslint-plugin-import": "^2.29.1",
|
|
16
16
|
"rimraf": "^5.0.5",
|
|
17
17
|
"semantic-release": "^19.0.5",
|
|
18
18
|
"semantic-release-monorepo": "7.0.5",
|
|
19
19
|
"style-dictionary": "^3.9.2",
|
|
20
|
-
"stylelint": "^16.
|
|
20
|
+
"stylelint": "^16.3.1",
|
|
21
21
|
"@synergy-design-system/eslint-config-syn": "0.1.0",
|
|
22
22
|
"@synergy-design-system/stylelint-config-syn": "0.1.0"
|
|
23
23
|
},
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
"type": "module",
|
|
103
103
|
"types": "./dist/js/index.d.ts",
|
|
104
|
-
"version": "1.
|
|
104
|
+
"version": "1.12.1",
|
|
105
105
|
"scripts": {
|
|
106
106
|
"build": "pnpm clean && node scripts/build.js",
|
|
107
107
|
"clean": "rimraf build",
|
|
@@ -1,13 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"components": {
|
|
3
3
|
"alert": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
"default": {
|
|
5
|
+
"description": {
|
|
6
|
+
"value": "Alerts are used to display important messages inline or as toast notifications.",
|
|
7
|
+
"type": "text"
|
|
8
|
+
},
|
|
9
|
+
"title": {
|
|
10
|
+
"value": "Alert",
|
|
11
|
+
"type": "text"
|
|
12
|
+
}
|
|
7
13
|
},
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
14
|
+
"variants": {
|
|
15
|
+
"title": {
|
|
16
|
+
"value": "Variants",
|
|
17
|
+
"type": "text"
|
|
18
|
+
},
|
|
19
|
+
"description": {
|
|
20
|
+
"value": "Set the variant attribute to change the alert’s variant.",
|
|
21
|
+
"type": "text"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"closable": {
|
|
25
|
+
"title": {
|
|
26
|
+
"value": "Closable",
|
|
27
|
+
"type": "text"
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"value": "Add the closable attribute to show a close button that will hide the alert.",
|
|
31
|
+
"type": "text"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"without-icons": {
|
|
35
|
+
"title": {
|
|
36
|
+
"value": "Without Icons",
|
|
37
|
+
"type": "text"
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"value": "Icons are optional. Simply omit the icon slot if you don’t want them.",
|
|
41
|
+
"type": "text"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"duration": {
|
|
45
|
+
"title": {
|
|
46
|
+
"value": "Duration",
|
|
47
|
+
"type": "text"
|
|
48
|
+
},
|
|
49
|
+
"description": {
|
|
50
|
+
"value": "Set the duration attribute to automatically hide an alert after a period of time. This is useful for alerts that don’t require acknowledgement.",
|
|
51
|
+
"type": "text"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"toast-notifications": {
|
|
55
|
+
"titel": {
|
|
56
|
+
"value": "Toast Notifications",
|
|
57
|
+
"type": "text"
|
|
58
|
+
},
|
|
59
|
+
"description": {
|
|
60
|
+
"value": "To display an alert as a toast notification, or “toast”, create the alert and call its toast() method. This will move the alert out of its position in the DOM and into the toast stack where it will be shown. Once dismissed, it will be removed from the DOM completely. To reuse a toast, store a reference to it and call toast() again later on.\n\nYou should always use the closable attribute so users can dismiss the notification. It’s also common to set a reasonable duration when the notification doesn’t require acknowledgement.",
|
|
61
|
+
"type": "text"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"creating-toasts-imperatively": {
|
|
65
|
+
"title": {
|
|
66
|
+
"value": "Creating Toasts Imperatively",
|
|
67
|
+
"type": "text"
|
|
68
|
+
},
|
|
69
|
+
"description": {
|
|
70
|
+
"value": "For convenience, you can create a utility that emits toast notifications with a function call rather than composing them in your HTML. To do this, generate the alert with JavaScript, append it to the body, and call the toast() method as shown in the example below.",
|
|
71
|
+
"type": "text"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"toast-stack": {
|
|
75
|
+
"title": {
|
|
76
|
+
"value": "The Toast Stack",
|
|
77
|
+
"type": "text"
|
|
78
|
+
},
|
|
79
|
+
"description": {
|
|
80
|
+
"value": "The toast stack is a fixed position singleton element created and managed internally by the alert component. It will be added and removed from the DOM as needed when toasts are shown. When more than one toast is visible, they will stack vertically in the toast stack.\n\nBy default, the toast stack is positioned at the top-right of the viewport. You can change its position by targeting .syn-toast-stack in your stylesheet. To make toasts appear at the top-left of the viewport, for example, use the following styles.",
|
|
81
|
+
"type": "text"
|
|
82
|
+
}
|
|
11
83
|
}
|
|
12
84
|
},
|
|
13
85
|
"animated-image": {
|
|
@@ -367,13 +439,65 @@
|
|
|
367
439
|
}
|
|
368
440
|
},
|
|
369
441
|
"dialog": {
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
|
|
442
|
+
"default": {
|
|
443
|
+
"description": {
|
|
444
|
+
"value": "Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.",
|
|
445
|
+
"type": "text"
|
|
446
|
+
},
|
|
447
|
+
"title": {
|
|
448
|
+
"value": "Dialog",
|
|
449
|
+
"type": "text"
|
|
450
|
+
}
|
|
373
451
|
},
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
|
|
452
|
+
"custom-width": {
|
|
453
|
+
"title": {
|
|
454
|
+
"value": "Custom Width",
|
|
455
|
+
"type": "text"
|
|
456
|
+
},
|
|
457
|
+
"description": {
|
|
458
|
+
"value": "Use the --width custom property to set the dialog’s width.",
|
|
459
|
+
"type": "text"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"scrolling": {
|
|
463
|
+
"title": {
|
|
464
|
+
"value": "Scrolling",
|
|
465
|
+
"type": "text"
|
|
466
|
+
},
|
|
467
|
+
"description": {
|
|
468
|
+
"value": "By design, a dialog’s height will never exceed that of the viewport. As such, dialogs will not scroll with the page ensuring the header and footer are always accessible to the user.",
|
|
469
|
+
"type": "text"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"header-actions": {
|
|
473
|
+
"title": {
|
|
474
|
+
"value": "Header Actions",
|
|
475
|
+
"type": "text"
|
|
476
|
+
},
|
|
477
|
+
"description": {
|
|
478
|
+
"value": "The header shows a functional close button by default. You can use the header-actions slot to add additional icon buttons if needed.",
|
|
479
|
+
"type": "text"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
"prevent-closing": {
|
|
483
|
+
"title": {
|
|
484
|
+
"value": "Preventing the Dialog from Closing",
|
|
485
|
+
"type": "text"
|
|
486
|
+
},
|
|
487
|
+
"description": {
|
|
488
|
+
"value": "By default, dialogs will close when the user clicks the close button, clicks the overlay, or presses the Escape key. In most cases, the default behavior is the best behavior in terms of UX. However, there are situations where this may be undesirable, such as when data loss will occur.\n\nTo keep the dialog open in such cases, you can cancel the syn-request-close event. When canceled, the dialog will remain open and pulse briefly to draw the user’s attention to it.\n\nYou can use event.detail.source to determine what triggered the request to close. This example prevents the dialog from closing when the overlay is clicked, but allows the close button or Escape to dismiss it.",
|
|
489
|
+
"type": "text"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"focus": {
|
|
493
|
+
"title": {
|
|
494
|
+
"value": "Customizing Initial Focus",
|
|
495
|
+
"type": "text"
|
|
496
|
+
},
|
|
497
|
+
"description": {
|
|
498
|
+
"value": "By default, the dialog’s panel will gain focus when opened. This allows a subsequent tab press to focus on the first tabbable element in the dialog. If you want a different element to have focus, add the autofocus attribute to it as shown below.",
|
|
499
|
+
"type": "text"
|
|
500
|
+
}
|
|
377
501
|
}
|
|
378
502
|
},
|
|
379
503
|
"divider": {
|
|
@@ -651,7 +775,7 @@
|
|
|
651
775
|
"icon-button": {
|
|
652
776
|
"default": {
|
|
653
777
|
"description": {
|
|
654
|
-
"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.",
|
|
778
|
+
"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.\n\n**Note:** To make the icon-button work in development, have a look at the icon documentation for how to set up the assets package.",
|
|
655
779
|
"type": "text"
|
|
656
780
|
},
|
|
657
781
|
"title": {
|
|
@@ -1083,13 +1207,55 @@
|
|
|
1083
1207
|
}
|
|
1084
1208
|
},
|
|
1085
1209
|
"progress-bar": {
|
|
1086
|
-
"
|
|
1087
|
-
"
|
|
1088
|
-
|
|
1210
|
+
"default": {
|
|
1211
|
+
"description": {
|
|
1212
|
+
"value": "Progress bars are used to show the status of an ongoing operation.",
|
|
1213
|
+
"type": "text"
|
|
1214
|
+
},
|
|
1215
|
+
"title": {
|
|
1216
|
+
"value": "Progress Bar",
|
|
1217
|
+
"type": "text"
|
|
1218
|
+
}
|
|
1089
1219
|
},
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1092
|
-
|
|
1220
|
+
"labels": {
|
|
1221
|
+
"title": {
|
|
1222
|
+
"value": "Labels",
|
|
1223
|
+
"type": "text"
|
|
1224
|
+
},
|
|
1225
|
+
"decription": {
|
|
1226
|
+
"value": "Use the label attribute to label the progress bar and tell assistive devices how to announce it.",
|
|
1227
|
+
"type": "text"
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
"custom-height": {
|
|
1231
|
+
"title": {
|
|
1232
|
+
"value": "Custom Height",
|
|
1233
|
+
"type": "text"
|
|
1234
|
+
},
|
|
1235
|
+
"description": {
|
|
1236
|
+
"value": "Use the --height custom property to set the progress bar’s height.",
|
|
1237
|
+
"type": "text"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
"showing-values": {
|
|
1241
|
+
"title": {
|
|
1242
|
+
"value": "Showing Values",
|
|
1243
|
+
"type": "text"
|
|
1244
|
+
},
|
|
1245
|
+
"description": {
|
|
1246
|
+
"value": "Use the default slot to show a value.",
|
|
1247
|
+
"type": "text"
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"indeterminate": {
|
|
1251
|
+
"title": {
|
|
1252
|
+
"value": "Indeterminate",
|
|
1253
|
+
"type": "text"
|
|
1254
|
+
},
|
|
1255
|
+
"description": {
|
|
1256
|
+
"value": "The indeterminate attribute can be used to inform the user that the operation is pending, but its status cannot currently be determined. In this state, value is ignored and the label, if present, will not be shown.",
|
|
1257
|
+
"type": "text"
|
|
1258
|
+
}
|
|
1093
1259
|
}
|
|
1094
1260
|
},
|
|
1095
1261
|
"progress-ring": {
|
|
@@ -415,5 +415,12 @@
|
|
|
415
415
|
"font-sans-fallback": {
|
|
416
416
|
"value": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", sans-serif",
|
|
417
417
|
"type": "other"
|
|
418
|
+
},
|
|
419
|
+
"opacity": {
|
|
420
|
+
"medium": {
|
|
421
|
+
"value": "0.5",
|
|
422
|
+
"type": "opacity",
|
|
423
|
+
"description": "50%"
|
|
424
|
+
}
|
|
418
425
|
}
|
|
419
426
|
}
|