@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.js CHANGED
@@ -98,6 +98,142 @@ module.exports = __toCommonJS(index_exports);
98
98
  // src/components/DropdownSelect/DropdownSelect.tsx
99
99
  var import_react3 = require("react");
100
100
 
101
+ // src/components/Icons/X.tsx
102
+ var import_jsx_runtime = require("react/jsx-runtime");
103
+ var X = (_a) => {
104
+ var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
105
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
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: "none",
113
+ stroke: color,
114
+ strokeWidth: "2",
115
+ strokeLinecap: "round",
116
+ strokeLinejoin: "round"
117
+ }, props), {
118
+ children: [
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M18 6 6 18" }),
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 6 12 12" })
121
+ ]
122
+ })
123
+ );
124
+ };
125
+ var X_default = X;
126
+
127
+ // src/components/Icons/TrashCan.tsx
128
+ var import_jsx_runtime2 = require("react/jsx-runtime");
129
+ var TrashCan = (_a) => {
130
+ var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
131
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
132
+ "svg",
133
+ __spreadProps(__spreadValues({
134
+ xmlns: "http://www.w3.org/2000/svg",
135
+ width: size,
136
+ height: size,
137
+ viewBox: "0 0 448 512",
138
+ fill: color
139
+ }, props), {
140
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
141
+ })
142
+ );
143
+ };
144
+ var TrashCan_default = TrashCan;
145
+
146
+ // src/components/Icons/Edit.tsx
147
+ var import_jsx_runtime3 = require("react/jsx-runtime");
148
+ var Edit = (_a) => {
149
+ var _b = _a, { size = 24, color = "currentColor" } = _b, props = __objRest(_b, ["size", "color"]);
150
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
151
+ "svg",
152
+ __spreadProps(__spreadValues({
153
+ xmlns: "http://www.w3.org/2000/svg",
154
+ width: size,
155
+ height: size,
156
+ viewBox: "0 0 24 24",
157
+ fill: color
158
+ }, props), {
159
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("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" })
160
+ })
161
+ );
162
+ };
163
+ var Edit_default = Edit;
164
+
165
+ // src/components/Icons/CloudUpload.tsx
166
+ var import_jsx_runtime4 = require("react/jsx-runtime");
167
+ var CloudUpload = (_a) => {
168
+ var _b = _a, {
169
+ size = 24,
170
+ color = "currentColor"
171
+ } = _b, props = __objRest(_b, [
172
+ "size",
173
+ "color"
174
+ ]);
175
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
176
+ "svg",
177
+ __spreadProps(__spreadValues({
178
+ xmlns: "http://www.w3.org/2000/svg",
179
+ width: size,
180
+ height: size,
181
+ viewBox: "0 0 512 512"
182
+ }, props), {
183
+ children: [
184
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
185
+ "path",
186
+ {
187
+ 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",
188
+ fill: "none",
189
+ stroke: color,
190
+ strokeLinecap: "round",
191
+ strokeLinejoin: "round",
192
+ strokeWidth: "30"
193
+ }
194
+ ),
195
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
196
+ "path",
197
+ {
198
+ fill: "none",
199
+ stroke: color,
200
+ strokeLinecap: "round",
201
+ strokeLinejoin: "round",
202
+ strokeWidth: "30",
203
+ d: "M320 255.79l-64-64-64 64M256 448.21V207.79"
204
+ }
205
+ )
206
+ ]
207
+ })
208
+ );
209
+ };
210
+ var CloudUpload_default = CloudUpload;
211
+
212
+ // src/components/Icons/ArrowRotateLeft.tsx
213
+ var import_jsx_runtime5 = require("react/jsx-runtime");
214
+ var ArrowRotateLeft = (_a) => {
215
+ var _b = _a, {
216
+ size = 24,
217
+ color = "currentColor"
218
+ } = _b, props = __objRest(_b, [
219
+ "size",
220
+ "color"
221
+ ]);
222
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
223
+ "svg",
224
+ __spreadProps(__spreadValues({
225
+ xmlns: "http://www.w3.org/2000/svg",
226
+ width: size,
227
+ height: size,
228
+ viewBox: "0 0 512 512",
229
+ fill: color
230
+ }, props), {
231
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("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" })
232
+ })
233
+ );
234
+ };
235
+ var ArrowRotateLeft_default = ArrowRotateLeft;
236
+
101
237
  // src/components/DropdownSelect/context.ts
102
238
  var import_react = require("react");
103
239
  var MyContext = (0, import_react.createContext)(void 0);
