@navikt/ds-tokens 7.21.0 → 7.22.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.
- package/dist/darkside/tokens-cjs.js +1125 -277
- package/dist/darkside/tokens.css +29 -24
- package/dist/darkside/tokens.d.ts +865 -17
- package/dist/darkside/tokens.js +865 -17
- package/dist/darkside/tokens.less +865 -17
- package/dist/darkside/tokens.scss +865 -17
- package/dist/tokens-cjs.js +5 -0
- package/dist/tokens.css +6 -1
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.js +5 -0
- package/dist/tokens.less +5 -0
- package/dist/tokens.scss +5 -0
- package/docs.json +6 -1
- package/package.json +3 -4
- package/src/future-border.json +11 -0
- package/token_docs.js +282 -433
- package/types.ts +9 -2
package/types.ts
CHANGED
|
@@ -70,7 +70,7 @@ export type DefaultTextColorKeys = "logo";
|
|
|
70
70
|
export type TextColorKeys =
|
|
71
71
|
| SemanticColorRoles
|
|
72
72
|
| `${SemanticColorRoles}-subtle`
|
|
73
|
-
| `${SemanticColorRoles}-
|
|
73
|
+
| `${SemanticColorRoles}-decoration`
|
|
74
74
|
| `${SemanticColorRoles}-contrast`;
|
|
75
75
|
|
|
76
76
|
export type BorderColorKeys = "focus";
|
|
@@ -90,7 +90,7 @@ export type SpaceKeys = `space-${(typeof spaceInPixels)[number]}`;
|
|
|
90
90
|
|
|
91
91
|
export type ShadowKeys = "dialog";
|
|
92
92
|
|
|
93
|
-
export type BorderRadiusKeys = "
|
|
93
|
+
export type BorderRadiusKeys = "2" | "4" | "8" | "12" | "full";
|
|
94
94
|
|
|
95
95
|
export type BreakPointKeys =
|
|
96
96
|
| "xs"
|
|
@@ -134,6 +134,13 @@ export type FontLineHeightKeys =
|
|
|
134
134
|
export type FontWeightKeys = "weight-bold" | "weight-regular";
|
|
135
135
|
|
|
136
136
|
/* Legacy tokens */
|
|
137
|
+
export type LegacyBorderRadiusKeys =
|
|
138
|
+
| "small"
|
|
139
|
+
| "medium"
|
|
140
|
+
| "large"
|
|
141
|
+
| "xlarge"
|
|
142
|
+
| "full";
|
|
143
|
+
|
|
137
144
|
export type LegacyShadowKeys =
|
|
138
145
|
| "xsmall"
|
|
139
146
|
| "small"
|