@omnitron-dev/prism 0.3.0 → 0.3.1

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.
Files changed (214) hide show
  1. package/README.md +148 -0
  2. package/dist/blocks/index.js +3 -1
  3. package/dist/blocks/index.js.map +1 -1
  4. package/dist/{chunk-S6SEGBX6.js → chunk-472SOF76.js} +4 -4
  5. package/dist/{chunk-S6SEGBX6.js.map → chunk-472SOF76.js.map} +1 -1
  6. package/dist/{chunk-Z5OSPAOC.js → chunk-4Z5DE5GK.js} +78 -75
  7. package/dist/chunk-4Z5DE5GK.js.map +1 -0
  8. package/dist/chunk-52PQL67Q.js +559 -0
  9. package/dist/chunk-52PQL67Q.js.map +1 -0
  10. package/dist/chunk-75FQ5IW3.js +590 -0
  11. package/dist/chunk-75FQ5IW3.js.map +1 -0
  12. package/dist/{chunk-6AHI4GSV.js → chunk-7G5D5PTC.js} +4 -3
  13. package/dist/chunk-7G5D5PTC.js.map +1 -0
  14. package/dist/chunk-BJE2AKD4.js +105 -0
  15. package/dist/chunk-BJE2AKD4.js.map +1 -0
  16. package/dist/chunk-FF5RF32O.js +248 -0
  17. package/dist/chunk-FF5RF32O.js.map +1 -0
  18. package/dist/{chunk-OBJ244BO.js → chunk-GMIE6III.js} +9 -42
  19. package/dist/chunk-GMIE6III.js.map +1 -0
  20. package/dist/chunk-GUGTDURV.js +826 -0
  21. package/dist/chunk-GUGTDURV.js.map +1 -0
  22. package/dist/chunk-HOXFSQUV.js +573 -0
  23. package/dist/chunk-HOXFSQUV.js.map +1 -0
  24. package/dist/chunk-JSQTYDPG.js +3 -0
  25. package/dist/chunk-JSQTYDPG.js.map +1 -0
  26. package/dist/{chunk-ZTATTUH7.js → chunk-KQ67XB6T.js} +213 -651
  27. package/dist/chunk-KQ67XB6T.js.map +1 -0
  28. package/dist/{chunk-WFD54GQQ.js → chunk-LOY2NPCO.js} +14 -573
  29. package/dist/chunk-LOY2NPCO.js.map +1 -0
  30. package/dist/{chunk-YQW43BDH.js → chunk-LSPFFEJT.js} +240 -1824
  31. package/dist/chunk-LSPFFEJT.js.map +1 -0
  32. package/dist/{chunk-BZOL7GMU.js → chunk-OKTLA23Q.js} +4 -4
  33. package/dist/chunk-OKTLA23Q.js.map +1 -0
  34. package/dist/chunk-PFT2BNYO.js +191 -0
  35. package/dist/chunk-PFT2BNYO.js.map +1 -0
  36. package/dist/chunk-PGHEP4JD.js +106 -0
  37. package/dist/chunk-PGHEP4JD.js.map +1 -0
  38. package/dist/chunk-PXXPLHIY.js +74 -0
  39. package/dist/chunk-PXXPLHIY.js.map +1 -0
  40. package/dist/chunk-SU3LVQ7N.js +518 -0
  41. package/dist/chunk-SU3LVQ7N.js.map +1 -0
  42. package/dist/chunk-YHE7HXSG.js +206 -0
  43. package/dist/chunk-YHE7HXSG.js.map +1 -0
  44. package/dist/cli/index.js +7 -2
  45. package/dist/cli/index.js.map +1 -1
  46. package/dist/components/accordion/accordion.d.ts.map +1 -1
  47. package/dist/components/admin-filters/admin-data-table.d.ts.map +1 -1
  48. package/dist/components/admin-filters/filter-toolbar.d.ts.map +1 -1
  49. package/dist/components/date-input/date-input.d.ts +27 -0
  50. package/dist/components/date-input/date-input.d.ts.map +1 -0
  51. package/dist/components/date-input/index.d.ts +4 -0
  52. package/dist/components/date-input/index.d.ts.map +1 -0
  53. package/dist/components/date-input/value.d.ts +9 -0
  54. package/dist/components/date-input/value.d.ts.map +1 -0
  55. package/dist/components/doc-layout/doc-sidebar.d.ts +4 -1
  56. package/dist/components/doc-layout/doc-sidebar.d.ts.map +1 -1
  57. package/dist/components/doc-layout/index.js +6 -0
  58. package/dist/components/doc-layout/index.js.map +1 -0
  59. package/dist/components/editor/editor.d.ts.map +1 -1
  60. package/dist/components/editor/icons/index.d.ts +32 -40
  61. package/dist/components/editor/icons/index.d.ts.map +1 -1
  62. package/dist/components/editor/index.js +3 -1
  63. package/dist/components/error-boundary/error-boundary.d.ts.map +1 -1
  64. package/dist/components/index.css +4 -0
  65. package/dist/components/index.css.map +1 -1
  66. package/dist/components/index.d.ts +4 -4
  67. package/dist/components/index.d.ts.map +1 -1
  68. package/dist/components/index.js +18 -8
  69. package/dist/components/knowledge-graph/edge-labels.d.ts +14 -0
  70. package/dist/components/knowledge-graph/edge-labels.d.ts.map +1 -0
  71. package/dist/components/knowledge-graph/graph.d.ts +56 -0
  72. package/dist/components/knowledge-graph/graph.d.ts.map +1 -0
  73. package/dist/components/knowledge-graph/index.css +176 -0
  74. package/dist/components/knowledge-graph/index.css.map +1 -0
  75. package/dist/components/knowledge-graph/index.d.ts +3 -0
  76. package/dist/components/knowledge-graph/index.d.ts.map +1 -0
  77. package/dist/components/knowledge-graph/index.js +795 -0
  78. package/dist/components/knowledge-graph/index.js.map +1 -0
  79. package/dist/components/knowledge-graph/label-layout.d.ts +28 -0
  80. package/dist/components/knowledge-graph/label-layout.d.ts.map +1 -0
  81. package/dist/components/knowledge-graph/label-store.d.ts +15 -0
  82. package/dist/components/knowledge-graph/label-store.d.ts.map +1 -0
  83. package/dist/components/knowledge-graph/model.d.ts +92 -0
  84. package/dist/components/knowledge-graph/model.d.ts.map +1 -0
  85. package/dist/components/lightbox/lightbox.d.ts.map +1 -1
  86. package/dist/components/map/Map.d.ts +19 -43
  87. package/dist/components/map/Map.d.ts.map +1 -1
  88. package/dist/components/map/MapCoverageLayer.d.ts +1 -1
  89. package/dist/components/map/MapCoverageLayer.d.ts.map +1 -1
  90. package/dist/components/map/MapMarker.d.ts +1 -1
  91. package/dist/components/map/MapMarker.d.ts.map +1 -1
  92. package/dist/components/map/MapPlaceSearch.d.ts +33 -0
  93. package/dist/components/map/MapPlaceSearch.d.ts.map +1 -0
  94. package/dist/components/map/MapPointPicker.d.ts +21 -12
  95. package/dist/components/map/MapPointPicker.d.ts.map +1 -1
  96. package/dist/components/map/coordinates.d.ts +10 -0
  97. package/dist/components/map/coordinates.d.ts.map +1 -0
  98. package/dist/components/map/index.css +4 -0
  99. package/dist/components/map/index.css.map +1 -0
  100. package/dist/components/map/index.d.ts +7 -2
  101. package/dist/components/map/index.d.ts.map +1 -1
  102. package/dist/components/map/index.js +3 -0
  103. package/dist/components/map/index.js.map +1 -0
  104. package/dist/components/nav-card/nav-card.d.ts.map +1 -1
  105. package/dist/components/rail/rail.d.ts.map +1 -1
  106. package/dist/components/research/diagram-image.d.ts +11 -0
  107. package/dist/components/research/diagram-image.d.ts.map +1 -0
  108. package/dist/components/research/diagram.d.ts +8 -0
  109. package/dist/components/research/diagram.d.ts.map +1 -0
  110. package/dist/components/research/document.d.ts +33 -0
  111. package/dist/components/research/document.d.ts.map +1 -0
  112. package/dist/components/research/frontmatter.d.ts +15 -0
  113. package/dist/components/research/frontmatter.d.ts.map +1 -0
  114. package/dist/components/research/index.css +51 -0
  115. package/dist/components/research/index.css.map +1 -0
  116. package/dist/components/research/index.d.ts +3 -0
  117. package/dist/components/research/index.d.ts.map +1 -0
  118. package/dist/components/research/index.js +6 -0
  119. package/dist/components/research/index.js.map +1 -0
  120. package/dist/components/research/parse.d.ts +29 -0
  121. package/dist/components/research/parse.d.ts.map +1 -0
  122. package/dist/components/research-editor/block-commands.d.ts +20 -0
  123. package/dist/components/research-editor/block-commands.d.ts.map +1 -0
  124. package/dist/components/research-editor/block-controls.d.ts +13 -0
  125. package/dist/components/research-editor/block-controls.d.ts.map +1 -0
  126. package/dist/components/research-editor/editor.d.ts +75 -0
  127. package/dist/components/research-editor/editor.d.ts.map +1 -0
  128. package/dist/components/research-editor/extensions.d.ts +14 -0
  129. package/dist/components/research-editor/extensions.d.ts.map +1 -0
  130. package/dist/components/research-editor/index.css +332 -0
  131. package/dist/components/research-editor/index.css.map +1 -0
  132. package/dist/components/research-editor/index.d.ts +5 -0
  133. package/dist/components/research-editor/index.d.ts.map +1 -0
  134. package/dist/components/research-editor/index.js +1592 -0
  135. package/dist/components/research-editor/index.js.map +1 -0
  136. package/dist/components/research-editor/math-input.d.ts +32 -0
  137. package/dist/components/research-editor/math-input.d.ts.map +1 -0
  138. package/dist/components/research-editor/math-markup.d.ts +4 -0
  139. package/dist/components/research-editor/math-markup.d.ts.map +1 -0
  140. package/dist/components/research-editor/math-navigation.d.ts +6 -0
  141. package/dist/components/research-editor/math-navigation.d.ts.map +1 -0
  142. package/dist/components/research-editor/math-node.d.ts +11 -0
  143. package/dist/components/research-editor/math-node.d.ts.map +1 -0
  144. package/dist/components/research-editor/source.d.ts +19 -0
  145. package/dist/components/research-editor/source.d.ts.map +1 -0
  146. package/dist/components/scrollbar/scrollbar.d.ts +4 -2
  147. package/dist/components/scrollbar/scrollbar.d.ts.map +1 -1
  148. package/dist/components/search-input/search-input.d.ts +0 -10
  149. package/dist/components/search-input/search-input.d.ts.map +1 -1
  150. package/dist/components/tiptap-renderer/tiptap-renderer.d.ts +4 -3
  151. package/dist/components/tiptap-renderer/tiptap-renderer.d.ts.map +1 -1
  152. package/dist/core/index.d.ts +1 -1
  153. package/dist/core/index.d.ts.map +1 -1
  154. package/dist/core/index.js +8 -4
  155. package/dist/core/provider.d.ts +7 -2
  156. package/dist/core/provider.d.ts.map +1 -1
  157. package/dist/forms/schema-provider.d.ts +3 -3
  158. package/dist/forms/schema-utils.d.ts +3 -3
  159. package/dist/hooks/index.js +9 -5
  160. package/dist/icons/context.d.ts +17 -0
  161. package/dist/icons/context.d.ts.map +1 -0
  162. package/dist/icons/controls.d.ts +51 -0
  163. package/dist/icons/controls.d.ts.map +1 -0
  164. package/dist/icons/index.d.ts +3 -0
  165. package/dist/icons/index.d.ts.map +1 -0
  166. package/dist/icons/index.js +4 -0
  167. package/dist/icons/index.js.map +1 -0
  168. package/dist/icons/theme.d.ts +4 -0
  169. package/dist/icons/theme.d.ts.map +1 -0
  170. package/dist/index.css +4 -0
  171. package/dist/index.css.map +1 -1
  172. package/dist/index.js +24 -13
  173. package/dist/index.js.map +1 -1
  174. package/dist/layouts/core/header-section.d.ts.map +1 -1
  175. package/dist/layouts/dashboard/labels.d.ts +12 -0
  176. package/dist/layouts/dashboard/labels.d.ts.map +1 -0
  177. package/dist/layouts/dashboard/layout.d.ts +7 -1
  178. package/dist/layouts/dashboard/layout.d.ts.map +1 -1
  179. package/dist/layouts/dashboard/sidenav.d.ts +7 -3
  180. package/dist/layouts/dashboard/sidenav.d.ts.map +1 -1
  181. package/dist/layouts/index.d.ts +5 -0
  182. package/dist/layouts/index.d.ts.map +1 -1
  183. package/dist/layouts/index.js +6 -1
  184. package/dist/layouts/panel-layout.d.ts +35 -0
  185. package/dist/layouts/panel-layout.d.ts.map +1 -0
  186. package/dist/layouts/sidebar-toggle.d.ts +11 -0
  187. package/dist/layouts/sidebar-toggle.d.ts.map +1 -0
  188. package/dist/state/stores/auth.d.ts +4 -16
  189. package/dist/state/stores/auth.d.ts.map +1 -1
  190. package/dist/state/stores/ui.d.ts +7 -105
  191. package/dist/state/stores/ui.d.ts.map +1 -1
  192. package/dist/theme/components/Button.d.ts.map +1 -1
  193. package/dist/theme/components/FormControls.d.ts +3 -12
  194. package/dist/theme/components/FormControls.d.ts.map +1 -1
  195. package/dist/theme/components/index.d.ts.map +1 -1
  196. package/dist/theme/create-theme.d.ts +5 -17
  197. package/dist/theme/create-theme.d.ts.map +1 -1
  198. package/dist/theme/index.js +6 -2
  199. package/dist/theme/mixins.d.ts +3 -1
  200. package/dist/theme/mixins.d.ts.map +1 -1
  201. package/dist/theme/palette/overrides.d.ts +23 -0
  202. package/dist/theme/palette/overrides.d.ts.map +1 -0
  203. package/dist/ui/index.d.ts +18 -0
  204. package/dist/ui/index.d.ts.map +1 -0
  205. package/dist/ui/index.js +148 -0
  206. package/dist/ui/index.js.map +1 -0
  207. package/package.json +92 -45
  208. package/dist/chunk-6AHI4GSV.js.map +0 -1
  209. package/dist/chunk-BZOL7GMU.js.map +0 -1
  210. package/dist/chunk-OBJ244BO.js.map +0 -1
  211. package/dist/chunk-WFD54GQQ.js.map +0 -1
  212. package/dist/chunk-YQW43BDH.js.map +0 -1
  213. package/dist/chunk-Z5OSPAOC.js.map +0 -1
  214. package/dist/chunk-ZTATTUH7.js.map +0 -1