@@ -114,9 +250,13 @@ var import_react2 = require("react");
114
250
  var styles = {
115
251
  container: {
116
252
  width: "100%",
253
+ height: "100%",
117
254
  position: "relative"
118
255
  },
119
256
  select_box: {
257
+ boxSizing: "border-box",
258
+ width: "100%",
259
+ height: "100%",
120
260
  borderRadius: "10px",
121
261
  border: "solid 1px #dadada",
122
262
  padding: "5px 10px",
@@ -129,6 +269,7 @@ var styles = {
129
269
  marginRight: "auto"
130
270
  },
131
271
  close: {
272
+ padding: "1%",
132
273
  borderRadius: "50%",
133
274
  width: "20px",
134
275
  height: "20px",
@@ -182,9 +323,9 @@ var styles = {
182
323
  var styles_default = styles;
183
324
 
184
325
  // src/components/DropdownSelect/Search.tsx
185
- var import_jsx_runtime = require("react/jsx-runtime");
326
+ var import_jsx_runtime6 = require("react/jsx-runtime");
186
327
  var Search = ({ options, onSearch }) => {
187
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: styles_default.search_border, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
328
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: styles_default.search_border, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
188
329
  "input",
189
330
  {
190
331
  placeholder: "Search",
@@ -202,7 +343,7 @@ var Search = ({ options, onSearch }) => {
202
343
  var Search_default = Search;
203
344
 
204
345
  // src/components/DropdownSelect/Dropdown.tsx
205
- var import_jsx_runtime2 = require("react/jsx-runtime");
346
+ var import_jsx_runtime7 = require("react/jsx-runtime");
206
347
  var Dropdown = () => {
207
348
  const { options, onChange, setOpen } = useMyContext();
208
349
  const [isVisible, setVisible] = (0, import_react2.useState)(true);
@@ -228,7 +369,7 @@ var Dropdown = () => {
228
369
  window.removeEventListener("scroll", handleResize);
229
370
  };
230
371
  }, []);
231
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
372
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
232
373
  "div",
233
374
  {
234
375
  ref: dropdownRef,
@@ -238,8 +379,8 @@ var Dropdown = () => {
238
379
  bottom: "calc(100% + 5px)"
239
380
  }),
240
381
  children: [
241
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Search_default, { options, onSearch: setOption }),
242
- optionsCopy.map((option, key) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
382
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Search_default, { options, onSearch: setOption }),
383
+ optionsCopy.map((option, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
243
384
  "div",
244
385
  {
245
386
  style: __spreadProps(__spreadValues({}, styles_default.element), {
@@ -262,8 +403,7 @@ var Dropdown = () => {
262
403
  var Dropdown_default = Dropdown;
263
404
 
264
405
  // src/components/DropdownSelect/DropdownSelect.tsx
265
- var import_io = require("react-icons/io");
266
- var import_jsx_runtime3 = require("react/jsx-runtime");
406
+ var import_jsx_runtime8 = require("react/jsx-runtime");
267
407
  var DropdownSelect = ({ options, value, onChange }) => {
268
408
  const [open, setOpen] = (0, import_react3.useState)(false);
269
409
  const [isHoverClose, setHoverClose] = (0, import_react3.useState)(false);
@@ -278,7 +418,7 @@ var DropdownSelect = ({ options, value, onChange }) => {
278
418
  window.addEventListener("click", clickHandler);
279
419
  return () => window.removeEventListener("click", clickHandler);
280
420
  }, []);
281
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
421
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
282
422
  MyContext.Provider,
283
423
  {
284
424
  value: {
@@ -287,15 +427,15 @@ var DropdownSelect = ({ options, value, onChange }) => {
287
427
  onChange,
288
428
  setOpen
289
429
  },
290
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: styles_default.container, ref: selectRef, children: [
291
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
430
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: styles_default.container, ref: selectRef, children: [
431
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
292
432
  "div",
293
433
  {
294
434
  style: styles_default.select_box,
295
435
  onClick: () => setOpen((prev) => !prev),
296
436
  children: [
297
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: styles_default.value, children: value }),
298
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
437
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: styles_default.value, children: value }),
438
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
299
439
  "div",
300
440
  {
301
441
  style: __spreadProps(__spreadValues({}, styles_default.close), {
@@ -308,13 +448,13 @@ var DropdownSelect = ({ options, value, onChange }) => {
308
448
  },
309
449
  onMouseEnter: () => setHoverClose(true),
310
450
  onMouseLeave: () => setHoverClose(false),
311
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_io.IoMdClose, {})
451
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(X_default, {})
312
452
  }
313
453
  )
314
454
  ]
315
455
  }
316
456
  ),
317
- open && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dropdown_default, {})
457
+ open && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dropdown_default, {})
318
458
  ] })
319
459
  }
320
460
  );
@@ -400,7 +540,7 @@ var styles2 = {
400
540
  var styles_default2 = styles2;
401
541
 
402
542
  // src/components/RangeSlider/RangeSlider.tsx
403
- var import_jsx_runtime4 = require("react/jsx-runtime");
543
+ var import_jsx_runtime9 = require("react/jsx-runtime");
404
544
  var RangeSlider = ({
405
545
  min = "0",
406
546
  max = "100",
@@ -458,7 +598,7 @@ var RangeSlider = ({
458
598
  document.removeEventListener("touchend", handleMouseUp);
459
599
  };
460
600
  }, [isMouseDown]);
461
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
601
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
462
602
  "div",
463
603
  {
464
604
  style: __spreadProps(__spreadValues({}, styles_default2.slider_border), {
@@ -474,7 +614,7 @@ var RangeSlider = ({
474
614
  },
475
615
  ref: sliderBorderRef,
476
616
  children: [
477
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
617
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
478
618
  "span",
479
619
  {
480
620
  style: __spreadProps(__spreadValues({}, styles_default2.fill), {
@@ -483,7 +623,7 @@ var RangeSlider = ({
483
623
  })
484
624
  }
485
625
  ),
486
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
626
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
487
627
  "span",
488
628
  {
489
629
  style: __spreadProps(__spreadValues({}, styles_default2.thumb), {
@@ -493,7 +633,7 @@ var RangeSlider = ({
493
633
  onMouseMove: () => setHover(true),
494
634
  onMouseLeave: () => setHover(false),
495
635
  children: [
496
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
636
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
497
637
  "span",
498
638
  {
499
639
  style: __spreadProps(__spreadValues({}, styles_default2.value), {
@@ -502,7 +642,7 @@ var RangeSlider = ({
502
642
  children: value
503
643
  }
504
644
  ),
505
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
645
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
506
646
  "span",
507
647
  {
508
648
  style: __spreadProps(__spreadValues({}, styles_default2.thumb_shadow), {
@@ -514,7 +654,7 @@ var RangeSlider = ({
514
654
  ]
515
655
  }
516
656
  ),
517
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
657
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
518
658
  "span",
519
659
  {
520
660
  style: __spreadProps(__spreadValues({}, styles_default2.rest), {
@@ -542,7 +682,9 @@ var styles3 = {
542
682
  msOverflowStyle: "none",
543
683
  boxSizing: "border-box",
544
684
  margin: 0,
545
- padding: 0
685
+ padding: 0,
686
+ width: "100%",
687
+ height: "100%"
546
688
  },
547
689
  background: {
548
690
  position: "relative",
@@ -587,22 +729,22 @@ var styles3 = {
587
729
  var styles_default3 = styles3;
588
730
 
589
731
  // src/components/OptionSlider/OptionSlider.tsx
590
- var import_jsx_runtime5 = require("react/jsx-runtime");
732
+ var import_jsx_runtime10 = require("react/jsx-runtime");
591
733
  var OptionSlider = ({
592
734
  value,
593
735
  onChange,
594
- width = "200",
595
736
  options,
596
737
  color = "#f0f0f7"
597
738
  }) => {
598
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
739
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
599
740
  "div",
600
741
  {
601
742
  style: __spreadProps(__spreadValues({}, styles_default3.border), {
602
- width: `${width}px`
743
+ width: `100%`,
744
+ height: `100%`
603
745
  }),
604
746
  children: [
605
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
747
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
606
748
  "div",
607
749
  {
608
750
  style: __spreadProps(__spreadValues({}, styles_default3.background), {
@@ -610,7 +752,7 @@ var OptionSlider = ({
610
752
  })
611
753
  }
612
754
  ),
613
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: styles_default3.options, children: options.map((option, key) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
755
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles_default3.options, children: options.map((option, key) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
614
756
  "div",
615
757
  {
616
758
  style: __spreadProps(__spreadValues({}, styles_default3.element), {
@@ -741,7 +883,7 @@ var styles4 = {
741
883
  var styles_default4 = styles4;
742
884
 
743
885
  // src/components/ColorPickerSlider/ColorPickerSlider.tsx
744
- var import_jsx_runtime6 = require("react/jsx-runtime");
886
+ var import_jsx_runtime11 = require("react/jsx-runtime");
745
887
  var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
746
888
  let percentage = encode2(value);
747
889
  const sliderBorderRef = (0, import_react5.useRef)(null);
@@ -787,7 +929,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
787
929
  document.removeEventListener("touchend", handleMouseUp);
788
930
  };
789
931
  }, [isMouseDown]);
790
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
932
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
791
933
  "div",
792
934
  {
793
935
  style: __spreadProps(__spreadValues({}, styles_default4.border), {
@@ -803,7 +945,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
803
945
  },
804
946
  ref: sliderBorderRef,
805
947
  children: [
806
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
948
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
807
949
  "div",
808
950
  {
809
951
  style: __spreadProps(__spreadValues({}, styles_default4.thumb), {
@@ -815,7 +957,7 @@ var ColorPickerSlider = ({ value, onChange, width = "200" }) => {
815
957
  onMouseLeave: () => setHover(false)
816
958
  }
817
959
  ),
818
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
960
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
819
961
  "div",
820
962
  {
821
963
  style: __spreadProps(__spreadValues({}, styles_default4.label), {
@@ -848,7 +990,15 @@ var import_react7 = require("react");
848
990
 
849
991
  // src/components/MultiSelect/styles.ts
850
992
  var styles5 = {
993
+ container: {
994
+ width: "100%",
995
+ height: "100%",
996
+ position: "relative"
997
+ },
851
998
  select_box: {
999
+ boxSizing: "border-box",
1000
+ width: "100%",
1001
+ height: "100%",
852
1002
  borderRadius: "10px",
853
1003
  border: "solid 1px #dadada",
854
1004
  padding: "5px 10px",
@@ -864,28 +1014,28 @@ var styles5 = {
864
1014
  flexWrap: "wrap"
865
1015
  },
866
1016
  eachValue: {
1017
+ height: "100%",
867
1018
  borderRadius: "5px",
868
1019
  backgroundColor: "#f0f0f7",
869
1020
  padding: "5px",
870
- position: "relative"
1021
+ position: "relative",
1022
+ display: "flex",
1023
+ flexDirection: "row",
1024
+ justifyContent: "center",
1025
+ alignItems: "center",
1026
+ fontSize: "1rem",
1027
+ gap: "5px"
871
1028
  },
872
1029
  closeEach: {
873
- position: "absolute",
874
- top: 0,
875
- right: 0,
876
- transform: "translate(50%, -50%)",
877
1030
  borderRadius: "50%",
878
- backgroundColor: "#fc2c2cf0",
879
1031
  aspectRatio: 1,
880
- width: "24px",
881
1032
  display: "flex",
882
1033
  justifyContent: "center",
883
1034
  alignItems: "center",
884
- color: "white",
885
- transition: "scale .2s linear",
886
- transformOrigin: "top right"
1035
+ color: "#000"
887
1036
  },
888
1037
  close: {
1038
+ padding: "1%",
889
1039
  borderRadius: "50%",
890
1040
  width: "20px",
891
1041
  height: "20px",
@@ -899,7 +1049,8 @@ var styles5 = {
899
1049
  borderRadius: "10px",
900
1050
  justifyContent: "flex-start",
901
1051
  alignItems: "center",
902
- cursor: "pointer"
1052
+ cursor: "pointer",
1053
+ fontSize: "1rem"
903
1054
  },
904
1055
  dropdown: {
905
1056
  position: "absolute",
@@ -938,9 +1089,9 @@ var styles5 = {
938
1089
  var styles_default5 = styles5;
939
1090
 
940
1091
  // src/components/MultiSelect/Search.tsx
941
- var import_jsx_runtime7 = require("react/jsx-runtime");
1092
+ var import_jsx_runtime12 = require("react/jsx-runtime");
942
1093
  var Search2 = ({ options, onSearch }) => {
943
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: styles_default5.search_border, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1094
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: styles_default5.search_border, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
944
1095
  "input",
945
1096
  {
946
1097
  placeholder: "Search...",
@@ -958,7 +1109,7 @@ var Search2 = ({ options, onSearch }) => {
958
1109
  var Search_default2 = Search2;
959
1110
 
960
1111
  // src/components/MultiSelect/Dropdown.tsx
961
- var import_jsx_runtime8 = require("react/jsx-runtime");
1112
+ var import_jsx_runtime13 = require("react/jsx-runtime");
962
1113
  var Dropdown2 = () => {
963
1114
  const { options, onChange, setOpen } = useMyContext2();
964
1115
  const [isVisible, setVisible] = (0, import_react7.useState)(true);
@@ -984,7 +1135,7 @@ var Dropdown2 = () => {
984
1135
  window.removeEventListener("scroll", handleResize);
985
1136
  };
986
1137
  }, []);
987
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1138
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
988
1139
  "div",
989
1140
  {
990
1141
  ref: dropdownRef,
@@ -994,26 +1145,29 @@ var Dropdown2 = () => {
994
1145
  bottom: "calc(100% + 5px)"
995
1146
  }),
996
1147
  children: [
997
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Search_default2, { options, onSearch: setOption }),
998
- optionsCopy.map((option, key) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
999
- "div",
1000
- {
1001
- style: __spreadProps(__spreadValues({}, styles_default5.element), {
1002
- backgroundColor: keyOnHover === key ? "#f0f0f0" : "#fff"
1003
- }),
1004
- onClick: () => {
1005
- onChange((prev) => {
1006
- if (prev.includes(option.value)) return [...prev];
1007
- return [...prev, option.value];
1008
- });
1009
- setOpen((prev) => !prev);
1148
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Search_default2, { options, onSearch: setOption }),
1149
+ optionsCopy.map(
1150
+ (option, key) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1151
+ "div",
1152
+ {
1153
+ style: __spreadProps(__spreadValues({}, styles_default5.element), {
1154
+ backgroundColor: keyOnHover === key ? "#f0f0f0" : "#fff"
1155
+ }),
1156
+ onClick: () => {
1157
+ onChange((prev) => {
1158
+ if (prev.includes(option.value))
1159
+ return [...prev];
1160
+ return [...prev, option.value];
1161
+ });
1162
+ setOpen((prev) => !prev);
1163
+ },
1164
+ onMouseEnter: () => setKeyOnHover(key),
1165
+ onMouseLeave: () => setKeyOnHover(-1),
1166
+ children: option.label
1010
1167
  },
1011
- onMouseEnter: () => setKeyOnHover(key),
1012
- onMouseLeave: () => setKeyOnHover(-1),
1013
- children: option.label
1014
- },
1015
- key
1016
- ))
1168
+ key
1169
+ )
1170
+ )
1017
1171
  ]
1018
1172
  }
1019
1173
  );
@@ -1021,9 +1175,8 @@ var Dropdown2 = () => {
1021
1175
  var Dropdown_default2 = Dropdown2;
1022
1176
 
1023
1177
  // src/components/MultiSelect/MultiSelect.tsx
1024
- var import_io2 = require("react-icons/io");
1025
- var import_jsx_runtime9 = require("react/jsx-runtime");
1026
- var MultiSelect = ({ options, value, onChange, width = "200" }) => {
1178
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1179
+ var MultiSelect = ({ options, value, onChange }) => {
1027
1180
  const [open, setOpen] = (0, import_react8.useState)(false);
1028
1181
  const [isHoverClose, setHoverClose] = (0, import_react8.useState)(false);
1029
1182
  const [isHoverCloseEach, setHoverCloseEach] = (0, import_react8.useState)(-1);
@@ -1038,7 +1191,7 @@ var MultiSelect = ({ options, value, onChange, width = "200" }) => {
1038
1191
  window.addEventListener("click", clickHandler);
1039
1192
  return () => window.removeEventListener("click", clickHandler);
1040
1193
  }, []);
1041
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1194
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1042
1195
  MyContext2.Provider,
1043
1196
  {
1044
1197
  value: {
@@ -1047,69 +1200,57 @@ var MultiSelect = ({ options, value, onChange, width = "200" }) => {
1047
1200
  onChange,
1048
1201
  setOpen
1049
1202
  },
1050
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1051
- "div",
1052
- {
1053
- style: {
1054
- width: `${width}px`,
1055
- position: "relative"
1056
- },
1057
- ref: selectRef,
1058
- children: [
1059
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1060
- "div",
1061
- {
1062
- style: styles_default5.select_box,
1063
- onClick: () => setOpen((prev) => !prev),
1064
- children: [
1065
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { style: styles_default5.value, children: value.map((eachValue, key) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { style: styles_default5.eachValue, children: [
1066
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1067
- "span",
1068
- {
1069
- onMouseEnter: () => {
1070
- setHoverCloseEach(key);
1071
- },
1072
- onMouseLeave: () => {
1073
- setHoverCloseEach(-1);
1074
- },
1075
- title: "Remove this option",
1076
- style: __spreadProps(__spreadValues({}, styles_default5.closeEach), {
1077
- scale: isHoverCloseEach === key ? "1.2" : "1"
1078
- }),
1079
- onClick: () => {
1080
- onChange(
1081
- (prev) => prev.filter((o) => o !== eachValue)
1082
- );
1083
- setOpen((prev) => !prev);
1084
- },
1085
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_io2.IoMdClose, {})
1086
- }
1087
- ),
1088
- eachValue
1089
- ] }, key)) }),
1090
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1091
- "div",
1092
- {
1093
- style: __spreadProps(__spreadValues({}, styles_default5.close), {
1094
- backgroundColor: isHoverClose ? "#f0f0f0" : "#fff"
1095
- }),
1096
- title: "Clear all",
1097
- onClick: () => {
1098
- onChange([]);
1099
- setOpen((prev) => !prev);
1100
- },
1101
- onMouseEnter: () => setHoverClose(true),
1102
- onMouseLeave: () => setHoverClose(false),
1103
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_io2.IoMdClose, {})
1104
- }
1105
- )
1106
- ]
1107
- }
1108
- ),
1109
- open && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Dropdown_default2, {})
1110
- ]
1111
- }
1112
- )
1203
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: styles_default5.container, ref: selectRef, children: [
1204
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1205
+ "div",
1206
+ {
1207
+ style: styles_default5.select_box,
1208
+ onClick: () => setOpen((prev) => !prev),
1209
+ children: [
1210
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: styles_default5.value, children: value.map((eachValue, key) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: styles_default5.eachValue, children: [
1211
+ eachValue,
1212
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1213
+ "span",
1214
+ {
1215
+ onMouseEnter: () => {
1216
+ setHoverCloseEach(key);
1217
+ },
1218
+ onMouseLeave: () => {
1219
+ setHoverCloseEach(-1);
1220
+ },
1221
+ title: "Remove this option",
1222
+ style: __spreadValues({}, styles_default5.closeEach),
1223
+ onClick: () => {
1224
+ onChange(
1225
+ (prev) => prev.filter((o) => o !== eachValue)
1226
+ );
1227
+ setOpen((prev) => !prev);
1228
+ },
1229
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(X_default, { size: "20" })
1230
+ }
1231
+ )
1232
+ ] }, key)) }),
1233
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1234
+ "div",
1235
+ {
1236
+ style: __spreadProps(__spreadValues({}, styles_default5.close), {
1237
+ backgroundColor: isHoverClose ? "#f0f0f0" : "#fff"
1238
+ }),
1239
+ title: "Clear all",
1240
+ onClick: () => {
1241
+ onChange([]);
1242
+ setOpen((prev) => !prev);
1243
+ },
1244
+ onMouseEnter: () => setHoverClose(true),
1245
+ onMouseLeave: () => setHoverClose(false),
1246
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(X_default, {})
1247
+ }
1248
+ )
1249
+ ]
1250
+ }
1251
+ ),
1252
+ open && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Dropdown_default2, {})
1253
+ ] })
1113
1254
  }
1114
1255
  );
1115
1256
  };
@@ -1201,7 +1342,7 @@ var styles6 = (first, second) => {
1201
1342
  var styles_default6 = styles6;
1202
1343
 
1203
1344
  // src/components/Buttons/gradient/Gradient.tsx
1204
- var import_jsx_runtime10 = require("react/jsx-runtime");
1345
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1205
1346
  var Gradient = () => {
1206
1347
  const data = useButtonContext();
1207
1348
  const styles12 = styles_default6(data.first, data.second);
@@ -1217,23 +1358,23 @@ var Gradient = () => {
1217
1358
  return controls.stop;
1218
1359
  }
1219
1360
  }, [data.isLoading, angle]);
1220
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: styles12.container, children: [
1221
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: styles12.labelWrapper, children: [
1222
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles12.labelBefore }),
1223
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1361
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: styles12.container, children: [
1362
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: styles12.labelWrapper, children: [
1363
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: styles12.labelBefore }),
1364
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1224
1365
  "div",
1225
1366
  {
1226
1367
  style: __spreadProps(__spreadValues({}, styles12.label), { backgroundColor: data.main }),
1227
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { style: __spreadProps(__spreadValues({}, styles12.p), { color: `${data.text}` }), children: [
1368
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("p", { style: __spreadProps(__spreadValues({}, styles12.p), { color: `${data.text}` }), children: [
1228
1369
  data.children,
1229
1370
  " ",
1230
1371
  data.content
1231
1372
  ] })
1232
1373
  }
1233
1374
  ),
1234
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: styles12.labelAfter })
1375
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: styles12.labelAfter })
1235
1376
  ] }) })),
1236
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1377
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1237
1378
  import_framer_motion.motion.div,
1238
1379
  {
1239
1380
  style: __spreadProps(__spreadValues({}, styles12.btnAfter), {
@@ -1309,26 +1450,26 @@ var styles7 = (first) => {
1309
1450
  var styles_default7 = styles7;
1310
1451
 
1311
1452
  // src/components/Buttons/solid/Solid.tsx
1312
- var import_jsx_runtime11 = require("react/jsx-runtime");
1453
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1313
1454
  var Solid = () => {
1314
1455
  const data = useButtonContext();
1315
1456
  const styles12 = styles_default7(data.first);
1316
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1457
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1317
1458
  "div",
1318
1459
  {
1319
1460
  style: {
1320
1461
  position: "relative"
1321
1462
  },
1322
1463
  children: [
1323
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { position: "relative" }, children: [
1324
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.labelBefore }),
1325
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1464
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { position: "relative" }, children: [
1465
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: styles12.labelBefore }),
1466
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1326
1467
  "div",
1327
1468
  {
1328
1469
  style: __spreadProps(__spreadValues({}, styles12.label), {
1329
1470
  backgroundColor: data.main
1330
1471
  }),
1331
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1472
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1332
1473
  "p",
1333
1474
  {
1334
1475
  style: __spreadProps(__spreadValues({}, styles12.p), {
@@ -1343,9 +1484,9 @@ var Solid = () => {
1343
1484
  )
1344
1485
  }
1345
1486
  ),
1346
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.labelAfter })
1487
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: styles12.labelAfter })
1347
1488
  ] }) })),
1348
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: styles12.btnAfter })
1489
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: styles12.btnAfter })
1349
1490
  ]
1350
1491
  }
1351
1492
  );
@@ -1353,7 +1494,7 @@ var Solid = () => {
1353
1494
  var Solid_default = Solid;
1354
1495
 
1355
1496
  // src/components/Buttons/Button.tsx
1356
- var import_jsx_runtime12 = require("react/jsx-runtime");
1497
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1357
1498
  var ButtonContext = (0, import_react10.createContext)(void 0);
1358
1499
  function useButtonContext() {
1359
1500
  const data = (0, import_react10.useContext)(ButtonContext);
@@ -1384,7 +1525,7 @@ var Button = (_a) => {
1384
1525
  ]);
1385
1526
  switch (buttonType) {
1386
1527
  case "gradient":
1387
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1528
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1388
1529
  ButtonContext.Provider,
1389
1530
  {
1390
1531
  value: {
@@ -1397,11 +1538,11 @@ var Button = (_a) => {
1397
1538
  isLoading,
1398
1539
  children
1399
1540
  },
1400
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Gradient_default, {})
1541
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Gradient_default, {})
1401
1542
  }
1402
1543
  );
1403
1544
  case "solid":
1404
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1545
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1405
1546
  ButtonContext.Provider,
1406
1547
  {
1407
1548
  value: {
@@ -1413,11 +1554,11 @@ var Button = (_a) => {
1413
1554
  isLoading,
1414
1555
  children
1415
1556
  },
1416
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Solid_default, {})
1557
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Solid_default, {})
1417
1558
  }
1418
1559
  );
1419
1560
  default:
1420
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("button", __spreadProps(__spreadValues({}, props), { children: [
1561
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("button", __spreadProps(__spreadValues({}, props), { children: [
1421
1562
  children,
1422
1563
  " ",
1423
1564
  content
@@ -1454,7 +1595,7 @@ var styles8 = (first) => {
1454
1595
  var styles_default8 = styles8;
1455
1596
 
1456
1597
  // src/components/Buttons/modern/Modern.tsx
1457
- var import_jsx_runtime13 = require("react/jsx-runtime");
1598
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1458
1599
  var Modern = (_a) => {
1459
1600
  var _b = _a, {
1460
1601
  first = "#fff",
@@ -1482,7 +1623,7 @@ var Modern = (_a) => {
1482
1623
  const borderFirst = `solid 1px ${first}`;
1483
1624
  const shadowTransparent = `${transparentColor} 0px 0px 15px 2px`;
1484
1625
  const borderTransparent = `solid 1px ${transparentColor}`;
1485
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1626
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1486
1627
  "a",
1487
1628
  __spreadProps(__spreadValues({
1488
1629
  style: __spreadValues(__spreadProps(__spreadValues({}, styles_default8(first).btn), {
@@ -1498,11 +1639,6 @@ var Modern = (_a) => {
1498
1639
  };
1499
1640
  var Modern_default = Modern;
1500
1641
 
1501
- // src/components/Avatar/Avatar.tsx
1502
- var import_io5 = require("react-icons/io5");
1503
- var import_fa6 = require("react-icons/fa6");
1504
- var import_ri = require("react-icons/ri");
1505
-
1506
1642
  // src/components/Avatar/styles.ts
1507
1643
  var others = {
1508
1644
  iconSize: "20"
@@ -1555,7 +1691,7 @@ var styles_default9 = styles9;
1555
1691
 
1556
1692
  // src/components/Avatar/Avatar.tsx
1557
1693
  var import_react12 = require("react");
1558
- var import_jsx_runtime14 = require("react/jsx-runtime");
1694
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1559
1695
  var Avatar = ({ src, setValue, options }) => {
1560
1696
  const [isOpen, setOpen] = (0, import_react12.useState)(false);
1561
1697
  const [isNew, setNew] = (0, import_react12.useState)(false);
@@ -1577,8 +1713,8 @@ var Avatar = ({ src, setValue, options }) => {
1577
1713
  });
1578
1714
  })();
1579
1715
  }, []);
1580
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: styles_default9.container, children: [
1581
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1716
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { style: styles_default9.container, children: [
1717
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1582
1718
  ImageEditor_default,
1583
1719
  {
1584
1720
  src,
@@ -1588,8 +1724,8 @@ var Avatar = ({ src, setValue, options }) => {
1588
1724
  isNew
1589
1725
  }
1590
1726
  ),
1591
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Image_default, { src, style: styles_default9.image }),
1592
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1727
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Image_default, { src, style: styles_default9.image }),
1728
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1593
1729
  Button_default,
1594
1730
  {
1595
1731
  style: styles_default9.upload,
@@ -1598,12 +1734,12 @@ var Avatar = ({ src, setValue, options }) => {
1598
1734
  return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
1599
1735
  },
1600
1736
  children: [
1601
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_io5.IoCloudUploadOutline, { size: others.iconSize }),
1737
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CloudUpload_default, { size: others.iconSize }),
1602
1738
  "Upload"
1603
1739
  ]
1604
1740
  }
1605
1741
  ),
1606
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1742
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1607
1743
  UploadImage_default,
1608
1744
  {
1609
1745
  ref: uploadImageRef,
@@ -1614,7 +1750,7 @@ var Avatar = ({ src, setValue, options }) => {
1614
1750
  }
1615
1751
  }
1616
1752
  ),
1617
- isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1753
+ isAbleToRemove && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1618
1754
  Button_default,
1619
1755
  {
1620
1756
  style: styles_default9.remove,
@@ -1624,18 +1760,18 @@ var Avatar = ({ src, setValue, options }) => {
1624
1760
  setNew((prev) => !prev);
1625
1761
  },
1626
1762
  children: [
1627
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fa6.FaTrashCan, { size: others.iconSize, color: "red" }),
1763
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TrashCan_default, { size: others.iconSize, color: "red" }),
1628
1764
  "Remove"
1629
1765
  ]
1630
1766
  }
1631
1767
  ),
1632
- isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1768
+ isAbleToEdit && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1633
1769
  Button_default,
1634
1770
  {
1635
1771
  style: styles_default9.edit,
1636
1772
  onClick: () => setOpen((prev) => !prev),
1637
1773
  children: [
1638
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ri.RiEditLine, { size: others.iconSize }),
1774
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Edit_default, { size: others.iconSize }),
1639
1775
  "Edit"
1640
1776
  ]
1641
1777
  }
@@ -1691,7 +1827,7 @@ var styles10 = {
1691
1827
  var InputGoogle_styles_default = styles10;
1692
1828
 
1693
1829
  // src/components/Input/InputGoogle/InputGoogle.tsx
1694
- var import_jsx_runtime15 = require("react/jsx-runtime");
1830
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1695
1831
  var InputGoogle = (_a) => {
1696
1832
  var _b = _a, {
1697
1833
  value = "",
@@ -1711,7 +1847,7 @@ var InputGoogle = (_a) => {
1711
1847
  const backgroundColor = (options == null ? void 0 : options.backgroundColor) ? options.backgroundColor : others2.backgroundColor;
1712
1848
  const textColor = (options == null ? void 0 : options.textColor) ? options.textColor : others2.textRelease;
1713
1849
  const borderColor = (options == null ? void 0 : options.borderColor) ? options.borderColor : others2.borderRelease;
1714
- const borderWhenFocused = isFocus ? `${others2.border} ${options ? options.focusColor : others2.borderFocus}` : `${others2.border} ${borderColor}`;
1850
+ const borderWhenFocused = isFocus ? `${others2.border} ${(options == null ? void 0 : options.focusColor) ? options.focusColor : others2.borderFocus}` : `${others2.border} ${borderColor}`;
1715
1851
  const labelColorWhenFocused = isFocus ? `${(options == null ? void 0 : options.focusColor) ? options.focusColor : others2.textFocus}` : `${textColor}`;
1716
1852
  function spanPositionWhenFocused() {
1717
1853
  if (spanRef.current) {
@@ -1741,8 +1877,8 @@ var InputGoogle = (_a) => {
1741
1877
  (0, import_react13.useEffect)(() => {
1742
1878
  if (value) spanPositionWhenFocused();
1743
1879
  }, [value]);
1744
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1745
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1880
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { style: InputGoogle_styles_default.container, children: [
1881
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1746
1882
  "input",
1747
1883
  __spreadValues({
1748
1884
  id: crypto.randomUUID(),
@@ -1762,7 +1898,7 @@ var InputGoogle = (_a) => {
1762
1898
  onBlur: offFocus
1763
1899
  }, props)
1764
1900
  ),
1765
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1901
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1766
1902
  "span",
1767
1903
  {
1768
1904
  ref: spanRef,
@@ -1829,7 +1965,7 @@ var styles11 = {
1829
1965
  var TextArea_styles_default = styles11;
1830
1966
 
1831
1967
  // src/components/Input/TextArea/TextArea.tsx
1832
- var import_jsx_runtime16 = require("react/jsx-runtime");
1968
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1833
1969
  var TextArea = (_a) => {
1834
1970
  var _b = _a, {
1835
1971
  value = "",
@@ -1849,7 +1985,7 @@ var TextArea = (_a) => {
1849
1985
  const backgroundColor = (options == null ? void 0 : options.backgroundColor) ? options.backgroundColor : others3.backgroundColor;
1850
1986
  const textColor = (options == null ? void 0 : options.textColor) ? options.textColor : others3.textRelease;
1851
1987
  const borderColor = (options == null ? void 0 : options.borderColor) ? options.borderColor : others3.borderRelease;
1852
- const borderWhenFocused = isFocus ? `${others3.border} ${options ? options.focusColor : others3.borderFocus}` : `${others3.border} ${borderColor}`;
1988
+ const borderWhenFocused = isFocus ? `${others3.border} ${(options == null ? void 0 : options.focusColor) ? options.focusColor : others3.borderFocus}` : `${others3.border} ${borderColor}`;
1853
1989
  const labelColorWhenFocused = isFocus ? `${(options == null ? void 0 : options.focusColor) ? options.focusColor : others3.textFocus}` : `${textColor}`;
1854
1990
  function spanPositionWhenFocused() {
1855
1991
  if (spanRef.current) {
@@ -1879,8 +2015,8 @@ var TextArea = (_a) => {
1879
2015
  (0, import_react14.useEffect)(() => {
1880
2016
  if (value) spanPositionWhenFocused();
1881
2017
  }, [value]);
1882
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: TextArea_styles_default.container, children: [
1883
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2018
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: TextArea_styles_default.container, children: [
2019
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1884
2020
  "textarea",
1885
2021
  __spreadValues({
1886
2022
  id: crypto.randomUUID(),
@@ -1897,7 +2033,7 @@ var TextArea = (_a) => {
1897
2033
  onBlur: offFocus
1898
2034
  }, props)
1899
2035
  ),
1900
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2036
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1901
2037
  "span",
1902
2038
  {
1903
2039
  ref: spanRef,
@@ -1915,7 +2051,7 @@ var TextArea_default = TextArea;
1915
2051
 
1916
2052
  // src/components/Input/InputFile.tsx
1917
2053
  var import_react15 = require("react");
1918
- var import_jsx_runtime17 = require("react/jsx-runtime");
2054
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1919
2055
  var InputFile = (_a) => {
1920
2056
  var _b = _a, {
1921
2057
  file,
@@ -1930,7 +2066,7 @@ var InputFile = (_a) => {
1930
2066
  "acceptType"
1931
2067
  ]);
1932
2068
  const [key, setKey] = (0, import_react15.useState)(Date.now());
1933
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2069
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1934
2070
  "input",
1935
2071
  __spreadValues({
1936
2072
  id: crypto.randomUUID(),
@@ -1954,7 +2090,7 @@ var InputFile = (_a) => {
1954
2090
  var InputFile_default = InputFile;
1955
2091
 
1956
2092
  // src/components/Image/UploadImage.tsx
1957
- var import_jsx_runtime18 = require("react/jsx-runtime");
2093
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1958
2094
  var UploadImage = (_a) => {
1959
2095
  var _b = _a, {
1960
2096
  setSrc = () => {
@@ -1969,7 +2105,7 @@ var UploadImage = (_a) => {
1969
2105
  setSrc(src);
1970
2106
  });
1971
2107
  }
1972
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2108
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1973
2109
  InputFile_default,
1974
2110
  __spreadProps(__spreadValues({
1975
2111
  onChoose: handleSetSrc,
@@ -1982,10 +2118,10 @@ var UploadImage = (_a) => {
1982
2118
  var UploadImage_default = UploadImage;
1983
2119
 
1984
2120
  // src/components/Image/Image.tsx
1985
- var import_jsx_runtime19 = require("react/jsx-runtime");
2121
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1986
2122
  var Image = (_a) => {
1987
2123
  var props = __objRest(_a, []);
1988
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2124
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1989
2125
  "img",
1990
2126
  __spreadProps(__spreadValues({
1991
2127
  style: { width: "100%", height: "100%" }
@@ -2555,8 +2691,7 @@ var MainElements_styles_default = MainElementStyles;
2555
2691
 
2556
2692
  // src/components/Image/ImageEditor/MainElements/Rotate.tsx
2557
2693
  var import_react17 = require("react");
2558
- var import_fa62 = require("react-icons/fa6");
2559
- var import_jsx_runtime20 = require("react/jsx-runtime");
2694
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2560
2695
  var Rotate = () => {
2561
2696
  const [rotate, setRotate] = (0, import_react17.useState)(false);
2562
2697
  const { transformOperation: transformOperation2, refs } = useMyContext3();
@@ -2589,8 +2724,8 @@ var Rotate = () => {
2589
2724
  controller.abort();
2590
2725
  };
2591
2726
  }, []);
2592
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2593
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2727
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
2728
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2594
2729
  "div",
2595
2730
  {
2596
2731
  ref: refs.rotate,
@@ -2604,9 +2739,9 @@ var Rotate = () => {
2604
2739
  touchEvent.rotate(e, { top: true });
2605
2740
  },
2606
2741
  children: [
2607
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2608
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2609
- rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2742
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: handleBackground(rotate) }),
2743
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowRotateLeft_default, { size: "15" }),
2744
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2610
2745
  "p",
2611
2746
  {
2612
2747
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2621,7 +2756,7 @@ var Rotate = () => {
2621
2756
  ]
2622
2757
  }
2623
2758
  ),
2624
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2759
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2625
2760
  "div",
2626
2761
  {
2627
2762
  ref: refs.rotateBottom,
@@ -2635,9 +2770,9 @@ var Rotate = () => {
2635
2770
  touchEvent.rotate(e, { bottom: true });
2636
2771
  },
2637
2772
  children: [
2638
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: handleBackground(rotate) }),
2639
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa62.FaArrowRotateLeft, { size: "15" }),
2640
- rotate && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2773
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: handleBackground(rotate) }),
2774
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowRotateLeft_default, { size: "15" }),
2775
+ rotate && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2641
2776
  "p",
2642
2777
  {
2643
2778
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2659,7 +2794,7 @@ var Rotate = () => {
2659
2794
  var Rotate_default = Rotate;
2660
2795
 
2661
2796
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2662
- var import_jsx_runtime21 = require("react/jsx-runtime");
2797
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2663
2798
  var MainElements = () => {
2664
2799
  const {
2665
2800
  refs,
@@ -2718,9 +2853,9 @@ var MainElements = () => {
2718
2853
  controller.abort();
2719
2854
  };
2720
2855
  }, [reRender]);
2721
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2722
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2723
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2856
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2857
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2858
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2724
2859
  "div",
2725
2860
  {
2726
2861
  style: MainElements_styles_default.controller,
@@ -2728,7 +2863,7 @@ var MainElements = () => {
2728
2863
  onMouseDown: (e) => mouseEvent.drag(e),
2729
2864
  onTouchStart: (e) => touchEvent.drag(e),
2730
2865
  children: [
2731
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2866
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2732
2867
  "div",
2733
2868
  {
2734
2869
  ref: refs.topLeft,
@@ -2745,10 +2880,10 @@ var MainElements = () => {
2745
2880
  topLeft: true
2746
2881
  });
2747
2882
  },
2748
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topLeft) })
2883
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { style: handleBackground(topLeft) })
2749
2884
  }
2750
2885
  ),
2751
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2886
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2752
2887
  "div",
2753
2888
  {
2754
2889
  ref: refs.topRight,
@@ -2765,10 +2900,10 @@ var MainElements = () => {
2765
2900
  topRight: true
2766
2901
  });
2767
2902
  },
2768
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(topRight) })
2903
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { style: handleBackground(topRight) })
2769
2904
  }
2770
2905
  ),
2771
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2906
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2772
2907
  "div",
2773
2908
  {
2774
2909
  ref: refs.bottomLeft,
@@ -2785,10 +2920,10 @@ var MainElements = () => {
2785
2920
  bottomLeft: true
2786
2921
  });
2787
2922
  },
2788
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomLeft) })
2923
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { style: handleBackground(bottomLeft) })
2789
2924
  }
2790
2925
  ),
2791
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2926
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2792
2927
  "div",
2793
2928
  {
2794
2929
  ref: refs.bottomRight,
@@ -2805,11 +2940,11 @@ var MainElements = () => {
2805
2940
  bottomRight: true
2806
2941
  });
2807
2942
  },
2808
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: handleBackground(bottomRight) })
2943
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { style: handleBackground(bottomRight) })
2809
2944
  }
2810
2945
  ),
2811
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Rotate_default, {}),
2812
- (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2946
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Rotate_default, {}),
2947
+ (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2813
2948
  "p",
2814
2949
  {
2815
2950
  style: __spreadProps(__spreadValues({}, MainElements_styles_default.label), {
@@ -2832,9 +2967,9 @@ var MainElements = () => {
2832
2967
  var MainElements_default = MainElements;
2833
2968
 
2834
2969
  // src/components/Image/ImageEditor/Instruction.tsx
2835
- var import_jsx_runtime22 = require("react/jsx-runtime");
2970
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2836
2971
  var Instruction = () => {
2837
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2972
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2838
2973
  };
2839
2974
  var Instruction_default = Instruction;
2840
2975
 
@@ -2954,7 +3089,7 @@ var TransformOperation = class extends TransformOperationExtension {
2954
3089
  var TransformOperation_default = TransformOperation;
2955
3090
 
2956
3091
  // src/components/Image/ImageEditor/ImageEditor.tsx
2957
- var import_jsx_runtime23 = require("react/jsx-runtime");
3092
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2958
3093
  var transformOperation = new TransformOperation_default();
2959
3094
  var ImageEditor = ({
2960
3095
  src,
@@ -3046,7 +3181,7 @@ var ImageEditor = ({
3046
3181
  };
3047
3182
  }, [isOpen]);
3048
3183
  if (!isOpen) return;
3049
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3050
3185
  MyContext3.Provider,
3051
3186
  {
3052
3187
  value: {
@@ -3067,11 +3202,11 @@ var ImageEditor = ({
3067
3202
  src: originalSrc,
3068
3203
  transformOperation
3069
3204
  },
3070
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.imageEditor, children: [
3071
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Instruction_default, {}),
3072
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainElements_default, {}),
3073
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: ImageEditor_styles_default.buttons, children: [
3074
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3205
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { style: ImageEditor_styles_default.imageEditor, children: [
3206
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Instruction_default, {}),
3207
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(MainElements_default, {}),
3208
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { style: ImageEditor_styles_default.buttons, children: [
3209
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3075
3210
  Button_default,
3076
3211
  {
3077
3212
  buttonType: "solid",
@@ -3079,7 +3214,7 @@ var ImageEditor = ({
3079
3214
  onClick: handleAccept
3080
3215
  }
3081
3216
  ),
3082
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3217
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3083
3218
  Button_default,
3084
3219
  {
3085
3220
  buttonType: "solid",
@@ -3087,7 +3222,7 @@ var ImageEditor = ({
3087
3222
  onClick: handleCancel
3088
3223
  }
3089
3224
  ),
3090
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3225
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3091
3226
  Button_default,
3092
3227
  {
3093
3228
  buttonType: "solid",
@@ -3599,12 +3734,12 @@ function useSession() {
3599
3734
  }
3600
3735
 
3601
3736
  // src/auth/react/SessionProvider.tsx
3602
- var import_jsx_runtime24 = require("react/jsx-runtime");
3737
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3603
3738
  var SessionProvider = ({
3604
3739
  value,
3605
3740
  children
3606
3741
  }) => {
3607
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SessionContext.Provider, { value, children });
3742
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SessionContext.Provider, { value, children });
3608
3743
  };
3609
3744
  var SessionProvider_default = SessionProvider;
3610
3745