@papyrus-sdk/ui-react 0.2.8 → 0.2.9
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/base.css +24 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +651 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +652 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/base.css
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--papyrus-hover: #e5e7eb;
|
|
13
13
|
--papyrus-popover: #ffffff;
|
|
14
14
|
--papyrus-shadow: rgba(15, 23, 42, 0.08);
|
|
15
|
+
--papyrus-selection-bg: rgba(30, 64, 175, 0.5);
|
|
15
16
|
color: var(--papyrus-text);
|
|
16
17
|
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
17
18
|
}
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
--papyrus-hover: rgba(255, 255, 255, 0.08);
|
|
31
32
|
--papyrus-popover: #1f1f1f;
|
|
32
33
|
--papyrus-shadow: rgba(0, 0, 0, 0.4);
|
|
34
|
+
--papyrus-selection-bg: rgba(96, 165, 250, 0.5);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.papyrus-topbar,
|
|
@@ -93,6 +95,12 @@
|
|
|
93
95
|
transition: background 0.15s ease, border-color 0.15s ease;
|
|
94
96
|
}
|
|
95
97
|
|
|
98
|
+
.papyrus-unstyled-button {
|
|
99
|
+
background: transparent !important;
|
|
100
|
+
border: 0 !important;
|
|
101
|
+
padding: 0 !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
96
104
|
.papyrus-topbar input,
|
|
97
105
|
.papyrus-sidebar-left input,
|
|
98
106
|
.papyrus-sidebar-right input,
|
|
@@ -141,3 +149,19 @@
|
|
|
141
149
|
display: flex;
|
|
142
150
|
justify-content: center;
|
|
143
151
|
}
|
|
152
|
+
|
|
153
|
+
.papyrus-viewer .textLayer ::selection {
|
|
154
|
+
background: var(--papyrus-selection-bg);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.papyrus-viewer .textLayer {
|
|
158
|
+
opacity: 1 !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.papyrus-viewer .textLayer mark.papyrus-search-hit {
|
|
162
|
+
background: rgba(250, 204, 21, 0.55);
|
|
163
|
+
box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.35);
|
|
164
|
+
border-radius: 2px;
|
|
165
|
+
color: transparent;
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,10 @@ interface PageRendererProps {
|
|
|
35
35
|
engine: DocumentEngine;
|
|
36
36
|
pageIndex: number;
|
|
37
37
|
availableWidth?: number;
|
|
38
|
+
onMeasuredSize?: (pageIndex: number, size: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}) => void;
|
|
38
42
|
}
|
|
39
43
|
declare const PageRenderer: React.FC<PageRendererProps>;
|
|
40
44
|
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,10 @@ interface PageRendererProps {
|
|
|
35
35
|
engine: DocumentEngine;
|
|
36
36
|
pageIndex: number;
|
|
37
37
|
availableWidth?: number;
|
|
38
|
+
onMeasuredSize?: (pageIndex: number, size: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}) => void;
|
|
38
42
|
}
|
|
39
43
|
declare const PageRenderer: React.FC<PageRendererProps>;
|
|
40
44
|
|