@digdir/designsystemet 1.10.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.
- package/dist/bin/designsystemet.js +7 -7
- package/dist/src/index.js +7 -7
- package/dist/src/scripts/update-preview-tokens.d.ts.map +1 -1
- package/dist/src/scripts/update-preview-tokens.js +7 -5
- package/dist/src/scripts/update-template.d.ts.map +1 -1
- package/dist/src/scripts/update-template.js +151 -280
- package/dist/src/tokens/build.js +7 -7
- package/dist/src/tokens/create/generators/$designsystemet.js +7 -7
- package/dist/src/tokens/create/write.js +7 -7
- package/dist/src/tokens/format.js +7 -7
- package/dist/src/tokens/index.js +7 -7
- package/dist/src/tokens/process/output/declarations.js +7 -7
- package/dist/src/tokens/process/output/theme.js +7 -7
- package/package.json +8 -8
|
@@ -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.
|
|
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.
|
|
928
|
-
commander: "^14.0.
|
|
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.
|
|
936
|
-
zod: "^4.3.
|
|
937
|
-
"zod-validation-error": "^
|
|
935
|
+
"style-dictionary": "^5.2.0",
|
|
936
|
+
zod: "^4.3.6",
|
|
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": "^
|
|
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.
|
|
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.
|
|
2512
|
-
commander: "^14.0.
|
|
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.
|
|
2520
|
-
zod: "^4.3.
|
|
2521
|
-
"zod-validation-error": "^
|
|
2519
|
+
"style-dictionary": "^5.2.0",
|
|
2520
|
+
zod: "^4.3.6",
|
|
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": "^
|
|
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;
|
|
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(
|
|
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
|
-
|
|
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:
|
|
3573
|
-
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-template.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-template.d.ts","sourceRoot":"","sources":["../../../src/scripts/update-template.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,eAAe,qBA0F3B,CAAC"}
|