@digdir/designsystemet-react 0.0.0-test-20250707070255 → 0.0.0-test-20250710055256

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.
@@ -13,7 +13,7 @@ var react = require('react');
13
13
  * <SkipLink href='#main-content'>Skip to main content</SkipLink>
14
14
  */
15
15
  const SkipLink = react.forwardRef(function SkipLink({ children, className, ...rest }, ref) {
16
- return (jsxRuntime.jsx("a", { className: cl('ds-skiplink', className), ...rest, ref: ref, children: children }));
16
+ return (jsxRuntime.jsx("a", { className: cl('ds-skip-link', className), ...rest, ref: ref, children: children }));
17
17
  });
18
18
 
19
19
  exports.SkipLink = SkipLink;
@@ -11,14 +11,14 @@ const SuggestionContext = react.createContext({
11
11
  handleFilter: () => undefined,
12
12
  });
13
13
  const text = (el) => el.textContent?.trim() || '';
14
- const sanitizeItems = (values = []) => typeof values === 'string'
14
+ const sanitizeItems = (values = []) => (typeof values === 'string'
15
15
  ? [{ label: values, value: values }]
16
16
  : values.map((value) => typeof value === 'string'
17
17
  ? { label: value, value }
18
18
  : {
19
19
  label: value.label || value.value || '',
20
20
  value: value.value || '',
21
- });
21
+ })).filter((x) => !!x.label);
22
22
  const nextItems = (data, prev, multiple) => {
23
23
  const item = { label: text(data), value: data.value };
24
24
  if (!multiple)
@@ -34,7 +34,7 @@ const ToggleGroup = react.forwardRef(function ToggleGroup({ children, value, def
34
34
  defaultValue,
35
35
  name: name ?? `togglegroup-name-${nameId}`,
36
36
  onChange: onValueChange,
37
- }, children: jsxRuntime.jsx(rovingFocusRoot.RovingFocusRoot, { asChild: true, activeValue: value, orientation: 'ambiguous', children: jsxRuntime.jsxs("div", { className: cl('ds-togglegroup', className), role: 'radiogroup', ref: ref, ...rest, children: [name && jsxRuntime.jsx("input", { type: 'hidden', name: name, value: value }), children] }) }) }));
37
+ }, children: jsxRuntime.jsx(rovingFocusRoot.RovingFocusRoot, { asChild: true, activeValue: value, orientation: 'ambiguous', children: jsxRuntime.jsxs("div", { className: cl('ds-toggle-group', className), role: 'radiogroup', ref: ref, ...rest, children: [name && jsxRuntime.jsx("input", { type: 'hidden', name: name, value: value }), children] }) }) }));
38
38
  });
39
39
 
40
40
  exports.ToggleGroup = ToggleGroup;
@@ -11,7 +11,7 @@ import { forwardRef } from 'react';
11
11
  * <SkipLink href='#main-content'>Skip to main content</SkipLink>
12
12
  */
13
13
  const SkipLink = forwardRef(function SkipLink({ children, className, ...rest }, ref) {
14
- return (jsx("a", { className: cl('ds-skiplink', className), ...rest, ref: ref, children: children }));
14
+ return (jsx("a", { className: cl('ds-skip-link', className), ...rest, ref: ref, children: children }));
15
15
  });
16
16
 
17
17
  export { SkipLink };
@@ -9,14 +9,14 @@ const SuggestionContext = createContext({
9
9
  handleFilter: () => undefined,
10
10
  });
11
11
  const text = (el) => el.textContent?.trim() || '';
