@lets-events/react 12.3.10 → 12.4.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 (91) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +19 -21
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +35 -3
  5. package/dist/index.d.ts +35 -3
  6. package/dist/index.js +562 -344
  7. package/dist/index.mjs +535 -319
  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 +125 -125
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +45 -45
  14. package/src/components/Button/styledComponents.ts +313 -313
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +148 -148
  17. package/src/components/Calendar/styledComponents.ts +259 -250
  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 +166 -0
  23. package/src/components/Drawer/index.tsx +98 -98
  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 +95 -95
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/DoubleCalendarFormField.tsx +90 -0
  39. package/src/components/FormFields/EmailFormField.tsx +27 -27
  40. package/src/components/FormFields/Form.tsx +39 -39
  41. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  42. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  43. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  44. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  45. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  46. package/src/components/FormFields/SelectFormField.tsx +93 -93
  47. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  48. package/src/components/FormFields/TextAreaFormField.tsx +59 -57
  49. package/src/components/FormFields/TextFormField.tsx +112 -112
  50. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  51. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  52. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  53. package/src/components/FormFields/utils/validation.ts +23 -23
  54. package/src/components/Grid.tsx +137 -137
  55. package/src/components/Icon.tsx +47 -47
  56. package/src/components/MenuDropdown/index.tsx +38 -38
  57. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  58. package/src/components/Modal.tsx +110 -110
  59. package/src/components/MultiSelect/index.tsx +243 -243
  60. package/src/components/MultiSelect/styledComponents.ts +160 -160
  61. package/src/components/RadioGroup.tsx +210 -210
  62. package/src/components/RichEditor/QuillComponent.tsx +457 -457
  63. package/src/components/RichEditor/RichEditor.tsx +49 -49
  64. package/src/components/RichEditor/index.ts +2 -2
  65. package/src/components/RichEditor/styledComponents.ts +1151 -1151
  66. package/src/components/Section.tsx +33 -33
  67. package/src/components/Step.tsx +164 -164
  68. package/src/components/Switch.tsx +108 -108
  69. package/src/components/Text.tsx +38 -38
  70. package/src/components/TextField.tsx +372 -372
  71. package/src/components/TextareaField.tsx +138 -127
  72. package/src/components/TimePicker.tsx +328 -328
  73. package/src/components/Toast/components/ToastItem.tsx +41 -41
  74. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  75. package/src/components/Toast/hooks/useToast.ts +12 -12
  76. package/src/components/Toast/index.tsx +5 -5
  77. package/src/components/Toast/styles/index.ts +135 -135
  78. package/src/components/Toast/types/index.ts +46 -46
  79. package/src/components/Tooltip/index.tsx +66 -66
  80. package/src/components/Tooltip/styles.ts +77 -77
  81. package/src/hooks/useCountries.ts +41 -41
  82. package/src/hooks/useImageUpload.ts +139 -139
  83. package/src/hooks/useOnClickOutside.tsx +42 -42
  84. package/src/index.tsx +71 -69
  85. package/src/styles/index.ts +41 -41
  86. package/src/types/typographyValues.ts +178 -178
  87. package/src/utils/getNestedValue.ts +3 -3
  88. package/src/utils/states.ts +29 -29
  89. package/src/utils/uploadService.ts +180 -180
  90. package/tsconfig.json +3 -3
  91. package/tsup.config.ts +38 -38
package/dist/index.mjs CHANGED
@@ -7746,7 +7746,8 @@ var CalendarFooterStyled = styled("div", {
7746
7746
  borderTop: "2px solid $neutral100",
7747
7747
  padding: "$4 $16",
7748
7748
  display: "flex",
7749
- justifyContent: "center",
7749
+ gap: "1rem",
7750
+ justifyContent: "flex-end",
7750
7751
  alignItems: "center",
7751
7752
  height: "3rem"
7752
7753
  });
@@ -7757,7 +7758,7 @@ var DayPickerWrapperStyled = styled("div", {
7757
7758
  color: "$dark500"
7758
7759
  },
7759
7760
  ".rdp-root": {
7760
- padding: "$8"
7761
+ padding: "0 $8"
7761
7762
  },
7762
7763
  ".rdp-today .rdp-day_button": {
7763
7764
  color: "$brand500",
@@ -7767,8 +7768,8 @@ var DayPickerWrapperStyled = styled("div", {
7767
7768
  color: "$dark400"
7768
7769
  },
7769
7770
  ".rdp-day_button": {
7770
- height: "32px",
7771
- width: "32px",
7771
+ height: "28px",
7772
+ width: "28px",
7772
7773
  borderRadius: "$sm",
7773
7774
  fontSize: "$14",
7774
7775
  color: "$text",
@@ -7786,9 +7787,10 @@ var DayPickerWrapperStyled = styled("div", {
7786
7787
  borderColor: "transparent"
7787
7788
  },
7788
7789
  ".rdp-nav": {
7790
+ position: "absolute",
7791
+ width: "98%",
7789
7792
  display: "flex",
7790
- justifyContent: "space-between",
7791
- width: "100%"
7793
+ justifyContent: "space-between"
7792
7794
  },
7793
7795
  ".rdp-nav .rdp-chevron": {
7794
7796
  display: "none"
@@ -7824,8 +7826,15 @@ var DayPickerWrapperStyled = styled("div", {
7824
7826
  backgroundColor: "transparent",
7825
7827
  cursor: "pointer"
7826
7828
  },
7829
+ ".rdp-months": {
7830
+ display: "flex",
7831
+ columnGap: "$16",
7832
+ alignItems: "flex-start",
7833
+ paddingTop: "$12"
7834
+ },
7827
7835
  ".rdp-month": {
7828
- marginTop: "-24px"
7836
+ marginTop: "0",
7837
+ paddingTop: "$6"
7829
7838
  },
7830
7839
  ".rdp-month_caption": {
7831
7840
  display: "flex",
@@ -8029,8 +8038,138 @@ function Calendar(_a) {
8029
8038
  ] })) });
8030
8039
  }
8031
8040
 
8041
+ // src/components/DoubleCalendar/index.tsx
8042
+ import { useRef as useRef4, useEffect as useEffect4, useState as useState3 } from "react";
8043
+ import { DayPicker as DayPicker2 } from "react-day-picker";
8044
+ import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
8045
+ function DoubleCalendar(_a) {
8046
+ var _b = _a, {
8047
+ action,
8048
+ actionText,
8049
+ calendarLayout,
8050
+ selected,
8051
+ setSelected,
8052
+ position = "bottom",
8053
+ hasError,
8054
+ expand,
8055
+ allowPastDates = false,
8056
+ maxYearsFromNow = 20
8057
+ } = _b, props = __objRest(_b, [
8058
+ "action",
8059
+ "actionText",
8060
+ "calendarLayout",
8061
+ "selected",
8062
+ "setSelected",
8063
+ "position",
8064
+ "hasError",
8065
+ "expand",
8066
+ "allowPastDates",
8067
+ "maxYearsFromNow"
8068
+ ]);
8069
+ const [startValue, setStartValue] = useState3("");
8070
+ const [endValue, setEndValue] = useState3("");
8071
+ const [showContainer, setShowCalendar] = useState3(false);
8072
+ const initialSelectedRef = useRef4(void 0);
8073
+ const dropdownRef = useRef4(null);
8074
+ useOnClickOutside(dropdownRef, () => {
8075
+ setShowCalendar(false);
8076
+ });
8077
+ const today = /* @__PURE__ */ new Date();
8078
+ const maxDate = addYears(today, maxYearsFromNow);
8079
+ useEffect4(() => {
8080
+ if (selected && selected.from) {
8081
+ setStartValue(format2(selected.from, "dd/MM/yyyy"));
8082
+ } else {
8083
+ setStartValue("");
8084
+ }
8085
+ if (selected && selected.to) {
8086
+ setEndValue(format2(selected.to, "dd/MM/yyyy"));
8087
+ } else {
8088
+ setEndValue("");
8089
+ }
8090
+ }, [selected]);
8091
+ return /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs7(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8092
+ /* @__PURE__ */ jsx16(
8093
+ CalendarButtonStyled,
8094
+ {
8095
+ expand,
8096
+ type: "button",
8097
+ onClick: () => setShowCalendar((prev) => {
8098
+ const next = !prev;
8099
+ if (!prev) initialSelectedRef.current = selected;
8100
+ return next;
8101
+ }),
8102
+ children: /* @__PURE__ */ jsx16("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ jsx16(
8103
+ TextField,
8104
+ {
8105
+ placeholder: "00/00/0000 - 00/00/0000",
8106
+ type: "text",
8107
+ value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
8108
+ readOnly: true,
8109
+ inputMode: "numeric",
8110
+ textAlign: "right",
8111
+ color: hasError ? "error" : "default",
8112
+ children: /* @__PURE__ */ jsx16(TextFieldSlot, { children: /* @__PURE__ */ jsx16(Icon_default, { name: "calendar", size: "xl" }) })
8113
+ }
8114
+ ) })
8115
+ }
8116
+ ),
8117
+ showContainer && /* @__PURE__ */ jsxs7(CalendarContentStyled, { position, children: [
8118
+ /* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(DayPickerWrapperStyled, { children: /* @__PURE__ */ jsx16(
8119
+ DayPicker2,
8120
+ {
8121
+ mode: "range",
8122
+ numberOfMonths: 2,
8123
+ captionLayout: calendarLayout,
8124
+ selected,
8125
+ onSelect: setSelected,
8126
+ required: true,
8127
+ locale: ptBR,
8128
+ disabled: allowPastDates ? void 0 : { before: today },
8129
+ fromMonth: allowPastDates ? void 0 : today,
8130
+ toMonth: maxDate
8131
+ }
8132
+ ) }) }),
8133
+ action && /* @__PURE__ */ jsxs7(CalendarFooterStyled, { children: [
8134
+ /* @__PURE__ */ jsx16("div", { style: { textAlign: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx16("span", { children: `${(selected == null ? void 0 : selected.from) ? format2(selected.from, "dd/MM/yyyy") : "00/00/0000"} \u2014 ${(selected == null ? void 0 : selected.to) ? format2(selected.to, "dd/MM/yyyy") : "00/00/0000"}` }) }),
8135
+ /* @__PURE__ */ jsx16(
8136
+ Button,
8137
+ {
8138
+ style: { margin: "0 0.5rem" },
8139
+ variant: "text",
8140
+ color: "neutral",
8141
+ type: "button",
8142
+ onClick: () => {
8143
+ setSelected(initialSelectedRef.current);
8144
+ setShowCalendar(false);
8145
+ },
8146
+ size: "medium",
8147
+ fontWeight: "regular",
8148
+ children: "Cancelar"
8149
+ }
8150
+ ),
8151
+ /* @__PURE__ */ jsx16(
8152
+ Button,
8153
+ {
8154
+ style: { margin: "0 0.5rem" },
8155
+ variant: "text",
8156
+ color: "brand",
8157
+ type: "button",
8158
+ onClick: () => {
8159
+ setShowCalendar(false);
8160
+ },
8161
+ size: "medium",
8162
+ fontWeight: "medium",
8163
+ children: actionText != null ? actionText : "Aplicar"
8164
+ }
8165
+ )
8166
+ ] })
8167
+ ] })
8168
+ ] })) });
8169
+ }
8170
+
8032
8171
  // src/components/Drawer/index.tsx
8033
- import { useEffect as useEffect4 } from "react";
8172
+ import { useEffect as useEffect5 } from "react";
8034
8173
 
8035
8174
  // src/components/Drawer/styledComponents.ts
