@synergy-design-system/tokens 1.7.0 → 1.8.0

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@synergy-design-system/tokens-v1.8.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.7.1...tokens/1.8.0) (2024-02-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ Create syn-header ([#331](https://github.com/synergy-design-system/synergy-design-system/issues/331)) ([acde61d](https://github.com/synergy-design-system/synergy-design-system/commit/acde61d762dd4123aae553227f3af2015e824208))
7
+
8
+ # [@synergy-design-system/tokens-v1.7.1](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.7.0...tokens/1.7.1) (2024-02-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 🤔 Fix broken theme tokens and add automatic check ([#342](https://github.com/synergy-design-system/synergy-design-system/issues/342)) ([3fea98a](https://github.com/synergy-design-system/synergy-design-system/commit/3fea98a242d0994f8c3aa9be81ef38a9cd43e48e))
14
+
1
15
  # [@synergy-design-system/tokens-v1.7.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.6.0...tokens/1.7.0) (2024-02-27)
2
16
 
3
17
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.6.0
2
+ * @synergy-design-system/tokens version 1.7.1
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -429,6 +429,11 @@ export const SynInputPlaceholderColorDisabled: string;
429
429
  */
430
430
  export const SynInputRequiredContent: string;
431
431
 
432
+ /**
433
+ * Maps to the css variable `--syn-input-required-content-color`
434
+ */
435
+ export const SynInputRequiredContentColor: string;
436
+
432
437
  /**
433
438
  * Maps to the css variable `--syn-input-required-content-offset`
434
439
  */
package/dist/js/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.6.0
2
+ * @synergy-design-system/tokens version 1.7.1
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -428,6 +428,11 @@ export const SynInputPlaceholderColorDisabled = 'var(--syn-input-placeholder-col
428
428
  */
429
429
  export const SynInputRequiredContent = 'var(--syn-input-required-content)';
430
430
 
431
+ /**
432
+ * @type {string}
433
+ */
434
+ export const SynInputRequiredContentColor = 'var(--syn-input-required-content-color)';
435
+
431
436
  /**
432
437
  * @type {string}
433
438
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.6.0
2
+ * @synergy-design-system/tokens version 1.7.1
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
  $SynFontSizeXSmall: var(--syn-font-size-x-small) !default;
@@ -87,6 +87,7 @@ $SynInputIconIconClearableColorFocus: var(--syn-input-icon-icon-clearable-color-
87
87
  $SynInputPlaceholderColor: var(--syn-input-placeholder-color) !default;
88
88
  $SynInputPlaceholderColorDisabled: var(--syn-input-placeholder-color-disabled) !default;
89
89
  $SynInputRequiredContent: var(--syn-input-required-content) !default;
90
+ $SynInputRequiredContentColor: var(--syn-input-required-content-color) !default;
90
91
  $SynInputRequiredContentOffset: var(--syn-input-required-content-offset) !default;
91
92
  $SynInputLabelColor: var(--syn-input-label-color) !default;
92
93
  $SynInputLabelFontSizeSmall: var(--syn-input-label-font-size-small) !default;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.6.0
2
+ * @synergy-design-system/tokens version 1.7.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Tue, 27 Feb 2024 12:58:11 GMT
5
+ * Generated on Wed, 28 Feb 2024 13:40:21 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-dark {
@@ -72,9 +72,9 @@
72
72
  --syn-input-color-focus: var(--syn-color-neutral-950);
73
73
  --syn-input-color-disabled: var(--syn-color-neutral-950);
74
74
  --syn-input-background-color: var(--syn-color-neutral-0);
75
- --syn-input-background-color-hover: var(--syn-input-background.color);
76
- --syn-input-background-color-focus: var(--syn-input-background.color);
77
- --syn-input-background-color-disabled: var(--syn-input-background.color);
75
+ --syn-input-background-color-hover: var(--syn-input-background-color);
76
+ --syn-input-background-color-focus: var(--syn-input-background-color);
77
+ --syn-input-background-color-disabled: var(--syn-input-background-color);
78
78
  --syn-input-border-color: var(--syn-color-neutral-700);
79
79
  --syn-input-border-color-hover: var(--syn-color-neutral-950);
80
80
  --syn-input-border-color-focus: var(--syn-color-neutral-950);
@@ -93,6 +93,7 @@
93
93
  --syn-input-placeholder-color: var(--syn-color-neutral-500);
94
94
  --syn-input-placeholder-color-disabled: var(--syn-color-neutral-500);
95
95
  --syn-input-required-content: "*";
96
+ --syn-input-required-content-color: var(--syn-input-label-color);
96
97
  --syn-input-required-content-offset: -2px;
97
98
  --syn-input-label-color: var(--syn-color-neutral-950);
98
99
  --syn-input-label-font-size-small: var(--syn-font-size-small);
@@ -221,8 +222,8 @@
221
222
  /* Fallbacks from Shoelace */
222
223
  --syn-border-radius-large: 0.5rem;
223
224
  --syn-border-radius-x-large: 1rem;
224
- --syn-shadow-x-small: 0 1px 2px rgb(0 0 0 / 18%);
225
- --syn-shadow-small: 0 1px 2px rgb(0 0 0 / 24%);
225
+ --syn-shadow-x-small: 0 1px 2px rgba(0, 0, 0, 0.18);
226
+ --syn-shadow-small: 0 1px 2px rgba(0, 0, 0, 0.24);
226
227
  --syn-transition-x-slow: 1000ms;
227
228
  --syn-transition-slow: 500ms;
228
229
  --syn-transition-medium: 250ms;
@@ -241,18 +242,9 @@
241
242
  --syn-focus-ring: var(--syn-focus-ring-style) var(--syn-focus-ring-width) var(--syn-focus-ring-color);
242
243
  --syn-input-border-color-disabled: var(--syn-color-neutral-300);
243
244
  --syn-input-border-width: 1px;
244
- --syn-input-required-content-color: var(--syn-input-label-color);
245
245
  --syn-input-font-family: var(--syn-font-sans);
246
246
  --syn-input-font-weight: var(--syn-font-weight-normal);
247
247
  --syn-input-letter-spacing: var(--syn-letter-spacing-normal);
248
- --syn-input-filled-background-color: var(--syn-color-neutral-100);
249
- --syn-input-filled-background-color-hover: var(--syn-color-neutral-100);
250
- --syn-input-filled-background-color-focus: var(--syn-color-neutral-100);
251
- --syn-input-filled-background-color-disabled: var(--syn-color-neutral-100);
252
- --syn-input-filled-color: var(--syn-color-neutral-800);
253
- --syn-input-filled-color-hover: var(--syn-color-neutral-800);
254
- --syn-input-filled-color-focus: var(--syn-color-neutral-700);
255
- --syn-input-filled-color-disabled: var(--syn-color-neutral-800);
256
248
  --syn-tooltip-border-radius: var(--syn-border-radius-medium);
257
249
  --syn-tooltip-background-color: var(--syn-color-neutral-800);
258
250
  --syn-tooltip-color: var(--syn-color-neutral-0);
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.6.0
2
+ * @synergy-design-system/tokens version 1.7.1
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Tue, 27 Feb 2024 12:58:11 GMT
5
+ * Generated on Wed, 28 Feb 2024 13:40:21 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-light {
@@ -72,9 +72,9 @@
72
72
  --syn-input-color-focus: var(--syn-color-neutral-950);
73
73
  --syn-input-color-disabled: var(--syn-color-neutral-950);
74
74
  --syn-input-background-color: var(--syn-color-neutral-0);
75
- --syn-input-background-color-hover: var(--syn-input-background.color);
76
- --syn-input-background-color-focus: var(--syn-input-background.color);
77
- --syn-input-background-color-disabled: var(--syn-input-background.color);
75
+ --syn-input-background-color-hover: var(--syn-input-background-color);
76
+ --syn-input-background-color-focus: var(--syn-input-background-color);
77
+ --syn-input-background-color-disabled: var(--syn-input-background-color);
78
78
  --syn-input-border-color: var(--syn-color-neutral-700);
79
79
  --syn-input-border-color-hover: var(--syn-color-neutral-950);
80
80
  --syn-input-border-color-focus: var(--syn-color-neutral-950);
@@ -93,6 +93,7 @@
93
93
  --syn-input-placeholder-color: var(--syn-color-neutral-500);
94
94
  --syn-input-placeholder-color-disabled: var(--syn-color-neutral-500);
95
95
  --syn-input-required-content: "*";
96
+ --syn-input-required-content-color: var(--syn-input-label-color);
96
97
  --syn-input-required-content-offset: -2px;
97
98
  --syn-input-label-color: var(--syn-color-neutral-950);
98
99
  --syn-input-label-font-size-small: var(--syn-font-size-small);
@@ -221,8 +222,8 @@
221
222
  /* Fallbacks from Shoelace */
222
223
  --syn-border-radius-large: 0.5rem;
223
224
  --syn-border-radius-x-large: 1rem;
224
- --syn-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);
225
- --syn-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);
225
+ --syn-shadow-x-small: 0 1px 2px hsla(240, 3.8%, 46.1%, 0.06);
226
+ --syn-shadow-small: 0 1px 2px hsla(240, 3.8%, 46.1%, 0.12);
226
227
  --syn-transition-x-slow: 1000ms;
227
228
  --syn-transition-slow: 500ms;
228
229
  --syn-transition-medium: 250ms;
@@ -241,18 +242,9 @@
241
242
  --syn-focus-ring: var(--syn-focus-ring-style) var(--syn-focus-ring-width) var(--syn-focus-ring-color);
242
243
  --syn-input-border-color-disabled: var(--syn-color-neutral-300);
243
244
  --syn-input-border-width: 1px;
244
- --syn-input-required-content-color: var(--syn-input-label-color);
245
245
  --syn-input-font-family: var(--syn-font-sans);
246
246
  --syn-input-font-weight: var(--syn-font-weight-normal);
247
247
  --syn-input-letter-spacing: var(--syn-letter-spacing-normal);
248
- --syn-input-filled-background-color: var(--syn-color-neutral-100);
249
- --syn-input-filled-background-color-hover: var(--syn-color-neutral-100);
250
- --syn-input-filled-background-color-focus: var(--syn-color-neutral-100);
251
- --syn-input-filled-background-color-disabled: var(--syn-color-neutral-100);
252
- --syn-input-filled-color: var(--syn-color-neutral-800);
253
- --syn-input-filled-color-hover: var(--syn-color-neutral-800);
254
- --syn-input-filled-color-focus: var(--syn-color-neutral-700);
255
- --syn-input-filled-color-disabled: var(--syn-color-neutral-800);
256
248
  --syn-tooltip-border-radius: var(--syn-border-radius-medium);
257
249
  --syn-tooltip-background-color: var(--syn-color-neutral-800);
258
250
  --syn-tooltip-color: var(--syn-color-neutral-0);
package/package.json CHANGED
@@ -17,6 +17,8 @@
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.2.1",
21
+ "@synergy-design-system/stylelint-config-syn": "0.1.0",
20
22
  "@synergy-design-system/eslint-config-syn": "0.1.0"
21
23
  },
22
24
  "exports": {
@@ -99,11 +101,13 @@
99
101
  },
100
102
  "type": "module",
101
103
  "types": "./dist/js/index.d.ts",
102
- "version": "1.7.0",
104
+ "version": "1.8.0",
103
105
  "scripts": {
104
106
  "build": "pnpm clean && node scripts/build.js",
105
107
  "clean": "rimraf build",
106
- "lint": "eslint scripts",
108
+ "lint:css": "stylelint \"dist/**/*.css\"",
109
+ "lint:js": "eslint scripts",
110
+ "lint": "pnpm run /^lint:.*/",
107
111
  "format.eslint": "pnpm lint --fix",
108
112
  "start": "pnpm build",
109
113
  "release": "semantic-release --tagFormat 'tokens/${version}' -e semantic-release-monorepo",
@@ -1701,6 +1701,68 @@
1701
1701
  "type": "text"
1702
1702
  }
1703
1703
  }
