@norges-domstoler/dds-components 17.6.0 → 17.7.0
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.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4583,19 +4583,21 @@ var BackLink_default = {
|
|
|
4583
4583
|
|
|
4584
4584
|
// src/components/BackLink/BackLink.tsx
|
|
4585
4585
|
import { jsx as jsx181, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4586
|
-
var BackLink = forwardRef16(
|
|
4587
|
-
|
|
4588
|
-
/* @__PURE__ */ jsx181(
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
});
|
|
4586
|
+
var BackLink = forwardRef16(
|
|
4587
|
+
({ label, ...props }, ref) => {
|
|
4588
|
+
return /* @__PURE__ */ jsx181("nav", { ref, "aria-label": "G\xE5 tilbake", children: /* @__PURE__ */ jsxs25(Link, { ...props, children: [
|
|
4589
|
+
/* @__PURE__ */ jsx181(
|
|
4590
|
+
Icon,
|
|
4591
|
+
{
|
|
4592
|
+
icon: ArrowLeftIcon,
|
|
4593
|
+
iconSize: "small",
|
|
4594
|
+
className: BackLink_default.icon
|
|
4595
|
+
}
|
|
4596
|
+
),
|
|
4597
|
+
label
|
|
4598
|
+
] }) });
|
|
4599
|
+
}
|
|
4600
|
+
);
|
|
4599
4601
|
BackLink.displayName = "BackLink";
|
|
4600
4602
|
|
|
4601
4603
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
@@ -11066,6 +11068,7 @@ var Popover = forwardRef79(
|
|
|
11066
11068
|
placement = "bottom",
|
|
11067
11069
|
offset = ddsTokens16.ddsSpacingX05NumberPx,
|
|
11068
11070
|
sizeProps,
|
|
11071
|
+
returnFocusOnBlur = true,
|
|
11069
11072
|
id,
|
|
11070
11073
|
className,
|
|
11071
11074
|
htmlProps = {},
|
|
@@ -11078,7 +11081,7 @@ var Popover = forwardRef79(
|
|
|
11078
11081
|
});
|
|
11079
11082
|
refs.setReference(anchorElement || null);
|
|
11080
11083
|
const popoverRef = useReturnFocusOnBlur(
|
|
11081
|
-
isOpen && hasTransitionedIn,
|
|
11084
|
+
isOpen && hasTransitionedIn && returnFocusOnBlur,
|
|
11082
11085
|
() => {
|
|
11083
11086
|
onClose && onClose();
|
|
11084
11087
|
onBlur && onBlur();
|