@navikt/aksel 7.17.3 → 7.17.4

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 (31) hide show
  1. package/dist/codemod/codeshift.utils.js +30 -0
  2. package/dist/codemod/migrations.js +9 -12
  3. package/dist/codemod/run-codeshift.js +3 -17
  4. package/dist/codemod/transforms/darkside/prop-deprecate/prop-deprecate.js +32 -0
  5. package/dist/codemod/transforms/{darkside → spacing}/primitives-spacing/spacing.js +7 -6
  6. package/dist/codemod/transforms/spacing/spacing.utils.js +34 -0
  7. package/dist/codemod/transforms/{darkside → spacing}/token-spacing/spacing.js +2 -2
  8. package/dist/codemod/transforms/{darkside → spacing}/token-spacing-js/spacing.js +4 -3
  9. package/dist/codemod/transforms/v2.0.0/update-js-tokens/update-js-tokens.js +1 -1
  10. package/dist/codemod/{transforms/darkside/darkside.utils.js → utils/ast.js} +0 -32
  11. package/dist/darkside/config/TokenStatus.js +145 -0
  12. package/dist/darkside/config/darkside.tokens.js +398 -0
  13. package/dist/darkside/config/legacy-component.tokens.js +407 -0
  14. package/dist/{codemod/transforms/darkside/darkside.tokens.js → darkside/config/legacy.tokens.js} +390 -796
  15. package/dist/darkside/config/token-regex.js +52 -0
  16. package/dist/darkside/config/token.utils.js +57 -0
  17. package/dist/darkside/index.js +28 -0
  18. package/dist/darkside/run-tooling.js +220 -0
  19. package/dist/darkside/tasks/print-remaining.js +51 -0
  20. package/dist/darkside/tasks/status.js +122 -0
  21. package/dist/darkside/transforms/darkside-tokens-css.js +17 -0
  22. package/dist/darkside/transforms/darkside-tokens-js.js +51 -0
  23. package/dist/darkside/transforms/darkside-tokens-less.js +14 -0
  24. package/dist/darkside/transforms/darkside-tokens-scss.js +14 -0
  25. package/dist/darkside/transforms/darkside-tokens-tailwind.js +33 -0
  26. package/dist/help.js +5 -0
  27. package/dist/index.js +5 -0
  28. package/package.json +5 -2
  29. package/dist/codemod/transforms/darkside/darkside.test.js +0 -20
  30. package/dist/codemod/transforms/darkside/token-update/token-update.js +0 -110
  31. package/dist/codemod/transforms/darkside/token-update-js/token-update-js.js +0 -96
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GLOB_IGNORE_PATTERNS = void 0;
4
+ exports.getDefaultGlob = getDefaultGlob;
5
+ exports.cleanExtensions = cleanExtensions;
6
+ const GLOB_IGNORE_PATTERNS = [
7
+ "**/node_modules/**",
8
+ "**/dist/**",
9
+ "**/build/**",
10
+ "**/lib/**",
11
+ "**/.next/**",
12
+ "**/__snapshots__/**",
13
+ ];
14
+ exports.GLOB_IGNORE_PATTERNS = GLOB_IGNORE_PATTERNS;
15
+ /**
16
+ * Utility function to generate the default glob pattern
17
+ */
18
+ function getDefaultGlob(ext) {
19
+ const defaultExt = "js,ts,jsx,tsx,css,scss,less";
20
+ return `**/*.{${cleanExtensions(ext !== null && ext !== void 0 ? ext : defaultExt).join(",")}}`;
21
+ }
22
+ /**
23
+ * Utility function to clean file extensions
24
+ */
25
+ function cleanExtensions(ext) {
26
+ return ext
27
+ .split(",")
28
+ .map((e) => e.trim())
29
+ .map((e) => e.replace(".", ""));
30
+ }
@@ -89,31 +89,28 @@ exports.migrations = {
89
89
  warning: "Remember to update use of `variant`-prop to match previous use of colors. If needed the component exposes css-variables for custom overrides",
90
90
  },
