@lets-events/react 12.9.3 → 12.10.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.
Files changed (94) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +21 -19
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +15 -2
  5. package/dist/index.d.ts +15 -2
  6. package/dist/index.js +299 -203
  7. package/dist/index.mjs +267 -172
  8. package/package.json +1 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +123 -123
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +74 -62
  14. package/src/components/Button/styledComponents.ts +361 -320
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +168 -168
  17. package/src/components/Calendar/styledComponents.ts +480 -480
  18. package/src/components/Card.tsx +67 -67
  19. package/src/components/CheckboxGroup.tsx +176 -176
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Divider.tsx +7 -7
  22. package/src/components/DoubleCalendar/index.tsx +182 -182
  23. package/src/components/Drawer/index.tsx +100 -100
  24. package/src/components/Drawer/styledComponents.ts +103 -103
  25. package/src/components/Dropdown.tsx +302 -302
  26. package/src/components/Filter.tsx +164 -164
  27. package/src/components/Flex.tsx +118 -118
  28. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  29. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  30. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  31. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  32. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  33. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  34. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  35. package/src/components/FormFields/CPFFormField.tsx +78 -78
  36. package/src/components/FormFields/CalendarFormField.tsx +98 -98
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
  39. package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
  40. package/src/components/FormFields/EmailFormField.tsx +27 -27
  41. package/src/components/FormFields/Form.tsx +39 -39
  42. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  43. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  44. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  45. package/src/components/FormFields/RadioGroupFormField.tsx +86 -86
  46. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  47. package/src/components/FormFields/SelectFormField.tsx +113 -113
  48. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  49. package/src/components/FormFields/TextAreaFormField.tsx +61 -61
  50. package/src/components/FormFields/TextFormField.tsx +112 -112
  51. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  52. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  53. package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
  54. package/src/components/FormFields/utils/validation.ts +23 -23
  55. package/src/components/Grid.tsx +137 -137
  56. package/src/components/Icon.tsx +47 -47
  57. package/src/components/MenuDropdown/index.tsx +38 -38
  58. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  59. package/src/components/Modal.tsx +110 -110
  60. package/src/components/MultiSelect/index.tsx +305 -305
  61. package/src/components/MultiSelect/styledComponents.ts +160 -160
  62. package/src/components/RadioGroup.tsx +210 -210
  63. package/src/components/RichEditor/QuillComponent.tsx +468 -468
  64. package/src/components/RichEditor/RichEditor.tsx +49 -49
  65. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  66. package/src/components/RichEditor/index.ts +3 -3
  67. package/src/components/RichEditor/styledComponents.ts +1170 -1170
  68. package/src/components/Section.tsx +33 -33
  69. package/src/components/Step.tsx +164 -164
  70. package/src/components/Switch.tsx +108 -108
  71. package/src/components/Text.tsx +38 -38
  72. package/src/components/TextField.tsx +372 -372
  73. package/src/components/TextareaField.tsx +116 -116
  74. package/src/components/TimePicker.tsx +357 -357
  75. package/src/components/Toast/components/ToastItem.tsx +41 -41
  76. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  77. package/src/components/Toast/hooks/useToast.ts +12 -12
  78. package/src/components/Toast/index.tsx +5 -5
  79. package/src/components/Toast/styles/index.ts +135 -135
  80. package/src/components/Toast/types/index.ts +46 -46
  81. package/src/components/ToggleElement/index.tsx +58 -0
  82. package/src/components/Tooltip/index.tsx +73 -73
  83. package/src/components/Tooltip/styles.ts +77 -77
  84. package/src/hooks/useCountries.ts +41 -41
  85. package/src/hooks/useImageUpload.ts +139 -139
  86. package/src/hooks/useOnClickOutside.tsx +42 -42
  87. package/src/index.tsx +72 -72
  88. package/src/styles/index.ts +41 -41
  89. package/src/types/typographyValues.ts +178 -178
  90. package/src/utils/getNestedValue.ts +3 -3
  91. package/src/utils/states.ts +29 -29
  92. package/src/utils/uploadService.ts +180 -180
  93. package/tsconfig.json +3 -3
  94. package/tsup.config.ts +38 -38
