@rationalbloks/frontblok-components 0.2.5 → 0.2.7

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.cjs CHANGED
@@ -373,7 +373,8 @@ function createNavbar(config) {
373
373
  userRoleLabel = "User",
374
374
  authRoute = "/auth",
375
375
  settingsRoute = "/settings",
376
- isActiveOverride
376
+ isActiveOverride,
377
+ subToolbar: SubToolbar
377
378
  } = config;
378
379
  const Navbar = () => {
379
380
  const navigate = reactRouterDom.useNavigate();
@@ -432,7 +433,6 @@ function createNavbar(config) {
432
433
  sx: {
433
434
  display: "flex",
434
435
  alignItems: "center",
435
- flexGrow: 1,
436
436
  cursor: "pointer",
437
437
  "&:hover": {
438
438
  opacity: 0.85
@@ -465,6 +465,23 @@ function createNavbar(config) {
465
465
  ]
466
466
  }
467
467
  ),
468
+ SubToolbar && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: { xs: "none", md: "flex" }, alignItems: "center", ml: 2, minWidth: "220px" }, children: [
469
+ /* @__PURE__ */ jsxRuntime.jsx(
470
+ material.Divider,
471
+ {
472
+ orientation: "vertical",
473
+ flexItem: true,
474
+ sx: {
475
+ mx: 2,
476
+ borderColor: "rgba(255, 255, 255, 0.3)",
477
+ height: "24px",
478
+ alignSelf: "center"
479
+ }
480
+ }
481
+ ),
482
+ /* @__PURE__ */ jsxRuntime.jsx(SubToolbar, {})
483
+ ] }),
484
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flexGrow: 1 } }),
468
485
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: {
469
486
  display: { xs: "none", md: "flex" },
470
487
  alignItems: "center",