@digdir/designsystemet 1.0.5 → 1.0.7
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/LICENSE +7 -0
- package/configs/digdir.config.json +59 -0
- package/configs/test-tokens.config.json +45 -0
- package/dist/bin/designsystemet.js +82 -88
- package/dist/config.schema.json +38 -27
- package/dist/src/colors/index.js +32 -0
- package/dist/src/colors/theme.js +1 -0
- package/dist/src/colors/utils.d.ts +13 -0
- package/dist/src/colors/utils.d.ts.map +1 -1
- package/dist/src/colors/utils.js +32 -0
- package/dist/src/config.d.ts +24 -176
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +23 -32
- package/dist/src/index.js +85 -50
- package/dist/src/migrations/beta-to-v1.js +2 -2
- package/dist/src/migrations/codemods/css/run.js +2 -2
- package/dist/src/migrations/color-rename-next49.js +2 -2
- package/dist/src/migrations/index.js +2 -2
- package/dist/src/scripts/createJsonSchema.js +33 -1292
- package/dist/src/scripts/update-design-tokens.js +4 -4
- package/dist/src/scripts/update-template.js +7 -7
- package/dist/src/tokens/build.js +56 -53
- package/dist/src/tokens/create/generators/$designsystemet.js +27 -25
- package/dist/src/tokens/create/generators/$themes.js +10 -10
- package/dist/src/tokens/create/generators/color.js +1 -0
- package/dist/src/tokens/create/write.js +39 -37
- package/dist/src/tokens/create.js +1 -0
- package/dist/src/tokens/format.js +54 -50
- package/dist/src/tokens/index.js +54 -50
- package/dist/src/tokens/process/configs/color.js +26 -22
- package/dist/src/tokens/process/configs/semantic.js +16 -12
- package/dist/src/tokens/process/configs/shared.js +16 -12
- package/dist/src/tokens/process/configs/storefront.js +16 -12
- package/dist/src/tokens/process/configs/typography.js +16 -12
- package/dist/src/tokens/process/configs.js +26 -22
- package/dist/src/tokens/process/formats/css/color.js +16 -12
- package/dist/src/tokens/process/formats/css/semantic.js +16 -12
- package/dist/src/tokens/process/formats/css.js +16 -12
- package/dist/src/tokens/process/formats/js-tokens.js +16 -12
- package/dist/src/tokens/process/platform.js +26 -22
- package/dist/src/tokens/process/theme.d.ts.map +1 -1
- package/dist/src/tokens/process/theme.js +27 -28
- package/dist/src/tokens/process/transformers.js +16 -12
- package/dist/src/tokens/process/utils/getMultidimensionalThemes.js +26 -22
- package/dist/src/tokens/utils.d.ts +2 -2
- package/dist/src/tokens/utils.d.ts.map +1 -1
- package/dist/src/tokens/utils.js +16 -12
- package/dist/src/utils.js +1 -1
- package/package.json +35 -33
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digdir/designsystemet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "CLI for Designsystemet",
|
|
5
5
|
"author": "Designsystemet team",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=22.
|
|
7
|
+
"node": ">=22.16.0"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "./dist/src/index.js",
|
|
17
17
|
"files": [
|
|
18
|
-
"./dist/**"
|
|
18
|
+
"./dist/**",
|
|
19
|
+
"./configs/**"
|
|
19
20
|
],
|
|
20
21
|
"bin": "dist/bin/designsystemet.js",
|
|
21
22
|
"exports": {
|
|
@@ -32,58 +33,59 @@
|
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public"
|
|
34
35
|
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"designsystemet": "tsx ./bin/designsystemet.ts",
|
|
37
|
-
"build:tokens": "yarn designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
38
|
-
"build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
39
|
-
"build": "tsup && yarn build:types && yarn build:json-schema",
|
|
40
|
-
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
41
|
-
"build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
|
|
42
|
-
"types": "tsc --noEmit",
|
|
43
|
-
"test:tokens-create-options": "yarn designsystemet tokens create -m dominant:#007682 -n #003333 -b 99 -o ./test-tokens/options --theme options --clean",
|
|
44
|
-
"test:tokens-create-config": "yarn designsystemet tokens create --config ./test/test-tokens.config.json",
|
|
45
|
-
"test:tokens-build": "yarn designsystemet tokens build -t ./test-tokens/options -o ./test-tokens/options-build --clean",
|
|
46
|
-
"test:tokens-build-config": "yarn designsystemet tokens build -t ./test-tokens/config -o ./test-tokens/config-build --clean",
|
|
47
|
-
"test:tokens-create-and-build-options": "yarn test:tokens-create-options && yarn test:tokens-build",
|
|
48
|
-
"test:tokens-create-and-build-config": "yarn test:tokens-create-config && yarn test:tokens-build-config",
|
|
49
|
-
"test": "yarn test:tokens-create-and-build-options && yarn test:tokens-create-and-build-config",
|
|
50
|
-
"internal:tokens-create": "yarn designsystemet tokens create --config ./internal.config.json",
|
|
51
|
-
"update:template": "tsx ./src/scripts/update-template.ts",
|
|
52
|
-
"update:design-tokens": "yarn internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
|
|
53
|
-
"verify": "yarn test && yarn update:template && yarn update:design-tokens"
|
|
54
|
-
},
|
|
55
36
|
"dependencies": {
|
|
56
37
|
"@commander-js/extra-typings": "^13.1.0",
|
|
57
|
-
"@tokens-studio/sd-transforms": "1.
|
|
38
|
+
"@tokens-studio/sd-transforms": "1.3.0",
|
|
58
39
|
"apca-w3": "^0.1.9",
|
|
59
40
|
"chalk": "^5.4.1",
|
|
60
41
|
"change-case": "^5.4.4",
|
|
61
42
|
"chroma-js": "^3.1.2",
|
|
43
|
+
"colorjs.io": "^0.6.0-alpha.1",
|
|
62
44
|
"commander": "^13.1.0",
|
|
63
45
|
"fast-glob": "^3.3.3",
|
|
64
46
|
"hsluv": "^1.0.1",
|
|
65
47
|
"object-hash": "^3.0.0",
|
|
66
48
|
"postcss": "^8.5.3",
|
|
67
49
|
"ramda": "^0.30.1",
|
|
68
|
-
"style-dictionary": "^4.
|
|
69
|
-
"zod": "^3.
|
|
70
|
-
"zod-validation-error": "^3.4.
|
|
50
|
+
"style-dictionary": "^4.4.0",
|
|
51
|
+
"zod": "^3.25.30",
|
|
52
|
+
"zod-validation-error": "^3.4.1"
|
|
71
53
|
},
|
|
72
54
|
"devDependencies": {
|
|
55
|
+
"@tokens-studio/types": "0.5.2",
|
|
73
56
|
"@types/apca-w3": "^0.1.3",
|
|
74
57
|
"@types/chroma-js": "^3.1.1",
|
|
75
58
|
"@types/fs-extra": "^11.0.4",
|
|
76
59
|
"@types/glob": "^8.1.0",
|
|
77
60
|
"@types/jscodeshift": "^0.12.0",
|
|
78
|
-
"@types/node": "^22.
|
|
61
|
+
"@types/node": "^22.15.21",
|
|
79
62
|
"@types/object-hash": "^3.0.6",
|
|
80
63
|
"@types/ramda": "^0.30.2",
|
|
81
64
|
"fs-extra": "^11.3.0",
|
|
82
65
|
"ts-toolbelt": "^9.6.0",
|
|
83
66
|
"tslib": "^2.8.1",
|
|
84
|
-
"tsup": "^8.
|
|
85
|
-
"tsx": "^4.19.
|
|
86
|
-
"typescript": "^5.8.
|
|
87
|
-
|
|
67
|
+
"tsup": "^8.5.0",
|
|
68
|
+
"tsx": "^4.19.4",
|
|
69
|
+
"typescript": "^5.8.3"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"designsystemet": "tsx ./bin/designsystemet.ts",
|
|
73
|
+
"build:tokens": "pnpm run designsystemet tokens build -p -t ../../internal/design-tokens -o ../../packages/theme/brand --clean",
|
|
74
|
+
"build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../internal/design-tokens -o ../../packages/theme/brand --clean",
|
|
75
|
+
"build": "tsup && pnpm build:types && pnpm build:json-schema",
|
|
76
|
+
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
77
|
+
"build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
|
|
78
|
+
"types": "tsc --noEmit",
|
|
79
|
+
"test:tokens-create-options": "pnpm run designsystemet tokens create -m dominant:\"#007682\" -n \"#003333\" -b 99 -o ./temp/options/design-tokens --theme options --clean",
|
|
80
|
+
"test:tokens-create-config": "pnpm run designsystemet tokens create --config ./configs/test-tokens.config.json",
|
|
81
|
+
"test:tokens-build": "pnpm run designsystemet tokens build -t ./temp/options/design-tokens -o ./temp/options/build --clean",
|
|
82
|
+
"test:tokens-build-config": "pnpm run designsystemet tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean",
|
|
83
|
+
"test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
|
|
84
|
+
"test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",
|
|
85
|
+
"test": "pnpm test:tokens-create-and-build-options && pnpm test:tokens-create-and-build-config",
|
|
86
|
+
"digdir:tokens-create": "pnpm run designsystemet tokens create --config ./configs/digdir.config.json",
|
|
87
|
+
"update:template": "tsx ./src/scripts/update-template.ts",
|
|
88
|
+
"update:design-tokens": "pnpm digdir:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
|
|
89
|
+
"verify": "pnpm test && pnpm update:template && pnpm update:design-tokens"
|
|
88
90
|
}
|
|
89
|
-
}
|
|
91
|
+
}
|