@react-pdf-kit/viewer 2.8.0-beta.1 → 2.8.0-beta.10

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 (175) hide show
  1. package/README.md +44 -30
  2. package/dist/{AnnotationLayer-C6UTOVmc.js → AnnotationLayer-CyOYh0Tw.js} +2 -2
  3. package/dist/CanvasLayer-CJqCJ30J.js +111 -0
  4. package/dist/{LoadingIndicator-Bzzf28Xv.js → LoadingIndicator-0E8WHnSN.js} +7 -7
  5. package/dist/MenuItem-lItnKNd5.js +31 -0
  6. package/dist/Paginate.module-DhE7N8AA.js +9 -0
  7. package/dist/PaginationContext-DIzsZhFd.js +194 -0
  8. package/dist/{PasswordModal-BeLyLUsu.js → PasswordModal-CxHFn0pB.js} +12 -12
  9. package/dist/RPLayout.module-BH5r8dDc.js +14 -0
  10. package/dist/RPPages-U8QNLlIa.js +686 -0
  11. package/dist/{RPTooltip-CXBVXusS.js → RPTooltip-QWwWh4HW.js} +123 -91
  12. package/dist/SearchTool.module-DY8Ucfb_.js +17 -0
  13. package/dist/{SkipLink-CdcjClGB.js → SkipLink-Dj83gZdk.js} +3 -3
  14. package/dist/{TextLayer-DWGFN9SF.js → TextLayer-D-V9kogG.js} +5 -5
  15. package/dist/{Thumbnail-BO3QHzxR.js → Thumbnail-BXMk0OWF.js} +6 -6
  16. package/dist/{Thumbnails-DyeBsQJT.js → Thumbnails-BIuN8LZ8.js} +2 -2
  17. package/dist/assets/AnnotationLayer.css +1 -1
  18. package/dist/assets/CanvasLayer.css +1 -0
  19. package/dist/assets/LoadingIndicator.css +1 -1
  20. package/dist/assets/MenuItem.css +1 -1
  21. package/dist/assets/Paginate.css +1 -1
  22. package/dist/assets/PasswordModal.css +1 -1
  23. package/dist/assets/RPLayout.css +1 -1
  24. package/dist/assets/RPPages.css +1 -1
  25. package/dist/assets/SearchTool.css +1 -1
  26. package/dist/assets/SkipLink.css +1 -1
  27. package/dist/assets/TextLayer.css +1 -1
  28. package/dist/assets/Thumbnail.css +1 -1
  29. package/dist/assets/style.js +1 -1
  30. package/dist/components/RPController.js +39 -39
  31. package/dist/components/RPPages.js +1 -1
  32. package/dist/components/RPProvider.js +1 -1
  33. package/dist/components/layout/LayoutContainer.js +6 -6
  34. package/dist/components/layout/LayoutWrapper.js +5 -5
  35. package/dist/components/layout/RPDefaultLayout.js +56 -55
  36. package/dist/components/layout/RPLayout.js +39 -38
  37. package/dist/components/layout/SkipLink.js +1 -1
  38. package/dist/components/layout/sidebar/RPSidebar.js +2 -2
  39. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  40. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  41. package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
  42. package/dist/components/layout/toolbar/DocumentProperties.js +6 -6
  43. package/dist/components/layout/toolbar/FileDownloadTool.js +6 -6
  44. package/dist/components/layout/toolbar/FileUploadTool.js +6 -6
  45. package/dist/components/layout/toolbar/FullScreenTool.js +9 -8
  46. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  47. package/dist/components/layout/toolbar/MostPageTool.js +23 -29
  48. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  49. package/dist/components/layout/toolbar/Paginate.js +18 -3
  50. package/dist/components/layout/toolbar/PrintTool.js +6 -6
  51. package/dist/components/layout/toolbar/RPMenuItem.js +2 -2
  52. package/dist/components/layout/toolbar/RPMoreOptions.js +1 -1
  53. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  54. package/dist/components/layout/toolbar/RotateTool.js +10 -10
  55. package/dist/components/layout/toolbar/ScrollModeTool.js +17 -17
  56. package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
  57. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  58. package/dist/components/layout/toolbar/SearchTool.js +133 -121
  59. package/dist/components/layout/toolbar/SelectionModeTool.js +10 -10
  60. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  61. package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
  62. package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
  63. package/dist/components/layout/toolbar/ViewModeTool.js +16 -16
  64. package/dist/components/layout/toolbar/ZoomTool.js +82 -80
  65. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
  66. package/dist/components/layout/toolbar/tools/DualPageTool.js +1 -1
  67. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
  68. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  69. package/dist/components/layout/toolbar/tools/FileUploadTool.js +1 -1
  70. package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
  71. package/dist/components/layout/toolbar/tools/FullScreenTool.js +1 -1
  72. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +3 -3
  73. package/dist/components/layout/toolbar/tools/InputPageTool.js +36 -25
  74. package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
  75. package/dist/components/layout/toolbar/tools/NextPageTool.js +2 -2
  76. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +1 -1
  77. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +2 -2
  78. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  79. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +1 -1
  80. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +1 -1
  81. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +1 -1
  82. package/dist/components/layout/toolbar/tools/SinglePageTool.js +1 -1
  83. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +1 -1
  84. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  85. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +1 -1
  86. package/dist/components/layout/toolbar/tools/ZoomInTool.js +25 -23
  87. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  88. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +2 -2
  89. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +25 -23
  90. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
  91. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  92. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  93. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
  94. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +3 -3
  95. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  96. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +2 -2
  97. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +7 -7
  98. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +2 -2
  99. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +2 -2
  100. package/dist/components/page/AnnotationLayer.js +1 -1
  101. package/dist/components/page/CanvasLayer.js +2 -48
  102. package/dist/components/page/DualPage.js +2 -2
  103. package/dist/components/page/DualPageWithCover.js +2 -2
  104. package/dist/components/page/RPPage.js +94 -2
  105. package/dist/components/page/SinglePage.js +2 -2
  106. package/dist/components/page/TextHighlightLayer.js +1 -1
  107. package/dist/components/page/TextLayer.js +1 -1
  108. package/dist/components/ui/LoadingIndicator.js +1 -1
  109. package/dist/components/ui/PasswordModal.js +1 -1
  110. package/dist/components/ui/RPTooltip.js +1 -1
  111. package/dist/contexts/DimensionPagesContext.js +38 -22
  112. package/dist/contexts/ElementPageContext.js +46 -39
  113. package/dist/contexts/ElementThumbnailContext.js +1 -1
  114. package/dist/contexts/PaginationContext.js +1 -1
  115. package/dist/contexts/RenderQueueProvider.js +26 -18
  116. package/dist/contexts/RenderedPagesCache.js +32 -13
  117. package/dist/contexts/VirtualScrollContext.js +10 -13
  118. package/dist/contexts/ZoomContext.js +119 -61
  119. package/dist/{de_DE--0LF-SJR.js → de_DE-x4Z-jQrz.js} +54 -6
  120. package/dist/{main-0RC2E65p.js → main-DCzVrq0G.js} +2 -2
  121. package/dist/main.js +4 -4
  122. package/dist/style-CJtyyrJx.js +5 -0
  123. package/dist/types/components/page/CanvasLayer.d.ts +4 -1
  124. package/dist/types/components/ui/RPTooltip.d.ts +3 -2
  125. package/dist/types/contexts/RenderQueueProvider.d.ts +2 -0
  126. package/dist/types/contexts/RenderedPagesCache.d.ts +3 -0
  127. package/dist/types/contexts/VirtualScrollContext.d.ts +0 -3
  128. package/dist/types/locales/de_DE.json.d.ts +11 -2
  129. package/dist/types/locales/en_US.json.d.ts +11 -2
  130. package/dist/types/locales/it_IT.json.d.ts +11 -2
  131. package/dist/types/locales/pt_PT.json.d.ts +11 -2
  132. package/dist/types/locales/th_TH.json.d.ts +11 -2
  133. package/dist/types/locales/zh_CN.json.d.ts +11 -2
  134. package/dist/types/utils/Queue.d.ts +1 -0
  135. package/dist/types/utils/const.d.ts +3 -0
  136. package/dist/types/utils/constants.d.ts +9 -0
  137. package/dist/types/utils/documentLayout.d.ts +60 -0
  138. package/dist/types/utils/hooks/usePinch.d.ts +14 -1
  139. package/dist/types/utils/hooks/usePresentPage.d.ts +2 -2
  140. package/dist/types/utils/hooks/useZoomOrigin.d.ts +4 -0
  141. package/dist/types/utils/types.d.ts +24 -2
  142. package/dist/types/utils/zoom.d.ts +2 -0
  143. package/dist/utils/Queue.js +5 -0
  144. package/dist/utils/const.js +2 -2
  145. package/dist/utils/constants.js +2 -2
  146. package/dist/utils/documentLayout.js +141 -0
  147. package/dist/utils/hooks/useLicense.js +1 -1
  148. package/dist/utils/hooks/useLoadPdf.js +73 -63
  149. package/dist/utils/hooks/useLocalization.js +1 -1
  150. package/dist/utils/hooks/usePaginate.js +1 -1
  151. package/dist/utils/hooks/usePinch.js +109 -56
  152. package/dist/utils/hooks/usePresentPage.js +33 -57
  153. package/dist/utils/hooks/useScrollToPage.js +1 -1
  154. package/dist/utils/hooks/useSearch.js +66 -67
  155. package/dist/utils/hooks/useZoomOrigin.js +37 -0
  156. package/dist/utils/renderPage.js +21 -14
  157. package/dist/utils/types.js +3 -3
  158. package/dist/utils/zoom.js +8 -2
  159. package/package.json +1 -1
  160. package/dist/MenuItem-9kCH_GQ0.js +0 -15
  161. package/dist/Paginate.module-B0GMw-MB.js +0 -8
  162. package/dist/PaginationContext-C5CJiEW-.js +0 -242
  163. package/dist/RPLayout.module-Vc3h4xxS.js +0 -14
  164. package/dist/RPPage-BsDixmqF.js +0 -91
  165. package/dist/RPPages-Cf-FDd0a.js +0 -1007
  166. package/dist/SearchTool.module-DUkVXfOn.js +0 -16
  167. package/dist/assets/RPPage.css +0 -1
  168. package/dist/contexts/VirtualGridContext.js +0 -18
  169. package/dist/style-BPQRJJJ7.js +0 -5
  170. package/dist/types/contexts/VirtualGridContext.d.ts +0 -9
  171. package/dist/types/utils/calculatePage.d.ts +0 -12
  172. package/dist/types/utils/hooks/useVirtualReactWindow.d.ts +0 -17
  173. package/dist/utils/calculatePage.js +0 -30
  174. package/dist/utils/hooks/useVirtualReactWindow.js +0 -86
  175. /package/dist/{TextHighlightLayer-BSVgBxR3.js → TextHighlightLayer-3vIZbRyL.js} +0 -0
