@swisspost/design-system-tokens 10.0.0-next.45 → 10.0.0-next.47

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,5 +1,13 @@
1
1
  # @swisspost/design-system-tokens
2
2
 
3
+ ## 10.0.0-next.47
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated tokens package to use TypeScript. (by [@myrta2302](https://github.com/myrta2302) with [#5557](https://github.com/swisspost/design-system/pull/5557))
8
+
9
+ ## 10.0.0-next.46
10
+
3
11
  ## 10.0.0-next.45
4
12
 
5
13
  ### Patch Changes
package/_channel.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-edk: (
7
7
  keep: undefined,
package/_components.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-accordion: (
7
7
  post-accordion-header-padding-block-closed: var(--post-device-spacing-padding-19),
@@ -220,6 +220,7 @@ $post-cards: (
220
220
  post-card-enabled-bg2: var(--post-theme-color-palettes-default-bg),
221
221
  post-card-hover-bg: var(--post-scheme-color-interactive-card-hover-bg),
222
222
  post-card-hover-fg: var(--post-scheme-color-interactive-card-hover-fg),
223
+ post-card-padding-1: var(--post-device-spacing-padding-5),
223
224
  );
224
225
 
225
226
  $post-checkbox: (
package/_core.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  :root {
7
7
  --post-core-color-brand-postyellow: #ffcc00;
package/_device.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-desktop: (
7
7
  post-device-font-size-1: var(--post-core-font-size-40),
package/_elements.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-body: (
7
7
  post-body-color-bg: var(--post-theme-color-body-bg),
package/_helpers.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-focus: (
7
7
  post-focus-outline-offset: var(--post-device-spacing-padding-2),
package/_index.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  // Do not edit manually
2
2
  // This file was generated by the swisspost/design-system-tokens package
3
- // Wed, 20 Aug 2025 14:54:38 GMT
3
+ // Mon, 08 Sep 2025 11:02:59 GMT
4
4
 
5
5
  @use './core';
6
6
  @forward './schemestatic';
package/_palette.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-default: (
7
7
  post-palette-color-scheme: var(--post-theme-color-palettes-default-scheme),
package/_scheme.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-light: (
7
7
  post-scheme-color-body-bg: var(--post-core-color-sandgrey-002),
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-light: (
7
7
  post-scheme-even: var(--post-core-bg-scheme-light),
package/_theme.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-post: (
7
7
  post-theme-color-body-bg: var(--post-scheme-color-body-bg),
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $margin: (
7
7
  0: var(--post-core-dimension-0),
package/_utilities.scss CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  $post-spacing: (
7
7
  post-utility-margin-0: var(--post-core-dimension-0),
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@swisspost/design-system-tokens",
3
- "version": "10.0.0-next.45",
3
+ "version": "10.0.0-next.47",
4
4
  "description": "Design Tokens for the Swiss Post Design System.",
5
5
  "author": "Swiss Post <design-system@post.ch>",
6
6
  "license": "Apache-2.0",
7
7
  "private": false,
8
8
  "type": "module",
9
+ "types": "dist/index.d.ts",
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "https://github.com/swisspost/design-system.git"
@@ -22,11 +23,14 @@
22
23
  "devDependencies": {
23
24
  "@eslint/js": "9.18.0",
24
25
  "@tokens-studio/sd-transforms": "1.2.9",
26
+ "@types/node": "22.10.5",
25
27
  "copyfiles": "2.4.1",
26
28
  "eslint": "9.18.0",
27
29
  "globals": "16.0.0",
28
30
  "rimraf": "6.0.1",
29
- "style-dictionary": "4.3.0"
31
+ "style-dictionary": "4.3.0",
32
+ "typescript": "5.8.3",
33
+ "typescript-eslint": "8.20.0"
30
34
  },
31
35
  "keywords": [
32
36
  "tokens",
@@ -37,11 +41,11 @@
37
41
  "frontend"
38
42
  ],
39
43
  "scripts": {
40
- "build": "pnpm clean && node ./build.js && pnpm copy-files",
41
- "build:verbose": "node ./build.js --verbosity=verbose",
44
+ "build": "pnpm clean && tsc -p . && node ./dist/build.js && pnpm copy-files",
45
+ "build:verbose": "pnpm clean && tsc -p . && node ./dist/build.js --verbosity=verbose && pnpm copy-files",
42
46
  "clean": "rimraf dist",
43
47
  "lint": "eslint",
44
48
  "lint:fix": "eslint --fix",
45
- "copy-files": "copyfiles -f package.json README.md CONTRIBUTING.md CHANGELOG.md LICENSE dist"
49
+ "copy-files": "copyfiles -f package.json README.md CONTRIBUTING.md CHANGELOG.md LICENSE *.scss dist"
46
50
  }
47
51
  }
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  export default {
7
7
  focus: {
@@ -1,7 +1,7 @@
1
1
 
2
2
  // Do not edit manually
3
3
  // This file was generated by the swisspost/design-system-tokens package
4
- // Wed, 20 Aug 2025 14:54:38 GMT
4
+ // Mon, 08 Sep 2025 11:02:59 GMT
5
5
 
6
6
  export default {
7
7
  utility: {