@synergy-design-system/tokens 1.5.0 → 1.7.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.7.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.6.0...tokens/1.7.0) (2024-02-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ syn-drawer ([#320](https://github.com/synergy-design-system/synergy-design-system/issues/320)) ([ce20a42](https://github.com/synergy-design-system/synergy-design-system/commit/ce20a42f9f90eb5b38c0ae84f99d4a8db2e08613))
7
+
8
+ # [@synergy-design-system/tokens-v1.6.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.5.0...tokens/1.6.0) (2024-02-26)
9
+
10
+
11
+ ### Features
12
+
13
+ * ✨ added tokens for roundings ([#338](https://github.com/synergy-design-system/synergy-design-system/issues/338)) ([48e01cb](https://github.com/synergy-design-system/synergy-design-system/commit/48e01cbe074726a5bd2abf67fce7bd8d784f1c47))
14
+
1
15
  # [@synergy-design-system/tokens-v1.5.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/1.4.0...tokens/1.5.0) (2024-02-22)
2
16
 
3
17
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.4.0
2
+ * @synergy-design-system/tokens version 1.6.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -224,6 +224,16 @@ export const SynBorderRadiusPill: string;
224
224
  */
225
225
  export const SynBorderRadiusCircle: string;
226
226
 
227
+ /**
228
+ * Maps to the css variable `--syn-border-radius-small`
229
+ */
230
+ export const SynBorderRadiusSmall: string;
231
+
232
+ /**
233
+ * Maps to the css variable `--syn-border-radius-medium`
234
+ */
235
+ export const SynBorderRadiusMedium: string;
236
+
227
237
  /**
228
238
  * Maps to the css variable `--syn-dimension-base`
229
239
  */
@@ -575,29 +585,24 @@ export const SynInputFontSizeMedium: string;
575
585
  export const SynInputFontSizeLarge: string;
576
586
 
577
587
  /**
578
- * Maps to the css variable `--syn-overlay-color`
579
- */
580
- export const SynOverlayColor: string;
581
-
582
- /**
583
- * Maps to the css variable `--syn-overlay-opacity`
588
+ * Maps to the css variable `--syn-overlay-background-color`
584
589
  */
585
- export const SynOverlayOpacity: string;
590
+ export const SynOverlayBackgroundColor: string;
586
591
 
587
592
  /**
588
- * Maps to the css variable `--syn-background-color`
593
+ * Maps to the css variable `--syn-panel-background-color`
589
594
  */
590
- export const SynBackgroundColor: string;
595
+ export const SynPanelBackgroundColor: string;
591
596
 
592
597
  /**
593
- * Maps to the css variable `--syn-border-color`
598
+ * Maps to the css variable `--syn-panel-border-color`
594
599
  */
595
- export const SynBorderColor: string;
600
+ export const SynPanelBorderColor: string;
596
601
 
597
602
  /**
598
- * Maps to the css variable `--syn-panel-border`
603
+ * Maps to the css variable `--syn-panel-border-width`
599
604
  */
600
- export const SynPanelBorder: string;
605
+ export const SynPanelBorderWidth: string;
601
606
 
602
607
  /**
603
608
  * Maps to the css variable `--syn-toggle-size-small`
package/dist/js/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.4.0
2
+ * @synergy-design-system/tokens version 1.6.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -223,6 +223,16 @@ export const SynBorderRadiusPill = 'var(--syn-border-radius-pill)';
223
223
  */
224
224
  export const SynBorderRadiusCircle = 'var(--syn-border-radius-circle)';
225
225
 
226
+ /**
227
+ * @type {string}
228
+ */
229
+ export const SynBorderRadiusSmall = 'var(--syn-border-radius-small)';
230
+
231
+ /**
232
+ * @type {string}
233
+ */
234
+ export const SynBorderRadiusMedium = 'var(--syn-border-radius-medium)';
235
+
226
236
  /**
227
237
  * @type {string}
228
238
  */
@@ -576,27 +586,22 @@ export const SynInputFontSizeLarge = 'var(--syn-input-font-size-large)';
576
586
  /**
577
587
  * @type {string}
578
588
  */
579
- export const SynOverlayColor = 'var(--syn-overlay-color)';
580
-
581
- /**
582
- * @type {string}
583
- */
584
- export const SynOverlayOpacity = 'var(--syn-overlay-opacity)';
589
+ export const SynOverlayBackgroundColor = 'var(--syn-overlay-background-color)';
585
590
 
586
591
  /**
587
592
  * @type {string}
588
593
  */
589
- export const SynBackgroundColor = 'var(--syn-background-color)';
594
+ export const SynPanelBackgroundColor = 'var(--syn-panel-background-color)';
590
595
 
591
596
  /**
592
597
  * @type {string}
593
598
  */
594
- export const SynBorderColor = 'var(--syn-border-color)';
599
+ export const SynPanelBorderColor = 'var(--syn-panel-border-color)';
595
600
 
596
601
  /**
597
602
  * @type {string}
598
603
  */
599
- export const SynPanelBorder = 'var(--syn-panel-border)';
604
+ export const SynPanelBorderWidth = 'var(--syn-panel-border-width)';
600
605
 
601
606
  /**
602
607
  * @type {string}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.4.0
2
+ * @synergy-design-system/tokens version 1.6.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
  $SynFontSizeXSmall: var(--syn-font-size-x-small) !default;
@@ -46,6 +46,8 @@ $SynSpacing5xLarge: var(--syn-spacing-5x-large) !default;
46
46
  $SynBorderRadiusNone: var(--syn-border-radius-none) !default;
47
47
  $SynBorderRadiusPill: var(--syn-border-radius-pill) !default;
48
48
  $SynBorderRadiusCircle: var(--syn-border-radius-circle) !default;
49
+ $SynBorderRadiusSmall: var(--syn-border-radius-small) !default;
50
+ $SynBorderRadiusMedium: var(--syn-border-radius-medium) !default;
49
51
  $SynDimensionBase: var(--syn-dimension-base) !default;
50
52
  $SynBorderWidthNone: var(--syn-border-width-none) !default;
51
53
  $SynBorderWidthSmall: var(--syn-border-width-small) !default;
@@ -116,11 +118,10 @@ $SynInputReadonlyColorFocus: var(--syn-input-readonly-color-focus) !default;
116
118
  $SynInputFontSizeSmall: var(--syn-input-font-size-small) !default;
117
119
  $SynInputFontSizeMedium: var(--syn-input-font-size-medium) !default;
118
120
  $SynInputFontSizeLarge: var(--syn-input-font-size-large) !default;
119
- $SynOverlayColor: var(--syn-overlay-color) !default;
120
- $SynOverlayOpacity: var(--syn-overlay-opacity) !default;
121
- $SynBackgroundColor: var(--syn-background-color) !default;
122
- $SynBorderColor: var(--syn-border-color) !default;
123
- $SynPanelBorder: var(--syn-panel-border) !default;
121
+ $SynOverlayBackgroundColor: var(--syn-overlay-background-color) !default;
122
+ $SynPanelBackgroundColor: var(--syn-panel-background-color) !default;
123
+ $SynPanelBorderColor: var(--syn-panel-border-color) !default;
124
+ $SynPanelBorderWidth: var(--syn-panel-border-width) !default;
124
125
  $SynToggleSizeSmall: var(--syn-toggle-size-small) !default;
125
126
  $SynToggleSizeMedium: var(--syn-toggle-size-medium) !default;
126
127
  $SynToggleSizeLarge: var(--syn-toggle-size-large) !default;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.4.0
2
+ * @synergy-design-system/tokens version 1.6.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Thu, 22 Feb 2024 07:08:20 GMT
5
+ * Generated on Tue, 27 Feb 2024 12:58:11 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-dark {
@@ -52,6 +52,8 @@
52
52
  --syn-border-radius-none: 0px;
53
53
  --syn-border-radius-pill: 9999px;
54
54
  --syn-border-radius-circle: 9999px;
55
+ --syn-border-radius-small: 4px;
56
+ --syn-border-radius-medium: 8px;
55
57
  --syn-dimension-base: 4px;
56
58
  --syn-border-width-none: 0px; /* None */
57
59
  --syn-border-width-small: 1px; /* Small */
@@ -122,11 +124,10 @@
122
124
  --syn-input-font-size-small: var(--syn-font-size-small);
123
125
  --syn-input-font-size-medium: var(--syn-font-size-medium);
124
126
  --syn-input-font-size-large: var(--syn-font-size-large);
125
- --syn-overlay-color: var(--syn-color-neutral-1000);
126
- --syn-overlay-opacity: 0.4;
127
- --syn-background-color: var(--syn-color-neutral-0);
128
- --syn-border-color: var(--syn-color-neutral-300);
129
- --syn-panel-border: var(--syn-border-width-small);
127
+ --syn-overlay-background-color: rgba(0, 0, 0, 0.4);
128
+ --syn-panel-background-color: var(--syn-color-neutral-0);
129
+ --syn-panel-border-color: var(--syn-color-neutral-300);
130
+ --syn-panel-border-width: var(--syn-border-width-small);
130
131
  --syn-toggle-size-small: 14px;
131
132
  --syn-toggle-size-medium: var(--syn-spacing-medium);
132
133
  --syn-toggle-size-large: var(--syn-spacing-large);
@@ -218,8 +219,6 @@
218
219
  --syn-color-neutral-1000: white;
219
220
 
220
221
  /* Fallbacks from Shoelace */
221
- --syn-border-radius-small: 0.1875rem;
222
- --syn-border-radius-medium: 0.25rem;
223
222
  --syn-border-radius-large: 0.5rem;
224
223
  --syn-border-radius-x-large: 1rem;
225
224
  --syn-shadow-x-small: 0 1px 2px rgb(0 0 0 / 18%);
@@ -254,10 +253,6 @@
254
253
  --syn-input-filled-color-hover: var(--syn-color-neutral-800);
255
254
  --syn-input-filled-color-focus: var(--syn-color-neutral-700);
256
255
  --syn-input-filled-color-disabled: var(--syn-color-neutral-800);
257
- --syn-overlay-background-color: hsl(0 0% 0% / 43%);
258
- --syn-panel-background-color: var(--syn-color-neutral-0);
259
- --syn-panel-border-color: var(--syn-color-neutral-300);
260
- --syn-panel-border-width: 1px;
261
256
  --syn-tooltip-border-radius: var(--syn-border-radius-medium);
262
257
  --syn-tooltip-background-color: var(--syn-color-neutral-800);
263
258
  --syn-tooltip-color: var(--syn-color-neutral-0);
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 1.4.0
2
+ * @synergy-design-system/tokens version 1.6.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Thu, 22 Feb 2024 07:08:20 GMT
5
+ * Generated on Tue, 27 Feb 2024 12:58:11 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-light {
@@ -52,6 +52,8 @@
52
52
  --syn-border-radius-none: 0px;
53
53
  --syn-border-radius-pill: 9999px;
54
54
  --syn-border-radius-circle: 9999px;
55
+ --syn-border-radius-small: 4px;
56
+ --syn-border-radius-medium: 8px;
55
57
  --syn-dimension-base: 4px;
56
58
  --syn-border-width-none: 0px; /* None */
57
59
  --syn-border-width-small: 1px; /* Small */
@@ -122,11 +124,10 @@
122
124
  --syn-input-font-size-small: var(--syn-font-size-small);
123
125
  --syn-input-font-size-medium: var(--syn-font-size-medium);
124
126
  --syn-input-font-size-large: var(--syn-font-size-large);
125
- --syn-overlay-color: var(--syn-color-neutral-1000);
126
- --syn-overlay-opacity: 0.4;
127
- --syn-background-color: var(--syn-color-neutral-0);
128
- --syn-border-color: var(--syn-color-neutral-300);
129
- --syn-panel-border: var(--syn-border-width-small);
127
+ --syn-overlay-background-color: rgba(0, 0, 0, 0.4);
128
+ --syn-panel-background-color: var(--syn-color-neutral-0);
129
+ --syn-panel-border-color: var(--syn-color-neutral-300);
130
+ --syn-panel-border-width: var(--syn-border-width-small);
130
131
  --syn-toggle-size-small: 14px;
131
132
  --syn-toggle-size-medium: var(--syn-spacing-medium);
132
133
  --syn-toggle-size-large: var(--syn-spacing-large);
@@ -218,8 +219,6 @@
218
219
  --syn-color-neutral-1000: black;
219
220
 
220
221
  /* Fallbacks from Shoelace */
221
- --syn-border-radius-small: 0.1875rem;
222
- --syn-border-radius-medium: 0.25rem;
223
222
  --syn-border-radius-large: 0.5rem;
224
223
  --syn-border-radius-x-large: 1rem;
225
224
  --syn-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 6%);
@@ -254,10 +253,6 @@
254
253
  --syn-input-filled-color-hover: var(--syn-color-neutral-800);
255
254
  --syn-input-filled-color-focus: var(--syn-color-neutral-700);
256
255
  --syn-input-filled-color-disabled: var(--syn-color-neutral-800);
257
- --syn-overlay-background-color: hsl(240 3.8% 46.1% / 33%);
258
- --syn-panel-background-color: var(--syn-color-neutral-0);
259
- --syn-panel-border-color: var(--syn-color-neutral-300);
260
- --syn-panel-border-width: 1px;
261
256
  --syn-tooltip-border-radius: var(--syn-border-radius-medium);
262
257
  --syn-tooltip-background-color: var(--syn-color-neutral-800);
263
258
  --syn-tooltip-color: var(--syn-color-neutral-0);
package/package.json CHANGED
@@ -99,7 +99,7 @@
99
99
  },
100
100
  "type": "module",
101
101
  "types": "./dist/js/index.d.ts",
102
- "version": "1.5.0",
102
+ "version": "1.7.0",
103
103
  "scripts": {
104
104
  "build": "pnpm clean && node scripts/build.js",
105
105
  "clean": "rimraf build",
@@ -296,7 +296,6 @@
296
296
  "input.filled.color-disabled": "S:50d5ea5eca1de474be32aa6343b7643c5cc40049,",
297
297
  "input.filled.color-hover": "S:5eefc6417572b45a2142265f8686ce798ac04e80,",
298
298
  "input.filled.color-focus": "S:bc4ba1f6b31a61949d3c4186b243633dba518ae6,"
299
-
300
299
  },
301
300
  "selectedTokenSets": {
302
301
  "globals": "source",
@@ -1599,6 +1599,108 @@
1599
1599
  "type": "text"
1600
1600
  }
1601
1601
  }
1602
+ },
1603
+ "nav-item": {
1604
+ "default": {
1605
+ "title": {
1606
+ "value": "Navigation Item",
1607
+ "type": "text"
1608
+ },
1609
+ "description": {
1610
+ "value": "The navigation item is used to trigger page switches.",
1611
+ "type": "text"
1612
+ }
1613
+ },
1614
+ "labels": {
1615
+ "title": {
1616
+ "value": "Labels",
1617
+ "type": "text"
1618
+ },
1619
+ "description": {
1620
+ "value": "Use the label attribute to change the content of a navigtion item.",
1621
+ "type": "text"
1622
+ }
1623
+ },
1624
+ "current": {
1625
+ "title": {
1626
+ "value": "Current",
1627
+ "type": "text"
1628
+ },
1629
+ "description": {
1630
+ "value": "Use the prefix and suffix slots to add. If available the prefix slot will be shown in the rail navigation.",
1631
+ "type": "text"
1632
+ }
1633
+ },
1634
+ "focus": {
1635
+ "title": {
1636
+ "value": "Focus",
1637
+ "type": "text"
1638
+ },
1639
+ "description": {
1640
+ "value": "Use the prefix and suffix slots to add. If available the prefix slot will be shown in the rail navigation.",
1641
+ "type": "text"
1642
+ }
1643
+ },
1644
+ "nav-horizontal": {
1645
+ "title": {
1646
+ "value": "Horizontal Navigation",
1647
+ "type": "text"
1648
+ },
1649
+ "description": {
1650
+ "value": "Use the horizontal attribute to indicate that an element is used in a horizontal navigation.
(The example shows it in combination with the current attribute, to indicate the difference.)",
1651
+ "type": "text"
1652
+ }
1653
+ },
1654
+ "prefix-suffix": {
1655
+ "title": {
1656
+ "value": "Prefix and suffix Slot",
1657
+ "type": "text"
1658
+ },
1659
+ "description": {
1660
+ "value": "Use the prefix and suffix slots to add e. g. icons or tags. If available the prefix slot will be shown in the rail navigation.",
1661
+ "type": "text"
1662
+ }
1663
+ },
1664
+ "children": {
1665
+ "title": {
1666
+ "value": "Children closed / open (vertical only)",
1667
+ "type": "text"
1668
+ },
1669
+ "description": {
1670
+ "value": "Use the *children attribute to indicate that show a chevron. In development this will be handled automatically as soon as an element has children.:",
1671
+ "type": "text"
1672
+ }
1673
+ },
1674
+ "divider": {
1675
+ "title": {
1676
+ "value": "Divider",
1677
+ "type": "text"
1678
+ },
1679
+ "description": {
1680
+ "value": "Use the divider attribute to add a border at the top. This should be used for first level elements in vertical navigations.",
1681
+ "type": "text"
1682
+ }
1683
+ },
1684
+ "indentation": {
1685
+ "title": {
1686
+ "value": "Indentation",
1687
+ "type": "text"
1688
+ },
1689
+ "description": {
1690
+ "value": "Vertical navigation elements can be indented to indicate deeper navigation levels.",
1691
+ "type": "text"
1692
+ }
1693
+ },
1694
+ "disabled": {
1695
+ "title": {
1696
+ "value": "Disabled",
1697
+ "type": "text"
1698
+ },
1699
+ "description": {
1700
+ "value": "Use the disabled attribute to disable a navigation-item.",
1701
+ "type": "text"
1702
+ }
1703
+ }
1602
1704
  }
1603
1705
  },
1604
1706
  "frameworks": {
@@ -369,6 +369,14 @@
369
369
  "circle": {
370
370
  "value": "9999px",
371
371
  "type": "borderRadius"
372
+ },
373
+ "small": {
374
+ "value": "4px",
375
+ "type": "borderRadius"
376
+ },
377
+ "medium": {
378
+ "value": "8px",
379
+ "type": "borderRadius"
372
380
  }
373
381
  },
374
382
  "dimension": {
@@ -1,10 +1,10 @@
1
1
  {
2
- "overlay-color": {
3
- "value": "{neutral.1000}",
4
- "type": "color"
5
- },
6
- "overlay-opacity": {
7
- "value": "40%",
8
- "type": "opacity"
2
+ "overlay": {
3
+ "background": {
4
+ "color": {
5
+ "value": "rgba(0, 0, 0, 0.4)",
6
+ "type": "color"
7
+ }
8
+ }
9
9
  }
10
- }
10
+ }
@@ -1,14 +1,20 @@
1
1
  {
2
- "background-color": {
3
- "value": "{neutral.0}",
4
- "type": "color"
5
- },
6
- "border-color": {
7
- "value": "{neutral.300}",
8
- "type": "color"
9
- },
10
- "panel-border": {
11
- "value": "{border-width.small}",
12
- "type": "borderWidth"
2
+ "panel": {
3
+ "background": {
4
+ "color": {
5
+ "value": "{neutral.0}",
6
+ "type": "color"
7
+ }
8
+ },
9
+ "border": {
10
+ "color": {
11
+ "value": "{neutral.300}",
12
+ "type": "color"
13
+ },
14
+ "width": {
15
+ "value": "{border-width.small}",
16
+ "type": "borderWidth"
17
+ }
18
+ }
13
19
  }
14
20
  }