@digdir/designsystemet 1.1.6 → 1.1.8
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 +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/tokens/build.js +1 -1
- package/dist/src/tokens/create/generators/$designsystemet.js +1 -1
- package/dist/src/tokens/create/write.js +1 -1
- package/dist/src/tokens/format.js +1 -1
- package/dist/src/tokens/index.js +1 -1
- package/dist/src/tokens/process/output/declarations.js +1 -1
- package/dist/src/tokens/process/output/theme.js +1 -1
- package/dist/src/types.d.ts +29 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -2572,7 +2572,7 @@ import * as R7 from "ramda";
|
|
|
2572
2572
|
// package.json
|
|
2573
2573
|
var package_default = {
|
|
2574
2574
|
name: "@digdir/designsystemet",
|
|
2575
|
-
version: "1.1.
|
|
2575
|
+
version: "1.1.8",
|
|
2576
2576
|
description: "CLI for Designsystemet",
|
|
2577
2577
|
author: "Designsystemet team",
|
|
2578
2578
|
engines: {
|
package/dist/src/tokens/build.js
CHANGED
|
@@ -46,7 +46,7 @@ var readFile = async (path2, dry, allowFileNotFound) => {
|
|
|
46
46
|
// package.json
|
|
47
47
|
var package_default = {
|
|
48
48
|
name: "@digdir/designsystemet",
|
|
49
|
-
version: "1.1.
|
|
49
|
+
version: "1.1.8",
|
|
50
50
|
description: "CLI for Designsystemet",
|
|
51
51
|
author: "Designsystemet team",
|
|
52
52
|
engines: {
|
|
@@ -2413,7 +2413,7 @@ import * as R7 from "ramda";
|
|
|
2413
2413
|
// package.json
|
|
2414
2414
|
var package_default = {
|
|
2415
2415
|
name: "@digdir/designsystemet",
|
|
2416
|
-
version: "1.1.
|
|
2416
|
+
version: "1.1.8",
|
|
2417
2417
|
description: "CLI for Designsystemet",
|
|
2418
2418
|
author: "Designsystemet team",
|
|
2419
2419
|
engines: {
|
package/dist/src/tokens/index.js
CHANGED
|
@@ -2429,7 +2429,7 @@ import * as R7 from "ramda";
|
|
|
2429
2429
|
// package.json
|
|
2430
2430
|
var package_default = {
|
|
2431
2431
|
name: "@digdir/designsystemet",
|
|
2432
|
-
version: "1.1.
|
|
2432
|
+
version: "1.1.8",
|
|
2433
2433
|
description: "CLI for Designsystemet",
|
|
2434
2434
|
author: "Designsystemet team",
|
|
2435
2435
|
engines: {
|
package/dist/src/types.d.ts
CHANGED
|
@@ -16,8 +16,37 @@ export interface SeverityColorDefinitions {
|
|
|
16
16
|
* otherwise return the arbitrary string type.
|
|
17
17
|
*/
|
|
18
18
|
type ColorWithFallback<T> = ColorDefinitions extends EmptyObject ? string : T;
|
|
19
|
+
/**
|
|
20
|
+
* Represents the available severity colors for the Designsystemet variables.
|
|
21
|
+
* These are predefined colors that can be used to indicate different levels of severity.
|
|
22
|
+
* - `'info'`: Use the info color.
|
|
23
|
+
* - `'success'`: Use the success color.
|
|
24
|
+
* - `'warning'`: Use the warning color.
|
|
25
|
+
* - `'danger'`: Use the danger color.
|
|
26
|
+
*/
|
|
19
27
|
export type SeverityColors = ColorWithFallback<keyof SeverityColorDefinitions>;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the available color options for the Designsystemet variables.
|
|
30
|
+
*
|
|
31
|
+
* These are augmented based on your theme configuration.
|
|
32
|
+
*
|
|
33
|
+
* Consist of both main and support colors
|
|
34
|
+
* @link https://theme.designsystemet.no
|
|
35
|
+
*/
|
|
20
36
|
export type Color = ColorWithFallback<keyof ColorDefinitions>;
|
|
37
|
+
/**
|
|
38
|
+
* Represents the recommended size options for the Designsystemet variables.
|
|
39
|
+
* - `'sm'`: Use the small size.
|
|
40
|
+
* - `'md'`: Use the medium size.
|
|
41
|
+
* - `'lg'`: Use the large size.
|
|
42
|
+
*/
|
|
21
43
|
export type Size = 'sm' | 'md' | 'lg';
|
|
44
|
+
/**
|
|
45
|
+
* Represents the available color scheme options for the Designsystemet variables.
|
|
46
|
+
* - `'light'`: Use the light color scheme.
|
|
47
|
+
* - `'dark'`: Use the dark color scheme.
|
|
48
|
+
* - `'auto'`: Automatically select the color scheme based on system preferences.
|
|
49
|
+
*/
|
|
50
|
+
export type ColorScheme = 'light' | 'dark' | 'auto';
|
|
22
51
|
export {};
|
|
23
52
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,MAAM,CAAC;AAC/C,KAAK,WAAW,GAAG;IAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnD;;;;GAIG;AAGH,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,wBAAwB;CAAG;AAE5C;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,gBAAgB,SAAS,WAAW,GAAG,MAAM,GAAG,CAAC,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,wBAAwB,CAAC,CAAC;AAC/E;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAC9D;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC"}
|