12
- const sanitizeItems = (values = []) => typeof values === 'string'
12
+ const sanitizeItems = (values = []) => (typeof values === 'string'
13
13
  ? [{ label: values, value: values }]
14
14
  : values.map((value) => typeof value === 'string'
15
15
  ? { label: value, value }
16
16
  : {
17
17
  label: value.label || value.value || '',
18
18
  value: value.value || '',
19
- });
19
+ })).filter((x) => !!x.label);
20
20
  const nextItems = (data, prev, multiple) => {
21
21
  const item = { label: text(data), value: data.value };
22
22
  if (!multiple)
@@ -32,7 +32,7 @@ const ToggleGroup = forwardRef(function ToggleGroup({ children, value, defaultVa
32
32
  defaultValue,
33
33
  name: name ?? `togglegroup-name-${nameId}`,
34
34
  onChange: onValueChange,
35
- }, children: jsx(RovingFocusRoot, { asChild: true, activeValue: value, orientation: 'ambiguous', children: jsxs("div", { className: cl('ds-togglegroup', className), role: 'radiogroup', ref: ref, ...rest, children: [name && jsx("input", { type: 'hidden', name: name, value: value }), children] }) }) }));
35
+ }, children: jsx(RovingFocusRoot, { asChild: true, activeValue: value, orientation: 'ambiguous', children: jsxs("div", { className: cl('ds-toggle-group', className), role: 'radiogroup', ref: ref, ...rest, children: [name && jsx("input", { type: 'hidden', name: name, value: value }), children] }) }) }));
36
36
  });
37
37
 
38
38
  export { ToggleGroup, ToggleGroupContext };
@@ -7,18 +7,16 @@ type EmptyObject = {
7
7
  * The CLI will generate augmentations of this interface to allow
8
8
  * type safety of custom color names.
9
9
  */
10
- export interface MainAndSupportColors {
10
+ export interface ReactColors {
11
+ }
12
+ export interface ReactSeverityColors {
11
13
  }
12
14
  /**
13
- * If {@link MainAndSupportColors} has been extended to include color names, return T,
15
+ * If {@link ReactColors} or {@link ReactSeverityColors} has been extended to include color names, return T,
14
16
  * otherwise return the arbitrary string type.
15
17
  */
16
- type ColorWithFallback<T> = MainAndSupportColors extends EmptyObject ? string : T;
17
- export type SeverityInfo = 'info';
18
- export type SeveritySuccess = 'success';
19
- export type SeverityWarning = 'warning';
20
- export type SeverityDanger = 'danger';
21
- export type SeverityColors = SeverityInfo | SeveritySuccess | SeverityWarning | SeverityDanger;
22
- export type Color = ColorWithFallback<'neutral' | keyof MainAndSupportColors>;
18
+ type ColorWithFallback<T> = ReactColors extends EmptyObject ? string : T;
19
+ export type SeverityColors = ColorWithFallback<keyof ReactSeverityColors>;
20
+ export type Color = ColorWithFallback<keyof ReactColors>;
23
21
  export {};
24
22
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.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,oBAAoB;CAAG;AAExC;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,oBAAoB,SAAS,WAAW,GAChE,MAAM,GACN,CAAC,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AACxC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;AACtC,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,SAAS,GAAG,MAAM,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.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,WAAW;CAAG;AAE/B,MAAM,WAAW,mBAAmB;CAAG;AAEvC;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,WAAW,SAAS,WAAW,GAAG,MAAM,GAAG,CAAC,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,WAAW,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { SeverityColors } from '@digdir/designsystemet-react/colors';
1
2
  import type { HTMLAttributes } from 'react';
2
- import type { SeverityColors } from '../../colors';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
5
5
  export type AlertProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,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;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityDanger } from '@digdir/designsystemet-react/colors';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet-react/colors';
2
2
  import type { ButtonHTMLAttributes, ReactNode } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -11,7 +11,7 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
11
11
  /**
12
12
  * Change the color scheme of the button
13
13
  */
14
- 'data-color'?: Color | SeverityDanger;
14
+ 'data-color'?: Color | Extract<SeverityColors, 'danger'>;
15
15
  /**
16
16
  * Toggle icon only styling, pass icon as children
17
17
  * @default false
@@ -50,7 +50,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps &
50
50
  /**
51
51
  * Change the color scheme of the button
52
52
  */
53
- 'data-color'?: Color | SeverityDanger;
53
+ 'data-color'?: Color | Extract<SeverityColors, "danger">;
54
54
  /**
55
55
  * Toggle icon only styling, pass icon as children
56
56
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACf,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAxCf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;mBACY,KAAK,GAAG,cAAc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GAAG,SAAS;IAC7B;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CAgDzD,CAAC"}
@@ -14,7 +14,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
14
14
  */
15
15
  export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
16
16
  variant?: "primary" | "secondary" | "tertiary";
17
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
17
+ 'data-color'?: import("../../colors").Color | Extract<import("../../colors").SeverityColors, "danger">;
18
18
  icon?: boolean;
19
19
  loading?: boolean | React.ReactNode;
20
20
  asChild?: boolean;
@@ -31,7 +31,7 @@ declare const Dialog: React.ForwardRefExoticComponent<Omit<import("../../types")
31
31
  };
