@synergy-design-system/tokens 2.2.0 → 2.3.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,10 @@
1
+ # [@synergy-design-system/tokens-v2.3.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.2.0...tokens/2.3.0) (2024-06-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ syn-details ([#468](https://github.com/synergy-design-system/synergy-design-system/issues/468)) ([e064922](https://github.com/synergy-design-system/synergy-design-system/commit/e064922ef435f3173db12548375e6032d281421a))
7
+
1
8
  # [@synergy-design-system/tokens-v2.2.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.1.0...tokens/2.2.0) (2024-06-18)
2
9
 
3
10
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.1.0
2
+ * @synergy-design-system/tokens version 2.2.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -179,6 +179,11 @@ export const SynSpacingSmall: string;
179
179
  */
180
180
  export const SynSpacingMedium: string;
181
181
 
182
+ /**
183
+ * Maps to the css variable `--syn-spacing-medium-large`
184
+ */
185
+ export const SynSpacingMediumLarge: string;
186
+
182
187
  /**
183
188
  * Maps to the css variable `--syn-spacing-large`
184
189
  */
package/dist/js/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.1.0
2
+ * @synergy-design-system/tokens version 2.2.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -178,6 +178,11 @@ export const SynSpacingSmall = 'var(--syn-spacing-small)';
178
178
  */
179
179
  export const SynSpacingMedium = 'var(--syn-spacing-medium)';
180
180
 
181
+ /**
182
+ * @type {string}
183
+ */
184
+ export const SynSpacingMediumLarge = 'var(--syn-spacing-medium-large)';
185
+
181
186
  /**
182
187
  * @type {string}
183
188
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.1.0
2
+ * @synergy-design-system/tokens version 2.2.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
  $SynFontSizeXSmall: var(--syn-font-size-x-small) !default;
@@ -37,6 +37,7 @@ $SynSpacing2xSmall: var(--syn-spacing-2x-small) !default;
37
37
  $SynSpacingXSmall: var(--syn-spacing-x-small) !default;
38
38
  $SynSpacingSmall: var(--syn-spacing-small) !default;
39
39
  $SynSpacingMedium: var(--syn-spacing-medium) !default;
40
+ $SynSpacingMediumLarge: var(--syn-spacing-medium-large) !default;
40
41
  $SynSpacingLarge: var(--syn-spacing-large) !default;
41
42
  $SynSpacingXLarge: var(--syn-spacing-x-large) !default;
42
43
  $SynSpacing2xLarge: var(--syn-spacing-2x-large) !default;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.1.0
2
+ * @synergy-design-system/tokens version 2.2.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Tue, 18 Jun 2024 14:30:01 GMT
5
+ * Generated on Fri, 21 Jun 2024 08:14:11 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-dark {
@@ -43,6 +43,7 @@
43
43
  --syn-spacing-x-small: calc(4px * 2);
44
44
  --syn-spacing-small: calc(4px * 3);
45
45
  --syn-spacing-medium: calc(4px * 4);
46
+ --syn-spacing-medium-large: calc(4px * 5);
46
47
  --syn-spacing-large: calc(4px * 6);
47
48
  --syn-spacing-x-large: calc(4px * 8);
48
49
  --syn-spacing-2x-large: calc(4px * 12);
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.1.0
2
+ * @synergy-design-system/tokens version 2.2.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly
5
- * Generated on Tue, 18 Jun 2024 14:30:01 GMT
5
+ * Generated on Fri, 21 Jun 2024 08:14:11 GMT
6
6
  */
7
7
 
8
8
  :root, .syn-theme-light {
@@ -43,6 +43,7 @@
43
43
  --syn-spacing-x-small: calc(4px * 2);
44
44
  --syn-spacing-small: calc(4px * 3);
45
45
  --syn-spacing-medium: calc(4px * 4);
46
+ --syn-spacing-medium-large: calc(4px * 5);
46
47
  --syn-spacing-large: calc(4px * 6);
47
48
  --syn-spacing-x-large: calc(4px * 8);
48
49
  --syn-spacing-2x-large: calc(4px * 12);
package/package.json CHANGED
@@ -101,7 +101,7 @@
101
101
  },
102
102
  "type": "module",
103
103
  "types": "./dist/js/index.d.ts",
