@synergy-design-system/tokens 1.6.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 +7 -0
- package/dist/js/index.d.ts +9 -14
- package/dist/js/index.js +5 -10
- package/dist/scss/_tokens.scss +5 -6
- package/dist/themes/dark.css +6 -11
- package/dist/themes/light.css +6 -11
- package/package.json +1 -1
- package/src/figma-tokens/_docs.json +102 -0
- package/src/figma-tokens/semantic/overlays.json +8 -8
- package/src/figma-tokens/semantic/panels.json +17 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
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)
|
|
2
9
|
|
|
3
10
|
|
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.6.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -585,29 +585,24 @@ export const SynInputFontSizeMedium: string;
|
|
|
585
585
|
export const SynInputFontSizeLarge: string;
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
|
-
* Maps to the css variable `--syn-overlay-color`
|
|
588
|
+
* Maps to the css variable `--syn-overlay-background-color`
|
|
589
589
|
*/
|
|
590
|
-
export const
|
|
590
|
+
export const SynOverlayBackgroundColor: string;
|
|
591
591
|
|
|
592
592
|
/**
|
|
593
|
-
* Maps to the css variable `--syn-
|
|
593
|
+
* Maps to the css variable `--syn-panel-background-color`
|
|
594
594
|
*/
|
|
595
|
-
export const
|
|
595
|
+
export const SynPanelBackgroundColor: string;
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
|
-
* Maps to the css variable `--syn-
|
|
598
|
+
* Maps to the css variable `--syn-panel-border-color`
|
|
599
599
|
*/
|
|
600
|
-
export const
|
|
600
|
+
export const SynPanelBorderColor: string;
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
|
-
* Maps to the css variable `--syn-border-
|
|
603
|
+
* Maps to the css variable `--syn-panel-border-width`
|
|
604
604
|
*/
|
|
605
|
-
export const
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* Maps to the css variable `--syn-panel-border`
|
|
609
|
-
*/
|
|
610
|
-
export const SynPanelBorder: string;
|
|
605
|
+
export const SynPanelBorderWidth: string;
|
|
611
606
|
|
|
612
607
|
/**
|
|
613
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.
|
|
2
|
+
* @synergy-design-system/tokens version 1.6.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -586,27 +586,22 @@ export const SynInputFontSizeLarge = 'var(--syn-input-font-size-large)';
|
|
|
586
586
|
/**
|
|
587
587
|
* @type {string}
|
|
588
588
|
*/
|
|
589
|
-
export const
|
|
589
|
+
export const SynOverlayBackgroundColor = 'var(--syn-overlay-background-color)';
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* @type {string}
|
|
593
593
|
*/
|
|
594
|
-
export const
|
|
594
|
+
export const SynPanelBackgroundColor = 'var(--syn-panel-background-color)';
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
597
|
* @type {string}
|
|
598
598
|
*/
|
|
599
|
-
export const
|
|
599
|
+
export const SynPanelBorderColor = 'var(--syn-panel-border-color)';
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
602
|
* @type {string}
|
|
603
603
|
*/
|
|
604
|
-
export const
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
* @type {string}
|
|
608
|
-
*/
|
|
609
|
-
export const SynPanelBorder = 'var(--syn-panel-border)';
|
|
604
|
+
export const SynPanelBorderWidth = 'var(--syn-panel-border-width)';
|
|
610
605
|
|
|
611
606
|
/**
|
|
612
607
|
* @type {string}
|
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.6.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
$SynFontSizeXSmall: var(--syn-font-size-x-small) !default;
|
|
@@ -118,11 +118,10 @@ $SynInputReadonlyColorFocus: var(--syn-input-readonly-color-focus) !default;
|
|
|
118
118
|
$SynInputFontSizeSmall: var(--syn-input-font-size-small) !default;
|
|
119
119
|
$SynInputFontSizeMedium: var(--syn-input-font-size-medium) !default;
|
|
120
120
|
$SynInputFontSizeLarge: var(--syn-input-font-size-large) !default;
|
|
121
|
-
$
|
|
122
|
-
$
|
|
123
|
-
$
|
|
124
|
-
$
|
|
125
|
-
$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;
|
|
126
125
|
$SynToggleSizeSmall: var(--syn-toggle-size-small) !default;
|
|
127
126
|
$SynToggleSizeMedium: var(--syn-toggle-size-medium) !default;
|
|
128
127
|
$SynToggleSizeLarge: var(--syn-toggle-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.6.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Tue, 27 Feb 2024 12:58:11 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root, .syn-theme-dark {
|
|
@@ -124,11 +124,10 @@
|
|
|
124
124
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
125
125
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
126
126
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
127
|
-
--syn-overlay-color:
|
|
128
|
-
--syn-
|
|
129
|
-
--syn-
|
|
130
|
-
--syn-border-
|
|
131
|
-
--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);
|
|
132
131
|
--syn-toggle-size-small: 14px;
|
|
133
132
|
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
134
133
|
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
@@ -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);
|
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.6.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Tue, 27 Feb 2024 12:58:11 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root, .syn-theme-light {
|
|
@@ -124,11 +124,10 @@
|
|
|
124
124
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
125
125
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
126
126
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
127
|
-
--syn-overlay-color:
|
|
128
|
-
--syn-
|
|
129
|
-
--syn-
|
|
130
|
-
--syn-border-
|
|
131
|
-
--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);
|
|
132
131
|
--syn-toggle-size-small: 14px;
|
|
133
132
|
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
134
133
|
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
@@ -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
|
@@ -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": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"overlay
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
}
|