8036
8175
  var DrawerOverlayStyled = styled("div", {
@@ -8125,7 +8264,7 @@ var GoBackButtonStyled = styled("button", {
8125
8264
  });
8126
8265
 
8127
8266
  // src/components/Drawer/index.tsx
8128
- import { Fragment, jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
8267
+ import { Fragment, jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
8129
8268
  function Drawer({
8130
8269
  isOpen,
8131
8270
  onClose,
@@ -8137,7 +8276,7 @@ function Drawer({
8137
8276
  goBackAction,
8138
8277
  zIndex = 1e3
8139
8278
  }) {
8140
- useEffect4(() => {
8279
+ useEffect5(() => {
8141
8280
  if (isOpen) {
8142
8281
  const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
8143
8282
  document.body.style.overflow = "hidden";
@@ -8151,8 +8290,8 @@ function Drawer({
8151
8290
  document.body.style.paddingRight = "";
8152
8291
  };
8153
8292
  }, [isOpen]);
8154
- return /* @__PURE__ */ jsxs7(Fragment, { children: [
8155
- /* @__PURE__ */ jsx16(
8293
+ return /* @__PURE__ */ jsxs8(Fragment, { children: [
8294
+ /* @__PURE__ */ jsx17(
8156
8295
  DrawerOverlayStyled,
8157
8296
  {
8158
8297
  css: {
@@ -8162,7 +8301,7 @@ function Drawer({
8162
8301
  open: isOpen
8163
8302
  }
8164
8303
  ),
8165
- /* @__PURE__ */ jsx16(
8304
+ /* @__PURE__ */ jsx17(
8166
8305
  DrawerWrapper,
8167
8306
  {
8168
8307
  css: {
@@ -8171,7 +8310,7 @@ function Drawer({
8171
8310
  maxWidth: "100%"
8172
8311
  },
8173
8312
  open: isOpen,
8174
- children: /* @__PURE__ */ jsxs7(
8313
+ children: /* @__PURE__ */ jsxs8(
8175
8314
  DrawerContainerStyled,
8176
8315
  {
8177
8316
  open: isOpen,
@@ -8179,12 +8318,12 @@ function Drawer({
8179
8318
  backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
8180
8319
  },
8181
8320
  children: [
8182
- /* @__PURE__ */ jsxs7(DrawerHeaderDiv, { children: [
8183
- /* @__PURE__ */ jsxs7(Flex2, { gap: 8, align: "center", children: [
8184
- goBackIcon && goBackIcon && /* @__PURE__ */ jsx16(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8185
- /* @__PURE__ */ jsx16(DrawerHeaderTitle, { children: title })
8321
+ /* @__PURE__ */ jsxs8(DrawerHeaderDiv, { children: [
8322
+ /* @__PURE__ */ jsxs8(Flex2, { gap: 8, align: "center", children: [
8323
+ goBackIcon && goBackIcon && /* @__PURE__ */ jsx17(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8324
+ /* @__PURE__ */ jsx17(DrawerHeaderTitle, { children: title })
8186
8325
  ] }),
8187
- /* @__PURE__ */ jsx16(DrawerHeaderCloseButton, { onClick: onClose, children: /* @__PURE__ */ jsx16(Icon_default, { size: "xl", color: "$dark600", name: "xmark" }) })
8326
+ /* @__PURE__ */ jsx17(DrawerHeaderCloseButton, { onClick: onClose, children: /* @__PURE__ */ jsx17(Icon_default, { size: "xl", color: "$dark600", name: "xmark" }) })
8188
8327
  ] }),
8189
8328
  isOpen ? children : null
8190
8329
  ]
@@ -8196,8 +8335,8 @@ function Drawer({
8196
8335
  }
8197
8336
 
8198
8337
  // src/components/TimePicker.tsx
8199
- import { useCallback, useRef as useRef5, useState as useState3 } from "react";
8200
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
8338
+ import { useCallback, useRef as useRef6, useState as useState4 } from "react";
8339
+ import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
8201
8340
  var TimePickerStyled = styled("div", {
8202
8341
  position: "relative",
8203
8342
  width: "fit-content",
@@ -8319,12 +8458,12 @@ function TimePicker({
8319
8458
  hasError,
8320
8459
  expand = false
8321
8460
  }) {
8322
- const [hours, setHours] = useState3("00");
8323
- const [minutes, setMinutes] = useState3("00");
8324
- const [rawHours, setRawHours] = useState3("00");
8325
- const [rawMinutes, setRawMinutes] = useState3("00");
8326
- const [isOpen, setIsOpen] = useState3(false);
8327
- const dropdownRef = useRef5(null);
8461
+ const [hours, setHours] = useState4("00");
8462
+ const [minutes, setMinutes] = useState4("00");
8463
+ const [rawHours, setRawHours] = useState4("00");
8464
+ const [rawMinutes, setRawMinutes] = useState4("00");
8465
+ const [isOpen, setIsOpen] = useState4(false);
8466
+ const dropdownRef = useRef6(null);
8328
8467
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
8329
8468
  const handleIncrement = useCallback(
8330
8469
  (type) => {
@@ -8354,14 +8493,14 @@ function TimePicker({
8354
8493
  },
8355
8494
  [hours, minutes]
8356
8495
  );
8357
- return /* @__PURE__ */ jsxs8(TimePickerStyled, { ref: dropdownRef, expand, children: [
8358
- /* @__PURE__ */ jsx17(
8496
+ return /* @__PURE__ */ jsxs9(TimePickerStyled, { ref: dropdownRef, expand, children: [
8497
+ /* @__PURE__ */ jsx18(
8359
8498
  TimePickerButtonStyled,
8360
8499
  {
8361
8500
  type: "button",
8362
8501
  onClick: () => setIsOpen((prev) => !prev),
8363
8502
  expand,
8364
- children: /* @__PURE__ */ jsx17(
8503
+ children: /* @__PURE__ */ jsx18(
8365
8504
  TextField,
8366
8505
  {
8367
8506
  value: selected,
@@ -8371,18 +8510,18 @@ function TimePicker({
8371
8510
  typography: "labelSmall",
8372
8511
  fontWeight: "regular",
8373
8512
  color: hasError ? "error" : "default",
8374
- children: /* @__PURE__ */ jsx17(TextFieldSlot, { children: /* @__PURE__ */ jsx17(Icon_default, { name: "clock", size: "xl" }) })
8513
+ children: /* @__PURE__ */ jsx18(TextFieldSlot, { children: /* @__PURE__ */ jsx18(Icon_default, { name: "clock", size: "xl" }) })
8375
8514
  }
8376
8515
  )
8377
8516
  }
8378
8517
  ),
8379
- isOpen && /* @__PURE__ */ jsxs8(
8518
+ isOpen && /* @__PURE__ */ jsxs9(
8380
8519
  TimePickerDropdownStyled,
8381
8520
  {
8382
8521
  style: position === "top" ? { bottom: "110%", left: "0" } : position === "top-right" ? { bottom: "110%", right: "0" } : position === "bottom-right" ? { top: "110%", right: "0" } : { top: "110%", left: "0" },
8383
8522
  children: [
8384
- /* @__PURE__ */ jsxs8(TimerPickerContentStyled, { children: [
8385
- ["hours", "minutes"].map((unit) => /* @__PURE__ */ jsxs8(
8523
+ /* @__PURE__ */ jsxs9(TimerPickerContentStyled, { children: [
8524
+ ["hours", "minutes"].map((unit) => /* @__PURE__ */ jsxs9(
8386
8525
  Box,
8387
8526
  {
8388
8527
  style: {
@@ -8391,13 +8530,13 @@ function TimePicker({
8391
8530
  flexDirection: "column"
8392
8531
  },
8393
8532
  children: [
8394
- /* @__PURE__ */ jsx17(
8533
+ /* @__PURE__ */ jsx18(
8395
8534
  TimePickerIconButton,
8396
8535
  {
8397
8536
  type: "button",
8398
8537
  variant: "text",
8399
8538
  onClick: () => handleIncrement(unit),
8400
- children: /* @__PURE__ */ jsxs8(
8539
+ children: /* @__PURE__ */ jsxs9(
8401
8540
  "svg",
8402
8541
  {
8403
8542
  xmlns: "http://www.w3.org/2000/svg",
@@ -8406,14 +8545,14 @@ function TimePicker({
8406
8545
  viewBox: "0 0 32 32",
8407
8546
  fill: "none",
8408
8547
  children: [
8409
- /* @__PURE__ */ jsx17(
8548
+ /* @__PURE__ */ jsx18(
8410
8549
  "path",
8411
8550
  {
8412
8551
  d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
8413
8552
  fill: "white"
8414
8553
  }
8415
8554
  ),
8416
- /* @__PURE__ */ jsx17(
8555
+ /* @__PURE__ */ jsx18(
8417
8556
  "path",
8418
8557
  {
8419
8558
  d: "M16.7063 12.2937C16.3157 11.9031 15.6813 11.9031 15.2907 12.2937L10.2907 17.2937C9.9001 17.6843 9.9001 18.3187 10.2907 18.7093C10.6813 19.1 11.3157 19.1 11.7063 18.7093L16.0001 14.4156L20.2938 18.7062C20.6845 19.0968 21.3188 19.0968 21.7095 18.7062C22.1001 18.3156 22.1001 17.6812 21.7095 17.2906L16.7095 12.2906L16.7063 12.2937Z",
@@ -8425,7 +8564,7 @@ function TimePicker({
8425
8564
  )
8426
8565
  }
8427
8566
  ),
8428
- /* @__PURE__ */ jsx17(
8567
+ /* @__PURE__ */ jsx18(
8429
8568
  InputStyled,
8430
8569
  {
8431
8570
  inputMode: "numeric",
@@ -8463,13 +8602,13 @@ function TimePicker({
8463
8602
  }
8464
8603
  }
8465
8604
  ),
8466
- /* @__PURE__ */ jsx17(
8605
+ /* @__PURE__ */ jsx18(
8467
8606
  TimePickerIconButton,
8468
8607
  {
8469
8608
  type: "button",
8470
8609
  variant: "text",
8471
8610
  onClick: () => handleDecrement(unit),
8472
- children: /* @__PURE__ */ jsxs8(
8611
+ children: /* @__PURE__ */ jsxs9(
8473
8612
  "svg",
8474
8613
  {
8475
8614
  xmlns: "http://www.w3.org/2000/svg",
@@ -8478,14 +8617,14 @@ function TimePicker({
8478
8617
  viewBox: "0 0 32 32",
8479
8618
  fill: "none",
8480
8619
  children: [
8481
- /* @__PURE__ */ jsx17(
8620
+ /* @__PURE__ */ jsx18(
8482
8621
  "path",
8483
8622
  {
8484
8623
  d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
8485
8624
  fill: "white"
8486
8625
  }
8487
8626
  ),
8488
- /* @__PURE__ */ jsx17(
8627
+ /* @__PURE__ */ jsx18(
8489
8628
  "path",
8490
8629
  {
8491
8630
  d: "M15.2937 19.7063C15.6843 20.0969 16.3187 20.0969 16.7093 19.7063L21.7093 14.7063C22.0999 14.3157 22.0999 13.6813 21.7093 13.2907C21.3187 12.9 20.6843 12.9 20.2937 13.2907L15.9999 17.5844L11.7062 13.2938C11.3155 12.9032 10.6812 12.9032 10.2905 13.2938C9.8999 13.6844 9.8999 14.3188 10.2905 14.7094L15.2905 19.7094L15.2937 19.7063Z",
@@ -8501,9 +8640,9 @@ function TimePicker({
8501
8640
  },
8502
8641
  unit
8503
8642
  )),
8504
- /* @__PURE__ */ jsx17(Text, { children: ":" })
8643
+ /* @__PURE__ */ jsx18(Text, { children: ":" })
8505
8644
  ] }),
8506
- /* @__PURE__ */ jsx17(TimePickerFooterStyled, { children: /* @__PURE__ */ jsx17(
8645
+ /* @__PURE__ */ jsx18(TimePickerFooterStyled, { children: /* @__PURE__ */ jsx18(
8507
8646
  Button,
8508
8647
  {
8509
8648
  type: "button",
@@ -8526,7 +8665,7 @@ function TimePicker({
8526
8665
 
8527
8666
  // src/components/Alert.tsx
8528
8667
  import { Theme as Theme2, AlertDialog } from "@radix-ui/themes";
8529
- import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
8668
+ import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
8530
8669
  var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
8531
8670
  fontFamily: "$default",
8532
8671
  lineHeight: "$base",
@@ -8640,19 +8779,19 @@ function Alert(_a) {
8640
8779
  "completAlert",
8641
8780
  "simpleAlert"
8642
8781
  ]);
8643
- return /* @__PURE__ */ jsxs9(Fragment2, { children: [
8644
- simpleAlert && /* @__PURE__ */ jsx18(Theme2, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8645
- /* @__PURE__ */ jsx18(AlertDialog.Trigger, { children: trigger }),
8646
- /* @__PURE__ */ jsx18(Fragment2, { children: /* @__PURE__ */ jsxs9(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8647
- /* @__PURE__ */ jsx18(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8648
- simpleAlert.cancel && /* @__PURE__ */ jsx18(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx18(Button, { variant: "text", children: /* @__PURE__ */ jsx18(Icon_default, { name: "close" }) }) })
8782
+ return /* @__PURE__ */ jsxs10(Fragment2, { children: [
8783
+ simpleAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs10(AlertDialog.Root, { children: [
8784
+ /* @__PURE__ */ jsx19(AlertDialog.Trigger, { children: trigger }),
8785
+ /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs10(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8786
+ /* @__PURE__ */ jsx19(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8787
+ simpleAlert.cancel && /* @__PURE__ */ jsx19(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx19(Button, { variant: "text", children: /* @__PURE__ */ jsx19(Icon_default, { name: "close" }) }) })
8649
8788
  ] })) })
8650
8789
  ] }) }),
8651
- completAlert && /* @__PURE__ */ jsx18(Theme2, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8652
- /* @__PURE__ */ jsx18(AlertDialog.Trigger, { children: trigger }),
8653
- /* @__PURE__ */ jsxs9(AlertDialogCompleteStyled, { children: [
8654
- /* @__PURE__ */ jsxs9(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8655
- color === "success" && /* @__PURE__ */ jsxs9(
8790
+ completAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs10(AlertDialog.Root, { children: [
8791
+ /* @__PURE__ */ jsx19(AlertDialog.Trigger, { children: trigger }),
8792
+ /* @__PURE__ */ jsxs10(AlertDialogCompleteStyled, { children: [
8793
+ /* @__PURE__ */ jsxs10(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8794
+ color === "success" && /* @__PURE__ */ jsxs10(
8656
8795
  "svg",
8657
8796
  {
8658
8797
  width: "56",
@@ -8661,18 +8800,18 @@ function Alert(_a) {
8661
8800
  fill: "none",
8662
8801
  xmlns: "http://www.w3.org/2000/svg",
8663
8802
  children: [
8664
- /* @__PURE__ */ jsx18("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ jsx18(
8803
+ /* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ jsx19(
8665
8804
  "path",
8666
8805
  {
8667
8806
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM40.3594 22.8594L26.3594 36.8594C25.3312 37.8875 23.6688 37.8875 22.6516 36.8594L15.6516 29.8594C14.6234 28.8312 14.6234 27.1688 15.6516 26.1516C16.6797 25.1344 18.3422 25.1234 19.3594 26.1516L24.5 31.2922L36.6406 19.1406C37.6688 18.1125 39.3312 18.1125 40.3484 19.1406C41.3656 20.1688 41.3766 21.8312 40.3484 22.8484L40.3594 22.8594Z",
8668
8807
  fill: "#1E8535"
8669
8808
  }
8670
8809
  ) }),
8671
- /* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ jsx18("rect", { width: "56", height: "56", fill: "white" }) }) })
8810
+ /* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ jsx19("rect", { width: "56", height: "56", fill: "white" }) }) })
8672
8811
  ]
8673
8812
  }
8674
8813
  ),
8675
- color === "error" && /* @__PURE__ */ jsxs9(
8814
+ color === "error" && /* @__PURE__ */ jsxs10(
8676
8815
  "svg",
8677
8816
  {
8678
8817
  width: "56",
@@ -8681,18 +8820,18 @@ function Alert(_a) {
8681
8820
  fill: "none",
8682
8821
  xmlns: "http://www.w3.org/2000/svg",
8683
8822
  children: [
8684
- /* @__PURE__ */ jsx18("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ jsx18(
8823
+ /* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ jsx19(
8685
8824
  "path",
8686
8825
  {
8687
8826
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM19.1406 19.1406C20.1687 18.1125 21.8312 18.1125 22.8484 19.1406L27.9891 24.2812L33.1297 19.1406C34.1578 18.1125 35.8203 18.1125 36.8375 19.1406C37.8547 20.1687 37.8656 21.8312 36.8375 22.8484L31.6969 27.9891L36.8375 33.1297C37.8656 34.1578 37.8656 35.8203 36.8375 36.8375C35.8094 37.8547 34.1469 37.8656 33.1297 36.8375L27.9891 31.6969L22.8484 36.8375C21.8203 37.8656 20.1578 37.8656 19.1406 36.8375C18.1234 35.8094 18.1125 34.1469 19.1406 33.1297L24.2812 27.9891L19.1406 22.8484C18.1125 21.8203 18.1125 20.1578 19.1406 19.1406Z",
8688
8827
  fill: "#AD1F2B"
8689
8828
  }
8690
8829
  ) }),
8691
- /* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ jsx18("rect", { width: "56", height: "56", fill: "white" }) }) })
8830
+ /* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ jsx19("rect", { width: "56", height: "56", fill: "white" }) }) })
8692
8831
  ]
8693
8832
  }
8694
8833
  ),
8695
- color === "warning" && /* @__PURE__ */ jsxs9(
8834
+ color === "warning" && /* @__PURE__ */ jsxs10(
8696
8835
  "svg",
8697
8836
  {
8698
8837
  width: "56",
@@ -8701,18 +8840,18 @@ function Alert(_a) {
8701
8840
  fill: "none",
8702
8841
  xmlns: "http://www.w3.org/2000/svg",
8703
8842
  children: [
8704
- /* @__PURE__ */ jsx18("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ jsx18(
8843
+ /* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ jsx19(
8705
8844
  "path",
8706
8845
  {
8707
8846
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM28 14C29.4547 14 30.625 15.1703 30.625 16.625V28.875C30.625 30.3297 29.4547 31.5 28 31.5C26.5453 31.5 25.375 30.3297 25.375 28.875V16.625C25.375 15.1703 26.5453 14 28 14ZM24.5 38.5C24.5 37.5717 24.8687 36.6815 25.5251 36.0251C26.1815 35.3688 27.0717 35 28 35C28.9283 35 29.8185 35.3688 30.4749 36.0251C31.1313 36.6815 31.5 37.5717 31.5 38.5C31.5 39.4283 31.1313 40.3185 30.4749 40.9749C29.8185 41.6312 28.9283 42 28 42C27.0717 42 26.1815 41.6312 25.5251 40.9749C24.8687 40.3185 24.5 39.4283 24.5 38.5Z",
8708
8847
  fill: "#CC9A06"
8709
8848
  }
8710
8849
  ) }),
8711
- /* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ jsx18("rect", { width: "56", height: "56", fill: "white" }) }) })
8850
+ /* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ jsx19("rect", { width: "56", height: "56", fill: "white" }) }) })
8712
8851
  ]
8713
8852
  }
8714
8853
  ),
8715
- color === "info" && /* @__PURE__ */ jsxs9(
8854
+ color === "info" && /* @__PURE__ */ jsxs10(
8716
8855
  "svg",
8717
8856
  {
8718
8857
  width: "40",
@@ -8721,35 +8860,35 @@ function Alert(_a) {
8721
8860
  fill: "none",
8722
8861
  xmlns: "http://www.w3.org/2000/svg",
8723
8862
  children: [
8724
- /* @__PURE__ */ jsx18("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ jsx18(
8863
+ /* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ jsx19(
8725
8864
  "path",
8726
8865
  {
8727
8866
  d: "M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM20 10C21.0391 10 21.875 10.8359 21.875 11.875V20.625C21.875 21.6641 21.0391 22.5 20 22.5C18.9609 22.5 18.125 21.6641 18.125 20.625V11.875C18.125 10.8359 18.9609 10 20 10ZM17.5 27.5C17.5 26.837 17.7634 26.2011 18.2322 25.7322C18.7011 25.2634 19.337 25 20 25C20.663 25 21.2989 25.2634 21.7678 25.7322C22.2366 26.2011 22.5 26.837 22.5 27.5C22.5 28.163 22.2366 28.7989 21.7678 29.2678C21.2989 29.7366 20.663 30 20 30C19.337 30 18.7011 29.7366 18.2322 29.2678C17.7634 28.7989 17.5 28.163 17.5 27.5Z",
8728
8867
  fill: "#9FB6C7"
8729
8868
  }
8730
8869
  ) }),
8731
- /* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ jsx18("rect", { width: "40", height: "40", fill: "white" }) }) })
8870
+ /* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ jsx19("rect", { width: "40", height: "40", fill: "white" }) }) })
8732
8871
  ]
8733
8872
  }
8734
8873
  ),
8735
- completAlert.title && /* @__PURE__ */ jsx18(AlertDialogTitleStyled, { children: completAlert.title }),
8736
- /* @__PURE__ */ jsxs9(AlertDialogDescriptionStyled, { children: [
8737
- completAlert.subtitle && /* @__PURE__ */ jsx18(
8874
+ completAlert.title && /* @__PURE__ */ jsx19(AlertDialogTitleStyled, { children: completAlert.title }),
8875
+ /* @__PURE__ */ jsxs10(AlertDialogDescriptionStyled, { children: [
8876
+ completAlert.subtitle && /* @__PURE__ */ jsx19(
8738
8877
  Text,
8739
8878
  {
8740
8879
  css: {
8741
8880
  fontSize: "$16"
8742
8881
  },
8743
8882
  asChild: true,
8744
- children: /* @__PURE__ */ jsx18("h2", { children: completAlert.subtitle })
8883
+ children: /* @__PURE__ */ jsx19("h2", { children: completAlert.subtitle })
8745
8884
  }
8746
8885
  ),
8747
8886
  completAlert.description
8748
8887
  ] })
8749
8888
  ] }),
8750
- completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx18(AlertDialoghrStyled, {}) : null,
8751
- /* @__PURE__ */ jsx18(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs9(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8752
- completAlert.onAction && /* @__PURE__ */ jsx18(AlertDialog.Action, { children: /* @__PURE__ */ jsx18(
8889
+ completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx19(AlertDialoghrStyled, {}) : null,
8890
+ /* @__PURE__ */ jsx19(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs10(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8891
+ completAlert.onAction && /* @__PURE__ */ jsx19(AlertDialog.Action, { children: /* @__PURE__ */ jsx19(
8753
8892
  Button,
8754
8893
  {
8755
8894
  variant: "contained",
@@ -8757,7 +8896,7 @@ function Alert(_a) {
8757
8896
  children: completAlert.actionText || "Salvar"
8758
8897
  }
8759
8898
  ) }),
8760
- completAlert.cancel && /* @__PURE__ */ jsx18(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx18(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
8899
+ completAlert.cancel && /* @__PURE__ */ jsx19(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx19(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
8761
8900
  ] }) })
8762
8901
  ] })
8763
8902
  ] }) })
@@ -8766,7 +8905,7 @@ function Alert(_a) {
8766
8905
 
8767
8906
  // src/components/Switch.tsx
8768
8907
  import { Switch as RadixSwitch } from "@radix-ui/themes";
8769
- import { jsx as jsx19 } from "react/jsx-runtime";
8908
+ import { jsx as jsx20 } from "react/jsx-runtime";
8770
8909
  var SwitchStyled = styled(RadixSwitch, {
8771
8910
  all: "unset",
8772
8911
  borderRadius: "$full",
@@ -8860,13 +8999,13 @@ var SwitchStyled = styled(RadixSwitch, {
8860
8999
  }
8861
9000
  });
8862
9001
  function Switch(props) {
8863
- return /* @__PURE__ */ jsx19(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
9002
+ return /* @__PURE__ */ jsx20(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
8864
9003
  }
8865
9004
 
8866
9005
  // src/components/Step.tsx
8867
- import React7 from "react";
9006
+ import React8 from "react";
8868
9007
  import { Box as Box2, Tabs as StepRadix } from "@radix-ui/themes";
8869
- import { jsx as jsx20 } from "react/jsx-runtime";
9008
+ import { jsx as jsx21 } from "react/jsx-runtime";
8870
9009
  var StepStyled = styled("div", {
8871
9010
  fontFamily: "$default",
8872
9011
  color: "$gray100",
@@ -8939,7 +9078,7 @@ var StepListStyled = styled(StepRadix.List, {
8939
9078
  });
8940
9079
  function Step(_a) {
8941
9080
  var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
8942
- return /* @__PURE__ */ jsx20(StepRadix.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ jsx20(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
9081
+ return /* @__PURE__ */ jsx21(StepRadix.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ jsx21(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
8943
9082
  }
8944
9083
  function StepTrigger(_a) {
8945
9084
  var _b = _a, {
@@ -8952,7 +9091,7 @@ function StepTrigger(_a) {
8952
9091
  "currentStep"
8953
9092
  ]);
8954
9093
  const isActiveOrPrevious = currentStep !== void 0 && value <= currentStep;
8955
- return /* @__PURE__ */ jsx20(
9094
+ return /* @__PURE__ */ jsx21(
8956
9095
  StepTriggerStyled,
8957
9096
  __spreadProps(__spreadValues({
8958
9097
  "data-filled": isActiveOrPrevious,
@@ -8970,7 +9109,7 @@ function StepContent(_a) {
8970
9109
  "value",
8971
9110
  "children"
8972
9111
  ]);
8973
- return /* @__PURE__ */ jsx20(StepRadix.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
9112
+ return /* @__PURE__ */ jsx21(StepRadix.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
8974
9113
  }
8975
9114
  function StepList(_a) {
8976
9115
  var _b = _a, {
@@ -8980,9 +9119,9 @@ function StepList(_a) {
8980
9119
  "children",
8981
9120
  "currentStep"
8982
9121
  ]);
8983
- return /* @__PURE__ */ jsx20(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React7.Children.map(children, (child) => {
8984
- if (React7.isValidElement(child) && child.type === StepTrigger) {
8985
- return React7.cloneElement(child, { currentStep });
9122
+ return /* @__PURE__ */ jsx21(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React8.Children.map(children, (child) => {
9123
+ if (React8.isValidElement(child) && child.type === StepTrigger) {
9124
+ return React8.cloneElement(child, { currentStep });
8986
9125
  }
8987
9126
  return child;
8988
9127
  }) }));
@@ -8993,12 +9132,12 @@ function StepWrapper(_a) {
8993
9132
  } = _b, props = __objRest(_b, [
8994
9133
  "children"
8995
9134
  ]);
8996
- return /* @__PURE__ */ jsx20(Box2, __spreadProps(__spreadValues({}, props), { children }));
9135
+ return /* @__PURE__ */ jsx21(Box2, __spreadProps(__spreadValues({}, props), { children }));
8997
9136
  }
8998
9137
 
8999
9138
  // src/components/Card.tsx
9000
9139
  import { Card as CardRadix } from "@radix-ui/themes";
9001
- import { jsx as jsx21 } from "react/jsx-runtime";
9140
+ import { jsx as jsx22 } from "react/jsx-runtime";
9002
9141
  var CardStyled = styled(CardRadix, {
9003
9142
  borderRadius: "$2xl",
9004
9143
  border: "1px solid $dark100",
@@ -9048,7 +9187,7 @@ function Card(_a) {
9048
9187
  "padding",
9049
9188
  "radius"
9050
9189
  ]);
9051
- return /* @__PURE__ */ jsx21(
9190
+ return /* @__PURE__ */ jsx22(
9052
9191
  CardStyled,
9053
9192
  __spreadProps(__spreadValues({}, props), {
9054
9193
  css: __spreadValues({ padding, borderRadius: radius }, props.css),
@@ -9059,8 +9198,8 @@ function Card(_a) {
9059
9198
 
9060
9199
  // src/components/TextareaField.tsx
9061
9200
  import { TextArea as TextAreaRadix } from "@radix-ui/themes";
9062
- import React8, { useRef as useRef6, useState as useState4, useEffect as useEffect5 } from "react";
9063
- import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
9201
+ import React9, { useRef as useRef7, useState as useState5, useEffect as useEffect6 } from "react";
9202
+ import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
9064
9203
  var TextareaFieldStyle = styled(TextAreaRadix, {
9065
9204
  display: "flex",
9066
9205
  flex: 1,
@@ -9124,11 +9263,11 @@ var TextareaLimitIndicator = styled("div", {
9124
9263
  padding: "$4"
9125
9264
  }
9126
9265
  });
9127
- var TextareaField = React8.forwardRef((_a, forwardedRef) => {
9128
- var _b = _a, { maxLength, color } = _b, props = __objRest(_b, ["maxLength", "color"]);
9129
- const inputRef = useRef6(null);
9130
- const [remaining, setRemaining] = useState4(maxLength);
9131
- useEffect5(() => {
9266
+ var TextareaField = React9.forwardRef((_a, forwardedRef) => {
9267
+ var _b = _a, { maxLength, color, simpleLayout = false } = _b, props = __objRest(_b, ["maxLength", "color", "simpleLayout"]);
9268
+ const inputRef = useRef7(null);
9269
+ const [remaining, setRemaining] = useState5(maxLength);
9270
+ useEffect6(() => {
9132
9271
  var _a2;
9133
9272
  if (maxLength && inputRef.current) {
9134
9273
  setRemaining(maxLength - ((_a2 = inputRef.current.value.length) != null ? _a2 : 0));
@@ -9141,29 +9280,32 @@ var TextareaField = React8.forwardRef((_a, forwardedRef) => {
9141
9280
  }
9142
9281
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9143
9282
  };
9144
- return /* @__PURE__ */ jsxs10(TextareaContainer, { color, children: [
9145
- /* @__PURE__ */ jsx22(
9146
- TextareaFieldStyle,
9147
- __spreadValues({
9148
- rows: 4,
9149
- ref: (r) => {
9150
- if (!r) return;
9151
- inputRef.current = r;
9152
- if (forwardedRef) {
9153
- if (typeof forwardedRef === "function") forwardedRef(r);
9154
- else forwardedRef.current = r;
9155
- }
9156
- },
9157
- onInput: handleInput,
9158
- maxLength
9159
- }, props)
9160
- ),
9161
- maxLength && /* @__PURE__ */ jsx22(TextareaLimitIndicator, { children: /* @__PURE__ */ jsx22(Text, { typography: "badgeMedium", children: remaining }) })
9283
+ return /* @__PURE__ */ jsxs11(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9284
+ maxLength && simpleLayout && /* @__PURE__ */ jsx23(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9285
+ /* @__PURE__ */ jsxs11(TextareaContainer, { color, children: [
9286
+ /* @__PURE__ */ jsx23(
9287
+ TextareaFieldStyle,
9288
+ __spreadValues({
9289
+ rows: 4,
9290
+ ref: (r) => {
9291
+ if (!r) return;
9292
+ inputRef.current = r;
9293
+ if (forwardedRef) {
9294
+ if (typeof forwardedRef === "function") forwardedRef(r);
9295
+ else forwardedRef.current = r;
9296
+ }
9297
+ },
9298
+ onInput: handleInput,
9299
+ maxLength
9300
+ }, props)
9301
+ ),
9302
+ maxLength && !simpleLayout && /* @__PURE__ */ jsx23(TextareaLimitIndicator, { children: /* @__PURE__ */ jsx23(Text, { typography: "badgeMedium", children: remaining }) })
9303
+ ] })
9162
9304
  ] });
9163
9305
  });
9164
9306
 
9165
9307
  // src/components/Toast/components/ToastItem.tsx
9166
- import { useState as useState5 } from "react";
9308
+ import { useState as useState6 } from "react";
9167
9309
 
9168
9310
  // src/components/Toast/styles/index.ts
9169
9311
  import { keyframes as keyframes2 } from "@stitches/react";
@@ -9289,19 +9431,19 @@ var ToastClose = styled(ToastPrimitive.Close, {
9289
9431
  });
9290
9432
 
9291
9433
  // src/components/Toast/components/ToastItem.tsx
9292
- import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
9434
+ import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
9293
9435
  function ToastItem({
9294
9436
  toast,
9295
9437
  onRemove
9296
9438
  }) {
9297
- const [open, setOpen] = useState5(true);
9439
+ const [open, setOpen] = useState6(true);
9298
9440
  const handleOpenChange = (open2) => {
9299
9441
  setOpen(open2);
9300
9442
  if (!open2) {
9301
9443
  onRemove(toast.id);
9302
9444
  }
9303
9445
  };
9304
- return /* @__PURE__ */ jsxs11(
9446
+ return /* @__PURE__ */ jsxs12(
9305
9447
  ToastRoot,
9306
9448
  {
9307
9449
  type: toast.type,
@@ -9309,18 +9451,18 @@ function ToastItem({
9309
9451
  open,
9310
9452
  onOpenChange: handleOpenChange,
9311
9453
  children: [
9312
- (toast == null ? void 0 : toast.icon) && /* @__PURE__ */ jsx23(Icon_default, { name: toast.icon, size: "xl" }),
9313
- /* @__PURE__ */ jsx23("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsx23(Text, { typography: "bodyS", fontWeight: "medium", children: toast.message }) }),
9314
- /* @__PURE__ */ jsx23(ToastClose, { "aria-label": "Close", children: /* @__PURE__ */ jsx23(Icon_default, { name: "xmark", size: "md" }) })
9454
+ (toast == null ? void 0 : toast.icon) && /* @__PURE__ */ jsx24(Icon_default, { name: toast.icon, size: "xl" }),
9455
+ /* @__PURE__ */ jsx24("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsx24(Text, { typography: "bodyS", fontWeight: "medium", children: toast.message }) }),
9456
+ /* @__PURE__ */ jsx24(ToastClose, { "aria-label": "Close", children: /* @__PURE__ */ jsx24(Icon_default, { name: "xmark", size: "md" }) })
9315
9457
  ]
9316
9458
  }
9317
9459
  );
9318
9460
  }
9319
9461
 
9320
9462
  // src/components/Toast/components/ToastProvider.tsx
9321
- import { createContext, useState as useState6 } from "react";
9463
+ import { createContext, useState as useState7 } from "react";
9322
9464
  import * as ToastPrimitive2 from "@radix-ui/react-toast";
9323
- import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
9465
+ import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
9324
9466
  var ToastContext = createContext(null);
9325
9467
  function ToastProvider({
9326
9468
  children,
@@ -9328,7 +9470,7 @@ function ToastProvider({
9328
9470
  maxToasts = 5,
9329
9471
  swipeDirection = "right"
9330
9472
  }) {
9331
- const [toasts, setToasts] = useState6([]);
9473
+ const [toasts, setToasts] = useState7([]);
9332
9474
  const addToast = (toastData) => {
9333
9475
  const id = Math.random().toString(36).substr(2, 9);
9334
9476
  const newToast = __spreadProps(__spreadValues({
@@ -9356,10 +9498,10 @@ function ToastProvider({
9356
9498
  removeToast,
9357
9499
  removeAllToasts
9358
9500
  };
9359
- return /* @__PURE__ */ jsx24(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs12(ToastPrimitive2.Provider, { swipeDirection, children: [
9501
+ return /* @__PURE__ */ jsx25(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs13(ToastPrimitive2.Provider, { swipeDirection, children: [
9360
9502
  children,
9361
- toasts.map((toast) => /* @__PURE__ */ jsx24(ToastItem, { toast, onRemove: removeToast }, toast.id)),
9362
- /* @__PURE__ */ jsx24(ToastViewport, {})
9503
+ toasts.map((toast) => /* @__PURE__ */ jsx25(ToastItem, { toast, onRemove: removeToast }, toast.id)),
9504
+ /* @__PURE__ */ jsx25(ToastViewport, {})
9363
9505
  ] }) });
9364
9506
  }
9365
9507
 
@@ -9375,7 +9517,7 @@ var useToast = () => {
9375
9517
 
9376
9518
  // src/components/Tooltip/index.tsx
9377
9519
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
9378
- import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
9520
+ import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9379
9521
  var TooltipProvider = TooltipPrimitive.Provider;
9380
9522
  var TooltipRoot = TooltipPrimitive.Root;
9381
9523
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -9414,17 +9556,17 @@ function Tooltip({
9414
9556
  delayDuration = 200,
9415
9557
  side = "top"
9416
9558
  }) {
9417
- return /* @__PURE__ */ jsx25(TooltipProvider, { children: /* @__PURE__ */ jsxs13(TooltipRoot, { delayDuration, children: [
9418
- /* @__PURE__ */ jsx25(TooltipTrigger, { asChild: true, children }),
9419
- /* @__PURE__ */ jsxs13(TooltipContent, { side, sideOffset: 5, children: [
9420
- typeof content === "string" ? /* @__PURE__ */ jsx25(Text, { typography: "tooltip", children: content }) : content,
9421
- /* @__PURE__ */ jsx25(TooltipArrow, {})
9559
+ return /* @__PURE__ */ jsx26(TooltipProvider, { children: /* @__PURE__ */ jsxs14(TooltipRoot, { delayDuration, children: [
9560
+ /* @__PURE__ */ jsx26(TooltipTrigger, { asChild: true, children }),
9561
+ /* @__PURE__ */ jsxs14(TooltipContent, { side, sideOffset: 5, children: [
9562
+ typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", children: content }) : content,
9563
+ /* @__PURE__ */ jsx26(TooltipArrow, {})
9422
9564
  ] })
9423
9565
  ] }) });
9424
9566
  }
9425
9567
 
9426
9568
  // src/components/MultiSelect/index.tsx
9427
- import React9, { useCallback as useCallback2, useRef as useRef7, useState as useState7 } from "react";
9569
+ import React10, { useCallback as useCallback2, useRef as useRef8, useState as useState8 } from "react";
9428
9570
  import { DropdownMenu as DropdownMenu4, Theme as Theme3 } from "@radix-ui/themes";
9429
9571
  import { FontAwesomeIcon as FontAwesomeIcon3 } from "@fortawesome/react-fontawesome";
9430
9572
  import {
@@ -9581,8 +9723,8 @@ var ButtonSelectAllStyled = styled("button", {
9581
9723
  });
9582
9724
 
9583
9725
  // src/components/MultiSelect/index.tsx
9584
- import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9585
- var MultiSelect = React9.forwardRef(
9726
+ import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
9727
+ var MultiSelect = React10.forwardRef(
9586
9728
  ({
9587
9729
  placeholder,
9588
9730
  value: selectedValues = [],
@@ -9600,9 +9742,9 @@ var MultiSelect = React9.forwardRef(
9600
9742
  selectedAllText,
9601
9743
  selectedScroll = false
9602
9744
  }, fowardedRef) => {
9603
- const [isOpen, setIsOpen] = useState7(false);
9604
- const triggerRef = useRef7(null);
9605
- const [allOptionsSelected, setAllOptionsSelected] = useState7(false);
9745
+ const [isOpen, setIsOpen] = useState8(false);
9746
+ const triggerRef = useRef8(null);
9747
+ const [allOptionsSelected, setAllOptionsSelected] = useState8(false);
9606
9748
  const labelByValue = useMemo2(() => {
9607
9749
  return options.reduce((prev, curr) => {
9608
9750
  return __spreadProps(__spreadValues({}, prev), {
@@ -9652,9 +9794,9 @@ var MultiSelect = React9.forwardRef(
9652
9794
  },
9653
9795
  [disabled]
9654
9796
  );
9655
- return /* @__PURE__ */ jsxs14(Theme3, { style: width !== "100%" ? { width } : void 0, children: [
9656
- /* @__PURE__ */ jsxs14(DropdownMenu4.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9657
- /* @__PURE__ */ jsx26(DropdownMenu4.Trigger, { children: /* @__PURE__ */ jsxs14(
9797
+ return /* @__PURE__ */ jsxs15(Theme3, { style: width !== "100%" ? { width } : void 0, children: [
9798
+ /* @__PURE__ */ jsxs15(DropdownMenu4.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9799
+ /* @__PURE__ */ jsx27(DropdownMenu4.Trigger, { children: /* @__PURE__ */ jsxs15(
9658
9800
  StyledTrigger,
9659
9801
  {
9660
9802
  ref: (r) => {
@@ -9670,7 +9812,7 @@ var MultiSelect = React9.forwardRef(
9670
9812
  style: width !== "100%" ? { width } : void 0,
9671
9813
  onClick: handleToggle,
9672
9814
  children: [
9673
- /* @__PURE__ */ jsx26(
9815
+ /* @__PURE__ */ jsx27(
9674
9816
  StyledText,
9675
9817
  {
9676
9818
  typography: "labelMedium",
@@ -9678,7 +9820,7 @@ var MultiSelect = React9.forwardRef(
9678
9820
  children: text
9679
9821
  }
9680
9822
  ),
9681
- /* @__PURE__ */ jsx26(
9823
+ /* @__PURE__ */ jsx27(
9682
9824
  FontAwesomeIcon3,
9683
9825
  {
9684
9826
  icon: isOpen ? faChevronUp2 : faChevronDown2,
@@ -9689,14 +9831,14 @@ var MultiSelect = React9.forwardRef(
9689
9831
  ]
9690
9832
  }
9691
9833
  ) }),
9692
- /* @__PURE__ */ jsx26(
9834
+ /* @__PURE__ */ jsx27(
9693
9835
  StyledContent,
9694
9836
  {
9695
9837
  css: {
9696
9838
  width: "100%",
9697
9839
  zIndex: zIndex === "auto" ? 999999 : zIndex
9698
9840
  },
9699
- children: !singleSelect ? /* @__PURE__ */ jsx26(
9841
+ children: !singleSelect ? /* @__PURE__ */ jsx27(
9700
9842
  CheckboxGroup,
9701
9843
  {
9702
9844
  value: selectedValues,
@@ -9706,7 +9848,7 @@ var MultiSelect = React9.forwardRef(
9706
9848
  setAllOptionsSelected(false);
9707
9849
  }
9708
9850
  },
9709
- children: /* @__PURE__ */ jsxs14(
9851
+ children: /* @__PURE__ */ jsxs15(
9710
9852
  StyledFlexWithMaxHeight,
9711
9853
  {
9712
9854
  direction: "column",
@@ -9714,7 +9856,7 @@ var MultiSelect = React9.forwardRef(
9714
9856
  hasMaxHeight: !!maxHeight,
9715
9857
  style: maxHeight ? { maxHeight } : void 0,
9716
9858
  children: [
9717
- selectedAllOptions && /* @__PURE__ */ jsxs14(
9859
+ selectedAllOptions && /* @__PURE__ */ jsxs15(
9718
9860
  ButtonSelectAllStyled,
9719
9861
  {
9720
9862
  css: itemStyle,
@@ -9723,30 +9865,30 @@ var MultiSelect = React9.forwardRef(
9723
9865
  },
9724
9866
  type: "button",
9725
9867
  children: [
9726
- /* @__PURE__ */ jsx26("div", { className: allOptionsSelected ? "checked" : "" }),
9727
- /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: selectedAllText ? selectedAllText : "Selecionar Todos" })
9868
+ /* @__PURE__ */ jsx27("div", { className: allOptionsSelected ? "checked" : "" }),
9869
+ /* @__PURE__ */ jsx27(Text, { typography: "labelSmall", children: selectedAllText ? selectedAllText : "Selecionar Todos" })
9728
9870
  ]
9729
9871
  }
9730
9872
  ),
9731
- options.map(({ value, label }, i) => /* @__PURE__ */ jsx26(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: label }) }, i))
9873
+ options.map(({ value, label }, i) => /* @__PURE__ */ jsx27(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ jsx27(Text, { typography: "labelSmall", children: label }) }, i))
9732
9874
  ]
9733
9875
  }
9734
9876
  )
9735
9877
  }
9736
- ) : /* @__PURE__ */ jsx26(
9878
+ ) : /* @__PURE__ */ jsx27(
9737
9879
  StyledFlexWithMaxHeight,
9738
9880
  {
9739
9881
  direction: "column",
9740
9882
  gap: 8,
9741
9883
  hasMaxHeight: !!maxHeight,
9742
9884
  style: maxHeight ? { maxHeight } : void 0,
9743
- children: options.map(({ value, label }, i) => /* @__PURE__ */ jsx26(StyledItem2, { onClick: () => handleItemClick(value), children: /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: label }) }, i))
9885
+ children: options.map(({ value, label }, i) => /* @__PURE__ */ jsx27(StyledItem2, { onClick: () => handleItemClick(value), children: /* @__PURE__ */ jsx27(Text, { typography: "labelSmall", children: label }) }, i))
9744
9886
  }
9745
9887
  )
9746
9888
  }
9747
9889
  )
9748
9890
  ] }),
9749
- selectedValues.length > 0 && showSelectedValues && /* @__PURE__ */ jsx26(
9891
+ selectedValues.length > 0 && showSelectedValues && /* @__PURE__ */ jsx27(
9750
9892
  StyledFlexSelectedItems,
9751
9893
  {
9752
9894
  direction: selectedOrientation,
@@ -9754,14 +9896,14 @@ var MultiSelect = React9.forwardRef(
9754
9896
  align: selectedOrientation === "column" ? "start" : "center",
9755
9897
  justify: "start",
9756
9898
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9757
- children: selectedValues.map((value) => /* @__PURE__ */ jsxs14(
9899
+ children: selectedValues.map((value) => /* @__PURE__ */ jsxs15(
9758
9900
  Flex2,
9759
9901
  {
9760
9902
  gap: 4,
9761
9903
  align: "center",
9762
9904
  css: { flexWrap: "wrap" },
9763
9905
  children: [
9764
- /* @__PURE__ */ jsx26(
9906
+ /* @__PURE__ */ jsx27(
9765
9907
  CloseBtnStyled,
9766
9908
  {
9767
9909
  onClick: (e) => {
@@ -9769,10 +9911,10 @@ var MultiSelect = React9.forwardRef(
9769
9911
  handleRemove(value);
9770
9912
  },
9771
9913
  type: "button",
9772
- children: /* @__PURE__ */ jsx26(FontAwesomeIcon3, { icon: faSquareXmark, size: "sm" })
9914
+ children: /* @__PURE__ */ jsx27(FontAwesomeIcon3, { icon: faSquareXmark, size: "sm" })
9773
9915
  }
9774
9916
  ),
9775
- /* @__PURE__ */ jsx26(
9917
+ /* @__PURE__ */ jsx27(
9776
9918
  Text,
9777
9919
  {
9778
9920
  typography: "captionMedium",
@@ -9800,7 +9942,7 @@ var Divider = styled("div", {
9800
9942
 
9801
9943
  // src/components/Grid.tsx
9802
9944
  import { Grid as GridRadix } from "@radix-ui/themes";
9803
- import { jsx as jsx27 } from "react/jsx-runtime";
9945
+ import { jsx as jsx28 } from "react/jsx-runtime";
9804
9946
  var GridStyled = styled(GridRadix, {
9805
9947
  display: "grid",
9806
9948
  variants: {
@@ -9922,12 +10064,12 @@ var GridStyled = styled(GridRadix, {
9922
10064
  });
9923
10065
  function Grid(_a) {
9924
10066
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
9925
- return /* @__PURE__ */ jsx27(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10067
+ return /* @__PURE__ */ jsx28(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
9926
10068
  }
9927
10069
 
9928
10070
  // src/components/Container.tsx
9929
10071
  import { Container as ContainerRadix } from "@radix-ui/themes";
9930
- import { jsx as jsx28 } from "react/jsx-runtime";
10072
+ import { jsx as jsx29 } from "react/jsx-runtime";
9931
10073
  var ContainerStyled = styled(ContainerRadix, {
9932
10074
  variants: {
9933
10075
  size: {
@@ -9957,12 +10099,12 @@ var ContainerStyled = styled(ContainerRadix, {
9957
10099
  });
9958
10100
  function Container(_a) {
9959
10101
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
9960
- return /* @__PURE__ */ jsx28(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10102
+ return /* @__PURE__ */ jsx29(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
9961
10103
  }
9962
10104
 
9963
10105
  // src/components/Section.tsx
9964
10106
  import { Section as SectionRadix } from "@radix-ui/themes";
9965
- import { jsx as jsx29 } from "react/jsx-runtime";
10107
+ import { jsx as jsx30 } from "react/jsx-runtime";
9966
10108
  var SectionStyled = styled(SectionRadix, {
9967
10109
  variants: {
9968
10110
  size: {
@@ -9986,26 +10128,26 @@ var SectionStyled = styled(SectionRadix, {
9986
10128
  });
9987
10129
  function Section(_a) {
9988
10130
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
9989
- return /* @__PURE__ */ jsx29(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10131
+ return /* @__PURE__ */ jsx30(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
9990
10132
  }
9991
10133
 
9992
10134
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
9993
10135
  import { faXmarkCircle } from "@fortawesome/free-solid-svg-icons";
9994
10136
  import { FontAwesomeIcon as FontAwesomeIcon4 } from "@fortawesome/react-fontawesome";
9995
- import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
10137
+ import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
9996
10138
  var ErrorFormMessage = ({ message: message2 }) => {
9997
10139
  if (!message2) return null;
9998
10140
  if (typeof message2 !== "string") {
9999
10141
  return null;
10000
10142
  }
10001
- return /* @__PURE__ */ jsxs15(Flex2, { justify: "start", align: "center", gap: 6, children: [
10002
- /* @__PURE__ */ jsx30(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10003
- /* @__PURE__ */ jsx30(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10143
+ return /* @__PURE__ */ jsxs16(Flex2, { justify: "start", align: "center", gap: 6, children: [
10144
+ /* @__PURE__ */ jsx31(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10145
+ /* @__PURE__ */ jsx31(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10004
10146
  ] });
10005
10147
  };
10006
10148
 
10007
10149
  // src/components/FormFields/subComponents/FormLabel.tsx
10008
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
10150
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
10009
10151
  var FormLabel = ({
10010
10152
  name,
10011
10153
  label,
@@ -10013,7 +10155,7 @@ var FormLabel = ({
10013
10155
  required
10014
10156
  }) => {
10015
10157
  if (!label) return null;
10016
- return /* @__PURE__ */ jsxs16(
10158
+ return /* @__PURE__ */ jsxs17(
10017
10159
  Text,
10018
10160
  {
10019
10161
  typography: "labelMedium",
@@ -10022,7 +10164,7 @@ var FormLabel = ({
10022
10164
  id: `${name}-label`,
10023
10165
  children: [
10024
10166
  label,
10025
- !required && /* @__PURE__ */ jsx31(Text, { color: "dark500", children: " (opcional)" })
10167
+ !required && /* @__PURE__ */ jsx32(Text, { color: "dark500", children: " (opcional)" })
10026
10168
  ]
10027
10169
  }
10028
10170
  );
@@ -10030,7 +10172,7 @@ var FormLabel = ({
10030
10172
 
10031
10173
  // src/components/FormFields/TextAreaFormField.tsx
10032
10174
  import { useFormContext } from "react-hook-form";
10033
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
10175
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
10034
10176
  var TextAreaFormField = (_a) => {
10035
10177
  var _b = _a, {
10036
10178
  name,
@@ -10038,14 +10180,16 @@ var TextAreaFormField = (_a) => {
10038
10180
  required,
10039
10181
  placeholder,
10040
10182
  validate,
10041
- validationErrorMessage = "Este campo \xE9 obrigat\xF3rio."
10183
+ validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
10184
+ simpleLayout = false
10042
10185
  } = _b, props = __objRest(_b, [
10043
10186
  "name",
10044
10187
  "label",
10045
10188
  "required",
10046
10189
  "placeholder",
10047
10190
  "validate",
10048
- "validationErrorMessage"
10191
+ "validationErrorMessage",
10192
+ "simpleLayout"
10049
10193
  ]);
10050
10194
  var _a2;
10051
10195
  const {
@@ -10058,8 +10202,8 @@ var TextAreaFormField = (_a) => {
10058
10202
  required: required ? validationErrorMessage : false,
10059
10203
  validate
10060
10204
  };
10061
- return /* @__PURE__ */ jsxs17(Flex2, { direction: "column", children: [
10062
- /* @__PURE__ */ jsx32(
10205
+ return /* @__PURE__ */ jsxs18(Flex2, { direction: "column", children: [
10206
+ /* @__PURE__ */ jsx33(
10063
10207
  FormLabel,
10064
10208
  {
10065
10209
  name,
@@ -10068,15 +10212,16 @@ var TextAreaFormField = (_a) => {
10068
10212
  haveError
10069
10213
  }
10070
10214
  ),
10071
- /* @__PURE__ */ jsx32(
10215
+ /* @__PURE__ */ jsx33(
10072
10216
  TextareaField,
10073
10217
  __spreadProps(__spreadValues(__spreadValues({}, props), register(name, validationRules)), {
10074
10218
  placeholder,
10075
10219
  color: haveError ? "error" : "default",
10220
+ simpleLayout,
10076
10221
  "aria-labelledby": `${name}-label`
10077
10222
  })
10078
10223
  ),
10079
- /* @__PURE__ */ jsx32(ErrorFormMessage, { message: errorMsg })
10224
+ /* @__PURE__ */ jsx33(ErrorFormMessage, { message: errorMsg })
10080
10225
  ] });
10081
10226
  };
10082
10227
 
@@ -10086,7 +10231,7 @@ import {
10086
10231
  } from "react-hook-form";
10087
10232
  import { useCallback as useCallback3, useMemo as useMemo3 } from "react";
10088
10233
  import { format as format3, unformat as unformat2 } from "@react-input/mask";
10089
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
10234
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
10090
10235
  var TextFormField = (_a) => {
10091
10236
  var _b = _a, {
10092
10237
  name,
@@ -10141,8 +10286,8 @@ var TextFormField = (_a) => {
10141
10286
  if (valueFormatter) value = valueFormatter.unformat(value);
10142
10287
  formChange(value);
10143
10288
  };
10144
- return /* @__PURE__ */ jsxs18(Flex2, { direction: "column", children: [
10145
- label && /* @__PURE__ */ jsx33(
10289
+ return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10290
+ label && /* @__PURE__ */ jsx34(
10146
10291
  FormLabel,
10147
10292
  {
10148
10293
  name,
@@ -10151,7 +10296,7 @@ var TextFormField = (_a) => {
10151
10296
  haveError
10152
10297
  }
10153
10298
  ),
10154
- /* @__PURE__ */ jsx33(
10299
+ /* @__PURE__ */ jsx34(
10155
10300
  TextField,
10156
10301
  __spreadProps(__spreadValues(__spreadValues({
10157
10302
  mask,
@@ -10162,7 +10307,7 @@ var TextFormField = (_a) => {
10162
10307
  value: formattedValue
10163
10308
  })
10164
10309
  ),
10165
- /* @__PURE__ */ jsx33(ErrorFormMessage, { message: errorMsg })
10310
+ /* @__PURE__ */ jsx34(ErrorFormMessage, { message: errorMsg })
10166
10311
  ] });
10167
10312
  };
10168
10313
 
@@ -10171,7 +10316,7 @@ import {
10171
10316
  FormProvider,
10172
10317
  useForm
10173
10318
  } from "react-hook-form";
10174
- import { jsx as jsx34 } from "react/jsx-runtime";
10319
+ import { jsx as jsx35 } from "react/jsx-runtime";
10175
10320
  var Form = (_a) => {
10176
10321
  var _b = _a, {
10177
10322
  onSubmit,
@@ -10183,7 +10328,7 @@ var Form = (_a) => {
10183
10328
  const formMethods = useForm(__spreadValues({
10184
10329
  mode: "onTouched"
10185
10330
  }, props));
10186
- return /* @__PURE__ */ jsx34(FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ jsx34("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10331
+ return /* @__PURE__ */ jsx35(FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ jsx35("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10187
10332
  if (typeof children === "function") {
10188
10333
  return children(formMethods);
10189
10334
  }
@@ -10193,7 +10338,7 @@ var Form = (_a) => {
10193
10338
 
10194
10339
  // src/components/FormFields/MultiSelectFormField.tsx
10195
10340
  import { useController as useController2 } from "react-hook-form";
10196
- import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
10341
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
10197
10342
  var MultiSelectFormField = (_a) => {
10198
10343
  var _b = _a, {
10199
10344
  name,
@@ -10224,8 +10369,8 @@ var MultiSelectFormField = (_a) => {
10224
10369
  const handleChange = (v) => {
10225
10370
  onChange(v);
10226
10371
  };
10227
- return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10228
- /* @__PURE__ */ jsx35(
10372
+ return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10373
+ /* @__PURE__ */ jsx36(
10229
10374
  FormLabel,
10230
10375
  {
10231
10376
  name,
@@ -10234,7 +10379,7 @@ var MultiSelectFormField = (_a) => {
10234
10379
  haveError
10235
10380
  }
10236
10381
  ),
10237
- /* @__PURE__ */ jsx35(
10382
+ /* @__PURE__ */ jsx36(
10238
10383
  MultiSelect,
10239
10384
  __spreadValues({
10240
10385
  value,
@@ -10246,7 +10391,7 @@ var MultiSelectFormField = (_a) => {
10246
10391
  maxHeight
10247
10392
  }, rest)
10248
10393
  ),
10249
- /* @__PURE__ */ jsx35(ErrorFormMessage, { message: errorMsg })
10394
+ /* @__PURE__ */ jsx36(ErrorFormMessage, { message: errorMsg })
10250
10395
  ] });
10251
10396
  };
10252
10397
 
@@ -10264,13 +10409,13 @@ var minMaxLength = (min, max, errorMsg) => (value) => {
10264
10409
  };
10265
10410
 
10266
10411
  // src/components/FormFields/PhoneFormField.tsx
10267
- import { jsx as jsx36 } from "react/jsx-runtime";
10412
+ import { jsx as jsx37 } from "react/jsx-runtime";
10268
10413
  var PhoneFormField = ({
10269
10414
  name,
10270
10415
  label,
10271
10416
  required
10272
10417
  }) => {
10273
- return /* @__PURE__ */ jsx36(
10418
+ return /* @__PURE__ */ jsx37(
10274
10419
  TextFormField,
10275
10420
  {
10276
10421
  name,
@@ -10300,7 +10445,7 @@ var PhoneFormField = ({
10300
10445
 
10301
10446
  // src/components/FormFields/CPFFormField.tsx
10302
10447
  import { useFormContext as useFormContext3, useWatch } from "react-hook-form";
10303
- import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
10448
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
10304
10449
  var isValidCPF = (cpf) => {
10305
10450
  cpf = cpf.replace(/[^\d]+/g, "");
10306
10451
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10326,8 +10471,8 @@ var CPFFormField = ({
10326
10471
  }) => {
10327
10472
  const { control, setValue } = useFormContext3();
10328
10473
  const foreigner = useWatch({ name: "foreigner", control });
10329
- return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10330
- /* @__PURE__ */ jsx37(
10474
+ return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10475
+ /* @__PURE__ */ jsx38(
10331
10476
  TextFormField,
10332
10477
  {
10333
10478
  name,
@@ -10345,7 +10490,7 @@ var CPFFormField = ({
10345
10490
  disabled: foreigner
10346
10491
  }
10347
10492
  ),
10348
- /* @__PURE__ */ jsx37(
10493
+ /* @__PURE__ */ jsx38(
10349
10494
  CheckboxGroup,
10350
10495
  {
10351
10496
  value: foreigner ? ["true"] : [],
@@ -10357,14 +10502,14 @@ var CPFFormField = ({
10357
10502
  setValue(name, "");
10358
10503
  }
10359
10504
  },
10360
- children: /* @__PURE__ */ jsx37(CheckboxItem, { value: "true", children: foreignerLabel })
10505
+ children: /* @__PURE__ */ jsx38(CheckboxItem, { value: "true", children: foreignerLabel })
10361
10506
  }
10362
10507
  )
10363
10508
  ] });
10364
10509
  };
10365
10510
 
10366
10511
  // src/components/FormFields/CNPJFormField.tsx
10367
- import { jsx as jsx38 } from "react/jsx-runtime";
10512
+ import { jsx as jsx39 } from "react/jsx-runtime";
10368
10513
  var matchesNonDigit = new RegExp(/\D+/g);
10369
10514
  var getWeights = (size, start, end) => {
10370
10515
  const weights = [];
@@ -10413,7 +10558,7 @@ var CNPJFormField = ({
10413
10558
  placeholder,
10414
10559
  validationErrorMessage
10415
10560
  }) => {
10416
- return /* @__PURE__ */ jsx38(
10561
+ return /* @__PURE__ */ jsx39(
10417
10562
  TextFormField,
10418
10563
  {
10419
10564
  name,
@@ -10434,7 +10579,7 @@ var CNPJFormField = ({
10434
10579
  };
10435
10580
 
10436
10581
  // src/components/FormFields/BirthDateFormField.tsx
10437
- import { jsx as jsx39 } from "react/jsx-runtime";
10582
+ import { jsx as jsx40 } from "react/jsx-runtime";
10438
10583
  var isValidDate = (day, month, year) => {
10439
10584
  const date = new Date(year, month - 1, day);
10440
10585
  return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
@@ -10471,7 +10616,7 @@ var BirthDateFormField = ({
10471
10616
  language
10472
10617
  }) => {
10473
10618
  const inputPlaceholder = placeholder || (language === "pt-BR" ? "DD/MM/AAAA" : "MM/DD/YYYY");
10474
- return /* @__PURE__ */ jsx39(
10619
+ return /* @__PURE__ */ jsx40(
10475
10620
  TextFormField,
10476
10621
  {
10477
10622
  name,
@@ -10492,7 +10637,7 @@ var BirthDateFormField = ({
10492
10637
  };
10493
10638
 
10494
10639
  // src/components/FormFields/IdentityDocumentNumberFormField.tsx
10495
- import { jsx as jsx40 } from "react/jsx-runtime";
10640
+ import { jsx as jsx41 } from "react/jsx-runtime";
10496
10641
  var IdentityDocumentNumberFormField = ({
10497
10642
  name,
10498
10643
  label,
@@ -10500,7 +10645,7 @@ var IdentityDocumentNumberFormField = ({
10500
10645
  placeholder,
10501
10646
  validationErrorMessage
10502
10647
  }) => {
10503
- return /* @__PURE__ */ jsx40(
10648
+ return /* @__PURE__ */ jsx41(
10504
10649
  TextFormField,
10505
10650
  {
10506
10651
  name,
@@ -10529,7 +10674,7 @@ function getNestedValue(obj, path) {
10529
10674
  }
10530
10675
 
10531
10676
  // src/components/FormFields/SelectFormField.tsx
10532
- import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
10677
+ import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10533
10678
  var SelectFormField = ({
10534
10679
  name,
10535
10680
  label,
@@ -10550,8 +10695,8 @@ var SelectFormField = ({
10550
10695
  const validationRules = __spreadValues({
10551
10696
  required: required ? validationErrorMessage : false
10552
10697
  }, validation);
10553
- return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10554
- /* @__PURE__ */ jsx41(
10698
+ return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10699
+ /* @__PURE__ */ jsx42(
10555
10700
  FormLabel,
10556
10701
  {
10557
10702
  name,
@@ -10560,7 +10705,7 @@ var SelectFormField = ({
10560
10705
  haveError
10561
10706
  }
10562
10707
  ),
10563
- /* @__PURE__ */ jsx41(
10708
+ /* @__PURE__ */ jsx42(
10564
10709
  Controller,
10565
10710
  {
10566
10711
  control,
@@ -10569,14 +10714,14 @@ var SelectFormField = ({
10569
10714
  defaultValue: defaultValue || "",
10570
10715
  render: ({ field: { value, onChange } }) => {
10571
10716
  const selectedOption = options.find((opt) => opt.value === value);
10572
- return /* @__PURE__ */ jsx41(
10717
+ return /* @__PURE__ */ jsx42(
10573
10718
  DropdownMenu2,
10574
10719
  {
10575
10720
  placeholder: (selectedOption == null ? void 0 : selectedOption.label) || placeholder,
10576
10721
  fontWeight: "regular",
10577
10722
  typography: "labelLarge",
10578
10723
  color: haveError ? "error" : "default",
10579
- children: options.map((option, index) => /* @__PURE__ */ jsx41(
10724
+ children: options.map((option, index) => /* @__PURE__ */ jsx42(
10580
10725
  DropdownMenuItem,
10581
10726
  {
10582
10727
  value: option.value,
@@ -10592,7 +10737,7 @@ var SelectFormField = ({
10592
10737
  }
10593
10738
  }
10594
10739
  ),
10595
- /* @__PURE__ */ jsx41(ErrorFormMessage, { message: errorMsg })
10740
+ /* @__PURE__ */ jsx42(ErrorFormMessage, { message: errorMsg })
10596
10741
  ] });
10597
10742
  };
10598
10743
 
@@ -10625,7 +10770,7 @@ function useCountries(language = "pt-BR") {
10625
10770
  }
10626
10771
 
10627
10772
  // src/components/FormFields/AddressFormFields/CountryFormField.tsx
10628
- import { jsx as jsx42 } from "react/jsx-runtime";
10773
+ import { jsx as jsx43 } from "react/jsx-runtime";
10629
10774
  function CountryFormField({
10630
10775
  name,
10631
10776
  label,
@@ -10633,7 +10778,7 @@ function CountryFormField({
10633
10778
  language = "pt-BR"
10634
10779
  }) {
10635
10780
  const countries2 = useCountries(language);
10636
- return /* @__PURE__ */ jsx42(Flex2, { direction: "column", children: /* @__PURE__ */ jsx42(
10781
+ return /* @__PURE__ */ jsx43(Flex2, { direction: "column", children: /* @__PURE__ */ jsx43(
10637
10782
  SelectFormField,
10638
10783
  {
10639
10784
  label,
@@ -10646,7 +10791,7 @@ function CountryFormField({
10646
10791
  }
10647
10792
 
10648
10793
  // src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx
10649
- import { jsx as jsx43 } from "react/jsx-runtime";
10794
+ import { jsx as jsx44 } from "react/jsx-runtime";
10650
10795
  var PostalCodeFormField = ({
10651
10796
  name,
10652
10797
  label,
@@ -10655,7 +10800,7 @@ var PostalCodeFormField = ({
10655
10800
  validationErrorMessage,
10656
10801
  onChange
10657
10802
  }) => {
10658
- return /* @__PURE__ */ jsx43(
10803
+ return /* @__PURE__ */ jsx44(
10659
10804
  TextFormField,
10660
10805
  {
10661
10806
  name,
@@ -10708,14 +10853,14 @@ var brazilianStates = [
10708
10853
  ];
10709
10854
 
10710
10855
  // src/components/FormFields/AddressFormFields/StateFormField.tsx
10711
- import { Fragment as Fragment3, jsx as jsx44 } from "react/jsx-runtime";
10856
+ import { Fragment as Fragment3, jsx as jsx45 } from "react/jsx-runtime";
10712
10857
  function StateFormField({
10713
10858
  name,
10714
10859
  label,
10715
10860
  required,
10716
10861
  isBrazil
10717
10862
  }) {
10718
- return /* @__PURE__ */ jsx44(Fragment3, { children: isBrazil ? /* @__PURE__ */ jsx44(
10863
+ return /* @__PURE__ */ jsx45(Fragment3, { children: isBrazil ? /* @__PURE__ */ jsx45(
10719
10864
  SelectFormField,
10720
10865
  {
10721
10866
  name,
@@ -10723,13 +10868,13 @@ function StateFormField({
10723
10868
  required,
10724
10869
  label
10725
10870
  }
10726
- ) : /* @__PURE__ */ jsx44(TextFormField, { name, required, label }) });
10871
+ ) : /* @__PURE__ */ jsx45(TextFormField, { name, required, label }) });
10727
10872
  }
10728
10873
 
10729
10874
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
10730
- import { useEffect as useEffect6, useState as useState8 } from "react";
10875
+ import { useEffect as useEffect7, useState as useState9 } from "react";
10731
10876
  import { useFormContext as useFormContext5, Controller as Controller2 } from "react-hook-form";
10732
- import { Fragment as Fragment4, jsx as jsx45 } from "react/jsx-runtime";
10877
+ import { Fragment as Fragment4, jsx as jsx46 } from "react/jsx-runtime";
10733
10878
  function CityFormField({
10734
10879
  name,
10735
10880
  label,
@@ -10740,9 +10885,9 @@ function CityFormField({
10740
10885
  }) {
10741
10886
  const { control, watch } = useFormContext5();
10742
10887
  const selectedState = watch(stateName);
10743
- const [cities, setCities] = useState8([]);
10744
- const [loading, setLoading] = useState8(false);
10745
- useEffect6(() => {
10888
+ const [cities, setCities] = useState9([]);
10889
+ const [loading, setLoading] = useState9(false);
10890
+ useEffect7(() => {
10746
10891
  if (!isBrazil) {
10747
10892
  setCities([]);
10748
10893
  return;
@@ -10781,13 +10926,13 @@ function CityFormField({
10781
10926
  }
10782
10927
  fetchCities();
10783
10928
  }, [selectedState, isBrazil]);
10784
- return /* @__PURE__ */ jsx45(Fragment4, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx45(
10929
+ return /* @__PURE__ */ jsx46(Fragment4, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx46(
10785
10930
  Controller2,
10786
10931
  {
10787
10932
  name,
10788
10933
  control,
10789
10934
  rules: { required },
10790
- render: ({ field }) => /* @__PURE__ */ jsx45(
10935
+ render: ({ field }) => /* @__PURE__ */ jsx46(
10791
10936
  SelectFormField,
10792
10937
  __spreadProps(__spreadValues({
10793
10938
  label,
@@ -10801,7 +10946,7 @@ function CityFormField({
10801
10946
  })
10802
10947
  )
10803
10948
  }
10804
- ) : /* @__PURE__ */ jsx45(
10949
+ ) : /* @__PURE__ */ jsx46(
10805
10950
  TextFormField,
10806
10951
  {
10807
10952
  name,
@@ -10813,7 +10958,7 @@ function CityFormField({
10813
10958
  }
10814
10959
 
10815
10960
  // src/components/FormFields/AddressFormFields/index.tsx
10816
- import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
10961
+ import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
10817
10962
  function getNestedValue2(obj, path) {
10818
10963
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
10819
10964
  }
@@ -10863,8 +11008,8 @@ function AddressFormFields({
10863
11008
  console.error("Erro ao buscar CEP");
10864
11009
  });
10865
11010
  };
10866
- return /* @__PURE__ */ jsxs22(AddressContainerStyled, { layout, children: [
10867
- /* @__PURE__ */ jsx46(
11011
+ return /* @__PURE__ */ jsxs23(AddressContainerStyled, { layout, children: [
11012
+ /* @__PURE__ */ jsx47(
10868
11013
  FormLabel,
10869
11014
  {
10870
11015
  name,
@@ -10873,7 +11018,7 @@ function AddressFormFields({
10873
11018
  haveError
10874
11019
  }
10875
11020
  ),
10876
- /* @__PURE__ */ jsx46(
11021
+ /* @__PURE__ */ jsx47(
10877
11022
  CountryFormField,
10878
11023
  {
10879
11024
  name: `${name}.country`,
@@ -10882,7 +11027,7 @@ function AddressFormFields({
10882
11027
  language: "pt-BR"
10883
11028
  }
10884
11029
  ),
10885
- isBrazil ? /* @__PURE__ */ jsx46(
11030
+ isBrazil ? /* @__PURE__ */ jsx47(
10886
11031
  PostalCodeFormField,
10887
11032
  {
10888
11033
  name: `${name}.zip_code`,
@@ -10892,7 +11037,7 @@ function AddressFormFields({
10892
11037
  validationErrorMessage: "CEP inv\xE1lido",
10893
11038
  onChange: handleCEPChange
10894
11039
  }
10895
- ) : /* @__PURE__ */ jsx46(
11040
+ ) : /* @__PURE__ */ jsx47(
10896
11041
  TextFormField,
10897
11042
  {
10898
11043
  name: `${name}.zip_code`,
@@ -10900,7 +11045,7 @@ function AddressFormFields({
10900
11045
  required
10901
11046
  }
10902
11047
  ),
10903
- /* @__PURE__ */ jsx46(
11048
+ /* @__PURE__ */ jsx47(
10904
11049
  StateFormField,
10905
11050
  {
10906
11051
  name: `${name}.state`,
@@ -10909,7 +11054,7 @@ function AddressFormFields({
10909
11054
  isBrazil
10910
11055
  }
10911
11056
  ),
10912
- /* @__PURE__ */ jsx46(
11057
+ /* @__PURE__ */ jsx47(
10913
11058
  CityFormField,
10914
11059
  {
10915
11060
  name: `${name}.city`,
@@ -10919,8 +11064,8 @@ function AddressFormFields({
10919
11064
  isBrazil
10920
11065
  }
10921
11066
  ),
10922
- /* @__PURE__ */ jsx46(TextFormField, { name: `${name}.street`, label: "Rua", required }),
10923
- /* @__PURE__ */ jsx46(
11067
+ /* @__PURE__ */ jsx47(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11068
+ /* @__PURE__ */ jsx47(
10924
11069
  TextFormField,
10925
11070
  {
10926
11071
  name: `${name}.number`,
@@ -10928,7 +11073,7 @@ function AddressFormFields({
10928
11073
  required
10929
11074
  }
10930
11075
  ),
10931
- /* @__PURE__ */ jsx46(
11076
+ /* @__PURE__ */ jsx47(
10932
11077
  TextFormField,
10933
11078
  {
10934
11079
  name: `${name}.neighborhood`,
@@ -10936,13 +11081,13 @@ function AddressFormFields({
10936
11081
  required
10937
11082
  }
10938
11083
  ),
10939
- /* @__PURE__ */ jsx46(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11084
+ /* @__PURE__ */ jsx47(TextFormField, { name: `${name}.complement`, label: "Complemento" })
10940
11085
  ] });
10941
11086
  }
10942
11087
 
10943
11088
  // src/components/FormFields/RadioGroupFormField.tsx
10944
11089
  import { Controller as Controller3, useFormContext as useFormContext7 } from "react-hook-form";
10945
- import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
11090
+ import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
10946
11091
  var RadioGroupFormField = ({
10947
11092
  name,
10948
11093
  label,
@@ -10964,8 +11109,8 @@ var RadioGroupFormField = ({
10964
11109
  const validationRules = {
10965
11110
  required: required ? validationErrorMessage : false
10966
11111
  };
10967
- return /* @__PURE__ */ jsxs23(Flex2, { direction: "column", children: [
10968
- /* @__PURE__ */ jsx47(
11112
+ return /* @__PURE__ */ jsxs24(Flex2, { direction: "column", children: [
11113
+ /* @__PURE__ */ jsx48(
10969
11114
  FormLabel,
10970
11115
  {
10971
11116
  name,
@@ -10974,14 +11119,14 @@ var RadioGroupFormField = ({
10974
11119
  haveError
10975
11120
  }
10976
11121
  ),
10977
- /* @__PURE__ */ jsx47(
11122
+ /* @__PURE__ */ jsx48(
10978
11123
  Controller3,
10979
11124
  {
10980
11125
  name,
10981
11126
  control,
10982
11127
  defaultValue: defaultValue || "",
10983
11128
  rules: validationRules,
10984
- render: ({ field: { value, onChange } }) => /* @__PURE__ */ jsx47(
11129
+ render: ({ field: { value, onChange } }) => /* @__PURE__ */ jsx48(
10985
11130
  RadioGroup,
10986
11131
  {
10987
11132
  value,
@@ -10989,21 +11134,21 @@ var RadioGroupFormField = ({
10989
11134
  color: haveError ? "error" : color,
10990
11135
  fontWeight,
10991
11136
  disabled,
10992
- children: options.map((option) => /* @__PURE__ */ jsxs23("label", { children: [
10993
- /* @__PURE__ */ jsx47(RadioItem, { value: option.value }),
11137
+ children: options.map((option) => /* @__PURE__ */ jsxs24("label", { children: [
11138
+ /* @__PURE__ */ jsx48(RadioItem, { value: option.value }),
10994
11139
  option.label
10995
11140
  ] }, option.value))
10996
11141
  }
10997
11142
  )
10998
11143
  }
10999
11144
  ),
11000
- /* @__PURE__ */ jsx47(ErrorFormMessage, { message: errorMsg })
11145
+ /* @__PURE__ */ jsx48(ErrorFormMessage, { message: errorMsg })
11001
11146
  ] });
11002
11147
  };
11003
11148
 
11004
11149
  // src/components/FormFields/CheckboxGroupFormField.tsx
11005
11150
  import { Controller as Controller4, useFormContext as useFormContext8 } from "react-hook-form";
11006
- import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
11151
+ import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
11007
11152
  var CheckboxGroupFormField = ({
11008
11153
  name,
11009
11154
  label,
@@ -11026,8 +11171,8 @@ var CheckboxGroupFormField = ({
11026
11171
  required: required ? validationErrorMessage : false,
11027
11172
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11028
11173
  };
11029
- return /* @__PURE__ */ jsxs24(Flex2, { direction: "column", children: [
11030
- /* @__PURE__ */ jsx48(
11174
+ return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11175
+ /* @__PURE__ */ jsx49(
11031
11176
  FormLabel,
11032
11177
  {
11033
11178
  name,
@@ -11036,14 +11181,14 @@ var CheckboxGroupFormField = ({
11036
11181
  haveError
11037
11182
  }
11038
11183
  ),
11039
- /* @__PURE__ */ jsx48(
11184
+ /* @__PURE__ */ jsx49(
11040
11185
  Controller4,
11041
11186
  {
11042
11187
  name,
11043
11188
  control,
11044
11189
  rules: validationRules,
11045
11190
  defaultValue,
11046
- render: ({ field }) => /* @__PURE__ */ jsx48(
11191
+ render: ({ field }) => /* @__PURE__ */ jsx49(
11047
11192
  CheckboxGroup,
11048
11193
  {
11049
11194
  name,
@@ -11052,7 +11197,7 @@ var CheckboxGroupFormField = ({
11052
11197
  color: haveError ? "error" : color,
11053
11198
  fontWeight,
11054
11199
  disabled,
11055
- children: options.map((option) => /* @__PURE__ */ jsx48(
11200
+ children: options.map((option) => /* @__PURE__ */ jsx49(
11056
11201
  CheckboxItem,
11057
11202
  {
11058
11203
  value: option.value,
@@ -11065,13 +11210,13 @@ var CheckboxGroupFormField = ({
11065
11210
  )
11066
11211
  }
11067
11212
  ),
11068
- /* @__PURE__ */ jsx48(ErrorFormMessage, { message: errorMsg })
11213
+ /* @__PURE__ */ jsx49(ErrorFormMessage, { message: errorMsg })
11069
11214
  ] });
11070
11215
  };
11071
11216
 
11072
11217
  // src/components/FormFields/SwitchFormField.tsx
11073
11218
  import { useFormContext as useFormContext9, Controller as Controller5 } from "react-hook-form";
11074
- import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
11219
+ import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
11075
11220
  var SwitchFormField = ({
11076
11221
  name,
11077
11222
  label,
@@ -11085,15 +11230,15 @@ var SwitchFormField = ({
11085
11230
  if (watch) {
11086
11231
  watchForm(name);
11087
11232
  }
11088
- return /* @__PURE__ */ jsxs25(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11089
- /* @__PURE__ */ jsx49(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11090
- /* @__PURE__ */ jsx49(
11233
+ return /* @__PURE__ */ jsxs26(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11234
+ /* @__PURE__ */ jsx50(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11235
+ /* @__PURE__ */ jsx50(
11091
11236
  Controller5,
11092
11237
  {
11093
11238
  control,
11094
11239
  name,
11095
11240
  defaultValue,
11096
- render: ({ field }) => /* @__PURE__ */ jsx49(
11241
+ render: ({ field }) => /* @__PURE__ */ jsx50(
11097
11242
  Switch,
11098
11243
  {
11099
11244
  checked: field.value,
@@ -11106,14 +11251,14 @@ var SwitchFormField = ({
11106
11251
  };
11107
11252
 
11108
11253
  // src/components/FormFields/EmailFormField.tsx
11109
- import { jsx as jsx50 } from "react/jsx-runtime";
11254
+ import { jsx as jsx51 } from "react/jsx-runtime";
11110
11255
  var EmailFormField = ({
11111
11256
  name,
11112
11257
  label,
11113
11258
  required,
11114
11259
  placeholder
11115
11260
  }) => {
11116
- return /* @__PURE__ */ jsx50(
11261
+ return /* @__PURE__ */ jsx51(
11117
11262
  TextFormField,
11118
11263
  {
11119
11264
  name,
@@ -11130,10 +11275,10 @@ var EmailFormField = ({
11130
11275
  import { useController as useController3 } from "react-hook-form";
11131
11276
 
11132
11277
  // src/components/RichEditor/RichEditor.tsx
11133
- import { useEffect as useEffect8, useState as useState10 } from "react";
11278
+ import { useEffect as useEffect9, useState as useState11 } from "react";
11134
11279
 
11135
11280
  // src/components/RichEditor/QuillComponent.tsx
11136
- import { useState as useState9, useRef as useRef8, useEffect as useEffect7, useCallback as useCallback4 } from "react";
11281
+ import { useState as useState10, useRef as useRef9, useEffect as useEffect8, useCallback as useCallback4 } from "react";
11137
11282
  import { useQuill } from "react-quilljs";
11138
11283
 
11139
11284
  // src/utils/uploadService.ts
@@ -12189,7 +12334,7 @@ var QuillEditor = styled("div", {
12189
12334
  });
12190
12335
 
12191
12336
  // src/components/RichEditor/QuillComponent.tsx
12192
- import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
12337
+ import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
12193
12338
  var QuillComponent = ({
12194
12339
  value = "",
12195
12340
  onChange,
@@ -12202,12 +12347,12 @@ var QuillComponent = ({
12202
12347
  onCharacterCountChange,
12203
12348
  maxLength
12204
12349
  }) => {
12205
- const [showVideoModal, setShowVideoModal] = useState9(false);
12206
- const [videoUrl, setVideoUrl] = useState9("");
12207
- const [showLinkModal, setShowLinkModal] = useState9(false);
12208
- const [linkUrl, setLinkUrl] = useState9("");
12209
- const videoModalRef = useRef8(null);
12210
- const linkModalRef = useRef8(null);
12350
+ const [showVideoModal, setShowVideoModal] = useState10(false);
12351
+ const [videoUrl, setVideoUrl] = useState10("");
12352
+ const [showLinkModal, setShowLinkModal] = useState10(false);
12353
+ const [linkUrl, setLinkUrl] = useState10("");
12354
+ const videoModalRef = useRef9(null);
12355
+ const linkModalRef = useRef9(null);
12211
12356
  const { addToast, removeToast } = useToast();
12212
12357
  const formatHTML = (html) => {
12213
12358
  const parser = new DOMParser();
@@ -12303,7 +12448,7 @@ var QuillComponent = ({
12303
12448
  }),
12304
12449
  [disabled, quill, addToast, removeToast, uploadConfig, onChange]
12305
12450
  );
12306
- useEffect7(() => {
12451
+ useEffect8(() => {
12307
12452
  if (quill && value) {
12308
12453
  const currentContent = quill.root.innerHTML;
12309
12454
  if (currentContent !== value) {
@@ -12317,7 +12462,7 @@ var QuillComponent = ({
12317
12462
  }
12318
12463
  }
12319
12464
  }, [quill, value]);
12320
- useEffect7(() => {
12465
+ useEffect8(() => {
12321
12466
  if (quill) {
12322
12467
  quill.on("text-change", (delta, oldDelta, source) => {
12323
12468
  if (source === "user") {
@@ -12372,7 +12517,7 @@ var QuillComponent = ({
12372
12517
  }, 2e3);
12373
12518
  }
12374
12519
  }, [quill, onChange, handleImageUpload, onCharacterCountChange]);
12375
- useEffect7(() => {
12520
+ useEffect8(() => {
12376
12521
  if (quill) {
12377
12522
  quill.enable(!disabled);
12378
12523
  if (!disabled) {
@@ -12439,7 +12584,7 @@ var QuillComponent = ({
12439
12584
  setVideoUrl("");
12440
12585
  setShowVideoModal(false);
12441
12586
  }, [videoUrl, quill]);
12442
- useEffect7(() => {
12587
+ useEffect8(() => {
12443
12588
  const handleClickOutside = (event) => {
12444
12589
  if (showVideoModal && videoModalRef.current && !videoModalRef.current.contains(event.target)) {
12445
12590
  handleVideoCancel();
@@ -12451,9 +12596,9 @@ var QuillComponent = ({
12451
12596
  document.addEventListener("mousedown", handleClickOutside);
12452
12597
  return () => document.removeEventListener("mousedown", handleClickOutside);
12453
12598
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12454
- return /* @__PURE__ */ jsx51(QuillContainer, { className, children: /* @__PURE__ */ jsxs26(QuillEditor, { style: { position: "relative" }, children: [
12455
- /* @__PURE__ */ jsx51("div", { ref: quillRef }),
12456
- showVideoModal && /* @__PURE__ */ jsx51(
12599
+ return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs27(QuillEditor, { style: { position: "relative" }, children: [
12600
+ /* @__PURE__ */ jsx52("div", { ref: quillRef }),
12601
+ showVideoModal && /* @__PURE__ */ jsx52(
12457
12602
  "div",
12458
12603
  {
12459
12604
  ref: videoModalRef,
@@ -12470,15 +12615,15 @@ var QuillComponent = ({
12470
12615
  zIndex: 1e3,
12471
12616
  width: "fit-content"
12472
12617
  },
12473
- children: /* @__PURE__ */ jsxs26(Flex2, { gap: 8, align: "center", children: [
12474
- /* @__PURE__ */ jsx51(
12618
+ children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12619
+ /* @__PURE__ */ jsx52(
12475
12620
  Text,
12476
12621
  {
12477
12622
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
12478
12623
  children: "V\xEDdeo:"
12479
12624
  }
12480
12625
  ),
12481
- /* @__PURE__ */ jsx51(
12626
+ /* @__PURE__ */ jsx52(
12482
12627
  "input",
12483
12628
  {
12484
12629
  type: "text",
@@ -12502,7 +12647,7 @@ var QuillComponent = ({
12502
12647
  autoFocus: true
12503
12648
  }
12504
12649
  ),
12505
- /* @__PURE__ */ jsx51(
12650
+ /* @__PURE__ */ jsx52(
12506
12651
  "button",
12507
12652
  {
12508
12653
  onClick: handleVideoSubmit,
@@ -12523,7 +12668,7 @@ var QuillComponent = ({
12523
12668
  ] })
12524
12669
  }
12525
12670
  ),
12526
- showLinkModal && /* @__PURE__ */ jsx51(
12671
+ showLinkModal && /* @__PURE__ */ jsx52(
12527
12672
  "div",
12528
12673
  {
12529
12674
  ref: linkModalRef,
@@ -12540,15 +12685,15 @@ var QuillComponent = ({
12540
12685
  zIndex: 1e3,
12541
12686
  width: "fit-content"
12542
12687
  },
12543
- children: /* @__PURE__ */ jsxs26(Flex2, { gap: 8, align: "center", children: [
12544
- /* @__PURE__ */ jsx51(
12688
+ children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12689
+ /* @__PURE__ */ jsx52(
12545
12690
  Text,
12546
12691
  {
12547
12692
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
12548
12693
  children: "Link:"
12549
12694
  }
12550
12695
  ),
12551
- /* @__PURE__ */ jsx51(
12696
+ /* @__PURE__ */ jsx52(
12552
12697
  "input",
12553
12698
  {
12554
12699
  type: "text",
@@ -12573,7 +12718,7 @@ var QuillComponent = ({
12573
12718
  autoFocus: true
12574
12719
  }
12575
12720
  ),
12576
- /* @__PURE__ */ jsx51(
12721
+ /* @__PURE__ */ jsx52(
12577
12722
  "button",
12578
12723
  {
12579
12724
  onClick: handleLinkSubmit,
@@ -12599,20 +12744,20 @@ var QuillComponent = ({
12599
12744
  var QuillComponent_default = QuillComponent;
12600
12745
 
12601
12746
  // src/components/RichEditor/RichEditor.tsx
12602
- import { jsx as jsx52 } from "react/jsx-runtime";
12747
+ import { jsx as jsx53 } from "react/jsx-runtime";
12603
12748
  var RichEditor = (props) => {
12604
- const [isClient, setIsClient] = useState10(false);
12605
- useEffect8(() => {
12749
+ const [isClient, setIsClient] = useState11(false);
12750
+ useEffect9(() => {
12606
12751
  setIsClient(typeof window !== "undefined");
12607
12752
  }, []);
12608
12753
  if (!isClient) return null;
12609
- return /* @__PURE__ */ jsx52("div", { children: /* @__PURE__ */ jsx52(ToastProvider, { children: /* @__PURE__ */ jsx52(QuillComponent_default, __spreadValues({}, props)) }) });
12754
+ return /* @__PURE__ */ jsx53("div", { children: /* @__PURE__ */ jsx53(ToastProvider, { children: /* @__PURE__ */ jsx53(QuillComponent_default, __spreadValues({}, props)) }) });
12610
12755
  };
12611
12756
  var RichEditor_default = RichEditor;
12612
12757
 
12613
12758
  // src/components/FormFields/RichEditorFormField.tsx
12614
- import { useState as useState11 } from "react";
12615
- import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
12759
+ import { useState as useState12 } from "react";
12760
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
12616
12761
  var RichEditorFormField = (_a) => {
12617
12762
  var _b = _a, {
12618
12763
  name,
@@ -12646,7 +12791,7 @@ var RichEditorFormField = (_a) => {
12646
12791
  },
12647
12792
  defaultValue: ""
12648
12793
  });
12649
- const [caracterQuantity, setCaracterQuantity] = useState11(maxLength);
12794
+ const [caracterQuantity, setCaracterQuantity] = useState12(maxLength);
12650
12795
  const handleCharacterCountChange = (count) => {
12651
12796
  if (maxLength !== void 0) {
12652
12797
  setCaracterQuantity(Math.max(0, maxLength - count));
@@ -12655,9 +12800,9 @@ var RichEditorFormField = (_a) => {
12655
12800
  const fieldError = fieldState.error;
12656
12801
  const haveError = !!fieldError;
12657
12802
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12658
- return /* @__PURE__ */ jsxs27(Flex2, { direction: "column", children: [
12659
- maxLength ? /* @__PURE__ */ jsxs27(Flex2, { direction: "row", justify: "between", children: [
12660
- label && /* @__PURE__ */ jsx53(
12803
+ return /* @__PURE__ */ jsxs28(Flex2, { direction: "column", children: [
12804
+ maxLength ? /* @__PURE__ */ jsxs28(Flex2, { direction: "row", justify: "between", children: [
12805
+ label && /* @__PURE__ */ jsx54(
12661
12806
  FormLabel,
12662
12807
  {
12663
12808
  name,
@@ -12666,8 +12811,8 @@ var RichEditorFormField = (_a) => {
12666
12811
  haveError
12667
12812
  }
12668
12813
  ),
12669
- /* @__PURE__ */ jsx53(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12670
- ] }) : /* @__PURE__ */ jsx53(Fragment5, { children: label && /* @__PURE__ */ jsx53(
12814
+ /* @__PURE__ */ jsx54(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12815
+ ] }) : /* @__PURE__ */ jsx54(Fragment5, { children: label && /* @__PURE__ */ jsx54(
12671
12816
  FormLabel,
12672
12817
  {
12673
12818
  name,
@@ -12676,7 +12821,7 @@ var RichEditorFormField = (_a) => {
12676
12821
  haveError
12677
12822
  }
12678
12823
  ) }),
12679
- /* @__PURE__ */ jsx53(
12824
+ /* @__PURE__ */ jsx54(
12680
12825
  RichEditor_default,
12681
12826
  __spreadProps(__spreadValues({}, props), {
12682
12827
  value: field.value,
@@ -12688,14 +12833,14 @@ var RichEditorFormField = (_a) => {
12688
12833
  simpleVersion
12689
12834
  })
12690
12835
  ),
12691
- /* @__PURE__ */ jsx53(ErrorFormMessage, { message: errorMsg })
12836
+ /* @__PURE__ */ jsx54(ErrorFormMessage, { message: errorMsg })
12692
12837
  ] });
12693
12838
  };
12694
12839
 
12695
12840
  // src/components/FormFields/CalendarFormField.tsx
12696
12841
  import { useController as useController4 } from "react-hook-form";
12697
12842
  import { useCallback as useCallback5 } from "react";
12698
- import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
12843
+ import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
12699
12844
  var CalendarFormField = (_a) => {
12700
12845
  var _b = _a, {
12701
12846
  name,
@@ -12744,8 +12889,8 @@ var CalendarFormField = (_a) => {
12744
12889
  const handleCalendarChange = (date) => {
12745
12890
  setSelected(date);
12746
12891
  };
12747
- return /* @__PURE__ */ jsxs28(Flex2, { direction: "column", style: { flex: "1" }, children: [
12748
- label && /* @__PURE__ */ jsx54(
12892
+ return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", style: { flex: "1" }, children: [
12893
+ label && /* @__PURE__ */ jsx55(
12749
12894
  FormLabel,
12750
12895
  {
12751
12896
  name,
@@ -12754,7 +12899,7 @@ var CalendarFormField = (_a) => {
12754
12899
  haveError
12755
12900
  }
12756
12901
  ),
12757
- /* @__PURE__ */ jsx54(
12902
+ /* @__PURE__ */ jsx55(
12758
12903
  Calendar,
12759
12904
  __spreadValues({
12760
12905
  selected,
@@ -12767,14 +12912,83 @@ var CalendarFormField = (_a) => {
12767
12912
  maxYearsFromNow
12768
12913
  }, calendarProps)
12769
12914
  ),
12770
- /* @__PURE__ */ jsx54(ErrorFormMessage, { message: errorMsg })
12915
+ /* @__PURE__ */ jsx55(ErrorFormMessage, { message: errorMsg })
12771
12916
  ] });
12772
12917
  };
12773
12918
 
12774
- // src/components/FormFields/TimePickerFormField.tsx
12775
- import { useController as useController5 } from "react-hook-form";
12919
+ // src/components/FormFields/DoubleCalendarFormField.tsx
12776
12920
  import { useCallback as useCallback6 } from "react";
12777
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
12921
+ import { useController as useController5 } from "react-hook-form";
12922
+ import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
12923
+ var DoubleCalendarFormField = (_a) => {
12924
+ var _b = _a, {
12925
+ name,
12926
+ label,
12927
+ required,
12928
+ validate,
12929
+ validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
12930
+ rules,
12931
+ allowPastDates,
12932
+ maxYearsFromNow = 20
12933
+ } = _b, calendarProps = __objRest(_b, [
12934
+ "name",
12935
+ "label",
12936
+ "required",
12937
+ "validate",
12938
+ "validationErrorMessage",
12939
+ "rules",
12940
+ "allowPastDates",
12941
+ "maxYearsFromNow"
12942
+ ]);
12943
+ const handleValidate = useCallback6(
12944
+ (value) => {
12945
+ var _a2;
12946
+ if (value === void 0 || value === null) {
12947
+ if (required) return validationErrorMessage;
12948
+ return true;
12949
+ }
12950
+ return (_a2 = validate == null ? void 0 : validate(value)) != null ? _a2 : true;
12951
+ },
12952
+ [validate, required, validationErrorMessage]
12953
+ );
12954
+ const { field, fieldState } = useController5({
12955
+ name,
12956
+ rules: __spreadValues({
12957
+ required: required ? validationErrorMessage : false,
12958
+ validate: handleValidate
12959
+ }, rules),
12960
+ defaultValue: void 0
12961
+ });
12962
+ const fieldError = fieldState.error;
12963
+ const haveError = !!fieldError;
12964
+ const errorMsg = fieldError == null ? void 0 : fieldError.message;
12965
+ const { value: selected, onChange: setSelected } = field;
12966
+ const handleCalendarChange = (range) => {
12967
+ setSelected(range);
12968
+ };
12969
+ return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
12970
+ label && /* @__PURE__ */ jsx56(FormLabel, { name, label, required, haveError }),
12971
+ /* @__PURE__ */ jsx56(
12972
+ DoubleCalendar,
12973
+ __spreadValues({
12974
+ selected,
12975
+ setSelected: (value) => {
12976
+ const newValue = typeof value === "function" ? value(selected) : value;
12977
+ handleCalendarChange(newValue);
12978
+ },
12979
+ hasError: haveError,
12980
+ allowPastDates,
12981
+ maxYearsFromNow
12982
+ }, calendarProps)
12983
+ ),
12984
+ /* @__PURE__ */ jsx56(ErrorFormMessage, { message: errorMsg })
12985
+ ] });
12986
+ };
12987
+
12988
+ // src/components/FormFields/TimePickerFormField.tsx
12989
+ import { useController as useController6 } from "react-hook-form";
12990
+ import { useCallback as useCallback7 } from "react";
12991
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
12778
12992
  var TimePickerFormField = (_a) => {
12779
12993
  var _b = _a, {
12780
12994
  name,
@@ -12791,7 +13005,7 @@ var TimePickerFormField = (_a) => {
12791
13005
  "validationErrorMessage",
12792
13006
  "rules"
12793
13007
  ]);
12794
- const handleValidate = useCallback6(
13008
+ const handleValidate = useCallback7(
12795
13009
  (value) => {
12796
13010
  var _a2;
12797
13011
  if (value === void 0 || value === null || value === "") {
@@ -12802,7 +13016,7 @@ var TimePickerFormField = (_a) => {
12802
13016
  },
12803
13017
  [validate, required, validationErrorMessage]
12804
13018
  );
12805
- const { field, fieldState } = useController5({
13019
+ const { field, fieldState } = useController6({
12806
13020
  name,
12807
13021
  rules: __spreadValues({
12808
13022
  required: required ? validationErrorMessage : false,
@@ -12817,8 +13031,8 @@ var TimePickerFormField = (_a) => {
12817
13031
  const handleTimePickerChange = (time) => {
12818
13032
  setSelected(time);
12819
13033
  };
12820
- return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", style: { flex: "1" }, children: [
12821
- label && /* @__PURE__ */ jsx55(
13034
+ return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
13035
+ label && /* @__PURE__ */ jsx57(
12822
13036
  FormLabel,
12823
13037
  {
12824
13038
  name,
@@ -12827,7 +13041,7 @@ var TimePickerFormField = (_a) => {
12827
13041
  haveError
12828
13042
  }
12829
13043
  ),
12830
- /* @__PURE__ */ jsx55(
13044
+ /* @__PURE__ */ jsx57(
12831
13045
  TimePicker,
12832
13046
  __spreadValues({
12833
13047
  selected,
@@ -12838,16 +13052,16 @@ var TimePickerFormField = (_a) => {
12838
13052
  hasError: haveError
12839
13053
  }, timePickerProps)
12840
13054
  ),
12841
- /* @__PURE__ */ jsx55(ErrorFormMessage, { message: errorMsg })
13055
+ /* @__PURE__ */ jsx57(ErrorFormMessage, { message: errorMsg })
12842
13056
  ] });
12843
13057
  };
12844
13058
 
12845
13059
  // src/hooks/useImageUpload.ts
12846
- import { useState as useState12, useCallback as useCallback7 } from "react";
13060
+ import { useState as useState13, useCallback as useCallback8 } from "react";
12847
13061
  var useImageUpload = (options) => {
12848
- const [isUploading, setIsUploading] = useState12(false);
12849
- const [progress, setProgress] = useState12(null);
12850
- const [error, setError] = useState12(null);
13062
+ const [isUploading, setIsUploading] = useState13(false);
13063
+ const [progress, setProgress] = useState13(null);
13064
+ const [error, setError] = useState13(null);
12851
13065
  const {
12852
13066
  onSuccess,
12853
13067
  onError,
@@ -12857,7 +13071,7 @@ var useImageUpload = (options) => {
12857
13071
  allowedTypes = ["image/jpeg", "image/png", "image/gif", "image/webp"],
12858
13072
  uploadConfig
12859
13073
  } = options;
12860
- const validateFile = useCallback7(
13074
+ const validateFile = useCallback8(
12861
13075
  (file) => {
12862
13076
  if (!allowedTypes.includes(file.type)) {
12863
13077
  const errorMsg = "Tipo de arquivo n\xE3o suportado";
@@ -12875,7 +13089,7 @@ var useImageUpload = (options) => {
12875
13089
  },
12876
13090
  [allowedTypes, maxFileSize, onError]
12877
13091
  );
12878
- const uploadFile = useCallback7(
13092
+ const uploadFile = useCallback8(
12879
13093
  (file) => __async(null, null, function* () {
12880
13094
  if (!validateFile(file)) {
12881
13095
  return null;
@@ -12928,7 +13142,7 @@ var useImageUpload = (options) => {
12928
13142
  }),
12929
13143
  [validateFile, onSuccess, onError, onProgress]
12930
13144
  );
12931
- const reset = useCallback7(() => {
13145
+ const reset = useCallback8(() => {
12932
13146
  setIsUploading(false);
12933
13147
  setProgress(null);
12934
13148
  setError(null);
@@ -12976,6 +13190,8 @@ export {
12976
13190
  ContainerStyled,
12977
13191
  CountryFormField,
12978
13192
  Divider,
13193
+ DoubleCalendar,
13194
+ DoubleCalendarFormField,
12979
13195
  Drawer,
12980
13196
  DropdownMenu2 as DropdownMenu,
12981
13197
  DropdownMenuItem,