@postenbring/hedwig-react 0.0.59 → 0.0.60

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.
@@ -37,9 +37,9 @@ import {
37
37
  import "./chunk-POJTVNEO.mjs";
38
38
  import {
39
39
  NavbarComponent
40
- } from "./chunk-SBJBQUKE.mjs";
40
+ } from "./chunk-Q3GMWURJ.mjs";
41
41
  import "./chunk-JMDXW2ML.mjs";
42
- import "./chunk-WDD7QJP6.mjs";
42
+ import "./chunk-2E6XPNPX.mjs";
43
43
  import "./chunk-MGUYIOP2.mjs";
44
44
  import "./chunk-2YL2MVWN.mjs";
45
45
  import {
@@ -109,13 +109,6 @@ import {
109
109
  CardComponent
110
110
  } from "./chunk-JC6DBIFE.mjs";
111
111
  import "./chunk-X5JERDDU.mjs";
112
- import "./chunk-K6PP3ACJ.mjs";
113
- import {
114
- Badge,
115
- DarkBadge,
116
- WarningBadge,
117
- WhiteBadge
118
- } from "./chunk-JDJQFQQ6.mjs";
119
112
  import {
120
113
  AccordionComponent
121
114
  } from "./chunk-DJRMXOCP.mjs";
@@ -123,6 +116,13 @@ import "./chunk-KRGKVH5J.mjs";
123
116
  import "./chunk-FT5CX2W5.mjs";
124
117
  import "./chunk-SAGJ5W7M.mjs";
125
118
  import "./chunk-VRIY65P5.mjs";
119
+ import "./chunk-K6PP3ACJ.mjs";
120
+ import {
121
+ Badge,
122
+ DarkBadge,
123
+ WarningBadge,
124
+ WhiteBadge
125
+ } from "./chunk-JDJQFQQ6.mjs";
126
126
  import "./chunk-WCA2WPFS.mjs";
127
127
  import "./chunk-V3PAFMK5.mjs";
128
128
  import "./chunk-MSFHJVHD.mjs";
package/dist/index.js CHANGED
@@ -1239,6 +1239,7 @@ NavbarNavigation.displayName = "Navbar.Navigation";
1239
1239
  var import_react22 = require("react");
1240
1240
  var import_client = require("react-dom/client");
1241
1241
  var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname");
1242
+ var import_focus_trap_react = __toESM(require("focus-trap-react"));
1242
1243
 
1243
1244
  // src/navbar/icons.tsx
1244
1245
  var import_jsx_runtime26 = require("react/jsx-runtime");
@@ -1280,7 +1281,11 @@ function NavbarExpandableMenu({ children }) {
1280
1281
  document.body.classList.remove((0, import_typed_classname26.clsx)("hds-navbar-scroll-lock"));
1281
1282
  }
1282
1283
  };
1283
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(navbarContext.Provider, { value: [open, toggleOpen], children });
1284
+ const navbarElement = document.getElementsByClassName((0, import_typed_classname26.clsx)("hds-navbar"))[0];
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(navbarContext.Provider, { value: [open, toggleOpen], children: [
1286
+ open ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_focus_trap_react.default, { containerElements: [navbarElement] }) : null,
1287
+ children
1288
+ ] });
1284
1289
  }
1285
1290
  NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
1286
1291
  function RenderButton(_a) {