@digdir/designsystemet 0.1.0-next.21 → 0.1.0-next.22
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 +2 -2
- package/dist/src/migrations/codemods/css/plugins.js +14 -15
- package/dist/src/migrations/codemods/jsx/classname-prefix.js +8 -7
- package/dist/src/tokens/actions.js +1 -1
- package/dist/src/tokens/build.js +26 -15
- package/dist/src/tokens/configs.js +20 -16
- package/dist/src/tokens/formats/css.js +36 -23
- package/dist/src/tokens/formats/js-tokens.js +8 -4
- package/dist/src/tokens/transformers.js +7 -3
- package/dist/src/tokens/utils/entryfile.js +31 -0
- package/dist/src/tokens/utils/permutateThemes.js +2 -2
- package/dist/src/tokens/utils/utils.js +11 -0
- package/dist/types/bin/designsystemet.d.ts +3 -0
- package/dist/types/bin/designsystemet.d.ts.map +1 -0
- package/dist/types/src/colors/colorUtils.d.ts +126 -0
- package/dist/types/src/colors/colorUtils.d.ts.map +1 -0
- package/dist/types/src/colors/index.d.ts +4 -0
- package/dist/types/src/colors/index.d.ts.map +1 -0
- package/dist/types/src/colors/themeUtils.d.ts +102 -0
- package/dist/types/src/colors/themeUtils.d.ts.map +1 -0
- package/dist/types/src/colors/types.d.ts +16 -0
- package/dist/types/src/colors/types.d.ts.map +1 -0
- package/dist/types/src/init/createTokensPackage.d.ts +5 -0
- package/dist/types/src/init/createTokensPackage.d.ts.map +1 -0
- package/dist/types/src/init/generateMetadataJson.d.ts +6 -0
- package/dist/types/src/init/generateMetadataJson.d.ts.map +1 -0
- package/dist/types/src/init/generateThemesJson.d.ts +3 -0
- package/dist/types/src/init/generateThemesJson.d.ts.map +1 -0
- package/dist/types/src/init/index.d.ts +3 -0
- package/dist/types/src/init/index.d.ts.map +1 -0
- package/dist/types/src/init/nextStepsMarkdown.d.ts +3 -0
- package/dist/types/src/init/nextStepsMarkdown.d.ts.map +1 -0
- package/dist/types/src/init/template/prettier.config.d.mts +9 -0
- package/dist/types/src/init/template/prettier.config.d.mts.map +1 -0
- package/dist/types/src/init/utils.d.ts +4 -0
- package/dist/types/src/init/utils.d.ts.map +1 -0
- package/dist/types/src/migrations/beta-to-v1.d.ts +3 -0
- package/dist/types/src/migrations/beta-to-v1.d.ts.map +1 -0
- package/dist/types/src/migrations/codemods/css/plugins.d.ts +6 -0
- package/dist/types/src/migrations/codemods/css/plugins.d.ts.map +1 -0
- package/dist/types/src/migrations/codemods/css/run.d.ts +8 -0
- package/dist/types/src/migrations/codemods/css/run.d.ts.map +1 -0
- package/dist/types/src/migrations/codemods/jsx/classname-prefix.d.ts +10 -0
- package/dist/types/src/migrations/codemods/jsx/classname-prefix.d.ts.map +1 -0
- package/dist/types/src/migrations/codemods/jsx/run.d.ts +7 -0
- package/dist/types/src/migrations/codemods/jsx/run.d.ts.map +1 -0
- package/dist/types/src/migrations/index.d.ts +6 -0
- package/dist/types/src/migrations/index.d.ts.map +1 -0
- package/dist/types/src/migrations/react-beta-to-v1.d.ts +3 -0
- package/dist/types/src/migrations/react-beta-to-v1.d.ts.map +1 -0
- package/dist/types/src/tokens/actions.d.ts +6 -0
- package/dist/types/src/tokens/actions.d.ts.map +1 -0
- package/dist/types/src/tokens/build.d.ts +11 -0
- package/dist/types/src/tokens/build.d.ts.map +1 -0
- package/dist/types/src/tokens/configs.d.ts +31 -0
- package/dist/types/src/tokens/configs.d.ts.map +1 -0
- package/dist/types/src/tokens/formats/css.d.ts +5 -0
- package/dist/types/src/tokens/formats/css.d.ts.map +1 -0
- package/dist/types/src/tokens/formats/js-tokens.d.ts +6 -0
- package/dist/types/src/tokens/formats/js-tokens.d.ts.map +1 -0
- package/dist/types/src/tokens/transformers.d.ts +5 -0
- package/dist/types/src/tokens/transformers.d.ts.map +1 -0
- package/dist/types/src/tokens/utils/entryfile.d.ts +11 -0
- package/dist/types/src/tokens/utils/entryfile.d.ts.map +1 -0
- package/dist/types/src/tokens/utils/noCase.d.ts +11 -0
- package/dist/types/src/tokens/utils/noCase.d.ts.map +1 -0
- package/dist/types/src/tokens/utils/permutateThemes.d.ts +17 -0
- package/dist/types/src/tokens/utils/permutateThemes.d.ts.map +1 -0
- package/dist/types/src/tokens/utils/utils.d.ts +25 -0
- package/dist/types/src/tokens/utils/utils.d.ts.map +1 -0
- package/package.json +24 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digdir/designsystemet",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.22",
|
|
4
4
|
"description": "CLI for Designsystemet",
|
|
5
5
|
"author": "Designsystemet team",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
],
|
|
17
17
|
"bin": "dist/bin/designsystemet.js",
|
|
18
18
|
"exports": {
|
|
19
|
-
"./color":
|
|
19
|
+
"./color": {
|
|
20
|
+
"types": "./dist/types/src/colors/index.d.ts",
|
|
21
|
+
"import": "./dist/src/colors/index.js"
|
|
22
|
+
}
|
|
20
23
|
},
|
|
21
24
|
"publishConfig": {
|
|
22
25
|
"access": "public"
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
"designsystemet": "tsx ./bin/designsystemet.ts",
|
|
26
29
|
"build:tokens": "yarn clean:theme && yarn designsystemet tokens -p -t ../../design-tokens -o ../../packages/theme/brand",
|
|
27
30
|
"build:tokens:debug": "yarn clean:theme && tsx --inspect-brk ./bin/designsystemet.ts tokens -p -t ../../design-tokens -o ../../packages/theme/brand",
|
|
28
|
-
"build": "tsup",
|
|
31
|
+
"build": "tsup && yarn build:types",
|
|
29
32
|
"build:swc": "yarn clean && swc src bin --copy-files -d dist && yarn build:types",
|
|
30
33
|
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
31
34
|
"clean": "rimraf dist",
|
|
@@ -33,37 +36,36 @@
|
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@adobe/leonardo-contrast-colors": "^1.0.0",
|
|
36
|
-
"@commander-js/extra-typings": "^12.0
|
|
37
|
-
"@tokens-studio/sd-transforms": "
|
|
39
|
+
"@commander-js/extra-typings": "^12.1.0",
|
|
40
|
+
"@tokens-studio/sd-transforms": "1.2.2",
|
|
38
41
|
"apca-w3": "^0.1.9",
|
|
39
42
|
"chalk": "^5.3.0",
|
|
40
|
-
"change-case": "^5.
|
|
41
|
-
"chroma-js": "^2.
|
|
42
|
-
"commander": "^12.
|
|
43
|
+
"change-case": "^5.4.4",
|
|
44
|
+
"chroma-js": "^2.6.0",
|
|
45
|
+
"commander": "^12.1.0",
|
|
43
46
|
"fast-glob": "^3.3.2",
|
|
44
47
|
"hsluv": "^1.0.1",
|
|
45
|
-
"jscodeshift": "^0.
|
|
48
|
+
"jscodeshift": "^0.16.1",
|
|
46
49
|
"object-hash": "^3.0.0",
|
|
47
|
-
"postcss": "^8.4.
|
|
48
|
-
"prompts": "^2.4.
|
|
49
|
-
"ramda": "^0.
|
|
50
|
-
"rimraf": "^
|
|
51
|
-
"style-dictionary": "^4.0.
|
|
50
|
+
"postcss": "^8.4.41",
|
|
51
|
+
"prompts": "^2.4.2",
|
|
52
|
+
"ramda": "^0.30.1",
|
|
53
|
+
"rimraf": "^6.0.1",
|
|
54
|
+
"style-dictionary": "^4.0.1"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
|
-
"@swc/cli": "^0.3.14",
|
|
55
|
-
"@swc/core": "^1.6.5",
|
|
56
57
|
"@types/apca-w3": "^0.1.3",
|
|
57
58
|
"@types/fs-extra": "^11.0.4",
|
|
58
59
|
"@types/glob": "^8.1.0",
|
|
59
60
|
"@types/jscodeshift": "^0.11.11",
|
|
60
|
-
"@types/node": "^
|
|
61
|
-
"@types/object-hash": "^3",
|
|
61
|
+
"@types/node": "^22.1.0",
|
|
62
|
+
"@types/object-hash": "^3.0.6",
|
|
62
63
|
"@types/prompts": "^2.4.9",
|
|
63
|
-
"@types/ramda": "^0.
|
|
64
|
+
"@types/ramda": "^0.30.1",
|
|
64
65
|
"fs-extra": "^11.2.0",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"tslib": "^2.6.3",
|
|
67
|
+
"tsup": "^8.2.4",
|
|
68
|
+
"tsx": "^4.16.5",
|
|
69
|
+
"typescript": "^5.5.4"
|
|
68
70
|
}
|
|
69
71
|
}
|