@pdf-viewer/react 1.1.0 → 1.1.1-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/Container-44b8ad45.js +38 -0
- package/dist/RPDefaultLayout-79c7577a.js +2907 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/RPDefaultLayout.css +1 -1
- package/dist/components/RPConfig.js +344 -322
- package/dist/components/RPController.js +38 -35
- package/dist/components/RPDropFileZone.js +23 -22
- package/dist/components/RPPages.js +3 -2
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/Container.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +2 -2
- package/dist/components/layout/sidebar/RPSidebar.js +3 -2
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DarkModeTool.js +22 -21
- package/dist/components/layout/toolbar/DocumentDialog.js +3 -2
- package/dist/components/layout/toolbar/DocumentProperties.js +15 -14
- package/dist/components/layout/toolbar/FileDownloadTool.js +3 -2
- package/dist/components/layout/toolbar/FileUploadTool.js +20 -22
- package/dist/components/layout/toolbar/FullScreenTool.js +40 -34
- package/dist/components/layout/toolbar/MenuItem.js +7 -7
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +4 -3
- package/dist/components/layout/toolbar/OtherTool.js +4 -3
- package/dist/components/layout/toolbar/Paginate.js +3 -2
- package/dist/components/layout/toolbar/PrintTool.js +3 -2
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +27 -26
- package/dist/components/layout/toolbar/ScrollModeTool.js +43 -42
- package/dist/components/layout/toolbar/SearchTool.js +5 -3
- package/dist/components/layout/toolbar/SelectionModeTool.js +31 -30
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +4 -3
- package/dist/components/page/AnnotationLayer.js +3 -2
- package/dist/components/page/CanvasLayer.js +3 -2
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +3 -2
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextLayer.js +3 -2
- package/dist/components/ui/Button.js +10 -10
- package/dist/components/ui/Checkbox.js +92 -252
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +3 -2
- package/dist/components/ui/Popover.js +3060 -0
- package/dist/components/ui/RPTooltip.js +331 -855
- package/dist/contexts/LocalizationContext.js +38 -0
- package/dist/contexts/PaginationContext.js +3 -3
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/floating-ui.react-dom-88a86594.js +1447 -0
- package/dist/index-48ca3f30.js +307 -0
- package/dist/index-4ba3ab9a.js +1877 -0
- package/dist/main.js +14 -13
- package/dist/th_TH-2fba4a89.js +388 -0
- package/dist/types/components/ui/Popover.d.ts +9 -0
- package/dist/types/components/ui/RPTooltip.d.ts +3 -2
- package/dist/types/contexts/LocalizationContext.d.ts +5 -0
- package/dist/types/contexts/PaginationContext.d.ts +2 -2
- package/dist/types/locales/en_US.json.d.ts +80 -0
- package/dist/types/locales/it_IT.json.d.ts +80 -0
- package/dist/types/locales/pt_PT.json.d.ts +80 -0
- package/dist/types/locales/th_TH.json.d.ts +80 -0
- package/dist/types/locales/zh_CN.json.d.ts +80 -0
- package/dist/types/main.d.ts +1 -1
- package/dist/types/utils/hooks/useLocalization.d.ts +10 -0
- package/dist/types/utils/hooks/useScrollToPage.d.ts +1 -1
- package/dist/types/utils/smoothScrollTo.d.ts +2 -0
- package/dist/types/utils/types.d.ts +92 -77
- package/dist/utils/hooks/useFileDownload.js +3 -2
- package/dist/utils/hooks/useLicense.js +32 -40
- package/dist/utils/hooks/useLocalization.js +25 -0
- package/dist/utils/hooks/usePaginate.js +3 -2
- package/dist/utils/hooks/usePrint.js +3 -2
- package/dist/utils/hooks/useScrollToPage.js +4 -2
- package/dist/utils/hooks/useSearch.js +3 -2
- package/dist/utils/hooks/useThumbnail.js +3 -2
- package/dist/utils/hooks/useVirtualReactWindow.js +3 -2
- package/dist/utils/smoothScrollTo.js +18 -0
- package/dist/utils/types.js +17 -8
- package/package.json +2 -1
- package/dist/Container-fdb0a71f.js +0 -38
- package/dist/RPDefaultLayout-651c2426.js +0 -2832
- package/dist/floating-ui.react-dom-e6d5fe8f.js +0 -1327
- package/dist/index-316854c1.js +0 -2299
- package/dist/index-71898eb9.js +0 -139
|
@@ -1,274 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { a as A,
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return e(t);
|
|
9
|
-
e != null && (e.current = t);
|
|
1
|
+
import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { c as O, u as j, a as A, P as S, b as _, d as B, e as H } from "../../index-48ca3f30.js";
|
|
4
|
+
import { CheckIcon as K } from "../icons/CheckIcon.js";
|
|
5
|
+
import '../../assets/Checkbox.css';function L(e) {
|
|
6
|
+
const r = c.useRef({ value: e, previous: e });
|
|
7
|
+
return c.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let n = !1;
|
|
14
|
-
const r = e.map((o) => {
|
|
15
|
-
const c = S(o, t);
|
|
16
|
-
return !n && typeof c == "function" && (n = !0), c;
|
|
17
|
-
});
|
|
18
|
-
if (n)
|
|
19
|
-
return () => {
|
|
20
|
-
for (let o = 0; o < r.length; o++) {
|
|
21
|
-
const c = r[o];
|
|
22
|
-
typeof c == "function" ? c() : S(e[o], null);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function T(...e) {
|
|
28
|
-
return i.useCallback(I(...e), e);
|
|
29
|
-
}
|
|
30
|
-
function O(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
31
|
-
return function(o) {
|
|
32
|
-
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
33
|
-
return t == null ? void 0 : t(o);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function $(e) {
|
|
37
|
-
const t = i.useRef({ value: e, previous: e });
|
|
38
|
-
return i.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
39
|
-
}
|
|
40
|
-
function Z(e, t) {
|
|
41
|
-
return i.useReducer((n, r) => t[n][r] ?? n, e);
|
|
42
|
-
}
|
|
43
|
-
var _ = (e) => {
|
|
44
|
-
const { present: t, children: n } = e, r = G(t), o = typeof n == "function" ? n({ present: r.isPresent }) : i.Children.only(n), c = T(r.ref, J(o));
|
|
45
|
-
return typeof n == "function" || r.isPresent ? i.cloneElement(o, { ref: c }) : null;
|
|
46
|
-
};
|
|
47
|
-
_.displayName = "Presence";
|
|
48
|
-
function G(e) {
|
|
49
|
-
const [t, n] = i.useState(), r = i.useRef({}), o = i.useRef(e), c = i.useRef("none"), a = e ? "mounted" : "unmounted", [s, l] = Z(a, {
|
|
50
|
-
mounted: {
|
|
51
|
-
UNMOUNT: "unmounted",
|
|
52
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
53
|
-
},
|
|
54
|
-
unmountSuspended: {
|
|
55
|
-
MOUNT: "mounted",
|
|
56
|
-
ANIMATION_END: "unmounted"
|
|
57
|
-
},
|
|
58
|
-
unmounted: {
|
|
59
|
-
MOUNT: "mounted"
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
return i.useEffect(() => {
|
|
63
|
-
const u = R(r.current);
|
|
64
|
-
c.current = s === "mounted" ? u : "none";
|
|
65
|
-
}, [s]), A(() => {
|
|
66
|
-
const u = r.current, p = o.current;
|
|
67
|
-
if (p !== e) {
|
|
68
|
-
const d = c.current, m = R(u);
|
|
69
|
-
e ? l("MOUNT") : m === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(p && d !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
70
|
-
}
|
|
71
|
-
}, [e, l]), A(() => {
|
|
72
|
-
if (t) {
|
|
73
|
-
let u;
|
|
74
|
-
const p = t.ownerDocument.defaultView ?? window, C = (m) => {
|
|
75
|
-
const y = R(r.current).includes(m.animationName);
|
|
76
|
-
if (m.target === t && y && (l("ANIMATION_END"), !o.current)) {
|
|
77
|
-
const g = t.style.animationFillMode;
|
|
78
|
-
t.style.animationFillMode = "forwards", u = p.setTimeout(() => {
|
|
79
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}, d = (m) => {
|
|
83
|
-
m.target === t && (c.current = R(r.current));
|
|
84
|
-
};
|
|
85
|
-
return t.addEventListener("animationstart", d), t.addEventListener("animationcancel", C), t.addEventListener("animationend", C), () => {
|
|
86
|
-
p.clearTimeout(u), t.removeEventListener("animationstart", d), t.removeEventListener("animationcancel", C), t.removeEventListener("animationend", C);
|
|
87
|
-
};
|
|
88
|
-
} else
|
|
89
|
-
l("ANIMATION_END");
|
|
90
|
-
}, [t, l]), {
|
|
91
|
-
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
92
|
-
ref: i.useCallback((u) => {
|
|
93
|
-
u && (r.current = getComputedStyle(u)), n(u);
|
|
94
|
-
}, [])
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function R(e) {
|
|
98
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
99
|
-
}
|
|
100
|
-
function J(e) {
|
|
101
|
-
var r, o;
|
|
102
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
103
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
104
|
-
}
|
|
105
|
-
var D = i.forwardRef((e, t) => {
|
|
106
|
-
const { children: n, ...r } = e, o = i.Children.toArray(n), c = o.find(Y);
|
|
107
|
-
if (c) {
|
|
108
|
-
const a = c.props.children, s = o.map((l) => l === c ? i.Children.count(a) > 1 ? i.Children.only(null) : i.isValidElement(a) ? a.props.children : null : l);
|
|
109
|
-
return /* @__PURE__ */ f(E, { ...r, ref: t, children: i.isValidElement(a) ? i.cloneElement(a, void 0, s) : null });
|
|
110
|
-
}
|
|
111
|
-
return /* @__PURE__ */ f(E, { ...r, ref: t, children: n });
|
|
112
|
-
});
|
|
113
|
-
D.displayName = "Slot";
|
|
114
|
-
var E = i.forwardRef((e, t) => {
|
|
115
|
-
const { children: n, ...r } = e;
|
|
116
|
-
if (i.isValidElement(n)) {
|
|
117
|
-
const o = ee(n);
|
|
118
|
-
return i.cloneElement(n, {
|
|
119
|
-
...H(r, n.props),
|
|
120
|
-
// @ts-ignore
|
|
121
|
-
ref: t ? I(t, o) : o
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
return i.Children.count(n) > 1 ? i.Children.only(null) : null;
|
|
125
|
-
});
|
|
126
|
-
E.displayName = "SlotClone";
|
|
127
|
-
var Q = ({ children: e }) => /* @__PURE__ */ f(q, { children: e });
|
|
128
|
-
function Y(e) {
|
|
129
|
-
return i.isValidElement(e) && e.type === Q;
|
|
130
|
-
}
|
|
131
|
-
function H(e, t) {
|
|
132
|
-
const n = { ...t };
|
|
133
|
-
for (const r in t) {
|
|
134
|
-
const o = e[r], c = t[r];
|
|
135
|
-
/^on[A-Z]/.test(r) ? o && c ? n[r] = (...s) => {
|
|
136
|
-
c(...s), o(...s);
|
|
137
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...c } : r === "className" && (n[r] = [o, c].filter(Boolean).join(" "));
|
|
138
|
-
}
|
|
139
|
-
return { ...e, ...n };
|
|
140
|
-
}
|
|
141
|
-
function ee(e) {
|
|
142
|
-
var r, o;
|
|
143
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
144
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
145
|
-
}
|
|
146
|
-
var te = [
|
|
147
|
-
"a",
|
|
148
|
-
"button",
|
|
149
|
-
"div",
|
|
150
|
-
"form",
|
|
151
|
-
"h2",
|
|
152
|
-
"h3",
|
|
153
|
-
"img",
|
|
154
|
-
"input",
|
|
155
|
-
"label",
|
|
156
|
-
"li",
|
|
157
|
-
"nav",
|
|
158
|
-
"ol",
|
|
159
|
-
"p",
|
|
160
|
-
"span",
|
|
161
|
-
"svg",
|
|
162
|
-
"ul"
|
|
163
|
-
], U = te.reduce((e, t) => {
|
|
164
|
-
const n = i.forwardRef((r, o) => {
|
|
165
|
-
const { asChild: c, ...a } = r, s = c ? D : t;
|
|
166
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(s, { ...a, ref: o });
|
|
167
|
-
});
|
|
168
|
-
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
169
|
-
}, {}), w = "Checkbox", [ne, fe] = B(w), [re, oe] = ne(w), W = i.forwardRef(
|
|
170
|
-
(e, t) => {
|
|
9
|
+
var E = "Checkbox", [z, W] = O(E), [F, T] = z(E), w = c.forwardRef(
|
|
10
|
+
(e, r) => {
|
|
171
11
|
const {
|
|
172
|
-
__scopeCheckbox:
|
|
173
|
-
name:
|
|
174
|
-
checked:
|
|
175
|
-
defaultChecked:
|
|
176
|
-
required:
|
|
177
|
-
disabled:
|
|
178
|
-
value:
|
|
179
|
-
onCheckedChange:
|
|
180
|
-
form:
|
|
181
|
-
...
|
|
182
|
-
} = e, [
|
|
183
|
-
prop:
|
|
184
|
-
defaultProp:
|
|
185
|
-
onChange:
|
|
186
|
-
}),
|
|
187
|
-
return
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const
|
|
191
|
-
return
|
|
12
|
+
__scopeCheckbox: t,
|
|
13
|
+
name: a,
|
|
14
|
+
checked: f,
|
|
15
|
+
defaultChecked: n,
|
|
16
|
+
required: h,
|
|
17
|
+
disabled: u,
|
|
18
|
+
value: b = "on",
|
|
19
|
+
onCheckedChange: m,
|
|
20
|
+
form: l,
|
|
21
|
+
...x
|
|
22
|
+
} = e, [i, C] = c.useState(null), v = j(r, (o) => C(o)), y = c.useRef(!1), I = i ? l || !!i.closest("form") : !0, [p = !1, P] = A({
|
|
23
|
+
prop: f,
|
|
24
|
+
defaultProp: n,
|
|
25
|
+
onChange: m
|
|
26
|
+
}), q = c.useRef(p);
|
|
27
|
+
return c.useEffect(() => {
|
|
28
|
+
const o = i == null ? void 0 : i.form;
|
|
29
|
+
if (o) {
|
|
30
|
+
const k = () => P(q.current);
|
|
31
|
+
return o.addEventListener("reset", k), () => o.removeEventListener("reset", k);
|
|
192
32
|
}
|
|
193
|
-
}, [
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
33
|
+
}, [i, P]), /* @__PURE__ */ g(F, { scope: t, state: p, disabled: u, children: [
|
|
34
|
+
/* @__PURE__ */ s(
|
|
35
|
+
S.button,
|
|
196
36
|
{
|
|
197
37
|
type: "button",
|
|
198
38
|
role: "checkbox",
|
|
199
|
-
"aria-checked":
|
|
200
|
-
"aria-required":
|
|
201
|
-
"data-state":
|
|
202
|
-
"data-disabled":
|
|
203
|
-
disabled:
|
|
204
|
-
value:
|
|
205
|
-
...
|
|
206
|
-
ref:
|
|
207
|
-
onKeyDown:
|
|
208
|
-
|
|
39
|
+
"aria-checked": d(p) ? "mixed" : p,
|
|
40
|
+
"aria-required": h,
|
|
41
|
+
"data-state": M(p),
|
|
42
|
+
"data-disabled": u ? "" : void 0,
|
|
43
|
+
disabled: u,
|
|
44
|
+
value: b,
|
|
45
|
+
...x,
|
|
46
|
+
ref: v,
|
|
47
|
+
onKeyDown: _(e.onKeyDown, (o) => {
|
|
48
|
+
o.key === "Enter" && o.preventDefault();
|
|
209
49
|
}),
|
|
210
|
-
onClick:
|
|
211
|
-
|
|
50
|
+
onClick: _(e.onClick, (o) => {
|
|
51
|
+
P((k) => d(k) ? !0 : !k), I && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
|
|
212
52
|
})
|
|
213
53
|
}
|
|
214
54
|
),
|
|
215
|
-
|
|
216
|
-
|
|
55
|
+
I && /* @__PURE__ */ s(
|
|
56
|
+
X,
|
|
217
57
|
{
|
|
218
|
-
control:
|
|
58
|
+
control: i,
|
|
219
59
|
bubbles: !y.current,
|
|
220
|
-
name:
|
|
221
|
-
value:
|
|
222
|
-
checked:
|
|
223
|
-
required:
|
|
224
|
-
disabled:
|
|
225
|
-
form:
|
|
60
|
+
name: a,
|
|
61
|
+
value: b,
|
|
62
|
+
checked: p,
|
|
63
|
+
required: h,
|
|
64
|
+
disabled: u,
|
|
65
|
+
form: l,
|
|
226
66
|
style: { transform: "translateX(-100%)" },
|
|
227
|
-
defaultChecked:
|
|
67
|
+
defaultChecked: d(n) ? !1 : n
|
|
228
68
|
}
|
|
229
69
|
)
|
|
230
70
|
] });
|
|
231
71
|
}
|
|
232
72
|
);
|
|
233
|
-
|
|
234
|
-
var
|
|
235
|
-
(e,
|
|
236
|
-
const { __scopeCheckbox:
|
|
237
|
-
return /* @__PURE__ */
|
|
238
|
-
|
|
73
|
+
w.displayName = E;
|
|
74
|
+
var N = "CheckboxIndicator", D = c.forwardRef(
|
|
75
|
+
(e, r) => {
|
|
76
|
+
const { __scopeCheckbox: t, forceMount: a, ...f } = e, n = T(N, t);
|
|
77
|
+
return /* @__PURE__ */ s(B, { present: a || d(n.state) || n.state === !0, children: /* @__PURE__ */ s(
|
|
78
|
+
S.span,
|
|
239
79
|
{
|
|
240
|
-
"data-state":
|
|
241
|
-
"data-disabled":
|
|
242
|
-
...
|
|
243
|
-
ref:
|
|
80
|
+
"data-state": M(n.state),
|
|
81
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
82
|
+
...f,
|
|
83
|
+
ref: r,
|
|
244
84
|
style: { pointerEvents: "none", ...e.style }
|
|
245
85
|
}
|
|
246
86
|
) });
|
|
247
87
|
}
|
|
248
88
|
);
|
|
249
|
-
|
|
250
|
-
var
|
|
251
|
-
const { control:
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const
|
|
256
|
-
|
|
89
|
+
D.displayName = N;
|
|
90
|
+
var X = (e) => {
|
|
91
|
+
const { control: r, checked: t, bubbles: a = !0, defaultChecked: f, ...n } = e, h = c.useRef(null), u = L(t), b = H(r);
|
|
92
|
+
c.useEffect(() => {
|
|
93
|
+
const l = h.current, x = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(x, "checked").set;
|
|
94
|
+
if (u !== t && C) {
|
|
95
|
+
const v = new Event("click", { bubbles: a });
|
|
96
|
+
l.indeterminate = d(t), C.call(l, d(t) ? !1 : t), l.dispatchEvent(v);
|
|
257
97
|
}
|
|
258
|
-
}, [
|
|
259
|
-
const
|
|
260
|
-
return /* @__PURE__ */
|
|
98
|
+
}, [u, t, a]);
|
|
99
|
+
const m = c.useRef(d(t) ? !1 : t);
|
|
100
|
+
return /* @__PURE__ */ s(
|
|
261
101
|
"input",
|
|
262
102
|
{
|
|
263
103
|
type: "checkbox",
|
|
264
104
|
"aria-hidden": !0,
|
|
265
|
-
defaultChecked:
|
|
266
|
-
...
|
|
105
|
+
defaultChecked: f ?? m.current,
|
|
106
|
+
...n,
|
|
267
107
|
tabIndex: -1,
|
|
268
|
-
ref:
|
|
108
|
+
ref: h,
|
|
269
109
|
style: {
|
|
270
110
|
...e.style,
|
|
271
|
-
...
|
|
111
|
+
...b,
|
|
272
112
|
position: "absolute",
|
|
273
113
|
pointerEvents: "none",
|
|
274
114
|
opacity: 0,
|
|
@@ -277,25 +117,25 @@ var ie = (e) => {
|
|
|
277
117
|
}
|
|
278
118
|
);
|
|
279
119
|
};
|
|
280
|
-
function
|
|
120
|
+
function d(e) {
|
|
281
121
|
return e === "indeterminate";
|
|
282
122
|
}
|
|
283
|
-
function
|
|
284
|
-
return
|
|
123
|
+
function M(e) {
|
|
124
|
+
return d(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
285
125
|
}
|
|
286
|
-
var
|
|
287
|
-
const
|
|
126
|
+
var U = w, G = D;
|
|
127
|
+
const R = {
|
|
288
128
|
"rp-checkbox": "_rp-checkbox_11dq0_1",
|
|
289
129
|
"rp-checkbox-indicator": "_rp-checkbox-indicator_11dq0_18"
|
|
290
|
-
},
|
|
130
|
+
}, Y = ({
|
|
291
131
|
children: e,
|
|
292
|
-
value:
|
|
293
|
-
name:
|
|
294
|
-
onChange:
|
|
295
|
-
}) => /* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
/* @__PURE__ */
|
|
132
|
+
value: r,
|
|
133
|
+
name: t,
|
|
134
|
+
onChange: a
|
|
135
|
+
}) => /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", position: "relative" }, children: [
|
|
136
|
+
/* @__PURE__ */ s(U, { className: R["rp-checkbox"], checked: r, id: t, onCheckedChange: a, children: /* @__PURE__ */ s(G, { className: R["rp-checkbox-indicator"], children: /* @__PURE__ */ s(K, {}) }) }),
|
|
137
|
+
/* @__PURE__ */ s("label", { className: R["rp-checkbox-label"], htmlFor: t, children: e })
|
|
298
138
|
] });
|
|
299
139
|
export {
|
|
300
|
-
|
|
140
|
+
Y as UICheckbox
|
|
301
141
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { R as l, T as c, P as p, C as _ } from "../../index-
|
|
2
|
+
import { R as l, T as c, P as p, C as _ } from "../../index-4ba3ab9a.js";
|
|
3
3
|
import { c as A } from "../../clsx-0c6e471a.js";
|
|
4
4
|
import '../../assets/DropDown.css';const F = "_slideDownAndFade_1000s_1", w = "_slideLeftAndFade_1000s_1", m = "_slideUpAndFade_1000s_1", f = "_slideRightAndFade_1000s_1", g = {
|
|
5
5
|
"rp-dropdown-content": "_rp-dropdown-content_1000s_1",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { L as
|
|
2
|
+
import { L as i } from "../../RPDefaultLayout-79c7577a.js";
|
|
3
3
|
import "../../clsx-0c6e471a.js";
|
|
4
|
+
import "../../contexts/LocalizationContext.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
i as default
|
|
6
7
|
};
|