@digdir/designsystemet 1.7.2 → 1.8.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.
@@ -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.7.2",
864
+ version: "1.8.0",
865
865
  description: "CLI for Designsystemet",
866
866
  author: "Designsystemet team",
867
867
  engines: {
@@ -924,10 +924,11 @@ var package_default = {
924
924
  },
925
925
  dependencies: {
926
926
  "@commander-js/extra-typings": "^14.0.0",
927
- "@tokens-studio/sd-transforms": "1.3.0",
927
+ "@digdir/designsystemet-types": "workspace:^",
928
+ "@tokens-studio/sd-transforms": "2.0.2",
928
929
  "apca-w3": "^0.1.9",
929
930
  "change-case": "^5.4.4",
930
- "chroma-js": "^3.1.2",
931
+ "chroma-js": "^3.2.0",
931
932
  "colorjs.io": "^0.6.0-alpha.1",
932
933
  commander: "^14.0.2",
933
934
  "fast-glob": "^3.3.3",
@@ -937,7 +938,7 @@ var package_default = {
937
938
  postcss: "^8.5.6",
938
939
  ramda: "^0.32.0",
939
940
  "style-dictionary": "^5.1.1",
940
- zod: "^4.1.12",
941
+ zod: "^4.1.13",
941
942
  "zod-validation-error": "^4.0.2"
942
943
  },
943
944
  devDependencies: {
@@ -945,13 +946,13 @@ var package_default = {
945
946
  "@types/apca-w3": "^0.1.3",
946
947
  "@types/chroma-js": "^3.1.2",
947
948
  "@types/fs-extra": "^11.0.4",
948
- "@types/node": "^22.19.0",
949
+ "@types/node": "^22.19.1",
949
950
  "@types/object-hash": "^3.0.6",
950
951
  "@types/ramda": "^0.31.1",
951
952
  "fs-extra": "^11.3.2",
952
953
  tslib: "^2.8.1",
953
- tsup: "^8.5.0",
954
- tsx: "^4.20.6",
954
+ tsup: "^8.5.1",
955
+ tsx: "^4.21.0",
955
956
  typescript: "^5.9.3"
956
957
  }
957
958
  };
@@ -2350,10 +2351,10 @@ function createColorTypeDeclaration(colors2) {
2350
2351
  \u{1F371} Building ${pc5.green("type declarations")}`);
2351
2352
  const typeDeclaration = `
2352
2353
  /* ${defaultFileHeader} */
2353
- import type {} from '@digdir/designsystemet/types';
2354
+ import type {} from '@digdir/designsystemet-types';
2354
2355
 
2355
2356
  // Augment types based on theme
2356
- declare module '@digdir/designsystemet/types' {
2357
+ declare module '@digdir/designsystemet-types' {
2357
2358
  export interface ColorDefinitions {
2358
2359
  ${colors2.map((color) => ` ${color.includes("-") ? `'${color}'` : color}: never;`).join("\n")}
2359
2360
  }
package/dist/src/index.js CHANGED
@@ -2408,7 +2408,7 @@ import * as R9 from "ramda";
2408
2408
  // package.json
2409
2409
  var package_default = {
2410
2410
  name: "@digdir/designsystemet",
2411
- version: "1.7.2",
2411
+ version: "1.8.0",
2412
2412
  description: "CLI for Designsystemet",
2413
2413
  author: "Designsystemet team",
2414
2414
  engines: {
@@ -2471,10 +2471,11 @@ var package_default = {
2471
2471
  },
2472
2472
  dependencies: {
2473
2473
  "@commander-js/extra-typings": "^14.0.0",
2474
- "@tokens-studio/sd-transforms": "1.3.0",
2474
+ "@digdir/designsystemet-types": "workspace:^",
2475
+ "@tokens-studio/sd-transforms": "2.0.2",
2475
2476
  "apca-w3": "^0.1.9",
2476
2477
  "change-case": "^5.4.4",
2477
- "chroma-js": "^3.1.2",
2478
+ "chroma-js": "^3.2.0",
2478
2479
  "colorjs.io": "^0.6.0-alpha.1",
2479
2480
  commander: "^14.0.2",
2480
2481
  "fast-glob": "^3.3.3",
@@ -2484,7 +2485,7 @@ var package_default = {
2484
2485
  postcss: "^8.5.6",
2485
2486
  ramda: "^0.32.0",
2486
2487
  "style-dictionary": "^5.1.1",
2487
- zod: "^4.1.12",
2488
+ zod: "^4.1.13",
2488
2489
  "zod-validation-error": "^4.0.2"
2489
2490
  },
2490
2491
  devDependencies: {
@@ -2492,13 +2493,13 @@ var package_default = {
2492
2493
  "@types/apca-w3": "^0.1.3",
2493
2494
  "@types/chroma-js": "^3.1.2",
2494
2495
  "@types/fs-extra": "^11.0.4",
2495
- "@types/node": "^22.19.0",
2496
+ "@types/node": "^22.19.1",
2496
2497
  "@types/object-hash": "^3.0.6",
2497
2498
  "@types/ramda": "^0.31.1",
2498
2499
  "fs-extra": "^11.3.2",
2499
2500
  tslib: "^2.8.1",
2500
- tsup: "^8.5.0",
2501
- tsx: "^4.20.6",
2501
+ tsup: "^8.5.1",
2502
+ tsx: "^4.21.0",
2502
2503
  typescript: "^5.9.3"
2503
2504
  }
2504
2505
  };
@@ -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.7.2",
52
+ version: "1.8.0",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
@@ -112,10 +112,11 @@ var package_default = {
112
112
  },
113
113
  dependencies: {
114
114
  "@commander-js/extra-typings": "^14.0.0",
115
- "@tokens-studio/sd-transforms": "1.3.0",
115
+ "@digdir/designsystemet-types": "workspace:^",
116
+ "@tokens-studio/sd-transforms": "2.0.2",
116
117
  "apca-w3": "^0.1.9",
117
118
  "change-case": "^5.4.4",
118
- "chroma-js": "^3.1.2",
119
+ "chroma-js": "^3.2.0",
119
120
  "colorjs.io": "^0.6.0-alpha.1",
120
121
  commander: "^14.0.2",
121
122
  "fast-glob": "^3.3.3",
@@ -125,7 +126,7 @@ var package_default = {
125
126
  postcss: "^8.5.6",
126
127
  ramda: "^0.32.0",
127
128
  "style-dictionary": "^5.1.1",
128
- zod: "^4.1.12",
129
+ zod: "^4.1.13",
129
130
  "zod-validation-error": "^4.0.2"
130
131
  },
131
132
  devDependencies: {
@@ -133,13 +134,13 @@ var package_default = {
133
134
  "@types/apca-w3": "^0.1.3",
134
135
  "@types/chroma-js": "^3.1.2",
135
136
  "@types/fs-extra": "^11.0.4",
136
- "@types/node": "^22.19.0",
137
+ "@types/node": "^22.19.1",
137
138
  "@types/object-hash": "^3.0.6",
138
139
  "@types/ramda": "^0.31.1",
139
140
  "fs-extra": "^11.3.2",
140
141
  tslib: "^2.8.1",
141
- tsup: "^8.5.0",
142
- tsx: "^4.20.6",
142
+ tsup: "^8.5.1",
143
+ tsx: "^4.21.0",
143
144
  typescript: "^5.9.3"
144
145
  }
145
146
  };
@@ -1538,10 +1539,10 @@ function createColorTypeDeclaration(colors) {
1538
1539
  \u{1F371} Building ${pc4.green("type declarations")}`);
1539
1540
  const typeDeclaration = `
1540
1541
  /* ${defaultFileHeader} */
1541
- import type {} from '@digdir/designsystemet/types';
1542
+ import type {} from '@digdir/designsystemet-types';
1542
1543
 
1543
1544
  // Augment types based on theme
1544
- declare module '@digdir/designsystemet/types' {
1545
+ declare module '@digdir/designsystemet-types' {
1545
1546
  export interface ColorDefinitions {
1546
1547
  ${colors.map((color) => ` ${color.includes("-") ? `'${color}'` : color}: never;`).join("\n")}
1547
1548
  }
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.7.2",
4
+ version: "1.8.0",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
@@ -64,10 +64,11 @@ var package_default = {
64
64
  },
65
65
  dependencies: {
66
66
  "@commander-js/extra-typings": "^14.0.0",
67
- "@tokens-studio/sd-transforms": "1.3.0",
67
+ "@digdir/designsystemet-types": "workspace:^",
68
+ "@tokens-studio/sd-transforms": "2.0.2",
68
69
  "apca-w3": "^0.1.9",
69
70
  "change-case": "^5.4.4",
70
- "chroma-js": "^3.1.2",
71
+ "chroma-js": "^3.2.0",
71
72
  "colorjs.io": "^0.6.0-alpha.1",
72
73
  commander: "^14.0.2",
73
74
  "fast-glob": "^3.3.3",
@@ -77,7 +78,7 @@ var package_default = {
77
78
  postcss: "^8.5.6",
78
79
  ramda: "^0.32.0",
79
80
  "style-dictionary": "^5.1.1",
80
- zod: "^4.1.12",
81
+ zod: "^4.1.13",
81
82
  "zod-validation-error": "^4.0.2"
82
83
  },
83
84
  devDependencies: {
@@ -85,13 +86,13 @@ var package_default = {
85
86
  "@types/apca-w3": "^0.1.3",
86
87
  "@types/chroma-js": "^3.1.2",
87
88
  "@types/fs-extra": "^11.0.4",
88
- "@types/node": "^22.19.0",
89
+ "@types/node": "^22.19.1",
89
90
  "@types/object-hash": "^3.0.6",
90
91
  "@types/ramda": "^0.31.1",
91
92
  "fs-extra": "^11.3.2",
92
93
  tslib: "^2.8.1",
93
- tsup: "^8.5.0",
94
- tsx: "^4.20.6",
94
+ tsup: "^8.5.1",
95
+ tsx: "^4.21.0",
95
96
  typescript: "^5.9.3"
96
97
  }
97
98
  };
@@ -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.7.2",
49
+ version: "1.8.0",
50
50
  description: "CLI for Designsystemet",
51
51
  author: "Designsystemet team",
52
52
  engines: {
@@ -109,10 +109,11 @@ var package_default = {
109
109
  },
110
110
  dependencies: {
111
111
  "@commander-js/extra-typings": "^14.0.0",
112
- "@tokens-studio/sd-transforms": "1.3.0",
112
+ "@digdir/designsystemet-types": "workspace:^",
113
+ "@tokens-studio/sd-transforms": "2.0.2",
113
114
  "apca-w3": "^0.1.9",
114
115
  "change-case": "^5.4.4",
115
- "chroma-js": "^3.1.2",
116
+ "chroma-js": "^3.2.0",
116
117
  "colorjs.io": "^0.6.0-alpha.1",
117
118
  commander: "^14.0.2",
118
119
  "fast-glob": "^3.3.3",
@@ -122,7 +123,7 @@ var package_default = {
122
123
  postcss: "^8.5.6",
123
124
  ramda: "^0.32.0",
124
125
  "style-dictionary": "^5.1.1",
125
- zod: "^4.1.12",
126
+ zod: "^4.1.13",
126
127
  "zod-validation-error": "^4.0.2"
127
128
  },
128
129
  devDependencies: {
@@ -130,13 +131,13 @@ var package_default = {
130
131
  "@types/apca-w3": "^0.1.3",
131
132
  "@types/chroma-js": "^3.1.2",
132
133
  "@types/fs-extra": "^11.0.4",
133
- "@types/node": "^22.19.0",
134
+ "@types/node": "^22.19.1",
134
135
  "@types/object-hash": "^3.0.6",
135
136
  "@types/ramda": "^0.31.1",
136
137
  "fs-extra": "^11.3.2",
137
138
  tslib: "^2.8.1",
138
- tsup: "^8.5.0",
139
- tsx: "^4.20.6",
139
+ tsup: "^8.5.1",
140
+ tsx: "^4.21.0",
140
141
  typescript: "^5.9.3"
141
142
  }
142
143
  };
@@ -2191,7 +2191,7 @@ import * as R8 from "ramda";
2191
2191
  // package.json
2192
2192
  var package_default = {
2193
2193
  name: "@digdir/designsystemet",
2194
- version: "1.7.2",
2194
+ version: "1.8.0",
2195
2195
  description: "CLI for Designsystemet",
2196
2196
  author: "Designsystemet team",
2197
2197
  engines: {
@@ -2254,10 +2254,11 @@ var package_default = {
2254
2254
  },
2255
2255
  dependencies: {
2256
2256
  "@commander-js/extra-typings": "^14.0.0",
2257
- "@tokens-studio/sd-transforms": "1.3.0",
2257
+ "@digdir/designsystemet-types": "workspace:^",
2258
+ "@tokens-studio/sd-transforms": "2.0.2",
2258
2259
  "apca-w3": "^0.1.9",
2259
2260
  "change-case": "^5.4.4",
2260
- "chroma-js": "^3.1.2",
2261
+ "chroma-js": "^3.2.0",
2261
2262
  "colorjs.io": "^0.6.0-alpha.1",
2262
2263
  commander: "^14.0.2",
2263
2264
  "fast-glob": "^3.3.3",
@@ -2267,7 +2268,7 @@ var package_default = {
2267
2268
  postcss: "^8.5.6",
2268
2269
  ramda: "^0.32.0",
2269
2270
  "style-dictionary": "^5.1.1",
2270
- zod: "^4.1.12",
2271
+ zod: "^4.1.13",
2271
2272
  "zod-validation-error": "^4.0.2"
2272
2273
  },
2273
2274
  devDependencies: {
@@ -2275,13 +2276,13 @@ var package_default = {
2275
2276
  "@types/apca-w3": "^0.1.3",
2276
2277
  "@types/chroma-js": "^3.1.2",
2277
2278
  "@types/fs-extra": "^11.0.4",
2278
- "@types/node": "^22.19.0",
2279
+ "@types/node": "^22.19.1",
2279
2280
  "@types/object-hash": "^3.0.6",
2280
2281
  "@types/ramda": "^0.31.1",
2281
2282
  "fs-extra": "^11.3.2",
2282
2283
  tslib: "^2.8.1",
2283
- tsup: "^8.5.0",
2284
- tsx: "^4.20.6",
2284
+ tsup: "^8.5.1",
2285
+ tsx: "^4.21.0",
2285
2286
  typescript: "^5.9.3"
2286
2287
  }
2287
2288
  };
@@ -2207,7 +2207,7 @@ import * as R8 from "ramda";
2207
2207
  // package.json
2208
2208
  var package_default = {
2209
2209
  name: "@digdir/designsystemet",
2210
- version: "1.7.2",
2210
+ version: "1.8.0",
2211
2211
  description: "CLI for Designsystemet",
2212
2212
  author: "Designsystemet team",
2213
2213
  engines: {
@@ -2270,10 +2270,11 @@ var package_default = {
2270
2270
  },
2271
2271
  dependencies: {
2272
2272
  "@commander-js/extra-typings": "^14.0.0",
2273
- "@tokens-studio/sd-transforms": "1.3.0",
2273
+ "@digdir/designsystemet-types": "workspace:^",
2274
+ "@tokens-studio/sd-transforms": "2.0.2",
2274
2275
  "apca-w3": "^0.1.9",
2275
2276
  "change-case": "^5.4.4",
2276
- "chroma-js": "^3.1.2",
2277
+ "chroma-js": "^3.2.0",
2277
2278
  "colorjs.io": "^0.6.0-alpha.1",
2278
2279
  commander: "^14.0.2",
2279
2280
  "fast-glob": "^3.3.3",
@@ -2283,7 +2284,7 @@ var package_default = {
2283
2284
  postcss: "^8.5.6",
2284
2285
  ramda: "^0.32.0",
2285
2286
  "style-dictionary": "^5.1.1",
2286
- zod: "^4.1.12",
2287
+ zod: "^4.1.13",
2287
2288
  "zod-validation-error": "^4.0.2"
2288
2289
  },
2289
2290
  devDependencies: {
@@ -2291,13 +2292,13 @@ var package_default = {
2291
2292
  "@types/apca-w3": "^0.1.3",
2292
2293
  "@types/chroma-js": "^3.1.2",
2293
2294
  "@types/fs-extra": "^11.0.4",
2294
- "@types/node": "^22.19.0",
2295
+ "@types/node": "^22.19.1",
2295
2296
  "@types/object-hash": "^3.0.6",
2296
2297
  "@types/ramda": "^0.31.1",
2297
2298
  "fs-extra": "^11.3.2",
2298
2299
  tslib: "^2.8.1",
2299
- tsup: "^8.5.0",
2300
- tsx: "^4.20.6",
2300
+ tsup: "^8.5.1",
2301
+ tsx: "^4.21.0",
2301
2302
  typescript: "^5.9.3"
2302
2303
  }
2303
2304
  };
@@ -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.7.2",
7
+ version: "1.8.0",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
@@ -67,10 +67,11 @@ var package_default = {
67
67
  },
68
68
  dependencies: {
69
69
  "@commander-js/extra-typings": "^14.0.0",
70
- "@tokens-studio/sd-transforms": "1.3.0",
70
+ "@digdir/designsystemet-types": "workspace:^",
71
+ "@tokens-studio/sd-transforms": "2.0.2",
71
72
  "apca-w3": "^0.1.9",
72
73
  "change-case": "^5.4.4",
73
- "chroma-js": "^3.1.2",
74
+ "chroma-js": "^3.2.0",
74
75
  "colorjs.io": "^0.6.0-alpha.1",
75
76
  commander: "^14.0.2",
76
77
  "fast-glob": "^3.3.3",
@@ -80,7 +81,7 @@ var package_default = {
80
81
  postcss: "^8.5.6",
81
82
  ramda: "^0.32.0",
82
83
  "style-dictionary": "^5.1.1",
83
- zod: "^4.1.12",
84
+ zod: "^4.1.13",
84
85
  "zod-validation-error": "^4.0.2"
85
86
  },
86
87
  devDependencies: {
@@ -88,13 +89,13 @@ var package_default = {
88
89
  "@types/apca-w3": "^0.1.3",
89
90
  "@types/chroma-js": "^3.1.2",
90
91
  "@types/fs-extra": "^11.0.4",
91
- "@types/node": "^22.19.0",
92
+ "@types/node": "^22.19.1",
92
93
  "@types/object-hash": "^3.0.6",
93
94
  "@types/ramda": "^0.31.1",
94
95
  "fs-extra": "^11.3.2",
95
96
  tslib: "^2.8.1",
96
- tsup: "^8.5.0",
97
- tsx: "^4.20.6",
97
+ tsup: "^8.5.1",
98
+ tsx: "^4.21.0",
98
99
  typescript: "^5.9.3"
99
100
  }
100
101
  };
@@ -1209,10 +1210,10 @@ function createColorTypeDeclaration(colors) {
1209
1210
  \u{1F371} Building ${pc3.green("type declarations")}`);
1210
1211
  const typeDeclaration = `
1211
1212
  /* ${defaultFileHeader} */
1212
- import type {} from '@digdir/designsystemet/types';
1213
+ import type {} from '@digdir/designsystemet-types';
1213
1214
 
1214
1215
  // Augment types based on theme
1215
- declare module '@digdir/designsystemet/types' {
1216
+ declare module '@digdir/designsystemet-types' {
1216
1217
  export interface ColorDefinitions {
1217
1218
  ${colors.map((color) => ` ${color.includes("-") ? `'${color}'` : color}: never;`).join("\n")}
1218
1219
  }
@@ -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.7.2",
8
+ version: "1.8.0",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
@@ -68,10 +68,11 @@ var package_default = {
68
68
  },
69
69
  dependencies: {
70
70
  "@commander-js/extra-typings": "^14.0.0",
71
- "@tokens-studio/sd-transforms": "1.3.0",
71
+ "@digdir/designsystemet-types": "workspace:^",
72
+ "@tokens-studio/sd-transforms": "2.0.2",
72
73
  "apca-w3": "^0.1.9",
73
74
  "change-case": "^5.4.4",
74
- "chroma-js": "^3.1.2",
75
+ "chroma-js": "^3.2.0",
75
76
  "colorjs.io": "^0.6.0-alpha.1",
76
77
  commander: "^14.0.2",
77
78
  "fast-glob": "^3.3.3",
@@ -81,7 +82,7 @@ var package_default = {
81
82
  postcss: "^8.5.6",
82
83
  ramda: "^0.32.0",
83
84
  "style-dictionary": "^5.1.1",
84
- zod: "^4.1.12",
85
+ zod: "^4.1.13",
85
86
  "zod-validation-error": "^4.0.2"
86
87
  },
87
88
  devDependencies: {
@@ -89,13 +90,13 @@ var package_default = {
89
90
  "@types/apca-w3": "^0.1.3",
90
91
  "@types/chroma-js": "^3.1.2",
91
92
  "@types/fs-extra": "^11.0.4",
92
- "@types/node": "^22.19.0",
93
+ "@types/node": "^22.19.1",
93
94
  "@types/object-hash": "^3.0.6",
94
95
  "@types/ramda": "^0.31.1",
95
96
  "fs-extra": "^11.3.2",
96
97
  tslib: "^2.8.1",
97
- tsup: "^8.5.0",
98
- tsx: "^4.20.6",
98
+ tsup: "^8.5.1",
99
+ tsx: "^4.21.0",
99
100
  typescript: "^5.9.3"
100
101
  }
101
102
  };
@@ -1,52 +1,6 @@
1
- declare const emptyObjectSymbol: unique symbol;
2
- type EmptyObject = {
3
- [emptyObjectSymbol]?: never;
4
- };
5
- /**
6
- * Base interface for available colors in Designsystemet.
7
- * The CLI will generate augmentations of this interface to allow
8
- * type safety of custom color names.
1
+ /*!
2
+ * This file is deprecated and will be removed in a future release.
3
+ * Use @digdir/designsystemet-types instead
9
4
  */
10
- export interface ColorDefinitions {
11
- }
12
- export interface SeverityColorDefinitions {
13
- }
14
- /**
15
- * If {@link ColorDefinitions} or {@link SeverityColorDefinitions} has been extended to include color names, return T,
16
- * otherwise return the arbitrary string type.
17
- */
18
- type ColorWithFallback<T> = ColorDefinitions extends EmptyObject ? string : T;
19
- /**
20
- * Represents the available severity colors for the Designsystemet variables.
21
- * These are predefined colors that can be used to indicate different levels of severity.
22
- * - `'info'`: Use the info color.
23
- * - `'success'`: Use the success color.
24
- * - `'warning'`: Use the warning color.
25
- * - `'danger'`: Use the danger color.
26
- */
27
- export type SeverityColors = ColorWithFallback<keyof SeverityColorDefinitions>;
28
- /**
29
- * Represents the available color options for the Designsystemet variables.
30
- *
31
- * These are augmented based on your theme configuration.
32
- *
33
- * Consist of both main and support colors
34
- * @link https://theme.designsystemet.no
35
- */
36
- export type Color = ColorWithFallback<keyof ColorDefinitions>;
37
- /**
38
- * Represents the recommended size options for the Designsystemet variables.
39
- * - `'sm'`: Use the small size.
40
- * - `'md'`: Use the medium size.
41
- * - `'lg'`: Use the large size.
42
- */
43
- export type Size = 'sm' | 'md' | 'lg';
44
- /**
45
- * Represents the available color scheme options for the Designsystemet variables.
46
- * - `'light'`: Use the light color scheme.
47
- * - `'dark'`: Use the dark color scheme.
48
- * - `'auto'`: Automatically select the color scheme based on system preferences.
49
- */
50
- export type ColorScheme = 'light' | 'dark' | 'auto';
51
- export {};
5
+ export * from '@digdir/designsystemet-types';
52
6
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,MAAM,CAAC;AAC/C,KAAK,WAAW,GAAG;IAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnD;;;;GAIG;AAGH,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,wBAAwB;CAAG;AAE5C;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,gBAAgB,SAAS,WAAW,GAAG,MAAM,GAAG,CAAC,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,wBAAwB,CAAC,CAAC;AAC/E;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAC9D;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,8BAA8B,CAAC"}
package/dist/src/types.js CHANGED
@@ -0,0 +1,6 @@
1
+ // src/types.ts
2
+ export * from "@digdir/designsystemet-types";
3
+ /*!
4
+ * This file is deprecated and will be removed in a future release.
5
+ * Use @digdir/designsystemet-types instead
6
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@commander-js/extra-typings": "^14.0.0",
41
- "@tokens-studio/sd-transforms": "1.3.0",
41
+ "@tokens-studio/sd-transforms": "2.0.2",
42
42
  "apca-w3": "^0.1.9",
43
43
  "change-case": "^5.4.4",
44
- "chroma-js": "^3.1.2",
44
+ "chroma-js": "^3.2.0",
45
45
  "colorjs.io": "^0.6.0-alpha.1",
46
46
  "commander": "^14.0.2",
47
47
  "fast-glob": "^3.3.3",
@@ -51,21 +51,22 @@
51
51
  "postcss": "^8.5.6",
52
52
  "ramda": "^0.32.0",
53
53
  "style-dictionary": "^5.1.1",
54
- "zod": "^4.1.12",
55
- "zod-validation-error": "^4.0.2"
54
+ "zod": "^4.1.13",
55
+ "zod-validation-error": "^4.0.2",
56
+ "@digdir/designsystemet-types": "^1.8.0"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@tokens-studio/types": "0.5.2",
59
60
  "@types/apca-w3": "^0.1.3",
60
61
  "@types/chroma-js": "^3.1.2",
61
62
  "@types/fs-extra": "^11.0.4",
62
- "@types/node": "^22.19.0",
63
+ "@types/node": "^22.19.1",
63
64
  "@types/object-hash": "^3.0.6",
64
65
  "@types/ramda": "^0.31.1",
65
66
  "fs-extra": "^11.3.2",
66
67
  "tslib": "^2.8.1",
67
- "tsup": "^8.5.0",
68
- "tsx": "^4.20.6",
68
+ "tsup": "^8.5.1",
69
+ "tsx": "^4.21.0",
69
70
  "typescript": "^5.9.3"
70
71
  },
71
72
  "scripts": {