91
91
  ],
92
- darkside: [
92
+ spacing: [
93
93
  {
94
94
  description: "Updates all Primitives to use new `space`-tokens. (Works with old and new system)",
95
95
  value: "primitive-spacing",
96
- path: "darkside/primitives-spacing/spacing",
96
+ path: "spacing/primitives-spacing/spacing",
97
97
  },
98
98
  {
99
99
  description: "Updates css, scss and less-variables to use new `space`-tokens. (Works with old and new system)",
100
100
  value: "token-spacing",
101
- path: "darkside/token-spacing/spacing",
101
+ path: "spacing/token-spacing/spacing",
102
102
  },
103
103
  {
104
104
  description: "Updates js-tokens to use new `space`-tokens. (Works with old and new system)",
105
105
  value: "token-spacing-js",
106
- path: "darkside/token-spacing-js/spacing",
107
- },
108
- {
109
- description: "Updates css, scss and less-variables to use new token-prefix",
110
- value: "token-update",
111
- path: "darkside/token-update/token-update",
106
+ path: "spacing/token-spacing-js/spacing",
112
107
  },
108
+ ],
109
+ darkside: [
113
110
  {
114
- description: "Updates js tokens to use new token-prefix and names",
115
- value: "token-update-js",
116
- path: "darkside/token-update-js/token-update-js",
111
+ description: "marks deprecated prop usage with comments.",
112
+ value: "prop-deprecate",
113
+ path: "darkside/prop-deprecate/prop-deprecate",
117
114
  },
118
115
  ],
119
116
  };
@@ -35,12 +35,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
35
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.messages = void 0;
39
38
  exports.runCodeshift = runCodeshift;
40
39
  const chalk_1 = __importDefault(require("chalk"));
41
40
  const fast_glob_1 = __importDefault(require("fast-glob"));
42
41
  const jscodeshift = __importStar(require("jscodeshift/src/Runner"));
43
42
  const path_1 = __importDefault(require("path"));
43
+ const codeshift_utils_1 = require("./codeshift.utils");
44
44
  const migrations_1 = require("./migrations");
