@digdir/designsystemet 0.0.8 → 0.0.10

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.
Files changed (38) hide show
  1. package/dist/build/src/codemods/css/plugins.js +45 -0
  2. package/dist/build/src/codemods/css/run.js +17 -0
  3. package/dist/build/src/codemods/jsx/classname-prefix.js +80 -0
  4. package/dist/build/src/migrations/beta-to-v1.js +281 -0
  5. package/dist/build/src/migrations/index.js +2 -8
  6. package/dist/build/src/test/jsx-test.js +10 -0
  7. package/dist/build/src/tokens/build.js +6 -2
  8. package/dist/build/src/tokens/formatters.js +3 -2
  9. package/dist/build/tsconfig.tsbuildinfo +1 -1
  10. package/dist/types/src/codemods/css/plugins.d.ts +6 -0
  11. package/dist/types/src/codemods/css/plugins.d.ts.map +1 -0
  12. package/dist/types/src/codemods/css/run.d.ts +8 -0
  13. package/dist/types/src/codemods/css/run.d.ts.map +1 -0
  14. package/dist/types/src/codemods/jsx/classname-prefix.d.ts +10 -0
  15. package/dist/types/src/codemods/jsx/classname-prefix.d.ts.map +1 -0
  16. package/dist/types/src/migrations/{light-dark.d.ts → beta-to-v1.d.ts} +1 -1
  17. package/dist/types/src/migrations/beta-to-v1.d.ts.map +1 -0
  18. package/dist/types/src/migrations/index.d.ts +1 -4
  19. package/dist/types/src/migrations/index.d.ts.map +1 -1
  20. package/dist/types/src/test/jsx-test.d.ts +4 -0
  21. package/dist/types/src/test/jsx-test.d.ts.map +1 -0
  22. package/dist/types/src/tokens/build.d.ts.map +1 -1
  23. package/dist/types/src/tokens/formatters.d.ts.map +1 -1
  24. package/package.json +10 -5
  25. package/dist/build/src/codemods/css-var-codemod.js +0 -36
  26. package/dist/build/src/migrations/light-dark.js +0 -22
  27. package/dist/build/src/migrations/prefix-ds.js +0 -7
  28. package/dist/build/src/migrations/release-v1.js +0 -5
  29. package/dist/build/src/migrations/tokens-v2.js +0 -210
  30. package/dist/types/src/codemods/css-var-codemod.d.ts +0 -7
  31. package/dist/types/src/codemods/css-var-codemod.d.ts.map +0 -1
  32. package/dist/types/src/migrations/light-dark.d.ts.map +0 -1
  33. package/dist/types/src/migrations/prefix-ds.d.ts +0 -3
  34. package/dist/types/src/migrations/prefix-ds.d.ts.map +0 -1
  35. package/dist/types/src/migrations/release-v1.d.ts +0 -3
  36. package/dist/types/src/migrations/release-v1.d.ts.map +0 -1
  37. package/dist/types/src/migrations/tokens-v2.d.ts +0 -3
  38. package/dist/types/src/migrations/tokens-v2.d.ts.map +0 -1
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'postcss';
2
+ type PluginGenerator = (dictionary: Record<string, string>) => Plugin;
3
+ export declare const cssClassRename: PluginGenerator;
4
+ export declare const cssVarRename: PluginGenerator;
5
+ export {};
6
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/codemods/css/plugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,SAAS,CAAC;AAInD,KAAK,eAAe,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;AAOtE,eAAO,MAAM,cAAc,EAAE,eAe3B,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,eA6BzB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { AcceptedPlugin } from 'postcss';
2
+ type CssCodemodProps = {
3
+ plugins: AcceptedPlugin[];
4
+ globPattern?: string;
5
+ };
6
+ export declare const runCssCodemod: ({ plugins, globPattern }: CssCodemodProps) => Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../../src/codemods/css/run.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,6BAAwD,eAAe,kBAkBhG,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { API, FileInfo } from 'jscodeshift';
2
+ /**
3
+ * Replace all class prefixes from 'fds-' to 'ds-'
4
+ * @param file
5
+ * @param api
6
+ * @returns
7
+ */
8
+ declare function replaceClassNamePrefix(file: FileInfo, api: API): string | undefined;
9
+ export default replaceClassNamePrefix;
10
+ //# sourceMappingURL=classname-prefix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classname-prefix.d.ts","sourceRoot":"","sources":["../../../../../src/codemods/jsx/classname-prefix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAmB,MAAM,aAAa,CAAC;AAoElE;;;;;GAKG;AACH,iBAAS,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAiB5E;AAED,eAAe,sBAAsB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  declare const _default: (glob?: string) => Promise<void>;
2
2
  export default _default;
