@digdir/designsystemet 1.1.7 → 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.
@@ -870,7 +870,7 @@ import chalk5 from "chalk";
870
870
  // package.json
871
871
  var package_default = {
872
872
  name: "@digdir/designsystemet",
873
- version: "1.1.7",
873
+ version: "1.1.8",
874
874
  description: "CLI for Designsystemet",
875
875
  author: "Designsystemet team",
876
876
  engines: {
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.7",
2575
+ version: "1.1.8",
2576
2576
  description: "CLI for Designsystemet",
2577
2577
  author: "Designsystemet team",
2578
2578
  engines: {
@@ -49,7 +49,7 @@ import chalk4 from "chalk";
49
49
  // package.json
50
50
  var package_default = {
51
51
  name: "@digdir/designsystemet",
52
- version: "1.1.7",
52
+ version: "1.1.8",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.1.7",
4
+ version: "1.1.8",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
@@ -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.7",
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.7",
2416
+ version: "1.1.8",
2417
2417
  description: "CLI for Designsystemet",
2418
2418
  author: "Designsystemet team",
2419
2419
  engines: {
@@ -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.7",
2432
+ version: "1.1.8",
2433
2433
  description: "CLI for Designsystemet",
2434
2434
  author: "Designsystemet team",
2435
2435
  engines: {
@@ -4,7 +4,7 @@ import chalk3 from "chalk";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@digdir/designsystemet",
7
- version: "1.1.7",
7
+ version: "1.1.8",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
@@ -5,7 +5,7 @@ import * as R from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.1.7",
8
+ version: "1.1.8",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA,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,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,wBAAwB,CAAC,CAAC;AAC/E,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAC9D,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {