@willphan1712000/frontend 1.9.1 → 1.9.2
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/index.d.mts +41 -18
- package/dist/index.d.ts +41 -18
- package/dist/index.js +363 -228
- package/dist/index.mjs +363 -228
- package/package.json +2 -6
package/dist/index.mjs
CHANGED
|
@@ -53,6 +53,142 @@ var __async = (__this, __arguments, generator) => {
|
|
|
53
53
|
// src/components/DropdownSelect/DropdownSelect.tsx
|
|
54
54
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
55
55
|
|
|
56
|
+
// src/components/Icons/X.tsx
|
|
57
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
58
|
+
var X = (_a) => {
|
|
59
|
+
var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
|
|
60
|
+
return /* @__PURE__ */ jsxs(
|
|
61
|
+
"svg",
|
|
62
|
+
__spreadProps(__spreadValues({
|
|
63
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
+
width: size,
|
|
65
|
+
height: size,
|
|
66
|
+
viewBox: "0 0 24 24",
|
|
67
|
+
fill: "none",
|
|
68
|
+
stroke: color,
|
|
69
|
+
strokeWidth: "2",
|
|
70
|
+
strokeLinecap: "round",
|
|
71
|
+
strokeLinejoin: "round"
|
|
72
|
+
}, props), {
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
75
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
var X_default = X;
|
|
81
|
+
|
|
82
|
+
// src/components/Icons/TrashCan.tsx
|
|
83
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
84
|
+
var TrashCan = (_a) => {
|
|
85
|
+
var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
|
|
86
|
+
return /* @__PURE__ */ jsx2(
|
|
87
|
+
"svg",
|
|
88
|
+
__spreadProps(__spreadValues({
|
|
89
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
+
width: size,
|
|
91
|
+
height: size,
|
|
92
|
+
viewBox: "0 0 448 512",
|
|
93
|
+
fill: color
|
|
94
|
+
}, props), {
|
|
95
|
+
children: /* @__PURE__ */ jsx2("path", { d: "M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128h384V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z" })
|
|
96
|
+
})
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
var TrashCan_default = TrashCan;
|
|
100
|
+
|
|
101
|
+
// src/components/Icons/Edit.tsx
|
|
102
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
103
|
+
var Edit = (_a) => {
|
|
104
|
+
var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
|
|
105
|
+
return /* @__PURE__ */ jsx3(
|
|
106
|
+
"svg",
|
|
107
|
+
__spreadProps(__spreadValues({
|
|
108
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
109
|
+
width: size,
|
|
110
|
+
height: size,
|
|
111
|
+
viewBox: "0 0 24 24",
|
|
112
|
+
fill: color
|
|
113
|
+
}, props), {
|
|
114
|
+
children: /* @__PURE__ */ jsx3("path", { d: "M6.41421 15.89L16.5563 5.74786L15.1421 4.33365L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6474L14.435 2.21233C14.8256 1.8218 15.4587 1.8218 15.8492 2.21233L18.6777 5.04075C19.0682 5.43128 19.0682 6.06444 18.6777 6.45497L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z" })
|
|
115
|
+
})
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
var Edit_default = Edit;
|
|
119
|
+
|
|
120
|
+
// src/components/Icons/CloudUpload.tsx
|
|
121
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
122
|
+
var CloudUpload = (_a) => {
|
|
123
|
+
var _b = _a, {
|
|
124
|
+
size = 24,
|
|
125
|
+
color = "currentColor"
|
|
126
|
+
} = _b, props = __objRest(_b, [
|
|
127
|
+
"size",
|
|
128
|
+
"color"
|
|
129
|
+
]);
|
|
130
|
+
return /* @__PURE__ */ jsxs2(
|
|
131
|
+
"svg",
|
|
132
|
+
__spreadProps(__spreadValues({
|
|
133
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
134
|
+
width: size,
|
|
135
|
+
height: size,
|
|
136
|
+
viewBox: "0 0 512 512"
|
|
137
|
+
}, props), {
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsx4(
|
|
140
|
+
"path",
|
|
141
|
+
{
|
|
142
|
+
d: "M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8-69 0-113.44 45.79-128 91.2-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56",
|
|
143
|
+
fill: "none",
|
|
144
|
+
stroke: color,
|
|
145
|
+
strokeLinecap: "round",
|
|
146
|
+
strokeLinejoin: "round",
|
|
147
|
+
strokeWidth: "30"
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
/* @__PURE__ */ jsx4(
|
|
151
|
+
"path",
|
|
152
|
+
{
|
|
153
|
+
fill: "none",
|
|
154
|
+
stroke: color,
|
|
155
|
+
strokeLinecap: "round",
|
|
156
|
+
strokeLinejoin: "round",
|
|
157
|
+
strokeWidth: "30",
|
|
158
|
+
d: "M320 255.79l-64-64-64 64M256 448.21V207.79"
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
]
|
|
162
|
+
})
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
var CloudUpload_default = CloudUpload;
|
|
166
|
+
|
|
167
|
+
// src/components/Icons/ArrowRotateLeft.tsx
|
|
168
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
169
|
+
var ArrowRotateLeft = (_a) => {
|
|
170
|
+
var _b = _a, {
|
|
171
|
+
size = 24,
|
|
172
|
+
color = "currentColor"
|
|
173
|
+
} = _b, props = __objRest(_b, [
|
|
174
|
+
"size",
|
|
175
|
+
"color"
|
|
176
|
+
]);
|
|
177
|
+
return /* @__PURE__ */ jsx5(
|
|
178
|
+
"svg",
|
|
179
|
+
__spreadProps(__spreadValues({
|
|
180
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
181
|
+
width: size,
|
|
182
|
+
height: size,
|
|
183
|
+
viewBox: "0 0 512 512",
|
|
184
|
+
fill: color
|
|
185
|
+
}, props), {
|
|
186
|
+
children: /* @__PURE__ */ jsx5("path", { d: "M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z" })
|
|
187
|
+
})
|
|
188
|
+
);
|
|
189
|
+
};
|
|
190
|
+
var ArrowRotateLeft_default = ArrowRotateLeft;
|
|
191
|
+
|
|
56
192
|
// src/components/DropdownSelect/context.ts
|
|
57
193
|
import { createContext, useContext } from "react";
|
|
58
194
|
var MyContext = createContext(void 0);
|
|
@@ -69,9 +205,13 @@ import { useEffect, useRef, useState } from "react";
|
|
|
69
205
|
var styles = {
|
|
70
206
|
container: {
|
|
71
207
|
width: "100%",
|
|
208
|
+
height: "100%",
|
|
72
209
|
position: "relative"
|
|
73
210
|
},
|
|
74
211
|
select_box: {
|
|
212
|
+
boxSizing: "border-box",
|
|
213
|
+
width: "100%",
|
|
214
|
+
height: "100%",
|
|
75
215
|
borderRadius: "10px",
|
|
76
216
|
border: "solid 1px #dadada",
|
|
77
217
|
padding: "5px 10px",
|
|
@@ -84,6 +224,7 @@ var styles = {
|
|
|
84
224
|
marginRight: "auto"
|
|
85
225
|
},
|
|
86
226
|
close: {
|
|
227
|
+
padding: "1%",
|
|
87
228
|
borderRadius: "50%",
|
|
88
229
|
width: "20px",
|
|
89
230
|
height: "20px",
|
|
@@ -137,9 +278,9 @@ var styles = {
|
|
|
137
278
|
var styles_default = styles;
|
|
138
279
|
|
|
139
280
|
// src/components/DropdownSelect/Search.tsx
|
|
140
|
-
import { jsx } from "react/jsx-runtime";
|
|
281
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
141
282
|
var Search = ({ options, onSearch }) => {
|
|
142
|
-
return /* @__PURE__ */
|
|
283
|
+
return /* @__PURE__ */ jsx6("div", { style: styles_default.search_border, children: /* @__PURE__ */ jsx6(
|
|
143
284
|
"input",
|
|
144
285
|
{
|
|
145
286
|
placeholder: "Search",
|
|
@@ -157,7 +298,7 @@ var Search = ({ options, onSearch }) => {
|
|
|
157
298
|
var Search_default = Search;
|
|
158
299
|
|
|
159
300
|
// src/components/DropdownSelect/Dropdown.tsx
|
|
160
|
-
import { jsx as
|
|
301
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
161
302
|
var Dropdown = () => {
|
|
162
303
|
const { options, onChange, setOpen } = useMyContext();
|
|
163
304
|
const [isVisible, setVisible] = useState(true);
|
|
@@ -183,7 +324,7 @@ var Dropdown = () => {
|
|
|
183
324
|
window.removeEventListener("scroll", handleResize);
|
|
184
325
|
};
|
|
185
326
|
}, []);
|
|
186
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ jsxs3(
|
|
187
328
|
"div",
|
|
188
329
|
{
|
|
189
330
|
ref: dropdownRef,
|
|
@@ -193,8 +334,8 @@ var Dropdown = () => {
|
|
|
193
334
|
bottom: "calc(100% + 5px)"
|
|
194
335
|
}),
|
|
195
336
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
optionsCopy.map((option, key) => /* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ jsx7(Search_default, { options, onSearch: setOption }),
|
|
338
|
+
optionsCopy.map((option, key) => /* @__PURE__ */ jsx7(
|
|
198
339
|
"div",
|
|
199
340
|
{
|
|
200
341
|
style: __spreadProps(__spreadValues({}, styles_default.element), {
|
|
@@ -217,8 +358,7 @@ var Dropdown = () => {
|
|
|
217
358
|
var Dropdown_default = Dropdown;
|
|
218
359
|
|
|
219
360
|
// src/components/DropdownSelect/DropdownSelect.tsx
|
|
220
|
-
import {
|
|
221
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
361
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
222
362
|
var DropdownSelect = ({ options, value, onChange }) => {
|
|
223
363
|
const [open, setOpen] = useState2(false);
|
|
224
364
|
const [isHoverClose, setHoverClose] = useState2(false);
|
|
@@ -233,7 +373,7 @@ var DropdownSelect = ({ options, value, onChange }) => {
|
|
|
233
373
|
window.addEventListener("click", clickHandler);
|
|
234
374
|
return () => window.removeEventListener("click", clickHandler);
|
|
235
375
|
}, []);
|
|
236
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ jsx8(
|
|
237
377
|
MyContext.Provider,
|
|
238
378
|
{
|
|
239
379
|
value: {
|
|
@@ -242,15 +382,15 @@ var DropdownSelect = ({ options, value, onChange }) => {
|
|
|
242
382
|
onChange,
|
|
243
383
|
setOpen
|
|
244
384
|
},
|
|
245
|
-
children: /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
385
|
+
children: /* @__PURE__ */ jsxs4("div", { style: styles_default.container, ref: selectRef, children: [
|
|
386
|
+
/* @__PURE__ */ jsxs4(
|
|
247
387
|
"div",
|
|
248
388
|
{
|
|
249
389
|
style: styles_default.select_box,
|
|
250
390
|
onClick: () => setOpen((prev) => !prev),
|
|
251
391
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ jsx8("div", { style: styles_default.value, children: value }),
|
|
393
|
+
/* @__PURE__ */ jsx8(
|
|
254
394
|
"div",
|
|
255
395
|
{
|
|
256
396
|
style: __spreadProps(__spreadValues({}, styles_default.close), {
|
|
@@ -263,13 +403,13 @@ var DropdownSelect = ({ options, value, onChange }) => {
|
|
|
263
403
|
},
|
|
264
404
|
onMouseEnter: () => setHoverClose(true),
|
|
265
405
|
onMouseLeave: () => setHoverClose(false),
|
|
266
|
-
children: /* @__PURE__ */
|
|
406
|
+
children: /* @__PURE__ */ jsx8(X_default, {})
|
|
267
407
|
}
|
|
268
408
|
)
|
|
269
409
|
]
|
|
270
410
|
}
|
|
271
411
|
),
|
|
272
|
-
open && /* @__PURE__ */
|
|
412
|
+
open && /* @__PURE__ */ jsx8(Dropdown_default, {})
|
|
273
413
|
] })
|
|
274
414
|
}
|
|
275
415
|
);
|
|
@@ -355,7 +495,7 @@ var styles2 = {
|
|
|
355
495
|
var styles_default2 = styles2;
|
|
356
496
|
|
|
357
497
|
// src/components/RangeSlider/RangeSlider.tsx
|
|
358
|
-
import { jsx as
|
|
498
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
359
499
|
var RangeSlider = ({
|
|
360
500
|
min = "0",
|
|
361
501
|
max = "100",
|
|
@@ -413,7 +553,7 @@ var RangeSlider = ({
|
|
|
413
553
|
document.removeEventListener("touchend", handleMouseUp);
|
|
414
554
|
};
|
|
415
555
|
}, [isMouseDown]);
|
|
416
|
-
return /* @__PURE__ */
|
|
556
|
+
return /* @__PURE__ */ jsxs5(
|
|
417
557
|
"div",
|
|
418
558
|
{
|
|
419
559
|
style: __spreadProps(__spreadValues({}, styles_default2.slider_border), {
|
|
@@ -429,7 +569,7 @@ var RangeSlider = ({
|
|
|
429
569
|
},
|
|
430
570
|
ref: sliderBorderRef,
|
|
431
571
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ jsx9(
|
|
433
573
|
"span",
|
|
434
574
|
{
|
|
435
575
|
style: __spreadProps(__spreadValues({}, styles_default2.fill), {
|
|
@@ -438,7 +578,7 @@ var RangeSlider = ({
|
|
|
438
578
|
})
|
|
439
579
|
}
|
|
440
580
|
),
|
|
441
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ jsxs5(
|
|
442
582
|
"span",
|
|
443
583
|
{
|
|
444
584
|
style: __spreadProps(__spreadValues({}, styles_default2.thumb), {
|
|
@@ -448,7 +588,7 @@ var RangeSlider = ({
|
|
|
448
588
|
onMouseMove: () => setHover(true),
|
|
449
589
|
onMouseLeave: () => setHover(false),
|
|
450
590
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ jsx9(
|
|
452
592
|
"span",
|
|
453
593
|
{
|
|
454
594
|
style: __spreadProps(__spreadValues({}, styles_default2.value), {
|
|
@@ -457,7 +597,7 @@ var RangeSlider = ({
|
|
|
457
597
|
children: value
|
|
458
598
|
}
|
|
459
599
|
),
|
|
460
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ jsx9(
|
|
461
601
|
"span",
|
|
462
602
|
{
|
|
463
603
|
style: __spreadProps(__spreadValues({}, styles_default2.thumb_shadow), {
|
|
@@ -469,7 +609,7 @@ var RangeSlider = ({
|
|
|
469
609
|
]
|
|
470
610
|
}
|
|
471
611
|
),
|
|
472
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ jsx9(
|
|
473
613
|
"span",
|
|
474
614
|
{
|
|
475
615
|
style: __spreadProps(__spreadValues({}, styles_default2.rest), {
|
|
@@ -497,7 +637,9 @@ var styles3 = {
|
|
|
497
637
|
msOverflowStyle: "none",
|
|
498
638
|
boxSizing: "border-box",
|
|
499
639
|
margin: 0,
|
|
500
|
-
padding: 0
|
|
640
|
+
padding: 0,
|
|
641
|
+
width: "100%",
|
|
642
|
+
height: "100%"
|
|
501
643
|
},
|
|
502
644
|
background: {
|
|
503
645
|
position: "relative",
|
|
@@ -542,22 +684,22 @@ var styles3 = {
|
|
|
542
684
|
var styles_default3 = styles3;
|
|
543
685
|
|
|
544
686
|
// src/components/OptionSlider/OptionSlider.tsx
|
|
545
|
-
import { jsx as
|
|
687
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
546
688
|
var OptionSlider = ({
|
|
547
689
|
value,
|
|
548
690
|
onChange,
|
|
549
|
-
width = "200",
|
|
550
691
|
options,
|
|
551
692
|
color = "#f0f0f7"
|
|
552
693
|
}) => {
|
|
553
|
-
return /* @__PURE__ */
|
|
694
|
+
return /* @__PURE__ */ jsxs6(
|
|
554
695
|
"div",
|
|
555
696
|
{
|
|
556
697
|
style: __spreadProps(__spreadValues({}, styles_default3.border), {
|
|
557
|
-
width:
|
|
698
|
+
width: `100%`,
|
|
699
|
+
height: `100%`
|
|
558
700
|
}),
|
|
559
701
|
children: [
|
|
560
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ jsx10(
|
|
561
703
|
"div",
|
|
562
704
|
{
|
|
563
705
|
style: __spreadProps(__spreadValues({}, styles_default3.background), {
|
|
@@ -565,7 +707,7 @@ var OptionSlider = ({
|
|
|
565
707
|
})
|
|
566
708
|
}
|
|
567
709
|
),
|
|
568
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ jsx10("div", { style: styles_default3.options, children: options.map((option, key) => /* @__PURE__ */ jsx10(
|
|
569
711
|
"div",
|
|
570
712
|
{
|
|
571
713
|
style: __spreadProps(__spreadValues({}, styles_default3.element), {
|
|
@@ -696,7 +838,7 @@ var styles4 = {
|
|
|
696
838
|
var styles_default4 = styles4;
|
|
697
839
|
|
|
698
840
|
// src/components/ColorPickerSlider/ColorPickerSlider.tsx
|
|
699
|
-
import { jsx as
|
|
841
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
700
842
|
var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
|
|
701
843
|
let percentage = encode2(value);
|
|
702
844
|
const sliderBorderRef = useRef4(null);
|
|
@@ -742,7 +884,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
|
|
|
742
884
|
document.removeEventListener("touchend", handleMouseUp);
|
|
743
885
|
};
|
|
744
886
|
}, [isMouseDown]);
|
|
745
|
-
return /* @__PURE__ */
|
|
887
|
+
return /* @__PURE__ */ jsxs7(
|
|
746
888
|
"div",
|
|
747
889
|
{
|
|
748
890
|
style: __spreadProps(__spreadValues({}, styles_default4.border), {
|
|
@@ -758,7 +900,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
|
|
|
758
900
|
},
|
|
759
901
|
ref: sliderBorderRef,
|
|
760
902
|
children: [
|
|
761
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ jsx11(
|
|
762
904
|
"div",
|
|
763
905
|
{
|
|
764
906
|
style: __spreadProps(__spreadValues({}, styles_default4.thumb), {
|
|
@@ -770,7 +912,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
|
|
|
770
912
|
onMouseLeave: () => setHover(false)
|
|
771
913
|
}
|
|
772
914
|
),
|
|
773
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ jsx11(
|
|
774
916
|
"div",
|
|
775
917
|
{
|
|
776
918
|
style: __spreadProps(__spreadValues({}, styles_default4.label), {
|
|
@@ -803,7 +945,15 @@ import { useEffect as useEffect5, useRef as useRef5, useState as useState5 } fro
|
|
|
803
945
|
|
|
804
946
|
// src/components/MultiSelect/styles.ts
|
|
805
947
|
var styles5 = {
|
|
948
|
+
container: {
|
|
949
|
+
width: "100%",
|
|
950
|
+
height: "100%",
|
|
951
|
+
position: "relative"
|
|
952
|
+
},
|
|
806
953
|
select_box: {
|
|
954
|
+
boxSizing: "border-box",
|
|
955
|
+
width: "100%",
|
|
956
|
+
height: "100%",
|
|
807
957
|
borderRadius: "10px",
|
|
808
958
|
border: "solid 1px #dadada",
|
|
809
959
|
padding: "5px 10px",
|
|
@@ -819,28 +969,28 @@ var styles5 = {
|
|
|
819
969
|
flexWrap: "wrap"
|
|
820
970
|
},
|
|
821
971
|
eachValue: {
|
|
972
|
+
height: "100%",
|
|
822
973
|
borderRadius: "5px",
|
|
823
974
|
backgroundColor: "#f0f0f7",
|
|
824
975
|
padding: "5px",
|
|
825
|
-
position: "relative"
|
|
976
|
+
position: "relative",
|
|
977
|
+
display: "flex",
|
|
978
|
+
flexDirection: "row",
|
|
979
|
+
justifyContent: "center",
|
|
980
|
+
alignItems: "center",
|
|
981
|
+
fontSize: "1rem",
|
|
982
|
+
gap: "5px"
|
|
826
983
|
},
|
|
827
984
|
closeEach: {
|
|
828
|
-
position: "absolute",
|
|
829
|
-
top: 0,
|
|
830
|
-
right: 0,
|
|
831
|
-
transform: "translate(50%, -50%)",
|
|
832
985
|
borderRadius: "50%",
|
|
833
|
-
backgroundColor: "#fc2c2cf0",
|
|
834
986
|
aspectRatio: 1,
|
|
835
|
-
width: "24px",
|
|
836
987
|
display: "flex",
|
|
837
988
|
justifyContent: "center",
|
|
838
989
|
alignItems: "center",
|
|
839
|
-
color: "
|
|
840
|
-
transition: "scale .2s linear",
|
|
841
|
-
transformOrigin: "top right"
|
|
990
|
+
color: "#000"
|
|
842
991
|
},
|
|
843
992
|
close: {
|
|
993
|
+
padding: "1%",
|
|
844
994
|
borderRadius: "50%",
|
|
845
995
|
width: "20px",
|
|
846
996
|
height: "20px",
|
|
@@ -854,7 +1004,8 @@ var styles5 = {
|
|
|
854
1004
|
borderRadius: "10px",
|
|
855
1005
|
justifyContent: "flex-start",
|
|
856
1006
|
alignItems: "center",
|
|
857
|
-
cursor: "pointer"
|
|
1007
|
+
cursor: "pointer",
|
|
1008
|
+
fontSize: "1rem"
|
|
858
1009
|
},
|
|
859
1010
|
dropdown: {
|
|
860
1011
|
position: "absolute",
|
|
@@ -893,9 +1044,9 @@ var styles5 = {
|
|
|
893
1044
|
var styles_default5 = styles5;
|
|
894
1045
|
|
|
895
1046
|
// src/components/MultiSelect/Search.tsx
|
|
896
|
-
import { jsx as
|
|
1047
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
897
1048
|
var Search2 = ({ options, onSearch }) => {
|
|
898
|
-
return /* @__PURE__ */
|
|
1049
|
+
return /* @__PURE__ */ jsx12("div", { style: styles_default5.search_border, children: /* @__PURE__ */ jsx12(
|
|
899
1050
|
"input",
|
|
900
1051
|
{
|
|
901
1052
|
placeholder: "Search...",
|
|
@@ -913,7 +1064,7 @@ var Search2 = ({ options, onSearch }) => {
|
|
|
913
1064
|
var Search_default2 = Search2;
|
|
914
1065
|
|
|
915
1066
|
// src/components/MultiSelect/Dropdown.tsx
|
|
916
|
-
import { jsx as
|
|
1067
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
917
1068
|
var Dropdown2 = () => {
|
|
918
1069
|
const { options, onChange, setOpen } = useMyContext2();
|
|
919
1070
|
const [isVisible, setVisible] = useState5(true);
|
|
@@ -939,7 +1090,7 @@ var Dropdown2 = () => {
|
|
|
939
1090
|
window.removeEventListener("scroll", handleResize);
|
|
940
1091
|
};
|
|
941
1092
|
}, []);
|
|
942
|
-
return /* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ jsxs8(
|
|
943
1094
|
"div",
|
|
944
1095
|
{
|
|
945
1096
|
ref: dropdownRef,
|
|
@@ -949,26 +1100,29 @@ var Dropdown2 = () => {
|
|
|
949
1100
|
bottom: "calc(100% + 5px)"
|
|
950
1101
|
}),
|
|
951
1102
|
children: [
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
optionsCopy.map(
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1103
|
+
/* @__PURE__ */ jsx13(Search_default2, { options, onSearch: setOption }),
|
|
1104
|
+
optionsCopy.map(
|
|
1105
|
+
(option, key) => /* @__PURE__ */ jsx13(
|
|
1106
|
+
"div",
|
|
1107
|
+
{
|
|
1108
|
+
style: __spreadProps(__spreadValues({}, styles_default5.element), {
|
|
1109
|
+
backgroundColor: keyOnHover === key ? "#f0f0f0" : "#fff"
|
|
1110
|
+
}),
|
|
1111
|
+
onClick: () => {
|
|
1112
|
+
onChange((prev) => {
|
|
1113
|
+
if (prev.includes(option.value))
|
|
1114
|
+
return [...prev];
|
|
1115
|
+
return [...prev, option.value];
|
|
1116
|
+
});
|
|
1117
|
+
setOpen((prev) => !prev);
|
|
1118
|
+
},
|
|
1119
|
+
onMouseEnter: () => setKeyOnHover(key),
|
|
1120
|
+
onMouseLeave: () => setKeyOnHover(-1),
|
|
1121
|
+
children: option.label
|
|
965
1122
|
},
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
},
|
|
970
|
-
key
|
|
971
|
-
))
|
|
1123
|
+
key
|
|
1124
|
+
)
|
|
1125
|
+
)
|
|
972
1126
|
]
|
|
973
1127
|
}
|
|
974
1128
|
);
|
|
@@ -976,9 +1130,8 @@ var Dropdown2 = () => {
|
|
|
976
1130
|
var Dropdown_default2 = Dropdown2;
|
|
977
1131
|
|
|
978
1132
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
979
|
-
import {
|
|
980
|
-
|
|
981
|
-
var MultiSelect = ({ options, value, onChange, width = "200" }) => {
|
|
1133
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1134
|
+
var MultiSelect = ({ options, value, onChange }) => {
|
|
982
1135
|
const [open, setOpen] = useState6(false);
|
|
983
1136
|
const [isHoverClose, setHoverClose] = useState6(false);
|
|
984
1137
|
const [isHoverCloseEach, setHoverCloseEach] = useState6(-1);
|
|
@@ -993,7 +1146,7 @@ var MultiSelect = ({ options, value, onChange, width = "200" }) => {
|
|
|
993
1146
|
window.addEventListener("click", clickHandler);
|
|
994
1147
|
return () => window.removeEventListener("click", clickHandler);
|
|
995
1148
|
}, []);
|
|
996
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ jsx14(
|
|
997
1150
|
MyContext2.Provider,
|
|
998
1151
|
{
|
|
999
1152
|
value: {
|
|
@@ -1002,69 +1155,57 @@ var MultiSelect = ({ options, value, onChange, width = "200" }) => {
|
|
|
1002
1155
|
onChange,
|
|
1003
1156
|
setOpen
|
|
1004
1157
|
},
|
|
1005
|
-
children: /* @__PURE__ */
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
onMouseEnter: () => setHoverClose(true),
|
|
1057
|
-
onMouseLeave: () => setHoverClose(false),
|
|
1058
|
-
children: /* @__PURE__ */ jsx9(IoMdClose2, {})
|
|
1059
|
-
}
|
|
1060
|
-
)
|
|
1061
|
-
]
|
|
1062
|
-
}
|
|
1063
|
-
),
|
|
1064
|
-
open && /* @__PURE__ */ jsx9(Dropdown_default2, {})
|
|
1065
|
-
]
|
|
1066
|
-
}
|
|
1067
|
-
)
|
|
1158
|
+
children: /* @__PURE__ */ jsxs9("div", { style: styles_default5.container, ref: selectRef, children: [
|
|
1159
|
+
/* @__PURE__ */ jsxs9(
|
|
1160
|
+
"div",
|
|
1161
|
+
{
|
|
1162
|
+
style: styles_default5.select_box,
|
|
1163
|
+
onClick: () => setOpen((prev) => !prev),
|
|
1164
|
+
children: [
|
|
1165
|
+
/* @__PURE__ */ jsx14("div", { style: styles_default5.value, children: value.map((eachValue, key) => /* @__PURE__ */ jsxs9("div", { style: styles_default5.eachValue, children: [
|
|
1166
|
+
eachValue,
|
|
1167
|
+
/* @__PURE__ */ jsx14(
|
|
1168
|
+
"span",
|
|
1169
|
+
{
|
|
1170
|
+
onMouseEnter: () => {
|
|
1171
|
+
setHoverCloseEach(key);
|
|
1172
|
+
},
|
|
1173
|
+
onMouseLeave: () => {
|
|
1174
|
+
setHoverCloseEach(-1);
|
|
1175
|
+
},
|
|
1176
|
+
title: "Remove this option",
|
|
1177
|
+
style: __spreadValues({}, styles_default5.closeEach),
|
|
1178
|
+
onClick: () => {
|
|
1179
|
+
onChange(
|
|
1180
|
+
(prev) => prev.filter((o) => o !== eachValue)
|
|
1181
|
+
);
|
|
1182
|
+
setOpen((prev) => !prev);
|
|
1183
|
+
},
|
|
1184
|
+
children: /* @__PURE__ */ jsx14(X_default, { size: "20" })
|
|
1185
|
+
}
|
|
1186
|
+
)
|
|
1187
|
+
] }, key)) }),
|
|
1188
|
+
/* @__PURE__ */ jsx14(
|
|
1189
|
+
"div",
|
|
1190
|
+
{
|
|
1191
|
+
style: __spreadProps(__spreadValues({}, styles_default5.close), {
|
|
1192
|
+
backgroundColor: isHoverClose ? "#f0f0f0" : "#fff"
|
|
1193
|
+
}),
|
|
1194
|
+
title: "Clear all",
|
|
1195
|
+
onClick: () => {
|
|
1196
|
+
onChange([]);
|
|
1197
|
+
setOpen((prev) => !prev);
|
|
1198
|
+
},
|
|
1199
|
+
onMouseEnter: () => setHoverClose(true),
|
|
1200
|
+
onMouseLeave: () => setHoverClose(false),
|
|
1201
|
+
children: /* @__PURE__ */ jsx14(X_default, {})
|
|
1202
|
+
}
|
|
1203
|
+
)
|
|
1204
|
+
]
|
|
1205
|
+
}
|
|
1206
|
+
),
|
|
1207
|
+
open && /* @__PURE__ */ jsx14(Dropdown_default2, {})
|
|
1208
|
+
] })
|
|
1068
1209
|
}
|
|
1069
1210
|
);
|
|
1070
1211
|
};
|
|
@@ -1161,7 +1302,7 @@ var styles6 = (first, second) => {
|
|
|
1161
1302
|
var styles_default6 = styles6;
|
|
1162
1303
|
|
|
1163
1304
|
// src/components/Buttons/gradient/Gradient.tsx
|
|
1164
|
-
import { jsx as
|
|
1305
|
+
import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1165
1306
|
var Gradient = () => {
|
|
1166
1307
|
const data = useButtonContext();
|
|
1167
1308
|
const styles12 = styles_default6(data.first, data.second);
|
|
@@ -1177,23 +1318,23 @@ var Gradient = () => {
|
|
|
1177
1318
|
return controls.stop;
|
|
1178
1319
|
}
|
|
1179
1320
|
}, [data.isLoading, angle]);
|
|
1180
|
-
return /* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ jsxs10("div", { style: styles12.container, children: [
|
|
1322
|
+
/* @__PURE__ */ jsx15("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ jsxs10("div", { style: styles12.labelWrapper, children: [
|
|
1323
|
+
/* @__PURE__ */ jsx15("div", { style: styles12.labelBefore }),
|
|
1324
|
+
/* @__PURE__ */ jsx15(
|
|
1184
1325
|
"div",
|
|
1185
1326
|
{
|
|
1186
1327
|
style: __spreadProps(__spreadValues({}, styles12.label), { backgroundColor: data.main }),
|
|
1187
|
-
children: /* @__PURE__ */
|
|
1328
|
+
children: /* @__PURE__ */ jsxs10("p", { style: __spreadProps(__spreadValues({}, styles12.p), { color: `${data.text}` }), children: [
|
|
1188
1329
|
data.children,
|
|
1189
1330
|
" ",
|
|
1190
1331
|
data.content
|
|
1191
1332
|
] })
|
|
1192
1333
|
}
|
|
1193
1334
|
),
|
|
1194
|
-
/* @__PURE__ */
|
|
1335
|
+
/* @__PURE__ */ jsx15("div", { style: styles12.labelAfter })
|
|
1195
1336
|
] }) })),
|
|
1196
|
-
/* @__PURE__ */
|
|
1337
|
+
/* @__PURE__ */ jsx15(
|
|
1197
1338
|
motion.div,
|
|
1198
1339
|
{
|
|
1199
1340
|
style: __spreadProps(__spreadValues({}, styles12.btnAfter), {
|
|
@@ -1269,26 +1410,26 @@ var styles7 = (first) => {
|
|
|
1269
1410
|
var styles_default7 = styles7;
|
|
1270
1411
|
|
|
1271
1412
|
// src/components/Buttons/solid/Solid.tsx
|
|
1272
|
-
import { jsx as
|
|
1413
|
+
import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1273
1414
|
var Solid = () => {
|
|
1274
1415
|
const data = useButtonContext();
|
|
1275
1416
|
const styles12 = styles_default7(data.first);
|
|
1276
|
-
return /* @__PURE__ */
|
|
1417
|
+
return /* @__PURE__ */ jsxs11(
|
|
1277
1418
|
"div",
|
|
1278
1419
|
{
|
|
1279
1420
|
style: {
|
|
1280
1421
|
position: "relative"
|
|
1281
1422
|
},
|
|
1282
1423
|
children: [
|
|
1283
|
-
/* @__PURE__ */
|
|
1284
|
-
/* @__PURE__ */
|
|
1285
|
-
/* @__PURE__ */
|
|
1424
|
+
/* @__PURE__ */ jsx16("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ jsxs11("div", { style: { position: "relative" }, children: [
|
|
1425
|
+
/* @__PURE__ */ jsx16("div", { style: styles12.labelBefore }),
|
|
1426
|
+
/* @__PURE__ */ jsx16(
|
|
1286
1427
|
"div",
|
|
1287
1428
|
{
|
|
1288
1429
|
style: __spreadProps(__spreadValues({}, styles12.label), {
|
|
1289
1430
|
backgroundColor: data.main
|
|
1290
1431
|
}),
|
|
1291
|
-
children: /* @__PURE__ */
|
|
1432
|
+
children: /* @__PURE__ */ jsxs11(
|
|
1292
1433
|
"p",
|
|
1293
1434
|
{
|
|
1294
1435
|
style: __spreadProps(__spreadValues({}, styles12.p), {
|
|
@@ -1303,9 +1444,9 @@ var Solid = () => {
|
|
|
1303
1444
|
)
|
|
1304
1445
|
}
|
|
1305
1446
|
),
|
|
1306
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ jsx16("div", { style: styles12.labelAfter })
|
|
1307
1448
|
] }) })),
|
|
1308
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ jsx16("div", { style: styles12.btnAfter })
|
|
1309
1450
|
]
|
|
1310
1451
|
}
|
|
1311
1452
|
);
|
|
@@ -1313,7 +1454,7 @@ var Solid = () => {
|
|
|
1313
1454
|
var Solid_default = Solid;
|
|
1314
1455
|
|
|
1315
1456
|
// src/components/Buttons/Button.tsx
|
|
1316
|
-
import { jsx as
|
|
1457
|
+
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1317
1458
|
var ButtonContext = createContext3(void 0);
|
|
1318
1459
|
function useButtonContext() {
|
|
1319
1460
|
const data = useContext3(ButtonContext);
|
|
@@ -1344,7 +1485,7 @@ var Button = (_a) => {
|
|
|
1344
1485
|
]);
|
|
1345
1486
|
switch (buttonType) {
|
|
1346
1487
|
case "gradient":
|
|
1347
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ jsx17(
|
|
1348
1489
|
ButtonContext.Provider,
|
|
1349
1490
|
{
|
|
1350
1491
|
value: {
|
|
@@ -1357,11 +1498,11 @@ var Button = (_a) => {
|
|
|
1357
1498
|
isLoading,
|
|
1358
1499
|
children
|
|
1359
1500
|
},
|
|
1360
|
-
children: /* @__PURE__ */
|
|
1501
|
+
children: /* @__PURE__ */ jsx17(Gradient_default, {})
|
|
1361
1502
|
}
|
|
1362
1503
|
);
|
|
1363
1504
|
case "solid":
|
|
1364
|
-
return /* @__PURE__ */
|
|
1505
|
+
return /* @__PURE__ */ jsx17(
|
|
1365
1506
|
ButtonContext.Provider,
|
|
1366
1507
|
{
|
|
1367
1508
|
value: {
|
|
@@ -1373,11 +1514,11 @@ var Button = (_a) => {
|
|
|
1373
1514
|
isLoading,
|
|
1374
1515
|
children
|
|
1375
1516
|
},
|
|
1376
|
-
children: /* @__PURE__ */
|
|
1517
|
+
children: /* @__PURE__ */ jsx17(Solid_default, {})
|
|
1377
1518
|
}
|
|
1378
1519
|
);
|
|
1379
1520
|
default:
|
|
1380
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ jsxs12("button", __spreadProps(__spreadValues({}, props), { children: [
|
|
1381
1522
|
children,
|
|
1382
1523
|
" ",
|
|
1383
1524
|
content
|
|
@@ -1414,7 +1555,7 @@ var styles8 = (first) => {
|
|
|
1414
1555
|
var styles_default8 = styles8;
|
|
1415
1556
|
|
|
1416
1557
|
// src/components/Buttons/modern/Modern.tsx
|
|
1417
|
-
import { jsx as
|
|
1558
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1418
1559
|
var Modern = (_a) => {
|
|
1419
1560
|
var _b = _a, {
|
|
1420
1561
|
first = "#fff",
|
|
@@ -1442,7 +1583,7 @@ var Modern = (_a) => {
|
|
|
1442
1583
|
const borderFirst = `solid 1px ${first}`;
|
|
1443
1584
|
const shadowTransparent = `${transparentColor} 0px 0px 15px 2px`;
|
|
1444
1585
|
const borderTransparent = `solid 1px ${transparentColor}`;
|
|
1445
|
-
return /* @__PURE__ */
|
|
1586
|
+
return /* @__PURE__ */ jsx18(
|
|
1446
1587
|
"a",
|
|
1447
1588
|
__spreadProps(__spreadValues({
|
|
1448
1589
|
style: __spreadValues(__spreadProps(__spreadValues({}, styles_default8(first).btn), {
|
|
@@ -1458,11 +1599,6 @@ var Modern = (_a) => {
|
|
|
1458
1599
|
};
|
|
1459
1600
|
var Modern_default = Modern;
|
|
1460
1601
|
|
|
1461
|
-
// src/components/Avatar/Avatar.tsx
|
|
1462
|
-
import { IoCloudUploadOutline } from "react-icons/io5";
|
|
1463
|
-
import { FaTrashCan } from "react-icons/fa6";
|
|
1464
|
-
import { RiEditLine } from "react-icons/ri";
|
|
1465
|
-
|
|
1466
1602
|
// src/components/Avatar/styles.ts
|
|
1467
1603
|
var others = {
|
|
1468
1604
|
iconSize: "20"
|
|
@@ -1515,7 +1651,7 @@ var styles_default9 = styles9;
|
|
|
1515
1651
|
|
|
1516
1652
|
// src/components/Avatar/Avatar.tsx
|
|
1517
1653
|
import { useEffect as useEffect8, useRef as useRef7, useState as useState8 } from "react";
|
|
1518
|
-
import { jsx as
|
|
1654
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1519
1655
|
var Avatar = ({ src, setValue, options }) => {
|
|
1520
1656
|
const [isOpen, setOpen] = useState8(false);
|
|
1521
1657
|
const [isNew, setNew] = useState8(false);
|
|
@@ -1537,8 +1673,8 @@ var Avatar = ({ src, setValue, options }) => {
|
|
|
1537
1673
|
});
|
|
1538
1674
|
})();
|
|
1539
1675
|
}, []);
|
|
1540
|
-
return /* @__PURE__ */
|
|
1541
|
-
/* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ jsxs13("div", { style: styles_default9.container, children: [
|
|
1677
|
+
/* @__PURE__ */ jsx19(
|
|
1542
1678
|
ImageEditor_default,
|
|
1543
1679
|
{
|
|
1544
1680
|
src,
|
|
@@ -1548,8 +1684,8 @@ var Avatar = ({ src, setValue, options }) => {
|
|
|
1548
1684
|
isNew
|
|
1549
1685
|
}
|
|
1550
1686
|
),
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
1687
|
+
/* @__PURE__ */ jsx19(Image_default, { src, style: styles_default9.image }),
|
|
1688
|
+
/* @__PURE__ */ jsxs13(
|
|
1553
1689
|
Button_default,
|
|
1554
1690
|
{
|
|
1555
1691
|
style: styles_default9.upload,
|
|
@@ -1558,12 +1694,12 @@ var Avatar = ({ src, setValue, options }) => {
|
|
|
1558
1694
|
return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
|
|
1559
1695
|
},
|
|
1560
1696
|
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1697
|
+
/* @__PURE__ */ jsx19(CloudUpload_default, { size: others.iconSize }),
|
|
1562
1698
|
"Upload"
|
|
1563
1699
|
]
|
|
1564
1700
|
}
|
|
1565
1701
|
),
|
|
1566
|
-
/* @__PURE__ */
|
|
1702
|
+
/* @__PURE__ */ jsx19(
|
|
1567
1703
|
UploadImage_default,
|
|
1568
1704
|
{
|
|
1569
1705
|
ref: uploadImageRef,
|
|
@@ -1574,7 +1710,7 @@ var Avatar = ({ src, setValue, options }) => {
|
|
|
1574
1710
|
}
|
|
1575
1711
|
}
|
|
1576
1712
|
),
|
|
1577
|
-
isAbleToRemove && /* @__PURE__ */
|
|
1713
|
+
isAbleToRemove && /* @__PURE__ */ jsxs13(
|
|
1578
1714
|
Button_default,
|
|
1579
1715
|
{
|
|
1580
1716
|
style: styles_default9.remove,
|
|
@@ -1584,18 +1720,18 @@ var Avatar = ({ src, setValue, options }) => {
|
|
|
1584
1720
|
setNew((prev) => !prev);
|
|
1585
1721
|
},
|
|
1586
1722
|
children: [
|
|
1587
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ jsx19(TrashCan_default, { size: others.iconSize, color: "red" }),
|
|
1588
1724
|
"Remove"
|
|
1589
1725
|
]
|
|
1590
1726
|
}
|
|
1591
1727
|
),
|
|
1592
|
-
isAbleToEdit && /* @__PURE__ */
|
|
1728
|
+
isAbleToEdit && /* @__PURE__ */ jsxs13(
|
|
1593
1729
|
Button_default,
|
|
1594
1730
|
{
|
|
1595
1731
|
style: styles_default9.edit,
|
|
1596
1732
|
onClick: () => setOpen((prev) => !prev),
|
|
1597
1733
|
children: [
|
|
1598
|
-
/* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ jsx19(Edit_default, { size: others.iconSize }),
|
|
1599
1735
|
"Edit"
|
|
1600
1736
|
]
|
|
1601
1737
|
}
|
|
@@ -1651,7 +1787,7 @@ var styles10 = {
|
|
|
1651
1787
|
var InputGoogle_styles_default = styles10;
|
|
1652
1788
|
|
|
1653
1789
|
// src/components/Input/InputGoogle/InputGoogle.tsx
|
|
1654
|
-
import { jsx as
|
|
1790
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1655
1791
|
var InputGoogle = (_a) => {
|
|
1656
1792
|
var _b = _a, {
|
|
1657
1793
|
value = "",
|
|
@@ -1671,7 +1807,7 @@ var InputGoogle = (_a) => {
|
|
|
1671
1807
|
const backgroundColor = (options == null ? void 0 : options.backgroundColor) ? options.backgroundColor : others2.backgroundColor;
|
|
1672
1808
|
const textColor = (options == null ? void 0 : options.textColor) ? options.textColor : others2.textRelease;
|
|
1673
1809
|
const borderColor = (options == null ? void 0 : options.borderColor) ? options.borderColor : others2.borderRelease;
|
|
1674
|
-
const borderWhenFocused = isFocus ? `${others2.border} ${options ? options.focusColor : others2.borderFocus}` : `${others2.border} ${borderColor}`;
|
|
1810
|
+
const borderWhenFocused = isFocus ? `${others2.border} ${(options == null ? void 0 : options.focusColor) ? options.focusColor : others2.borderFocus}` : `${others2.border} ${borderColor}`;
|
|
1675
1811
|
const labelColorWhenFocused = isFocus ? `${(options == null ? void 0 : options.focusColor) ? options.focusColor : others2.textFocus}` : `${textColor}`;
|
|
1676
1812
|
function spanPositionWhenFocused() {
|
|
1677
1813
|
if (spanRef.current) {
|
|
@@ -1701,8 +1837,8 @@ var InputGoogle = (_a) => {
|
|
|
1701
1837
|
useEffect9(() => {
|
|
1702
1838
|
if (value) spanPositionWhenFocused();
|
|
1703
1839
|
}, [value]);
|
|
1704
|
-
return /* @__PURE__ */
|
|
1705
|
-
/* @__PURE__ */
|
|
1840
|
+
return /* @__PURE__ */ jsxs14("div", { style: InputGoogle_styles_default.container, children: [
|
|
1841
|
+
/* @__PURE__ */ jsx20(
|
|
1706
1842
|
"input",
|
|
1707
1843
|
__spreadValues({
|
|
1708
1844
|
id: crypto.randomUUID(),
|
|
@@ -1722,7 +1858,7 @@ var InputGoogle = (_a) => {
|
|
|
1722
1858
|
onBlur: offFocus
|
|
1723
1859
|
}, props)
|
|
1724
1860
|
),
|
|
1725
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsx20(
|
|
1726
1862
|
"span",
|
|
1727
1863
|
{
|
|
1728
1864
|
ref: spanRef,
|
|
@@ -1789,7 +1925,7 @@ var styles11 = {
|
|
|
1789
1925
|
var TextArea_styles_default = styles11;
|
|
1790
1926
|
|
|
1791
1927
|
// src/components/Input/TextArea/TextArea.tsx
|
|
1792
|
-
import { jsx as
|
|
1928
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1793
1929
|
var TextArea = (_a) => {
|
|
1794
1930
|
var _b = _a, {
|
|
1795
1931
|
value = "",
|
|
@@ -1809,7 +1945,7 @@ var TextArea = (_a) => {
|
|
|
1809
1945
|
const backgroundColor = (options == null ? void 0 : options.backgroundColor) ? options.backgroundColor : others3.backgroundColor;
|
|
1810
1946
|
const textColor = (options == null ? void 0 : options.textColor) ? options.textColor : others3.textRelease;
|
|
1811
1947
|
const borderColor = (options == null ? void 0 : options.borderColor) ? options.borderColor : others3.borderRelease;
|
|
1812
|
-
const borderWhenFocused = isFocus ? `${others3.border} ${options ? options.focusColor : others3.borderFocus}` : `${others3.border} ${borderColor}`;
|
|
1948
|
+
const borderWhenFocused = isFocus ? `${others3.border} ${(options == null ? void 0 : options.focusColor) ? options.focusColor : others3.borderFocus}` : `${others3.border} ${borderColor}`;
|
|
1813
1949
|
const labelColorWhenFocused = isFocus ? `${(options == null ? void 0 : options.focusColor) ? options.focusColor : others3.textFocus}` : `${textColor}`;
|
|
1814
1950
|
function spanPositionWhenFocused() {
|
|
1815
1951
|
if (spanRef.current) {
|
|
@@ -1839,8 +1975,8 @@ var TextArea = (_a) => {
|
|
|
1839
1975
|
useEffect10(() => {
|
|
1840
1976
|
if (value) spanPositionWhenFocused();
|
|
1841
1977
|
}, [value]);
|
|
1842
|
-
return /* @__PURE__ */
|
|
1843
|
-
/* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsxs15("div", { style: TextArea_styles_default.container, children: [
|
|
1979
|
+
/* @__PURE__ */ jsx21(
|
|
1844
1980
|
"textarea",
|
|
1845
1981
|
__spreadValues({
|
|
1846
1982
|
id: crypto.randomUUID(),
|
|
@@ -1857,7 +1993,7 @@ var TextArea = (_a) => {
|
|
|
1857
1993
|
onBlur: offFocus
|
|
1858
1994
|
}, props)
|
|
1859
1995
|
),
|
|
1860
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx21(
|
|
1861
1997
|
"span",
|
|
1862
1998
|
{
|
|
1863
1999
|
ref: spanRef,
|
|
@@ -1875,7 +2011,7 @@ var TextArea_default = TextArea;
|
|
|
1875
2011
|
|
|
1876
2012
|
// src/components/Input/InputFile.tsx
|
|
1877
2013
|
import { useState as useState11 } from "react";
|
|
1878
|
-
import { jsx as
|
|
2014
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1879
2015
|
var InputFile = (_a) => {
|
|
1880
2016
|
var _b = _a, {
|
|
1881
2017
|
file,
|
|
@@ -1890,7 +2026,7 @@ var InputFile = (_a) => {
|
|
|
1890
2026
|
"acceptType"
|
|
1891
2027
|
]);
|
|
1892
2028
|
const [key, setKey] = useState11(Date.now());
|
|
1893
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ jsx22(
|
|
1894
2030
|
"input",
|
|
1895
2031
|
__spreadValues({
|
|
1896
2032
|
id: crypto.randomUUID(),
|
|
@@ -1914,7 +2050,7 @@ var InputFile = (_a) => {
|
|
|
1914
2050
|
var InputFile_default = InputFile;
|
|
1915
2051
|
|
|
1916
2052
|
// src/components/Image/UploadImage.tsx
|
|
1917
|
-
import { Fragment, jsx as
|
|
2053
|
+
import { Fragment, jsx as jsx23 } from "react/jsx-runtime";
|
|
1918
2054
|
var UploadImage = (_a) => {
|
|
1919
2055
|
var _b = _a, {
|
|
1920
2056
|
setSrc = () => {
|
|
@@ -1929,7 +2065,7 @@ var UploadImage = (_a) => {
|
|
|
1929
2065
|
setSrc(src);
|
|
1930
2066
|
});
|
|
1931
2067
|
}
|
|
1932
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx23(Fragment, { children: /* @__PURE__ */ jsx23(
|
|
1933
2069
|
InputFile_default,
|
|
1934
2070
|
__spreadProps(__spreadValues({
|
|
1935
2071
|
onChoose: handleSetSrc,
|
|
@@ -1942,10 +2078,10 @@ var UploadImage = (_a) => {
|
|
|
1942
2078
|
var UploadImage_default = UploadImage;
|
|
1943
2079
|
|
|
1944
2080
|
// src/components/Image/Image.tsx
|
|
1945
|
-
import { jsx as
|
|
2081
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1946
2082
|
var Image = (_a) => {
|
|
1947
2083
|
var props = __objRest(_a, []);
|
|
1948
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ jsx24(
|
|
1949
2085
|
"img",
|
|
1950
2086
|
__spreadProps(__spreadValues({
|
|
1951
2087
|
style: { width: "100%", height: "100%" }
|
|
@@ -2515,8 +2651,7 @@ var MainElements_styles_default = MainElementStyles;
|
|
|
2515
2651
|
|
|
2516
2652
|
// src/components/Image/ImageEditor/MainElements/Rotate.tsx
|
|
2517
2653
|
import { useEffect as useEffect11, useState as useState12 } from "react";
|
|
2518
|
-
import {
|
|
2519
|
-
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2654
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2520
2655
|
var Rotate = () => {
|
|
2521
2656
|
const [rotate, setRotate] = useState12(false);
|
|
2522
2657
|
const { transformOperation: transformOperation2, refs } = useMyContext3();
|
|
@@ -2549,8 +2684,8 @@ var Rotate = () => {
|
|
|
2549
2684
|
controller.abort();
|
|
2550
2685
|
};
|
|
2551
2686
|
}, []);
|
|
2552
|
-
return /* @__PURE__ */
|
|
2553
|
-
/* @__PURE__ */
|
|
2687
|
+
return /* @__PURE__ */ jsxs16(Fragment2, { children: [
|
|
2688
|
+
/* @__PURE__ */ jsxs16(
|
|
2554
2689
|
"div",
|
|
2555
2690
|
{
|
|
2556
2691
|
ref: refs.rotate,
|
|
@@ -2564,9 +2699,9 @@ var Rotate = () => {
|
|
|
2564
2699
|
touchEvent.rotate(e, { top: true });
|
|
2565
2700
|
},
|
|
2566
2701
|
children: [
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
/* @__PURE__ */
|
|
2569
|
-
rotate && /* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ jsx25("div", { style: handleBackground(rotate) }),
|
|
2703
|
+
/* @__PURE__ */ jsx25(ArrowRotateLeft_default, { size: "15" }),
|
|
2704
|
+
rotate && /* @__PURE__ */ jsxs16(
|
|
2570
2705
|
"p",
|
|
2571
2706
|
{
|
|
2572
2707
|
style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
|
|
@@ -2581,7 +2716,7 @@ var Rotate = () => {
|
|
|
2581
2716
|
]
|
|
2582
2717
|
}
|
|
2583
2718
|
),
|
|
2584
|
-
/* @__PURE__ */
|
|
2719
|
+
/* @__PURE__ */ jsxs16(
|
|
2585
2720
|
"div",
|
|
2586
2721
|
{
|
|
2587
2722
|
ref: refs.rotateBottom,
|
|
@@ -2595,9 +2730,9 @@ var Rotate = () => {
|
|
|
2595
2730
|
touchEvent.rotate(e, { bottom: true });
|
|
2596
2731
|
},
|
|
2597
2732
|
children: [
|
|
2598
|
-
/* @__PURE__ */
|
|
2599
|
-
/* @__PURE__ */
|
|
2600
|
-
rotate && /* @__PURE__ */
|
|
2733
|
+
/* @__PURE__ */ jsx25("div", { style: handleBackground(rotate) }),
|
|
2734
|
+
/* @__PURE__ */ jsx25(ArrowRotateLeft_default, { size: "15" }),
|
|
2735
|
+
rotate && /* @__PURE__ */ jsxs16(
|
|
2601
2736
|
"p",
|
|
2602
2737
|
{
|
|
2603
2738
|
style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
|
|
@@ -2619,7 +2754,7 @@ var Rotate = () => {
|
|
|
2619
2754
|
var Rotate_default = Rotate;
|
|
2620
2755
|
|
|
2621
2756
|
// src/components/Image/ImageEditor/MainElements/MainElements.tsx
|
|
2622
|
-
import { jsx as
|
|
2757
|
+
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2623
2758
|
var MainElements = () => {
|
|
2624
2759
|
const {
|
|
2625
2760
|
refs,
|
|
@@ -2678,9 +2813,9 @@ var MainElements = () => {
|
|
|
2678
2813
|
controller.abort();
|
|
2679
2814
|
};
|
|
2680
2815
|
}, [reRender]);
|
|
2681
|
-
return /* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
2683
|
-
/* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ jsxs17("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
|
|
2817
|
+
/* @__PURE__ */ jsx26("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ jsx26("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
|
|
2818
|
+
/* @__PURE__ */ jsxs17(
|
|
2684
2819
|
"div",
|
|
2685
2820
|
{
|
|
2686
2821
|
style: MainElements_styles_default.controller,
|
|
@@ -2688,7 +2823,7 @@ var MainElements = () => {
|
|
|
2688
2823
|
onMouseDown: (e) => mouseEvent.drag(e),
|
|
2689
2824
|
onTouchStart: (e) => touchEvent.drag(e),
|
|
2690
2825
|
children: [
|
|
2691
|
-
/* @__PURE__ */
|
|
2826
|
+
/* @__PURE__ */ jsx26(
|
|
2692
2827
|
"div",
|
|
2693
2828
|
{
|
|
2694
2829
|
ref: refs.topLeft,
|
|
@@ -2705,10 +2840,10 @@ var MainElements = () => {
|
|
|
2705
2840
|
topLeft: true
|
|
2706
2841
|
});
|
|
2707
2842
|
},
|
|
2708
|
-
children: /* @__PURE__ */
|
|
2843
|
+
children: /* @__PURE__ */ jsx26("div", { style: handleBackground(topLeft) })
|
|
2709
2844
|
}
|
|
2710
2845
|
),
|
|
2711
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ jsx26(
|
|
2712
2847
|
"div",
|
|
2713
2848
|
{
|
|
2714
2849
|
ref: refs.topRight,
|
|
@@ -2725,10 +2860,10 @@ var MainElements = () => {
|
|
|
2725
2860
|
topRight: true
|
|
2726
2861
|
});
|
|
2727
2862
|
},
|
|
2728
|
-
children: /* @__PURE__ */
|
|
2863
|
+
children: /* @__PURE__ */ jsx26("div", { style: handleBackground(topRight) })
|
|
2729
2864
|
}
|
|
2730
2865
|
),
|
|
2731
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ jsx26(
|
|
2732
2867
|
"div",
|
|
2733
2868
|
{
|
|
2734
2869
|
ref: refs.bottomLeft,
|
|
@@ -2745,10 +2880,10 @@ var MainElements = () => {
|
|
|
2745
2880
|
bottomLeft: true
|
|
2746
2881
|
});
|
|
2747
2882
|
},
|
|
2748
|
-
children: /* @__PURE__ */
|
|
2883
|
+
children: /* @__PURE__ */ jsx26("div", { style: handleBackground(bottomLeft) })
|
|
2749
2884
|
}
|
|
2750
2885
|
),
|
|
2751
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ jsx26(
|
|
2752
2887
|
"div",
|
|
2753
2888
|
{
|
|
2754
2889
|
ref: refs.bottomRight,
|
|
@@ -2765,11 +2900,11 @@ var MainElements = () => {
|
|
|
2765
2900
|
bottomRight: true
|
|
2766
2901
|
});
|
|
2767
2902
|
},
|
|
2768
|
-
children: /* @__PURE__ */
|
|
2903
|
+
children: /* @__PURE__ */ jsx26("div", { style: handleBackground(bottomRight) })
|
|
2769
2904
|
}
|
|
2770
2905
|
),
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
(topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ jsx26(Rotate_default, {}),
|
|
2907
|
+
(topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ jsxs17(
|
|
2773
2908
|
"p",
|
|
2774
2909
|
{
|
|
2775
2910
|
style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
|
|
@@ -2792,9 +2927,9 @@ var MainElements = () => {
|
|
|
2792
2927
|
var MainElements_default = MainElements;
|
|
2793
2928
|
|
|
2794
2929
|
// src/components/Image/ImageEditor/Instruction.tsx
|
|
2795
|
-
import { jsx as
|
|
2930
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2796
2931
|
var Instruction = () => {
|
|
2797
|
-
return /* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ jsx27("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
|
|
2798
2933
|
};
|
|
2799
2934
|
var Instruction_default = Instruction;
|
|
2800
2935
|
|
|
@@ -2914,7 +3049,7 @@ var TransformOperation = class extends TransformOperationExtension {
|
|
|
2914
3049
|
var TransformOperation_default = TransformOperation;
|
|
2915
3050
|
|
|
2916
3051
|
// src/components/Image/ImageEditor/ImageEditor.tsx
|
|
2917
|
-
import { jsx as
|
|
3052
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2918
3053
|
var transformOperation = new TransformOperation_default();
|
|
2919
3054
|
var ImageEditor = ({
|
|
2920
3055
|
src,
|
|
@@ -3006,7 +3141,7 @@ var ImageEditor = ({
|
|
|
3006
3141
|
};
|
|
3007
3142
|
}, [isOpen]);
|
|
3008
3143
|
if (!isOpen) return;
|
|
3009
|
-
return /* @__PURE__ */
|
|
3144
|
+
return /* @__PURE__ */ jsx28(
|
|
3010
3145
|
MyContext3.Provider,
|
|
3011
3146
|
{
|
|
3012
3147
|
value: {
|
|
@@ -3027,11 +3162,11 @@ var ImageEditor = ({
|
|
|
3027
3162
|
src: originalSrc,
|
|
3028
3163
|
transformOperation
|
|
3029
3164
|
},
|
|
3030
|
-
children: /* @__PURE__ */
|
|
3031
|
-
/* @__PURE__ */
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
/* @__PURE__ */
|
|
3165
|
+
children: /* @__PURE__ */ jsxs18("div", { style: ImageEditor_styles_default.imageEditor, children: [
|
|
3166
|
+
/* @__PURE__ */ jsx28(Instruction_default, {}),
|
|
3167
|
+
/* @__PURE__ */ jsx28(MainElements_default, {}),
|
|
3168
|
+
/* @__PURE__ */ jsxs18("div", { style: ImageEditor_styles_default.buttons, children: [
|
|
3169
|
+
/* @__PURE__ */ jsx28(
|
|
3035
3170
|
Button_default,
|
|
3036
3171
|
{
|
|
3037
3172
|
buttonType: "solid",
|
|
@@ -3039,7 +3174,7 @@ var ImageEditor = ({
|
|
|
3039
3174
|
onClick: handleAccept
|
|
3040
3175
|
}
|
|
3041
3176
|
),
|
|
3042
|
-
/* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ jsx28(
|
|
3043
3178
|
Button_default,
|
|
3044
3179
|
{
|
|
3045
3180
|
buttonType: "solid",
|
|
@@ -3047,7 +3182,7 @@ var ImageEditor = ({
|
|
|
3047
3182
|
onClick: handleCancel
|
|
3048
3183
|
}
|
|
3049
3184
|
),
|
|
3050
|
-
/* @__PURE__ */
|
|
3185
|
+
/* @__PURE__ */ jsx28(
|
|
3051
3186
|
Button_default,
|
|
3052
3187
|
{
|
|
3053
3188
|
buttonType: "solid",
|
|
@@ -3559,12 +3694,12 @@ function useSession() {
|
|
|
3559
3694
|
}
|
|
3560
3695
|
|
|
3561
3696
|
// src/auth/react/SessionProvider.tsx
|
|
3562
|
-
import { jsx as
|
|
3697
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3563
3698
|
var SessionProvider = ({
|
|
3564
3699
|
value,
|
|
3565
3700
|
children
|
|
3566
3701
|
}) => {
|
|
3567
|
-
return /* @__PURE__ */
|
|
3702
|
+
return /* @__PURE__ */ jsx29(SessionContext.Provider, { value, children });
|
|
3568
3703
|
};
|
|
3569
3704
|
var SessionProvider_default = SessionProvider;
|
|
3570
3705
|
|