@willphan1712000/frontend 1.6.0 → 1.7.1

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,77 @@ 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({
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
+ }, props), {
1463
+ children
1464
+ })
1465
+ );
1466
+ };
1467
+ var Modern_default = Modern;
1468
+
1398
1469
  // src/components/Avatar/Avatar.tsx
1399
1470
  import { IoCloudUploadOutline } from "react-icons/io5";
1400
1471
  import { FaTrashCan } from "react-icons/fa6";
@@ -1417,7 +1488,7 @@ var button = {
1417
1488
  position: "absolute",
1418
1489
  backgroundColor: "white"
1419
1490
  };
1420
- var styles8 = {
1491
+ var styles9 = {
1421
1492
  container: {
1422
1493
  width: "100%",
1423
1494
  height: "100%",
@@ -1448,14 +1519,14 @@ var styles8 = {
1448
1519
  }),
1449
1520
  edit: __spreadValues({}, button)
1450
1521
  };
1451
- var styles_default8 = styles8;
1522
+ var styles_default9 = styles9;
1452
1523
 
1453
1524
  // 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";
1525
+ import { useEffect as useEffect7, useRef as useRef7, useState as useState8 } from "react";
1526
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
1456
1527
  var Avatar = ({ src, setValue, options }) => {
1457
- const [isOpen, setOpen] = useState7(false);
1458
- const [isNew, setNew] = useState7(false);
1528
+ const [isOpen, setOpen] = useState8(false);
1529
+ const [isNew, setNew] = useState8(false);
1459
1530
  const defaultImage = useRef7(void 0);
1460
1531
  const initialImage = useRef7(void 0);
1461
1532
  const uploadImageRef = useRef7(null);
@@ -1474,8 +1545,8 @@ var Avatar = ({ src, setValue, options }) => {
1474
1545
  });
1475
1546
  })();
1476
1547
  }, []);