3
- //# sourceMappingURL=light-dark.d.ts.map
3
+ //# sourceMappingURL=beta-to-v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta-to-v1.d.ts","sourceRoot":"","sources":["../../../../src/migrations/beta-to-v1.ts"],"names":[],"mappings":"gCAGuB,MAAM;AAA7B,wBAuRK"}
@@ -1,8 +1,5 @@
1
1
  declare const _default: {
2
- 'tokens-rename-light-dark': (glob?: string | undefined) => Promise<void>;
3
- 'tokens-v2': (glob?: string | undefined) => Promise<void>;
4
- 'css-prefix-ds': (glob?: string | undefined) => Promise<void>;
5
- 'release-v1': (glob?: string | undefined) => Promise<[void, void]>;
2
+ 'beta-to-v1': (glob?: string | undefined) => Promise<void>;
6
3
  };
7
4
  export default _default;
8
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/migrations/index.ts"],"names":[],"mappings":";;;;;;AAKA,wBAKE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/migrations/index.ts"],"names":[],"mappings":";;;AAEA,wBAEE"}
@@ -0,0 +1,4 @@
1
+ export default function JsxTest({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=jsx-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-test.d.ts","sourceRoot":"","sources":["../../../../src/test/jsx-test.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CA2BpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/tokens/build.ts"],"names":[],"mappings":"AA2GA,KAAK,OAAO,GAAG;IACb,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAIF,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAwEzD"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/tokens/build.ts"],"names":[],"mappings":"AAkHA,KAAK,OAAO,GAAG;IACb,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAIF,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAwEzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../src/tokens/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKvE;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MA2DtC,CAAC;AAWF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAyB3B,CAAC"}
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../src/tokens/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKvE;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MA6DtC,CAAC;AAWF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAyB3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "repository": {
@@ -19,14 +19,15 @@
19
19
  "prepublish": "yarn clean && tsc",
20
20
  "prepublish:tsup": "yarn clean && tsup src/**/*.ts bin/designsystemet.ts --cjsInterop --shims --format esm",
21
21
  "clean": "rimraf dist",
22
- "clean:theme": "yarn workspace @digdir/designsystemet-theme clean"
22
+ "clean:theme": "yarn workspace @digdir/designsystemet-theme clean",
23
+ "css-classes": "yarn designsystemet css-names",
24
+ "jscodeshift": "jscodeshift -t ./src/codemods/jsx/classname-prefix.ts ./src/test/**/* --extensions=tsx --parser=tsx",
25
+ "jscodeshift-react": "jscodeshift -t ./src/codemods/jsx/classname-prefix.ts ../../packages/react/src/components/Button/**/* --extensions=tsx --parser=tsx"
23
26
  },
24
27
  "files": [
25
28
  "./dist/**"
26
29
  ],
27
- "bin": {
28
- "designsystemet": "dist/build/bin/designsystemet.js"
29
- },
30
+ "bin": "dist/build/bin/designsystemet.js",
30
31
  "dependencies": {
31
32
  "@commander-js/extra-typings": "^12.0.1",
32
33
  "@tokens-studio/sd-transforms": "^0.16.0",
@@ -37,6 +38,8 @@
37
38
  "commander": "^12.0.0",
38
39
  "esno": "^4.7.0",
39
40
  "fast-glob": "^3.3.2",
41
+ "jscodeshift": "^0.15.2",
42
+ "object-hash": "^3.0.0",
40
43
  "postcss": "^8.4.38",
41
44
  "ramda": "^0.29.1",
42
45
  "rimraf": "^5.0.5",
@@ -44,6 +47,8 @@
44
47
  "tsup": "^8.0.2"
45
48
  },
46
49
  "devDependencies": {
50
+ "@types/jscodeshift": "^0.11.11",
51
+ "@types/object-hash": "^3",
47
52
  "typescript": "^5.4.5"
48
53
  }