32
32
  Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
33
33
  variant?: "primary" | "secondary" | "tertiary";
34
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
34
+ 'data-color'?: import("../../colors").Color | Extract<import("../../colors").SeverityColors, "danger">;
35
35
  icon?: boolean;
36
36
  loading?: boolean | React.ReactNode;
37
37
  asChild?: boolean;
@@ -23,7 +23,7 @@ declare const Search: React.ForwardRefExoticComponent<import("../../types").Defa
23
23
  } & React.RefAttributes<HTMLButtonElement>>;
24
24
  Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
25
25
  variant?: "primary" | "secondary" | "tertiary";
26
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
26
+ 'data-color'?: import("../../colors").Color | Extract<import("../../colors").SeverityColors, "danger">;
27
27
  icon?: boolean;
28
28
  loading?: boolean | React.ReactNode;
29
29
  asChild?: boolean;
@@ -24,7 +24,7 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
24
24
  */
25
25
  export declare const SearchButton: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
26
26
  variant?: "primary" | "secondary" | "tertiary";
27
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
27
+ 'data-color'?: import("../../colors").Color | Extract<import("../../colors").SeverityColors, "danger">;
28
28
  icon?: boolean;
29
29
  loading?: boolean | ReactNode;
30
30
  asChild?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/suggestion/suggestion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAC;AACf,OAAO,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC;AAEtE,KAAK,IAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,KAAK,MAAM,GAAG,CAAC,IAAI,EAAE;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;CACzB,KAAK,OAAO,CAAC;AAEd,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,sCAE5B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AA2CzC,eAAO,MAAM,UAAU;IApFrB;;;;;;;;OAQG;aACM,OAAO,GAAG,MAAM;IACzB;;;;OAIG;gBACS,OAAO;IACnB;;;;OAIG;eACQ,OAAO;IAClB;;;OAGG;YACK,gBAAgB;IACxB;;OAEG;mBACY,gBAAgB;IAC/B;;OAEG;oBACa,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI;IACvC;;;;OAIG;WACI,MAAM;qFAsJd,CAAC"}
1
+ {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/suggestion/suggestion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAC;AACf,OAAO,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,MAAM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;AA4CzC,eAAO,MAAM,UAAU;IArFrB;;;;;;;;OAQG;aACM,OAAO,GAAG,MAAM;IACzB;;;;OAIG;gBACS,OAAO;IACnB;;;;OAIG;eACQ,OAAO;IAClB;;;OAGG;YACK,gBAAgB;IACxB;;OAEG;mBACY,gBAAgB;IAC/B;;OAEG;oBACa,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI;IACvC;;;;OAIG;WACI,MAAM;qFAuJd,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { SeverityColors } from '@digdir/designsystemet-react/colors';
1
2
  import type { HTMLAttributes } from 'react';
2
- import type { SeverityColors } from '../../colors';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
5
5
  export type ValidationMessageProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAttributes<HTMLParagraphElement>, {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-message.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/validation-message.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,oBAAoB,CAAC,EACvE;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAnB1B;;;OAGG;mBACY,cAAc;IAC7B;;;OAGG;cACO,OAAO;8CAwBnB,CAAC"}
1
+ {"version":3,"file":"validation-message.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/validation-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAG1E,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;AAElD,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,oBAAoB,CAAC,EACvE;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAnB1B;;;OAGG;mBACY,cAAc;IAC7B;;;OAGG;cACO,OAAO;8CAwBnB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "0.0.0-test-20250707070255",
4
+ "version": "0.0.0-test-20250710055256",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -67,7 +67,7 @@
67
67
  "storybook": "^9.0.14",
68
68
  "tsx": "4.20.3",
69
69
  "typescript": "^5.8.3",
70
- "@digdir/designsystemet-css": "^0.0.0-test-20250707070255"
70
+ "@digdir/designsystemet-css": "^0.0.0-test-20250710055256"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",