@digdir/designsystemet 1.11.0 → 1.11.1

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.
@@ -861,7 +861,7 @@ import pc5 from "picocolors";
861
861
  // package.json
862
862
  var package_default = {
863
863
  name: "@digdir/designsystemet",
864
- version: "1.11.0",
864
+ version: "1.11.1",
865
865
  description: "CLI for Designsystemet",
866
866
  author: "Designsystemet team",
867
867
  engines: {
@@ -924,22 +924,22 @@ var package_default = {
924
924
  "@digdir/designsystemet-types": "workspace:^",
925
925
  "@tokens-studio/sd-transforms": "2.0.3",
926
926
  "chroma-js": "^3.2.0",
927
- "colorjs.io": "^0.6.0",
928
- commander: "^14.0.2",
927
+ "colorjs.io": "^0.6.1",
928
+ commander: "^14.0.3",
929
929
  "fast-glob": "^3.3.3",
930
930
  hsluv: "^1.0.1",
931
931
  "object-hash": "^3.0.0",
932
932
  picocolors: "^1.1.1",
933
933
  postcss: "^8.5.6",
934
934
  ramda: "^0.32.0",
935
- "style-dictionary": "^5.1.3",
936
- zod: "^4.3.5",
935
+ "style-dictionary": "^5.2.0",
936
+ zod: "^4.3.6",
937
937
  "zod-validation-error": "^5.0.0"
938
938
  },
939
939
  devDependencies: {
940
940
  "@tokens-studio/types": "0.5.2",
941
941
  "@types/chroma-js": "^3.1.2",
942
- "@types/node": "^24.10.7",
942
+ "@types/node": "^24.10.9",
943
943
  "@types/object-hash": "^3.0.6",
944
944
  "@types/ramda": "^0.31.1",
945
945
  tsup: "^8.5.1",
package/dist/src/index.js CHANGED
@@ -2445,7 +2445,7 @@ import * as R9 from "ramda";
2445
2445
  // package.json
2446
2446
  var package_default = {
2447
2447
  name: "@digdir/designsystemet",
2448
- version: "1.11.0",
2448
+ version: "1.11.1",
2449
2449
  description: "CLI for Designsystemet",
2450
2450
  author: "Designsystemet team",
2451
2451
  engines: {
@@ -2508,22 +2508,22 @@ var package_default = {
2508
2508
  "@digdir/designsystemet-types": "workspace:^",
2509
2509
  "@tokens-studio/sd-transforms": "2.0.3",
2510
2510
  "chroma-js": "^3.2.0",
2511
- "colorjs.io": "^0.6.0",
2512
- commander: "^14.0.2",
2511
+ "colorjs.io": "^0.6.1",
2512
+ commander: "^14.0.3",
2513
2513
  "fast-glob": "^3.3.3",
2514
2514
  hsluv: "^1.0.1",
2515
2515
  "object-hash": "^3.0.0",
2516
2516
  picocolors: "^1.1.1",
2517
2517
  postcss: "^8.5.6",
2518
2518
  ramda: "^0.32.0",
2519
- "style-dictionary": "^5.1.3",
2520
- zod: "^4.3.5",
2519
+ "style-dictionary": "^5.2.0",
2520
+ zod: "^4.3.6",
2521
2521
  "zod-validation-error": "^5.0.0"
2522
2522
  },
2523
2523
  devDependencies: {
2524
2524
  "@tokens-studio/types": "0.5.2",
2525
2525
  "@types/chroma-js": "^3.1.2",
2526
- "@types/node": "^24.10.7",
2526
+ "@types/node": "^24.10.9",
2527
2527
  "@types/object-hash": "^3.0.6",
2528
2528
  "@types/ramda": "^0.31.1",
2529
2529
  tsup: "^8.5.1",
@@ -1 +1 @@
1
- {"version":3,"file":"update-preview-tokens.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-preview-tokens.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,oBAAoB,CAAC;AA8B5D,eAAO,MAAM,WAAW,GAAU,aAAa,KAAK,kBAqEnD,CAAC"}
1
+ {"version":3,"file":"update-preview-tokens.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-preview-tokens.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAgC5D,eAAO,MAAM,WAAW,GAAU,aAAa,KAAK,kBAoEnD,CAAC"}
@@ -3486,6 +3486,7 @@ var cleanDir = async (dir, dry) => {
3486
3486
  };
3487
3487
 
3488
3488
  // src/scripts/update-preview-tokens.ts
3489
+ var OUTDIR = "../../internal/components/src/tokens/design-tokens";
3489
3490
  async function write(files, outDir, dry) {
3490
3491
  for (const { destination, output } of files) {
3491
3492
  if (destination) {
@@ -3509,7 +3510,6 @@ var toPreviewToken = (tokens) => tokens.map(({ token, formatted }) => {
3509
3510
  });
3510
3511
  var formatTheme = async (themeConfig) => {
3511
3512
  const { tokenSets } = await createTokens(themeConfig);
3512
- const outDir = "../../apps/www/app/_components/tokens/design-tokens";
3513
3513
  const $themes = await generate$Themes(["dark", "light"], [themeConfig.name], themeConfig.colors);
3514
3514
  const processed$themes = $themes.map(processThemeObject);
3515
3515
  await processPlatform({
@@ -3519,7 +3519,7 @@ var formatTheme = async (themeConfig) => {
3519
3519
  verbose: false,
3520
3520
  buildTokenFormats: {}
3521
3521
  });
3522
- await cleanDir(outDir, false);
3522
+ await cleanDir(OUTDIR, false);
3523
3523
  console.log(
3524
3524
  buildOptions?.buildTokenFormats ? `
3525
3525
  \u{1F3D7}\uFE0F Start building preview tokens for ${pc4.blue("Designsystemet")}
@@ -3557,7 +3557,7 @@ var formatTheme = async (themeConfig) => {
3557
3557
  output: JSON.stringify(tokens, null, 2)
3558
3558
  }
3559
3559
  ],
3560
- outDir,
3560
+ OUTDIR,
3561
3561
  false
3562
3562
  );
3563
3563
  }
@@ -3569,8 +3569,10 @@ formatTheme({
3569
3569
  name: "test",
3570
3570
  borderRadius: designsystemet_config_default.themes.designsystemet.borderRadius,
3571
3571
  colors: {
3572
- main: designsystemet_config_default.themes.designsystemet.colors.main,
3573
- support: designsystemet_config_default.themes.designsystemet.colors.support,
3572
+ main: {
3573
+ primary: designsystemet_config_default.themes.designsystemet.colors.main.accent
3574
+ },
3575
+ support: {},
3574
3576
  neutral: designsystemet_config_default.themes.designsystemet.colors.neutral
3575
3577
  },
3576
3578
  typography: designsystemet_config_default.themes.designsystemet.typography
@@ -49,7 +49,7 @@ import pc4 from "picocolors";
49
49
  // package.json
50
50
  var package_default = {
51
51
  name: "@digdir/designsystemet",
52
- version: "1.11.0",
52
+ version: "1.11.1",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
@@ -112,22 +112,22 @@ var package_default = {
112
112
  "@digdir/designsystemet-types": "workspace:^",
113
113
  "@tokens-studio/sd-transforms": "2.0.3",
114
114
  "chroma-js": "^3.2.0",
115
- "colorjs.io": "^0.6.0",
116
- commander: "^14.0.2",
115
+ "colorjs.io": "^0.6.1",
116
+ commander: "^14.0.3",
117
117
  "fast-glob": "^3.3.3",
118
118
  hsluv: "^1.0.1",
119
119
  "object-hash": "^3.0.0",
120
120
  picocolors: "^1.1.1",
121
121
  postcss: "^8.5.6",
122
122
  ramda: "^0.32.0",
123
- "style-dictionary": "^5.1.3",
124
- zod: "^4.3.5",
123
+ "style-dictionary": "^5.2.0",
124
+ zod: "^4.3.6",
125
125
  "zod-validation-error": "^5.0.0"
126
126
  },
127
127
  devDependencies: {
128
128
  "@tokens-studio/types": "0.5.2",
129
129
  "@types/chroma-js": "^3.1.2",
130
- "@types/node": "^24.10.7",
130
+ "@types/node": "^24.10.9",
131
131
  "@types/object-hash": "^3.0.6",
132
132
  "@types/ramda": "^0.31.1",
133
133
  tsup: "^8.5.1",
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.11.0",
4
+ version: "1.11.1",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
@@ -64,22 +64,22 @@ var package_default = {
64
64
  "@digdir/designsystemet-types": "workspace:^",
65
65
  "@tokens-studio/sd-transforms": "2.0.3",
66
66
  "chroma-js": "^3.2.0",
67
- "colorjs.io": "^0.6.0",
68
- commander: "^14.0.2",
67
+ "colorjs.io": "^0.6.1",
68
+ commander: "^14.0.3",
69
69
  "fast-glob": "^3.3.3",
70
70
  hsluv: "^1.0.1",
71
71
  "object-hash": "^3.0.0",
72
72
  picocolors: "^1.1.1",
73
73
  postcss: "^8.5.6",
74
74
  ramda: "^0.32.0",
75
- "style-dictionary": "^5.1.3",
76
- zod: "^4.3.5",
75
+ "style-dictionary": "^5.2.0",
76
+ zod: "^4.3.6",
77
77
  "zod-validation-error": "^5.0.0"
78
78
  },
79
79
  devDependencies: {
80
80
  "@tokens-studio/types": "0.5.2",
81
81
  "@types/chroma-js": "^3.1.2",
82
- "@types/node": "^24.10.7",
82
+ "@types/node": "^24.10.9",
83
83
  "@types/object-hash": "^3.0.6",
84
84
  "@types/ramda": "^0.31.1",
85
85
  tsup: "^8.5.1",
@@ -46,7 +46,7 @@ var readFile = async (path2, dry, allowFileNotFound) => {
46
46
  // package.json
47
47
  var package_default = {
48
48
  name: "@digdir/designsystemet",
49
- version: "1.11.0",
49
+ version: "1.11.1",
50
50
  description: "CLI for Designsystemet",
51
51
  author: "Designsystemet team",
52
52
  engines: {
@@ -109,22 +109,22 @@ var package_default = {
109
109
  "@digdir/designsystemet-types": "workspace:^",
110
110
  "@tokens-studio/sd-transforms": "2.0.3",
111
111
  "chroma-js": "^3.2.0",
112
- "colorjs.io": "^0.6.0",
113
- commander: "^14.0.2",
112
+ "colorjs.io": "^0.6.1",
113
+ commander: "^14.0.3",
114
114
  "fast-glob": "^3.3.3",
115
115
  hsluv: "^1.0.1",
116
116
  "object-hash": "^3.0.0",
117
117
  picocolors: "^1.1.1",
118
118
  postcss: "^8.5.6",
119
119
  ramda: "^0.32.0",
120
- "style-dictionary": "^5.1.3",
121
- zod: "^4.3.5",
120
+ "style-dictionary": "^5.2.0",
121
+ zod: "^4.3.6",
122
122
  "zod-validation-error": "^5.0.0"
123
123
  },
124
124
  devDependencies: {
125
125
  "@tokens-studio/types": "0.5.2",
126
126
  "@types/chroma-js": "^3.1.2",
127
- "@types/node": "^24.10.7",
127
+ "@types/node": "^24.10.9",
128
128
  "@types/object-hash": "^3.0.6",
129
129
  "@types/ramda": "^0.31.1",
130
130
  tsup: "^8.5.1",
@@ -2217,7 +2217,7 @@ import * as R8 from "ramda";
2217
2217
  // package.json
2218
2218
  var package_default = {
2219
2219
  name: "@digdir/designsystemet",
2220
- version: "1.11.0",
2220
+ version: "1.11.1",
2221
2221
  description: "CLI for Designsystemet",
2222
2222
  author: "Designsystemet team",
2223
2223
  engines: {
@@ -2280,22 +2280,22 @@ var package_default = {
2280
2280
  "@digdir/designsystemet-types": "workspace:^",
2281
2281
  "@tokens-studio/sd-transforms": "2.0.3",
2282
2282
  "chroma-js": "^3.2.0",
2283
- "colorjs.io": "^0.6.0",
2284
- commander: "^14.0.2",
2283
+ "colorjs.io": "^0.6.1",
2284
+ commander: "^14.0.3",
2285
2285
  "fast-glob": "^3.3.3",
2286
2286
  hsluv: "^1.0.1",
2287
2287
  "object-hash": "^3.0.0",
2288
2288
  picocolors: "^1.1.1",
2289
2289
  postcss: "^8.5.6",
2290
2290
  ramda: "^0.32.0",
2291
- "style-dictionary": "^5.1.3",
2292
- zod: "^4.3.5",
2291
+ "style-dictionary": "^5.2.0",
2292
+ zod: "^4.3.6",
2293
2293
  "zod-validation-error": "^5.0.0"
2294
2294
  },
2295
2295
  devDependencies: {
2296
2296
  "@tokens-studio/types": "0.5.2",
2297
2297
  "@types/chroma-js": "^3.1.2",
2298
- "@types/node": "^24.10.7",
2298
+ "@types/node": "^24.10.9",
2299
2299
  "@types/object-hash": "^3.0.6",
2300
2300
  "@types/ramda": "^0.31.1",
2301
2301
  tsup: "^8.5.1",
@@ -2233,7 +2233,7 @@ import * as R8 from "ramda";
2233
2233
  // package.json
2234
2234
  var package_default = {
2235
2235
  name: "@digdir/designsystemet",
2236
- version: "1.11.0",
2236
+ version: "1.11.1",
2237
2237
  description: "CLI for Designsystemet",
2238
2238
  author: "Designsystemet team",
2239
2239
  engines: {
@@ -2296,22 +2296,22 @@ var package_default = {
2296
2296
  "@digdir/designsystemet-types": "workspace:^",
2297
2297
  "@tokens-studio/sd-transforms": "2.0.3",
2298
2298
  "chroma-js": "^3.2.0",
2299
- "colorjs.io": "^0.6.0",
2300
- commander: "^14.0.2",
2299
+ "colorjs.io": "^0.6.1",
2300
+ commander: "^14.0.3",
2301
2301
  "fast-glob": "^3.3.3",
2302
2302
  hsluv: "^1.0.1",
2303
2303
  "object-hash": "^3.0.0",
2304
2304
  picocolors: "^1.1.1",
2305
2305
  postcss: "^8.5.6",
2306
2306
  ramda: "^0.32.0",
2307
- "style-dictionary": "^5.1.3",
2308
- zod: "^4.3.5",
2307
+ "style-dictionary": "^5.2.0",
2308
+ zod: "^4.3.6",
2309
2309
  "zod-validation-error": "^5.0.0"
2310
2310
  },
2311
2311
  devDependencies: {
2312
2312
  "@tokens-studio/types": "0.5.2",
2313
2313
  "@types/chroma-js": "^3.1.2",
2314
- "@types/node": "^24.10.7",
2314
+ "@types/node": "^24.10.9",
2315
2315
  "@types/object-hash": "^3.0.6",
2316
2316
  "@types/ramda": "^0.31.1",
2317
2317
  tsup: "^8.5.1",
@@ -4,7 +4,7 @@ import pc3 from "picocolors";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@digdir/designsystemet",
7
- version: "1.11.0",
7
+ version: "1.11.1",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
@@ -67,22 +67,22 @@ var package_default = {
67
67
  "@digdir/designsystemet-types": "workspace:^",
68
68
  "@tokens-studio/sd-transforms": "2.0.3",
69
69
  "chroma-js": "^3.2.0",
70
- "colorjs.io": "^0.6.0",
71
- commander: "^14.0.2",
70
+ "colorjs.io": "^0.6.1",
71
+ commander: "^14.0.3",
72
72
  "fast-glob": "^3.3.3",
73
73
  hsluv: "^1.0.1",
74
74
  "object-hash": "^3.0.0",
75
75
  picocolors: "^1.1.1",
76
76
  postcss: "^8.5.6",
77
77
  ramda: "^0.32.0",
78
- "style-dictionary": "^5.1.3",
79
- zod: "^4.3.5",
78
+ "style-dictionary": "^5.2.0",
79
+ zod: "^4.3.6",
80
80
  "zod-validation-error": "^5.0.0"
81
81
  },
82
82
  devDependencies: {
83
83
  "@tokens-studio/types": "0.5.2",
84
84
  "@types/chroma-js": "^3.1.2",
85
- "@types/node": "^24.10.7",
85
+ "@types/node": "^24.10.9",
86
86
  "@types/object-hash": "^3.0.6",
87
87
  "@types/ramda": "^0.31.1",
88
88
  tsup: "^8.5.1",
@@ -5,7 +5,7 @@ import * as R2 from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.11.0",
8
+ version: "1.11.1",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
@@ -68,22 +68,22 @@ var package_default = {
68
68
  "@digdir/designsystemet-types": "workspace:^",
69
69
  "@tokens-studio/sd-transforms": "2.0.3",
70
70
  "chroma-js": "^3.2.0",
71
- "colorjs.io": "^0.6.0",
72
- commander: "^14.0.2",
71
+ "colorjs.io": "^0.6.1",
72
+ commander: "^14.0.3",
73
73
  "fast-glob": "^3.3.3",
74
74
  hsluv: "^1.0.1",
75
75
  "object-hash": "^3.0.0",
76
76
  picocolors: "^1.1.1",
77
77
  postcss: "^8.5.6",
78
78
  ramda: "^0.32.0",
79
- "style-dictionary": "^5.1.3",
80
- zod: "^4.3.5",
79
+ "style-dictionary": "^5.2.0",
80
+ zod: "^4.3.6",
81
81
  "zod-validation-error": "^5.0.0"
82
82
  },
83
83
  devDependencies: {
84
84
  "@tokens-studio/types": "0.5.2",
85
85
  "@types/chroma-js": "^3.1.2",
86
- "@types/node": "^24.10.7",
86
+ "@types/node": "^24.10.9",
87
87
  "@types/object-hash": "^3.0.6",
88
88
  "@types/ramda": "^0.31.1",
89
89
  tsup: "^8.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
@@ -40,23 +40,23 @@
40
40
  "@commander-js/extra-typings": "^14.0.0",
41
41
  "@tokens-studio/sd-transforms": "2.0.3",
42
42
  "chroma-js": "^3.2.0",
43
- "colorjs.io": "^0.6.0",
44
- "commander": "^14.0.2",
43
+ "colorjs.io": "^0.6.1",
44
+ "commander": "^14.0.3",
45
45
  "fast-glob": "^3.3.3",
46
46
  "hsluv": "^1.0.1",
47
47
  "object-hash": "^3.0.0",
48
48
  "picocolors": "^1.1.1",
49
49
  "postcss": "^8.5.6",
50
50
  "ramda": "^0.32.0",
51
- "style-dictionary": "^5.1.3",
52
- "zod": "^4.3.5",
51
+ "style-dictionary": "^5.2.0",
52
+ "zod": "^4.3.6",
53
53
  "zod-validation-error": "^5.0.0",
54
- "@digdir/designsystemet-types": "^1.11.0"
54
+ "@digdir/designsystemet-types": "^1.11.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@tokens-studio/types": "0.5.2",
58
58
  "@types/chroma-js": "^3.1.2",
59
- "@types/node": "^24.10.7",
59
+ "@types/node": "^24.10.9",
60
60
  "@types/object-hash": "^3.0.6",
61
61
  "@types/ramda": "^0.31.1",
62
62
  "tsup": "^8.5.1",