@industry-theme/markdown-panels 0.2.6 → 0.2.8

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.
@@ -46237,6 +46237,7 @@ var SlideNavigationHeader = ({
46237
46237
  showFullscreenButton,
46238
46238
  showPopoutButton = false,
46239
46239
  isPopout = false,
46240
+ isMobile = false,
46240
46241
  theme: theme2,
46241
46242
  viewMode = "single",
46242
46243
  tocDisplayMode = "overlay",
@@ -46282,10 +46283,11 @@ var SlideNavigationHeader = ({
46282
46283
  disabled: currentSlide === 0,
46283
46284
  theme: theme2,
46284
46285
  title: "Previous slide",
46285
- minWidth: "100px"
46286
+ minWidth: isMobile ? void 0 : "100px",
46287
+ width: isMobile ? "36px" : void 0
46286
46288
  }, /* @__PURE__ */ React19__default.createElement(ChevronLeft, {
46287
46289
  size: 18
46288
- }), "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46290
+ }), !isMobile && "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46289
46291
  onClick: onCollapseLeft,
46290
46292
  active: collapseRight,
46291
46293
  theme: theme2,
@@ -46340,8 +46342,9 @@ var SlideNavigationHeader = ({
46340
46342
  disabled: currentSlide === totalSlides - 1,
46341
46343
  theme: theme2,
46342
46344
  title: "Next slide",
46343
- minWidth: "100px"
46344
- }, "Next", /* @__PURE__ */ React19__default.createElement(ChevronRight, {
46345
+ minWidth: isMobile ? void 0 : "100px",
46346
+ width: isMobile ? "36px" : void 0
46347
+ }, !isMobile && "Next", /* @__PURE__ */ React19__default.createElement(ChevronRight, {
46345
46348
  size: 18
46346
46349
  })), showPopoutButton && onPopout && !isPopout && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46347
46350
  onClick: onPopout,
@@ -46357,8 +46360,9 @@ var SlideNavigationHeader = ({
46357
46360
  size: 18
46358
46361
  })), showFullscreenButton && !showPopoutButton && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46359
46362
  onClick: onToggleFullscreen,
46363
+ disabled: isMobile,
46360
46364
  theme: theme2,
46361
- title: isFullscreen ? "Exit fullscreen (F)" : "Enter fullscreen (F)"
46365
+ title: isMobile ? "Fullscreen not available on mobile" : isFullscreen ? "Exit fullscreen (F)" : "Enter fullscreen (F)"
46362
46366
  }, isFullscreen ? /* @__PURE__ */ React19__default.createElement(Minimize2, {
46363
46367
  size: 18
46364
46368
  }) : /* @__PURE__ */ React19__default.createElement(Maximize2, {
@@ -46580,7 +46584,16 @@ var SlidePresentationBook = ({
46580
46584
  fontSizeScale,
46581
46585
  theme: theme2
46582
46586
  }) => {
46583
- const effectiveTocDisplayMode = tocDisplayMode ?? (viewMode === "single" ? "sidebar" : "overlay");
46587
+ const [isMobile, setIsMobile] = useState(false);
46588
+ useEffect(() => {
46589
+ const checkMobile = () => {
46590
+ setIsMobile(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent) || window.innerWidth < 768);
46591
+ };
46592
+ checkMobile();
46593
+ window.addEventListener("resize", checkMobile);
46594
+ return () => window.removeEventListener("resize", checkMobile);
46595
+ }, []);
46596
+ const effectiveTocDisplayMode = isMobile && viewMode === "single" ? "overlay" : tocDisplayMode ?? (viewMode === "single" ? "sidebar" : "overlay");
46584
46597
  const defaultTocOpen = initialTocOpen ?? false;
46585
46598
  const adjustedInitialSlide = viewMode === "book" ? Math.floor(initialSlide / 2) * 2 : initialSlide;
46586
46599
  const [currentSlide, setCurrentSlide] = useState(adjustedInitialSlide);
@@ -46831,6 +46844,7 @@ var SlidePresentationBook = ({
46831
46844
  showFullscreenButton,
46832
46845
  showPopoutButton,
46833
46846
  isPopout,
46847
+ isMobile,
46834
46848
  theme: theme2,
46835
46849
  viewMode,
46836
46850
  tocDisplayMode: effectiveTocDisplayMode,
@@ -47941,7 +47955,7 @@ const MarkdownPanel = ({
47941
47955
  fontFamily: theme2.fonts.body,
47942
47956
  transition: "all 0.2s"
47943
47957
  },
47944
- children: "Slides"
47958
+ children: "Sections"
47945
47959
  }
47946
47960
  ),
47947
47961
  /* @__PURE__ */ jsx(