@digdir/designsystemet-react 0.0.0-test-20250311113709 → 0.0.0-test-20250411131846

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.
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var react = require('react');
6
6
  var Button = require('../Button/Button.js');
7
7
 
8
- const DropdownButton = react.forwardRef(function DropdownButton({ className, ...rest }, ref) {
8
+ const DropdownButton = react.forwardRef(function DropdownButton({ ...rest }, ref) {
9
9
  return jsxRuntime.jsx(Button.Button, { ref: ref, variant: 'tertiary', ...rest });
10
10
  });
11
11
 
@@ -38,7 +38,6 @@ function fieldObserver(fieldElement) {
38
38
  if (input === el)
39
39
  input = null;
40
40
  if (elements.has(el)) {
41
- setAttr(el, 'aria-disabled', null); // Reset disabled state
42
41
  setAttr(el, isLabel(el) ? 'for' : 'id', elements.get(el));
43
42
  elements.delete(el);
44
43
  }
@@ -46,12 +45,9 @@ function fieldObserver(fieldElement) {
46
45
  // Connect elements
47
46
  const describedbyIds = [describedby]; // Keep original aria-describedby
48
47
  const inputId = input?.id || uuid;
49
- const isDisabled = input?.hasAttribute('disabled') ||
50
- input?.getAttribute('aria-disabled') === 'true';
51
48
  for (const [el, value] of elements) {
52
49
  const descriptionType = el.getAttribute('data-field');
53
50
  const id = descriptionType ? `${inputId}:${descriptionType}` : inputId;
54
- setAttr(el, 'aria-disabled', isDisabled ? 'true' : null); // Forward inputs disabled state to related elements to make axe tests happy
55
51
  if (!value)
56
52
  setAttr(el, isLabel(el) ? 'for' : 'id', id); // Ensure we have a value
57
53
  if (descriptionType === 'validation')
@@ -31,7 +31,6 @@ const Suggestion = react.forwardRef(function Suggestion({ className, filter = tr
31
31
  // Let <datalist> handle filtering if filter is true
32
32
  if (filter === true || !list)
33
33
  return;
34
- console.log(list);
35
34
  // Handle custom filter
36
35
  if (filter !== false) {
37
36
  let index = 0;
@@ -21,7 +21,7 @@ var react$1 = require('@floating-ui/react');
21
21
  * Hover me
22
22
  * </Tooltip>
23
23
  */
24
- const Tooltip = react.forwardRef(function Tooltip({ id, children, content, placement = 'top', open, className, ...rest }, ref) {
24
+ const Tooltip = react.forwardRef(function Tooltip({ id, children, content, placement = 'top', autoPlacement = true, open, className, ...rest }, ref) {
25
25
  const randomTooltipId = react.useId();
26
26
  const [internalOpen, setInternalOpen] = react.useState(false);
27
27
  const triggerRef = react.useRef(null);
@@ -52,9 +52,9 @@ const Tooltip = react.forwardRef(function Tooltip({ id, children, content, place
52
52
  const styles = getComputedStyle(data.elements.floating, '::before');
53
53
  return parseFloat(styles.height);
54
54
  }),
55
- dom.flip({
56
- fallbackAxisSideDirection: 'start',
57
- }),
55
+ ...(autoPlacement
56
+ ? [dom.flip({ fallbackAxisSideDirection: 'start' }), dom.shift()]
57
+ : []),
58
58
  dom.shift(),
59
59
  arrowPseudoElement,
60
60
  ],
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import { Button } from '../Button/Button.js';
5
5
 
6
- const DropdownButton = forwardRef(function DropdownButton({ className, ...rest }, ref) {
6
+ const DropdownButton = forwardRef(function DropdownButton({ ...rest }, ref) {
7
7
  return jsx(Button, { ref: ref, variant: 'tertiary', ...rest });
8
8
  });
9
9
 
@@ -36,7 +36,6 @@ function fieldObserver(fieldElement) {
36
36
  if (input === el)
37
37
  input = null;
38
38
  if (elements.has(el)) {
39
- setAttr(el, 'aria-disabled', null); // Reset disabled state
40
39
  setAttr(el, isLabel(el) ? 'for' : 'id', elements.get(el));
41
40
  elements.delete(el);
42
41
  }
@@ -44,12 +43,9 @@ function fieldObserver(fieldElement) {
44
43
  // Connect elements
45
44
  const describedbyIds = [describedby]; // Keep original aria-describedby
46
45
  const inputId = input?.id || uuid;
47
- const isDisabled = input?.hasAttribute('disabled') ||
48
- input?.getAttribute('aria-disabled') === 'true';
49
46
  for (const [el, value] of elements) {
50
47
  const descriptionType = el.getAttribute('data-field');
51
48
  const id = descriptionType ? `${inputId}:${descriptionType}` : inputId;
52
- setAttr(el, 'aria-disabled', isDisabled ? 'true' : null); // Forward inputs disabled state to related elements to make axe tests happy
53
49
  if (!value)
54
50
  setAttr(el, isLabel(el) ? 'for' : 'id', id); // Ensure we have a value
55
51
  if (descriptionType === 'validation')
@@ -29,7 +29,6 @@ const Suggestion = forwardRef(function Suggestion({ className, filter = true, as
29
29
  // Let <datalist> handle filtering if filter is true
30
30
  if (filter === true || !list)
31
31
  return;
32
- console.log(list);
33
32
  // Handle custom filter
34
33
  if (filter !== false) {
35
34
  let index = 0;
@@ -19,7 +19,7 @@ import { useMergeRefs } from '@floating-ui/react';
19
19
  * Hover me
20
20
  * </Tooltip>
21
21
  */
22
- const Tooltip = forwardRef(function Tooltip({ id, children, content, placement = 'top', open, className, ...rest }, ref) {
22
+ const Tooltip = forwardRef(function Tooltip({ id, children, content, placement = 'top', autoPlacement = true, open, className, ...rest }, ref) {
23
23
  const randomTooltipId = useId();
24
24
  const [internalOpen, setInternalOpen] = useState(false);
25
25
  const triggerRef = useRef(null);
@@ -50,9 +50,9 @@ const Tooltip = forwardRef(function Tooltip({ id, children, content, placement =
50
50
  const styles = getComputedStyle(data.elements.floating, '::before');
51
51
  return parseFloat(styles.height);
52
52
  }),
53
- flip({
54
- fallbackAxisSideDirection: 'start',
55
- }),
53
+ ...(autoPlacement
54
+ ? [flip({ fallbackAxisSideDirection: 'start' }), shift()]
55
+ : []),
56
56
  shift(),
57
57
  arrowPseudoElement,
58
58
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,aAAa,wBAAwB;;;;;;kBAwEw0N,MAAO,gBAAgB;;;;;;;;;;;;;wBAA5X,MAAO,aAAa;;;;iBAAoe,MAAO,gBAAgB;;;;;;oCAA6yxB,MAAO,SAAS;mCAA0E,MAAO,SAAS;oCAAgF,MAAM,SAAS;;;;CADhjgC,CAAC"}
1
+ {"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,aAAa,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuExE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,YAAY;cART,MAAG,SAAS;;;;;;;;;;;;;;;;;CAanB,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAKhB,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fieldObserver.d.ts","sourceRoot":"","sources":["../../../src/components/Field/fieldObserver.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,4BA4E7D;AAGD,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,oBAA4B,CAAC;AACjE,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,6BAAqC,CAAC;AACxE,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,gBAGd,CAAC"}
1
+ {"version":3,"file":"fieldObserver.d.ts","sourceRoot":"","sources":["../../../src/components/Field/fieldObserver.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,4BAuE7D;AAGD,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,oBAA4B,CAAC;AACjE,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,6BAAqC,CAAC;AACxE,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,gBAGd,CAAC"}
@@ -76,7 +76,7 @@ export type PopoverProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivEleme
76
76
  * Content
77
77
  * </Popover>
78
78
  */
79
- export declare const Popover: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "onOpen" | "autoPlacement"> & {
79
+ export declare const Popover: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "autoPlacement" | "onOpen"> & {
80
80
  /**
81
81
  * id to connect the trigger with the popover - required when not using Popover.Context.
82
82
  */
@@ -11,7 +11,7 @@ import { PopoverTriggerContext } from './PopoverTriggerContext';
11
11
  * </Popover>
12
12
  * </Popover.TriggerContext>
13
13
  */
14
- declare const Popover: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "onOpen" | "autoPlacement"> & {
14
+ declare const Popover: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "autoPlacement" | "onOpen"> & {
15
15
  id?: string;
16
16
  placement?: import("@floating-ui/utils").Placement;
17
17
  open?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/Suggestion/Suggestion.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,KAAK,qBAAqB,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,sCAA2C,CAAC;AAE1E,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;;;;;OAQG;IACH,MAAM,CAAC,EACH,OAAO,GACP,CAAC,CAAC,IAAI,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,aAAa,EAAE,iBAAiB,CAAC;QACjC;;WAEG;QACH,KAAK,EAAE,gBAAgB,CAAC;KACzB,KAAK,OAAO,CAAC,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU;IAvDnB;;;;;;;;OAQG;aAEC,OAAO,GACP,CAAC,CAAC,IAAI,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,aAAa,EAAE,iBAAiB,CAAC;QACjC;;WAEG;QACH,KAAK,EAAE,gBAAgB,CAAC;KACzB,KAAK,OAAO,CAAC;IAClB;;;OAGG;cACO,OAAO;wCAiEpB,CAAC"}
1
+ {"version":3,"file":"Suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/Suggestion/Suggestion.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,KAAK,qBAAqB,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,sCAA2C,CAAC;AAE1E,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;;;;;OAQG;IACH,MAAM,CAAC,EACH,OAAO,GACP,CAAC,CAAC,IAAI,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,aAAa,EAAE,iBAAiB,CAAC;QACjC;;WAEG;QACH,KAAK,EAAE,gBAAgB,CAAC;KACzB,KAAK,OAAO,CAAC,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU;IAvDnB;;;;;;;;OAQG;aAEC,OAAO,GACP,CAAC,CAAC,IAAI,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,aAAa,EAAE,iBAAiB,CAAC;QACjC;;WAEG;QACH,KAAK,EAAE,gBAAgB,CAAC;KACzB,KAAK,OAAO,CAAC;IAClB;;;OAGG;cACO,OAAO;wCAgEpB,CAAC"}
@@ -18,6 +18,11 @@ export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAtt
18
18
  * @default 'top'
19
19
  */
20
20
  placement?: 'top' | 'right' | 'bottom' | 'left';
21
+ /**
22
+ * Whether to enable auto placement.
23
+ * @default true
24
+ */
25
+ autoPlacement?: boolean;
21
26
  /**
22
27
  * Whether the tooltip is open or not.
23
28
  * This overrides the internal state of the tooltip.
@@ -37,7 +42,7 @@ export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAtt
37
42
  * Hover me
38
43
  * </Tooltip>
39
44
  */
40
- export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultProps, "data-color"> & HTMLAttributes<HTMLDivElement>, "content" | "children" | "open" | "placement"> & {
45
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultProps, "data-color"> & HTMLAttributes<HTMLDivElement>, "content" | "children" | "open" | "placement" | "autoPlacement"> & {
41
46
  /**
42
47
  * The element or string that triggers the tooltip.
43
48
  *
@@ -54,6 +59,11 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultP
54
59
  * @default 'top'
55
60
  */
56
61
  placement?: "top" | "right" | "bottom" | "left";
62
+ /**
63
+ * Whether to enable auto placement.
64
+ * @default true
65
+ */
66
+ autoPlacement?: boolean;
57
67
  /**
58
68
  * Whether the tooltip is open or not.
59
69
  * This overrides the internal state of the tooltip.
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAYzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,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,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CACF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;IArChB;;;;;OAKG;cACO,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM;IAC9D;;QAEI;aACK,MAAM;IACf;;;OAGG;gBACS,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;IAC/C;;;OAGG;WACI,OAAO;kCAsIjB,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAYzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,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,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CACF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;IA1ChB;;;;;OAKG;cACO,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM;IAC9D;;QAEI;aACK,MAAM;IACf;;;OAGG;gBACS,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;IAC/C;;;OAGG;oBACa,OAAO;IACvB;;;OAGG;WACI,OAAO;kCA+IjB,CAAC"}
@@ -62,6 +62,8 @@ export declare const useRovingFocus: (value: string) => {
62
62
  inert?: boolean | undefined;
63
63
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
64
64
  is?: string | undefined;
65
+ exportparts?: string | undefined;
66
+ part?: string | undefined;
65
67
  popovertarget?: string;
66
68
  'data-size'?: import("../..").Size | (string & {});
67
69
  'data-color'?: import("../../colors").Color | (string & {});
@@ -270,6 +272,8 @@ export declare const useRovingFocus: (value: string) => {
270
272
  onLostPointerCaptureCapture?: React.PointerEventHandler<T> | undefined;
271
273
  onScroll?: React.UIEventHandler<T> | undefined;
272
274
  onScrollCapture?: React.UIEventHandler<T> | undefined;
275
+ onScrollEnd?: React.UIEventHandler<T> | undefined;
276
+ onScrollEndCapture?: React.UIEventHandler<T> | undefined;
273
277
  onWheel?: React.WheelEventHandler<T> | undefined;
274
278
  onWheelCapture?: React.WheelEventHandler<T> | undefined;
275
279
  onAnimationStart?: React.AnimationEventHandler<T> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useRovingFocus.d.ts","sourceRoot":"","sources":["../../../src/utilities/RovingFocus/useRovingFocus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,wEAAwE;AACxE,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;;qBAcvB,CAAC,SAAS,WAAW,SAAS,cAAc,CAAC,CAAC,CAAC;uBAE/C,WAAW,GAAG,IAAI;uBAOlB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;qBAOxB,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrC,CAAC"}
1
+ {"version":3,"file":"useRovingFocus.d.ts","sourceRoot":"","sources":["../../../src/utilities/RovingFocus/useRovingFocus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,wEAAwE;AACxE,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;;qBAcvB,CAAC,SAAS,WAAW,SAAS,cAAc,CAAC,CAAC,CAAC;uBAE/C,WAAW,GAAG,IAAI;uBAOlB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;qBAOxB,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQrC,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-20250311113709",
4
+ "version": "0.0.0-test-20250411131846",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -42,32 +42,32 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@floating-ui/dom": "^1.6.10",
45
+ "@floating-ui/dom": "^1.6.13",
46
46
  "@floating-ui/react": "0.26.23",
47
- "@navikt/aksel-icons": "^7.0.0",
48
- "@radix-ui/react-slot": "^1.1.1",
49
- "@tanstack/react-virtual": "^3.11.2",
50
- "@u-elements/u-datalist": "^0.1.3",
47
+ "@navikt/aksel-icons": "^7.18.0",
48
+ "@radix-ui/react-slot": "^1.1.2",
49
+ "@tanstack/react-virtual": "^3.13.6",
50
+ "@u-elements/u-datalist": "^0.1.5",
51
51
  "@u-elements/u-details": "^0.1.0",
52
- "@u-elements/u-tags": "^0.1.2",
52
+ "@u-elements/u-tags": "^0.1.4",
53
53
  "clsx": "^2.1.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@rollup/plugin-commonjs": "^28.0.2",
57
- "@rollup/plugin-node-resolve": "^16.0.0",
56
+ "@rollup/plugin-commonjs": "^28.0.3",
57
+ "@rollup/plugin-node-resolve": "^16.0.1",
58
58
  "@testing-library/dom": "^10.4.0",
59
59
  "@testing-library/jest-dom": "^6.6.3",
60
- "@testing-library/react": "^16.2.0",
61
- "@testing-library/user-event": "^14.6.0",
62
- "@types/react": "^19.0.8",
63
- "@types/react-dom": "^19.0.3",
60
+ "@testing-library/react": "^16.3.0",
61
+ "@testing-library/user-event": "^14.6.1",
62
+ "@types/react": "^19.1.0",
63
+ "@types/react-dom": "^19.1.1",
64
64
  "copyfiles": "^2.4.1",
65
65
  "jsdom": "^26.0.0",
66
- "react": "^19.0.0",
67
- "react-dom": "^19.0.0",
66
+ "react": "^19.1.0",
67
+ "react-dom": "^19.1.0",
68
68
  "rimraf": "^6.0.1",
69
- "rollup": "^4.31.0",
69
+ "rollup": "^4.39.0",
70
70
  "rollup-plugin-copy": "^3.5.0",
71
- "typescript": "^5.7.3"
71
+ "typescript": "^5.8.2"
72
72
  }
73
73
  }