@digdir/designsystemet-react 0.0.0-fix-css-component-variables-20260521102027 → 0.0.0-fix-missing-react-types-20260611075117

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.
Files changed (38) hide show
  1. package/dist/cjs/components/dialog/dialog.js +15 -5
  2. package/dist/cjs/components/label/label.js +1 -1
  3. package/dist/cjs/components/popover/popover.js +26 -10
  4. package/dist/cjs/components/tabs/tabs-tab.js +1 -3
  5. package/dist/cjs/components/tooltip/tooltip.js +1 -1
  6. package/dist/cjs/utilities/hooks/use-checkbox-group/use-checkbox-group.js +8 -2
  7. package/dist/cjs/utilities/hooks/use-radio-group/use-radio-group.js +11 -4
  8. package/dist/esm/components/dialog/dialog.js +15 -5
  9. package/dist/esm/components/label/label.js +1 -1
  10. package/dist/esm/components/popover/popover.js +26 -10
  11. package/dist/esm/components/tabs/tabs-tab.js +1 -3
  12. package/dist/esm/components/tooltip/tooltip.js +1 -1
  13. package/dist/esm/utilities/hooks/use-checkbox-group/use-checkbox-group.js +8 -2
  14. package/dist/esm/utilities/hooks/use-radio-group/use-radio-group.js +11 -4
  15. package/dist/types/components/badge/index.d.ts +2 -2
  16. package/dist/types/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
  17. package/dist/types/components/dialog/dialog-trigger.d.ts +1 -1
  18. package/dist/types/components/dialog/dialog.d.ts.map +1 -1
  19. package/dist/types/components/error-summary/error-summary-link.d.ts +1 -1
  20. package/dist/types/components/error-summary/error-summary-list.d.ts +1 -1
  21. package/dist/types/components/error-summary/error-summary-list.d.ts.map +1 -1
  22. package/dist/types/components/field/field-counter.d.ts +1 -1
  23. package/dist/types/components/heading/heading.d.ts +0 -2
  24. package/dist/types/components/heading/heading.d.ts.map +1 -1
  25. package/dist/types/components/label/label.d.ts +0 -2
  26. package/dist/types/components/label/label.d.ts.map +1 -1
  27. package/dist/types/components/popover/popover.d.ts.map +1 -1
  28. package/dist/types/components/search/search-button.d.ts +1 -1
  29. package/dist/types/components/tabs/tabs-tab.d.ts.map +1 -1
  30. package/dist/types/components/tooltip/tooltip.d.ts +4 -4
  31. package/dist/types/components/tooltip/tooltip.d.ts.map +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/utilities/hooks/use-checkbox-group/use-checkbox-group.d.ts +4 -0
  35. package/dist/types/utilities/hooks/use-checkbox-group/use-checkbox-group.d.ts.map +1 -1
  36. package/dist/types/utilities/hooks/use-radio-group/use-radio-group.d.ts +5 -1
  37. package/dist/types/utilities/hooks/use-radio-group/use-radio-group.d.ts.map +1 -1
  38. package/package.json +4 -4