1704
+ },
1705
+ "header": {
1706
+ "default": {
1707
+ "title": {
1708
+ "value": "Header",
1709
+ "type": "text"
1710
+ },
1711
+ "description": {
1712
+ "value": "The header is used to indicate the name of the app, provide important actions in a toolbar and a navigation.",
1713
+ "type": "text"
1714
+ }
1715
+ },
1716
+ "label": {
1717
+ "title": {
1718
+ "value": "Label",
1719
+ "type": "text"
1720
+ },
1721
+ "description": {
1722
+ "value": "Use the label attribute to change the app name.",
1723
+ "type": "text"
1724
+ }
1725
+ },
1726
+ "logo": {
1727
+ "title": {
1728
+ "value": "Logo",
1729
+ "type": "text"
1730
+ },
1731
+ "description": {
1732
+ "value": "Use the logo slot to change the app logo. Usually this is only needed in whitelabel solutions, when the SICK branding explicitly has to be hidden.",
1733
+ "type": "text"
1734
+ }
1735
+ },
1736
+ "focus": {
1737
+ "title": {
1738
+ "value": "Focus",
1739
+ "type": "text"
1740
+ },
1741
+ "description": {
1742
+ "value": "The focus event gives the user feedback that a link in the logo has been focused by the keyboard interaction and that the link is ready to be navigated to.",
1743
+ "type": "text"
1744
+ }
1745
+ },
1746
+ "options": {
1747
+ "title": {
1748
+ "value": "Meta Navigation",
1749
+ "type": "text"
1750
+ },
1751
+ "description": {
1752
+ "value": "Use the Meta Navigation slot to add additional functionalities to your application. Please be aware of the guidelines regarding the order of icons in the toolbar.\nImportant: The Options Menu doesn’t handle any responsive behaviour, e. g. if there is not enough space for all items in different screen sizes. You have to make sure yourself, that your app works correctly and e. g. move elements into the footer of the side navigation or inside a “more” button in the Options Menu.",
1753
+ "type": "text"
1754
+ }
1755
+ },
1756
+ "navigation": {
1757
+ "title": {
1758
+ "value": "Top Navigation",
1759
+ "type": "text"
1760
+ },
1761
+ "description": {
1762
+ "value": "Use the top navigation slot to add syn-navigation and horizontal syn-navigation-items.",
1763
+ "type": "text"
1764
+ }
1765
+ }
1704
1766
  }
1705
1767
  },
1706
1768
  "frameworks": {
@@ -1993,4 +2055,4 @@
1993
2055
  }
1994
2056
  }
1995
2057
  }
1996
- }
2058
+ }
@@ -110,18 +110,20 @@
110
110
  "type": "color"
111
111
  }
112
112
  },
113
- "required-content": {
114
- "value": "*",
115
- "type": "text",
116
- "color": {
113
+ "required": {
114
+ "content": {
115
+ "value": "*",
116
+ "type": "text"
117
+ },
118
+ "content-color": {
117
119
  "value": "{input.label.color}",
118
120
  "type": "color"
121
+ },
122
+ "content-offset": {
123
+ "value": "-2px",
124
+ "type": "spacing"
119
125
  }
120
126
  },
121
- "required-content-offset": {
122
- "value": "-2px",
123
- "type": "spacing"
124
- },
125
127
  "label": {
126
128
  "color": {
127
129
  "value": "{neutral.950}",
@@ -263,4 +265,4 @@
263
265
  }
264
266
  }
265
267
  }
266
- }
268
+ }