@digdir/designsystemet-react 1.7.2 → 1.8.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.
@@ -42,13 +42,15 @@ const Popover = react.forwardRef(function Popover({ id, className, onClose, onOp
42
42
  const isOutside = !isTrigger && !popover?.contains(el);
43
43
  if (isTrigger) {
44
44
  event.preventDefault(); // Prevent native Popover API
45
- setInternalOpen((open) => !open);
46
- onOpen?.();
47
45
  }
48
- if (isOutside && internalOpen) {
46
+ if (controlledOpen && (isTrigger || isOutside)) {
49
47
  setInternalOpen(false);
50
48
  onClose?.();
51
49
  }
50
+ else if (isTrigger) {
51
+ setInternalOpen(true);
52
+ onOpen?.();
53
+ }
52
54
  };
53
55
  const handleKeydown = (event) => {
54
56
  if (event.key !== 'Escape' || !controlledOpen)
@@ -107,7 +107,7 @@ const Tooltip = react.forwardRef(function Tooltip({ id, children, content, place
107
107
  ? 'popoverTargetAction'
108
108
  : 'popovertargetaction']: 'show',
109
109
  };
110
- const autoType = `aria-${triggerRef.current?.innerText.trim() ? 'describedby' : 'labelledby'}`;
110
+ const autoType = `aria-${triggerRef.current?.innerText?.trim() ? 'describedby' : 'labelledby'}`;
111
111
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChildContainer, { ref: triggerRef, ...popoverProps, onMouseEnter: setOpen, onMouseLeave: setClose, onFocus: setOpen, onBlur: setClose, [type ? 'aria-' + type : autoType]: tooltipId, children: children }), jsxRuntime.jsx("span", { onMouseEnter: setOpen, onMouseLeave: setClose, ref: mergedRefs, role: 'tooltip', className: cl('ds-tooltip', className), id: tooltipId, popover: 'manual', ...rest, children: content })] }));
112
112
  });