@@ -38,11 +38,20 @@ const Dialog = react.forwardRef(function Dialog({ asChild, children, className,
38
38
  const dialogRef = react.useRef(null); // This local ref is used to make sure the dialog works without a DialogTriggerContext
39
39
  const Component = asChild ? reactSlot.Slot : 'dialog';
40
40
  const mergedRefs = useMergeRefs.useMergeRefs([contextRef, ref, dialogRef]);
41
- const showProp = modal ? 'showModal' : 'show';
42
41
  const autoId = react.useId();
43
42
  const usedId = id ?? autoId;
44
43
  // Toggle open based on prop
45
- react.useEffect(() => dialogRef.current?.[open ? showProp : 'close'](), [open]);
44
+ react.useEffect(() => {
45
+ if (open === undefined)
46
+ return; // Uncontrolled if open prop is not provided
47
+ const dialog = dialogRef.current;
48
+ if (dialog) {
49
+ if (open && !dialog.open)
50
+ dialog[modal ? 'showModal' : 'show']();
51
+ else
52
+ dialog.open = !!open; // Close with prop to prevent close event from firing
53
+ }
54
+ }, [open, modal]);
46
55
  return (jsxRuntime.jsxs(Component, { className: cl('ds-dialog', className), "data-placement": placement, "data-modal": modal, id: usedId, onClose: (event) => {
47
56
  if (event.target !== event.currentTarget)
48
57
  return; // Ignore close events from nested dialogs
@@ -57,11 +66,12 @@ const Dialog = react.forwardRef(function Dialog({ asChild, children, className,
57
66
  console.log('Designsystemet: data-command="close" is deprecated. Use command="close" and commandfor="DIALOG-ID" instead.');
58
67
  }
59
68
  }, onAnimationEnd: (event) => {
60
- const { currentTarget: dialog } = event;
61
- const autofocus = dialog.querySelector('[autofocus]');
69
+ onAnimationEnd?.(event);
70
+ if (event.currentTarget !== event.target)
71
+ return; // Only run if event is from the dialog itself
72
+ const autofocus = event.currentTarget.querySelector('[autofocus]');
62
73
  if (document.activeElement !== autofocus)
63
74
  autofocus?.focus(); // Handle autofocus on open
64
- onAnimationEnd?.(event);
65
75
  }, ref: mergedRefs, ...rest, children: [closeButton !== false && (jsxRuntime.jsx(button.Button, { "aria-label": closeButton, "data-color": 'neutral', icon: true, variant: 'tertiary', command: 'close', commandfor: usedId })), children] }));
66
76
  });
67
77
 
@@ -12,7 +12,7 @@ var react = require('react');
12
12
  * @example
13
13
  * <Label data-size='lg' weight='medium'>Label</Label>
14
14
  */
15
- const Label = react.forwardRef(function Label({ className, weight = 'medium', asChild, ...rest }, ref) {
15
+ const Label = react.forwardRef(function Label({ className, weight, asChild, ...rest }, ref) {
16
16
  const Component = asChild ? reactSlot.Slot : 'label';
17
17
  return (jsxRuntime.jsx(Component, { ref: ref, className: cl('ds-label', className), suppressHydrationWarning // Since <ds-field> will add for attribute dynamically
18
18
  : true, "data-weight": weight, ...rest }));
@@ -53,16 +53,12 @@ const Popover = react.forwardRef(function Popover({ id, className, onClose, onOp
53
53
  }
54
54
  };
55
55
  const handleKeydown = (event) => {
56
- if (event.key !== 'Escape' || !controlledOpen)
57
- return;
58
- const isOpen = popoverRef.current?.matches(':popover-open') ||
59
- popoverRef.current?.classList.contains(':popover-open'); // Polyfill support
60
- if (!isOpen)
61
- return;
62
- event.preventDefault(); // Prevent closing fullscreen in Safari
63
- document.querySelector(trigger)?.focus?.(); // Move focus back to trigger since `popoover="manual"` doesn't do this
64
- setInternalOpen(false);
65
- onClose?.();
56
+ if (event.key === 'Escape' && controlledOpen && isTopLayer(popover)) {
57
+ event.preventDefault(); // Prevent closing fullscreen in Safari
58
+ document.querySelector(trigger)?.focus?.(); // Move focus back to trigger since `popover="manual"` doesn't do this
59
+ setInternalOpen(false);
60
+ onClose?.();
61
+ }
66
62
  };
67
63
  popover?.togglePopover?.(controlledOpen);
68
64
  if (controlledOpen) {
@@ -84,5 +80,25 @@ const Popover = react.forwardRef(function Popover({ id, className, onClose, onOp
84
80
  return (jsxRuntime.jsx(Component, { className: cl('ds-popover', className), id: id || popoverId, popover: 'manual', "data-placement": placement, "data-variant": variant, ref: mergedRefs, suppressHydrationWarning // Since _ds-floating adds attributes
85
81
  : true, ...rest }));
86
82
  });
83
+ // NOTE: This is not able to check if the popover is the most recently added #topLayer,
84
+ // so we need another method in time, or remove the controlled popover="manual" in a v2
85
+ const isTopLayer = (checkElement) => {
86
+ if (!checkElement)
87
+ return false;
88
+ const { x, y, width, height } = checkElement.getBoundingClientRect();
89
+ const topElement = document.elementFromPoint(x + width / 2, y + height / 2);
90
+ // If the element on top is on browser #top-layer but not same as provided element, then provided element is not on top
91
+ for (let el = topElement; el; el = el.parentElement) {
92
+ if (checkElement === el)
93
+ return true; // If the topElement is same as provided element, it's on top
94
+ if (el instanceof HTMLDialogElement && el.open)
95
+ return false; // Check for open dialog
96
+ if (el.classList.contains(':popover-open'))
97
+ return false; // Polyfill support
98
+ if (el.matches(':popover-open'))
99
+ return false; // Native support
100
+ }
101
+ return false;
102
+ };
87
103
 
88
104
  exports.Popover = Popover;
@@ -14,9 +14,7 @@ var tabs = require('./tabs.js');
14
14
  */
15
15
  const TabsTab = react.forwardRef(function TabsTab({ value, className, onClick, onClickCapture, ...rest }, ref) {
16
16
  const { onChange, getPrefixedValue, isControlled, currentValue } = react.useContext(tabs.Context);
17
- return (
18
- // biome-ignore lint/a11y/noStaticElementInteractions: ds-tabs IS interactive
19
- jsxRuntime.jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
17
+ return (jsxRuntime.jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
20
18
  : true, onClickCapture: (e) => {
21
19
  onClickCapture?.(e);
22
20
  if (isControlled && currentValue !== value)
@@ -22,7 +22,7 @@ var react = require('react');
22
22
  const Tooltip = react.forwardRef(function Tooltip({ content, placement = 'top', autoPlacement = true, ...rest }, ref) {
23
23
  /* check if children is a string */
24
24
  const isString = typeof rest.children === 'string';
25
- return (jsxRuntime.jsx(reactSlot.Slot, { "aria-label": content || undefined, "data-tooltip": content, "data-placement": placement, "data-autoplacement": autoPlacement, suppressHydrationWarning // Since data-tooltip adds aria-label/aria-description
25
+ return (jsxRuntime.jsx(reactSlot.Slot, { "data-tooltip": content, "data-placement": placement, "data-autoplacement": autoPlacement, suppressHydrationWarning // Since data-tooltip adds aria-label/aria-description
26
26
  : true, ref: ref, ...rest, children: isString ? jsxRuntime.jsx("span", { tabIndex: 0, children: rest.children }) : rest.children }));
27
27
  });
28
28
 
@@ -47,10 +47,15 @@ function useCheckboxGroup(props) {
47
47
  * <Checkbox {...getCheckboxProps({ value: 'all', allowIndeterminate: true })} />
48
48
  */
49
49
  getCheckboxProps: (propsOrValue) => {
50
- const props = typeof propsOrValue === 'string'
50
+ let groupProps;
51
+ if (props) {
52
+ const { onChange, error, ...rest } = props;
53
+ groupProps = rest;
54
+ }
55
+ const checkboxProps = typeof propsOrValue === 'string'
51
56
  ? { value: propsOrValue }
52
57
  : propsOrValue || {};
53
- const { allowIndeterminate = false, ref: forwardedRef = undefined, value = '', ...rest } = props;
58
+ const { allowIndeterminate = false, ref: forwardedRef = undefined, value = '', ...rest } = checkboxProps;
54
59
  const handleRef = (element) => {
55
60
  if (element) {
56
61
  const refs = allowIndeterminate ? indeterminateRefs : checkboxRefs;
@@ -92,6 +97,7 @@ function useCheckboxGroup(props) {
92
97
  }
93
98
  };
94
99
  return {
100
+ ...groupProps,
95
101
  ...rest,
96
102
  'aria-describedby': `${error ? errorId : ''} ${rest['aria-describedby'] || ''}`.trim() ||
97
103
  undefined,
@@ -16,8 +16,9 @@ var react = require('react');
16
16
  * value: '',
17
17
  * });
18
18
  */
19
- function useRadioGroup({ error, readOnly, required, disabled, name, onChange, value: initalValue = '', } = {}) {
20
- const [groupValue, setGroupValue] = react.useState(initalValue);
19
+ function useRadioGroup(props) {
20
+ const { error, readOnly, required, disabled, name, onChange, value: initialValue = '', } = props || {};
21
+ const [groupValue, setGroupValue] = react.useState(initialValue);
21
22
  const errorId = react.useId();
22
23
  const namedId = react.useId();
23
24
  const radioGroupName = name || namedId;
@@ -39,10 +40,15 @@ function useRadioGroup({ error, readOnly, required, disabled, name, onChange, va
39
40
  * <Radio label="Option 1" {...getRadioProps('option-1')} />
40
41
  */
41
42
  getRadioProps: (propsOrValue) => {
42
- const props = typeof propsOrValue === 'string'
43
+ let groupProps;
44
+ if (props) {
45
+ const { onChange, error, ...rest } = props;
46
+ groupProps = rest;
47
+ }
48
+ const radioProps = typeof propsOrValue === 'string'
43
49
  ? { value: propsOrValue }
44
50
  : propsOrValue;
45
- const { ref: forwardedRef = undefined, value = '', ...rest } = props;
51
+ const { ref: forwardedRef = undefined, value = '', ...rest } = radioProps;
46
52
  const handleRef = (element) => {
47
53
  if (element) {
48
54
  // Set initial checked state
@@ -67,6 +73,7 @@ function useRadioGroup({ error, readOnly, required, disabled, name, onChange, va
67
73
  }
68
74
  };
69
75
  return {
76
+ ...groupProps,
70
77
  ...rest,
71
78
  name: radioGroupName,
72
79
  'aria-describedby': `${error ? errorId : ''} ${rest['aria-describedby'] || ''}`.trim() ||
@@ -36,11 +36,20 @@ const Dialog = forwardRef(function Dialog({ asChild, children, className, closeB
36
36
  const dialogRef = useRef(null); // This local ref is used to make sure the dialog works without a DialogTriggerContext
37
37
  const Component = asChild ? Slot : 'dialog';
38
38
  const mergedRefs = useMergeRefs([contextRef, ref, dialogRef]);
39
- const showProp = modal ? 'showModal' : 'show';
40
39
  const autoId = useId();
41
40
  const usedId = id ?? autoId;
42
41
  // Toggle open based on prop
43
- useEffect(() => dialogRef.current?.[open ? showProp : 'close'](), [open]);
42
+ useEffect(() => {
43
+ if (open === undefined)
44
+ return; // Uncontrolled if open prop is not provided
45
+ const dialog = dialogRef.current;
46
+ if (dialog) {
47
+ if (open && !dialog.open)
48
+ dialog[modal ? 'showModal' : 'show']();
49
+ else
50
+ dialog.open = !!open; // Close with prop to prevent close event from firing
51
+ }
52
+ }, [open, modal]);
44
53
  return (jsxs(Component, { className: cl('ds-dialog', className), "data-placement": placement, "data-modal": modal, id: usedId, onClose: (event) => {
45
54
  if (event.target !== event.currentTarget)
46
55
  return; // Ignore close events from nested dialogs
@@ -55,11 +64,12 @@ const Dialog = forwardRef(function Dialog({ asChild, children, className, closeB
55
64
  console.log('Designsystemet: data-command="close" is deprecated. Use command="close" and commandfor="DIALOG-ID" instead.');
56
65
  }
57
66
  }, onAnimationEnd: (event) => {
58
- const { currentTarget: dialog } = event;
59
- const autofocus = dialog.querySelector('[autofocus]');
67
+ onAnimationEnd?.(event);
68
+ if (event.currentTarget !== event.target)
69
+ return; // Only run if event is from the dialog itself
70
+ const autofocus = event.currentTarget.querySelector('[autofocus]');
60
71
  if (document.activeElement !== autofocus)
61
72
  autofocus?.focus(); // Handle autofocus on open
62
- onAnimationEnd?.(event);
63
73
  }, ref: mergedRefs, ...rest, children: [closeButton !== false && (jsx(Button, { "aria-label": closeButton, "data-color": 'neutral', icon: true, variant: 'tertiary', command: 'close', commandfor: usedId })), children] }));
64
74
  });
65
75
 
@@ -10,7 +10,7 @@ import { forwardRef } from 'react';
10
10
  * @example
11
11
  * <Label data-size='lg' weight='medium'>Label</Label>
12
12
  */
13
- const Label = forwardRef(function Label({ className, weight = 'medium', asChild, ...rest }, ref) {
13
+ const Label = forwardRef(function Label({ className, weight, asChild, ...rest }, ref) {
14
14
  const Component = asChild ? Slot : 'label';
15
15
  return (jsx(Component, { ref: ref, className: cl('ds-label', className), suppressHydrationWarning // Since <ds-field> will add for attribute dynamically
16
16
  : true, "data-weight": weight, ...rest }));
@@ -51,16 +51,12 @@ const Popover = forwardRef(function Popover({ id, className, onClose, onOpen, op
51
51
  }
52
52
  };
53
53
  const handleKeydown = (event) => {
54
- if (event.key !== 'Escape' || !controlledOpen)
55
- return;
56
- const isOpen = popoverRef.current?.matches(':popover-open') ||
57
- popoverRef.current?.classList.contains(':popover-open'); // Polyfill support
58
- if (!isOpen)
59
- return;
60
- event.preventDefault(); // Prevent closing fullscreen in Safari
61
- document.querySelector(trigger)?.focus?.(); // Move focus back to trigger since `popoover="manual"` doesn't do this
62
- setInternalOpen(false);
63
- onClose?.();
54
+ if (event.key === 'Escape' && controlledOpen && isTopLayer(popover)) {
55
+ event.preventDefault(); // Prevent closing fullscreen in Safari
56
+ document.querySelector(trigger)?.focus?.(); // Move focus back to trigger since `popover="manual"` doesn't do this
57
+ setInternalOpen(false);
58
+ onClose?.();
59
+ }
64
60
  };
65
61
  popover?.togglePopover?.(controlledOpen);
66
62
  if (controlledOpen) {
@@ -82,5 +78,25 @@ const Popover = forwardRef(function Popover({ id, className, onClose, onOpen, op
82
78
  return (jsx(Component, { className: cl('ds-popover', className), id: id || popoverId, popover: 'manual', "data-placement": placement, "data-variant": variant, ref: mergedRefs, suppressHydrationWarning // Since _ds-floating adds attributes
83
79
  : true, ...rest }));
84
80
  });
81
+ // NOTE: This is not able to check if the popover is the most recently added #topLayer,
82
+ // so we need another method in time, or remove the controlled popover="manual" in a v2
83
+ const isTopLayer = (checkElement) => {
84
+ if (!checkElement)
85
+ return false;
86
+ const { x, y, width, height } = checkElement.getBoundingClientRect();
87
+ const topElement = document.elementFromPoint(x + width / 2, y + height / 2);
88
+ // If the element on top is on browser #top-layer but not same as provided element, then provided element is not on top
89
+ for (let el = topElement; el; el = el.parentElement) {
90
+ if (checkElement === el)
91
+ return true; // If the topElement is same as provided element, it's on top
92
+ if (el instanceof HTMLDialogElement && el.open)
93
+ return false; // Check for open dialog
94
+ if (el.classList.contains(':popover-open'))
95
+ return false; // Polyfill support
96
+ if (el.matches(':popover-open'))
97
+ return false; // Native support
98
+ }
99
+ return false;
100
+ };
85
101
 
86
102
  export { Popover };
@@ -12,9 +12,7 @@ import { Context } from './tabs.js';
12
12
  */
13
13
  const TabsTab = forwardRef(function TabsTab({ value, className, onClick, onClickCapture, ...rest }, ref) {
14
14
  const { onChange, getPrefixedValue, isControlled, currentValue } = useContext(Context);
15
- return (
16
- // biome-ignore lint/a11y/noStaticElementInteractions: ds-tabs IS interactive
17
- jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
15
+ return (jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
18
16
  : true, onClickCapture: (e) => {
19
17
  onClickCapture?.(e);
20
18
  if (isControlled && currentValue !== value)
@@ -20,7 +20,7 @@ import { forwardRef } from 'react';
20
20
  const Tooltip = forwardRef(function Tooltip({ content, placement = 'top', autoPlacement = true, ...rest }, ref) {
21
21
  /* check if children is a string */
22
22
  const isString = typeof rest.children === 'string';
23
- return (jsx(Slot, { "aria-label": content || undefined, "data-tooltip": content, "data-placement": placement, "data-autoplacement": autoPlacement, suppressHydrationWarning // Since data-tooltip adds aria-label/aria-description
23
+ return (jsx(Slot, { "data-tooltip": content, "data-placement": placement, "data-autoplacement": autoPlacement, suppressHydrationWarning // Since data-tooltip adds aria-label/aria-description
24
24
  : true, ref: ref, ...rest, children: isString ? jsx("span", { tabIndex: 0, children: rest.children }) : rest.children }));
25
25
  });
26
26
 
@@ -45,10 +45,15 @@ function useCheckboxGroup(props) {
45
45
  * <Checkbox {...getCheckboxProps({ value: 'all', allowIndeterminate: true })} />
46
46
  */
47
47
  getCheckboxProps: (propsOrValue) => {
48
- const props = typeof propsOrValue === 'string'
48
+ let groupProps;
49
+ if (props) {
50
+ const { onChange, error, ...rest } = props;
51
+ groupProps = rest;
52
+ }
53
+ const checkboxProps = typeof propsOrValue === 'string'
49
54
  ? { value: propsOrValue }
50
55
  : propsOrValue || {};
51
- const { allowIndeterminate = false, ref: forwardedRef = undefined, value = '', ...rest } = props;
56
+ const { allowIndeterminate = false, ref: forwardedRef = undefined, value = '', ...rest } = checkboxProps;
52
57
  const handleRef = (element) => {
53
58
  if (element) {
54
59
  const refs = allowIndeterminate ? indeterminateRefs : checkboxRefs;
@@ -90,6 +95,7 @@ function useCheckboxGroup(props) {
90
95
  }
91
96
  };
92
97
  return {
98
+ ...groupProps,
93
99
  ...rest,
94
100
  'aria-describedby': `${error ? errorId : ''} ${rest['aria-describedby'] || ''}`.trim() ||
95
101
  undefined,
@@ -14,8 +14,9 @@ import { useState, useId } from 'react';
14
14
  * value: '',
15
15
  * });
16
16
  */
17
- function useRadioGroup({ error, readOnly, required, disabled, name, onChange, value: initalValue = '', } = {}) {
18
- const [groupValue, setGroupValue] = useState(initalValue);
17
+ function useRadioGroup(props) {
18
+ const { error, readOnly, required, disabled, name, onChange, value: initialValue = '', } = props || {};
19
+ const [groupValue, setGroupValue] = useState(initialValue);
19
20
  const errorId = useId();
20
21
  const namedId = useId();
21
22
  const radioGroupName = name || namedId;
@@ -37,10 +38,15 @@ function useRadioGroup({ error, readOnly, required, disabled, name, onChange, va
37
38
  * <Radio label="Option 1" {...getRadioProps('option-1')} />
38
39
  */
39
40
  getRadioProps: (propsOrValue) => {
40
- const props = typeof propsOrValue === 'string'
41
+ let groupProps;
42
+ if (props) {
43
+ const { onChange, error, ...rest } = props;
44
+ groupProps = rest;
45
+ }
46
+ const radioProps = typeof propsOrValue === 'string'
41
47
  ? { value: propsOrValue }
42
48
  : propsOrValue;
43
- const { ref: forwardedRef = undefined, value = '', ...rest } = props;
49
+ const { ref: forwardedRef = undefined, value = '', ...rest } = radioProps;
44
50
  const handleRef = (element) => {
45
51
  if (element) {
46
52
  // Set initial checked state
@@ -65,6 +71,7 @@ function useRadioGroup({ error, readOnly, required, disabled, name, onChange, va
65
71
  }
66
72
  };
67
73
  return {
74
+ ...groupProps,
68
75
  ...rest,
69
76
  name: radioGroupName,
70
77
  'aria-describedby': `${error ? errorId : ''} ${rest['aria-describedby'] || ''}`.trim() ||
@@ -5,14 +5,14 @@ import { BadgePosition } from './badge-position';
5
5
  * @example without children
6
6
  * <Badge count={5} maxCount={10} />
7
7
  */
8
- declare const Badge: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").HTMLAttributes<HTMLSpanElement>, "data-color" | "children" | "variant" | "count" | "maxCount"> & {
8
+ declare const Badge: import("react").ForwardRefExoticComponent<Omit<import("../..").DefaultProps & import("react").HTMLAttributes<HTMLSpanElement>, "data-color" | "children" | "variant" | "count" | "maxCount"> & {
9
9
  count?: number;
10
10
  maxCount?: number;
11
11
  variant?: "base" | "tinted";
12
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
- Position: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").HTMLAttributes<HTMLSpanElement>, "overlap" | "placement"> & {
15
+ Position: import("react").ForwardRefExoticComponent<Omit<import("../..").DefaultProps & import("react").HTMLAttributes<HTMLSpanElement>, "overlap" | "placement"> & {
16
16
  placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
17
17
  overlap?: "circle" | "rectangle";
18
18
  } & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,6 +1,6 @@
1
1
  import { type LinkProps } from '../link/link';
2
2
  export type BreadcrumbsLinkProps = LinkProps;
3
- export declare const BreadcrumbsLink: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
3
+ export declare const BreadcrumbsLink: import("react").ForwardRefExoticComponent<Omit<import("../..").DefaultProps & import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
4
4
  children: import("react").ReactNode;
5
5
  asChild?: boolean;
6
6
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -12,7 +12,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
12
12
  * </Dialog>
13
13
  * </Dialog.TriggerContext>
14
14
  */
15
- export declare const DialogTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "command" | "commandfor" | "commandFor">, "type" | "data-color" | "variant" | "command" | "commandfor" | "commandFor" | "icon" | "loading" | "asChild"> & {
15
+ export declare const DialogTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("../..").DefaultProps & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "command" | "commandfor" | "commandFor">, "type" | "data-color" | "variant" | "command" | "commandfor" | "commandFor" | "icon" | "loading" | "asChild"> & {
16
16
  variant?: "primary" | "secondary" | "tertiary";
17
17
  'data-color'?: import("packages/types/dist/types").Color | Extract<import("packages/types/dist/types").SeverityColors, "danger">;
18
18
  icon?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC3D;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM;IApEf;;;OAGG;kBACW,MAAM,GAAG,KAAK;IAC5B;;;;;;OAMG;eACQ,MAAM,GAAG,cAAc,GAAG,KAAK;IAC1C;;;;OAIG;gBACS,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ;IAC1D;;;;;;OAMG;YACK,OAAO;IACf;;OAEG;WACI,OAAO;IACd;;OAEG;cACO,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAChC;;;;;OAKG;cACO,OAAO;qDAsGpB,CAAC"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC3D;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM;IApEf;;;OAGG;kBACW,MAAM,GAAG,KAAK;IAC5B;;;;;;OAMG;eACQ,MAAM,GAAG,cAAc,GAAG,KAAK;IAC1C;;;;OAIG;gBACS,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ;IAC1D;;;;;;OAMG;YACK,OAAO;IACf;;OAEG;WACI,OAAO;IACd;;OAEG;cACO,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAChC;;;;;OAKG;cACO,OAAO;qDA8GpB,CAAC"}
@@ -10,7 +10,7 @@ export type ErrorSummaryLinkProps = LinkProps;
10
10
  * </ErrorSummaryItem>
11
11
  * </ErrorSummary>
12
12
  */
13
- export declare const ErrorSummaryLink: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
13
+ export declare const ErrorSummaryLink: import("react").ForwardRefExoticComponent<Omit<import("../..").DefaultProps & import("react").AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
14
14
  children: import("react").ReactNode;
15
15
  asChild?: boolean;
16
16
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -17,5 +17,5 @@ export type ErrorSummaryListProps = ListUnorderedProps;
17
17
  */
18
18
  export declare const ErrorSummaryList: import("react").ForwardRefExoticComponent<{
19
19
  asChild?: boolean;
20
- } & import("../../types").DefaultProps & Omit<import("react").HTMLAttributes<HTMLUListElement>, "size"> & import("react").RefAttributes<HTMLOListElement>>;
20
+ } & import("../..").DefaultProps & Omit<import("react").HTMLAttributes<HTMLUListElement>, "size"> & import("react").RefAttributes<HTMLOListElement>>;
21
21
  //# sourceMappingURL=error-summary-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-summary-list.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;0JAK3B,CAAC"}
1
+ {"version":3,"file":"error-summary-list.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;oJAK3B,CAAC"}
@@ -59,7 +59,7 @@ export declare const FieldCounter: import("react").ForwardRefExoticComponent<{
59
59
  * @default undefined
60
60
  **/
61
61
  limit: number;
62
- } & Omit<Omit<import("../../types").DefaultProps, "data-color"> & import("react").HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
62
+ } & Omit<Omit<import("../..").DefaultProps, "data-color"> & import("react").HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
63
63
  'data-color'?: import("packages/types/dist/types").SeverityColors;
64
64
  asChild?: boolean;
65
65
  } & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -7,7 +7,6 @@ export type HeadingProps = {
7
7
  level?: 1 | 2 | 3 | 4 | 5 | 6;
8
8
  /**
9
9
  * Changes text sizing
10
- * @default 'md'
11
10
  */
12
11
  'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
13
12
  /**
@@ -30,7 +29,6 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
30
29
  level?: 1 | 2 | 3 | 4 | 5 | 6;
31
30
  /**
32
31
  * Changes text sizing
33
- * @default 'md'
34
32
  */
35
33
  'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
36
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAvBlB;;;OAGG;YACK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7B;;;OAGG;kBACW,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK;IAC9D;;;OAGG;cACO,OAAO;2FAiBlB,CAAC"}
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAtBlB;;;OAGG;YACK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7B;;OAEG;kBACW,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK;IAC9D;;;OAGG;cACO,OAAO;2FAiBlB,CAAC"}
@@ -3,7 +3,6 @@ import type { DefaultProps } from '../../types';
3
3
  export type LabelProps = {
4
4
  /**
5
5
  * Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset
6
- * @default 'medium'
7
6
  */
8
7
  weight?: 'regular' | 'medium' | 'semibold';
9
8
  /**
@@ -21,7 +20,6 @@ export type LabelProps = {
21
20
  export declare const Label: import("react").ForwardRefExoticComponent<{
22
21
  /**
23
22
  * Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset
24
- * @default 'medium'
25
23
  */
26
24
  weight?: "regular" | "medium" | "semibold";
27
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GACvC,YAAY,CAAC;AAEf;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAnBhB;;;OAGG;aACM,SAAS,GAAG,QAAQ,GAAG,UAAU;IAC1C;;;OAGG;cACO,OAAO;2GAyBjB,CAAC"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GACvC,YAAY,CAAC;AAEf;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAlBhB;;OAEG;aACM,SAAS,GAAG,QAAQ,GAAG,UAAU;IAC1C;;;OAGG;cACO,OAAO;2GAyBjB,CAAC"}
@@ -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;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,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;AAEH,eAAO,MAAM,OAAO;IA/DhB;;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;kDA6GpB,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;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,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;kDAwGpB,CAAC"}
@@ -22,7 +22,7 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
22
22
  * <SearchButton>Søk</SearchButton>
23
23
  * </Search>
24
24
  */
25
- export declare const SearchButton: import("react").ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "command" | "commandfor" | "commandFor">, "type" | "data-color" | "variant" | "command" | "commandfor" | "commandFor" | "icon" | "loading" | "asChild"> & {
25
+ export declare const SearchButton: import("react").ForwardRefExoticComponent<Omit<import("../..").DefaultProps & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "command" | "commandfor" | "commandFor">, "type" | "data-color" | "variant" | "command" | "commandfor" | "commandFor" | "icon" | "loading" | "asChild"> & {
26
26
  variant?: "primary" | "secondary" | "tertiary";
27
27
  'data-color'?: import("packages/types/dist/types").Color | Extract<import("packages/types/dist/types").SeverityColors, "danger">;
28
28
  icon?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-tab.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACxD,OAAO,4BAA4B,CAAC;AAIpC,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAZlB;;OAEG;WACI,MAAM;8FAqCb,CAAC"}
1
+ {"version":3,"file":"tabs-tab.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACxD,OAAO,4BAA4B,CAAC;AAIpC,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAZlB;;OAEG;WACI,MAAM;8FAoCb,CAAC"}
@@ -33,8 +33,8 @@ export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAtt
33
33
  */
34
34
  open?: boolean;
35
35
  /**
36
- * Override if `aria-describedby` or `aria-labelledby` is used.
37
- * By default, if the trigger element has no inner text, `aria-labelledby` is used.
36
+ * @deprecated This prop has no effect. The tooltip will be set as `aria-description`
37
+ * if the component already contains accessible text, and `aria-label` otherwise.
38
38
  */
39
39
  type?: 'describedby' | 'labelledby';
40
40
  }>;
@@ -82,8 +82,8 @@ export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<Omi
82
82
  */
83
83
  open?: boolean;
84
84
  /**
85
- * Override if `aria-describedby` or `aria-labelledby` is used.
86
- * By default, if the trigger element has no inner text, `aria-labelledby` is used.
85
+ * @deprecated This prop has no effect. The tooltip will be set as `aria-description`
86
+ * if the component already contains accessible text, and `aria-label` otherwise.
87
87
  */
88
88
  type?: "describedby" | "labelledby";
89
89
  } & RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,cAAc,CAAC,EACjE;IACE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC;IAC/D;;QAEI;IACJ,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CACrC,CACF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;IAlDhB;;;;;OAKG;cACO,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM;IAC9D;;QAEI;aACK,MAAM;IACf;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;oBACa,OAAO;IACvB;;;;;;OAMG;WACI,OAAO;IACd;;;OAGG;WACI,aAAa,GAAG,YAAY;kCAuCtC,CAAC"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,cAAc,CAAC,EACjE;IACE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC;IAC/D;;QAEI;IACJ,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CACrC,CACF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;IAlDhB;;;;;OAKG;cACO,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM;IAC9D;;QAEI;aACK,MAAM;IACf;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;oBACa,OAAO;IACvB;;;;;;OAMG;WACI,OAAO;IACd;;;OAGG;WACI,aAAa,GAAG,YAAY;kCAsCtC,CAAC"}
@@ -3,7 +3,7 @@ export type {
3
3
  Size, } from '@digdir/designsystemet-types';
4
4
  export * from './components';
5
5
  export { omit } from './components/Combobox/omit/omit';
6
- export type { LabelRequired } from './types';
6
+ export type { DefaultProps, LabelRequired, Placement } from './types';
7
7
  export type {
8
8
  /** @deprecated This export is deprecated. */
9
9
  MergeRight, UseCheckboxGroupProps, UsePaginationProps, UseRadioGroupProps, } from './utilities';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY;AACV,4FAA4F;AAC5F,IAAI,GACL,MAAM,8BAA8B,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY;AACV,6CAA6C;AAC7C,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB;AAChB,wGAAwG;AACxG,mBAAmB;AACnB,wGAAwG;AACxG,yBAAyB;AACzB,wGAAwG;AACxG,aAAa,EACb,aAAa,EACb,aAAa,EACb,wBAAwB,GACzB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY;AACV,4FAA4F;AAC5F,IAAI,GACL,MAAM,8BAA8B,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtE,YAAY;AACV,6CAA6C;AAC7C,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,eAAe,EACf,gBAAgB;AAChB,wGAAwG;AACxG,mBAAmB;AACnB,wGAAwG;AACxG,yBAAyB;AACzB,wGAAwG;AACxG,aAAa,EACb,aAAa,EACb,aAAa,EACb,wBAAwB,GACzB,MAAM,aAAa,CAAC"}
@@ -37,6 +37,10 @@ export type UseCheckboxGroupProps = {
37
37
  * @returns void
38
38
  */
39
39
  onChange?: (nextValue: string[], currentValue: string[]) => void;
40
+ /**
41
+ * If outline, all checkboxes in the group will have a border
42
+ */
43
+ variant?: CheckboxProps['variant'];
40
44
  };
41
45
  /**
42
46
  * Get anything that is set on a checkbox, but
@@ -1 +1 @@
1
- {"version":3,"file":"use-checkbox-group.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/use-checkbox-group/use-checkbox-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,aAAa,EACX,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,SAAS,GACT,OAAO,CACV,GAAG;IACF,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,GAAG,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAgBF,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAChB,YAAY,CAAC,EAAE,MAAM,GAAG,gBAAgB,KACrC,gBAAgB,CAAC;IACtB,sBAAsB,EAAE;QACtB,QAAQ,EAAE,SAAS,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,qBAAqB,GAC5B,sBAAsB,CA8IxB"}
1
+ {"version":3,"file":"use-checkbox-group.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/use-checkbox-group/use-checkbox-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACjE;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,aAAa,EACX,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,SAAS,GACT,OAAO,CACV,GAAG;IACF,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,GAAG,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAgBF,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAChB,YAAY,CAAC,EAAE,MAAM,GAAG,gBAAgB,KACrC,gBAAgB,CAAC;IACtB,sBAAsB,EAAE;QACtB,QAAQ,EAAE,SAAS,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,qBAAqB,GAC5B,sBAAsB,CAsJxB"}
@@ -19,6 +19,10 @@ export type UseRadioGroupProps = {
19
19
  value?: string;
20
20
  /** Callback when selected radios changes */
21
21
  onChange?: (nextValue: string, prevValue: string) => void;
22
+ /**
23
+ * If outline, all radios in the group will have a border
24
+ */
25
+ variant?: RadioProps['variant'];
22
26
  };
23
27
  /**
24
28
  * Get anything that is set on a radio, but
@@ -51,6 +55,6 @@ type useRadioGroupReturn = {
51
55
  * value: '',
52
56
  * });
53
57
  */
54
- export declare function useRadioGroup({ error, readOnly, required, disabled, name, onChange, value: initalValue, }?: UseRadioGroupProps): useRadioGroupReturn;
58
+ export declare function useRadioGroup(props?: UseRadioGroupProps): useRadioGroupReturn;
55
59
  export {};
56
60
  //# sourceMappingURL=use-radio-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-radio-group.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/use-radio-group/use-radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,UAAU,EACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,MAAM,GACN,SAAS,GACT,OAAO,CACV,GAAG;IACF,GAAG,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa,KAAK,aAAa,CAAC;IACvE,sBAAsB,EAAE;QACtB,QAAQ,EAAE,SAAS,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EAAE,WAAgB,GACxB,GAAE,kBAAuB,GAAG,mBAAmB,CAsF/C"}
1
+ {"version":3,"file":"use-radio-group.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/use-radio-group/use-radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,UAAU,EACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,MAAM,GACN,SAAS,GACT,OAAO,CACV,GAAG;IACF,GAAG,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa,KAAK,aAAa,CAAC;IACvE,sBAAsB,EAAE;QACtB,QAAQ,EAAE,SAAS,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,mBAAmB,CAuG7E"}
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-fix-css-component-variables-20260521102027",
4
+ "version": "0.0.0-fix-missing-react-types-20260611075117",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@digdir/designsystemet-types": "0.0.0-fix-css-component-variables-20260521102027",
39
- "@digdir/designsystemet-web": "0.0.0-fix-css-component-variables-20260521102027",
38
+ "@digdir/designsystemet-types": "0.0.0-fix-missing-react-types-20260611075117",
39
+ "@digdir/designsystemet-web": "0.0.0-fix-missing-react-types-20260611075117",
40
40
  "@floating-ui/dom": "^1.7.6",
41
41
  "@floating-ui/react": "0.26.23",
42
42
  "@navikt/aksel-icons": "^8.10.5",
@@ -63,7 +63,7 @@
63
63
  "storybook": "10.4.0",
64
64
  "tsx": "4.22.1",
65
65
  "typescript": "5.9.3",
66
- "@digdir/designsystemet-css": "^0.0.0-fix-css-component-variables-20260521102027"
66
+ "@digdir/designsystemet-css": "^0.0.0-fix-missing-react-types-20260611075117"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",