104
- "version": "2.2.0",
104
+ "version": "2.3.0",
105
105
  "scripts": {
106
106
  "build": "pnpm clean && node scripts/build.js",
107
107
  "clean": "rimraf build",
@@ -1,5 +1,67 @@
1
1
  {
2
2
  "components": {
3
+ "accordion": {
4
+ "default": {
5
+ "title": {
6
+ "value": "Accordion",
7
+ "type": "text"
8
+ },
9
+ "description": {
10
+ "value": "Accordion is a group of syn-details to show a brief summary and expand to show additional content.",
11
+ "type": "text"
12
+ }
13
+ },
14
+ "disabled": {
15
+ "title": {
16
+ "value": "Disabled",
17
+ "type": "text"
18
+ },
19
+ "description": {
20
+ "value": "Use the disable attribute to prevent the details from expanding.",
21
+ "type": "text"
22
+ }
23
+ },
24
+ "size": {
25
+ "title": {
26
+ "value": "Sizes",
27
+ "type": "text"
28
+ },
29
+ "description": {
30
+ "value": "Use the size attribute to change a detail’s size. The size attribute should not be mixed within an accordion",
31
+ "type": "text"
32
+ }
33
+ },
34
+ "grouping": {
35
+ "title": {
36
+ "value": "Grouping Details",
37
+ "type": "text"
38
+ },
39
+ "description": {
40
+ "value": "Set the `close-others` property to true to ensure only one detail is open at a time.",
41
+ "type": "text"
42
+ }
43
+ },
44
+ "contained": {
45
+ "title": {
46
+ "value": "Contained",
47
+ "type": "text"
48
+ },
49
+ "description": {
50
+ "value": "To give content more structure, you can use the property contained.",
51
+ "type": "text"
52
+ }
53
+ },
54
+ "focus": {
55
+ "title": {
56
+ "value": "Focus",
57
+ "type": "text"
58
+ },
59
+ "description": {
60
+ "value": "The focus event gives the user feedback that the detail has been focused by the keyboard interaction.",
61
+ "type": "text"
62
+ }
63
+ }
64
+ },
3
65
  "alert": {
4
66
  "default": {
5
67
  "description": {
@@ -537,7 +599,7 @@
537
599
  "details": {
538
600
  "default": {
539
601
  "description": {
540
- "value": "Details show a brief summary and expand to show additional content.",
602
+ "value": "Details show a brief summary and expand to show additional content. If you want to group the details, we recommend that you use the syn-accordion component.",
541
603
  "type": "text"
542
604
  },
543
605
  "title": {
@@ -555,33 +617,53 @@
555
617
  "type": "text"
556
618
  }
557
619
  },
558
- "summary-icon": {
620
+ "size": {
559
621
  "title": {
560
- "value": "Customizing the Summary Icon",
622
+ "value": "Sizes",
561
623
  "type": "text"
562
624
  },
563
625
  "description": {
564
- "value": "Use the expand-icon and collapse-icon slots to change the expand and collapse icons, respectively. To disable the animation, override the rotate property on the summary-icon part as shown below.",
626
+ "value": "Use the size attribute to change a detail’s size.",
565
627
  "type": "text"
566
628
  }
567
629
  },
568
- "grouping": {
630
+ "open": {
569
631
  "title": {
570
- "value": "Grouping Details",
632
+ "value": "Open",
571
633
  "type": "text"
572
634
  },
573
635
  "description": {
574
- "value": "Details are designed to function independently, but you can simulate a group or “accordion” where only one is shown at a time by listening for the syn-show event.",
636
+ "value": "Details show a brief summary and expand to show additional content.",
575
637
  "type": "text"
576
638
  }
577
639
  },
578
- "size": {
640
+ "focus": {
579
641
  "title": {
580
- "value": "Sizes",
642
+ "value": "Focus",
581
643
  "type": "text"
582
644
  },
583
645
  "description": {
584
- "value": "Use the size attribute to change a detail’s size.",
646
+ "value": "The focus event gives the user feedback that the detail has been focused by the keyboard interaction.",
647
+ "type": "text"
648
+ }
649
+ },
650
+ "contained": {
651
+ "title": {
652
+ "value": "Contained",
653
+ "type": "text"
654
+ },
655
+ "description": {
656
+ "value": "To give content more structure, you can use the property contained.",
657
+ "type": "text"
658
+ }
659
+ },
660
+ "icon": {
661
+ "title": {
662
+ "value": "Prefix Icons",
663
+ "type": "text"
664
+ },
665
+ "description": {
666
+ "value": "Use the prefix Icon to prepend an icon to the details.",
585
667
  "type": "text"
586
668
  }
587
669
  }
@@ -2371,7 +2453,7 @@
2371
2453
  "type": "text"
2372
2454
  }
2373
2455
  }
2374
- },
2456
+ },
2375
2457
  "templates": {
2376
2458
  "application-shell": {
2377
2459
  "title": {
@@ -3023,4 +3105,4 @@
3023
3105
  }
3024
3106
  }
3025
3107
  }
3026
- }
3108
+ }
@@ -332,6 +332,10 @@
332
332
  "value": "{dimension.base}*4",
333
333
  "type": "spacing"
334
334
  },
335
+ "medium-large": {
336
+ "value": "{dimension.base}*5",
337
+ "type": "spacing"
338
+ },
335
339
  "large": {
336
340
  "value": "{dimension.base}*6",
337
341
  "type": "spacing"