@digdir/designsystemet-react 1.7.2 → 1.7.3

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.
@@ -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 = {
@@ -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 = {
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.7.3",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -38,8 +38,8 @@
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.33.1",
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",
@@ -61,13 +61,13 @@
61
61
  "react": "^19.2.0",
62
62
  "react-dom": "^19.2.0",
63
63
  "rimraf": "^6.1.0",
64
- "rollup": "^4.52.5",
64
+ "rollup": "^4.53.1",
65
65
  "rollup-plugin-copy": "^3.5.0",
66
66
  "storybook": "^9.1.16",
67
67
  "tsx": "4.20.6",
68
68
  "typescript": "^5.9.3",
69
- "@digdir/designsystemet": "^1.7.2",
70
- "@digdir/designsystemet-css": "^1.7.2"
69
+ "@digdir/designsystemet": "^1.7.3",
70
+ "@digdir/designsystemet-css": "^1.7.3"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",