1477
- return /* @__PURE__ */ jsxs11("div", { style: styles_default8.container, children: [
1478
- /* @__PURE__ */ jsx13(
1548
+ return /* @__PURE__ */ jsxs11("div", { style: styles_default9.container, children: [
1549
+ /* @__PURE__ */ jsx14(
1479
1550
  ImageEditor_default,
1480
1551
  {
1481
1552
  src,
@@ -1485,22 +1556,22 @@ var Avatar = ({ src, setValue, options }) => {
1485
1556
  isNew
1486
1557
  }
1487
1558
  ),
1488
- /* @__PURE__ */ jsx13(Image_default, { src, style: styles_default8.image }),
1559
+ /* @__PURE__ */ jsx14(Image_default, { src, style: styles_default9.image }),
1489
1560
  /* @__PURE__ */ jsxs11(
1490
1561
  Button_default,
1491
1562
  {
1492
- style: styles_default8.upload,
1563
+ style: styles_default9.upload,
1493
1564
  onClick: () => {
1494
1565
  var _a;
1495
1566
  return (_a = uploadImageRef.current) == null ? void 0 : _a.click();
1496
1567
  },
1497
1568
  children: [
1498
- /* @__PURE__ */ jsx13(IoCloudUploadOutline, { size: others.iconSize }),
1569
+ /* @__PURE__ */ jsx14(IoCloudUploadOutline, { size: others.iconSize }),
1499
1570
  "Upload"
1500
1571
  ]
1501
1572
  }
1502
1573
  ),
1503
- /* @__PURE__ */ jsx13(
1574
+ /* @__PURE__ */ jsx14(
1504
1575
  UploadImage_default,
1505
1576
  {
1506
1577
  ref: uploadImageRef,
@@ -1514,14 +1585,14 @@ var Avatar = ({ src, setValue, options }) => {
1514
1585
  isAbleToRemove && /* @__PURE__ */ jsxs11(
1515
1586
  Button_default,
1516
1587
  {
1517
- style: styles_default8.remove,
1588
+ style: styles_default9.remove,
1518
1589
  onClick: () => {
1519
1590
  var _a;
1520
1591
  setValue((_a = defaultImage.current) != null ? _a : void 0);
1521
1592
  setNew((prev) => !prev);
1522
1593
  },
1523
1594
  children: [
1524
- /* @__PURE__ */ jsx13(FaTrashCan, { size: others.iconSize, color: "red" }),
1595
+ /* @__PURE__ */ jsx14(FaTrashCan, { size: others.iconSize, color: "red" }),
1525
1596
  "Remove"
1526
1597
  ]
1527
1598
  }
@@ -1529,10 +1600,10 @@ var Avatar = ({ src, setValue, options }) => {
1529
1600
  isAbleToEdit && /* @__PURE__ */ jsxs11(
1530
1601
  Button_default,
1531
1602
  {
1532
- style: styles_default8.edit,
1603
+ style: styles_default9.edit,
1533
1604
  onClick: () => setOpen((prev) => !prev),
1534
1605
  children: [
1535
- /* @__PURE__ */ jsx13(RiEditLine, { size: others.iconSize }),
1606
+ /* @__PURE__ */ jsx14(RiEditLine, { size: others.iconSize }),
1536
1607
  "Edit"
1537
1608
  ]
1538
1609
  }
@@ -1542,7 +1613,7 @@ var Avatar = ({ src, setValue, options }) => {
1542
1613
  var Avatar_default = Avatar;
1543
1614
 
1544
1615
  // src/components/Input/InputGoogle/InputGoogle.tsx
1545
- import { useEffect as useEffect8, useRef as useRef8, useState as useState8 } from "react";
1616
+ import { useEffect as useEffect8, useRef as useRef8, useState as useState9 } from "react";
1546
1617
 
1547
1618
  // src/components/Input/InputGoogle/InputGoogle.styles.ts
1548
1619
  var others2 = {
@@ -1556,7 +1627,7 @@ var others2 = {
1556
1627
  textFocus: "#0957d0",
1557
1628
  border: "solid 2px"
1558
1629
  };
1559
- var styles9 = {
1630
+ var styles10 = {
1560
1631
  input: {
1561
1632
  boxSizing: "border-box",
1562
1633
  height: "40px",
@@ -1581,10 +1652,10 @@ var styles9 = {
1581
1652
  backgroundColor: "white"
1582
1653
  }
1583
1654
  };
1584
- var InputGoogle_styles_default = styles9;
1655
+ var InputGoogle_styles_default = styles10;
1585
1656
 
1586
1657
  // src/components/Input/InputGoogle/InputGoogle.tsx
1587
- import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1658
+ import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
1588
1659
  var InputGoogle = (_a) => {
1589
1660
  var _b = _a, {
1590
1661
  value = "",
@@ -1598,7 +1669,7 @@ var InputGoogle = (_a) => {
1598
1669
  "label",
1599
1670
  "options"
1600
1671
  ]);
1601
- const [isFocus, setFocus] = useState8(false);
1672
+ const [isFocus, setFocus] = useState9(false);
1602
1673
  const spanRef = useRef8(null);
1603
1674
  const inputRef = useRef8(null);
1604
1675
  function transitionOnFocus() {
@@ -1627,7 +1698,7 @@ var InputGoogle = (_a) => {
1627
1698
  transitionOffFocus();
1628
1699
  }, []);
1629
1700
  return /* @__PURE__ */ jsxs12("div", { style: InputGoogle_styles_default.container, children: [
1630
- /* @__PURE__ */ jsx14(
1701
+ /* @__PURE__ */ jsx15(
1631
1702
  "input",
1632
1703
  __spreadValues({
1633
1704
  id: crypto.randomUUID(),
@@ -1643,7 +1714,7 @@ var InputGoogle = (_a) => {
1643
1714
  onBlur: transitionOffFocus
1644
1715
  }, props)
1645
1716
  ),
1646
- /* @__PURE__ */ jsx14(
1717
+ /* @__PURE__ */ jsx15(
1647
1718
  "span",
1648
1719
  {
1649
1720
  ref: spanRef,
@@ -1659,7 +1730,7 @@ var InputGoogle = (_a) => {
1659
1730
  var InputGoogle_default = InputGoogle;
1660
1731
 
1661
1732
  // src/components/Input/TextArea/TextArea.tsx
1662
- import { useEffect as useEffect9, useRef as useRef9, useState as useState9 } from "react";
1733
+ import { useEffect as useEffect9, useRef as useRef9, useState as useState10 } from "react";
1663
1734
 
1664
1735
  // src/components/Input/TextArea/TextArea.styles.ts
1665
1736
  var labelHeight = 20;
@@ -1674,7 +1745,7 @@ var others3 = {
1674
1745
  textFocus: "#0957d0",
1675
1746
  border: "solid 2px"
1676
1747
  };
1677
- var styles10 = {
1748
+ var styles11 = {
1678
1749
  input: {
1679
1750
  boxSizing: "border-box",
1680
1751
  height: "100%",
@@ -1702,10 +1773,10 @@ var styles10 = {
1702
1773
  backgroundColor: "white"
1703
1774
  }
1704
1775
  };
1705
- var TextArea_styles_default = styles10;
1776
+ var TextArea_styles_default = styles11;
1706
1777
 
1707
1778
  // src/components/Input/TextArea/TextArea.tsx
1708
- import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1779
+ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1709
1780
  var TextArea = (_a) => {
1710
1781
  var _b = _a, {
1711
1782
  value = "",
@@ -1719,7 +1790,7 @@ var TextArea = (_a) => {
1719
1790
  "label",
1720
1791
  "options"
1721
1792
  ]);
1722
- const [isFocus, setFocus] = useState9(false);
1793
+ const [isFocus, setFocus] = useState10(false);
1723
1794
  const spanRef = useRef9(null);
1724
1795
  const inputRef = useRef9(null);
1725
1796
  function transitionOnFocus() {
@@ -1748,7 +1819,7 @@ var TextArea = (_a) => {
1748
1819
  transitionOffFocus();
1749
1820
  }, []);
1750
1821
  return /* @__PURE__ */ jsxs13("div", { style: TextArea_styles_default.container, children: [
1751
- /* @__PURE__ */ jsx15(
1822
+ /* @__PURE__ */ jsx16(
1752
1823
  "textarea",
1753
1824
  __spreadValues({
1754
1825
  id: crypto.randomUUID(),
@@ -1763,7 +1834,7 @@ var TextArea = (_a) => {
1763
1834
  onBlur: transitionOffFocus
1764
1835
  }, props)
1765
1836
  ),
1766
- /* @__PURE__ */ jsx15(
1837
+ /* @__PURE__ */ jsx16(
1767
1838
  "span",
1768
1839
  {
1769
1840
  ref: spanRef,
@@ -1779,8 +1850,8 @@ var TextArea = (_a) => {
1779
1850
  var TextArea_default = TextArea;
1780
1851
 
1781
1852
  // src/components/Input/InputFile.tsx
1782
- import { useState as useState10 } from "react";
1783
- import { jsx as jsx16 } from "react/jsx-runtime";
1853
+ import { useState as useState11 } from "react";
1854
+ import { jsx as jsx17 } from "react/jsx-runtime";
1784
1855
  var InputFile = (_a) => {
1785
1856
  var _b = _a, {
1786
1857
  file,
@@ -1794,8 +1865,8 @@ var InputFile = (_a) => {
1794
1865
  "onCancel",
1795
1866
  "acceptType"
1796
1867
  ]);
1797
- const [key, setKey] = useState10(Date.now());
1798
- return /* @__PURE__ */ jsx16(
1868
+ const [key, setKey] = useState11(Date.now());
1869
+ return /* @__PURE__ */ jsx17(
1799
1870
  "input",
1800
1871
  __spreadValues({
1801
1872
  id: crypto.randomUUID(),
@@ -1819,7 +1890,7 @@ var InputFile = (_a) => {
1819
1890
  var InputFile_default = InputFile;
1820
1891
 
1821
1892
  // src/components/Image/UploadImage.tsx
1822
- import { Fragment, jsx as jsx17 } from "react/jsx-runtime";
1893
+ import { Fragment, jsx as jsx18 } from "react/jsx-runtime";
1823
1894
  var UploadImage = (_a) => {
1824
1895
  var _b = _a, {
1825
1896
  setSrc = () => {
@@ -1834,7 +1905,7 @@ var UploadImage = (_a) => {
1834
1905
  setSrc(src);
1835
1906
  });
1836
1907
  }
1837
- return /* @__PURE__ */ jsx17(Fragment, { children: /* @__PURE__ */ jsx17(
1908
+ return /* @__PURE__ */ jsx18(Fragment, { children: /* @__PURE__ */ jsx18(
1838
1909
  InputFile_default,
1839
1910
  __spreadProps(__spreadValues({
1840
1911
  onChoose: handleSetSrc,
@@ -1847,10 +1918,10 @@ var UploadImage = (_a) => {
1847
1918
  var UploadImage_default = UploadImage;
1848
1919
 
1849
1920
  // src/components/Image/Image.tsx
1850
- import { jsx as jsx18 } from "react/jsx-runtime";
1921
+ import { jsx as jsx19 } from "react/jsx-runtime";
1851
1922
  var Image = (_a) => {
1852
1923
  var props = __objRest(_a, []);
1853
- return /* @__PURE__ */ jsx18(
1924
+ return /* @__PURE__ */ jsx19(
1854
1925
  "img",
1855
1926
  __spreadProps(__spreadValues({
1856
1927
  style: { width: "100%", height: "100%" }
@@ -1863,7 +1934,7 @@ var Image = (_a) => {
1863
1934
  var Image_default = Image;
1864
1935
 
1865
1936
  // src/components/Image/ImageEditor/ImageEditor.tsx
1866
- import { useEffect as useEffect12, useMemo, useRef as useRef10, useState as useState13 } from "react";
1937
+ import { useEffect as useEffect12, useMemo, useRef as useRef10, useState as useState14 } from "react";
1867
1938
 
1868
1939
  // src/components/Image/ImageEditor/ImageEditor.styles.ts
1869
1940
  var imageEditorStyles = {
@@ -2282,7 +2353,7 @@ var WTouchEvent = class {
2282
2353
  };
2283
2354
 
2284
2355
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2285
- import { useEffect as useEffect11, useState as useState12 } from "react";
2356
+ import { useEffect as useEffect11, useState as useState13 } from "react";
2286
2357
 
2287
2358
  // src/components/Image/ImageEditor/context.ts
2288
2359
  import { createContext as createContext4, useContext as useContext4 } from "react";
@@ -2419,11 +2490,11 @@ var MainElementStyles = {
2419
2490
  var MainElements_styles_default = MainElementStyles;
2420
2491
 
2421
2492
  // src/components/Image/ImageEditor/MainElements/Rotate.tsx
2422
- import { useEffect as useEffect10, useState as useState11 } from "react";
2493
+ import { useEffect as useEffect10, useState as useState12 } from "react";
2423
2494
  import { FaArrowRotateLeft } from "react-icons/fa6";
2424
- import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
2495
+ import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
2425
2496
  var Rotate = () => {
2426
- const [rotate, setRotate] = useState11(false);
2497
+ const [rotate, setRotate] = useState12(false);
2427
2498
  const { transformOperation: transformOperation2, refs } = useMyContext3();
2428
2499
  const mouseEvent = new WMouseEvent(transformOperation2);
2429
2500
  const touchEvent = new WTouchEvent(transformOperation2);
@@ -2469,8 +2540,8 @@ var Rotate = () => {
2469
2540
  touchEvent.rotate(e, { top: true });
2470
2541
  },
2471
2542
  children: [
2472
- /* @__PURE__ */ jsx19("div", { style: handleBackground(rotate) }),
2473
- /* @__PURE__ */ jsx19(FaArrowRotateLeft, { size: "15" }),
2543
+ /* @__PURE__ */ jsx20("div", { style: handleBackground(rotate) }),
2544
+ /* @__PURE__ */ jsx20(FaArrowRotateLeft, { size: "15" }),
2474
2545
  rotate && /* @__PURE__ */ jsxs14(
2475
2546
  "p",
2476
2547
  {
@@ -2500,8 +2571,8 @@ var Rotate = () => {
2500
2571
  touchEvent.rotate(e, { bottom: true });
2501
2572
  },
2502
2573
  children: [
2503
- /* @__PURE__ */ jsx19("div", { style: handleBackground(rotate) }),
2504
- /* @__PURE__ */ jsx19(FaArrowRotateLeft, { size: "15" }),
2574
+ /* @__PURE__ */ jsx20("div", { style: handleBackground(rotate) }),
2575
+ /* @__PURE__ */ jsx20(FaArrowRotateLeft, { size: "15" }),
2505
2576
  rotate && /* @__PURE__ */ jsxs14(
2506
2577
  "p",
2507
2578
  {
@@ -2524,7 +2595,7 @@ var Rotate = () => {
2524
2595
  var Rotate_default = Rotate;
2525
2596
 
2526
2597
  // src/components/Image/ImageEditor/MainElements/MainElements.tsx
2527
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
2598
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
2528
2599
  var MainElements = () => {
2529
2600
  const {
2530
2601
  refs,
@@ -2534,11 +2605,11 @@ var MainElements = () => {
2534
2605
  } = useMyContext3();
2535
2606
  const mouseEvent = new WMouseEvent(transformOperation2);
2536
2607
  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);
2608
+ const [topLeft, settopLeft] = useState13(false);
2609
+ const [topRight, settopRight] = useState13(false);
2610
+ const [bottomLeft, setbottomLeft] = useState13(false);
2611
+ const [bottomRight, setbottomRight] = useState13(false);
2612
+ const [reRender, triggierReRender] = useState13(false);
2542
2613
  const { angle, width, height } = transformOperation2.getDimension();
2543
2614
  const handleBackground = (value) => {
2544
2615
  return value ? MainElements_styles_default.buttonBackgroundDown : MainElements_styles_default.buttonBackground;
@@ -2584,7 +2655,7 @@ var MainElements = () => {
2584
2655
  };
2585
2656
  }, [reRender]);
2586
2657
  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 }) }),
2658
+ /* @__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
2659
  /* @__PURE__ */ jsxs15(
2589
2660
  "div",
2590
2661
  {
@@ -2593,7 +2664,7 @@ var MainElements = () => {
2593
2664
  onMouseDown: (e) => mouseEvent.drag(e),
2594
2665
  onTouchStart: (e) => touchEvent.drag(e),
2595
2666
  children: [
2596
- /* @__PURE__ */ jsx20(
2667
+ /* @__PURE__ */ jsx21(
2597
2668
  "div",
2598
2669
  {
2599
2670
  ref: refs.topLeft,
@@ -2610,10 +2681,10 @@ var MainElements = () => {
2610
2681
  topLeft: true
2611
2682
  });
2612
2683
  },
2613
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(topLeft) })
2684
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(topLeft) })
2614
2685
  }
2615
2686
  ),
2616
- /* @__PURE__ */ jsx20(
2687
+ /* @__PURE__ */ jsx21(
2617
2688
  "div",
2618
2689
  {
2619
2690
  ref: refs.topRight,
@@ -2630,10 +2701,10 @@ var MainElements = () => {
2630
2701
  topRight: true
2631
2702
  });
2632
2703
  },
2633
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(topRight) })
2704
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(topRight) })
2634
2705
  }
2635
2706
  ),
2636
- /* @__PURE__ */ jsx20(
2707
+ /* @__PURE__ */ jsx21(
2637
2708
  "div",
2638
2709
  {
2639
2710
  ref: refs.bottomLeft,
@@ -2650,10 +2721,10 @@ var MainElements = () => {
2650
2721
  bottomLeft: true
2651
2722
  });
2652
2723
  },
2653
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(bottomLeft) })
2724
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(bottomLeft) })
2654
2725
  }
2655
2726
  ),
2656
- /* @__PURE__ */ jsx20(
2727
+ /* @__PURE__ */ jsx21(
2657
2728
  "div",
2658
2729
  {
2659
2730
  ref: refs.bottomRight,
@@ -2670,10 +2741,10 @@ var MainElements = () => {
2670
2741
  bottomRight: true
2671
2742
  });
2672
2743
  },
2673
- children: /* @__PURE__ */ jsx20("div", { style: handleBackground(bottomRight) })
2744
+ children: /* @__PURE__ */ jsx21("div", { style: handleBackground(bottomRight) })
2674
2745
  }
2675
2746
  ),
2676
- /* @__PURE__ */ jsx20(Rotate_default, {}),
2747
+ /* @__PURE__ */ jsx21(Rotate_default, {}),
2677
2748
  (topLeft || topRight || bottomLeft || bottomRight) && /* @__PURE__ */ jsxs15(
2678
2749
  "p",
2679
2750
  {
@@ -2697,9 +2768,9 @@ var MainElements = () => {
2697
2768
  var MainElements_default = MainElements;
2698
2769
 
2699
2770
  // src/components/Image/ImageEditor/Instruction.tsx
2700
- import { jsx as jsx21 } from "react/jsx-runtime";
2771
+ import { jsx as jsx22 } from "react/jsx-runtime";
2701
2772
  var Instruction = () => {
2702
- return /* @__PURE__ */ jsx21("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2773
+ return /* @__PURE__ */ jsx22("p", { style: ImageEditor_styles_default.instruction, children: "Drag, Zoom, or Rotate image" });
2703
2774
  };
2704
2775
  var Instruction_default = Instruction;
2705
2776
 
@@ -2819,7 +2890,7 @@ var TransformOperation = class extends TransformOperationExtension {
2819
2890
  var TransformOperation_default = TransformOperation;
2820
2891
 
2821
2892
  // src/components/Image/ImageEditor/ImageEditor.tsx
2822
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
2893
+ import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
2823
2894
  var transformOperation = new TransformOperation_default();
2824
2895
  var ImageEditor = ({
2825
2896
  src,
@@ -2840,7 +2911,7 @@ var ImageEditor = ({
2840
2911
  const bottomRight = useRef10(null);
2841
2912
  const rotate = useRef10(null);
2842
2913
  const rotateBottom = useRef10(null);
2843
- const [transform, setTransform] = useState13(
2914
+ const [transform, setTransform] = useState14(
2844
2915
  void 0
2845
2916
  );
2846
2917
  const transformState = useRef10(void 0);
@@ -2911,7 +2982,7 @@ var ImageEditor = ({
2911
2982
  };
2912
2983
  }, [isOpen]);
2913
2984
  if (!isOpen) return;
2914
- return /* @__PURE__ */ jsx22(
2985
+ return /* @__PURE__ */ jsx23(
2915
2986
  MyContext3.Provider,
2916
2987
  {
2917
2988
  value: {
@@ -2933,10 +3004,10 @@ var ImageEditor = ({
2933
3004
  transformOperation
2934
3005
  },
2935
3006
  children: /* @__PURE__ */ jsxs16("div", { style: ImageEditor_styles_default.imageEditor, children: [
2936
- /* @__PURE__ */ jsx22(Instruction_default, {}),
2937
- /* @__PURE__ */ jsx22(MainElements_default, {}),
3007
+ /* @__PURE__ */ jsx23(Instruction_default, {}),
3008
+ /* @__PURE__ */ jsx23(MainElements_default, {}),
2938
3009
  /* @__PURE__ */ jsxs16("div", { style: ImageEditor_styles_default.buttons, children: [
2939
- /* @__PURE__ */ jsx22(
3010
+ /* @__PURE__ */ jsx23(
2940
3011
  Button_default,
2941
3012
  {
2942
3013
  buttonType: "solid",
@@ -2944,7 +3015,7 @@ var ImageEditor = ({
2944
3015
  onClick: handleAccept
2945
3016
  }
2946
3017
  ),
2947
- /* @__PURE__ */ jsx22(
3018
+ /* @__PURE__ */ jsx23(
2948
3019
  Button_default,
2949
3020
  {
2950
3021
  buttonType: "solid",
@@ -2952,7 +3023,7 @@ var ImageEditor = ({
2952
3023
  onClick: handleCancel
2953
3024
  }
2954
3025
  ),
2955
- /* @__PURE__ */ jsx22(
3026
+ /* @__PURE__ */ jsx23(
2956
3027
  Button_default,
2957
3028
  {
2958
3029
  buttonType: "solid",
@@ -3448,19 +3519,19 @@ function useSession() {
3448
3519
  }
3449
3520
 
3450
3521
  // src/auth/react/SessionProvider.tsx
3451
- import { jsx as jsx23 } from "react/jsx-runtime";
3522
+ import { jsx as jsx24 } from "react/jsx-runtime";
3452
3523
  var SessionProvider = ({
3453
3524
  value,
3454
3525
  children
3455
3526
  }) => {
3456
- return /* @__PURE__ */ jsx23(SessionContext.Provider, { value, children });
3527
+ return /* @__PURE__ */ jsx24(SessionContext.Provider, { value, children });
3457
3528
  };
3458
3529
  var SessionProvider_default = SessionProvider;
3459
3530
 
3460
3531
  // src/auth/react/useAuthClient.ts
3461
- import { useEffect as useEffect13, useRef as useRef11, useState as useState14 } from "react";
3532
+ import { useEffect as useEffect13, useRef as useRef11, useState as useState15 } from "react";
3462
3533
  var useAuthClient = (auth) => {
3463
- const [isLoading, setLoading] = useState14(false);
3534
+ const [isLoading, setLoading] = useState15(false);
3464
3535
  const sessionRef = useRef11(void 0);
3465
3536
  useEffect13(() => {
3466
3537
  let is = true;
@@ -3628,6 +3699,7 @@ export {
3628
3699
  InputFile_default as InputFile,
3629
3700
  InputGoogle_default as InputGoogle,
3630
3701
  LinearAlgebra_default as LinearAlgebra,
3702
+ Modern_default as ModernButton,
3631
3703
  MultiSelect_default as MultiSelect,
3632
3704
  OptionSlider_default as OptionSlider,
3633
3705
  RangeSlider_default as RangeSlider,