@@ -6,8 +6,8 @@ import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
6
6
  import { t as a } from "../../../Button-DBu3SaMk.js";
7
7
  import { useIconContext as o } from "../../../contexts/IconContext.js";
8
8
  import { useViewportContext as s } from "../../../contexts/ViewportContext.js";
9
- import { t as c } from "../../../RPTooltip-CXBVXusS.js";
10
- import { t as l } from "../../../MenuItem-9kCH_GQ0.js";
9
+ import { t as c } from "../../../RPTooltip-QWwWh4HW.js";
10
+ import { t as l } from "../../../MenuItem-lItnKNd5.js";
11
11
  import { FullScreenIcon as u } from "../../icons/FullScreenIcon.js";
12
12
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
13
13
  //#region lib/components/layout/toolbar/FullScreenTool.tsx
@@ -18,12 +18,12 @@ var p = () => {
18
18
  className: t,
19
19
  content: n?.fullScreenTooltip,
20
20
  children: e
21
- }), h = ({ toggleFullScreen: e, isSupported: t, localeMessages: n }) => /* @__PURE__ */ d(l, {
22
- onClick: e,
23
- disabled: !t,
24
- children: /* @__PURE__ */ f(m, {
21
+ }), h = ({ toggleFullScreen: e, isSupported: t, localeMessages: n }) => /* @__PURE__ */ d(m, {
22
+ localeMessages: n,
23
+ children: /* @__PURE__ */ f(l, {
24
+ onClick: e,
25
+ disabled: !t,
25
26
  className: "rp-menu-item",
26
- localeMessages: n,
27
27
  children: [/* @__PURE__ */ d("div", {
28
28
  className: "rp-menu-item-left",
29
29
  children: /* @__PURE__ */ d(u, {})
@@ -55,7 +55,8 @@ var p = () => {
55
55
  children: /* @__PURE__ */ d(a, {
56
56
  disabled: !l,
57
57
  onClick: o,
58
- "aria-label": i ? "Exit full screen" : "Enter full screen",
58
+ "aria-label": _?.fullScreenLabel,
59
+ "aria-pressed": i,
59
60
  children: /* @__PURE__ */ d(p, {})
60
61
  })
61
62
  });
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../MenuItem-9kCH_GQ0.js";
1
+ import { t as e } from "../../../MenuItem-lItnKNd5.js";
2
2
  export { e as MenuItem };
@@ -1,12 +1,12 @@
1
- import { r as e } from "../../../PaginationContext-C5CJiEW-.js";
1
+ import { r as e } from "../../../PaginationContext-DIzsZhFd.js";
2
2
  import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
3
3
  import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
4
4
  import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
5
5
  import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
6
6
  import { useIconContext as a } from "../../../contexts/IconContext.js";
7
- import { t as o } from "../../../RPTooltip-CXBVXusS.js";
7
+ import { t as o } from "../../../RPTooltip-QWwWh4HW.js";
8
8
  import { n as s } from "../../../dist-VbpVNBs6.js";
9
- import { t as c } from "../../../MenuItem-9kCH_GQ0.js";
9
+ import { t as c } from "../../../MenuItem-lItnKNd5.js";
10
10
  import { t as l } from "../../../MenuSeparator-CaFxd8b5.js";
11
11
  import { GoToDownIcon as u } from "../../icons/GoToDownIcon.js";
12
12
  import { t as d } from "../../../MostPageTool.module-BRVv-sGz.js";
@@ -26,34 +26,28 @@ var g = () => {
26
26
  i(a);
27
27
  }, [i, a]);
28
28
  return !d || !y ? null : /* @__PURE__ */ h(s, { children: [
29
- /* @__PURE__ */ m(c, {
30
- onClick: C,
31
- children: /* @__PURE__ */ m(o, {
32
- content: b?.firstPageTooltip,
33
- style: v,
34
- children: /* @__PURE__ */ h("div", {
35
- className: "rp-menu-item",
36
- "aria-disabled": x,
37
- children: [/* @__PURE__ */ m("div", {
38
- className: "rp-menu-item-left",
39
- children: /* @__PURE__ */ m(g, {})
40
- }), /* @__PURE__ */ m("span", { children: b?.firstPageLabel })]
41
- })
29
+ /* @__PURE__ */ m(o, {
30
+ content: b?.firstPageTooltip,
31
+ style: v,
32
+ children: /* @__PURE__ */ h(c, {
33
+ onClick: C,
34
+ disabled: x,
35
+ children: [/* @__PURE__ */ m("div", {
36
+ className: "rp-menu-item-left",
37
+ children: /* @__PURE__ */ m(g, {})
38
+ }), /* @__PURE__ */ m("span", { children: b?.firstPageLabel })]
42
39
  })
43
40
  }),
44
- /* @__PURE__ */ m(c, {
45
- onClick: w,
46
- children: /* @__PURE__ */ m(o, {
47
- content: b?.lastPageTooltip,
48
- style: v,
49
- children: /* @__PURE__ */ h("div", {
50
- className: "rp-menu-item",
51
- "aria-disabled": S,
52
- children: [/* @__PURE__ */ m("div", {
53
- className: "rp-menu-item-left",
54
- children: /* @__PURE__ */ m(_, {})
55
- }), /* @__PURE__ */ m("span", { children: b?.lastPageLabel })]
56
- })
41
+ /* @__PURE__ */ m(o, {
42
+ content: b?.lastPageTooltip,
43
+ style: v,
44
+ children: /* @__PURE__ */ h(c, {
45
+ onClick: w,
46
+ disabled: S,
47
+ children: [/* @__PURE__ */ m("div", {
48
+ className: "rp-menu-item-left",
49
+ children: /* @__PURE__ */ m(_, {})
50
+ }), /* @__PURE__ */ m("span", { children: b?.lastPageLabel })]
57
51
  })
58
52
  }),
59
53
  /* @__PURE__ */ m(l, {})
@@ -4,7 +4,7 @@ import { useToolbarComponentContext as ee } from "../../../contexts/ToolbarCompo
4
4
  import { useToolComponentContext as te } from "../../../contexts/ToolComponentContext.js";
5
5
  import { t as n } from "../../../Button-DBu3SaMk.js";
6
6
  import { useViewportContext as r } from "../../../contexts/ViewportContext.js";
7
- import { t as i } from "../../../RPTooltip-CXBVXusS.js";
7
+ import { t as i } from "../../../RPTooltip-QWwWh4HW.js";
8
8
  import { n as a } from "../../../dist-VbpVNBs6.js";
9
9
  import { FileUploadTool as o } from "./FileUploadTool.js";
10
10
  import { ThreeDotIcon as s } from "../../icons/ThreeDotIcon.js";
@@ -1,7 +1,7 @@
1
1
  import { ScrollMode as e, ViewMode as t } from "../../../utils/types.js";
2
2
  import { useScrollModeContext as n } from "../../../contexts/ScrollModeContext.js";
3
3
  import { useViewModeContext as r } from "../../../contexts/ViewModeContext.js";
4
- import { r as i } from "../../../PaginationContext-C5CJiEW-.js";
4
+ import { r as i } from "../../../PaginationContext-DIzsZhFd.js";
5
5
  import { useLocalizationContext as a } from "../../../contexts/LocalizationContext.js";
6
6
  import { useToolbarComponentContext as o } from "../../../contexts/ToolbarComponentContext.js";
7
7
  import { useToolComponentContext as s } from "../../../contexts/ToolComponentContext.js";
@@ -9,10 +9,10 @@ import { useIconToolContext as c } from "../../../contexts/IconToolContext.js";
9
9
  import { ChevronUpIcon as l } from "../../icons/ChevronUpIcon.js";
10
10
  import { t as u } from "../../../Button-DBu3SaMk.js";
11
11
  import { t as d } from "../../../Input-Dpo1Xfxe.js";
12
- import { t as f } from "../../../Paginate.module-B0GMw-MB.js";
12
+ import { t as f } from "../../../Paginate.module-DhE7N8AA.js";
13
13
  import { useIconContext as p } from "../../../contexts/IconContext.js";
14
14
  import { useViewportContext as m } from "../../../contexts/ViewportContext.js";
15
- import { t as h } from "../../../RPTooltip-CXBVXusS.js";
15
+ import { t as h } from "../../../RPTooltip-QWwWh4HW.js";
16
16
  import { useCallback as g, useEffect as _, useMemo as v, useState as y } from "react";
17
17
  import { jsx as b, jsxs as x } from "react/jsx-runtime";
18
18
  //#region lib/components/layout/toolbar/Paginate.tsx
@@ -71,6 +71,7 @@ var S = () => {
71
71
  name: "page-input",
72
72
  label: P?.currentPageTooltip || "Current page",
73
73
  "aria-label": P?.currentPageTooltip,
74
+ autoComplete: "off",
74
75
  "aria-valuemin": 1,
75
76
  "aria-valuemax": l,
76
77
  "aria-valuenow": parseInt(D) || c,
@@ -81,8 +82,22 @@ var S = () => {
81
82
  }),
82
83
  /* @__PURE__ */ x("span", {
83
84
  className: f["rp-total-page"],
85
+ "aria-hidden": "true",
84
86
  children: ["/", l]
85
87
  }),
88
+ /* @__PURE__ */ x("span", {
89
+ role: "status",
90
+ "aria-live": "polite",
91
+ "aria-atomic": "true",
92
+ className: f["rp-sr-only"],
93
+ children: [
94
+ c,
95
+ " ",
96
+ P?.ofTotalPagesLabel ?? "of",
97
+ " ",
98
+ l
99
+ ]
100
+ }),
86
101
  !j && /* @__PURE__ */ b(h, {
87
102
  content: P?.nextPageTooltip,
88
103
  children: /* @__PURE__ */ b(u, {
@@ -6,8 +6,8 @@ import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
6
6
  import { t as a } from "../../../Button-DBu3SaMk.js";
7
7
  import { useIconContext as o } from "../../../contexts/IconContext.js";
8
8
  import { useViewportContext as s } from "../../../contexts/ViewportContext.js";
9
- import { t as c } from "../../../RPTooltip-CXBVXusS.js";
10
- import { t as l } from "../../../MenuItem-9kCH_GQ0.js";
9
+ import { t as c } from "../../../RPTooltip-QWwWh4HW.js";
10
+ import { t as l } from "../../../MenuItem-lItnKNd5.js";
11
11
  import { PrintDefaultTool as u } from "../../icons/PrintDefaultIcon.js";
12
12
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
13
13
  //#region lib/components/layout/toolbar/PrintTool.tsx
@@ -25,11 +25,11 @@ var p = () => {
25
25
  "aria-label": t?.printTooltip,
26
26
  children: /* @__PURE__ */ d(p, {})
27
27
  })
28
- }), g = ({ print: e, localeMessages: t }) => /* @__PURE__ */ d(l, {
29
- onClick: e,
30
- children: /* @__PURE__ */ f(m, {
28
+ }), g = ({ print: e, localeMessages: t }) => /* @__PURE__ */ d(m, {
29
+ localeMessages: t,
30
+ children: /* @__PURE__ */ f(l, {
31
+ onClick: e,
31
32
  className: "rp-menu-item",
32
- localeMessages: t,
33
33
  children: [/* @__PURE__ */ d("div", {
34
34
  className: "rp-menu-item-left",
35
35
  children: /* @__PURE__ */ d(p, {})
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../../RPTooltip-CXBVXusS.js";
2
- import { t } from "../../../MenuItem-9kCH_GQ0.js";
1
+ import { t as e } from "../../../RPTooltip-QWwWh4HW.js";
2
+ import { t } from "../../../MenuItem-lItnKNd5.js";
3
3
  import { InfoIcon as n } from "../../icons/InfoIcon.js";
4
4
  import { t as r } from "../../../MenuSeparator-CaFxd8b5.js";
5
5
  import "react";
@@ -2,7 +2,7 @@ import { useLayoutContainer as e } from "../../../contexts/LayoutContainerContex
2
2
  import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
3
3
  import { t as n } from "../../../Button-DBu3SaMk.js";
4
4
  import { useViewportContext as r } from "../../../contexts/ViewportContext.js";
5
- import { t as i } from "../../../RPTooltip-CXBVXusS.js";
5
+ import { t as i } from "../../../RPTooltip-QWwWh4HW.js";
6
6
  import { n as a } from "../../../dist-VbpVNBs6.js";
7
7
  import { ThreeDotIcon as o } from "../../icons/ThreeDotIcon.js";
8
8
  import { t as s } from "../../../DropDown-CM6xEwZC.js";
@@ -8,7 +8,7 @@ import { Paginate as o } from "./Paginate.js";
8
8
  import { RPToolbarEnd as s } from "./RPToolbarEnd.js";
9
9
  import { ZoomTool as c } from "./ZoomTool.js";
10
10
  import { SearchTool as l } from "./SearchTool.js";
11
- import { t as u } from "../../../LoadingIndicator-Bzzf28Xv.js";
11
+ import { t as u } from "../../../LoadingIndicator-0E8WHnSN.js";
12
12
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
13
13
  //#region lib/components/layout/toolbar/RPToolbar.tsx
14
14
  var p = r((r, p) => {
@@ -3,9 +3,9 @@ import { useToolbarComponentContext as t } from "../../../contexts/ToolbarCompon
3
3
  import { useToolComponentContext as n } from "../../../contexts/ToolComponentContext.js";
4
4
  import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
5
5
  import { useIconContext as i } from "../../../contexts/IconContext.js";
6
- import { t as a } from "../../../RPTooltip-CXBVXusS.js";
6
+ import { t as a } from "../../../RPTooltip-QWwWh4HW.js";
7
7
  import { n as o } from "../../../dist-VbpVNBs6.js";
8
- import { t as s } from "../../../MenuItem-9kCH_GQ0.js";
8
+ import { t as s } from "../../../MenuItem-lItnKNd5.js";
9
9
  import { t as c } from "../../../MenuSeparator-CaFxd8b5.js";
10
10
  import { ClockwiseIcon as l } from "../../icons/ClockwiseIcon.js";
11
11
  import { t as u } from "../../../RotateTool.module-DH5yWbvM.js";
@@ -21,22 +21,22 @@ var h = () => {
21
21
  }, _ = () => {
22
22
  let { handleRotateClockwise: r, handleRotateCounterclockwise: i } = d(), { rotateTool: l = !0 } = t(), { rotateTool: u = !0 } = n(), { localeMessages: _ } = e();
23
23
  return !l || !u ? null : /* @__PURE__ */ p(f, { children: /* @__PURE__ */ m(o, { children: [
24
- /* @__PURE__ */ p(s, {
25
- onClick: r,
26
- children: /* @__PURE__ */ m(a, {
24
+ /* @__PURE__ */ p(a, {
25
+ content: _?.rotateClockwiseTooltip,
26
+ children: /* @__PURE__ */ m(s, {
27
+ onClick: r,
27
28
  className: "rp-menu-item",
28
- content: _?.rotateClockwiseTooltip,
29
29
  children: [/* @__PURE__ */ p("div", {
30
30
  className: "rp-menu-item-left",
31
31
  children: /* @__PURE__ */ p(h, {})
32
32
  }), _?.rotateClockwiseLabel]
33
33
  })
34
34
  }),
35
- /* @__PURE__ */ p(s, {
36
- onClick: i,
37
- children: /* @__PURE__ */ m(a, {
35
+ /* @__PURE__ */ p(a, {
36
+ content: _?.rotateCounterclockwiseTooltip,
37
+ children: /* @__PURE__ */ m(s, {
38
+ onClick: i,
38
39
  className: "rp-menu-item",
39
- content: _?.rotateCounterclockwiseTooltip,
40
40
  children: [/* @__PURE__ */ p("div", {
41
41
  className: "rp-menu-item-left",
42
42
  children: /* @__PURE__ */ p(g, {})
@@ -6,9 +6,9 @@ import { useToolbarComponentContext as a } from "../../../contexts/ToolbarCompon
6
6
  import { useToolComponentContext as o } from "../../../contexts/ToolComponentContext.js";
7
7
  import { useIconToolContext as s } from "../../../contexts/IconToolContext.js";
8
8
  import { useIconContext as c } from "../../../contexts/IconContext.js";
9
- import { t as l } from "../../../RPTooltip-CXBVXusS.js";
9
+ import { t as l } from "../../../RPTooltip-QWwWh4HW.js";
10
10
  import { n as u } from "../../../dist-VbpVNBs6.js";
11
- import { t as d } from "../../../MenuItem-9kCH_GQ0.js";
11
+ import { t as d } from "../../../MenuItem-lItnKNd5.js";
12
12
  import { CheckIcon as f } from "../../icons/CheckIcon.js";
13
13
  import { PageScrollingIcon as p } from "../../icons/PageScrollingIcon.js";
14
14
  import { VerticalScrollingIcon as m } from "../../icons/VerticalScrollingIcon.js";
@@ -26,13 +26,13 @@ var b = () => {
26
26
  let { horizontalScrollIcon: e } = c(), { horizontalScrollIcon: t } = s();
27
27
  return e || t || /* @__PURE__ */ v(h, {});
28
28
  }, C = () => {
29
- let { scrollModeTool: s = !0 } = a(), { scrollModeTool: c = !0 } = o(), { viewMode: p } = r(), { scrollMode: m, setScrollMode: h } = n(), { localeMessages: C } = i(), w = g(() => p === t.DUAL_PAGE || p === t.DUAL_PAGE_WITH_COVER, [p]);
29
+ let { scrollModeTool: s = !0 } = a(), { scrollModeTool: c = !0 } = o(), { viewMode: p } = r(), { scrollMode: m, setScrollMode: h } = n(), { localeMessages: C } = i(), w = C?.horizontalScrollingLabel || C?.horizontalLabel, T = C?.horizontalScrollingTooltip || C?.horizontalTooltip, E = g(() => p === t.DUAL_PAGE || p === t.DUAL_PAGE_WITH_COVER, [p]);
30
30
  return !s || !c ? null : /* @__PURE__ */ v(_, { children: /* @__PURE__ */ y(u, { children: [
31
- /* @__PURE__ */ v(d, {
32
- onClick: () => h(e.PAGE_SCROLLING),
33
- children: /* @__PURE__ */ y(l, {
31
+ /* @__PURE__ */ v(l, {
32
+ content: C?.pageScrollingTooltip,
33
+ children: /* @__PURE__ */ y(d, {
34
+ onClick: () => h(e.PAGE_SCROLLING),
34
35
  className: "rp-menu-item",
35
- content: C?.pageScrollingTooltip,
36
36
  children: [
37
37
  /* @__PURE__ */ v("div", {
38
38
  className: "rp-menu-item-left",
@@ -43,11 +43,11 @@ var b = () => {
43
43
  ]
44
44
  })
45
45
  }),
46
- /* @__PURE__ */ v(d, {
47
- onClick: () => h(e.VERTICAL_SCROLLING),
48
- children: /* @__PURE__ */ y(l, {
46
+ /* @__PURE__ */ v(l, {
47
+ content: C?.verticalScrollingTooltip,
48
+ children: /* @__PURE__ */ y(d, {
49
+ onClick: () => h(e.VERTICAL_SCROLLING),
49
50
  className: "rp-menu-item",
50
- content: C?.verticalScrollingTooltip,
51
51
  children: [
52
52
  /* @__PURE__ */ v("div", {
53
53
  className: "rp-menu-item-left",
@@ -58,18 +58,18 @@ var b = () => {
58
58
  ]
59
59
  })
60
60
  }),
61
- /* @__PURE__ */ v(d, {
62
- disabled: w,
63
- onClick: () => h(e.HORIZONTAL_SCROLLING),
64
- children: /* @__PURE__ */ y(l, {
61
+ /* @__PURE__ */ v(l, {
62
+ content: T,
63
+ children: /* @__PURE__ */ y(d, {
64
+ disabled: E,
65
+ onClick: () => h(e.HORIZONTAL_SCROLLING),
65
66
  className: "rp-menu-item",
66
- content: C?.horizontalTooltip,
67
67
  children: [
68
68
  /* @__PURE__ */ v("div", {
69
69
  className: "rp-menu-item-left",
70
70
  children: /* @__PURE__ */ v(S, {})
71
71
  }),
72
- C?.horizontalLabel,
72
+ w,
73
73
  m === e.HORIZONTAL_SCROLLING ? /* @__PURE__ */ v(f, { className: "rp-menu-item-right" }) : null
74
74
  ]
75
75
  })
@@ -1,8 +1,8 @@
1
1
  import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
2
2
  import { t } from "../../../Button-DBu3SaMk.js";
3
- import { t as n } from "../../../RPTooltip-CXBVXusS.js";
3
+ import { t as n } from "../../../RPTooltip-QWwWh4HW.js";
4
4
  import { CloseIcon as r } from "../../icons/CloseIcon.js";
5
- import { t as i } from "../../../SearchTool.module-DUkVXfOn.js";
5
+ import { t as i } from "../../../SearchTool.module-DY8Ucfb_.js";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
7
  //#region lib/components/layout/toolbar/SearchCloseButton.tsx
8
8
  var o = ({ onKeyPress: o, handleClose: s }) => {
@@ -2,8 +2,8 @@ import { useLocalizationContext as e } from "../../../contexts/LocalizationConte
2
2
  import { useSearchContext as t } from "../../../contexts/SearchContext.js";
3
3
  import { ChevronUpIcon as n } from "../../icons/ChevronUpIcon.js";
4
4
  import { t as r } from "../../../Button-DBu3SaMk.js";
5
- import { t as i } from "../../../RPTooltip-CXBVXusS.js";
6
- import { t as a } from "../../../SearchTool.module-DUkVXfOn.js";
5
+ import { t as i } from "../../../RPTooltip-QWwWh4HW.js";
6
+ import { t as a } from "../../../SearchTool.module-DY8Ucfb_.js";
7
7
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region lib/components/layout/toolbar/SearchResultNavigator.tsx
9
9
  var l = () => {