@digdir/designsystemet-react 1.1.8 → 1.1.9

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.
@@ -4,8 +4,28 @@ declare global {
4
4
  namespace React {
5
5
  // biome-ignore lint/correctness/noUnusedVariables: we overwrite React's HTMLAttributes to add custom attributes
6
6
  interface HTMLAttributes<T> {
7
+ /**
8
+ * Represents the recommended size options for the Designsystemet variables.
9
+ * - `'sm'`: Use the small size.
10
+ * - `'md'`: Use the medium size.
11
+ * - `'lg'`: Use the large size.
12
+ */
7
13
  'data-size'?: Size | (string & {});
14
+ /**
15
+ * Represents the available color options for the Designsystemet variables.
16
+ *
17
+ * These are augmented based on your theme configuration.
18
+ *
19
+ * Consist of both main and support colors
20
+ * @link https://theme.designsystemet.no
21
+ */
8
22
  'data-color'?: Color | (string & {});
23
+ /**
24
+ * Represents the available color scheme options for the Designsystemet variables.
25
+ * - `'light'`: Use the light color scheme.
26
+ * - `'dark'`: Use the dark color scheme.
27
+ * - `'auto'`: Automatically select the color scheme based on system preferences.
28
+ */
9
29
  'data-color-scheme'?: ColorScheme | (string & {});
10
30
  }
11
31
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "1.1.8",
4
+ "version": "1.1.9",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -67,8 +67,8 @@
67
67
  "storybook": "^9.0.16",
68
68
  "tsx": "4.20.3",
69
69
  "typescript": "^5.8.3",
70
- "@digdir/designsystemet": "^1.1.8",
71
- "@digdir/designsystemet-css": "^1.1.8"
70
+ "@digdir/designsystemet": "^1.1.9",
71
+ "@digdir/designsystemet-css": "^1.1.9"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",