package/dist/index.mjs CHANGED
@@ -143,7 +143,7 @@ var require_react_is_development = __commonJS({
143
143
  var ContextProvider = REACT_PROVIDER_TYPE;
144
144
  var Element = REACT_ELEMENT_TYPE;
145
145
  var ForwardRef = REACT_FORWARD_REF_TYPE;
146
- var Fragment6 = REACT_FRAGMENT_TYPE;
146
+ var Fragment7 = REACT_FRAGMENT_TYPE;
147
147
  var Lazy = REACT_LAZY_TYPE;
148
148
  var Memo = REACT_MEMO_TYPE;
149
149
  var Portal = REACT_PORTAL_TYPE;
@@ -202,7 +202,7 @@ var require_react_is_development = __commonJS({
202
202
  exports.ContextProvider = ContextProvider;
203
203
  exports.Element = Element;
204
204
  exports.ForwardRef = ForwardRef;
205
- exports.Fragment = Fragment6;
205
+ exports.Fragment = Fragment7;
206
206
  exports.Lazy = Lazy;
207
207
  exports.Memo = Memo;
208
208
  exports.Portal = Portal;
@@ -1443,6 +1443,7 @@ var ButtonStyled = styled(ButtonRadix, {
1443
1443
  $$buttonBgColor: "$colors$grey50",
1444
1444
  $$buttonBorderColor: "inherit",
1445
1445
  $$buttonOutlinedColor: "inherit",
1446
+ $$buttonToggleBgColor: "transparent",
1446
1447
  fontFamily: "$default",
1447
1448
  letterSpacing: 0,
1448
1449
  border: 0,
@@ -1465,6 +1466,7 @@ var ButtonStyled = styled(ButtonRadix, {
1465
1466
  $$buttonColor: "$colors$brand500",
1466
1467
  $$buttonBorderColor: "$colors$brand600",
1467
1468
  $$buttonOutlinedColor: "$$buttonColor",
1469
+ $$buttonToggleBgColor: "rgba(0, 78, 210, 0.2)",
1468
1470
  "&:hover": {
1469
1471
  $$buttonColor: "$colors$brand600",
1470
1472
  $$buttonBorderColor: "$colors$brand700"
@@ -1484,6 +1486,7 @@ var ButtonStyled = styled(ButtonRadix, {
1484
1486
  $$buttonColor: "$colors$purple500",
1485
1487
  $$buttonBorderColor: "$colors$purple300",
1486
1488
  $$buttonOutlinedColor: "$$buttonColor",
1489
+ $$buttonToggleBgColor: "rgba(137, 97, 216, 0.2)",
1487
1490
  "&:hover": {
1488
1491
  $$buttonColor: "$colors$purple600",
1489
1492
  $$buttonBorderColor: "$colors$purple700",
@@ -1507,6 +1510,7 @@ var ButtonStyled = styled(ButtonRadix, {
1507
1510
  $$buttonColor: "$colors$error600",
1508
1511
  $$buttonBorderColor: "$colors$error500",
1509
1512
  $$buttonOutlinedColor: " $colors$error500",
1513
+ $$buttonToggleBgColor: "rgba(219, 54, 68, 0.2)",
1510
1514
  "&:hover": {
1511
1515
  $$buttonColor: "$colors$error600",
1512
1516
  $$buttonBorderColor: "$colors$error700",
@@ -1527,6 +1531,7 @@ var ButtonStyled = styled(ButtonRadix, {
1527
1531
  $$buttonColor: "$colors$info500",
1528
1532
  $$buttonBorderColor: "$colors$info600",
1529
1533
  $$buttonOutlinedColor: "$$buttonColor",
1534
+ $$buttonToggleBgColor: "rgba(2, 120, 254, 0.2)",
1530
1535
  "&:hover": {
1531
1536
  $$buttonColor: "$colors$info600",
1532
1537
  $$buttonBorderColor: "$colors$info700",
@@ -1547,6 +1552,7 @@ var ButtonStyled = styled(ButtonRadix, {
1547
1552
  $$buttonColor: "$colors$success500",
1548
1553
  $$buttonBorderColor: "$colors$success600",
1549
1554
  $$buttonOutlinedColor: "$$buttonColor",
1555
+ $$buttonToggleBgColor: "rgba(38, 167, 67, 0.2)",
1550
1556
  "&:hover": {
1551
1557
  $$buttonColor: "$colors$success600",
1552
1558
  $$buttonBorderColor: "$colors$success700",
@@ -1567,6 +1573,7 @@ var ButtonStyled = styled(ButtonRadix, {
1567
1573
  $$buttonColor: "$colors$warning500",
1568
1574
  $$buttonBorderColor: "$colors$warning600",
1569
1575
  $$buttonOutlinedColor: "$$buttonColor",
1576
+ $$buttonToggleBgColor: "rgba(255, 193, 7, 0.2)",
1570
1577
  "&:hover": {
1571
1578
  $$buttonColor: "$colors$warning600",
1572
1579
  $$buttonBorderColor: "$colors$warning700",
@@ -1587,6 +1594,7 @@ var ButtonStyled = styled(ButtonRadix, {
1587
1594
  $$buttonColor: "$colors$neutral600",
1588
1595
  $$buttonBorderColor: "$colors$neutral300",
1589
1596
  $$buttonOutlinedColor: "$$buttonColor",
1597
+ $$buttonToggleBgColor: "rgba(76, 79, 84, 0.2)",
1590
1598
  "&:hover": {
1591
1599
  $$buttonColor: "$colors$neutral700",
1592
1600
  $$buttonBgColor: "$colors$neutral100",
@@ -1607,6 +1615,7 @@ var ButtonStyled = styled(ButtonRadix, {
1607
1615
  $$buttonColor: "$colors$neutral50",
1608
1616
  $$buttonBorderColor: "$colors$neutral300",
1609
1617
  $$buttonOutlinedColor: "$colors$neutral50",
1618
+ $$buttonToggleBgColor: "rgba(255, 255, 255, 0.2)",
1610
1619
  "&:hover": {
1611
1620
  $$buttonColor: "$colors$neutral100",
1612
1621
  $$buttonBorderColor: "$colors$neutral300",
@@ -1659,6 +1668,18 @@ var ButtonStyled = styled(ButtonRadix, {
1659
1668
  height: "unset",
1660
1669
  color: "$$buttonColor"
1661
1670
  },
1671
+ toggle: {
1672
+ backgroundColor: "transparent",
1673
+ boxShadow: "none",
1674
+ padding: "$6 $12",
1675
+ border: 0,
1676
+ height: "2rem",
1677
+ color: "$$buttonColor",
1678
+ borderRadius: ".5rem",
1679
+ "&:hover": {
1680
+ backgroundColor: "$$buttonToggleBgColor"
1681
+ }
1682
+ },
1662
1683
  contained: {
1663
1684
  color: "$grey50",
1664
1685
  backgroundColor: "$$buttonColor",
@@ -1684,7 +1705,7 @@ var ButtonStyled = styled(ButtonRadix, {
1684
1705
  menuDropdownItem: {
1685
1706
  backgroundColor: "transparent",
1686
1707
  boxShadow: "none",
1687
- padding: "0.25rem 0.5rem",
1708
+ padding: "0.5rem 1rem",
1688
1709
  border: 0,
1689
1710
  height: "unset",
1690
1711
  color: "$$buttonColor",
@@ -1694,6 +1715,20 @@ var ButtonStyled = styled(ButtonRadix, {
1694
1715
  "&:hover": {
1695
1716
  backgroundColor: "$dark100"
1696
1717
  }
1718
+ },
1719
+ menuDropdownItemDelete: {
1720
+ backgroundColor: "transparent",
1721
+ boxShadow: "none",
1722
+ padding: "0.5rem 1rem",
1723
+ border: 0,
1724
+ height: "unset",
1725
+ color: "$$buttonColor",
1726
+ width: "100%",
1727
+ borderRadius: 0,
1728
+ whiteSpace: "nowrap",
1729
+ "&:hover": {
1730
+ backgroundColor: "$red100"
1731
+ }
1697
1732
  }
1698
1733
  },
1699
1734
  fontWeight: {
@@ -1702,6 +1737,11 @@ var ButtonStyled = styled(ButtonRadix, {
1702
1737
  semibold: { fontWeight: "$semibold" },
1703
1738
  bold: { fontWeight: "$bold" }
1704
1739
  },
1740
+ textAlign: {
1741
+ center: { textAlign: "center", justifyContent: "center" },
1742
+ left: { textAlign: "left", justifyContent: "flex-start" },
1743
+ right: { textAlign: "right", justifyContent: "flex-end" }
1744
+ },
1705
1745
  outlinedBgColor: {
1706
1746
  neutral: {},
1707
1747
  transparent: {
@@ -1735,6 +1775,7 @@ var ButtonStyled = styled(ButtonRadix, {
1735
1775
  color: "brand",
1736
1776
  size: "medium",
1737
1777
  fontWeight: "medium",
1778
+ textAlign: "center",
1738
1779
  outlinedBgColor: "transparent"
1739
1780
  }
1740
1781
  });
@@ -1864,10 +1905,20 @@ function Flex(_a) {
1864
1905
 
1865
1906
  // src/components/Button/index.tsx
1866
1907
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
1908
+ var getJustifyByTextAlign = (textAlign) => {
1909
+ switch (textAlign) {
1910
+ case "left":
1911
+ return "start";
1912
+ case "right":
1913
+ return "end";
1914
+ default:
1915
+ return "center";
1916
+ }
1917
+ };
1867
1918
  function Button(_a) {
1868
1919
  var _b = _a, { asChild, children, loading } = _b, props = __objRest(_b, ["asChild", "children", "loading"]);
1869
1920
  const Component = asChild ? ButtonRadix2 : "button";
1870
- const { size, disabled } = props;
1921
+ const { size, disabled, textAlign = "center" } = props;
1871
1922
  const spinnerSize = useMemo(() => {
1872
1923
  switch (size) {
1873
1924
  case "small":
@@ -1886,7 +1937,7 @@ function Button(_a) {
1886
1937
  /* @__PURE__ */ jsx4(
1887
1938
  Flex,
1888
1939
  {
1889
- justify: "center",
1940
+ justify: getJustifyByTextAlign(textAlign),
1890
1941
  align: "center",
1891
1942
  css: { visibility: loading ? "hidden" : void 0 },
1892
1943
  children
@@ -3746,7 +3797,7 @@ var MenuItemsContainerStyled = styled("div", {
3746
3797
  top: "2.125rem",
3747
3798
  zIndex: "999",
3748
3799
  width: "fit-content",
3749
- minWidth: "5rem",
3800
+ minWidth: "6rem",
3750
3801
  background: "#fff",
3751
3802
  maxWidth: "18.75rem",
3752
3803
  margin: "auto",
@@ -8452,7 +8503,7 @@ var DrawerOverlayStyled = styled("div", {
8452
8503
  top: 0,
8453
8504
  right: 0,
8454
8505
  width: "100vw",
8455
- height: "100vh",
8506
+ height: "100dvh",
8456
8507
  background: "rgba(0, 0, 0, 0.4)",
8457
8508
  transition: "opacity 200ms ease",
8458
8509
  variants: {
@@ -8471,7 +8522,7 @@ var DrawerWrapper = styled("div", {
8471
8522
  position: "fixed",
8472
8523
  top: 0,
8473
8524
  right: 0,
8474
- height: "100vh",
8525
+ height: "100dvh",
8475
8526
  overflow: "hidden",
8476
8527
  variants: {
8477
8528
  open: {
@@ -8486,7 +8537,7 @@ var DrawerContainerStyled = styled("div", {
8486
8537
  position: "absolute",
8487
8538
  top: 0,
8488
8539
  right: 0,
8489
- height: "100vh",
8540
+ height: "100dvh",
8490
8541
  background: "$neutral50",
8491
8542
  display: "flex",
8492
8543
  flexDirection: "column",
@@ -10287,9 +10338,52 @@ var Divider = styled("div", {
10287
10338
  height: "1px"
10288
10339
  });
10289
10340
 
10341
+ // src/components/ToggleElement/index.tsx
10342
+ import { useState as useState9 } from "react";
10343
+ import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
10344
+ function ToggleElement({
10345
+ children,
10346
+ label,
10347
+ openedLabel,
10348
+ defaultOpen = false,
10349
+ open,
10350
+ hideButtonWhenOpen = true,
10351
+ buttonProps,
10352
+ onOpenChange
10353
+ }) {
10354
+ const [internalOpen, setInternalOpen] = useState9(defaultOpen);
10355
+ const isControlled = open !== void 0;
10356
+ const isOpen = isControlled ? open : internalOpen;
10357
+ const handleClick = () => {
10358
+ const nextOpen = !isOpen;
10359
+ if (!isControlled) {
10360
+ setInternalOpen(nextOpen);
10361
+ }
10362
+ onOpenChange == null ? void 0 : onOpenChange(nextOpen);
10363
+ };
10364
+ return /* @__PURE__ */ jsxs17(Fragment3, { children: [
10365
+ (!isOpen || !hideButtonWhenOpen) && /* @__PURE__ */ jsxs17(
10366
+ Button,
10367
+ __spreadProps(__spreadValues({
10368
+ type: "button",
10369
+ variant: "toggle",
10370
+ color: "brand",
10371
+ size: "small"
10372
+ }, buttonProps), {
10373
+ onClick: handleClick,
10374
+ children: [
10375
+ !isOpen && /* @__PURE__ */ jsx28(Icon, { name: "plus", size: "md" }),
10376
+ isOpen ? openedLabel != null ? openedLabel : label : label
10377
+ ]
10378
+ })
10379
+ ),
10380
+ isOpen && children
10381
+ ] });
10382
+ }
10383
+
10290
10384
  // src/components/Grid.tsx
10291
10385
  import { Grid as GridRadix } from "@radix-ui/themes";
10292
- import { jsx as jsx28 } from "react/jsx-runtime";
10386
+ import { jsx as jsx29 } from "react/jsx-runtime";
10293
10387
  var GridStyled = styled(GridRadix, {
10294
10388
  display: "grid",
10295
10389
  variants: {
@@ -10411,12 +10505,12 @@ var GridStyled = styled(GridRadix, {
10411
10505
  });
10412
10506
  function Grid(_a) {
10413
10507
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10414
- return /* @__PURE__ */ jsx28(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10508
+ return /* @__PURE__ */ jsx29(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10415
10509
  }
10416
10510
 
10417
10511
  // src/components/Container.tsx
10418
10512
  import { Container as ContainerRadix } from "@radix-ui/themes";
10419
- import { jsx as jsx29 } from "react/jsx-runtime";
10513
+ import { jsx as jsx30 } from "react/jsx-runtime";
10420
10514
  var ContainerStyled = styled(ContainerRadix, {
10421
10515
  variants: {
10422
10516
  size: {
@@ -10446,12 +10540,12 @@ var ContainerStyled = styled(ContainerRadix, {
10446
10540
  });
10447
10541
  function Container(_a) {
10448
10542
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10449
- return /* @__PURE__ */ jsx29(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10543
+ return /* @__PURE__ */ jsx30(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10450
10544
  }
10451
10545
 
10452
10546
  // src/components/Section.tsx
10453
10547
  import { Section as SectionRadix } from "@radix-ui/themes";
10454
- import { jsx as jsx30 } from "react/jsx-runtime";
10548
+ import { jsx as jsx31 } from "react/jsx-runtime";
10455
10549
  var SectionStyled = styled(SectionRadix, {
10456
10550
  variants: {
10457
10551
  size: {
@@ -10475,28 +10569,28 @@ var SectionStyled = styled(SectionRadix, {
10475
10569
  });
10476
10570
  function Section(_a) {
10477
10571
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10478
- return /* @__PURE__ */ jsx30(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10572
+ return /* @__PURE__ */ jsx31(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10479
10573
  }
10480
10574
 
10481
10575
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
10482
10576
  import { faXmarkCircle } from "@fortawesome/free-solid-svg-icons";
10483
10577
  import { FontAwesomeIcon as FontAwesomeIcon4 } from "@fortawesome/react-fontawesome";
10484
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
10578
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
10485
10579
  var ErrorFormMessage = ({ message: message2 }) => {
10486
10580
  if (!message2) return null;
10487
10581
  if (typeof message2 !== "string") {
10488
10582
  return null;
10489
10583
  }
10490
- return /* @__PURE__ */ jsxs17(Flex, { justify: "start", align: "center", gap: 6, children: [
10491
- /* @__PURE__ */ jsx31(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10492
- /* @__PURE__ */ jsx31(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10584
+ return /* @__PURE__ */ jsxs18(Flex, { justify: "start", align: "center", gap: 6, children: [
10585
+ /* @__PURE__ */ jsx32(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10586
+ /* @__PURE__ */ jsx32(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10493
10587
  ] });
10494
10588
  };
10495
10589
 
10496
10590
  // src/components/FormFields/subComponents/FormLabel.tsx
10497
10591
  import { FontAwesomeIcon as FontAwesomeIcon5 } from "@fortawesome/react-fontawesome";
10498
10592
  import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
10499
- import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
10593
+ import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
10500
10594
  var FormLabel = ({
10501
10595
  name,
10502
10596
  label,
@@ -10504,8 +10598,8 @@ var FormLabel = ({
10504
10598
  required
10505
10599
  }) => {
10506
10600
  if (!label) return null;
10507
- return /* @__PURE__ */ jsxs18(Flex, { align: "start", gap: 6, children: [
10508
- /* @__PURE__ */ jsx32(
10601
+ return /* @__PURE__ */ jsxs19(Flex, { align: "start", gap: 6, children: [
10602
+ /* @__PURE__ */ jsx33(
10509
10603
  Text,
10510
10604
  {
10511
10605
  typography: "labelMedium",
@@ -10515,13 +10609,13 @@ var FormLabel = ({
10515
10609
  children: label
10516
10610
  }
10517
10611
  ),
10518
- required && /* @__PURE__ */ jsx32(FontAwesomeIcon5, { icon: faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10612
+ required && /* @__PURE__ */ jsx33(FontAwesomeIcon5, { icon: faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10519
10613
  ] });
10520
10614
  };
10521
10615
 
10522
10616
  // src/components/FormFields/TextAreaFormField.tsx
10523
10617
  import { useFormContext } from "react-hook-form";
10524
- import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
10618
+ import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
10525
10619
  var TextAreaFormField = (_a) => {
10526
10620
  var _b = _a, {
10527
10621
  name,
@@ -10553,8 +10647,8 @@ var TextAreaFormField = (_a) => {
10553
10647
  required: required ? validationErrorMessage : false,
10554
10648
  validate
10555
10649
  };
10556
- return /* @__PURE__ */ jsxs19(Flex, { direction: "column", children: [
10557
- /* @__PURE__ */ jsx33(
10650
+ return /* @__PURE__ */ jsxs20(Flex, { direction: "column", children: [
10651
+ /* @__PURE__ */ jsx34(
10558
10652
  FormLabel,
10559
10653
  {
10560
10654
  name,
@@ -10563,7 +10657,7 @@ var TextAreaFormField = (_a) => {
10563
10657
  haveError
10564
10658
  }
10565
10659
  ),
10566
- /* @__PURE__ */ jsx33(
10660
+ /* @__PURE__ */ jsx34(
10567
10661
  TextareaField,
10568
10662
  __spreadProps(__spreadValues(__spreadValues({}, props), register(name, validationRules)), {
10569
10663
  placeholder,
@@ -10573,7 +10667,7 @@ var TextAreaFormField = (_a) => {
10573
10667
  top
10574
10668
  })
10575
10669
  ),
10576
- /* @__PURE__ */ jsx33(ErrorFormMessage, { message: errorMsg })
10670
+ /* @__PURE__ */ jsx34(ErrorFormMessage, { message: errorMsg })
10577
10671
  ] });
10578
10672
  };
10579
10673
 
@@ -10583,7 +10677,7 @@ import {
10583
10677
  } from "react-hook-form";
10584
10678
  import { useCallback as useCallback3, useMemo as useMemo3 } from "react";
10585
10679
  import { format as format3, unformat as unformat2 } from "@react-input/mask";
10586
- import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
10680
+ import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
10587
10681
  var TextFormField = (_a) => {
10588
10682
  var _b = _a, {
10589
10683
  name,
@@ -10638,8 +10732,8 @@ var TextFormField = (_a) => {
10638
10732
  if (valueFormatter) value = valueFormatter.unformat(value);
10639
10733
  formChange(value);
10640
10734
  };
10641
- return /* @__PURE__ */ jsxs20(Flex, { direction: "column", children: [
10642
- label && /* @__PURE__ */ jsx34(
10735
+ return /* @__PURE__ */ jsxs21(Flex, { direction: "column", children: [
10736
+ label && /* @__PURE__ */ jsx35(
10643
10737
  FormLabel,
10644
10738
  {
10645
10739
  name,
@@ -10648,7 +10742,7 @@ var TextFormField = (_a) => {
10648
10742
  haveError
10649
10743
  }
10650
10744
  ),
10651
- /* @__PURE__ */ jsx34(
10745
+ /* @__PURE__ */ jsx35(
10652
10746
  TextField,
10653
10747
  __spreadProps(__spreadValues(__spreadValues({
10654
10748
  mask,
@@ -10659,7 +10753,7 @@ var TextFormField = (_a) => {
10659
10753
  value: formattedValue
10660
10754
  })
10661
10755
  ),
10662
- /* @__PURE__ */ jsx34(ErrorFormMessage, { message: errorMsg })
10756
+ /* @__PURE__ */ jsx35(ErrorFormMessage, { message: errorMsg })
10663
10757
  ] });
10664
10758
  };
10665
10759
 
@@ -10668,7 +10762,7 @@ import {
10668
10762
  FormProvider,
10669
10763
  useForm
10670
10764
  } from "react-hook-form";
10671
- import { jsx as jsx35 } from "react/jsx-runtime";
10765
+ import { jsx as jsx36 } from "react/jsx-runtime";
10672
10766
  var Form = (_a) => {
10673
10767
  var _b = _a, {
10674
10768
  onSubmit,
@@ -10680,7 +10774,7 @@ var Form = (_a) => {
10680
10774
  const formMethods = useForm(__spreadValues({
10681
10775
  mode: "onTouched"
10682
10776
  }, props));
10683
- return /* @__PURE__ */ jsx35(FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ jsx35("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10777
+ return /* @__PURE__ */ jsx36(FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ jsx36("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10684
10778
  if (typeof children === "function") {
10685
10779
  return children(formMethods);
10686
10780
  }
@@ -10690,7 +10784,7 @@ var Form = (_a) => {
10690
10784
 
10691
10785
  // src/components/FormFields/MultiSelectFormField.tsx
10692
10786
  import { useController as useController2 } from "react-hook-form";
10693
- import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
10787
+ import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
10694
10788
  var MultiSelectFormField = (_a) => {
10695
10789
  var _b = _a, {
10696
10790
  name,
@@ -10721,8 +10815,8 @@ var MultiSelectFormField = (_a) => {
10721
10815
  const handleChange = (v) => {
10722
10816
  onChange(v);
10723
10817
  };
10724
- return /* @__PURE__ */ jsxs21(Flex, { direction: "column", children: [
10725
- /* @__PURE__ */ jsx36(
10818
+ return /* @__PURE__ */ jsxs22(Flex, { direction: "column", children: [
10819
+ /* @__PURE__ */ jsx37(
10726
10820
  FormLabel,
10727
10821
  {
10728
10822
  name,
@@ -10731,7 +10825,7 @@ var MultiSelectFormField = (_a) => {
10731
10825
  haveError
10732
10826
  }
10733
10827
  ),
10734
- /* @__PURE__ */ jsx36(
10828
+ /* @__PURE__ */ jsx37(
10735
10829
  MultiSelect,
10736
10830
  __spreadValues({
10737
10831
  value,
@@ -10743,7 +10837,7 @@ var MultiSelectFormField = (_a) => {
10743
10837
  maxHeight
10744
10838
  }, rest)
10745
10839
  ),
10746
- /* @__PURE__ */ jsx36(ErrorFormMessage, { message: errorMsg })
10840
+ /* @__PURE__ */ jsx37(ErrorFormMessage, { message: errorMsg })
10747
10841
  ] });
10748
10842
  };
10749
10843
 
@@ -10761,13 +10855,13 @@ var minMaxLength = (min, max, errorMsg) => (value) => {
10761
10855
  };
10762
10856
 
10763
10857
  // src/components/FormFields/PhoneFormField.tsx
10764
- import { jsx as jsx37 } from "react/jsx-runtime";
10858
+ import { jsx as jsx38 } from "react/jsx-runtime";
10765
10859
  var PhoneFormField = ({
10766
10860
  name,
10767
10861
  label,
10768
10862
  required
10769
10863
  }) => {
10770
- return /* @__PURE__ */ jsx37(
10864
+ return /* @__PURE__ */ jsx38(
10771
10865
  TextFormField,
10772
10866
  {
10773
10867
  name,
@@ -10797,7 +10891,7 @@ var PhoneFormField = ({
10797
10891
 
10798
10892
  // src/components/FormFields/CPFFormField.tsx
10799
10893
  import { useFormContext as useFormContext3, useWatch } from "react-hook-form";
10800
- import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
10894
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
10801
10895
  var isValidCPF = (cpf) => {
10802
10896
  cpf = cpf.replace(/[^\d]+/g, "");
10803
10897
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10823,8 +10917,8 @@ var CPFFormField = ({
10823
10917
  }) => {
10824
10918
  const { control, setValue } = useFormContext3();
10825
10919
  const foreigner = useWatch({ name: "foreigner", control });
10826
- return /* @__PURE__ */ jsxs22(Flex, { direction: "column", children: [
10827
- /* @__PURE__ */ jsx38(
10920
+ return /* @__PURE__ */ jsxs23(Flex, { direction: "column", children: [
10921
+ /* @__PURE__ */ jsx39(
10828
10922
  TextFormField,
10829
10923
  {
10830
10924
  name,
@@ -10842,7 +10936,7 @@ var CPFFormField = ({
10842
10936
  disabled: foreigner
10843
10937
  }
10844
10938
  ),
10845
- /* @__PURE__ */ jsx38(
10939
+ /* @__PURE__ */ jsx39(
10846
10940
  CheckboxGroup,
10847
10941
  {
10848
10942
  value: foreigner ? ["true"] : [],
@@ -10854,14 +10948,14 @@ var CPFFormField = ({
10854
10948
  setValue(name, "");
10855
10949
  }
10856
10950
  },
10857
- children: /* @__PURE__ */ jsx38(CheckboxItem, { value: "true", children: foreignerLabel })
10951
+ children: /* @__PURE__ */ jsx39(CheckboxItem, { value: "true", children: foreignerLabel })
10858
10952
  }
10859
10953
  )
10860
10954
  ] });
10861
10955
  };
10862
10956
 
10863
10957
  // src/components/FormFields/CNPJFormField.tsx
10864
- import { jsx as jsx39 } from "react/jsx-runtime";
10958
+ import { jsx as jsx40 } from "react/jsx-runtime";
10865
10959
  var matchesNonDigit = new RegExp(/\D+/g);
10866
10960
  var getWeights = (size, start, end) => {
10867
10961
  const weights = [];
@@ -10910,7 +11004,7 @@ var CNPJFormField = ({
10910
11004
  placeholder,
10911
11005
  validationErrorMessage
10912
11006
  }) => {
10913
- return /* @__PURE__ */ jsx39(
11007
+ return /* @__PURE__ */ jsx40(
10914
11008
  TextFormField,
10915
11009
  {
10916
11010
  name,
@@ -10931,7 +11025,7 @@ var CNPJFormField = ({
10931
11025
  };
10932
11026
 
10933
11027
  // src/components/FormFields/BirthDateFormField.tsx
10934
- import { jsx as jsx40 } from "react/jsx-runtime";
11028
+ import { jsx as jsx41 } from "react/jsx-runtime";
10935
11029
  var isValidDate = (day, month, year) => {
10936
11030
  const date = new Date(year, month - 1, day);
10937
11031
  return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
@@ -10968,7 +11062,7 @@ var BirthDateFormField = ({
10968
11062
  language
10969
11063
  }) => {
10970
11064
  const inputPlaceholder = placeholder || (language === "pt-BR" ? "DD/MM/AAAA" : "MM/DD/YYYY");
10971
- return /* @__PURE__ */ jsx40(
11065
+ return /* @__PURE__ */ jsx41(
10972
11066
  TextFormField,
10973
11067
  {
10974
11068
  name,
@@ -10989,7 +11083,7 @@ var BirthDateFormField = ({
10989
11083
  };
10990
11084
 
10991
11085
  // src/components/FormFields/IdentityDocumentNumberFormField.tsx
10992
- import { jsx as jsx41 } from "react/jsx-runtime";
11086
+ import { jsx as jsx42 } from "react/jsx-runtime";
10993
11087
  var IdentityDocumentNumberFormField = ({
10994
11088
  name,
10995
11089
  label,
@@ -10997,7 +11091,7 @@ var IdentityDocumentNumberFormField = ({
10997
11091
  placeholder,
10998
11092
  validationErrorMessage
10999
11093
  }) => {
11000
- return /* @__PURE__ */ jsx41(
11094
+ return /* @__PURE__ */ jsx42(
11001
11095
  TextFormField,
11002
11096
  {
11003
11097
  name,
@@ -11026,7 +11120,7 @@ function getNestedValue(obj, path) {
11026
11120
  }
11027
11121
 
11028
11122
  // src/components/FormFields/SelectFormField.tsx
11029
- import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
11123
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
11030
11124
  var SelectFormField = ({
11031
11125
  name,
11032
11126
  label,
@@ -11050,8 +11144,8 @@ var SelectFormField = ({
11050
11144
  const validationRules = __spreadValues({
11051
11145
  required: required ? validationErrorMessage : false
11052
11146
  }, validation);
11053
- return /* @__PURE__ */ jsxs23(Flex, { direction: "column", children: [
11054
- /* @__PURE__ */ jsx42(
11147
+ return /* @__PURE__ */ jsxs24(Flex, { direction: "column", children: [
11148
+ /* @__PURE__ */ jsx43(
11055
11149
  FormLabel,
11056
11150
  {
11057
11151
  name,
@@ -11060,7 +11154,7 @@ var SelectFormField = ({
11060
11154
  haveError
11061
11155
  }
11062
11156
  ),
11063
- /* @__PURE__ */ jsx42(
11157
+ /* @__PURE__ */ jsx43(
11064
11158
  Controller,
11065
11159
  {
11066
11160
  control,
@@ -11069,7 +11163,7 @@ var SelectFormField = ({
11069
11163
  defaultValue: defaultValue || "",
11070
11164
  render: ({ field: { value, onChange } }) => {
11071
11165
  const selectedOption = options.find((opt) => opt.value === value);
11072
- return /* @__PURE__ */ jsxs23(
11166
+ return /* @__PURE__ */ jsxs24(
11073
11167
  DropdownMenu2,
11074
11168
  {
11075
11169
  placeholder: (selectedOption == null ? void 0 : selectedOption.label) || placeholder,
@@ -11077,7 +11171,7 @@ var SelectFormField = ({
11077
11171
  typography: "labelLarge",
11078
11172
  color: haveError ? "error" : "default",
11079
11173
  children: [
11080
- options.map((option, index) => /* @__PURE__ */ jsx42(
11174
+ options.map((option, index) => /* @__PURE__ */ jsx43(
11081
11175
  DropdownMenuItem,
11082
11176
  {
11083
11177
  value: option.value,
@@ -11088,7 +11182,7 @@ var SelectFormField = ({
11088
11182
  },
11089
11183
  `${option.value}${index}`
11090
11184
  )),
11091
- showMoreButton && showMoreButtonOnClick && /* @__PURE__ */ jsx42(
11185
+ showMoreButton && showMoreButtonOnClick && /* @__PURE__ */ jsx43(
11092
11186
  Button,
11093
11187
  {
11094
11188
  variant: "menuDropdownItem",
@@ -11106,7 +11200,7 @@ var SelectFormField = ({
11106
11200
  }
11107
11201
  }
11108
11202
  ),
11109
- /* @__PURE__ */ jsx42(ErrorFormMessage, { message: errorMsg })
11203
+ /* @__PURE__ */ jsx43(ErrorFormMessage, { message: errorMsg })
11110
11204
  ] });
11111
11205
  };
11112
11206
 
@@ -11139,7 +11233,7 @@ function useCountries(language = "pt-BR") {
11139
11233
  }
11140
11234
 
11141
11235
  // src/components/FormFields/AddressFormFields/CountryFormField.tsx
11142
- import { jsx as jsx43 } from "react/jsx-runtime";
11236
+ import { jsx as jsx44 } from "react/jsx-runtime";
11143
11237
  function CountryFormField({
11144
11238
  name,
11145
11239
  label,
@@ -11147,7 +11241,7 @@ function CountryFormField({
11147
11241
  language = "pt-BR"
11148
11242
  }) {
11149
11243
  const countries2 = useCountries(language);
11150
- return /* @__PURE__ */ jsx43(Flex, { direction: "column", children: /* @__PURE__ */ jsx43(
11244
+ return /* @__PURE__ */ jsx44(Flex, { direction: "column", children: /* @__PURE__ */ jsx44(
11151
11245
  SelectFormField,
11152
11246
  {
11153
11247
  label,
@@ -11160,7 +11254,7 @@ function CountryFormField({
11160
11254
  }
11161
11255
 
11162
11256
  // src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx
11163
- import { jsx as jsx44 } from "react/jsx-runtime";
11257
+ import { jsx as jsx45 } from "react/jsx-runtime";
11164
11258
  var PostalCodeFormField = ({
11165
11259
  name,
11166
11260
  label,
@@ -11169,7 +11263,7 @@ var PostalCodeFormField = ({
11169
11263
  validationErrorMessage,
11170
11264
  onChange
11171
11265
  }) => {
11172
- return /* @__PURE__ */ jsx44(
11266
+ return /* @__PURE__ */ jsx45(
11173
11267
  TextFormField,
11174
11268
  {
11175
11269
  name,
@@ -11222,14 +11316,14 @@ var brazilianStates = [
11222
11316
  ];
11223
11317
 
11224
11318
  // src/components/FormFields/AddressFormFields/StateFormField.tsx
11225
- import { Fragment as Fragment3, jsx as jsx45 } from "react/jsx-runtime";
11319
+ import { Fragment as Fragment4, jsx as jsx46 } from "react/jsx-runtime";
11226
11320
  function StateFormField({
11227
11321
  name,
11228
11322
  label,
11229
11323
  required,
11230
11324
  isBrazil
11231
11325
  }) {
11232
- return /* @__PURE__ */ jsx45(Fragment3, { children: isBrazil ? /* @__PURE__ */ jsx45(
11326
+ return /* @__PURE__ */ jsx46(Fragment4, { children: isBrazil ? /* @__PURE__ */ jsx46(
11233
11327
  SelectFormField,
11234
11328
  {
11235
11329
  name,
@@ -11237,13 +11331,13 @@ function StateFormField({
11237
11331
  required,
11238
11332
  label
11239
11333
  }
11240
- ) : /* @__PURE__ */ jsx45(TextFormField, { name, required, label }) });
11334
+ ) : /* @__PURE__ */ jsx46(TextFormField, { name, required, label }) });
11241
11335
  }
11242
11336
 
11243
11337
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
11244
- import { useEffect as useEffect8, useState as useState9 } from "react";
11338
+ import { useEffect as useEffect8, useState as useState10 } from "react";
11245
11339
  import { useFormContext as useFormContext5, Controller as Controller2 } from "react-hook-form";
11246
- import { Fragment as Fragment4, jsx as jsx46 } from "react/jsx-runtime";
11340
+ import { Fragment as Fragment5, jsx as jsx47 } from "react/jsx-runtime";
11247
11341
  function CityFormField({
11248
11342
  name,
11249
11343
  label,
@@ -11254,8 +11348,8 @@ function CityFormField({
11254
11348
  }) {
11255
11349
  const { control, watch } = useFormContext5();
11256
11350
  const selectedState = watch(stateName);
11257
- const [cities, setCities] = useState9([]);
11258
- const [loading, setLoading] = useState9(false);
11351
+ const [cities, setCities] = useState10([]);
11352
+ const [loading, setLoading] = useState10(false);
11259
11353
  useEffect8(() => {
11260
11354
  if (!isBrazil) {
11261
11355
  setCities([]);
@@ -11295,13 +11389,13 @@ function CityFormField({
11295
11389
  }
11296
11390
  fetchCities();
11297
11391
  }, [selectedState, isBrazil]);
11298
- return /* @__PURE__ */ jsx46(Fragment4, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx46(
11392
+ return /* @__PURE__ */ jsx47(Fragment5, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx47(
11299
11393
  Controller2,
11300
11394
  {
11301
11395
  name,
11302
11396
  control,
11303
11397
  rules: { required },
11304
- render: ({ field }) => /* @__PURE__ */ jsx46(
11398
+ render: ({ field }) => /* @__PURE__ */ jsx47(
11305
11399
  SelectFormField,
11306
11400
  __spreadProps(__spreadValues({
11307
11401
  label,
@@ -11315,7 +11409,7 @@ function CityFormField({
11315
11409
  })
11316
11410
  )
11317
11411
  }
11318
- ) : /* @__PURE__ */ jsx46(
11412
+ ) : /* @__PURE__ */ jsx47(
11319
11413
  TextFormField,
11320
11414
  {
11321
11415
  name,
@@ -11327,7 +11421,7 @@ function CityFormField({
11327
11421
  }
11328
11422
 
11329
11423
  // src/components/FormFields/AddressFormFields/index.tsx
11330
- import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
11424
+ import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
11331
11425
  function getNestedValue2(obj, path) {
11332
11426
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
11333
11427
  }
@@ -11377,8 +11471,8 @@ function AddressFormFields({
11377
11471
  console.error("Erro ao buscar CEP");
11378
11472
  });
11379
11473
  };
11380
- return /* @__PURE__ */ jsxs24(AddressContainerStyled, { layout, children: [
11381
- /* @__PURE__ */ jsx47(
11474
+ return /* @__PURE__ */ jsxs25(AddressContainerStyled, { layout, children: [
11475
+ /* @__PURE__ */ jsx48(
11382
11476
  FormLabel,
11383
11477
  {
11384
11478
  name,
@@ -11387,7 +11481,7 @@ function AddressFormFields({
11387
11481
  haveError
11388
11482
  }
11389
11483
  ),
11390
- /* @__PURE__ */ jsx47(
11484
+ /* @__PURE__ */ jsx48(
11391
11485
  CountryFormField,
11392
11486
  {
11393
11487
  name: `${name}.country`,
@@ -11396,7 +11490,7 @@ function AddressFormFields({
11396
11490
  language: "pt-BR"
11397
11491
  }
11398
11492
  ),
11399
- isBrazil ? /* @__PURE__ */ jsx47(
11493
+ isBrazil ? /* @__PURE__ */ jsx48(
11400
11494
  PostalCodeFormField,
11401
11495
  {
11402
11496
  name: `${name}.zip_code`,
@@ -11406,7 +11500,7 @@ function AddressFormFields({
11406
11500
  validationErrorMessage: "CEP inv\xE1lido",
11407
11501
  onChange: handleCEPChange
11408
11502
  }
11409
- ) : /* @__PURE__ */ jsx47(
11503
+ ) : /* @__PURE__ */ jsx48(
11410
11504
  TextFormField,
11411
11505
  {
11412
11506
  name: `${name}.zip_code`,
@@ -11414,7 +11508,7 @@ function AddressFormFields({
11414
11508
  required
11415
11509
  }
11416
11510
  ),
11417
- /* @__PURE__ */ jsx47(
11511
+ /* @__PURE__ */ jsx48(
11418
11512
  StateFormField,
11419
11513
  {
11420
11514
  name: `${name}.state`,
@@ -11423,7 +11517,7 @@ function AddressFormFields({
11423
11517
  isBrazil
11424
11518
  }
11425
11519
  ),
11426
- /* @__PURE__ */ jsx47(
11520
+ /* @__PURE__ */ jsx48(
11427
11521
  CityFormField,
11428
11522
  {
11429
11523
  name: `${name}.city`,
@@ -11433,8 +11527,8 @@ function AddressFormFields({
11433
11527
  isBrazil
11434
11528
  }
11435
11529
  ),
11436
- /* @__PURE__ */ jsx47(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11437
- /* @__PURE__ */ jsx47(
11530
+ /* @__PURE__ */ jsx48(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11531
+ /* @__PURE__ */ jsx48(
11438
11532
  TextFormField,
11439
11533
  {
11440
11534
  name: `${name}.number`,
@@ -11442,7 +11536,7 @@ function AddressFormFields({
11442
11536
  required
11443
11537
  }
11444
11538
  ),
11445
- /* @__PURE__ */ jsx47(
11539
+ /* @__PURE__ */ jsx48(
11446
11540
  TextFormField,
11447
11541
  {
11448
11542
  name: `${name}.neighborhood`,
@@ -11450,13 +11544,13 @@ function AddressFormFields({
11450
11544
  required
11451
11545
  }
11452
11546
  ),
11453
- /* @__PURE__ */ jsx47(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11547
+ /* @__PURE__ */ jsx48(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11454
11548
  ] });
11455
11549
  }
11456
11550
 
11457
11551
  // src/components/FormFields/RadioGroupFormField.tsx
11458
11552
  import { Controller as Controller3, useFormContext as useFormContext7 } from "react-hook-form";
11459
- import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
11553
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
11460
11554
  var RadioGroupFormField = ({
11461
11555
  name,
11462
11556
  label,
@@ -11478,8 +11572,8 @@ var RadioGroupFormField = ({
11478
11572
  const validationRules = {
11479
11573
  required: required ? validationErrorMessage : false
11480
11574
  };
11481
- return /* @__PURE__ */ jsxs25(Flex, { direction: "column", children: [
11482
- /* @__PURE__ */ jsx48(
11575
+ return /* @__PURE__ */ jsxs26(Flex, { direction: "column", children: [
11576
+ /* @__PURE__ */ jsx49(
11483
11577
  FormLabel,
11484
11578
  {
11485
11579
  name,
@@ -11488,14 +11582,14 @@ var RadioGroupFormField = ({
11488
11582
  haveError
11489
11583
  }
11490
11584
  ),
11491
- /* @__PURE__ */ jsx48(
11585
+ /* @__PURE__ */ jsx49(
11492
11586
  Controller3,
11493
11587
  {
11494
11588
  name,
11495
11589
  control,
11496
11590
  defaultValue: defaultValue || "",
11497
11591
  rules: validationRules,
11498
- render: ({ field: { value, onChange } }) => /* @__PURE__ */ jsx48(
11592
+ render: ({ field: { value, onChange } }) => /* @__PURE__ */ jsx49(
11499
11593
  RadioGroup,
11500
11594
  {
11501
11595
  value,
@@ -11503,18 +11597,18 @@ var RadioGroupFormField = ({
11503
11597
  color: haveError ? "error" : color,
11504
11598
  fontWeight,
11505
11599
  disabled,
11506
- children: /* @__PURE__ */ jsx48(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ jsx48(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx48(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11600
+ children: /* @__PURE__ */ jsx49(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ jsx49(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx49(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11507
11601
  }
11508
11602
  )
11509
11603
  }
11510
11604
  ),
11511
- /* @__PURE__ */ jsx48(ErrorFormMessage, { message: errorMsg })
11605
+ /* @__PURE__ */ jsx49(ErrorFormMessage, { message: errorMsg })
11512
11606
  ] });
11513
11607
  };
11514
11608
 
11515
11609
  // src/components/FormFields/CheckboxGroupFormField.tsx
11516
11610
  import { Controller as Controller4, useFormContext as useFormContext8 } from "react-hook-form";
11517
- import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
11611
+ import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
11518
11612
  var CheckboxGroupFormField = ({
11519
11613
  name,
11520
11614
  label,
@@ -11537,8 +11631,8 @@ var CheckboxGroupFormField = ({
11537
11631
  required: required ? validationErrorMessage : false,
11538
11632
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11539
11633
  };
11540
- return /* @__PURE__ */ jsxs26(Flex, { direction: "column", children: [
11541
- /* @__PURE__ */ jsx49(
11634
+ return /* @__PURE__ */ jsxs27(Flex, { direction: "column", children: [
11635
+ /* @__PURE__ */ jsx50(
11542
11636
  FormLabel,
11543
11637
  {
11544
11638
  name,
@@ -11547,14 +11641,14 @@ var CheckboxGroupFormField = ({
11547
11641
  haveError
11548
11642
  }
11549
11643
  ),
11550
- /* @__PURE__ */ jsx49(
11644
+ /* @__PURE__ */ jsx50(
11551
11645
  Controller4,
11552
11646
  {
11553
11647
  name,
11554
11648
  control,
11555
11649
  rules: validationRules,
11556
11650
  defaultValue,
11557
- render: ({ field }) => /* @__PURE__ */ jsx49(
11651
+ render: ({ field }) => /* @__PURE__ */ jsx50(
11558
11652
  CheckboxGroup,
11559
11653
  {
11560
11654
  name,
@@ -11563,7 +11657,7 @@ var CheckboxGroupFormField = ({
11563
11657
  color: haveError ? "error" : color,
11564
11658
  fontWeight,
11565
11659
  disabled,
11566
- children: options.map((option) => /* @__PURE__ */ jsx49(
11660
+ children: options.map((option) => /* @__PURE__ */ jsx50(
11567
11661
  CheckboxItem,
11568
11662
  {
11569
11663
  value: option.value,
@@ -11576,13 +11670,13 @@ var CheckboxGroupFormField = ({
11576
11670
  )
11577
11671
  }
11578
11672
  ),
11579
- /* @__PURE__ */ jsx49(ErrorFormMessage, { message: errorMsg })
11673
+ /* @__PURE__ */ jsx50(ErrorFormMessage, { message: errorMsg })
11580
11674
  ] });
11581
11675
  };
11582
11676
 
11583
11677
  // src/components/FormFields/SwitchFormField.tsx
11584
11678
  import { useFormContext as useFormContext9, Controller as Controller5 } from "react-hook-form";
11585
- import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
11679
+ import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
11586
11680
  var SwitchFormField = ({
11587
11681
  name,
11588
11682
  label,
@@ -11596,15 +11690,15 @@ var SwitchFormField = ({
11596
11690
  if (watch) {
11597
11691
  watchForm(name);
11598
11692
  }
11599
- return /* @__PURE__ */ jsxs27(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11600
- /* @__PURE__ */ jsx50(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11601
- /* @__PURE__ */ jsx50(
11693
+ return /* @__PURE__ */ jsxs28(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11694
+ /* @__PURE__ */ jsx51(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11695
+ /* @__PURE__ */ jsx51(
11602
11696
  Controller5,
11603
11697
  {
11604
11698
  control,
11605
11699
  name,
11606
11700
  defaultValue,
11607
- render: ({ field }) => /* @__PURE__ */ jsx50(
11701
+ render: ({ field }) => /* @__PURE__ */ jsx51(
11608
11702
  Switch,
11609
11703
  {
11610
11704
  checked: field.value,
@@ -11617,14 +11711,14 @@ var SwitchFormField = ({
11617
11711
  };
11618
11712
 
11619
11713
  // src/components/FormFields/EmailFormField.tsx
11620
- import { jsx as jsx51 } from "react/jsx-runtime";
11714
+ import { jsx as jsx52 } from "react/jsx-runtime";
11621
11715
  var EmailFormField = ({
11622
11716
  name,
11623
11717
  label,
11624
11718
  required,
11625
11719
  placeholder
11626
11720
  }) => {
11627
- return /* @__PURE__ */ jsx51(
11721
+ return /* @__PURE__ */ jsx52(
11628
11722
  TextFormField,
11629
11723
  {
11630
11724
  name,
@@ -11641,10 +11735,10 @@ var EmailFormField = ({
11641
11735
  import { useController as useController3 } from "react-hook-form";
11642
11736
 
11643
11737
  // src/components/RichEditor/RichEditor.tsx
11644
- import { useEffect as useEffect10, useState as useState11 } from "react";
11738
+ import { useEffect as useEffect10, useState as useState12 } from "react";
11645
11739
 
11646
11740
  // src/components/RichEditor/QuillComponent.tsx
11647
- import { useState as useState10, useRef as useRef9, useEffect as useEffect9, useCallback as useCallback4 } from "react";
11741
+ import { useState as useState11, useRef as useRef9, useEffect as useEffect9, useCallback as useCallback4 } from "react";
11648
11742
  import { useQuill } from "react-quilljs";
11649
11743
 
11650
11744
  // src/utils/uploadService.ts
@@ -12701,7 +12795,7 @@ var QuillEditor = styled("div", {
12701
12795
  });
12702
12796
 
12703
12797
  // src/components/RichEditor/QuillComponent.tsx
12704
- import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
12798
+ import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
12705
12799
  var QuillComponent = ({
12706
12800
  value = "",
12707
12801
  onChange,
@@ -12714,10 +12808,10 @@ var QuillComponent = ({
12714
12808
  onCharacterCountChange,
12715
12809
  maxLength
12716
12810
  }) => {
12717
- const [showVideoModal, setShowVideoModal] = useState10(false);
12718
- const [videoUrl, setVideoUrl] = useState10("");
12719
- const [showLinkModal, setShowLinkModal] = useState10(false);
12720
- const [linkUrl, setLinkUrl] = useState10("");
12811
+ const [showVideoModal, setShowVideoModal] = useState11(false);
12812
+ const [videoUrl, setVideoUrl] = useState11("");
12813
+ const [showLinkModal, setShowLinkModal] = useState11(false);
12814
+ const [linkUrl, setLinkUrl] = useState11("");
12721
12815
  const videoModalRef = useRef9(null);
12722
12816
  const linkModalRef = useRef9(null);
12723
12817
  const { addToast, removeToast } = useToast();
@@ -12972,9 +13066,9 @@ var QuillComponent = ({
12972
13066
  document.addEventListener("mousedown", handleClickOutside);
12973
13067
  return () => document.removeEventListener("mousedown", handleClickOutside);
12974
13068
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12975
- return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs28(QuillEditor, { children: [
12976
- /* @__PURE__ */ jsx52("div", { ref: quillRef }),
12977
- showVideoModal && /* @__PURE__ */ jsx52(
13069
+ return /* @__PURE__ */ jsx53(QuillContainer, { className, children: /* @__PURE__ */ jsxs29(QuillEditor, { children: [
13070
+ /* @__PURE__ */ jsx53("div", { ref: quillRef }),
13071
+ showVideoModal && /* @__PURE__ */ jsx53(
12978
13072
  "div",
12979
13073
  {
12980
13074
  ref: videoModalRef,
@@ -12991,15 +13085,15 @@ var QuillComponent = ({
12991
13085
  zIndex: 1e3,
12992
13086
  width: "fit-content"
12993
13087
  },
12994
- children: /* @__PURE__ */ jsxs28(Flex, { gap: 8, align: "center", children: [
12995
- /* @__PURE__ */ jsx52(
13088
+ children: /* @__PURE__ */ jsxs29(Flex, { gap: 8, align: "center", children: [
13089
+ /* @__PURE__ */ jsx53(
12996
13090
  Text,
12997
13091
  {
12998
13092
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
12999
13093
  children: "V\xEDdeo:"
13000
13094
  }
13001
13095
  ),
13002
- /* @__PURE__ */ jsx52(
13096
+ /* @__PURE__ */ jsx53(
13003
13097
  "input",
13004
13098
  {
13005
13099
  type: "text",
@@ -13023,7 +13117,7 @@ var QuillComponent = ({
13023
13117
  autoFocus: true
13024
13118
  }
13025
13119
  ),
13026
- /* @__PURE__ */ jsx52(
13120
+ /* @__PURE__ */ jsx53(
13027
13121
  "button",
13028
13122
  {
13029
13123
  onClick: handleVideoSubmit,
@@ -13044,7 +13138,7 @@ var QuillComponent = ({
13044
13138
  ] })
13045
13139
  }
13046
13140
  ),
13047
- showLinkModal && /* @__PURE__ */ jsx52(
13141
+ showLinkModal && /* @__PURE__ */ jsx53(
13048
13142
  "div",
13049
13143
  {
13050
13144
  ref: linkModalRef,
@@ -13061,15 +13155,15 @@ var QuillComponent = ({
13061
13155
  zIndex: 1e3,
13062
13156
  width: "fit-content"
13063
13157
  },
13064
- children: /* @__PURE__ */ jsxs28(Flex, { gap: 8, align: "center", children: [
13065
- /* @__PURE__ */ jsx52(
13158
+ children: /* @__PURE__ */ jsxs29(Flex, { gap: 8, align: "center", children: [
13159
+ /* @__PURE__ */ jsx53(
13066
13160
  Text,
13067
13161
  {
13068
13162
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
13069
13163
  children: "Link:"
13070
13164
  }
13071
13165
  ),
13072
- /* @__PURE__ */ jsx52(
13166
+ /* @__PURE__ */ jsx53(
13073
13167
  "input",
13074
13168
  {
13075
13169
  type: "text",
@@ -13094,7 +13188,7 @@ var QuillComponent = ({
13094
13188
  autoFocus: true
13095
13189
  }
13096
13190
  ),
13097
- /* @__PURE__ */ jsx52(
13191
+ /* @__PURE__ */ jsx53(
13098
13192
  "button",
13099
13193
  {
13100
13194
  onClick: handleLinkSubmit,
@@ -13120,21 +13214,21 @@ var QuillComponent = ({
13120
13214
  var QuillComponent_default = QuillComponent;
13121
13215
 
13122
13216
  // src/components/RichEditor/RichEditor.tsx
13123
- import { jsx as jsx53 } from "react/jsx-runtime";
13217
+ import { jsx as jsx54 } from "react/jsx-runtime";
13124
13218
  var RichEditor = (props) => {
13125
- const [isClient, setIsClient] = useState11(false);
13219
+ const [isClient, setIsClient] = useState12(false);
13126
13220
  useEffect10(() => {
13127
13221
  setIsClient(typeof window !== "undefined");
13128
13222
  }, []);
13129
13223
  if (!isClient) return null;
13130
- return /* @__PURE__ */ jsx53("div", { children: /* @__PURE__ */ jsx53(ToastProvider, { children: /* @__PURE__ */ jsx53(QuillComponent_default, __spreadValues({}, props)) }) });
13224
+ return /* @__PURE__ */ jsx54("div", { children: /* @__PURE__ */ jsx54(ToastProvider, { children: /* @__PURE__ */ jsx54(QuillComponent_default, __spreadValues({}, props)) }) });
13131
13225
  };
13132
13226
  var RichEditor_default = RichEditor;
13133
13227
 
13134
13228
  // src/components/RichEditor/RichTextPresenter.tsx
13135
- import { jsx as jsx54 } from "react/jsx-runtime";
13229
+ import { jsx as jsx55 } from "react/jsx-runtime";
13136
13230
  var RichTextPresenter = ({ richText }) => {
13137
- return /* @__PURE__ */ jsx54(QuillEditor, { children: /* @__PURE__ */ jsx54(
13231
+ return /* @__PURE__ */ jsx55(QuillEditor, { children: /* @__PURE__ */ jsx55(
13138
13232
  "div",
13139
13233
  {
13140
13234
  className: "ql-editor",
@@ -13145,8 +13239,8 @@ var RichTextPresenter = ({ richText }) => {
13145
13239
  var RichTextPresenter_default = RichTextPresenter;
13146
13240
 
13147
13241
  // src/components/FormFields/RichEditorFormField.tsx
13148
- import { useState as useState12 } from "react";
13149
- import { Fragment as Fragment5, jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
13242
+ import { useState as useState13 } from "react";
13243
+ import { Fragment as Fragment6, jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
13150
13244
  var RichEditorFormField = (_a) => {
13151
13245
  var _b = _a, {
13152
13246
  name,
@@ -13180,7 +13274,7 @@ var RichEditorFormField = (_a) => {
13180
13274
  },
13181
13275
  defaultValue: ""
13182
13276
  });
13183
- const [caracterQuantity, setCaracterQuantity] = useState12(maxLength);
13277
+ const [caracterQuantity, setCaracterQuantity] = useState13(maxLength);
13184
13278
  const handleCharacterCountChange = (count) => {
13185
13279
  if (maxLength !== void 0) {
13186
13280
  setCaracterQuantity(Math.max(0, maxLength - count));
@@ -13189,9 +13283,9 @@ var RichEditorFormField = (_a) => {
13189
13283
  const fieldError = fieldState.error;
13190
13284
  const haveError = !!fieldError;
13191
13285
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
13192
- return /* @__PURE__ */ jsxs29(Flex, { direction: "column", children: [
13193
- maxLength ? /* @__PURE__ */ jsxs29(Flex, { direction: "row", justify: "between", children: [
13194
- label && /* @__PURE__ */ jsx55(
13286
+ return /* @__PURE__ */ jsxs30(Flex, { direction: "column", children: [
13287
+ maxLength ? /* @__PURE__ */ jsxs30(Flex, { direction: "row", justify: "between", children: [
13288
+ label && /* @__PURE__ */ jsx56(
13195
13289
  FormLabel,
13196
13290
  {
13197
13291
  name,
@@ -13200,8 +13294,8 @@ var RichEditorFormField = (_a) => {
13200
13294
  haveError
13201
13295
  }
13202
13296
  ),
13203
- /* @__PURE__ */ jsx55(Badge, { color: "grey", size: "xs", children: caracterQuantity })
13204
- ] }) : /* @__PURE__ */ jsx55(Fragment5, { children: label && /* @__PURE__ */ jsx55(
13297
+ /* @__PURE__ */ jsx56(Badge, { color: "grey", size: "xs", children: caracterQuantity })
13298
+ ] }) : /* @__PURE__ */ jsx56(Fragment6, { children: label && /* @__PURE__ */ jsx56(
13205
13299
  FormLabel,
13206
13300
  {
13207
13301
  name,
@@ -13210,7 +13304,7 @@ var RichEditorFormField = (_a) => {
13210
13304
  haveError
13211
13305
  }
13212
13306
  ) }),
13213
- /* @__PURE__ */ jsx55(
13307
+ /* @__PURE__ */ jsx56(
13214
13308
  RichEditor_default,
13215
13309
  __spreadProps(__spreadValues({}, props), {
13216
13310
  value: field.value,
@@ -13222,14 +13316,14 @@ var RichEditorFormField = (_a) => {
13222
13316
  simpleVersion
13223
13317
  })
13224
13318
  ),
13225
- /* @__PURE__ */ jsx55(ErrorFormMessage, { message: errorMsg })
13319
+ /* @__PURE__ */ jsx56(ErrorFormMessage, { message: errorMsg })
13226
13320
  ] });
13227
13321
  };
13228
13322
 
13229
13323
  // src/components/FormFields/CalendarFormField.tsx
13230
13324
  import { useController as useController4 } from "react-hook-form";
13231
13325
  import { useCallback as useCallback5 } from "react";
13232
- import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
13326
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
13233
13327
  var CalendarFormField = (_a) => {
13234
13328
  var _b = _a, {
13235
13329
  name,
@@ -13280,8 +13374,8 @@ var CalendarFormField = (_a) => {
13280
13374
  const handleCalendarChange = (date) => {
13281
13375
  setSelected(date);
13282
13376
  };
13283
- return /* @__PURE__ */ jsxs30(Flex, { direction: "column", style: { flex: "1" }, children: [
13284
- label && /* @__PURE__ */ jsx56(
13377
+ return /* @__PURE__ */ jsxs31(Flex, { direction: "column", style: { flex: "1" }, children: [
13378
+ label && /* @__PURE__ */ jsx57(
13285
13379
  FormLabel,
13286
13380
  {
13287
13381
  name,
@@ -13290,7 +13384,7 @@ var CalendarFormField = (_a) => {
13290
13384
  haveError
13291
13385
  }
13292
13386
  ),
13293
- /* @__PURE__ */ jsx56(
13387
+ /* @__PURE__ */ jsx57(
13294
13388
  Calendar,
13295
13389
  __spreadValues({
13296
13390
  selected,
@@ -13304,14 +13398,14 @@ var CalendarFormField = (_a) => {
13304
13398
  maxYearsFromNow
13305
13399
  }, calendarProps)
13306
13400
  ),
13307
- /* @__PURE__ */ jsx56(ErrorFormMessage, { message: errorMsg })
13401
+ /* @__PURE__ */ jsx57(ErrorFormMessage, { message: errorMsg })
13308
13402
  ] });
13309
13403
  };
13310
13404
 
13311
13405
  // src/components/FormFields/DoubleCalendarFormField.tsx
13312
13406
  import { useCallback as useCallback6 } from "react";
13313
13407
  import { useController as useController5 } from "react-hook-form";
13314
- import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
13408
+ import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
13315
13409
  var DoubleCalendarFormField = (_a) => {
13316
13410
  var _b = _a, {
13317
13411
  name,
@@ -13362,9 +13456,9 @@ var DoubleCalendarFormField = (_a) => {
13362
13456
  const handleCalendarChange = (range) => {
13363
13457
  setSelected(range);
13364
13458
  };
13365
- return /* @__PURE__ */ jsxs31(Flex, { direction: "column", style: { flex: "1" }, children: [
13366
- label && /* @__PURE__ */ jsx57(FormLabel, { name, label, required, haveError }),
13367
- /* @__PURE__ */ jsx57(
13459
+ return /* @__PURE__ */ jsxs32(Flex, { direction: "column", style: { flex: "1" }, children: [
13460
+ label && /* @__PURE__ */ jsx58(FormLabel, { name, label, required, haveError }),
13461
+ /* @__PURE__ */ jsx58(
13368
13462
  DoubleCalendar,
13369
13463
  __spreadValues({
13370
13464
  selected,
@@ -13379,14 +13473,14 @@ var DoubleCalendarFormField = (_a) => {
13379
13473
  maxDate
13380
13474
  }, calendarProps)
13381
13475
  ),
13382
- /* @__PURE__ */ jsx57(ErrorFormMessage, { message: errorMsg })
13476
+ /* @__PURE__ */ jsx58(ErrorFormMessage, { message: errorMsg })
13383
13477
  ] });
13384
13478
  };
13385
13479
 
13386
13480
  // src/components/FormFields/TimePickerFormField.tsx
13387
13481
  import { useController as useController6 } from "react-hook-form";
13388
13482
  import { useCallback as useCallback7 } from "react";
13389
- import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
13483
+ import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
13390
13484
  var TimePickerFormField = (_a) => {
13391
13485
  var _b = _a, {
13392
13486
  name,
@@ -13429,8 +13523,8 @@ var TimePickerFormField = (_a) => {
13429
13523
  const handleTimePickerChange = (time) => {
13430
13524
  setSelected(time);
13431
13525
  };
13432
- return /* @__PURE__ */ jsxs32(Flex, { direction: "column", style: { flex: "1" }, children: [
13433
- label && /* @__PURE__ */ jsx58(
13526
+ return /* @__PURE__ */ jsxs33(Flex, { direction: "column", style: { flex: "1" }, children: [
13527
+ label && /* @__PURE__ */ jsx59(
13434
13528
  FormLabel,
13435
13529
  {
13436
13530
  name,
@@ -13439,7 +13533,7 @@ var TimePickerFormField = (_a) => {
13439
13533
  haveError
13440
13534
  }
13441
13535
  ),
13442
- /* @__PURE__ */ jsx58(
13536
+ /* @__PURE__ */ jsx59(
13443
13537
  TimePicker,
13444
13538
  __spreadValues({
13445
13539
  selected,
@@ -13450,14 +13544,14 @@ var TimePickerFormField = (_a) => {
13450
13544
  hasError: haveError
13451
13545
  }, timePickerProps)
13452
13546
  ),
13453
- /* @__PURE__ */ jsx58(ErrorFormMessage, { message: errorMsg })
13547
+ /* @__PURE__ */ jsx59(ErrorFormMessage, { message: errorMsg })
13454
13548
  ] });
13455
13549
  };
13456
13550
 
13457
13551
  // src/components/FormFields/DateAndTimeFormField.tsx
13458
13552
  import { useController as useController7 } from "react-hook-form";
13459
- import { useCallback as useCallback8, useEffect as useEffect11, useMemo as useMemo4, useState as useState13 } from "react";
13460
- import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
13553
+ import { useCallback as useCallback8, useEffect as useEffect11, useMemo as useMemo4, useState as useState14 } from "react";
13554
+ import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
13461
13555
  var DateAndTimeFormField = (_a) => {
13462
13556
  var _b = _a, {
13463
13557
  name,
@@ -13544,8 +13638,8 @@ var DateAndTimeFormField = (_a) => {
13544
13638
  return { selectedDateFromIso: void 0, selectedTimeFromIso: void 0 };
13545
13639
  }
13546
13640
  }, [isoValue]);
13547
- const [draftDate, setDraftDate] = useState13(selectedDateFromIso);
13548
- const [draftTime, setDraftTime] = useState13(selectedTimeFromIso);
13641
+ const [draftDate, setDraftDate] = useState14(selectedDateFromIso);
13642
+ const [draftTime, setDraftTime] = useState14(selectedTimeFromIso);
13549
13643
  useEffect11(() => {
13550
13644
  setDraftDate(selectedDateFromIso);
13551
13645
  setDraftTime(selectedTimeFromIso);
@@ -13571,8 +13665,8 @@ var DateAndTimeFormField = (_a) => {
13571
13665
  setDraftTime(time);
13572
13666
  combineDateTime(draftDate, time);
13573
13667
  };
13574
- return /* @__PURE__ */ jsxs33(Flex, { direction: "column", children: [
13575
- label && /* @__PURE__ */ jsx59(
13668
+ return /* @__PURE__ */ jsxs34(Flex, { direction: "column", children: [
13669
+ label && /* @__PURE__ */ jsx60(
13576
13670
  FormLabel,
13577
13671
  {
13578
13672
  name,
@@ -13581,14 +13675,14 @@ var DateAndTimeFormField = (_a) => {
13581
13675
  haveError
13582
13676
  }
13583
13677
  ),
13584
- /* @__PURE__ */ jsxs33(
13678
+ /* @__PURE__ */ jsxs34(
13585
13679
  Flex,
13586
13680
  {
13587
13681
  gap: 12,
13588
13682
  align: "start",
13589
13683
  style: disabled ? { position: "relative" } : void 0,
13590
13684
  children: [
13591
- /* @__PURE__ */ jsx59(Flex, { direction: "column", children: /* @__PURE__ */ jsx59(
13685
+ /* @__PURE__ */ jsx60(Flex, { direction: "column", children: /* @__PURE__ */ jsx60(
13592
13686
  Calendar,
13593
13687
  __spreadValues({
13594
13688
  selected: draftDate,
@@ -13603,7 +13697,7 @@ var DateAndTimeFormField = (_a) => {
13603
13697
  disabled
13604
13698
  }, props)
13605
13699
  ) }),
13606
- /* @__PURE__ */ jsx59(Flex, { direction: "column", children: /* @__PURE__ */ jsx59(
13700
+ /* @__PURE__ */ jsx60(Flex, { direction: "column", children: /* @__PURE__ */ jsx60(
13607
13701
  TimePicker,
13608
13702
  __spreadValues({
13609
13703
  selected: draftTime,
@@ -13615,7 +13709,7 @@ var DateAndTimeFormField = (_a) => {
13615
13709
  hasError: haveError
13616
13710
  }, props)
13617
13711
  ) }),
13618
- disabled && /* @__PURE__ */ jsx59(
13712
+ disabled && /* @__PURE__ */ jsx60(
13619
13713
  "div",
13620
13714
  {
13621
13715
  "aria-hidden": true,
@@ -13632,16 +13726,16 @@ var DateAndTimeFormField = (_a) => {
13632
13726
  ]
13633
13727
  }
13634
13728
  ),
13635
- /* @__PURE__ */ jsx59(ErrorFormMessage, { message: errorMsg })
13729
+ /* @__PURE__ */ jsx60(ErrorFormMessage, { message: errorMsg })
13636
13730
  ] });
13637
13731
  };
13638
13732
 
13639
13733
  // src/hooks/useImageUpload.ts
13640
- import { useState as useState14, useCallback as useCallback9 } from "react";
13734
+ import { useState as useState15, useCallback as useCallback9 } from "react";
13641
13735
  var useImageUpload = (options) => {
13642
- const [isUploading, setIsUploading] = useState14(false);
13643
- const [progress, setProgress] = useState14(null);
13644
- const [error, setError] = useState14(null);
13736
+ const [isUploading, setIsUploading] = useState15(false);
13737
+ const [progress, setProgress] = useState15(null);
13738
+ const [error, setError] = useState15(null);
13645
13739
  const {
13646
13740
  onSuccess,
13647
13741
  onError,
@@ -13833,6 +13927,7 @@ export {
13833
13927
  TimerPickerContentStyled,
13834
13928
  ToastItem,
13835
13929
  ToastProvider,
13930
+ ToggleElement,
13836
13931
  Tooltip,
13837
13932
  TooltipContent,
13838
13933
  TooltipProvider,