@willphan1712000/frontend 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1079,7 +1079,7 @@ import { motion } from "framer-motion";
1079
1079
  // src/components/Buttons/gradient/styles.ts
1080
1080
  var borderRadius = "20px";
1081
1081
  var styles6 = (first, second) => {
1082
- const styles11 = {
1082
+ const styles12 = {
1083
1083
  container: {
1084
1084
  position: "relative",
1085
1085
  borderRadius,
@@ -1154,7 +1154,7 @@ var styles6 = (first, second) => {
1154
1154
  width: "100%"
1155
1155
  }
1156
1156
  };
1157
- return styles11;
1157
+ return styles12;
1158
1158
  };
1159
1159
  var styles_default6 = styles6;
1160
1160
 
@@ -1162,26 +1162,26 @@ var styles_default6 = styles6;
1162
1162
  import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
1163
1163
  var Gradient = () => {
1164
1164
  const data = useButtonContext();
1165
- const styles11 = styles_default6(data.first, data.second);
1165
+ const styles12 = styles_default6(data.first, data.second);
1166
1166
  return /* @__PURE__ */ jsxs8(
1167
1167
  "div",
1168
1168
  {
1169
- style: __spreadProps(__spreadValues({}, styles11.container), {
1169
+ style: __spreadProps(__spreadValues({}, styles12.container), {
1170
1170
  overflow: data.isLoading ? "hidden" : ""
1171
1171
  }),
1172
1172
  children: [
1173
- /* @__PURE__ */ jsx10("button", __spreadProps(__spreadValues({ style: styles11.btn }, data.props), { children: /* @__PURE__ */ jsxs8("div", { style: { position: "relative" }, children: [
1174
- /* @__PURE__ */ jsx10("div", { style: styles11.labelBefore }),
1173
+ /* @__PURE__ */ jsx10("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ jsxs8("div", { style: { position: "relative" }, children: [
1174
+ /* @__PURE__ */ jsx10("div", { style: styles12.labelBefore }),
1175
1175
  /* @__PURE__ */ jsx10(
1176
1176
  "div",
1177
1177
  {
1178
- style: __spreadProps(__spreadValues({}, styles11.label), {
1178
+ style: __spreadProps(__spreadValues({}, styles12.label), {
1179
1179
  backgroundColor: data.main
1180
1180
  }),
1181
1181
  children: /* @__PURE__ */ jsxs8(
1182
1182
  "p",
1183
1183
  {
1184
- style: __spreadProps(__spreadValues({}, styles11.p), {
1184
+ style: __spreadProps(__spreadValues({}, styles12.p), {
1185
1185
  color: `${data.text}`
1186
1186
  }),
1187
1187
  children: [
@@ -1193,13 +1193,13 @@ var Gradient = () => {
1193
1193
  )
1194
1194
  }
1195
1195
  ),
1196
- /* @__PURE__ */ jsx10("div", { style: styles11.labelAfter })
1196
+ /* @__PURE__ */ jsx10("div", { style: styles12.labelAfter })
1197
1197
  ] }) })),
1198
- !data.isLoading && /* @__PURE__ */ jsx10("div", { style: styles11.btnAfter }),
1198
+ !data.isLoading && /* @__PURE__ */ jsx10("div", { style: styles12.btnAfter }),
1199
1199
  data.isLoading && /* @__PURE__ */ jsx10(
1200
1200
  motion.div,
1201
1201
  {
1202
- style: styles11.btnAfter,
1202
+ style: styles12.btnAfter,
1203
1203
  animate: { rotate: 360 },
1204
1204
  transition: {
1205
1205
  ease: "linear",
@@ -1216,7 +1216,7 @@ var Gradient_default = Gradient;
1216
1216
 
1217
1217
  // src/components/Buttons/solid/styles.ts
1218
1218
  var styles7 = (first) => {
1219
- const styles11 = {
1219
+ const styles12 = {
1220
1220
  btn: {
1221
1221
  cursor: "pointer",
1222
1222
  position: "relative",
@@ -1273,7 +1273,7 @@ var styles7 = (first) => {
1273
1273
  margin: 0
1274
1274
  }
1275
1275
  };
1276
- return styles11;
1276
+ return styles12;
1277
1277
  };
1278
1278
  var styles_default7 = styles7;
1279
1279
 
@@ -1281,7 +1281,7 @@ var styles_default7 = styles7;
1281
1281
  import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
1282
1282
  var Solid = () => {
1283
1283
  const data = useButtonContext();
1284
- const styles11 = styles_default7(data.first);
1284
+ const styles12 = styles_default7(data.first);
1285
1285
  return /* @__PURE__ */ jsxs9(
1286
1286
  "div",
1287
1287
  {
@@ -1289,18 +1289,18 @@ var Solid = () => {
1289
1289
  position: "relative"
1290
1290
  },
1291
1291
  children: [
1292
- /* @__PURE__ */ jsx11("button", __spreadProps(__spreadValues({ style: styles11.btn }, data.props), { children: /* @__PURE__ */ jsxs9("div", { style: { position: "relative" }, children: [
1293
- /* @__PURE__ */ jsx11("div", { style: styles11.labelBefore }),
1292
+ /* @__PURE__ */ jsx11("button", __spreadProps(__spreadValues({ style: styles12.btn }, data.props), { children: /* @__PURE__ */ jsxs9("div", { style: { position: "relative" }, children: [
1293
+ /* @__PURE__ */ jsx11("div", { style: styles12.labelBefore }),
1294
1294
  /* @__PURE__ */ jsx11(
1295
1295
  "div",
1296
1296
  {
1297
- style: __spreadProps(__spreadValues({}, styles11.label), {
1297
+ style: __spreadProps(__spreadValues({}, styles12.label), {
1298
1298
  backgroundColor: data.main
1299
1299
  }),
1300
1300
  children: /* @__PURE__ */ jsxs9(
1301
1301
  "p",
1302
1302
  {
1303
- style: __spreadProps(__spreadValues({}, styles11.p), {
1303
+ style: __spreadProps(__spreadValues({}, styles12.p), {
1304
1304
  color: `${data.text}`
1305
1305
  }),
1306
1306
  children: [
@@ -1312,9 +1312,9 @@ var Solid = () => {
1312
1312
  )
1313
1313
  }
1314
1314
  ),
1315
- /* @__PURE__ */ jsx11("div", { style: styles11.labelAfter })
1315
+ /* @__PURE__ */ jsx11("div", { style: styles12.labelAfter })
1316
1316
  ] }) })),
1317
- /* @__PURE__ */ jsx11("div", { style: styles11.btnAfter })
1317
+ /* @__PURE__ */ jsx11("div", { style: styles12.btnAfter })
1318
1318
  ]
1319
1319
  }
1320
1320
  );
@@ -1395,6 +1395,76 @@ var Button = (_a) => {
1395
1395
  };
1396
1396
  var Button_default = Button;
1397
1397
 
1398
+ // src/components/Buttons/modern/Modern.tsx
1399
+ import { useState as useState7 } from "react";
1400
+
1401
+ // src/components/Buttons/modern/styles.ts
1402
+ var styles8 = (first) => {
1403
+ const styles12 = {
1404
+ btn: {
1405
+ cursor: "pointer",
1406
+ display: "flex",
1407
+ justifyContent: "center",
1408
+ alignItems: "center",
1409
+ paddingTop: "5px",
1410
+ paddingBottom: "5px",
1411
+ paddingLeft: "10px",
1412
+ paddingRight: "10px",
1413
+ borderRadius: "10px",
1414
+ color: first,
1415
+ backgroundColor: `color-mix(in srgb, ${first} 20%, transparent)`,
1416
+ fontSize: "15px",
1417
+ transition: "all .1s linear"
1418
+ }
1419
+ };
1420
+ return styles12;
1421
+ };
1422
+ var styles_default8 = styles8;
1423
+
1424
+ // src/components/Buttons/modern/Modern.tsx
1425
+ import { jsx as jsx13 } from "react/jsx-runtime";
1426
+ var Modern = (_a) => {
1427
+ var _b = _a, {
1428
+ first = "#fff",
1429
+ children,
1430
+ style,
1431
+ hover = false,
1432
+ shadow = false
1433
+ } = _b, props = __objRest(_b, [
1434
+ "first",
1435
+ "children",
1436
+ "style",
1437
+ "hover",
1438
+ "shadow"
1439
+ ]);
1440
+ const [isHover, setHover] = useState7(false);
1441
+ const handleEnter = () => {
1442
+ if (!hover) return;
1443
+ setHover(true);
1444
+ };
1445
+ const handleLeave = () => {
1446
+ if (!hover) return;
1447
+ setHover(false);
1448
+ };
1449
+ const transparentColor = `color-mix(in srgb, ${first} 20%, transparent)`;
1450
+ const borderFirst = `solid 1px ${first}`;
1451
+ const shadowTransparent = `${transparentColor} 0px 0px 15px 2px`;
1452
+ const borderTransparent = `solid 1px ${transparentColor}`;
1453
+ return /* @__PURE__ */ jsx13(
1454
+ "a",
1455
+ __spreadProps(__spreadValues({}, props), {
1456
+ style: __spreadValues(__spreadProps(__spreadValues({}, styles_default8(first).btn), {
1457
+ border: hover ? isHover ? `${borderFirst}` : `${borderTransparent}` : `${borderFirst}`,
1458
+ boxShadow: hover ? isHover ? `${shadowTransparent}` : `` : shadow ? `${shadowTransparent}` : ""
1459
+ }), style),
1460
+ onMouseEnter: handleEnter,
1461
+ onMouseLeave: handleLeave,
1462
+ children
1463
+ })
1464
+ );
1465
+ };
1466
+ var Modern_default = Modern;
1467
+
1398
1468
  // src/components/Avatar/Avatar.tsx
1399
1469
  import { IoCloudUploadOutline } from "react-icons/io5";
1400
1470
  import { FaTrashCan } from "react-icons/fa6";
@@ -1417,7 +1487,7 @@ var button = {
1417
1487
  position: "absolute",
1418
1488
  backgroundColor: "white"
1419
1489
  };
1420
- var styles8 = {
1490
+ var styles9 = {
1421
1491
  container: {
1422
1492
  width: "100%",
1423
1493
  height: "100%",
@@ -1448,14 +1518,14 @@ var styles8 = {
1448
1518
  }),
1449
1519
  edit: __spreadValues({}, button)
1450
1520
  };
1451
- var styles_default8 = styles8;
1521
+ var styles_default9 = styles9;
1452
1522
 
1453
1523
  // src/components/Avatar/Avatar.tsx
1454
- import { useEffect as useEffect7, useRef as useRef7, useState as useState7 } from "react";
1455
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
1524
+ import { useEffect as useEffect7, useRef as useRef7, useState as useState8 } from "react";
1525
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
1456
1526
  var Avatar = ({ src, setValue, options }) => {
1457
- const [isOpen, setOpen] = useState7(false);
1458
- const [isNew, setNew] = useState7(false);
1527
+ const [isOpen, setOpen] = useState8(false);
1528
+ const [isNew, setNew] = useState8(false);
1459
1529
  const defaultImage = useRef7(void 0);
1460
1530
  const initialImage = useRef7(void 0);
1461
1531
  const uploadImageRef = useRef7(null);
@@ -1474,8 +1544,8 @@ var Avatar = ({ src, setValue, options }) => {
1474
1544
  });
1475
1545
  })();
1476
1546
  }, []);
1477
- return /* @__PURE__ */ jsxs11("div", { style: styles_default8.container, children: [
1478
- /* @__PURE__ */ jsx13(
1547
+ return /* @__PURE__ */ jsxs11("div", { style: styles_default9.container, children: [
1548
+ /* @__PURE__ */ jsx14(
1479
1549
  ImageEditor_default,
1480
1550
  {
1481
1551
  src,
@@ -1485,22 +1555,22 @@ var Avatar = ({ src, setValue, options }) => {
1485
1555
  isNew
1486
1556
  }
1487
1557
  ),
1488
- /* @__PURE__ */ jsx13(Image_default, { src, style: styles_default8.image }),
1558
+ /* @__PURE__ */ jsx14(Image_default, { src, style: styles_default9.image }),
1489
1559
  /* @__PURE__ */ jsxs11(
1490
1560
  Button_default,
1491
1561
  {
1492
- style: styles_default8.upload,
1562
+ style: styles_default9.upload,
1493
1563
  onClick: () => {
1494
1564
  var _a;
1495
1565
  return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
1496
1566
  },
1497
1567
  children: [
1498
- /* @__PURE__ */ jsx13(IoCloudUploadOutline, { size: others.iconSize }),
1568
+ /* @__PURE__ */ jsx14(IoCloudUploadOutline, { size: others.iconSize }),
1499
1569
  "Upload"
1500
1570
  ]
1501
1571
  }
1502
1572
  ),
1503
- /* @__PURE__ */ jsx13(
1573
+ /* @__PURE__ */ jsx14(
1504
1574
  UploadImage_default,
1505
1575
  {
1506
1576
  ref: uploadImageRef,
@@ -1514,14 +1584,14 @@ var Avatar = ({ src, setValue, options }) => {
1514
1584
  isAbleToRemove && /* @__PURE__ */ jsxs11(
1515
1585
  Button_default,
1516
1586
  {
1517
- style: styles_default8.remove,
1587
+ style: styles_default9.remove,
1518
1588
  onClick: () => {
1519
1589
  var _a;
1520
1590
  setValue((_a = defaultImage.current) != null ? _a : void 0);
1521
1591
  setNew((prev) => !prev);
1522
1592
  },
1523
1593
  children: [
1524
- /* @__PURE__ */ jsx13(FaTrashCan, { size: others.iconSize, color: "red" }),
1594
+ /* @__PURE__ */ jsx14(FaTrashCan, { size: others.iconSize, color: "red" }),
1525
1595
  "Remove"
1526
1596
  ]
1527
1597
  }
@@ -1529,10 +1599,10 @@ var Avatar = ({ src, setValue, options }) => {
1529
1599
  isAbleToEdit && /* @__PURE__ */ jsxs11(
1530
1600
  Button_default,
1531
1601
  {
1532
- style: styles_default8.edit,
1602
+ style: styles_default9.edit,
1533
1603
  onClick: () => setOpen((prev) => !prev),
1534
1604
  children: [
1535
- /* @__PURE__ */ jsx13(RiEditLine, { size: others.iconSize }),
1605
+ /* @__PURE__ */ jsx14(RiEditLine, { size: others.iconSize }),
1536
1606
  "Edit"
1537
1607
  ]
1538
1608
  }
@@ -1542,7 +1612,7 @@ var Avatar = ({ src, setValue, options }) => {
1542
1612
  var Avatar_default = Avatar;
1543
1613
 
1544
1614
  // src/components/Input/InputGoogle/InputGoogle.tsx
1545
- import { useEffect as useEffect8, useRef as useRef8, useState as useState8 } from "react";
1615
+ import { useEffect as useEffect8, useRef as useRef8, useState as useState9 } from "react";
1546
1616
 
1547
1617
  // src/components/Input/InputGoogle/InputGoogle.styles.ts
1548
1618
  var others2 = {
@@ -1556,7 +1626,7 @@ var others2 = {
1556
1626
  textFocus: "#0957d0",
1557
1627
  border: "solid 2px"
1558
1628
  };
1559
- var styles9 = {
1629
+ var styles10 = {
1560
1630
  input: {
1561
1631
  boxSizing: "border-box",
1562
1632
  height: "40px",
@@ -1581,10 +1651,10 @@ var styles9 = {
1581
1651
  backgroundColor: "white"
1582
1652
  }
1583
1653
  };
1584
- var InputGoogle_styles_default = styles9;
1654
+ var InputGoogle_styles_default = styles10;
1585
1655
 
1586
1656
  // src/components/Input/InputGoogle/InputGoogle.tsx
1587
- import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1657
+ import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
1588
1658
  var InputGoogle = (_a) => {
1589
1659
  var _b = _a, {
1590
1660
  value = "",
@@ -1598,7 +1668,7 @@ var InputGoogle = (_a) => {
1598
1668
  "label",
1599
1669
  "options"
1600
1670
  ]);
1601
- const [isFocus, setFocus] = useState8(false);
1671
+ const [isFocus, setFocus] = useState9(false);
1602
1672
  const spanRef = useRef8(null);
1603
1673
  const inputRef = useRef8(null);
1604
1674
  function transitionOnFocus() {
@@ -1627,7 +1697,7 @@ var InputGoogle = (_a) => {
1627
1697
  transitionOffFocus();
1628
1698
  }, []);
1629
1699
  return /* @__PURE__ */ jsxs12("div", { style: InputGoogle_styles_default.container, children: [
1630
- /* @__PURE__ */ jsx14(
1700
+ /* @__PURE__ */ jsx15(
1631
1701
  "input",
1632
1702
  __spreadValues({
1633
1703
  id: crypto.randomUUID(),
@@ -1643,7 +1713,7 @@ var InputGoogle = (_a) => {
1643
1713
  onBlur: transitionOffFocus
1644
1714
  }, props)
1645
1715
  ),
1646
- /* @__PURE__ */ jsx14(
1716
+ /* @__PURE__ */ jsx15(
1647
1717
  "span",
1648
1718
  {
1649
1719
  ref: spanRef,
@@ -1659,7 +1729,7 @@ var InputGoogle = (_a) => {
1659
1729
  var InputGoogle_default = InputGoogle;
1660
1730
 
1661
1731
  // src/components/Input/TextArea/TextArea.tsx
1662
- import { useEffect as useEffect9, useRef as useRef9, useState as useState9 } from "react";
1732
+ import { useEffect as useEffect9, useRef as useRef9, useState as useState10 } from "react";
1663
1733
 
1664
1734
  // src/components/Input/TextArea/TextArea.styles.ts
1665
1735
  var labelHeight = 20;
@@ -1674,7 +1744,7 @@ var others3 = {
1674
1744
  textFocus: "#0957d0",
1675
1745
  border: "solid 2px"
1676
1746
  };
1677
- var styles10 = {
1747
+ var styles11 = {
1678
1748
  input: {
1679
1749
  boxSizing: "border-box",
1680
1750
  height: "100%",
@@ -1702,10 +1772,10 @@ var styles10 = {
1702
1772
  backgroundColor: "white"
1703
1773
  }
1704
1774
  };
1705
- var TextArea_styles_default = styles10;
1775
+ var TextArea_styles_default = styles11;
1706
1776
 
1707
1777
  // src/components/Input/TextArea/TextArea.tsx
1708
- import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1778
+ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1709
1779
  var TextArea = (_a) => {
1710
1780
  var _b = _a, {
1711
1781
  value = "",
@@ -1719,7 +1789,7 @@ var TextArea = (_a) => {
1719
1789
  "label",
1720
1790
  "options"
1721
1791
  ]);
1722
- const [isFocus, setFocus] = useState9(false);
1792
+ const [isFocus, setFocus] = useState10(false);
1723
1793
  const spanRef = useRef9(null);
1724
1794
  const inputRef = useRef9(null);
1725
1795
  function transitionOnFocus() {
@@ -1748,7 +1818,7 @@ var TextArea = (_a) => {
1748
1818
  transitionOffFocus();
1749
1819
  }, []);
1750
1820
  return /* @__PURE__ */ jsxs13("div", { style: TextArea_styles_default.container, children: [
1751
- /* @__PURE__ */ jsx15(
1821
+ /* @__PURE__ */ jsx16(
1752
1822
  "textarea",
1753
1823
  __spreadValues({
1754
1824
  id: crypto.randomUUID(),
@@ -1763,7 +1833,7 @@ var TextArea = (_a) => {
1763
1833
  onBlur: transitionOffFocus
1764
1834
  }, props)
1765
1835
  ),
1766
- /* @__PURE__ */ jsx15(
1836
+ /* @__PURE__ */ jsx16(
1767
1837
  "span",
1768
1838
  {
1769
1839
  ref: spanRef,
@@ -1779,8 +1849,8 @@ var TextArea = (_a) => {
1779
1849
  var TextArea_default = TextArea;
1780
1850
 
1781
1851
  // src/components/Input/InputFile.tsx
1782
- import { useState as useState10 } from "react";
1783
- import { jsx as jsx16 } from "react/jsx-runtime";
1852
+ import { useState as useState11 } from "react";
1853
+ import { jsx as jsx17 } from "react/jsx-runtime";
1784
1854
  var InputFile = (_a) => {
1785
1855
  var _b = _a, {
1786
1856
  file,
@@ -1794,8 +1864,8 @@ var InputFile = (_a) => {
1794
1864
  "onCancel",
1795
1865
  "acceptType"
1796
1866
  ]);
1797
- const [key, setKey] = useState10(Date.now());
1798
- return /* @__PURE__ */ jsx16(
1867
+ const [key, setKey] = useState11(Date.now());
1868
+ return /* @__PURE__ */ jsx17(
1799
1869
  "input",
1800
1870
  __spreadValues({
1801
1871
  id: crypto.randomUUID(),
@@ -1819,7 +1889,7 @@ var InputFile = (_a) => {
1819
1889
  var InputFile_default = InputFile;
1820
1890
 
1821
1891
  // src/components/Image/UploadImage.tsx
1822
- import { Fragment, jsx as jsx17 } from "react/jsx-runtime";
1892
+ import { Fragment, jsx as jsx18 } from "react/jsx-runtime";
1823
1893
  var UploadImage = (_a) => {
1824
1894
  var _b = _a, {
1825
1895
  setSrc = () => {
@@ -1834,7 +1904,7 @@ var UploadImage = (_a) => {
1834
1904
  setSrc(src);
1835
1905
  });
1836
1906
  }
1837
- return /* @__PURE__ */ jsx17(Fragment, { children: /* @__PURE__ */ jsx17(
1907
+ return /* @__PURE__ */ jsx18(Fragment, { children: /* @__PURE__ */ jsx18(
1838
1908
  InputFile_default,
1839
1909
  __spreadProps(__spreadValues({
1840
1910
  onChoose: handleSetSrc,
@@ -1847,10 +1917,10 @@ var UploadImage = (_a) => {
1847
1917
  var UploadImage_default = UploadImage;
1848
1918
 
1849
1919
  // src/components/Image/Image.tsx
1850
- import { jsx as jsx18 } from "react/jsx-runtime";
1920
+ import { jsx as jsx19 } from "react/jsx-runtime";
1851
1921
  var Image = (_a) => {
1852
1922
  var props = __objRest(_a, []);
1853
- return /* @__PURE__ */ jsx18(
1923
+ return /* @__PURE__ */ jsx19(
1854
1924
  "img",
1855
1925
  __spreadProps(__spreadValues({
1856
1926
  style: { width: "100%", height: "100%" }
@@ -1863,7 +1933,7 @@ var Image = (_a) => {
1863
1933
  var Image_default = Image;
1864
1934
 
1865
1935
  // src/components/Image/ImageEditor/ImageEditor.tsx
1866
- import { useEffect as useEffect12, useMemo, useRef as useRef10, useState as useState13 } from "react";
1936
+ import { useEffect as useEffect12, useMemo, useRef as useRef10, useState as useState14 } from "react";
1867
1937
 
1868
1938
  // src/components/Image/ImageEditor/ImageEditor.styles.ts
1869
1939
  var imageEditorStyles = {
@@ -2282,7 +2352,7 @@ var WTouchEvent = class {
2282
2352
  };
2283
2353
 
2284
2354
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2285
- import { useEffect as useEffect11, useState as useState12 } from "react";
2355
+ import { useEffect as useEffect11, useState as useState13 } from "react";
2286
2356
 
2287
2357
  // src/components/Image/ImageEditor/context.ts
2288
2358
  import { createContext as createContext4, useContext as useContext4 } from "react";
@@ -2419,11 +2489,11 @@ var MainElementStyles = {
2419
2489
  var MainElements_styles_default = MainElementStyles;
2420
2490
 
2421
2491
  // src/components/Image/ImageEditor/MainElements/Rotate.tsx
2422
- import { useEffect as useEffect10, useState as useState11 } from "react";
2492
+ import { useEffect as useEffect10, useState as useState12 } from "react";
2423
2493
  import { FaArrowRotateLeft } from "react-icons/fa6";
2424
- import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
2494
+ import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
2425
2495
  var Rotate = () => {
2426
- const [rotate, setRotate] = useState11(false);
2496
+ const [rotate, setRotate] = useState12(false);
2427
2497
  const { transformOperation: transformOperation2, refs } = useMyContext3();
2428
2498
  const mouseEvent = new WMouseEvent(transformOperation2);
2429
2499
  const touchEvent = new WTouchEvent(transformOperation2);
@@ -2469,8 +2539,8 @@ var Rotate = () => {
2469
2539
  touchEvent.rotate(e, { top: true });
2470
2540
  },
2471
2541
  children: [
2472
- /* @__PURE__ */ jsx19("div", { style: handleBackground(rotate) }),
2473
- /* @__PURE__ */ jsx19(FaArrowRotateLeft, { size: "15" }),
2542
+ /* @__PURE__ */ jsx20("div", { style: handleBackground(rotate) }),
2543
+ /* @__PURE__ */ jsx20(FaArrowRotateLeft, { size: "15" }),
2474
2544
  rotate && /* @__PURE__ */ jsxs14(
2475
2545
  "p",
2476
2546
  {
@@ -2500,8 +2570,8 @@ var Rotate = () => {
2500
2570
  touchEvent.rotate(e, { bottom: true });
2501
2571
  },
2502
2572
  children: [
2503
- /* @__PURE__ */ jsx19("div", { style: handleBackground(rotate) }),
2504
- /* @__PURE__ */ jsx19(FaArrowRotateLeft, { size: "15" }),
2573
+ /* @__PURE__ */ jsx20("div", { style: handleBackground(rotate) }),
2574
+ /* @__PURE__ */ jsx20(FaArrowRotateLeft, { size: "15" }),
2505
2575
  rotate && /* @__PURE__ */ jsxs14(
2506
2576
  "p",
2507
2577
  {
@@ -2524,7 +2594,7 @@ var Rotate = () => {
2524
2594
  var Rotate_default = Rotate;
2525
2595
 
2526
2596
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2527
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
2597
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
2528
2598
  var MainElements = () => {
2529
2599
  const {
2530
2600
  refs,
@@ -2534,11 +2604,11 @@ var MainElements = () => {
2534
2604
  } = useMyContext3();
2535
2605
  const mouseEvent = new WMouseEvent(transformOperation2);
2536
2606
  const touchEvent = new WTouchEvent(transformOperation2);
2537
- const [topLeft, settopLeft] = useState12(false);
2538
- const [topRight, settopRight] = useState12(false);
2539
- const [bottomLeft, setbottomLeft] = useState12(false);
2540
- const [bottomRight, setbottomRight] = useState12(false);
2541
- const [reRender, triggierReRender] = useState12(false);
2607
+ const [topLeft, settopLeft] = useState13(false);
2608
+ const [topRight, settopRight] = useState13(false);
2609
+ const [bottomLeft, setbottomLeft] = useState13(false);
2610
+ const [bottomRight, setbottomRight] = useState13(false);
2611
+ const [reRender, triggierReRender] = useState13(false);
2542
2612
  const { angle, width, height } = transformOperation2.getDimension();
2543
2613
  const handleBackground = (value) => {
2544
2614
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
@@ -2584,7 +2654,7 @@ var MainElements = () => {
2584
2654
  };
2585
2655
  }, [reRender]);
2586
2656
  return /* @__PURE__ */ jsxs15("div", { ref: refs.container, style: MainElements_styles_default.container, children: [
2587
- /* @__PURE__ */ jsx20("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ jsx20("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2657
+ /* @__PURE__ */ jsx21("div", { ref: refs.frame, style: MainElements_styles_default.frame, children: /* @__PURE__ */ jsx21("img", { src: originalSrc, style: MainElements_styles_default.img, ref: imgRefs.img }) }),
2588
2658
  /* @__PURE__ */ jsxs15(
2589
2659
  "div",
2590
2660
  {
@@ -2593,7 +2663,7 @@ var MainElements = () => {
2593
2663
  onMouseDown: (e) => mouseEvent.drag(e),
2594
2664
  onTouchStart: (e) => touchEvent.drag(e),
2595
2665
  children: [
2596
- /* @__PURE__ */ jsx20(
2666
+ /* @__PURE__ */ jsx21(
2597
2667
  "div",
2598
2668
  {
2599
2669
  ref: refs.topLeft,
@@ -2610,10 +2680,10 @@ var MainElements = () => {
2610
2680
  topLeft: true
2611
2681
  });
2612
2682
  },
2613
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(topLeft) })
2683
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(topLeft) })
2614
2684
  }
2615
2685
  ),
2616
- /* @__PURE__ */ jsx20(
2686
+ /* @__PURE__ */ jsx21(
2617
2687
  "div",
2618
2688
  {
2619
2689
  ref: refs.topRight,
@@ -2630,10 +2700,10 @@ var MainElements = () => {
2630
2700
  topRight: true
2631
2701
  });
2632
2702
  },
2633
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(topRight) })
2703
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(topRight) })
2634
2704
  }
2635
2705
  ),
2636
- /* @__PURE__ */ jsx20(
2706
+ /* @__PURE__ */ jsx21(
2637
2707
  "div",
2638
2708
  {
2639
2709
  ref: refs.bottomLeft,
@@ -2650,10 +2720,10 @@ var MainElements = () => {
2650
2720
  bottomLeft: true
2651
2721
  });
2652
2722
  },
2653
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(bottomLeft) })
2723
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(bottomLeft) })
2654
2724
  }
2655
2725
  ),
2656
- /* @__PURE__ */ jsx20(
2726
+ /* @__PURE__ */ jsx21(
2657
2727
  "div",
2658
2728
  {
2659
2729
  ref: refs.bottomRight,
@@ -2670,10 +2740,10 @@ var MainElements = () => {
2670
2740
  bottomRight: true
2671
2741
  });
2672
2742
  },
2673
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(bottomRight) })
2743
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(bottomRight) })
2674
2744
  }
2675
2745
  ),
2676
- /* @__PURE__ */ jsx20(Rotate_default, {}),
2746
+ /* @__PURE__ */ jsx21(Rotate_default, {}),
2677
2747
  (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ jsxs15(
2678
2748
  "p",
2679
2749
  {
@@ -2697,9 +2767,9 @@ var MainElements = () => {
2697
2767
  var MainElements_default = MainElements;
2698
2768
 
2699
2769
  // src/components/Image/ImageEditor/Instruction.tsx
2700
- import { jsx as jsx21 } from "react/jsx-runtime";
2770
+ import { jsx as jsx22 } from "react/jsx-runtime";
2701
2771
  var Instruction = () => {
2702
- return /* @__PURE__ */ jsx21("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2772
+ return /* @__PURE__ */ jsx22("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2703
2773
  };
2704
2774
  var Instruction_default = Instruction;
2705
2775
 
@@ -2819,7 +2889,7 @@ var TransformOperation = class extends TransformOperationExtension {
2819
2889
  var TransformOperation_default = TransformOperation;
2820
2890
 
2821
2891
  // src/components/Image/ImageEditor/ImageEditor.tsx
2822
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
2892
+ import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
2823
2893
  var transformOperation = new TransformOperation_default();
2824
2894
  var ImageEditor = ({
2825
2895
  src,
@@ -2840,7 +2910,7 @@ var ImageEditor = ({
2840
2910
  const bottomRight = useRef10(null);
2841
2911
  const rotate = useRef10(null);
2842
2912
  const rotateBottom = useRef10(null);
2843
- const [transform, setTransform] = useState13(
2913
+ const [transform, setTransform] = useState14(
2844
2914
  void 0
2845
2915
  );
2846
2916
  const transformState = useRef10(void 0);
@@ -2911,7 +2981,7 @@ var ImageEditor = ({
2911
2981
  };
2912
2982
  }, [isOpen]);
2913
2983
  if (!isOpen) return;
2914
- return /* @__PURE__ */ jsx22(
2984
+ return /* @__PURE__ */ jsx23(
2915
2985
  MyContext3.Provider,
2916
2986
  {
2917
2987
  value: {
@@ -2933,10 +3003,10 @@ var ImageEditor = ({
2933
3003
  transformOperation
2934
3004
  },
2935
3005
  children: /* @__PURE__ */ jsxs16("div", { style: ImageEditor_styles_default.imageEditor, children: [
2936
- /* @__PURE__ */ jsx22(Instruction_default, {}),
2937
- /* @__PURE__ */ jsx22(MainElements_default, {}),
3006
+ /* @__PURE__ */ jsx23(Instruction_default, {}),
3007
+ /* @__PURE__ */ jsx23(MainElements_default, {}),
2938
3008
  /* @__PURE__ */ jsxs16("div", { style: ImageEditor_styles_default.buttons, children: [
2939
- /* @__PURE__ */ jsx22(
3009
+ /* @__PURE__ */ jsx23(
2940
3010
  Button_default,
2941
3011
  {
2942
3012
  buttonType: "solid",
@@ -2944,7 +3014,7 @@ var ImageEditor = ({
2944
3014
  onClick: handleAccept
2945
3015
  }
2946
3016
  ),
2947
- /* @__PURE__ */ jsx22(
3017
+ /* @__PURE__ */ jsx23(
2948
3018
  Button_default,
2949
3019
  {
2950
3020
  buttonType: "solid",
@@ -2952,7 +3022,7 @@ var ImageEditor = ({
2952
3022
  onClick: handleCancel
2953
3023
  }
2954
3024
  ),
2955
- /* @__PURE__ */ jsx22(
3025
+ /* @__PURE__ */ jsx23(
2956
3026
  Button_default,
2957
3027
  {
2958
3028
  buttonType: "solid",
@@ -3448,19 +3518,19 @@ function useSession() {
3448
3518
  }
3449
3519
 
3450
3520
  // src/auth/react/SessionProvider.tsx
3451
- import { jsx as jsx23 } from "react/jsx-runtime";
3521
+ import { jsx as jsx24 } from "react/jsx-runtime";
3452
3522
  var SessionProvider = ({
3453
3523
  value,
3454
3524
  children
3455
3525
  }) => {
3456
- return /* @__PURE__ */ jsx23(SessionContext.Provider, { value, children });
3526
+ return /* @__PURE__ */ jsx24(SessionContext.Provider, { value, children });
3457
3527
  };
3458
3528
  var SessionProvider_default = SessionProvider;
3459
3529
 
3460
3530
  // src/auth/react/useAuthClient.ts
3461
- import { useEffect as useEffect13, useRef as useRef11, useState as useState14 } from "react";
3531
+ import { useEffect as useEffect13, useRef as useRef11, useState as useState15 } from "react";
3462
3532
  var useAuthClient = (auth) => {
3463
- const [isLoading, setLoading] = useState14(false);
3533
+ const [isLoading, setLoading] = useState15(false);
3464
3534
  const sessionRef = useRef11(void 0);
3465
3535
  useEffect13(() => {
3466
3536
  let is = true;
@@ -3628,6 +3698,7 @@ export {
3628
3698
  InputFile_default as InputFile,
3629
3699
  InputGoogle_default as InputGoogle,
3630
3700
  LinearAlgebra_default as LinearAlgebra,
3701
+ Modern_default as ModernButton,
3631
3702
  MultiSelect_default as MultiSelect,
3632
3703
  OptionSlider_default as OptionSlider,
3633
3704
  RangeSlider_default as RangeSlider,