@pdf-viewer/react 1.17.0-rc.1 → 1.18.0-beta.0
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/LayoutWrapper-60db8675.js +20 -0
- package/dist/{ToolbarLayout.module-df04508a.js → ToolbarLayout.module-3f4e0f88.js} +544 -536
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +5 -5
- package/dist/components/RPController.js +19 -18
- package/dist/components/RPPages.js +7 -6
- package/dist/components/RPProvider.js +37 -26
- package/dist/components/layout/LayoutContainer.js +7 -6
- package/dist/components/layout/LayoutWrapper.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +7 -6
- package/dist/components/layout/RPLayout.js +21 -20
- package/dist/components/layout/SkipLink.js +6 -6
- package/dist/components/layout/sidebar/RPSidebar.js +7 -6
- package/dist/components/layout/sidebar/Thumbnail.js +7 -6
- package/dist/components/layout/sidebar/Thumbnails.js +7 -6
- package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +7 -6
- package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/FileDownloadTool.js +7 -6
- package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +3 -3
- package/dist/components/layout/toolbar/MenuSeparator.js +3 -3
- package/dist/components/layout/toolbar/MostPageTool.js +7 -6
- package/dist/components/layout/toolbar/OtherTool.js +7 -6
- package/dist/components/layout/toolbar/Paginate.js +7 -6
- package/dist/components/layout/toolbar/PrintTool.js +7 -6
- package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
- package/dist/components/layout/toolbar/RPMoreOptions.js +11 -10
- package/dist/components/layout/toolbar/RPToolbar.js +7 -6
- package/dist/components/layout/toolbar/RPToolbarEnd.js +7 -6
- package/dist/components/layout/toolbar/RotateTool.js +3 -3
- package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
- package/dist/components/layout/toolbar/SearchResultNavigator.js +7 -6
- package/dist/components/layout/toolbar/SearchTool.js +7 -6
- package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
- package/dist/components/layout/toolbar/ThumbnailTool.js +8 -7
- package/dist/components/layout/toolbar/ToolbarCustom.js +17 -16
- package/dist/components/layout/toolbar/ToolbarDefault.js +13 -12
- package/dist/components/layout/toolbar/ToolbarLayout.js +8 -7
- package/dist/components/layout/toolbar/ViewModeTool.js +3 -3
- package/dist/components/layout/toolbar/ZoomTool.js +7 -6
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +8 -7
- package/dist/components/layout/toolbar/tools/DualPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +8 -7
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +8 -7
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +148 -0
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/InputPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/LastPageTool.js +148 -0
- package/dist/components/layout/toolbar/tools/NextPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/PrintTool.js +8 -7
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +8 -7
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +7 -6
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +8 -7
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +8 -7
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +8 -7
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +8 -7
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +8 -7
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +16 -15
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +8 -7
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +3 -3
- package/dist/components/page/AnnotationLayer.js +7 -6
- package/dist/components/page/CanvasLayer.js +7 -6
- package/dist/components/page/DualPage.js +7 -6
- package/dist/components/page/DualPageWithCover.js +7 -6
- package/dist/components/page/RPPage.js +7 -6
- package/dist/components/page/SinglePage.js +7 -6
- package/dist/components/page/TextHighlightLayer.js +7 -6
- package/dist/components/page/TextLayer.js +7 -6
- package/dist/components/ui/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +3 -3
- package/dist/components/ui/LoadingIndicator.js +7 -6
- package/dist/components/ui/RPTooltip.js +118 -102
- package/dist/contexts/EventCallbackContext.js +12 -8
- package/dist/contexts/PaginationContext.js +9 -8
- package/dist/contexts/PrintContext.js +9 -8
- package/dist/contexts/RenderQueueProvider.js +9 -8
- package/dist/contexts/SearchContext.js +9 -8
- package/dist/contexts/ThumbnailsContext.js +9 -8
- package/dist/{floating-ui.react-dom-6b2fe0df.js → floating-ui.react-dom-d22a10b4.js} +3 -3
- package/dist/{index-f563c6f0.js → index-3bf64864.js} +97 -100
- package/dist/{index-35c7f4a2.js → index-c9a2990a.js} +3 -3
- package/dist/main.js +100 -95
- package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
- package/dist/types/main.d.ts +3 -1
- package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
- package/dist/types/utils/types.d.ts +25 -2
- package/dist/utils/hooks/useFileDownload.js +7 -6
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +7 -6
- package/dist/utils/hooks/usePresentPage.js +7 -6
- package/dist/utils/hooks/usePrint.js +7 -6
- package/dist/utils/hooks/useScrollToPage.js +7 -6
- package/dist/utils/hooks/useSearch.js +7 -6
- package/dist/utils/hooks/useTextSelection.js +76 -0
- package/dist/utils/hooks/useThumbnail.js +7 -6
- package/dist/utils/hooks/useVirtualReactWindow.js +7 -6
- package/dist/utils/types.js +5 -5
- package/package.json +1 -1
- package/dist/LayoutWrapper-0470458a.js +0 -20
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useCallback as p, useEffect as b } from "react";
|
|
2
|
+
const D = ({ onTextSelect: s, pagesRef: n }) => {
|
|
3
|
+
const f = p(() => {
|
|
4
|
+
const e = n == null ? void 0 : n.querySelectorAll('[data-rp$="-textLayer"]');
|
|
5
|
+
return e ? Array.from(e) : [];
|
|
6
|
+
}, [n]), N = p(() => {
|
|
7
|
+
const e = document.getSelection();
|
|
8
|
+
if (!e || e.rangeCount === 0 || e.toString().trim() === "")
|
|
9
|
+
return null;
|
|
10
|
+
const E = e.toString(), a = /* @__PURE__ */ new Map(), O = f();
|
|
11
|
+
for (let i = 0; i < e.rangeCount; i++) {
|
|
12
|
+
const t = e.getRangeAt(i);
|
|
13
|
+
O.forEach((d) => {
|
|
14
|
+
if (t.intersectsNode(d)) {
|
|
15
|
+
const g = d.getAttribute("data-rp"), T = g == null ? void 0 : g.match(/page-(\d+)-textLayer/);
|
|
16
|
+
if (T) {
|
|
17
|
+
const h = parseInt(T[1]), C = d.closest('[data-rp*="page-"]');
|
|
18
|
+
if (!C)
|
|
19
|
+
return;
|
|
20
|
+
const c = C.getBoundingClientRect();
|
|
21
|
+
a.has(h) || a.set(h, {
|
|
22
|
+
rects: [],
|
|
23
|
+
pageRect: c
|
|
24
|
+
});
|
|
25
|
+
const y = a.get(h), _ = document.createTreeWalker(d, NodeFilter.SHOW_TEXT, null);
|
|
26
|
+
let u;
|
|
27
|
+
for (; u = _.nextNode(); )
|
|
28
|
+
if (t.intersectsNode(u) && u.parentElement) {
|
|
29
|
+
const o = document.createRange();
|
|
30
|
+
o.selectNodeContents(u);
|
|
31
|
+
const A = t.compareBoundaryPoints(Range.START_TO_START, o) > 0 ? t.startContainer : o.startContainer, B = t.compareBoundaryPoints(Range.START_TO_START, o) > 0 ? t.startOffset : o.startOffset, R = t.compareBoundaryPoints(Range.END_TO_END, o) < 0 ? t.endContainer : o.endContainer, S = t.compareBoundaryPoints(Range.END_TO_END, o) < 0 ? t.endOffset : o.endOffset, m = document.createRange();
|
|
32
|
+
m.setStart(A, B), m.setEnd(R, S);
|
|
33
|
+
const r = m.getBoundingClientRect();
|
|
34
|
+
if (r.width === 0 || r.height === 0)
|
|
35
|
+
continue;
|
|
36
|
+
const P = {
|
|
37
|
+
left: r.left - c.left,
|
|
38
|
+
top: r.top - c.top,
|
|
39
|
+
right: r.right - c.left,
|
|
40
|
+
bottom: r.bottom - c.top,
|
|
41
|
+
width: r.width,
|
|
42
|
+
height: r.height
|
|
43
|
+
};
|
|
44
|
+
y.rects.push(P);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const w = Array.from(a.entries()).sort(([i], [t]) => i - t).map(([i, t]) => ({
|
|
51
|
+
pageNumber: i,
|
|
52
|
+
pageBasedBoundingRects: t.rects,
|
|
53
|
+
pageDimension: {
|
|
54
|
+
width: t.pageRect.width,
|
|
55
|
+
height: t.pageRect.height
|
|
56
|
+
},
|
|
57
|
+
pagePositionInWindow: {
|
|
58
|
+
x: t.pageRect.left,
|
|
59
|
+
y: t.pageRect.top
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
return {
|
|
63
|
+
text: E,
|
|
64
|
+
pageSelections: w
|
|
65
|
+
};
|
|
66
|
+
}, [f]), l = p(() => {
|
|
67
|
+
const e = N();
|
|
68
|
+
e && (s == null || s(e));
|
|
69
|
+
}, [N, s]);
|
|
70
|
+
b(() => (n == null || n.addEventListener("pointerup", l), () => {
|
|
71
|
+
n == null || n.removeEventListener("pointerup", l);
|
|
72
|
+
}), [n, l]);
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
D as useTextSelection
|
|
76
|
+
};
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "../../contexts/RPDocumentContext.js";
|
|
4
4
|
import "../../contexts/DocumentPasswordContext.js";
|
|
5
|
-
import { z as
|
|
5
|
+
import { z as Go } from "../../ToolbarLayout.module-3f4e0f88.js";
|
|
6
6
|
import "../../contexts/DarkModeContext.js";
|
|
7
7
|
import "../../contexts/RotationContext.js";
|
|
8
8
|
import "../../contexts/LayerContext.js";
|
|
@@ -40,7 +40,7 @@ import "../../contexts/ToolbarComponentContext.js";
|
|
|
40
40
|
import "../../RPSplitter-f6acf13b.js";
|
|
41
41
|
import "../../components/layout/WrapperLayout.js";
|
|
42
42
|
import "../../components/RPDropFileZone.js";
|
|
43
|
-
import "../../LayoutWrapper-
|
|
43
|
+
import "../../LayoutWrapper-60db8675.js";
|
|
44
44
|
import "../../components/layout/SkipLink.js";
|
|
45
45
|
import "../../components/ui/Button.js";
|
|
46
46
|
import "../../SearchCloseButton-08d57275.js";
|
|
@@ -91,14 +91,15 @@ import "./usePinch.js";
|
|
|
91
91
|
import "../../components/ui/PasswordModal.js";
|
|
92
92
|
import "./useLocalization.js";
|
|
93
93
|
import "./useCopyText.js";
|
|
94
|
+
import "./useTextSelection.js";
|
|
94
95
|
import "../getWordPositionInPage.js";
|
|
95
96
|
import "../smoothScrollTo.js";
|
|
96
97
|
import "../../components/layout/toolbar/FileUploadTool.js";
|
|
97
98
|
import "../../components/icons/FileUploadDefaultIcon.js";
|
|
98
|
-
import "../../index-
|
|
99
|
-
import "../../index-
|
|
99
|
+
import "../../index-3bf64864.js";
|
|
100
|
+
import "../../index-c9a2990a.js";
|
|
100
101
|
import "react-dom";
|
|
101
|
-
import "../../floating-ui.react-dom-
|
|
102
|
+
import "../../floating-ui.react-dom-d22a10b4.js";
|
|
102
103
|
import "../../components/layout/toolbar/DarkModeTool.js";
|
|
103
104
|
import "../../components/icons/MoonIcon.js";
|
|
104
105
|
import "../../components/icons/SunIcon.js";
|
|
@@ -137,5 +138,5 @@ import "./useHighlight.js";
|
|
|
137
138
|
import "../../components/icons/LightPdfIcon.js";
|
|
138
139
|
import "../../components/icons/DarkPdfIcon.js";
|
|
139
140
|
export {
|
|
140
|
-
|
|
141
|
+
Go as useThumbnail
|
|
141
142
|
};
|
|
@@ -4,7 +4,7 @@ import "../../contexts/ScrollModeContext.js";
|
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "../../contexts/RPDocumentContext.js";
|
|
6
6
|
import "../../contexts/DocumentPasswordContext.js";
|
|
7
|
-
import { M as
|
|
7
|
+
import { M as Dr } from "../../ToolbarLayout.module-3f4e0f88.js";
|
|
8
8
|
import "../../contexts/DarkModeContext.js";
|
|
9
9
|
import "../../contexts/RotationContext.js";
|
|
10
10
|
import "../../contexts/LayerContext.js";
|
|
@@ -41,7 +41,7 @@ import "../../contexts/ToolbarComponentContext.js";
|
|
|
41
41
|
import "../../RPSplitter-f6acf13b.js";
|
|
42
42
|
import "../../components/layout/WrapperLayout.js";
|
|
43
43
|
import "../../components/RPDropFileZone.js";
|
|
44
|
-
import "../../LayoutWrapper-
|
|
44
|
+
import "../../LayoutWrapper-60db8675.js";
|
|
45
45
|
import "../../components/layout/SkipLink.js";
|
|
46
46
|
import "../../components/ui/Button.js";
|
|
47
47
|
import "../../SearchCloseButton-08d57275.js";
|
|
@@ -91,14 +91,15 @@ import "./usePinch.js";
|
|
|
91
91
|
import "../../components/ui/PasswordModal.js";
|
|
92
92
|
import "./useLocalization.js";
|
|
93
93
|
import "./useCopyText.js";
|
|
94
|
+
import "./useTextSelection.js";
|
|
94
95
|
import "../getWordPositionInPage.js";
|
|
95
96
|
import "../smoothScrollTo.js";
|
|
96
97
|
import "../../components/layout/toolbar/FileUploadTool.js";
|
|
97
98
|
import "../../components/icons/FileUploadDefaultIcon.js";
|
|
98
|
-
import "../../index-
|
|
99
|
-
import "../../index-
|
|
99
|
+
import "../../index-3bf64864.js";
|
|
100
|
+
import "../../index-c9a2990a.js";
|
|
100
101
|
import "react-dom";
|
|
101
|
-
import "../../floating-ui.react-dom-
|
|
102
|
+
import "../../floating-ui.react-dom-d22a10b4.js";
|
|
102
103
|
import "../../components/layout/toolbar/DarkModeTool.js";
|
|
103
104
|
import "../../components/icons/MoonIcon.js";
|
|
104
105
|
import "../../components/icons/SunIcon.js";
|
|
@@ -137,5 +138,5 @@ import "./useHighlight.js";
|
|
|
137
138
|
import "../../components/icons/LightPdfIcon.js";
|
|
138
139
|
import "../../components/icons/DarkPdfIcon.js";
|
|
139
140
|
export {
|
|
140
|
-
|
|
141
|
+
Dr as useVirtualReactWindow
|
|
141
142
|
};
|
package/dist/utils/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e as r, z as _, i as R, p as o, t as p } from "../th_TH-d1686d95.js";
|
|
2
|
-
var D = /* @__PURE__ */ ((O) => (O[O.Text = 1] = "Text", O[O.Link = 2] = "Link", O[O.FreeText = 3] = "FreeText", O[O.Line = 4] = "Line", O[O.Square = 5] = "Square", O[O.Circle = 6] = "Circle", O[O.Polygon = 7] = "Polygon", O[O.Polyline = 8] = "Polyline", O[O.Highlight = 9] = "Highlight", O[O.Underline = 10] = "Underline", O[O.Squiggly = 11] = "Squiggly", O[O.StrikeOut = 12] = "StrikeOut", O[O.Stamp = 13] = "Stamp", O[O.Caret = 14] = "Caret", O[O.Ink = 15] = "Ink", O[O.Popup = 16] = "Popup", O[O.FileAttachment = 17] = "FileAttachment", O[O.Widget = 20] = "Widget", O))(D || {}),
|
|
2
|
+
var D = /* @__PURE__ */ ((O) => (O[O.Text = 1] = "Text", O[O.Link = 2] = "Link", O[O.FreeText = 3] = "FreeText", O[O.Line = 4] = "Line", O[O.Square = 5] = "Square", O[O.Circle = 6] = "Circle", O[O.Polygon = 7] = "Polygon", O[O.Polyline = 8] = "Polyline", O[O.Highlight = 9] = "Highlight", O[O.Underline = 10] = "Underline", O[O.Squiggly = 11] = "Squiggly", O[O.StrikeOut = 12] = "StrikeOut", O[O.Stamp = 13] = "Stamp", O[O.Caret = 14] = "Caret", O[O.Ink = 15] = "Ink", O[O.Popup = 16] = "Popup", O[O.FileAttachment = 17] = "FileAttachment", O[O.Widget = 20] = "Widget", O))(D || {}), I = /* @__PURE__ */ ((O) => (O.INTERNAL_LINK = "internal-link", O.LINK = "link", O.FILE_ATTACHMENT = "file-attachment", O.FORM_TEXT = "form-text", O.FORM_SELECT = "form-select", O.FORM_CHECKBOX = "form-checkbox", O.FORM_RADIO = "form-radio", O.FORM_BUTTON = "form-button", O.BUTTON = "button", O))(I || {}), N = /* @__PURE__ */ ((O) => (O.NOT_SUPPORTED = "not-supported", O))(N || {}), L = /* @__PURE__ */ ((O) => (O.ACTUAL = "Actual Size", O.PAGE_FIT = "Page Fit", O.PAGE_WIDTH = "Page Width", O))(L || {}), E = /* @__PURE__ */ ((O) => (O.Organization = "organization", O.Developer = "developer", O.FreeTrial = "free-trial", O))(E || {}), d = /* @__PURE__ */ ((O) => (O.SINGLE_PAGE = "Single", O.DUAL_PAGE = "Dual", O.DUAL_PAGE_WITH_COVER = "DualWithCover", O))(d || {}), C = /* @__PURE__ */ ((O) => (O.FONT_FAMILY = "--rp-font-family", O.PRIMARY_COLOR = "--rp-primary-color", O.BORDER_RADIUS = "--rp-border-radius", O.TEXT_COLOR = "--rp-text-color", O.OUTLINE_COLOR = "--rp-outline-color", O.FONT_SIZE = "--rp-font-size", O.DROP_MASK_BACKGROUND_COLOR = "--rp-drop-mask-background-color", O.LOADER_BACKDROP_COLOR = "--rp-loader-backdrop-color", O.ICON_DISABLED = "--rp-icon-disabled", O.ICON_FONT_SIZE = "--rp-icon-font-size", O.TOOLBAR_BACKGROUND = "--rp-toolbar-background", O.TOOLBAR_BORDER_COLOR = "--rp-toolbar-border-color", O.TOOLBAR_PADDING = "--rp-toolbar-padding", O.TOOLBAR_GAP = "--rp-toolbar-gap", O.TOOLBAR_SIZE = "--rp-toolbar-size", O.SIDEBAR_WIDTH = "--rp-sidebar-width", O.THUMBNAIL_BORDER_COLOR = "--rp-thumbnail-border-color", O.THUMBNAIL_BACKGROUND_COLOR = "--rp-thumbnail-background-color", O.THUMBNAIL_ACTIVE_COLOR = "--rp-thumbnail-active-color", O.THUMBNAIL_PADDING_Y = "--rp-thumbnail-padding-y", O.BUTTON_HOVER_BACKGROUND = "--rp-button-hover-background", O.BUTTON_PADDING = "--rp-button-padding", O.INPUT_PADDING = "--rp-input-padding", O.INPUT_BORDER_RADIUS = "--rp-input-border-radius", O.INPUT_BACKGROUND_COLOR = "--rp-input-background-color", O.INPUT_PLACEHOLDER_COLOR = "--rp-input-placeholder-color", O.PAGES_BACKGROUND_COLOR = "--rp-pages-background-color", O.ANNOTATION_LAYER_LINK_HOVER_BACKGROUND = "--rp-annotation-layer__link-hover-background", O.DROPDOWN_BACKGROUND_COLOR = "--rp-dropdown-background-color", O.DROPDOWN_PADDING = "--rp-dropdown-padding", O.DROPDOWN_HOVER_BACKGROUND_COLOR = "--rp-dropdown-hover-background-color", O.DROPDOWN_SEPARATOR_COLOR = "--rp-dropdown-separator-color", O.DROPDOWN_SEPARATOR_MARGIN = "--rp-dropdown-separator-margin", O.DROPDOWN_PADDING_MENU_ITEM = "--rp-dropdown-padding-menu-item", O.DROPDOWN_FONT_SIZE = "--rp-dropdown-font-size", O.DROPDOWN_BORDER_RADIUS = "--rp-dropdown-border-radius", O.SEARCH_TOOL_DROPDOWN_PADDING = "--rp-search-tool-dropdown-padding", O.POPOVER_FONT_SIZE = "--rp-popover-font-size", O.POPOVER_BACKGROUND_COLOR = "--rp-popover-background-color", O.POPOVER_COLOR = "--rp-popover-color", O.POPOVER_BORDER_COLOR = "--rp-popover-border-color", O.POPOVER_BORDER_RADIUS = "--rp-popover-border-radius", O.OVERLAY_BACKGROUND_COLOR = "--rp-overlay-background-color", O.DIALOG_BACKGROUND_COLOR = "--rp-dialog-background-color", O.PROPERTIES_DIVIDER_COLOR = "--rp-properties-divider-color", O.PROPERTIES_DIVIDER_MARGIN = "--rp-properties-divider-margin", O.PROPERTY_ITEM_GAP = "--rp-property-item-gap", O.DIALOG_TITLE_COLOR = "--rp-dialog-title-color", O.PROPERTY_ITEM_LABEL_COLOR = "--rp-property-item-label-color", O.PROPERTY_CLOSE_ICON_SIZE = "--rp-property-close-icon-size", O.PROPERTY_ITEM_FONT_SIZE = "--rp-property-item-font-size", O.PROPERTY_ITEM_FONT_WEIGHT = "--rp-property-item-font-weight", O.DIALOG_TITLE_FONT_SIZE = "--rp-dialog-title-font-size", O.DIALOG_TITLE_FONT_WEIGHT = "--rp-dialog-title-font-weight", O.MENU_ITEM_ICON_SIZE = "--rp-menu-item-icon-size", O.PRINT_PROGRESS_BACKGROUND = "--rp-print-progress-background", O.PRINT_PROGRESS_COLOR = "--rp-print-progress-color", O.DROP_ZONE_BORDER = "--rp-drop-zone-border", O.DROP_ZONE_FONT_COLOR = "--rp-drop-zone-font-color", O.DROP_ZONE_FONT_SIZE = "--rp-drop-zone-font-size", O.DROP_ZONE_BACKGROUND_COLOR = "--rp-drop-zone-background-color", O.CHECKBOX_BORDER_RADIUS = "--rp-checkbox-border-radius", O.CHECKBOX_BORDER_COLOR = "--rp-checkbox-border-color", O.CHECKBOX_INDICATOR_COLOR = "--rp-checkbox-indicator-color", O.HIGHLIGHT_BACKGROUND_COLOR = "--rp-highlight-background-color", O.TEXT_LAYER_HIGHLIGHT_BORDER_RADIUS = "--rp-text-layer-highlight-border-radius", O.CURRENT_HIGHLIGHT_BACKGROUND_COLOR = "--rp-current-highlight-background-color", O.TOOLTIP_BACKGROUND_COLOR = "--rp-tooltip-background-color", O.TOOLTIP_BORDER_RADIUS = "--rp-tooltip-border-radius", O.TOOLTIP_FONT_COLOR = "--rp-tooltip-font-color", O.TOOLTIP_FONT_SIZE = "--rp-tooltip-font-size", O.TOOLTIP_PADDING = "--rp-tooltip-padding", O.PASSWORD_MODAL_BACKGROUND_COLOR = "--rp-password-background-color", O.PASSWORD_MODAL_TITLE_FONT_COLOR = "--rp-password-title-font-color", O.PASSWORD_MODAL_CONTENT_FONT_COLOR = "--rp-password-content-font-color", O.PASSWORD_MODAL_INPUT_PLACEHOLDER_COLOR = "--rp-password-input-placeholder-color", O.PASSWORD_MODAL_INPUT_BORDER_COLOR = "--rp-password-input-border-color", O.PASSWORD_MODAL_INPUT_FONT_COLOR = "--rp-password-input-font-color", O.PASSWORD_MODAL_BUTTON_FONT_COLOR = "--rp-password-button-font-color", O.PASSWORD_MODAL_BUTTON_BACKGROUND_COLOR = "--rp-password-button-background-color", O.PASSWORD_MODAL_BUTTON_BORDER_COLOR = "--rp-password-button-border-color", O.PASSWORD_MODAL_BORDER_COLOR = "--rp-password-border-color", O.CONTAINER_FOCUS_OUTLINE_WIDTH = "--rp-container-focus-outline-width", O.CONTAINER_FOCUS_OUTLINE_COLOR = "--rp-container-focus-outline-color", O.CONTAINER_FOCUS_OUTLINE_OFFSET = "--rp-container-focus-outline-offset", O.BUTTON_BORDER_RADIUS = "--rp-button-border-radius", O.SKIP_LINK_FONT_SIZE = "--rp-skip-link-font-size", O.SKIP_LINK_COLOR = "--rp-skip-link-color", O.SKIP_LINK_BACKGROUND_COLOR = "--rp-skip-link-background-color", O.SKIP_LINK_BORDER_COLOR = "--rp-skip-link-border-color", O))(C || {}), P = /* @__PURE__ */ ((O) => (O.PAGE_SCROLLING = "PAGE", O.VERTICAL_SCROLLING = "VERTICAL", O.HORIZONTAL_SCROLLING = "HORIZONTAL", O))(P || {}), c = /* @__PURE__ */ ((O) => (O.TEXT = "TEXT", O.HAND = "HAND", O))(c || {});
|
|
3
3
|
const A = {
|
|
4
4
|
en_US: r,
|
|
5
5
|
zh_CN: _,
|
|
@@ -9,13 +9,13 @@ const A = {
|
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
D as AnnotationSubType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
I as AnnotationType,
|
|
13
|
+
N as ErrorType,
|
|
14
|
+
E as LicenseType,
|
|
15
15
|
A as Locales,
|
|
16
16
|
P as ScrollMode,
|
|
17
17
|
c as SelectionMode,
|
|
18
18
|
C as ThemeVariables,
|
|
19
19
|
d as ViewMode,
|
|
20
|
-
|
|
20
|
+
L as ZoomLevel
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import { withRef as t } from "./utils/withRef.js";
|
|
3
|
-
const n = {
|
|
4
|
-
"rp-layout": "_rp-layout_1n5u7_1",
|
|
5
|
-
"rp-layout-wrapper": "_rp-layout-wrapper_1n5u7_5",
|
|
6
|
-
"rp-content": "_rp-content_1n5u7_11",
|
|
7
|
-
"rp-sidebar": "_rp-sidebar_1n5u7_18",
|
|
8
|
-
"rp-pages": "_rp-pages_1n5u7_23",
|
|
9
|
-
"rp-container": "_rp-container_1n5u7_29",
|
|
10
|
-
"rp-loader": "_rp-loader_1n5u7_33",
|
|
11
|
-
"rp-theme-variables": "_rp-theme-variables_1n5u7_37",
|
|
12
|
-
"rp-dark-mode": "_rp-dark-mode_1n5u7_148"
|
|
13
|
-
}, u = t((r, p) => {
|
|
14
|
-
const { children: a, ...e } = r;
|
|
15
|
-
return /* @__PURE__ */ _("div", { ref: p, className: n["rp-layout-wrapper"], ...e, children: a });
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
u as L,
|
|
19
|
-
n as c
|
|
20
|
-
};
|