@@ -1,5 +1,8 @@
1
+ import { SidebarToggle } from './chunk-PFT2BNYO.js';
1
2
  import { ARIA_LABELS, SkipLink } from './chunk-AD4W7HYC.js';
2
3
  import { useSettingsStore } from './chunk-XIXSSI3B.js';
4
+ import { Scrollbar } from './chunk-PXXPLHIY.js';
5
+ import { CloseIcon, MenuIcon } from './chunk-PGHEP4JD.js';
3
6
  import { createContext, useState, useMemo, useCallback, useContext, Fragment as Fragment$1, useEffect } from 'react';
4
7
  import { useTheme, useMediaQuery } from '@mui/material';
5
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -18,7 +21,6 @@ import MenuItem from '@mui/material/MenuItem';
18
21
  import ListItemIcon from '@mui/material/ListItemIcon';
19
22
  import ListItemText from '@mui/material/ListItemText';
20
23
  import IconButton from '@mui/material/IconButton';
21
- import SvgIcon from '@mui/material/SvgIcon';
22
24
  import Drawer from '@mui/material/Drawer';
23
25
  import List from '@mui/material/List';
24
26
  import ListSubheader from '@mui/material/ListSubheader';
@@ -500,6 +502,7 @@ function HeaderSection({
500
502
  return /* @__PURE__ */ jsxs(
501
503
  StyledAppBar,
502
504
  {
505
+ color: "transparent",
503
506
  position: disableSticky ? "static" : "sticky",
504
507
  isOffset,
505
508
  disableOffset,
@@ -757,6 +760,17 @@ function UserMenu({
757
760
  )
758
761
  ] });
759
762
  }
763
+
764
+ // src/layouts/dashboard/labels.ts
765
+ var dashboardLabels = {
766
+ openMenu: "Open menu",
767
+ closeMenu: "Close menu",
768
+ collapseSidebar: "Collapse sidebar",
769
+ expandSidebar: "Expand sidebar",
770
+ navigation: "Main navigation",
771
+ main: "Main content",
772
+ skipToContent: "Skip to main content"
773
+ };
760
774
  var NavRoot = styled(Box8, {
761
775
  shouldForwardProp: (prop) => !["variant", "collapsed"].includes(prop)
762
776
  })(({ theme, variant, collapsed }) => {
@@ -791,52 +805,27 @@ var NavContent = styled(Box8)({
791
805
  flex: 1,
792
806
  overflow: "hidden"
793
807
  });
794
- var NavScrollArea = styled(Box8)({
795
- flex: 1,
796
- overflow: "auto",
797
- // Custom scrollbar
798
- "&::-webkit-scrollbar": {
799
- width: 6
800
- },
801
- "&::-webkit-scrollbar-thumb": {
802
- backgroundColor: "rgba(0, 0, 0, 0.2)",
803
- borderRadius: 3
804
- }
805
- });
806
- var CollapseButton = styled(IconButton)(({ theme }) => ({
807
- position: "absolute",
808
- top: HEADER_HEIGHTS.desktop / 2,
809
- transform: "translateY(-50%)",
810
- right: -12,
811
- width: 24,
812
- height: 24,
813
- backgroundColor: theme.palette.background.paper,
814
- border: `1px solid ${theme.palette.divider}`,
815
- boxShadow: theme.shadows[1],
816
- "&:hover": {
817
- backgroundColor: theme.palette.action.hover
818
- },
819
- "& svg": {
820
- width: 16,
821
- height: 16
822
- }
823
- }));
808
+ var NavScrollArea = styled(Scrollbar)({ flex: 1 });
824
809
  function Sidenav({
825
810
  logo,
811
+ compactLogo,
826
812
  navData,
827
813
  renderNavItem,
828
814
  footer,
829
815
  showCollapseButton = true,
830
816
  layoutQuery = "md",
831
817
  "aria-label": ariaLabel = ARIA_LABELS.mainNav,
818
+ labels: customLabels,
832
819
  sx
833
820
  }) {
821
+ const labels = { ...dashboardLabels, ...customLabels };
834
822
  const { config, toggleSidenavCollapse } = useLayoutContext();
835
823
  const { sidenavVariant, sidenavCollapsed } = config;
836
824
  const showText = !sidenavCollapsed && sidenavVariant !== "mini";
837
825
  return /* @__PURE__ */ jsxs(
838
826
  NavRoot,
839
827
  {
828
+ as: "nav",
840
829
  role: "navigation",
841
830
  "aria-label": ariaLabel,
842
831
  variant: sidenavVariant,
@@ -859,7 +848,7 @@ function Sidenav({
859
848
  px: showText ? 3 : 1,
860
849
  flexShrink: 0
861
850
  },
862
- children: logo
851
+ children: showText || compactLogo === void 0 ? logo : compactLogo
863
852
  }
864
853
  ),
865
854
  /* @__PURE__ */ jsx(Divider, {}),
@@ -893,13 +882,11 @@ function Sidenav({
893
882
  footer && /* @__PURE__ */ jsx(Box8, { sx: { flexShrink: 0, p: 2 }, children: footer })
894
883
  ] }),
895
884
  showCollapseButton && sidenavVariant !== "mini" && /* @__PURE__ */ jsx(
896
- CollapseButton,
885
+ SidebarToggle,
897
886
  {
887
+ collapsed: sidenavCollapsed,
898
888
  onClick: toggleSidenavCollapse,
899
- size: "small",
900
- "aria-label": sidenavCollapsed ? "Expand sidebar" : "Collapse sidebar",
901
- "aria-expanded": !sidenavCollapsed,
902
- children: /* @__PURE__ */ jsx(ChevronIcon, { direction: sidenavCollapsed ? "right" : "left" })
889
+ labels: { expand: labels.expandSidebar, collapse: labels.collapseSidebar }
903
890
  }
904
891
  )
905
892
  ]
@@ -913,15 +900,23 @@ function MobileSidenav({
913
900
  footer,
914
901
  layoutQuery = "md",
915
902
  "aria-label": ariaLabel = ARIA_LABELS.mainNav,
903
+ labels: customLabels,
916
904
  sx
917
905
  }) {
918
- const { config, toggleDrawer } = useLayoutContext();
906
+ const labels = { ...dashboardLabels, ...customLabels };
907
+ const { config, setConfig } = useLayoutContext();
908
+ const location = useLocation();
909
+ const close = () => setConfig({ drawerOpen: false });
910
+ useEffect(() => {
911
+ setConfig({ drawerOpen: false });
912
+ }, [location.key, setConfig]);
919
913
  const { drawerOpen } = config;
920
914
  return /* @__PURE__ */ jsxs(
921
915
  Drawer,
922
916
  {
923
917
  open: drawerOpen,
924
- onClose: toggleDrawer,
918
+ onClose: close,
919
+ slotProps: { paper: { role: "dialog", "aria-modal": true, "aria-label": ariaLabel } },
925
920
  "aria-label": ariaLabel,
926
921
  sx: [
927
922
  (theme) => ({
@@ -934,7 +929,7 @@ function MobileSidenav({
934
929
  ...Array.isArray(sx) ? sx : [sx]
935
930
  ],
936
931
  children: [
937
- /* @__PURE__ */ jsx(
932
+ /* @__PURE__ */ jsxs(
938
933
  Box8,
939
934
  {
940
935
  sx: {
@@ -943,11 +938,14 @@ function MobileSidenav({
943
938
  height: { xs: HEADER_HEIGHTS.mobile, md: HEADER_HEIGHTS.desktop },
944
939
  px: 2.5
945
940
  },
946
- children: logo
941
+ children: [
942
+ /* @__PURE__ */ jsx(Box8, { sx: { flex: 1 }, children: logo }),
943
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": labels.closeMenu, onClick: close, children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" }) })
944
+ ]
947
945
  }
948
946
  ),
949
947
  /* @__PURE__ */ jsx(Divider, {}),
950
- /* @__PURE__ */ jsx(Box8, { component: "nav", role: "navigation", sx: { flex: 1, overflow: "auto" }, children: navData?.map((section) => /* @__PURE__ */ jsx(
948
+ /* @__PURE__ */ jsx(Box8, { component: "nav", role: "navigation", "aria-label": ariaLabel, sx: { flex: 1, overflow: "auto" }, children: navData?.map((section) => /* @__PURE__ */ jsx(
951
949
  List,
952
950
  {
953
951
  subheader: section.subheader ? /* @__PURE__ */ jsx(
@@ -976,7 +974,7 @@ function MobileSidenav({
976
974
  }
977
975
  );
978
976
  }
979
- function DefaultNavItem({ item, showText, depth, active }) {
977
+ function DefaultNavItem({ item, showText, depth, active, current }) {
980
978
  const button = /* @__PURE__ */ jsxs(
981
979
  ListItemButton,
982
980
  {
@@ -984,6 +982,9 @@ function DefaultNavItem({ item, showText, depth, active }) {
984
982
  ...item.path ? { to: item.path } : {},
985
983
  disabled: item.disabled,
986
984
  selected: active,
985
+ "aria-current": current,
986
+ "aria-label": item.title,
987
+ title: item.caption,
987
988
  sx: (theme) => ({
988
989
  minHeight: 44,
989
990
  borderRadius: 1,
@@ -1048,25 +1049,16 @@ function NavItemWithActive({ item, showText, depth }) {
1048
1049
  const { pathname } = useLocation();
1049
1050
  const { isItemActive } = useNavActive(pathname);
1050
1051
  const active = isItemActive(item);
1051
- return /* @__PURE__ */ jsx(DefaultNavItem, { item, showText, depth, active }, item.id);
1052
- }
1053
- function ChevronIcon({ direction }) {
1054
1052
  return /* @__PURE__ */ jsx(
1055
- "svg",
1053
+ DefaultNavItem,
1056
1054
  {
1057
- viewBox: "0 0 24 24",
1058
- fill: "none",
1059
- stroke: "currentColor",
1060
- strokeWidth: 2,
1061
- strokeLinecap: "round",
1062
- strokeLinejoin: "round",
1063
- "aria-hidden": "true",
1064
- focusable: "false",
1065
- style: {
1066
- transform: direction === "right" ? "rotate(180deg)" : void 0
1067
- },
1068
- children: /* @__PURE__ */ jsx("polyline", { points: "15 18 9 12 15 6" })
1069
- }
1055
+ item,
1056
+ showText,
1057
+ depth,
1058
+ active,
1059
+ current: active ? pathname.replace(/\/$/, "") === item.path?.replace(/\/$/, "") ? "page" : "location" : void 0
1060
+ },
1061
+ item.id
1070
1062
  );
1071
1063
  }
1072
1064
  var TopnavRoot = styled("nav")(({ theme }) => ({
@@ -1151,9 +1143,6 @@ function DefaultTopnavItem({ item }) {
1151
1143
  }
1152
1144
  );
1153
1145
  }
1154
- function MenuIcon() {
1155
- return /* @__PURE__ */ jsx(SvgIcon, { children: /* @__PURE__ */ jsx("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }) });
1156
- }
1157
1146
  var MainWrapper = styled(Box8, {
1158
1147
  shouldForwardProp: (prop) => !["hasSidebar", "sidebarWidth", "layoutQuery"].includes(prop)
1159
1148
  })(({ theme, hasSidebar, sidebarWidth, layoutQuery }) => ({
@@ -1164,7 +1153,8 @@ var MainWrapper = styled(Box8, {
1164
1153
  // Adjust margin for sidebar on desktop
1165
1154
  ...hasSidebar && {
1166
1155
  [theme.breakpoints.up(layoutQuery)]: {
1167
- marginLeft: sidebarWidth
1156
+ marginLeft: sidebarWidth,
1157
+ minWidth: 0
1168
1158
  }
1169
1159
  },
1170
1160
  // Smooth transition
@@ -1178,10 +1168,13 @@ function DashboardLayoutInternal({
1178
1168
  navData,
1179
1169
  headerSlots,
1180
1170
  logo,
1171
+ compactLogo,
1181
1172
  footer,
1182
1173
  sidenavFooter,
1183
- slotProps
1174
+ slotProps,
1175
+ labels: customLabels
1184
1176
  }) {
1177
+ const labels = { ...dashboardLabels, ...customLabels };
1185
1178
  const config = useLayoutConfig();
1186
1179
  const { toggleDrawer } = useLayoutContext();
1187
1180
  const {
@@ -1199,7 +1192,9 @@ function DashboardLayoutInternal({
1199
1192
  IconButton,
1200
1193
  {
1201
1194
  onClick: toggleDrawer,
1202
- "aria-label": "Open menu",
1195
+ "aria-label": labels.openMenu,
1196
+ "aria-haspopup": "dialog",
1197
+ "aria-expanded": config.drawerOpen,
1203
1198
  sx: {
1204
1199
  display: { xs: "inline-flex", [layoutQuery]: "none" },
1205
1200
  bgcolor: "transparent",
@@ -1216,9 +1211,9 @@ function DashboardLayoutInternal({
1216
1211
  headerSlots?.leftArea
1217
1212
  ] })
1218
1213
  };
1219
- }, [hasSidebar, headerSlots, toggleDrawer, layoutQuery]);
1214
+ }, [hasSidebar, headerSlots, toggleDrawer, layoutQuery, labels.openMenu, config.drawerOpen]);
1220
1215
  return /* @__PURE__ */ jsxs(MainWrapper, { hasSidebar, sidebarWidth, layoutQuery, children: [
1221
- /* @__PURE__ */ jsx(SkipLink, { href: "#main-content", children: "Skip to main content" }),
1216
+ /* @__PURE__ */ jsx(SkipLink, { href: `#${slotProps?.main?.id ?? "main-content"}`, children: labels.skipToContent }),
1222
1217
  /* @__PURE__ */ jsx(
1223
1218
  HeaderSection,
1224
1219
  {
@@ -1243,10 +1238,12 @@ function DashboardLayoutInternal({
1243
1238
  Sidenav,
1244
1239
  {
1245
1240
  logo,
1241
+ compactLogo,
1246
1242
  navData,
1247
1243
  footer: sidenavFooter,
1248
1244
  layoutQuery,
1249
- "aria-label": ARIA_LABELS.mainNav
1245
+ "aria-label": labels.navigation,
1246
+ labels
1250
1247
  }
1251
1248
  ),
1252
1249
  /* @__PURE__ */ jsx(
@@ -1256,7 +1253,8 @@ function DashboardLayoutInternal({
1256
1253
  navData,
1257
1254
  footer: sidenavFooter,
1258
1255
  layoutQuery,
1259
- "aria-label": ARIA_LABELS.mainNav
1256
+ "aria-label": labels.navigation,
1257
+ labels
1260
1258
  }
1261
1259
  )
1262
1260
  ] }),
@@ -1264,9 +1262,10 @@ function DashboardLayoutInternal({
1264
1262
  Box8,
1265
1263
  {
1266
1264
  component: "main",
1267
- id: "main-content",
1265
+ id: slotProps?.main?.id ?? "main-content",
1266
+ className: slotProps?.main?.className,
1268
1267
  role: "main",
1269
- "aria-label": ARIA_LABELS.main,
1268
+ "aria-label": labels.main,
1270
1269
  tabIndex: -1,
1271
1270
  sx: {
1272
1271
  display: "flex",
@@ -1294,11 +1293,13 @@ function DashboardLayout({
1294
1293
  navData,
1295
1294
  headerSlots,
1296
1295
  logo,
1296
+ compactLogo,
1297
1297
  footer,
1298
1298
  sidenavFooter,
1299
1299
  initialConfig,
1300
1300
  persistKey,
1301
- slotProps
1301
+ slotProps,
1302
+ labels
1302
1303
  }) {
1303
1304
  return /* @__PURE__ */ jsx(LayoutProvider, { initialConfig, persistKey, children: /* @__PURE__ */ jsx(
1304
1305
  DashboardLayoutInternal,
@@ -1307,9 +1308,11 @@ function DashboardLayout({
1307
1308
  navData,
1308
1309
  headerSlots,
1309
1310
  logo,
1311
+ compactLogo,
1310
1312
  footer,
1311
1313
  sidenavFooter,
1312
1314
  slotProps,
1315
+ labels,
1313
1316
  children
1314
1317
  }
1315
1318
  ) });
@@ -1572,5 +1575,5 @@ function SimpleCompactContent({ children, sx }) {
1572
1575
  }
1573
1576
 
1574
1577
  export { AuthCenteredContent, AuthCenteredLayout, AuthSimpleLayout, AuthSplitContent, AuthSplitIllustration, AuthSplitLayout, DEFAULT_LAYOUT_CSS_VARS, DRAWER_WIDTHS, DashboardContent, DashboardLayout, HEADER_HEIGHTS, HeaderSection, HeaderToolbar, LAYOUT_CSS_VARS, LayoutContext, LayoutGlobalStyles, LayoutProvider, LayoutSection, MainSection, MobileSidenav, Sidenav, SimpleCompactContent, UserMenu, defaultLayoutConfig, getBaseLayoutCssVars, getNavColorCssVars, mergeLayoutCssVars, useLayoutConfig, useLayoutContext, useNavActive, useSidenavVisible, useTopnavVisible };
1575
- //# sourceMappingURL=chunk-Z5OSPAOC.js.map
1576
- //# sourceMappingURL=chunk-Z5OSPAOC.js.map
1578
+ //# sourceMappingURL=chunk-4Z5DE5GK.js.map
1579
+ //# sourceMappingURL=chunk-4Z5DE5GK.js.map