113
113
  const arrowPseudoElement = {
@@ -40,13 +40,15 @@ const Popover = forwardRef(function Popover({ id, className, onClose, onOpen, op
40
40
  const isOutside = !isTrigger && !popover?.contains(el);
41
41
  if (isTrigger) {
42
42
  event.preventDefault(); // Prevent native Popover API
43
- setInternalOpen((open) => !open);
44
- onOpen?.();
45
43
  }
46
- if (isOutside && internalOpen) {
44
+ if (controlledOpen && (isTrigger || isOutside)) {
47
45
  setInternalOpen(false);
48
46
  onClose?.();
49
47
  }
48
+ else if (isTrigger) {
49
+ setInternalOpen(true);
50
+ onOpen?.();
51
+ }
50
52
  };
51
53
  const handleKeydown = (event) => {
52
54
  if (event.key !== 'Escape' || !controlledOpen)
@@ -105,7 +105,7 @@ const Tooltip = forwardRef(function Tooltip({ id, children, content, placement =
105
105
  ? 'popoverTargetAction'
106
106
  : 'popovertargetaction']: 'show',
107
107
  };
108
- const autoType = `aria-${triggerRef.current?.innerText.trim() ? 'describedby' : 'labelledby'}`;
108
+ const autoType = `aria-${triggerRef.current?.innerText?.trim() ? 'describedby' : 'labelledby'}`;
109
109
  return (jsxs(Fragment$1, { children: [jsx(ChildContainer, { ref: triggerRef, ...popoverProps, onMouseEnter: setOpen, onMouseLeave: setClose, onFocus: setOpen, onBlur: setClose, [type ? 'aria-' + type : autoType]: tooltipId, children: children }), jsx("span", { onMouseEnter: setOpen, onMouseLeave: setClose, ref: mergedRefs, role: 'tooltip', className: cl('ds-tooltip', className), id: tooltipId, popover: 'manual', ...rest, children: content })] }));
110
110
  });
111
111
  const arrowPseudoElement = {
@@ -1,4 +1,4 @@
1
- import type { Color, ColorScheme, Size } from '@digdir/designsystemet/types';
1
+ import type { Color, ColorScheme, Size } from '@digdir/designsystemet-types';
2
2
 
3
3
  declare global {
4
4
  namespace React {
@@ -1,2 +1,2 @@
1
- export type { Color, SeverityColors, } from '@digdir/designsystemet/types';
1
+ export type { Color, SeverityColors, } from '@digdir/designsystemet-types';
2
2
  //# sourceMappingURL=colors.d.ts.map
@@ -206,7 +206,7 @@ export declare const ComboboxComponent: import("react").ForwardRefExoticComponen
206
206
  description?: ReactNode;
207
207
  id?: string;
208
208
  readOnly?: boolean;
209
- size?: import("packages/cli/dist/src/types").Size;
209
+ size?: import("packages/types/dist/types").Size;
210
210
  } & Pick<import("react").HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>>;
211
211
  export declare const Combobox: import("react").ForwardRefExoticComponent<{
212
212
  /**
@@ -312,6 +312,6 @@ export declare const Combobox: import("react").ForwardRefExoticComponent<{
312
312
  description?: ReactNode;
313
313
  id?: string;
314
314
  readOnly?: boolean;
315
- size?: import("packages/cli/dist/src/types").Size;
315
+ size?: import("packages/types/dist/types").Size;
316
316
  } & Pick<import("react").HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>>;
317
317
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Size } from '@digdir/designsystemet/types';
1
+ import type { Size } from '@digdir/designsystemet-types';
2
2
  import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
3
3
  export type FormFieldProps = {
4
4
  /** Error message for form field */
@@ -1,4 +1,4 @@
1
- import type { SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { SeverityColors } from '@digdir/designsystemet-types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -1,4 +1,4 @@
1
- import type { Size } from '@digdir/designsystemet/types';
1
+ import type { Size } from '@digdir/designsystemet-types';
2
2
  import type { HTMLAttributes, ReactNode } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet-types';
2
2
  import { type HTMLAttributes } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -9,7 +9,7 @@ declare const Badge: import("react").ForwardRefExoticComponent<Omit<import("../.
9
9
  count?: number;
10
10
  maxCount?: number;
11
11
  variant?: "base" | "tinted";
12
- 'data-color'?: import("packages/cli/dist/src/types").Color | import("packages/cli/dist/src/types").SeverityColors;
12
+ 'data-color'?: import("packages/types/dist/types").Color | import("packages/types/dist/types").SeverityColors;
13
13
  children?: never;
14
14
  } & import("react").RefAttributes<HTMLSpanElement>> & {
15
15
  Position: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").HTMLAttributes<HTMLSpanElement>, "placement" | "overlap"> & {
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet-types';
2
2
  import type { ButtonHTMLAttributes, ReactNode } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -14,7 +14,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
14
14
  */
15
15
  export declare const DialogTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
16
16
  variant?: "primary" | "secondary" | "tertiary";
17
- 'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
17
+ 'data-color'?: import("packages/types/dist/types").Color | Extract<import("packages/types/dist/types").SeverityColors, "danger">;
18
18
  icon?: boolean;
19
19
  loading?: boolean | import("react").ReactNode;
20
20
  asChild?: boolean;
@@ -10,7 +10,7 @@ export type DialogProps = MergeRight<DefaultProps & DialogHTMLAttributes<HTMLDia
10
10
  /**
11
11
  * Light dismiss behavior, allowing to close on backdrop click by setting `closedby="any"`.
12
12
  *
13
- * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy
13
+ * @see [mdn closedBy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy)
14
14
  *
15
15
  * @default 'closerequest'
16
16
  */
@@ -18,7 +18,7 @@ export type DialogProps = MergeRight<DefaultProps & DialogHTMLAttributes<HTMLDia
18
18
  /**
19
19
  * Toogle modal and non-modal dialog.
20
20
  *
21
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#creating_a_modal_dialog
21
+ * @see [mdn modal dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#creating_a_modal_dialog)
22
22
  *
23
23
  * @default true
24
24
  */
@@ -71,7 +71,7 @@ export declare const Dialog: import("react").ForwardRefExoticComponent<Omit<Defa
71
71
  /**
72
72
  * Light dismiss behavior, allowing to close on backdrop click by setting `closedby="any"`.
73
73
  *
74
- * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy
74
+ * @see [mdn closedBy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy)
75
75
  *
76
76
  * @default 'closerequest'
77
77
  */
@@ -79,7 +79,7 @@ export declare const Dialog: import("react").ForwardRefExoticComponent<Omit<Defa
79
79
  /**
80
80
  * Toogle modal and non-modal dialog.
81
81
  *
82
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#creating_a_modal_dialog
82
+ * @see [mdn modal dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#creating_a_modal_dialog)
83
83
  *
84
84
  * @default true
85
85
  */
@@ -66,7 +66,7 @@ export declare const FieldCounter: import("react").ForwardRefExoticComponent<{
66
66
  **/
67
67
  limit: number;
68
68
  } & Omit<Omit<import("../../types").DefaultProps, "data-color"> & import("react").HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
69
- 'data-color'?: import("packages/cli/dist/src/types").SeverityColors;
69
+ 'data-color'?: import("packages/types/dist/types").SeverityColors;
70
70
  asChild?: boolean;
71
71
  } & import("react").RefAttributes<HTMLParagraphElement>>;
72
72
  //# sourceMappingURL=field-counter.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet-types';
2
2
  import type { Placement } from '@floating-ui/dom';
3
3
  import type { HTMLAttributes } from 'react';
4
4
  import type { DefaultProps } from '../../types';
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QAEd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;IA9DhB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;WACI,OAAO;IACd;;;;OAIG;cACO,SAAS,GAAG,QAAQ;IAC9B;;OAEG;mBACY,KAAK,GAAG,cAAc;IACrC;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;IACpB;;;OAGG;oBACa,OAAO;IACvB;;;OAGG;cACO,OAAO;kDAgIpB,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QAEd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;IA9DhB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;WACI,OAAO;IACd;;;;OAIG;cACO,SAAS,GAAG,QAAQ;IAC9B;;OAEG;mBACY,KAAK,GAAG,cAAc;IACrC;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;IACpB;;;OAGG;oBACa,OAAO;IACvB;;;OAGG;cACO,OAAO;kDAiIpB,CAAC"}
@@ -24,7 +24,7 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
24
24
  */
25
25
  export declare const SearchButton: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
26
26
  variant?: "primary" | "secondary" | "tertiary";
27
- 'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
27
+ 'data-color'?: import("packages/types/dist/types").Color | Extract<import("packages/types/dist/types").SeverityColors, "danger">;
28
28
  icon?: boolean;
29
29
  loading?: boolean | ReactNode;
30
30
  asChild?: boolean;
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet-types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -1,4 +1,4 @@
1
- import type { SeverityColors } from '@digdir/designsystemet/types';
1
+ import type { SeverityColors } from '@digdir/designsystemet-types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -1,6 +1,6 @@
1
1
  export type {
2
- /** @deprecated This export is deprecated. Use `Size` from `@digdir/designsystemet/types` */
3
- Size, } from '@digdir/designsystemet/types';
2
+ /** @deprecated This export is deprecated. Use `Size` from `@digdir/designsystemet-types` */
3
+ Size, } from '@digdir/designsystemet-types';
4
4
  export * from './components';
5
5
  export { omit } from './components/Combobox/omit/omit';
6
6
  export type { LabelRequired } from './types';
@@ -1,4 +1,4 @@
1
- import type { Size } from '@digdir/designsystemet/types';
1
+ import type { Size } from '@digdir/designsystemet-types';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { Color } from './colors';
4
4
  export type DefaultProps = {
@@ -65,9 +65,9 @@ export declare const useRovingFocus: (value: string) => {
65
65
  exportparts?: string | undefined;
66
66
  part?: string | undefined;
67
67
  popovertarget?: string;
68
- 'data-size'?: import("packages/cli/dist/src/types").Size | (string & {});
69
- 'data-color'?: import("packages/cli/dist/src/types").Color | (string & {});
70
- 'data-color-scheme'?: import("packages/cli/dist/src/types").ColorScheme | (string & {});
68
+ 'data-size'?: import("packages/types/dist/types").Size | (string & {});
69
+ 'data-color'?: import("packages/types/dist/types").Color | (string & {});
70
+ 'data-color-scheme'?: import("packages/types/dist/types").ColorScheme | (string & {});
71
71
  "aria-activedescendant"?: string | undefined;
72
72
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
73
73
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "1.7.2",
4
+ "version": "1.8.0",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -38,16 +38,17 @@
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.7.4",
40
40
  "@floating-ui/react": "0.26.23",
41
- "@navikt/aksel-icons": "^7.32.5",
42
- "@radix-ui/react-slot": "^1.2.3",
41
+ "@navikt/aksel-icons": "^7.35.0",
42
+ "@radix-ui/react-slot": "^1.2.4",
43
43
  "@tanstack/react-virtual": "^3.13.12",
44
44
  "@u-elements/u-combobox": "^1.0.4",
45
45
  "@u-elements/u-datalist": "^1.0.14",
46
46
  "@u-elements/u-details": "^0.1.5",
47
- "clsx": "^2.1.1"
47
+ "clsx": "^2.1.1",
48
+ "@digdir/designsystemet-types": "^1.8.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@rollup/plugin-commonjs": "^28.0.9",
51
+ "@rollup/plugin-commonjs": "^29.0.0",
51
52
  "@rollup/plugin-node-resolve": "^16.0.3",
52
53
  "@storybook/addon-docs": "^9.1.16",
53
54
  "@storybook/addon-vitest": "^9.1.16",
@@ -56,18 +57,18 @@
56
57
  "@testing-library/jest-dom": "^6.9.1",
57
58
  "@testing-library/react": "^16.3.0",
58
59
  "@testing-library/user-event": "^14.6.1",
59
- "@types/react": "^19.2.2",
60
- "@types/react-dom": "^19.2.2",
61
- "react": "^19.2.0",
62
- "react-dom": "^19.2.0",
63
- "rimraf": "^6.1.0",
64
- "rollup": "^4.52.5",
60
+ "@types/react": "^19.2.7",
61
+ "@types/react-dom": "^19.2.3",
62
+ "react": "^19.2.1",
63
+ "react-dom": "^19.2.1",
64
+ "rimraf": "^6.1.2",
65
+ "rollup": "^4.53.3",
65
66
  "rollup-plugin-copy": "^3.5.0",
66
67
  "storybook": "^9.1.16",
67
- "tsx": "4.20.6",
68
+ "tsx": "4.21.0",
68
69
  "typescript": "^5.9.3",
69
- "@digdir/designsystemet": "^1.7.2",
70
- "@digdir/designsystemet-css": "^1.7.2"
70
+ "@digdir/designsystemet": "^1.8.0",
71
+ "@digdir/designsystemet-css": "^1.8.0"
71
72
  },
72
73
  "scripts": {
73
74
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",