45
45
  const ignoreNodeModules = [
46
46
  "**/node_modules/**",
@@ -49,14 +49,13 @@ const ignoreNodeModules = [
49
49
  "**/lib/**",
50
50
  "**/.next/**",
51
51
  ];
52
- exports.messages = new Map();
53
52
  function runCodeshift(input, options, program) {
54
53
  return __awaiter(this, void 0, void 0, function* () {
55
54
  var _a;
56
55
  const codemodPath = path_1.default.join(__dirname, `./transforms/${(0, migrations_1.getMigrationPath)(input)}.js`);
57
- const filepaths = fast_glob_1.default.sync([(_a = options.glob) !== null && _a !== void 0 ? _a : getDefaultGlob(options === null || options === void 0 ? void 0 : options.ext)], {
56
+ const filepaths = fast_glob_1.default.sync([(_a = options.glob) !== null && _a !== void 0 ? _a : (0, codeshift_utils_1.getDefaultGlob)(options === null || options === void 0 ? void 0 : options.ext)], {
58
57
  cwd: process.cwd(),
59
- ignore: ignoreNodeModules,
58
+ ignore: codeshift_utils_1.GLOB_IGNORE_PATTERNS,
60
59
  });
61
60
  console.info("\nRunning migration:", chalk_1.default.green("input"));
62
61
  (options === null || options === void 0 ? void 0 : options.glob) && console.info(`Using glob: ${chalk_1.default.green(options.glob)}\n`);
@@ -76,22 +75,9 @@ function runCodeshift(input, options, program) {
76
75
  print: options === null || options === void 0 ? void 0 : options.print,
77
76
  });
78
77
  warning && console.info(`\n${chalk_1.default.yellow(warning)}\n`);
79
- exports.messages.forEach((value) => {
80
- value.format(value.data);
81
- });
82
78
  }
83
79
  catch (error) {
84
80
  program.error(chalk_1.default.red("Error:", error.message));
85
81
  }
86
82
  });
87
83
  }
88
- function getDefaultGlob(ext) {
89
- const defaultExt = "js,ts,jsx,tsx,css,scss,less";
90
- return `**/*.{${cleanExtensions(ext !== null && ext !== void 0 ? ext : defaultExt).join(",")}}`;
91
- }
92
- function cleanExtensions(ext) {
93
- return ext
94
- .split(",")
95
- .map((e) => e.trim())
96
- .map((e) => e.replace(".", ""));
97
- }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = transformer;
7
+ const ast_1 = require("../../../utils/ast");
8
+ const lineterminator_1 = require("../../../utils/lineterminator");
9
+ const removeProps_1 = __importDefault(require("../../../utils/removeProps"));
10
+ const deprecationMap = {
11
+ Accordion: ["headingSize", "variant"],
12
+ Popover: ["arrow"],
13
+ Page: ["background"],
14
+ };
15
+ function transformer(file, api) {
16
+ const j = api.jscodeshift;
17
+ const root = j(file.source);
18
+ const toSourceOptions = (0, lineterminator_1.getLineTerminator)(file.source);
19
+ for (const [component, props] of Object.entries(deprecationMap)) {
20
+ const sourceName = (0, ast_1.findComponentImport)({
21
+ file,
22
+ j,
23
+ name: component,
24
+ packageType: "react",
25
+ });
26
+ if (!sourceName) {
27
+ continue;
28
+ }
29
+ (0, removeProps_1.default)(j, root, sourceName, props);
30
+ }
31
+ return root.toSource(toSourceOptions);
32
+ }
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = transformer;
4
+ const ast_1 = require("../../../utils/ast");
4
5
  const lineterminator_1 = require("../../../utils/lineterminator");
5
- const darkside_utils_1 = require("../darkside.utils");
6
+ const spacing_utils_1 = require("../spacing.utils");
6
7
  function transformer(file, api) {
7
8
  const j = api.jscodeshift;
8
9
  const root = j(file.source);
@@ -34,18 +35,18 @@ function transformer(file, api) {
34
35
  "gap",
35
36
  ];
36
37
  for (const primitive of primitives) {
37
- const name = (0, darkside_utils_1.findComponentImport)({ file, j, name: primitive });
38
+ const name = (0, ast_1.findComponentImport)({ file, j, name: primitive });
38
39
  if (!name) {
39
40
  continue;
40
41
  }
41
- (0, darkside_utils_1.findJSXElement)({
42
+ (0, ast_1.findJSXElement)({
42
43
  root,
43
44
  j,
44
45
  name,
45
46
  originalName: primitive,
46
47
  }).forEach((path) => {
47
48
  for (const prop of affectedProps) {
48
- (0, darkside_utils_1.findProp)({ j, path, name: prop }).forEach((attr) => {
49
+ (0, ast_1.findProp)({ j, path, name: prop }).forEach((attr) => {
49
50
  const attrValue = attr.value.value;
50
51
  if (attrValue.type === "StringLiteral") {
51
52
  /* padding="32" */
@@ -88,12 +89,12 @@ function convertSpacingToSpace(oldValue) {
88
89
  spacingToken.startsWith("space-")) {
89
90
  newSpacing.push(spacingToken);
90
91
  }
91
- else if (!darkside_utils_1.legacySpacingTokenMap.get(spacingToken)) {
92
+ else if (!spacing_utils_1.legacySpacingTokenMap.get(spacingToken)) {
92
93
  console.warn(`Possibly invalid spacing token found: ${spacingToken}\n`);
93
94
  newSpacing.push(spacingToken);
94
95
  }
95
96
  else {
96
- newSpacing.push(`space-${darkside_utils_1.legacySpacingTokenMap.get(spacingToken)}`);
97
+ newSpacing.push(`space-${spacing_utils_1.legacySpacingTokenMap.get(spacingToken)}`);
97
98
  }
98
99
  }
99
100
  return newSpacing.join(" ");
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.legacySpacingTokenMap = void 0;
4
+ exports.convertSpacingToSpace = convertSpacingToSpace;
5
+ /**
6
+ * Maps old spacing-token values to new space-tokens
7
+ */
8
+ const legacySpacingTokenMap = new Map([
9
+ ["32", "128"],
10
+ ["24", "96"],
11
+ ["20", "80"],
12
+ ["18", "72"],
13
+ ["16", "64"],
14
+ ["14", "56"],
15
+ ["12", "48"],
16
+ ["11", "44"],
17
+ ["10", "40"],
18
+ ["9", "36"],
19
+ ["8", "32"],
20
+ ["7", "28"],
21
+ ["6", "24"],
22
+ ["5", "20"],
23
+ ["4", "16"],
24
+ ["3", "12"],
25
+ ["2", "8"],
26
+ ["1-alt", "6"],
27
+ ["1", "4"],
28
+ ["05", "2"],
29
+ ["0", "0"],
30
+ ]);
31
+ exports.legacySpacingTokenMap = legacySpacingTokenMap;
32
+ function convertSpacingToSpace(spacing) {
33
+ return legacySpacingTokenMap.get(spacing) || null;
34
+ }
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = transformer;
4
4
  const translate_token_1 = require("../../../utils/translate-token");
5
- const darkside_utils_1 = require("../darkside.utils");
5
+ const spacing_utils_1 = require("../spacing.utils");
6
6
  function transformer(file) {
7
7
  let src = file.source;
8
- darkside_utils_1.legacySpacingTokenMap.forEach((newVar, oldVar) => {
8
+ spacing_utils_1.legacySpacingTokenMap.forEach((newVar, oldVar) => {
9
9
  const oldCSSVar = `--a-spacing-${oldVar}`;
10
10
  const newCSSVar = `--a-space-${newVar}`;
11
11
  const CSSRgx = new RegExp("(" + oldCSSVar + ")", "gm");
@@ -1,16 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = transformer;
4
+ const ast_1 = require("../../../utils/ast");
4
5
  const lineterminator_1 = require("../../../utils/lineterminator");
5
6
  const translate_token_1 = require("../../../utils/translate-token");
6
- const darkside_utils_1 = require("../darkside.utils");
7
+ const spacing_utils_1 = require("../spacing.utils");
7
8
  function transformer(file, api) {
8
9
  const j = api.jscodeshift;
9
10
  let root = j(file.source);
10
- darkside_utils_1.legacySpacingTokenMap.forEach((newVar, oldVar) => {
11
+ spacing_utils_1.legacySpacingTokenMap.forEach((newVar, oldVar) => {
11
12
  const oldCSSVar = (0, translate_token_1.translateToken)(`--a-spacing-${oldVar}`, "js");
12
13
  const newCSSVar = (0, translate_token_1.translateToken)(`--a-space-${newVar}`, "js");
13
- const name = (0, darkside_utils_1.findComponentImport)({
14
+ const name = (0, ast_1.findComponentImport)({
14
15
  file,
15
16
  j,
16
17
  name: oldCSSVar,
@@ -16,7 +16,7 @@ function transformer(file, api) {
16
16
  const jsImport = root.find(j.ImportDeclaration).filter((x) => {
17
17
  return ["@navikt/ds-tokens/dist/tokens"].includes(x.node.source.value);
18
18
  });
19
- if (!jsImport) {
19
+ if (jsImport.size() === 0) {
20
20
  return src;
21
21
  }
22
22
  tokens_map_js_1.tokens.forEach((token) => {
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.legacySpacingTokenMap = void 0;
4
3
  exports.findComponentImport = findComponentImport;
5
4
  exports.findJSXElement = findJSXElement;
6
5
  exports.findProp = findProp;
7
- exports.convertSpacingToSpace = convertSpacingToSpace;
8
6
  /**
9
7
  * Finds a component import, accounting for sub-components and aliases.
10
8
  * Returns the local name of the component. If the component is not found, returns null.
@@ -88,33 +86,3 @@ function isAkselTokensImport(path) {
88
86
  return (typeof importSource === "string" &&
89
87
  importSource.startsWith("@navikt/ds-tokens"));
90
88
  }
91
- /**
92
- * Maps old spacing-token values to new space-tokens
93
- */
94
- const legacySpacingTokenMap = new Map([
95
- ["32", "128"],
96
- ["24", "96"],
97
- ["20", "80"],
98
- ["18", "72"],
99
- ["16", "64"],
100
- ["14", "56"],
101
- ["12", "48"],
102
- ["11", "44"],
103
- ["10", "40"],
104
- ["9", "36"],
105
- ["8", "32"],
106
- ["7", "28"],
107
- ["6", "24"],
108
- ["5", "20"],
109
- ["4", "16"],
110
- ["3", "12"],
111
- ["2", "8"],
112
- ["1-alt", "6"],
113
- ["1", "4"],
114
- ["05", "2"],
115
- ["0", "0"],
116
- ]);
117
- exports.legacySpacingTokenMap = legacySpacingTokenMap;
118
- function convertSpacingToSpace(spacing) {
119
- return legacySpacingTokenMap.get(spacing) || null;
120
- }
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TokenStatus = void 0;
18
+ const chalk_1 = __importDefault(require("chalk"));
19
+ const cli_progress_1 = __importDefault(require("cli-progress"));
20
+ class TokenStatus {
21
+ constructor() {
22
+ this.initStatus();
23
+ }
24
+ initStatus() {
25
+ this.status = {
26
+ css: { legacy: [], updated: [] },
27
+ scss: { legacy: [], updated: [] },
28
+ less: { legacy: [], updated: [] },
29
+ js: { legacy: [], updated: [] },
30
+ tailwind: { legacy: [], updated: [] },
31
+ component: { legacy: [], updated: [] },
32
+ };
33
+ }
34
+ add(_a) {
35
+ var { isLegacy, type } = _a, hit = __rest(_a, ["isLegacy", "type"]);
36
+ const statusType = isLegacy ? "legacy" : "updated";
37
+ switch (type) {
38
+ case "css":
39
+ this.status.css[statusType].push(hit);
40
+ break;
41
+ case "scss":
42
+ this.status.scss[statusType].push(hit);
43
+ break;
44
+ case "less":
45
+ this.status.less[statusType].push(hit);
46
+ break;
47
+ case "js":
48
+ this.status.js[statusType].push(hit);
49
+ break;
50
+ case "tailwind":
51
+ this.status.tailwind[statusType].push(hit);
52
+ break;
53
+ }
54
+ }
55
+ printStatusForAll() {
56
+ Object.keys(this.status).forEach((type) => {
57
+ this.printStatus(type);
58
+ });
59
+ console.info("\n");
60
+ }
61
+ printStatus(type) {
62
+ let statusDataObj;
63
+ if (type === "summary") {
64
+ statusDataObj = {
65
+ legacy: [].concat(...Object.values(this.status).map((_status) => _status.legacy)),
66
+ updated: [].concat(...Object.values(this.status).map((_status) => _status.updated)),
67
+ };
68
+ const uniqueFiles = new Set(statusDataObj.legacy.map((token) => token.fileName));
69
+ const automigratedN = statusDataObj.legacy.filter((legacy) => legacy.canAutoMigrate).length;
70
+ console.info(`Files with legacy tokens: ${uniqueFiles.size}`);
71
+ const autoMigratePercentage = statusDataObj.legacy.length
72
+ ? Math.round((automigratedN / statusDataObj.legacy.length) * 100)
73
+ : 0;
74
+ console.info(`You have ${statusDataObj.legacy.length} total tokens that need to be updated. Of these, ${automigratedN} (${autoMigratePercentage}%) can be automatically migrated for you.`);
75
+ }
76
+ else {
77
+ statusDataObj = this.status[type];
78
+ }
79
+ const multibar = new cli_progress_1.default.MultiBar({
80
+ clearOnComplete: false,
81
+ hideCursor: true,
82
+ format: "{bar} {type} | {count} | {value}/{total}",
83
+ }, cli_progress_1.default.Presets.shades_grey);
84
+ const totalTokens = statusDataObj.legacy.length + statusDataObj.updated.length;
85
+ const completedPercentage = (totalTokens === 0
86
+ ? 100
87
+ : (statusDataObj.updated.length / totalTokens) * 100).toFixed(0);
88
+ console.info(`\n${type.toUpperCase()} (${completedPercentage}%)`);
89
+ multibar.create(totalTokens, statusDataObj.updated.length, {
90
+ type: "Tokens left to update",
91
+ count: statusDataObj.legacy.length,
92
+ });
93
+ const canBeAutomigratedN = statusDataObj.legacy.filter((legacy) => legacy.canAutoMigrate).length;
94
+ multibar.create(statusDataObj.legacy.length, canBeAutomigratedN, {
95
+ type: "Can be auto-migrated ",
96
+ count: canBeAutomigratedN,
97
+ });
98
+ multibar.stop();
99
+ }
100
+ printMigrationHelp() {
101
+ const imports = {
102
+ css: {
103
+ old: `import "@navikt/ds-tokens";`,
104
+ new: `import "@navikt/ds-tokens/darkside-css";`,
105
+ },
106
+ scss: {
107
+ old: `@use '@navikt/ds-tokens/dist/tokens' as *;`,
108
+ new: `@use "@navikt/ds-tokens/darkside-scss" as *;`,
109
+ },
110
+ less: {
111
+ old: `@import "~@navikt/ds-tokens/dist/tokens.less";`,
112
+ new: `@import "~@navikt/ds-tokens/darkside-less";`,
113
+ },
114
+ js: {
115
+ old: `import { ... } from "@navikt/ds-tokens/dist/tokens";`,
116
+ new: `import { ... } from "@navikt/ds-tokens/darkside-js";`,
117
+ },
118
+ tailwind: {
119
+ old: `import config from "@navikt/ds-tailwind";`,
120
+ new: `import config from "@navikt/ds-tailwind/darkside-tw3";`,
121
+ },
122
+ };
123
+ for (const key of Object.keys(imports)) {
124
+ const data = this.status[key];
125
+ const legacyNeeded = data.legacy.length > 0;
126
+ const foundUse = legacyNeeded || data.updated.length > 0;
127
+ if (!foundUse) {
128
+ continue;
129
+ }
130
+ console.info(chalk_1.default.underline(`\n${key.toUpperCase()} Tokens Migration`));
131
+ const importStrings = imports[key];
132
+ console.info(`${chalk_1.default.blue("→")} Add new import: ${chalk_1.default.green(importStrings.new)}`);
133
+ if (legacyNeeded) {
134
+ console.info(`${chalk_1.default.yellow("!")} Keep old import until fully migrated: ${chalk_1.default.dim(importStrings.old)}`);
135
+ }
136
+ }
137
+ const componentTokens = this.status.component.legacy.length;
138
+ if (componentTokens > 0) {
139
+ console.info(chalk_1.default.underline(`COMPONENT Tokens Migration`));
140
+ console.info(`We no longer support component tokens. Please migrate to the new darkside tokens. using theming or other methods.`);
141
+ console.info(`You can read more at https://aksel.nav.no/darkside`);
142
+ }
143
+ }
144
+ }
145
+ exports.TokenStatus = TokenStatus;