@pdf-viewer/react 1.9.0-beta.4 → 1.9.0-beta.5
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/Checkbox.module-3edaacbb.js +7 -0
- package/dist/Combination-da8647d4.js +693 -0
- package/dist/Container.module-f8b5c306.js +6 -0
- package/dist/DropDown.module-a78567cb.js +11 -0
- package/dist/MenuItem.module-bc11d0d3.js +6 -0
- package/dist/MenuSeparator.module-89b2ff7f.js +6 -0
- package/dist/PropertyItem.module-db0150cc.js +8 -0
- package/dist/RPSplitter.module-13d612c4.js +7 -0
- package/dist/RPTheme.module-bd9038da.js +8 -0
- package/dist/RotateTool.module-03987eba.js +6 -0
- package/dist/SearchTool.module-016f3a8d.js +16 -0
- package/dist/ToolbarLayout.module-60c3d6e8.js +2434 -0
- package/dist/WrapperLayout.module-147bc943.js +6 -0
- package/dist/assets/ToolbarLayout.css +1 -0
- package/dist/components/RPConfig.js +673 -691
- package/dist/components/RPController.js +9 -9
- package/dist/components/RPDropFileZone.js +21 -23
- package/dist/components/RPPages.js +21 -18
- package/dist/components/RPProvider.js +19 -15
- package/dist/components/layout/Container.js +10 -11
- package/dist/components/layout/LayoutContainer.js +19 -16
- package/dist/components/layout/RPDefaultLayout.js +76 -14
- package/dist/components/layout/RPLayout.js +74 -24
- package/dist/components/layout/WrapperLayout.js +7 -8
- package/dist/components/layout/sidebar/RPSidebar.js +51 -12
- package/dist/components/layout/sidebar/RPSplitter.js +7 -9
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +307 -24
- package/dist/components/layout/toolbar/FileDownloadTool.js +23 -13
- package/dist/components/layout/toolbar/MenuItem.js +6 -7
- package/dist/components/layout/toolbar/MenuSeparator.js +4 -5
- package/dist/components/layout/toolbar/MostPageTool.js +50 -23
- package/dist/components/layout/toolbar/OtherTool.js +115 -22
- package/dist/components/layout/toolbar/Paginate.js +99 -17
- package/dist/components/layout/toolbar/PrintTool.js +43 -13
- package/dist/components/layout/toolbar/PropertyItem.js +5 -8
- package/dist/components/layout/toolbar/RPToolbar.js +28 -7
- package/dist/components/layout/toolbar/RPToolbarEnd.js +22 -7
- package/dist/components/layout/toolbar/RotateTool.js +20 -21
- package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
- package/dist/components/layout/toolbar/SearchCloseButton.js +19 -7
- package/dist/components/layout/toolbar/SearchResultNavigator.js +42 -8
- package/dist/components/layout/toolbar/SearchTool.js +198 -29
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +4 -4
- package/dist/components/layout/toolbar/ToolbarCustom.js +48 -20
- package/dist/components/layout/toolbar/ToolbarDefault.js +82 -0
- package/dist/components/layout/toolbar/ToolbarLayout.js +10 -0
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +140 -28
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +3 -3
- package/dist/components/layout/toolbar/tools/InputPageTool.js +7 -7
- package/dist/components/layout/toolbar/tools/NextPageTool.js +21 -18
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +14 -14
- package/dist/components/layout/toolbar/tools/defaults/{TopbarDefaultTools.js → RPHorizontalBar.js} +29 -20
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +16 -0
- package/dist/components/page/AnnotationLayer.js +20 -17
- package/dist/components/page/CanvasLayer.js +20 -17
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +20 -17
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +20 -17
- package/dist/components/page/TextLayer.js +20 -17
- package/dist/components/ui/Checkbox.js +125 -239
- package/dist/components/ui/DropDown.js +13 -19
- package/dist/components/ui/LoadingIndicator.js +22 -5
- package/dist/components/ui/RPTooltip.js +424 -211
- package/dist/contexts/PaginationContext.js +4 -4
- package/dist/contexts/PrintContext.js +2 -2
- package/dist/contexts/SearchContext.js +3 -3
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/contexts/ViewportContext.js +42 -35
- package/dist/floating-ui.react-dom-f3f380e0.js +1447 -0
- package/dist/index-473557b1.js +1191 -0
- package/dist/index-8547fbc6.js +307 -0
- package/dist/main.js +76 -73
- package/dist/types/components/layout/RPDefaultLayout.d.ts +2 -1
- package/dist/types/components/layout/RPLayout.d.ts +2 -1
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +2 -3
- package/dist/types/components/layout/toolbar/ToolbarCustom.d.ts +2 -2
- package/dist/types/components/layout/toolbar/ToolbarDefault.d.ts +4 -0
- package/dist/types/components/layout/toolbar/ToolbarLayout.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPHorizontalBar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPVerticalBar.d.ts +3 -0
- package/dist/types/main.d.ts +3 -3
- package/dist/types/utils/types.d.ts +17 -17
- package/dist/utils/hooks/useFileDownload.js +20 -17
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +20 -17
- package/dist/utils/hooks/usePresentPage.js +20 -17
- package/dist/utils/hooks/usePrint.js +20 -17
- package/dist/utils/hooks/useScrollToPage.js +20 -17
- package/dist/utils/hooks/useSearch.js +20 -17
- package/dist/utils/hooks/useThumbnail.js +20 -17
- package/dist/utils/hooks/useVirtualReactWindow.js +20 -17
- package/package.json +1 -1
- package/dist/RPLayout-5892502c.js +0 -3494
- package/dist/SearchCloseButton-cbf182aa.js +0 -33
- package/dist/assets/RPLayout.css +0 -1
- package/dist/components/layout/toolbar/tools/defaults/LeftSidebarDefaultTools.js +0 -16
- package/dist/index-00f8683a.js +0 -1672
- package/dist/index-5f66a29f.js +0 -1681
- package/dist/index-6b37f504.js +0 -332
- package/dist/types/components/layout/toolbar/tools/defaults/LeftSidebarDefaultTools.d.ts +0 -3
- package/dist/types/components/layout/toolbar/tools/defaults/TopbarDefaultTools.d.ts +0 -3
- /package/dist/assets/{RPDropFileZone.css → RPTheme.css} +0 -0
- /package/dist/assets/{SearchCloseButton.css → SearchTool.css} +0 -0
|
@@ -1,264 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as S, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { c as j, u as A, e as B, P as w, a as g, b as H, f as K } from "../../index-8547fbc6.js";
|
|
4
|
+
import { c as R } from "../../Checkbox.module-3edaacbb.js";
|
|
5
|
+
import { CheckIcon as L } from "../icons/CheckIcon.js";
|
|
6
|
+
function q(e) {
|
|
7
|
+
const r = n.useRef({ value: e, previous: e });
|
|
8
|
+
return n.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
8
9
|
}
|
|
9
|
-
var
|
|
10
|
-
function Y(e) {
|
|
11
|
-
const {
|
|
12
|
-
__scopeCheckbox: r,
|
|
13
|
-
checked: o,
|
|
14
|
-
children: d,
|
|
15
|
-
defaultChecked: n,
|
|
16
|
-
disabled: t,
|
|
17
|
-
form: h,
|
|
18
|
-
name: f,
|
|
19
|
-
onCheckedChange: u,
|
|
20
|
-
required: k,
|
|
21
|
-
value: C = "on",
|
|
22
|
-
// @ts-expect-error
|
|
23
|
-
internal_do_not_use_render: l
|
|
24
|
-
} = e, [p, v] = X({
|
|
25
|
-
prop: o,
|
|
26
|
-
defaultProp: n ?? !1,
|
|
27
|
-
onChange: u,
|
|
28
|
-
caller: g
|
|
29
|
-
}), [m, x] = s.useState(null), [_, c] = s.useState(null), a = s.useRef(!1), I = m ? !!h || !!m.closest("form") : (
|
|
30
|
-
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
31
|
-
!0
|
|
32
|
-
), R = {
|
|
33
|
-
checked: p,
|
|
34
|
-
disabled: t,
|
|
35
|
-
setChecked: v,
|
|
36
|
-
control: m,
|
|
37
|
-
setControl: x,
|
|
38
|
-
name: f,
|
|
39
|
-
form: h,
|
|
40
|
-
value: C,
|
|
41
|
-
hasConsumerStoppedPropagationRef: a,
|
|
42
|
-
required: k,
|
|
43
|
-
defaultChecked: b(n) ? !1 : n,
|
|
44
|
-
isFormControl: I,
|
|
45
|
-
bubbleInput: _,
|
|
46
|
-
setBubbleInput: c
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ i(
|
|
49
|
-
W,
|
|
50
|
-
{
|
|
51
|
-
scope: r,
|
|
52
|
-
...R,
|
|
53
|
-
children: Z(l) ? l(R) : d
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
var M = "CheckboxTrigger", T = s.forwardRef(
|
|
58
|
-
({ __scopeCheckbox: e, onKeyDown: r, onClick: o, ...d }, n) => {
|
|
59
|
-
const {
|
|
60
|
-
control: t,
|
|
61
|
-
value: h,
|
|
62
|
-
disabled: f,
|
|
63
|
-
checked: u,
|
|
64
|
-
required: k,
|
|
65
|
-
setControl: C,
|
|
66
|
-
setChecked: l,
|
|
67
|
-
hasConsumerStoppedPropagationRef: p,
|
|
68
|
-
isFormControl: v,
|
|
69
|
-
bubbleInput: m
|
|
70
|
-
} = P(M, e), x = B(n, C), _ = s.useRef(u);
|
|
71
|
-
return s.useEffect(() => {
|
|
72
|
-
const c = t == null ? void 0 : t.form;
|
|
73
|
-
if (c) {
|
|
74
|
-
const a = () => l(_.current);
|
|
75
|
-
return c.addEventListener("reset", a), () => c.removeEventListener("reset", a);
|
|
76
|
-
}
|
|
77
|
-
}, [t, l]), /* @__PURE__ */ i(
|
|
78
|
-
E.button,
|
|
79
|
-
{
|
|
80
|
-
type: "button",
|
|
81
|
-
role: "checkbox",
|
|
82
|
-
"aria-checked": b(u) ? "mixed" : u,
|
|
83
|
-
"aria-required": k,
|
|
84
|
-
"data-state": O(u),
|
|
85
|
-
"data-disabled": f ? "" : void 0,
|
|
86
|
-
disabled: f,
|
|
87
|
-
value: h,
|
|
88
|
-
...d,
|
|
89
|
-
ref: x,
|
|
90
|
-
onKeyDown: S(r, (c) => {
|
|
91
|
-
c.key === "Enter" && c.preventDefault();
|
|
92
|
-
}),
|
|
93
|
-
onClick: S(o, (c) => {
|
|
94
|
-
l((a) => b(a) ? !0 : !a), m && v && (p.current = c.isPropagationStopped(), p.current || c.stopPropagation());
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
T.displayName = M;
|
|
101
|
-
var q = s.forwardRef(
|
|
10
|
+
var E = "Checkbox", [z, Y] = j(E), [F, T] = z(E), N = n.forwardRef(
|
|
102
11
|
(e, r) => {
|
|
103
12
|
const {
|
|
104
|
-
__scopeCheckbox:
|
|
105
|
-
name:
|
|
106
|
-
checked:
|
|
107
|
-
defaultChecked:
|
|
13
|
+
__scopeCheckbox: t,
|
|
14
|
+
name: a,
|
|
15
|
+
checked: u,
|
|
16
|
+
defaultChecked: c,
|
|
108
17
|
required: h,
|
|
109
|
-
disabled:
|
|
110
|
-
value:
|
|
111
|
-
onCheckedChange:
|
|
112
|
-
form:
|
|
113
|
-
...
|
|
114
|
-
} = e
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
name: d,
|
|
125
|
-
form: C,
|
|
126
|
-
value: u,
|
|
127
|
-
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ w(U, { children: [
|
|
128
|
-
/* @__PURE__ */ i(
|
|
129
|
-
T,
|
|
130
|
-
{
|
|
131
|
-
...l,
|
|
132
|
-
ref: r,
|
|
133
|
-
__scopeCheckbox: o
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
p && /* @__PURE__ */ i(
|
|
137
|
-
L,
|
|
138
|
-
{
|
|
139
|
-
__scopeCheckbox: o
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] })
|
|
18
|
+
disabled: l,
|
|
19
|
+
value: b = "on",
|
|
20
|
+
onCheckedChange: C,
|
|
21
|
+
form: f,
|
|
22
|
+
...v
|
|
23
|
+
} = e, [i, m] = n.useState(null), x = A(r, (o) => m(o)), y = n.useRef(!1), I = i ? f || !!i.closest("form") : !0, [p = !1, P] = B({
|
|
24
|
+
prop: u,
|
|
25
|
+
defaultProp: c,
|
|
26
|
+
onChange: C
|
|
27
|
+
}), O = n.useRef(p);
|
|
28
|
+
return n.useEffect(() => {
|
|
29
|
+
const o = i == null ? void 0 : i.form;
|
|
30
|
+
if (o) {
|
|
31
|
+
const k = () => P(O.current);
|
|
32
|
+
return o.addEventListener("reset", k), () => o.removeEventListener("reset", k);
|
|
143
33
|
}
|
|
144
|
-
)
|
|
34
|
+
}, [i, P]), /* @__PURE__ */ S(F, { scope: t, state: p, disabled: l, children: [
|
|
35
|
+
/* @__PURE__ */ s(
|
|
36
|
+
w.button,
|
|
37
|
+
{
|
|
38
|
+
type: "button",
|
|
39
|
+
role: "checkbox",
|
|
40
|
+
"aria-checked": d(p) ? "mixed" : p,
|
|
41
|
+
"aria-required": h,
|
|
42
|
+
"data-state": M(p),
|
|
43
|
+
"data-disabled": l ? "" : void 0,
|
|
44
|
+
disabled: l,
|
|
45
|
+
value: b,
|
|
46
|
+
...v,
|
|
47
|
+
ref: x,
|
|
48
|
+
onKeyDown: g(e.onKeyDown, (o) => {
|
|
49
|
+
o.key === "Enter" && o.preventDefault();
|
|
50
|
+
}),
|
|
51
|
+
onClick: g(e.onClick, (o) => {
|
|
52
|
+
P((k) => d(k) ? !0 : !k), I && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
I && /* @__PURE__ */ s(
|
|
57
|
+
X,
|
|
58
|
+
{
|
|
59
|
+
control: i,
|
|
60
|
+
bubbles: !y.current,
|
|
61
|
+
name: a,
|
|
62
|
+
value: b,
|
|
63
|
+
checked: p,
|
|
64
|
+
required: h,
|
|
65
|
+
disabled: l,
|
|
66
|
+
form: f,
|
|
67
|
+
style: { transform: "translateX(-100%)" },
|
|
68
|
+
defaultChecked: d(c) ? !1 : c
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
145
72
|
}
|
|
146
73
|
);
|
|
147
|
-
|
|
148
|
-
var
|
|
74
|
+
N.displayName = E;
|
|
75
|
+
var _ = "CheckboxIndicator", D = n.forwardRef(
|
|
149
76
|
(e, r) => {
|
|
150
|
-
const { __scopeCheckbox:
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
-
|
|
77
|
+
const { __scopeCheckbox: t, forceMount: a, ...u } = e, c = T(_, t);
|
|
78
|
+
return /* @__PURE__ */ s(H, { present: a || d(c.state) || c.state === !0, children: /* @__PURE__ */ s(
|
|
79
|
+
w.span,
|
|
153
80
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"data-disabled": t.disabled ? "" : void 0,
|
|
160
|
-
...n,
|
|
161
|
-
ref: r,
|
|
162
|
-
style: { pointerEvents: "none", ...e.style }
|
|
163
|
-
}
|
|
164
|
-
)
|
|
81
|
+
"data-state": M(c.state),
|
|
82
|
+
"data-disabled": c.disabled ? "" : void 0,
|
|
83
|
+
...u,
|
|
84
|
+
ref: r,
|
|
85
|
+
style: { pointerEvents: "none", ...e.style }
|
|
165
86
|
}
|
|
166
|
-
);
|
|
87
|
+
) });
|
|
167
88
|
}
|
|
168
89
|
);
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
}, [p, x, t, n]);
|
|
198
|
-
const c = s.useRef(b(t) ? !1 : t);
|
|
199
|
-
return /* @__PURE__ */ i(
|
|
200
|
-
E.input,
|
|
201
|
-
{
|
|
202
|
-
type: "checkbox",
|
|
203
|
-
"aria-hidden": !0,
|
|
204
|
-
defaultChecked: h ?? c.current,
|
|
205
|
-
required: f,
|
|
206
|
-
disabled: u,
|
|
207
|
-
name: k,
|
|
208
|
-
value: C,
|
|
209
|
-
form: l,
|
|
210
|
-
...r,
|
|
211
|
-
tabIndex: -1,
|
|
212
|
-
ref: m,
|
|
213
|
-
style: {
|
|
214
|
-
...r.style,
|
|
215
|
-
..._,
|
|
216
|
-
position: "absolute",
|
|
217
|
-
pointerEvents: "none",
|
|
218
|
-
opacity: 0,
|
|
219
|
-
margin: 0,
|
|
220
|
-
// We transform because the input is absolutely positioned but we have
|
|
221
|
-
// rendered it **after** the button. This pulls it back to sit on top
|
|
222
|
-
// of the button.
|
|
223
|
-
transform: "translateX(-100%)"
|
|
224
|
-
}
|
|
90
|
+
D.displayName = _;
|
|
91
|
+
var X = (e) => {
|
|
92
|
+
const { control: r, checked: t, bubbles: a = !0, defaultChecked: u, ...c } = e, h = n.useRef(null), l = q(t), b = K(r);
|
|
93
|
+
n.useEffect(() => {
|
|
94
|
+
const f = h.current, v = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(v, "checked").set;
|
|
95
|
+
if (l !== t && m) {
|
|
96
|
+
const x = new Event("click", { bubbles: a });
|
|
97
|
+
f.indeterminate = d(t), m.call(f, d(t) ? !1 : t), f.dispatchEvent(x);
|
|
98
|
+
}
|
|
99
|
+
}, [l, t, a]);
|
|
100
|
+
const C = n.useRef(d(t) ? !1 : t);
|
|
101
|
+
return /* @__PURE__ */ s(
|
|
102
|
+
"input",
|
|
103
|
+
{
|
|
104
|
+
type: "checkbox",
|
|
105
|
+
"aria-hidden": !0,
|
|
106
|
+
defaultChecked: u ?? C.current,
|
|
107
|
+
...c,
|
|
108
|
+
tabIndex: -1,
|
|
109
|
+
ref: h,
|
|
110
|
+
style: {
|
|
111
|
+
...e.style,
|
|
112
|
+
...b,
|
|
113
|
+
position: "absolute",
|
|
114
|
+
pointerEvents: "none",
|
|
115
|
+
opacity: 0,
|
|
116
|
+
margin: 0
|
|
225
117
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
function Z(e) {
|
|
231
|
-
return typeof e == "function";
|
|
232
|
-
}
|
|
233
|
-
function b(e) {
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
function d(e) {
|
|
234
122
|
return e === "indeterminate";
|
|
235
123
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
124
|
+
function M(e) {
|
|
125
|
+
return d(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
238
126
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"rp-checkbox-indicator": "_rp-checkbox-indicator_1vwg8_25"
|
|
242
|
-
}, oe = ({
|
|
127
|
+
var U = N, G = D;
|
|
128
|
+
const Z = ({
|
|
243
129
|
children: e,
|
|
244
130
|
value: r,
|
|
245
|
-
name:
|
|
246
|
-
onChange:
|
|
247
|
-
tabIndex:
|
|
248
|
-
}) => /* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
|
|
131
|
+
name: t,
|
|
132
|
+
onChange: a,
|
|
133
|
+
tabIndex: u
|
|
134
|
+
}) => /* @__PURE__ */ S("div", { style: { display: "flex", alignItems: "center", position: "relative" }, children: [
|
|
135
|
+
/* @__PURE__ */ s(
|
|
136
|
+
U,
|
|
251
137
|
{
|
|
252
|
-
tabIndex:
|
|
253
|
-
className:
|
|
138
|
+
tabIndex: u,
|
|
139
|
+
className: R["rp-checkbox"],
|
|
254
140
|
checked: r,
|
|
255
|
-
id:
|
|
256
|
-
onCheckedChange:
|
|
257
|
-
children: /* @__PURE__ */
|
|
141
|
+
id: t,
|
|
142
|
+
onCheckedChange: a,
|
|
143
|
+
children: /* @__PURE__ */ s(G, { className: R["rp-checkbox-indicator"], children: /* @__PURE__ */ s(L, {}) })
|
|
258
144
|
}
|
|
259
145
|
),
|
|
260
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ s("label", { className: R["rp-checkbox-label"], htmlFor: t, children: e })
|
|
261
147
|
] });
|
|
262
148
|
export {
|
|
263
|
-
|
|
149
|
+
Z as UICheckbox
|
|
264
150
|
};
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { R as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, z = (e) => {
|
|
12
|
-
const { triggerComponent: n, children: o, container: s, className: r, open: t, onOpenChange: a, ...i } = e;
|
|
13
|
-
return /* @__PURE__ */ l(p, { modal: !1, open: t, onOpenChange: a, children: [
|
|
14
|
-
/* @__PURE__ */ d(c, { asChild: !0, children: n }),
|
|
15
|
-
/* @__PURE__ */ d(_, { container: s, children: /* @__PURE__ */ d(
|
|
16
|
-
A,
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { R as m, T as p, P as d, C as f } from "../../index-473557b1.js";
|
|
3
|
+
import { c as g } from "../../DropDown.module-a78567cb.js";
|
|
4
|
+
import { c as h } from "../../clsx-0c6e471a.js";
|
|
5
|
+
const u = (r) => {
|
|
6
|
+
const { triggerComponent: n, children: e, container: s, className: t, open: a, onOpenChange: c, ...i } = r;
|
|
7
|
+
return /* @__PURE__ */ l(m, { modal: !1, open: a, onOpenChange: c, children: [
|
|
8
|
+
/* @__PURE__ */ o(p, { asChild: !0, children: n }),
|
|
9
|
+
/* @__PURE__ */ o(d, { container: s, children: /* @__PURE__ */ o(
|
|
10
|
+
f,
|
|
17
11
|
{
|
|
18
12
|
sideOffset: 8,
|
|
19
13
|
align: "end",
|
|
20
14
|
...i,
|
|
21
|
-
className:
|
|
22
|
-
children:
|
|
15
|
+
className: h(g["rp-dropdown-content"], t),
|
|
16
|
+
children: e
|
|
23
17
|
}
|
|
24
18
|
) })
|
|
25
19
|
] });
|
|
26
20
|
};
|
|
27
21
|
export {
|
|
28
|
-
|
|
22
|
+
u as UIDropDown
|
|
29
23
|
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "../../clsx-0c6e471a.js";
|
|
4
|
-
import "../../contexts/LocalizationContext.js";
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { b as s, l as i } from "../../ToolbarLayout.module-60c3d6e8.js";
|
|
3
|
+
import { c as n } from "../../clsx-0c6e471a.js";
|
|
4
|
+
import { useLocalizationContext as d } from "../../contexts/LocalizationContext.js";
|
|
5
|
+
const u = ({ percentage: o }) => {
|
|
6
|
+
const { cancel: t } = s(), { localeMessages: r } = d();
|
|
7
|
+
return o < 1 ? null : /* @__PURE__ */ a("div", { className: n(i["rp-loading-overlay"]), children: /* @__PURE__ */ l("div", { className: n(i["rp-loading-modal"]), children: [
|
|
8
|
+
/* @__PURE__ */ l("div", { className: n(i["rp-loading-title"]), children: [
|
|
9
|
+
r == null ? void 0 : r.printLoadingMessage,
|
|
10
|
+
"..."
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ a("div", { className: n(i["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: n(i["rp-loading-progress"]),
|
|
16
|
+
style: { width: `${o}%` }
|
|
17
|
+
}
|
|
18
|
+
) }),
|
|
19
|
+
/* @__PURE__ */ a("button", { className: n(i["rp-loading-cancel-button"]), onClick: t, children: r == null ? void 0 : r.printCancelLabel })
|
|
20
|
+
] }) });
|
|
21
|
+
};
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
u as default
|
|
7
24
|
};
|