49
54
  }
@@ -1,36 +0,0 @@
1
- import fs from 'fs';
2
- import * as R from 'ramda';
3
- import postcss from 'postcss';
4
- import glob from 'fast-glob';
5
- export const cssVarCodemod = async ({ dictionary, globPath = './**/*.css' }) => {
6
- const transformPlugin = {
7
- postcssPlugin: 'Replaces referenced CSS variables',
8
- Declaration(decl) {
9
- Object.keys(dictionary).forEach((key) => {
10
- const newValue = dictionary[key];
11
- if (R.isEmpty(newValue)) {
12
- //console.log(`Skipping "${key}"; missing new value`);
13
- }
14
- if (newValue === '[delete]') {
15
- //console.log(`Found delete token "${key}"`);
16
- }
17
- if (decl.value.includes(key) && !R.isEmpty(newValue)) {
18
- decl.value = decl.value.replace(key, newValue);
19
- }
20
- });
21
- },
22
- };
23
- const plugins = [transformPlugin];
24
- const processor = postcss(plugins);
25
- const transform = async () => {
26
- const files = await glob(globPath, { ignore: ['node_modules/**'] });
27
- const filePromises = files.map(async (file) => {
28
- const contents = fs.readFileSync(file).toString();
29
- const result = await processor.process(contents, { from: undefined });
30
- fs.writeFileSync(file, result.css);
31
- });
32
- await Promise.all(filePromises);
33
- };
34
- // Run the transform.
35
- void transform();
36
- };
@@ -1,22 +0,0 @@
1
- import { cssVarCodemod } from '../codemods/css-var-codemod.js';
2
- export default (glob) => cssVarCodemod({
3
- globPath: glob,
4
- dictionary: {
5
- '--fds-semantic-surface-first-light': '--fds-semantic-surface-first-subtle',
6
- '--fds-semantic-surface-first-light-hover': '--fds-semantic-surface-first-subtle-hover',
7
- '--fds-semantic-surface-first-light-active': '--fds-semantic-surface-first-subtle-active',
8
- '--fds-semantic-surface-first-dark': '--fds-semantic-surface-first-strong',
9
- '--fds-semantic-surface-second-light': '--fds-semantic-surface-second-subtle',
10
- '--fds-semantic-surface-second-light-hover': '--fds-semantic-surface-second-subtle-hover',
11
- '--fds-semantic-surface-second-light-active': '--fds-semantic-surface-second-subtle-active',
12
- '--fds-semantic-surface-second-dark': '--fds-semantic-surface-second-strong',
13
- '--fds-semantic-surface-third-light': '--fds-semantic-surface-third-subtle',
14
- '--fds-semantic-surface-third-light-hover': '--fds-semantic-surface-third-subtle-hover',
15
- '--fds-semantic-surface-third-light-active': '--fds-semantic-surface-third-subtle-active',
16
- '--fds-semantic-surface-third-dark': '--fds-semantic-surface-third-strong',
17
- '--fds-semantic-surface-neutral-dark': '--fds-semantic-surface-neutral-strong',
18
- '--fds-semantic-surface-neutral-dark-hover': '--fds-semantic-surface-neutral-strong-hover',
19
- '--fds-semantic-border-action-dark': '--fds-semantic-border-action-strong',
20
- '--fds-semantic-border-action-dark-hover': '--fds-semantic-border-action-strong-hover',
21
- },
22
- });
@@ -1,7 +0,0 @@
1
- import { cssVarCodemod } from '../codemods/css-var-codemod.js';
2
- export default (glob) => cssVarCodemod({
3
- globPath: glob,
4
- dictionary: {
5
- '--fds': '--ds',
6
- },
7
- });
@@ -1,5 +0,0 @@
1
- import tokensv2 from './tokens-v2.js';
2
- import prefixDs from './prefix-ds.js';
3
- export default (glob) => {
4
- return Promise.all([tokensv2(glob), prefixDs(glob)]);
5
- };
@@ -1,210 +0,0 @@
1
- import { cssVarCodemod } from '../codemods/css-var-codemod.js';
2
- export default (glob) => cssVarCodemod({
3
- globPath: glob,
4
- dictionary: {
5
- '--fds-semantic-surface-first-light': '--fds-color-brand1-surface-default',
6
- '--fds-semantic-surface-first-light-hover': '--fds-color-brand1-surface-hover',
7
- '--fds-semantic-surface-first-light-active': '--fds-color-brand1-surface-active',
8
- '--fds-semantic-surface-first-dark': '',
9
- '--fds-semantic-surface-second-light': '--fds-color-brand2-surface-default',
10
- '--fds-semantic-surface-second-light-hover': '--fds-color-brand2-surface-hover',
11
- '--fds-semantic-surface-second-light-active': '--fds-color-brand2-surface-active',
12
- '--fds-semantic-surface-second-dark': '',
13
- '--fds-semantic-surface-third-light': '--fds-color-brand3-surface-default',
14
- '--fds-semantic-surface-third-light-hover': '--fds-color-brand3-surface-hover',
15
- '--fds-semantic-surface-third-light-active': '--fds-color-brand3-surface-active',
16
- '--fds-semantic-surface-third-dark': '',
17
- '--fds-semantic-surface-action-first-subtle': '--fds-color-accent-surface-default',
18
- '--fds-semantic-surface-action-first-subtle-hover': '--fds-color-accent-surface-hover',
19
- '--fds-semantic-surface-action-first-default': '--fds-color-accent-base-default',
20
- '--fds-semantic-surface-action-first-hover': '--fds-color-accent-base-hover',
21
- '--fds-semantic-surface-action-first-active': '--fds-color-accent-base-active',
22
- '--fds-semantic-surface-action-first-no_fill': '--fds-color-accent-contrast-first',
23
- '--fds-semantic-surface-action-first-no_fill-hover': '--fds-color-accent-surface-default',
24
- '--fds-semantic-surface-action-first-no_fill-active': '--fds-color-accent-surface-hover',
25
- '--fds-semantic-surface-action-second-subtle': '--fds-color-accent-surface-default',
26
- '--fds-semantic-surface-action-second-subtle-hover': '--fds-color-accent-surface-hover',
27
- '--fds-semantic-surface-action-second-default': '--fds-color-accent-base-default',
28
- '--fds-semantic-surface-action-second-hover': '--fds-color-accent-base-hover',
29
- '--fds-semantic-surface-action-second-active': '--fds-color-accent-base-active',
30
- '--fds-semantic-surface-action-second-no_fill': '--fds-color-accent-contrast-first',
31
- '--fds-semantic-surface-action-second-no_fill-hover': '--fds-color-accent-surface-default',
32
- '--fds-semantic-surface-action-second-no_fill-active': '--fds-color-accent-surface-hover',
33
- '--fds-semantic-surface-action-subtle': '--fds-color-accent-surface-default',
34
- '--fds-semantic-surface-action-subtle-hover': '--fds-color-accent-surface-hover',
35
- '--fds-semantic-surface-action-default': '--fds-color-accent-base-default',
36
- '--fds-semantic-surface-action-hover': '--fds-color-accent-base-hover',
37
- '--fds-semantic-surface-action-active': '--fds-color-accent-base-active',
38
- '--fds-semantic-surface-action-no_fill': '--fds-color-accent-contrast-first',
39
- '--fds-semantic-surface-action-no_fill-hover': '--fds-color-accent-surface-default',
40
- '--fds-semantic-surface-action-no_fill-active': '--fds-color-accent-surface-hover',
41
- '--fds-semantic-surface-action-checked': '--fds-color-accent-base-default',
42
- '--fds-semantic-surface-neutral-default': '--fds-color-neutral-background-default',
43
- '--fds-semantic-surface-neutral-selected': '',
44
- '--fds-semantic-surface-neutral-subtle': '--fds-color-neutral-background-subtle',
45
- '--fds-semantic-surface-neutral-subtle-hover': '--fds-color-neutral-surface-default',
46
- '--fds-semantic-surface-neutral-dark': '--fds-color-neutral-base-default',
47
- '--fds-semantic-surface-neutral-dark-hover': '--fds-color-neutral-base-hover',
48
- '--fds-semantic-surface-neutral-inverted': '',
49
- '--fds-semantic-surface-success-subtle': '--fds-color-success-surface-default',
50
- '--fds-semantic-surface-success-subtle-hover': '--fds-color-success-surface-hover',
51
- '--fds-semantic-surface-success-default': '--fds-color-success-base-default',
52
- '--fds-semantic-surface-success-hover': '--fds-color-success-base-hover',
53
- '--fds-semantic-surface-success-active': '--fds-color-success-base-active',
54
- '--fds-semantic-surface-success-no_fill': '--fds-color-success-contrast-first',
55
- '--fds-semantic-surface-success-no_fill-hover': '--fds-color-success-surface-default',
56
- '--fds-semantic-surface-success-no_fill-active': '--fds-color-success-surface-hover',
57
- '--fds-semantic-surface-warning-subtle': '--fds-color-warning-surface-default',
58
- '--fds-semantic-surface-warning-subtle-hover': '--fds-color-warning-surface-hover',
59
- '--fds-semantic-surface-warning-default': '--fds-color-warning-base-default',
60
- '--fds-semantic-surface-warning-default-hover': '--fds-color-warning-base-hover',
61
- '--fds-semantic-surface-danger-subtle': '--fds-color-danger-surface-default',
62
- '--fds-semantic-surface-danger-subtle-hover': '--fds-color-danger-surface-hover',
63
- '--fds-semantic-surface-danger-default': '--fds-color-danger-base-default',
64
- '--fds-semantic-surface-danger-hover': '--fds-color-danger-base-hover',
65
- '--fds-semantic-surface-danger-active': '--fds-color-danger-base-active',
66
- '--fds-semantic-surface-danger-no_fill': '--fds-color-danger-contrast-first',
67
- '--fds-semantic-surface-danger-no_fill-hover': '--fds-color-danger-surface-default',
68
- '--fds-semantic-surface-danger-no_fill-active': '--fds-color-danger-surface-hover',
69
- '--fds-semantic-surface-info-subtle': '--fds-color-info-surface-default',
70
- '--fds-semantic-surface-info-subtle-hover': '--fds-color-info-surface-hover',
71
- '--fds-semantic-surface-on_inverted-default': '',
72
- '--fds-semantic-surface-on_inverted-hover': '',
73
- '--fds-semantic-surface-on_inverted-active': '',
74
- '--fds-semantic-surface-on_inverted-no_fill': '',
75
- '--fds-semantic-surface-on_inverted-no_fill-hover': '',
76
- '--fds-semantic-surface-on_inverted-no_fill-active': '',
77
- '--fds-semantic-surface-focus-default': '',
78
- '--fds-semantic-border-first-default': '--fds-color-brand1-base-default',
79
- '--fds-semantic-border-first-hover': '--fds-color-brand1-base-hover',
80
- '--fds-semantic-border-first-active': '--fds-color-brand1-base-active',
81
- '--fds-semantic-border-second-default': '--fds-color-brand2-base-default',
82
- '--fds-semantic-border-second-hover': '--fds-color-brand2-base-hover',
83
- '--fds-semantic-border-second-active': '--fds-color-brand2-base-active',
84
- '--fds-semantic-border-third-default': '--fds-color-brand3-base-default',
85
- '--fds-semantic-border-third-hover': '--fds-color-brand3-base-hover',
86
- '--fds-semantic-border-third-active': '--fds-color-brand3-base-active',
87
- '--fds-semantic-border-action-first-subtle': '--fds-color-accent-border-subtle',
88
- '--fds-semantic-border-action-first-subtle-hover': '--fds-color-accent-border-default',
89
- '--fds-semantic-border-action-first-default': '--fds-color-accent-base-default',
90
- '--fds-semantic-border-action-first-hover': '--fds-color-accent-base-hover',
91
- '--fds-semantic-border-action-first-active': '--fds-color-accent-base-active',
92
- '--fds-semantic-border-action-second-subtle': '--fds-color-accent-border-subtle',
93
- '--fds-semantic-border-action-second-subtle-hover': '--fds-color-accent-border-default',
94
- '--fds-semantic-border-action-second-default': '--fds-color-accent-base-default',
95
- '--fds-semantic-border-action-second-hover': '--fds-color-accent-base-hover',
96
- '--fds-semantic-border-action-second-active': '--fds-color-accent-base-active',
97
- '--fds-semantic-border-action-subtle': '--fds-color-accent-border-subtle',
98
- '--fds-semantic-border-action-subtle-hover': '--fds-color-accent-border-default',
99
- '--fds-semantic-border-action-default': '--fds-color-accent-base-default',
100
- '--fds-semantic-border-action-hover': '--fds-color-accent-base-hover',
101
- '--fds-semantic-border-action-active': '--fds-color-accent-base-active',
102
- '--fds-semantic-border-action-dark': '',
103
- '--fds-semantic-border-action-dark-hover': '',
104
- '--fds-semantic-border-info-default': '',
105
- '--fds-semantic-border-neutral-default': '',
106
- '--fds-semantic-border-neutral-subtle': '',
107
- '--fds-semantic-border-neutral-strong': '',
108
- '--fds-semantic-border-success-default': '',
109
- '--fds-semantic-border-success-hover': '',
110
- '--fds-semantic-border-success-active': '',
111
- '--fds-semantic-border-warning-default': '',
112
- '--fds-semantic-border-warning-hover': '',
113
- '--fds-semantic-border-warning-active': '',
114
- '--fds-semantic-border-danger-default': '',
115
- '--fds-semantic-border-danger-hover': '',
116
- '--fds-semantic-border-danger-active': '',
117
- '--fds-semantic-border-focus-outline': '',
118
- '--fds-semantic-border-focus-boxshadow': '',
119
- '--fds-semantic-border-on_inverted-default': '',
120
- '--fds-semantic-border-input-default': '',
121
- '--fds-semantic-border-input-hover': '',
122
- '--fds-semantic-border-divider-default': '',
123
- '--fds-semantic-border-divider-subtle': '',
124
- '--fds-semantic-border-divider-strong': '',
125
- '--fds-semantic-text-action-first-default': '',
126
- '--fds-semantic-text-action-first-hover': '',
127
- '--fds-semantic-text-action-first-active': '',
128
- '--fds-semantic-text-action-first-on_action': '',
129
- '--fds-semantic-text-action-second-default': '',
130
- '--fds-semantic-text-action-second-hover': '',
131
- '--fds-semantic-text-action-second-active': '',
132
- '--fds-semantic-text-action-second-on_action': '',
133
- '--fds-semantic-text-action-default': '',
134
- '--fds-semantic-text-action-hover': '',
135
- '--fds-semantic-text-action-active': '',
136
- '--fds-semantic-text-action-on_action': '',
137
- '--fds-semantic-text-success-default': '',
138
- '--fds-semantic-text-success-hover': '',
139
- '--fds-semantic-text-success-active': '',
140
- '--fds-semantic-text-success-on_success': '',
141
- '--fds-semantic-text-success-on_success_subtle': '',
142
- '--fds-semantic-text-neutral-default': '',
143
- '--fds-semantic-text-neutral-subtle': '',
144
- '--fds-semantic-text-neutral-on_inverted': '',
145
- '--fds-semantic-text-warning-default': '',
146
- '--fds-semantic-text-warning-icon_warning': '',
147
- '--fds-semantic-text-warning-on_warning': '',
148
- '--fds-semantic-text-danger-default': '',
149
- '--fds-semantic-text-danger-hover': '',
150
- '--fds-semantic-text-danger-active': '',
151
- '--fds-semantic-text-danger-on_danger': '',
152
- '--fds-semantic-text-danger-on_danger_subtle': '',
153
- '--fds-semantic-text-visited-default': '',
154
- '--fds-semantic-background-default': '',
155
- '--fds-semantic-background-subtle': '',
156
- '--fds-typography-heading-2xlarge': '',
157
- '--fds-typography-heading-xlarge': '',
158
- '--fds-typography-heading-large': '',
159
- '--fds-typography-heading-medium': '',
160
- '--fds-typography-heading-small': '',
161
- '--fds-typography-heading-xsmall': '',
162
- '--fds-typography-heading-xxsmall': '',
163
- '--fds-typography-ingress-large': '',
164
- '--fds-typography-ingress-medium': '',
165
- '--fds-typography-ingress-small': '',
166
- '--fds-typography-ingress-xsmall': '',
167
- '--fds-typography-paragraph-large': '',
168
- '--fds-typography-paragraph-medium': '',
169
- '--fds-typography-paragraph-small': '',
170
- '--fds-typography-paragraph-xsmall': '',
171
- '--fds-typography-paragraph-short-large': '',
172
- '--fds-typography-paragraph-short-medium': '',
173
- '--fds-typography-paragraph-short-small': '',
174
- '--fds-typography-paragraph-short-xsmall': '',
175
- '--fds-typography-paragraph-long-large': '',
176
- '--fds-typography-paragraph-long-medium': '',
177
- '--fds-typography-paragraph-long-small': '',
178
- '--fds-typography-paragraph-long-xsmall': '',
179
- '--fds-typography-label-large': '',
180
- '--fds-typography-label-medium': '',
181
- '--fds-typography-label-small': '',
182
- '--fds-typography-label-xsmall': '',
183
- '--fds-typography-error_message-large': '',
184
- '--fds-typography-error_message-medium': '',
185
- '--fds-typography-error_message-small': '',
186
- '--fds-typography-error_message-xsmall': '',
187
- '--fds-typography-interactive-large': '--fds-typography-paragraph-short-large',
188
- '--fds-typography-interactive-medium': '--fds-typography-paragraph-short-medium',
189
- '--fds-typography-interactive-small': '--fds-typography-paragraph-short-small',
190
- '--fds-border_radius-interactive': '--fds-border-radius-md',
191
- '--fds-border_radius-small': '--fds-border-radius-sm',
192
- '--fds-border_radius-medium': '--fds-border-radius-md',
193
- '--fds-border_radius-large': '--fds-border-radius-lg',
194
- '--fds-border_radius-xlarge': '--fds-border-radius-xl',
195
- '--fds-border_radius-xxlarge': '--fds-border-radius-2xl',
196
- '--fds-border_radius-xxxlarge': '--fds-border-radius-3xl',
197
- '--fds-border_radius-xxxxlarge': '--fds-border-radius-4xl',
198
- '--fds-border_radius-full': '--fds-border-radius-full',
199
- '--fds-base_spacing': '[delete]',
200
- '--fds-base_sizing': '[delete]',
201
- '--fds-border_width-default': '--fds-border-width-default',
202
- '--fds-border_width-active': '--fds-border-width-active',
203
- '--fds-border_width-tab_focus': '--fds-border-width-tab_focus', // Skulle denne fjernes?
204
- '--fds-shadow-xsmall': '--fds-shadow-xs',
205
- '--fds-shadow-small': '--fds-shadow-sm',
206
- '--fds-shadow-medium': '--fds-shadow-md',
207
- '--fds-shadow-large': '--fds-shadow-lg',
208
- '--fds-shadow-xlarge': '--fds-shadow-xl',
209
- },
210
- });
@@ -1,7 +0,0 @@
1
- type CSSCodemodProps = {
2
- dictionary: Record<string, string>;
3
- globPath?: string;
4
- };
5
- export declare const cssVarCodemod: ({ dictionary, globPath }: CSSCodemodProps) => Promise<void>;
6
- export {};
7
- //# sourceMappingURL=css-var-codemod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-var-codemod.d.ts","sourceRoot":"","sources":["../../../../src/codemods/css-var-codemod.ts"],"names":[],"mappings":"AAOA,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,6BAAmD,eAAe,kBAyC3F,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"light-dark.d.ts","sourceRoot":"","sources":["../../../../src/migrations/light-dark.ts"],"names":[],"mappings":"gCAEuB,MAAM;AAA7B,wBAqBK"}
@@ -1,3 +0,0 @@
1
- declare const _default: (glob?: string) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=prefix-ds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefix-ds.d.ts","sourceRoot":"","sources":["../../../../src/migrations/prefix-ds.ts"],"names":[],"mappings":"gCAEuB,MAAM;AAA7B,wBAMK"}
@@ -1,3 +0,0 @@
1
- declare const _default: (glob?: string) => Promise<[void, void]>;
2
- export default _default;
3
- //# sourceMappingURL=release-v1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-v1.d.ts","sourceRoot":"","sources":["../../../../src/migrations/release-v1.ts"],"names":[],"mappings":"gCAGuB,MAAM;AAA7B,wBAEE"}
@@ -1,3 +0,0 @@
1
- declare const _default: (glob?: string) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=tokens-v2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens-v2.d.ts","sourceRoot":"","sources":["../../../../src/migrations/tokens-v2.ts"],"names":[],"mappings":"gCAEuB,MAAM;AAA7B,wBAiNK"}