@navikt/ds-tokens 8.11.0 → 8.12.0

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.
@@ -8,7 +8,7 @@ module.exports = {
8
8
  */
9
9
  "ShadowDialog": "var(--ax-shadow-dialog)",
10
10
  /**
11
- * Used for setting opacity on disabled elements.
11
+ * Brukes for å sette opacity deaktiverte elementer.
12
12
  */
13
13
  "OpacityDisabled": "var(--ax-opacity-disabled)",
14
14
  /**
package/dist/tokens.css CHANGED
@@ -551,7 +551,7 @@
551
551
  }
552
552
 
553
553
  :root, :host {
554
- --ax-version: "8.11.0";
554
+ --ax-version: "8.12.0";
555
555
  --ax-space-0: 0rem;
556
556
  --ax-space-1: .0625rem;
557
557
  --ax-space-2: .125rem;
package/dist/tokens.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export const ShadowDialog = "var(--ax-shadow-dialog)";
9
9
  /**
10
- * Used for setting opacity on disabled elements.
10
+ * Brukes for å sette opacity deaktiverte elementer.
11
11
  */
12
12
  export const OpacityDisabled = "var(--ax-opacity-disabled)";
13
13
  /**
package/dist/tokens.js CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export const ShadowDialog = "var(--ax-shadow-dialog)";
9
9
  /**
10
- * Used for setting opacity on disabled elements.
10
+ * Brukes for å sette opacity deaktiverte elementer.
11
11
  */
12
12
  export const OpacityDisabled = "var(--ax-opacity-disabled)";
13
13
  /**
package/dist/tokens.less CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  @ax-shadow-dialog: var(--ax-shadow-dialog);
9
9
  /**
10
- * Used for setting opacity on disabled elements.
10
+ * Brukes for å sette opacity deaktiverte elementer.
11
11
  */
12
12
  @ax-opacity-disabled: var(--ax-opacity-disabled);
13
13
  /**
package/dist/tokens.scss CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  $ax-shadow-dialog: var(--ax-shadow-dialog);
9
9
  /**
10
- * Used for setting opacity on disabled elements.
10
+ * Brukes for å sette opacity deaktiverte elementer.
11
11
  */
12
12
  $ax-opacity-disabled: var(--ax-opacity-disabled);
13
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-tokens",
3
- "version": "8.11.0",
3
+ "version": "8.12.0",
4
4
  "description": "Design-tokens for Nav designsystem",
5
5
  "author": "Aksel | Nav designsystem team",
6
6
  "keywords": [
@@ -13,8 +13,8 @@
13
13
  "files": [
14
14
  "/dist",
15
15
  "types.ts",
16
- "internal-types.ts",
17
- "token_docs.js"
16
+ "token_docs.js",
17
+ "token_docs.d.ts"
18
18
  ],
19
19
  "scripts": {
20
20
  "build": "tsx ./src && yarn build:figma-config && yarn build:plugin && tsx ./config/version-tag.ts",
@@ -42,7 +42,7 @@
42
42
  "style-dictionary": "^4.1.1",
43
43
  "tsx": "^4.20.6",
44
44
  "typescript": "6.0.3",
45
- "vitest": "4.1.5"
45
+ "vitest": "4.1.7"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",
@@ -52,7 +52,10 @@
52
52
  "exports": {
53
53
  ".": "./dist/tokens.css",
54
54
  "./types": "./types.ts",
55
- "./token_docs": "./token_docs.js",
55
+ "./token_docs": {
56
+ "types": "./token_docs.d.ts",
57
+ "default": "./token_docs.js"
58
+ },
56
59
  "./dist/*": {
57
60
  "types": "./dist/tokens.d.ts",
58
61
  "default": "./dist/*"
@@ -0,0 +1,19 @@
1
+ export type TokenDocT = {
2
+ name: string;
3
+ value: string;
4
+ rawValue: string;
5
+ jsValue: string;
6
+ cssValue: string;
7
+ scssValue: string;
8
+ lessValue: string;
9
+ comment?: string;
10
+ type: string;
11
+ rawType: string;
12
+ group?: string;
13
+ category: string;
14
+ categoryTitle: string;
15
+ role?: string;
16
+ modifier: string;
17
+ };
18
+
19
+ export declare const tokens: TokenDocT[];