@norges-domstoler/dds-components 0.0.0-dev-20260218075459 → 0.0.0-dev-20260218135911

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.
package/dist/index.js CHANGED
@@ -904,7 +904,7 @@ function Icon(props) {
904
904
  width: size2,
905
905
  fill: color,
906
906
  "aria-hidden": (_a = htmlProps == null ? void 0 : htmlProps["aria-hidden"]) != null ? _a : true,
907
- iconState
907
+ ...iconState ? { iconState } : {}
908
908
  }
909
909
  );
910
910
  }
@@ -2328,6 +2328,9 @@ function SvgWrapper({
2328
2328
  className,
2329
2329
  title,
2330
2330
  children,
2331
+ // destructure for å unngå at `iconState` blir sendt videre til svg-elementet som ugyldig custom attribute.
2332
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2333
+ iconState: _iconState,
2331
2334
  ...props
2332
2335
  }) {
2333
2336
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(