@synergy-design-system/tokens 2.1.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,17 @@
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
+
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)
9
+
10
+
11
+ ### Features
12
+
13
+ * ✨ Styles Package ([#495](https://github.com/synergy-design-system/synergy-design-system/issues/495)) ([5e7b3dc](https://github.com/synergy-design-system/synergy-design-system/commit/5e7b3dc54bc9d94060fafc8119648e9e01bd07b7))
14
+
1
15
  # [@synergy-design-system/tokens-v2.1.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.0.0...tokens/2.1.0) (2024-06-18)
2
16
 
3
17
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.0.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.0.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.0.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.0.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 07:24:50 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.0.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 07:24:50 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.1.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
  }
@@ -2340,6 +2422,38 @@
2340
2422
  }
2341
2423
  }
2342
2424
  },
2425
+ "styles": {
2426
+ "body": {
2427
+ "description": {
2428
+ "value": "Body text is used for long-form content where a paragraph or multiple lines of text are required. Body text styles are optimized for reading as a large chunk of information through line height and paragraph spacing. Inline links sit within body text styles and inherit the same font values.\nUI text is text used in UI components and uses the same text stylings.\n\nThe default font size is medium (16 px). Synergy supports three additional font sizes for body copy.\n\nIt is also possible to format the text bold or semibold for certain text passages and UI elements such as label.",
2429
+ "type": "text"
2430
+ },
2431
+ "title": {
2432
+ "value": "Body and UI text",
2433
+ "type": "text"
2434
+ }
2435
+ },
2436
+ "headings": {
2437
+ "description": {
2438
+ "value": "Heading styles come in a range of sizes, and can be used in a range of contexts, such as:\n- building page hierarchy,\n- helping users scan large chunks of text,\n- providing a title to a page or piece of content,\n-as subheadings or eyebrow headings, where there is still only one H1 tag per page (as per Accessibility requirements).\n\nOur heading styles are consistently bold, to better address the visual hierarchy.",
2439
+ "type": "text"
2440
+ },
2441
+ "title": {
2442
+ "value": "Headings",
2443
+ "type": "text"
2444
+ }
2445
+ },
2446
+ "weight": {
2447
+ "description": {
2448
+ "value": "Supported font weights",
2449
+ "type": "text"
2450
+ },
2451
+ "title": {
2452
+ "value": "Font-Weights",
2453
+ "type": "text"
2454
+ }
2455
+ }
2456
+ },
2343
2457
  "templates": {
2344
2458
  "application-shell": {
2345
2459
  "title": {
@@ -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"