@cfx-dev/ui-components 2.1.22 → 2.1.23
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/assets/Accordion.css +1 -1
- package/dist/assets/Box.css +1 -1
- package/dist/assets/InputDropzone.css +1 -1
- package/dist/components/Accordion/Accordion.js +63 -63
- package/dist/components/Accordion/AccordionShowcase.js +9 -5
- package/dist/components/InputDropzone/InputDropzone.js +23 -23
- package/dist/components/Layout/Box/Box.d.ts +1 -0
- package/dist/components/Layout/Box/Box.js +81 -78
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_1pwnk_1{background-color:var(--color-accordion-background)}._item_1pwnk_5,._header_1pwnk_5{cursor:pointer;background:var(--color-accordion-background)}._triggerContainer_1pwnk_10{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:var(--quant);border-bottom:1px solid var(--color-accordion-border-color);height:calc(var(--quant) * 7.75);transition:border-bottom .25s ease-out}._triggerContainer_1pwnk_10:hover,._triggerContainer_1pwnk_10:focus-visible:not(:hover){border-bottom:2px solid rgba(var(--color-primary),1)}._triggerContainer_1pwnk_10:hover ._iconFlip_1pwnk_23,._triggerContainer_1pwnk_10:focus-visible:not(:hover) ._iconFlip_1pwnk_23{transform:rotateX(90deg)}._triggerContainer_1pwnk_10:hover ._iconUp_1pwnk_26,._triggerContainer_1pwnk_10:focus-visible:not(:hover) ._iconUp_1pwnk_26{top:calc(-1 * var(--offset-small))}._triggerContainer_1pwnk_10:hover ._iconDown_1pwnk_29,._triggerContainer_1pwnk_10:focus-visible:not(:hover) ._iconDown_1pwnk_29{top:var(--offset-small)}._triggerContainer_1pwnk_10 ._iconLeft_1pwnk_32{margin-right:var(--offset-small);color:rgba(var(--color-secondary),1)}._triggerContainer_1pwnk_10 ._iconRight_1pwnk_36{top:0;position:relative;color:rgba(var(--color-secondary),1);margin-left:var(--offset-small);transition:transform .25s ease-out,top .5s ease;transform-style:preserve-3d}._iconFlip_1pwnk_23{transform:rotateX(90deg)}._content_1pwnk_49{display:block;padding:calc(var(--quant) * .5) calc(var(--quant) * 6.5);overflow:hidden;max-height:0;transition:max-height .5s ease-in-out}._content_1pwnk_49._open_1pwnk_56{max-height:calc(var(--quant) * 30)}
|
package/dist/assets/Box.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_1rhjm_1._full-width_1rhjm_1{width:100%}._root_1rhjm_1._fit-content-width_1rhjm_4{width:fit-content}._root_1rhjm_1._full-height_1rhjm_7{height:100%}._root_1rhjm_1._no-overflow_1rhjm_10{overflow:hidden}._root_1rhjm_1._no-shrink_1rhjm_13{flex-shrink:0}._root_1rhjm_1._grow_1rhjm_16{flex-grow:1}._root_1rhjm_1._no-grow_1rhjm_19{flex-grow:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropzone_1kj2k_1{border-radius:var(--border-radius-small);text-align:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(var(--quant) * 22.25);padding:var(--offset-normal);background-color:rgba(var(--color-bg),1);border:calc(var(--quant) * .25) dashed rgba(var(--color-accent),1)}._dropzone_1kj2k_1{transition:all .25s ease,outline-offset 0s,outline 0s}._dropzone_1kj2k_1 ._text_1kj2k_18{margin-top:var(--offset-small)}._dropzone_1kj2k_1 ._text_1kj2k_18{transition:all .25s ease,outline-offset 0s,outline 0s}._dropzone_1kj2k_1._disabled_1kj2k_24{cursor:not-allowed;opacity:.5}._dropzone_1kj2k_1:not(._disabled_1kj2k_24):hover{background-color:rgba(var(--color-secondary),.2)}._dropzone_1kj2k_1:not(._disabled_1kj2k_24):hover ._text_1kj2k_18{margin-top:var(--offset-normal)}._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible,._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible:hover{outline-offset:var(--dropzone-focus-border-size, initial);outline:var(--dropzone-focus-border-size, initial) solid var(--color-dropzone-focus-border-color)}._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible,._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible:hover,._dropzone_1kj2k_1:not(._disabled_1kj2k_24)._focused_1kj2k_38,._dropzone_1kj2k_1:not(._disabled_1kj2k_24)._dragActive_1kj2k_38{background-color:rgba(var(--color-secondary),.2)}._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible ._text_1kj2k_18,._dropzone_1kj2k_1:not(._disabled_1kj2k_24):focus-visible:hover ._text_1kj2k_18,._dropzone_1kj2k_1:not(._disabled_1kj2k_24)._focused_1kj2k_38 ._text_1kj2k_18,._dropzone_1kj2k_1:not(._disabled_1kj2k_24)._dragActive_1kj2k_38 ._text_1kj2k_18{margin-top:var(--offset-normal)}
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import f, { createContext as x, useState as u, useContext as A, useEffect as b } from "react";
|
|
3
3
|
import { Icon as C } from "../Icon/Icon.js";
|
|
4
|
-
import { Flex as
|
|
5
|
-
import { Text as
|
|
4
|
+
import { Flex as k } from "../Layout/Flex/Flex.js";
|
|
5
|
+
import { Text as I } from "../Text/Text.js";
|
|
6
6
|
import { clsx as h } from "../../utils/clsx.js";
|
|
7
|
-
import '../../assets/Accordion.css';const
|
|
8
|
-
root:
|
|
9
|
-
item:
|
|
7
|
+
import '../../assets/Accordion.css';const D = "_root_1pwnk_1", y = "_item_1pwnk_5", F = "_header_1pwnk_5", N = "_triggerContainer_1pwnk_10", U = "_iconFlip_1pwnk_23", T = "_iconUp_1pwnk_26", R = "_iconDown_1pwnk_29", $ = "_iconLeft_1pwnk_32", E = "_iconRight_1pwnk_36", L = "_content_1pwnk_49", O = "_open_1pwnk_56", o = {
|
|
8
|
+
root: D,
|
|
9
|
+
item: y,
|
|
10
10
|
header: F,
|
|
11
11
|
triggerContainer: N,
|
|
12
12
|
iconFlip: U,
|
|
13
13
|
iconUp: T,
|
|
14
14
|
iconDown: R,
|
|
15
15
|
iconLeft: $,
|
|
16
|
-
iconRight:
|
|
17
|
-
content:
|
|
18
|
-
open:
|
|
19
|
-
},
|
|
16
|
+
iconRight: E,
|
|
17
|
+
content: L,
|
|
18
|
+
open: O
|
|
19
|
+
}, w = x(void 0), P = function({
|
|
20
20
|
children: t,
|
|
21
|
-
className:
|
|
21
|
+
className: n
|
|
22
22
|
}) {
|
|
23
|
-
const [
|
|
24
|
-
s((
|
|
25
|
-
const i = new Set(
|
|
26
|
-
return i.has(
|
|
23
|
+
const [r, s] = u(/* @__PURE__ */ new Set()), a = f.useCallback((c) => {
|
|
24
|
+
s((m) => {
|
|
25
|
+
const i = new Set(m);
|
|
26
|
+
return i.has(c) ? i.delete(c) : i.add(c), i;
|
|
27
27
|
});
|
|
28
|
-
}, []),
|
|
29
|
-
openItems:
|
|
28
|
+
}, []), d = f.useMemo(() => ({
|
|
29
|
+
openItems: r,
|
|
30
30
|
toggleItem: a
|
|
31
|
-
}), [
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
},
|
|
31
|
+
}), [r, a]);
|
|
32
|
+
return /* @__PURE__ */ e(w.Provider, { value: d, children: /* @__PURE__ */ e("div", { className: h(o.root, n), role: "presentation", children: t }) });
|
|
33
|
+
}, V = function({
|
|
34
34
|
children: t,
|
|
35
|
-
id:
|
|
35
|
+
id: n
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
},
|
|
37
|
+
return /* @__PURE__ */ e("div", { className: o.item, id: n, role: "region", "aria-labelledby": `${n}-header`, children: t });
|
|
38
|
+
}, q = function({
|
|
39
39
|
children: t
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ e("div", { className: o.header, children: t });
|
|
42
42
|
}, B = function({
|
|
43
43
|
text: t,
|
|
44
|
-
id:
|
|
45
|
-
iconLeft:
|
|
44
|
+
id: n,
|
|
45
|
+
iconLeft: r
|
|
46
46
|
}) {
|
|
47
|
-
const s = w
|
|
47
|
+
const s = A(w);
|
|
48
48
|
if (!s)
|
|
49
49
|
throw new Error("AccordionTrigger must be used within an Accordion");
|
|
50
50
|
const {
|
|
51
51
|
toggleItem: a,
|
|
52
|
-
openItems:
|
|
53
|
-
} = s,
|
|
54
|
-
return
|
|
55
|
-
const
|
|
56
|
-
|
|
52
|
+
openItems: d
|
|
53
|
+
} = s, c = d.has(n), [m, i] = u(!1), [_, v] = u(c ? "UpChevron" : "DownChevron");
|
|
54
|
+
return b(() => {
|
|
55
|
+
const p = setTimeout(() => {
|
|
56
|
+
v(c ? "UpChevron" : "DownChevron"), i(!1);
|
|
57
57
|
}, 300);
|
|
58
|
-
return i(!0), () => clearTimeout(
|
|
59
|
-
}, [
|
|
58
|
+
return i(!0), () => clearTimeout(p);
|
|
59
|
+
}, [c]), /* @__PURE__ */ g(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
|
-
className:
|
|
63
|
-
onClick: () => a(
|
|
64
|
-
onKeyDown: (
|
|
65
|
-
(
|
|
62
|
+
className: o.triggerContainer,
|
|
63
|
+
onClick: () => a(n),
|
|
64
|
+
onKeyDown: (p) => {
|
|
65
|
+
(p.key === "Enter" || p.key === " ") && a(n);
|
|
66
66
|
},
|
|
67
67
|
role: "button",
|
|
68
68
|
tabIndex: 0,
|
|
69
|
-
"aria-expanded":
|
|
70
|
-
"aria-controls": `${
|
|
71
|
-
id: `${
|
|
69
|
+
"aria-expanded": c,
|
|
70
|
+
"aria-controls": `${n}-content`,
|
|
71
|
+
id: `${n}-header`,
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ g(k, { centered: !0, children: [
|
|
74
|
+
r && /* @__PURE__ */ e(C, { name: r, className: o.iconLeft }),
|
|
75
|
+
/* @__PURE__ */ e(I, { size: "normal", children: t })
|
|
76
76
|
] }),
|
|
77
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ e(k, { centered: !0, children: /* @__PURE__ */ e(
|
|
78
78
|
C,
|
|
79
79
|
{
|
|
80
|
-
className: h(
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
80
|
+
className: h(o.iconRight, {
|
|
81
|
+
[o.iconFlip]: m,
|
|
82
|
+
[o.iconUp]: _ === "UpChevron",
|
|
83
|
+
[o.iconDown]: _ === "DownChevron"
|
|
84
84
|
}),
|
|
85
|
-
name:
|
|
85
|
+
name: _
|
|
86
86
|
}
|
|
87
87
|
) })
|
|
88
88
|
]
|
|
@@ -90,29 +90,29 @@ import '../../assets/Accordion.css';const q = "_root_y0b1q_1", D = "_item_y0b1q_
|
|
|
90
90
|
);
|
|
91
91
|
}, G = function({
|
|
92
92
|
children: t,
|
|
93
|
-
id:
|
|
93
|
+
id: n
|
|
94
94
|
}) {
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
95
|
+
const r = A(w);
|
|
96
|
+
if (!r)
|
|
97
97
|
throw new Error("AccordionContent must be used within an Accordion");
|
|
98
98
|
const {
|
|
99
99
|
openItems: s
|
|
100
|
-
} =
|
|
101
|
-
return /* @__PURE__ */
|
|
100
|
+
} = r;
|
|
101
|
+
return /* @__PURE__ */ e(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
104
|
-
className: h(
|
|
105
|
-
id: `${
|
|
104
|
+
className: h(o.content, { [o.open]: s.has(n) }),
|
|
105
|
+
id: `${n}-content`,
|
|
106
106
|
role: "region",
|
|
107
|
-
"aria-labelledby": `${
|
|
108
|
-
children: /* @__PURE__ */
|
|
107
|
+
"aria-labelledby": `${n}-header`,
|
|
108
|
+
children: /* @__PURE__ */ e(I, { color: "secondary", size: "normal", typographic: !0, children: t })
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
};
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
P as Accordion,
|
|
114
114
|
G as AccordionContent,
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
q as AccordionHeader,
|
|
116
|
+
V as AccordionItem,
|
|
117
117
|
B as AccordionTrigger
|
|
118
118
|
};
|
|
@@ -2,11 +2,11 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import a from "react";
|
|
3
3
|
import { Flex as c } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as d } from "../Text/Text.js";
|
|
5
|
-
import { Accordion as
|
|
6
|
-
function
|
|
5
|
+
import { Accordion as h, AccordionItem as i, AccordionHeader as o, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
|
|
6
|
+
function l() {
|
|
7
7
|
return /* @__PURE__ */ e(c, { fullWidth: !0, vertical: !0, children: /* @__PURE__ */ t(c, { fullWidth: !0, vertical: !0, children: [
|
|
8
8
|
/* @__PURE__ */ e(d, { size: "large", children: "Accordion" }),
|
|
9
|
-
/* @__PURE__ */ t(
|
|
9
|
+
/* @__PURE__ */ t(h, { children: [
|
|
10
10
|
/* @__PURE__ */ t(i, { id: "item1", children: [
|
|
11
11
|
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
12
12
|
n,
|
|
@@ -16,7 +16,11 @@ function h() {
|
|
|
16
16
|
iconLeft: "MoreInfo"
|
|
17
17
|
}
|
|
18
18
|
) }),
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ t(r, { id: "item1", children: [
|
|
20
|
+
"Nope! ",
|
|
21
|
+
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
22
|
+
" does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
23
|
+
] })
|
|
20
24
|
] }),
|
|
21
25
|
/* @__PURE__ */ t(i, { id: "item2", children: [
|
|
22
26
|
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
@@ -54,7 +58,7 @@ function h() {
|
|
|
54
58
|
] })
|
|
55
59
|
] }) });
|
|
56
60
|
}
|
|
57
|
-
const b = a.memo(
|
|
61
|
+
const b = a.memo(l);
|
|
58
62
|
export {
|
|
59
63
|
b as default
|
|
60
64
|
};
|
|
@@ -170,7 +170,7 @@ function Sr(e, r) {
|
|
|
170
170
|
case 0:
|
|
171
171
|
return e.items ? (t = Ee(e.items).filter(function(a) {
|
|
172
172
|
return a.kind === "file";
|
|
173
|
-
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(
|
|
173
|
+
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(kr))]) : [3, 2];
|
|
174
174
|
case 1:
|
|
175
175
|
return n = i.sent(), [2, Ge(nr(n))];
|
|
176
176
|
case 2:
|
|
@@ -195,7 +195,7 @@ function Ee(e) {
|
|
|
195
195
|
}
|
|
196
196
|
return r;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function kr(e) {
|
|
199
199
|
if (typeof e.webkitGetAsEntry != "function")
|
|
200
200
|
return qe(e);
|
|
201
201
|
var r = e.webkitGetAsEntry();
|
|
@@ -213,7 +213,7 @@ function qe(e) {
|
|
|
213
213
|
var t = q(r);
|
|
214
214
|
return Promise.resolve(t);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function zr(e) {
|
|
217
217
|
return M(this, void 0, void 0, function() {
|
|
218
218
|
return $(this, function(r) {
|
|
219
219
|
return [2, e.isDirectory ? or(e) : Lr(e)];
|
|
@@ -243,7 +243,7 @@ function or(e) {
|
|
|
243
243
|
case 4:
|
|
244
244
|
return [3, 6];
|
|
245
245
|
case 5:
|
|
246
|
-
O = Promise.all(u.map(
|
|
246
|
+
O = Promise.all(u.map(zr)), i.push(O), a(), g.label = 6;
|
|
247
247
|
case 6:
|
|
248
248
|
return [
|
|
249
249
|
2
|
|
@@ -809,12 +809,12 @@ function dr() {
|
|
|
809
809
|
window.removeEventListener("focus", Se, !1);
|
|
810
810
|
};
|
|
811
811
|
}, [D, Re, X, Z]);
|
|
812
|
-
var R = ie([]),
|
|
812
|
+
var R = ie([]), ke = function(c) {
|
|
813
813
|
v.current && v.current.contains(c.target) || (c.preventDefault(), R.current = []);
|
|
814
814
|
};
|
|
815
815
|
Oe(function() {
|
|
816
|
-
return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop",
|
|
817
|
-
N && (document.removeEventListener("dragover", er), document.removeEventListener("drop",
|
|
816
|
+
return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ke, !1)), function() {
|
|
817
|
+
N && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ke));
|
|
818
818
|
};
|
|
819
819
|
}, [v, N]), Oe(function() {
|
|
820
820
|
return !n && V && v.current && v.current.focus(), function() {
|
|
@@ -822,7 +822,7 @@ function dr() {
|
|
|
822
822
|
}, [v, V, n]);
|
|
823
823
|
var C = A(function(o) {
|
|
824
824
|
fe ? fe(o) : console.error(o);
|
|
825
|
-
}, [fe]),
|
|
825
|
+
}, [fe]), ze = A(function(o) {
|
|
826
826
|
o.preventDefault(), o.persist(), ne(o), R.current = [].concat(lt(R.current), [o.target]), ae(o) && Promise.resolve(i(o)).then(function(c) {
|
|
827
827
|
if (!(se(o) && !I)) {
|
|
828
828
|
var d = c.length, m = d > 0 && Qr({
|
|
@@ -867,7 +867,7 @@ function dr() {
|
|
|
867
867
|
}, [v, O, I]), ee = A(function(o, c) {
|
|
868
868
|
var d = [], m = [];
|
|
869
869
|
o.forEach(function(b) {
|
|
870
|
-
var U = cr(b, B),
|
|
870
|
+
var U = cr(b, B), z = Fe(U, 2), ge = z[0], ve = z[1], ye = ur(b, s, a), oe = Fe(ye, 2), be = oe[0], he = oe[1], De = W ? W(b) : null;
|
|
871
871
|
if (ge && be && !De)
|
|
872
872
|
d.push(b);
|
|
873
873
|
else {
|
|
@@ -934,23 +934,23 @@ function dr() {
|
|
|
934
934
|
});
|
|
935
935
|
}, []), He = A(function() {
|
|
936
936
|
Q || (et() ? setTimeout(S, 0) : S());
|
|
937
|
-
}, [Q, S]),
|
|
937
|
+
}, [Q, S]), k = function(c) {
|
|
938
938
|
return n ? null : c;
|
|
939
939
|
}, me = function(c) {
|
|
940
|
-
return H ? null :
|
|
940
|
+
return H ? null : k(c);
|
|
941
941
|
}, te = function(c) {
|
|
942
|
-
return h ? null :
|
|
942
|
+
return h ? null : k(c);
|
|
943
943
|
}, ne = function(c) {
|
|
944
944
|
I && c.stopPropagation();
|
|
945
945
|
}, vr = L(function() {
|
|
946
946
|
return function() {
|
|
947
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus,
|
|
947
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus, z = o.onBlur, ge = o.onClick, ve = o.onDragEnter, ye = o.onDragOver, oe = o.onDragLeave, be = o.onDrop, he = le(o, ut);
|
|
948
948
|
return f(f(je({
|
|
949
949
|
onKeyDown: me(F(b, $e)),
|
|
950
950
|
onFocus: me(F(U, Ke)),
|
|
951
|
-
onBlur: me(F(
|
|
952
|
-
onClick:
|
|
953
|
-
onDragEnter: te(F(ve,
|
|
951
|
+
onBlur: me(F(z, Ne)),
|
|
952
|
+
onClick: k(F(ge, He)),
|
|
953
|
+
onDragEnter: te(F(ve, ze)),
|
|
954
954
|
onDragOver: te(F(ye, Le)),
|
|
955
955
|
onDragLeave: te(F(oe, Me)),
|
|
956
956
|
onDrop: te(F(be, re)),
|
|
@@ -959,22 +959,22 @@ function dr() {
|
|
|
959
959
|
tabIndex: 0
|
|
960
960
|
} : {}), he);
|
|
961
961
|
};
|
|
962
|
-
}, [v, $e, Ke, Ne, He,
|
|
962
|
+
}, [v, $e, Ke, Ne, He, ze, Le, Me, re, H, h, n]), yr = A(function(o) {
|
|
963
963
|
o.stopPropagation();
|
|
964
964
|
}, []), br = L(function() {
|
|
965
965
|
return function() {
|
|
966
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st),
|
|
966
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st), z = je({
|
|
967
967
|
accept: B,
|
|
968
968
|
multiple: u,
|
|
969
969
|
type: "file",
|
|
970
970
|
style: {
|
|
971
971
|
display: "none"
|
|
972
972
|
},
|
|
973
|
-
onChange:
|
|
974
|
-
onClick:
|
|
973
|
+
onChange: k(F(m, re)),
|
|
974
|
+
onClick: k(F(b, yr)),
|
|
975
975
|
tabIndex: -1
|
|
976
976
|
}, d, D);
|
|
977
|
-
return f(f({},
|
|
977
|
+
return f(f({}, z), U);
|
|
978
978
|
};
|
|
979
979
|
}, [D, t, u, re, n]);
|
|
980
980
|
return f(f({}, de), {}, {
|
|
@@ -983,7 +983,7 @@ function dr() {
|
|
|
983
983
|
getInputProps: br,
|
|
984
984
|
rootRef: v,
|
|
985
985
|
inputRef: D,
|
|
986
|
-
open:
|
|
986
|
+
open: k(S)
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
function bt(e, r) {
|
|
@@ -1023,7 +1023,7 @@ function bt(e, r) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
function tr() {
|
|
1025
1025
|
}
|
|
1026
|
-
const ht = "
|
|
1026
|
+
const ht = "_dropzone_1kj2k_1", Dt = "_text_1kj2k_18", At = "_disabled_1kj2k_24", wt = "_focused_1kj2k_38", Ot = "_dragActive_1kj2k_38", E = {
|
|
1027
1027
|
dropzone: ht,
|
|
1028
1028
|
text: Dt,
|
|
1029
1029
|
disabled: At,
|
|
@@ -1,104 +1,107 @@
|
|
|
1
1
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useContextualStyle as
|
|
4
|
-
import { ui as
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { useContextualStyle as W } from "../../Style/Style.js";
|
|
4
|
+
import { ui as a } from "../../ui.js";
|
|
5
5
|
import { clsx as H } from "../../../utils/clsx.js";
|
|
6
|
-
import '../../../assets/Box.css';const
|
|
7
|
-
root:
|
|
8
|
-
"full-width": "_full-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"no-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
import '../../../assets/Box.css';const z = "_root_1rhjm_1", D = "_grow_1rhjm_16", t = {
|
|
7
|
+
root: z,
|
|
8
|
+
"full-width": "_full-width_1rhjm_1",
|
|
9
|
+
"fit-content-width": "_fit-content-width_1rhjm_4",
|
|
10
|
+
"full-height": "_full-height_1rhjm_7",
|
|
11
|
+
"no-overflow": "_no-overflow_1rhjm_10",
|
|
12
|
+
"no-shrink": "_no-shrink_1rhjm_13",
|
|
13
|
+
grow: D,
|
|
14
|
+
"no-grow": "_no-grow_1rhjm_19"
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
-
return typeof r == "string" ? r :
|
|
16
|
+
function y(r) {
|
|
17
|
+
return typeof r == "string" ? r : a.q(r);
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
+
const K = c.forwardRef(function(S, M) {
|
|
19
20
|
const {
|
|
20
|
-
noOverflow:
|
|
21
|
-
noShrink:
|
|
21
|
+
noOverflow: k = !1,
|
|
22
|
+
noShrink: v = !1,
|
|
22
23
|
grow: e = void 0,
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
24
|
+
width: d,
|
|
25
|
+
height: g,
|
|
25
26
|
children: A,
|
|
26
|
-
className:
|
|
27
|
-
fullWidth:
|
|
28
|
-
fullHeight:
|
|
27
|
+
className: C,
|
|
28
|
+
fullWidth: N,
|
|
29
|
+
fullHeight: R,
|
|
30
|
+
fitContentWidth: b,
|
|
29
31
|
style: p,
|
|
30
32
|
// --- MPProps
|
|
31
|
-
m:
|
|
32
|
-
mt:
|
|
33
|
-
mr:
|
|
34
|
-
mb:
|
|
35
|
-
ml:
|
|
36
|
-
p:
|
|
37
|
-
pt:
|
|
38
|
-
pr:
|
|
39
|
-
pb:
|
|
40
|
-
pl:
|
|
41
|
-
} =
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
m: n,
|
|
34
|
+
mt: i,
|
|
35
|
+
mr: l,
|
|
36
|
+
mb: s,
|
|
37
|
+
ml: f,
|
|
38
|
+
p: h,
|
|
39
|
+
pt: m,
|
|
40
|
+
pr: _,
|
|
41
|
+
pb: w,
|
|
42
|
+
pl: u
|
|
43
|
+
} = S, j = W(), q = H(t.root, C, {
|
|
44
|
+
[t["full-width"]]: N,
|
|
45
|
+
[t["full-height"]]: R,
|
|
46
|
+
[t["fit-content-width"]]: b,
|
|
47
|
+
[t["no-overflow"]]: k,
|
|
48
|
+
[t["no-shrink"]]: v,
|
|
49
|
+
[t["no-grow"]]: e === !1,
|
|
50
|
+
[t.grow]: e === !0
|
|
51
|
+
}), B = c.useMemo(() => a.getAllMPAttrs({
|
|
52
|
+
m: n,
|
|
53
|
+
mt: i,
|
|
54
|
+
mr: l,
|
|
55
|
+
mb: s,
|
|
56
|
+
ml: f,
|
|
57
|
+
p: h,
|
|
58
|
+
pt: m,
|
|
59
|
+
pr: _,
|
|
60
|
+
pb: w,
|
|
61
|
+
pl: u
|
|
59
62
|
}), [
|
|
63
|
+
n,
|
|
64
|
+
i,
|
|
60
65
|
l,
|
|
61
66
|
s,
|
|
62
|
-
n,
|
|
63
67
|
f,
|
|
64
|
-
i,
|
|
65
|
-
c,
|
|
66
68
|
h,
|
|
67
|
-
|
|
69
|
+
m,
|
|
68
70
|
_,
|
|
69
|
-
w
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
w,
|
|
72
|
+
u
|
|
73
|
+
]), x = c.useMemo(() => a.getAllMPStyles({
|
|
74
|
+
m: n,
|
|
75
|
+
mt: i,
|
|
76
|
+
mr: l,
|
|
77
|
+
mb: s,
|
|
78
|
+
ml: f,
|
|
79
|
+
p: h,
|
|
80
|
+
pt: m,
|
|
81
|
+
pr: _,
|
|
82
|
+
pb: w,
|
|
83
|
+
pl: u
|
|
81
84
|
}), [
|
|
85
|
+
n,
|
|
86
|
+
i,
|
|
82
87
|
l,
|
|
83
88
|
s,
|
|
84
|
-
n,
|
|
85
89
|
f,
|
|
86
|
-
i,
|
|
87
|
-
c,
|
|
88
90
|
h,
|
|
89
|
-
|
|
91
|
+
m,
|
|
90
92
|
_,
|
|
91
|
-
w
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...
|
|
93
|
+
w,
|
|
94
|
+
u
|
|
95
|
+
]), O = c.useMemo(() => {
|
|
96
|
+
const o = {
|
|
97
|
+
...x,
|
|
98
|
+
...j,
|
|
96
99
|
...p || {}
|
|
97
100
|
};
|
|
98
|
-
return
|
|
99
|
-
}, [e,
|
|
100
|
-
return /* @__PURE__ */ P("div", { ...
|
|
101
|
+
return d && (o.width = y(d)), g && (o.height = y(g)), !o.width && e === !0 && (o.width = "1px"), o;
|
|
102
|
+
}, [e, g, x, p, d, j]);
|
|
103
|
+
return /* @__PURE__ */ P("div", { ...B, ref: M, className: q, style: O, children: A });
|
|
101
104
|
});
|
|
102
105
|
export {
|
|
103
|
-
|
|
106
|
+
K as Box
|
|
104
107
|
};
|