@lets-events/react 12.5.1 → 12.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1745,7 +1745,7 @@ var SpinningDiv = styled("div", {
1745
1745
 
1746
1746
  // src/components/Button/index.tsx
1747
1747
  import { Button as ButtonRadix2 } from "@radix-ui/themes";
1748
- import { jsx as jsx3 } from "react/jsx-runtime";
1748
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1749
1749
  function Button(_a) {
1750
1750
  var _b = _a, { asChild, children, loading } = _b, props = __objRest(_b, ["asChild", "children", "loading"]);
1751
1751
  const Component = asChild ? ButtonRadix2 : "button";
@@ -1764,7 +1764,21 @@ function Button(_a) {
1764
1764
  return "md";
1765
1765
  }
1766
1766
  }, [size]);
1767
- return /* @__PURE__ */ jsx3(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: loading ? /* @__PURE__ */ jsx3(SpinningDiv, { children: /* @__PURE__ */ jsx3(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1767
+ return /* @__PURE__ */ jsx3(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
1768
+ /* @__PURE__ */ jsx3("div", { style: { visibility: loading ? "hidden" : void 0 }, children }),
1769
+ loading && /* @__PURE__ */ jsx3(
1770
+ "div",
1771
+ {
1772
+ style: {
1773
+ position: "absolute",
1774
+ top: "50%",
1775
+ left: "50%",
1776
+ transform: "translate(-50%, -50%)"
1777
+ },
1778
+ children: /* @__PURE__ */ jsx3(SpinningDiv, { children: /* @__PURE__ */ jsx3(Icon_default, { name: "circle-notch", size: spinnerSize }) })
1779
+ }
1780
+ )
1781
+ ] }) }));
1768
1782
  }
1769
1783
 
1770
1784
  // src/components/ButtonGroup.tsx
@@ -2407,7 +2421,7 @@ function Flex2(_a) {
2407
2421
 
2408
2422
  // src/components/TextField.tsx
2409
2423
  import { format, useMask, unformat } from "@react-input/mask";
2410
- import { jsx as jsx7, jsxs } from "react/jsx-runtime";
2424
+ import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
2411
2425
  var TextFieldStyled = styled(TextFieldRadix.Root, {
2412
2426
  height: "$40",
2413
2427
  fontFamily: "$default",
@@ -2639,8 +2653,8 @@ var TextField = React.forwardRef(
2639
2653
  updateCharCountBadge();
2640
2654
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
2641
2655
  };
2642
- return /* @__PURE__ */ jsxs(Flex2, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2643
- /* @__PURE__ */ jsxs(Flex2, { gap: "0", css: { width: "100%" }, children: [
2656
+ return /* @__PURE__ */ jsxs2(Flex2, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2657
+ /* @__PURE__ */ jsxs2(Flex2, { gap: "0", css: { width: "100%" }, children: [
2644
2658
  !!addon && /* @__PURE__ */ jsx7(
2645
2659
  InputAddon,
2646
2660
  {
@@ -2649,7 +2663,7 @@ var TextField = React.forwardRef(
2649
2663
  children: addon
2650
2664
  }
2651
2665
  ),
2652
- /* @__PURE__ */ jsxs(
2666
+ /* @__PURE__ */ jsxs2(
2653
2667
  TextFieldStyled,
2654
2668
  __spreadProps(__spreadValues({
2655
2669
  color: hasError ? "error" : color || "default",
@@ -3081,7 +3095,7 @@ function CheckboxItem(_a) {
3081
3095
 
3082
3096
  // src/components/Filter.tsx
3083
3097
  import { Theme, DropdownMenu } from "@radix-ui/themes";
3084
- import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
3098
+ import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
3085
3099
  var FilterContentStyled = styled(DropdownMenu.Content, {
3086
3100
  background: "white",
3087
3101
  padding: "$8 $12",
@@ -3191,8 +3205,8 @@ function Filter(_a) {
3191
3205
  "typography",
3192
3206
  "fontWeight"
3193
3207
  ]);
3194
- return /* @__PURE__ */ jsx10(Theme, { children: /* @__PURE__ */ jsx10(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs2(FilterStyled, { typography, fontWeight, children: [
3195
- /* @__PURE__ */ jsx10(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsxs2("button", { "aria-label": placeholder || "Fitrar", children: [
3208
+ return /* @__PURE__ */ jsx10(Theme, { children: /* @__PURE__ */ jsx10(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs3(FilterStyled, { typography, fontWeight, children: [
3209
+ /* @__PURE__ */ jsx10(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "Fitrar", children: [
3196
3210
  /* @__PURE__ */ jsx10(Icon, { name: "filter" }),
3197
3211
  /* @__PURE__ */ jsx10("span", { children: placeholder || "Fitrar" }),
3198
3212
  /* @__PURE__ */ jsx10(DropdownMenu.TriggerIcon, {})
@@ -3227,7 +3241,7 @@ import React2, {
3227
3241
  } from "react";
3228
3242
  import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons";
3229
3243
  import { FontAwesomeIcon as FontAwesomeIcon2 } from "@fortawesome/react-fontawesome";
3230
- import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
3244
+ import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
3231
3245
  var DropdownMenuItemStyled = styled("div", {
3232
3246
  fontFamily: "$default",
3233
3247
  color: "$dark600",
@@ -3392,7 +3406,7 @@ function DropdownMenu2(_a) {
3392
3406
  document.removeEventListener("keydown", handleEscape);
3393
3407
  };
3394
3408
  }, [isOpen]);
3395
- return /* @__PURE__ */ jsxs3(
3409
+ return /* @__PURE__ */ jsxs4(
3396
3410
  DropdownMenuStyled,
3397
3411
  __spreadProps(__spreadValues({
3398
3412
  ref: dropdownRef,
@@ -3401,7 +3415,7 @@ function DropdownMenu2(_a) {
3401
3415
  color
3402
3416
  }, props), {
3403
3417
  children: [
3404
- /* @__PURE__ */ jsxs3(
3418
+ /* @__PURE__ */ jsxs4(
3405
3419
  "button",
3406
3420
  {
3407
3421
  "aria-label": placeholder || "Filtrar",
@@ -3605,7 +3619,7 @@ import { Box as BoxRadix } from "@radix-ui/themes";
3605
3619
  var Box = BoxRadix;
3606
3620
 
3607
3621
  // src/components/Modal.tsx
3608
- import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
3622
+ import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
3609
3623
  var ModalContentStyled = styled(ModalRadix.Content, {
3610
3624
  fontFamily: "$default",
3611
3625
  lineHeight: "$base",
@@ -3666,7 +3680,7 @@ function Modal(_a) {
3666
3680
  "maxWidth"
3667
3681
  ]);
3668
3682
  const { onOpenChange } = props;
3669
- return /* @__PURE__ */ jsxs4(ModalRadix.Root, __spreadProps(__spreadValues({}, props), { children: [
3683
+ return /* @__PURE__ */ jsxs5(ModalRadix.Root, __spreadProps(__spreadValues({}, props), { children: [
3670
3684
  trigger && /* @__PURE__ */ jsx13(ModalRadix.Trigger, { asChild: true, children: trigger }),
3671
3685
  /* @__PURE__ */ jsx13(ModalRadix.Portal, { children: /* @__PURE__ */ jsx13(
3672
3686
  ModalOverlay,
@@ -3674,14 +3688,14 @@ function Modal(_a) {
3674
3688
  css: {
3675
3689
  zIndex
3676
3690
  },
3677
- children: /* @__PURE__ */ jsxs4(
3691
+ children: /* @__PURE__ */ jsxs5(
3678
3692
  ModalContentStyled,
3679
3693
  {
3680
3694
  css: {
3681
3695
  maxWidth
3682
3696
  },
3683
3697
  children: [
3684
- title && /* @__PURE__ */ jsxs4(ModalHeaderStyled, { children: [
3698
+ title && /* @__PURE__ */ jsxs5(ModalHeaderStyled, { children: [
3685
3699
  /* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography: "headline6", fontWeight: "medium", children: title }) }),
3686
3700
  (onOpenChange || trigger) && /* @__PURE__ */ jsx13(ModalRadix.Close, { asChild: true, children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
3687
3701
  ] }),
@@ -3762,7 +3776,7 @@ function useOnClickOutside(ref, handler) {
3762
3776
  }
3763
3777
 
3764
3778
  // src/components/MenuDropdown/index.tsx
3765
- import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
3779
+ import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
3766
3780
  function MenuDropdown({
3767
3781
  children,
3768
3782
  isOpen,
@@ -3772,7 +3786,7 @@ function MenuDropdown({
3772
3786
  useOnClickOutside(dropdownItemsContainerRef, () => {
3773
3787
  setIsOpen(false);
3774
3788
  });
3775
- return /* @__PURE__ */ jsxs5(MenuDropdownContainerStyled, { children: [
3789
+ return /* @__PURE__ */ jsxs6(MenuDropdownContainerStyled, { children: [
3776
3790
  /* @__PURE__ */ jsx14(TriggerButtonStyled, { onClick: () => setIsOpen(!isOpen), children: /* @__PURE__ */ jsx14(Icon_default, { name: "ellipsis", size: "xl", color: "#FFFFFF" }) }),
3777
3791
  isOpen && /* @__PURE__ */ jsx14(MenuItemsContainerStyled, { ref: dropdownItemsContainerRef, children })
3778
3792
  ] });
@@ -7922,7 +7936,7 @@ var DayPickerWrapperStyled = styled("div", {
7922
7936
  });
7923
7937
 
7924
7938
  // src/components/Calendar/index.tsx
7925
- import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
7939
+ import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
7926
7940
  function formatToDateMask(value) {
7927
7941
  const numeric = value.replace(/\D/g, "").slice(0, 8);
7928
7942
  const parts = numeric.match(/^(\d{0,2})(\d{0,2})(\d{0,4})$/);
@@ -7983,7 +7997,7 @@ function Calendar(_a) {
7983
7997
  console.warn("Data inv\xE1lida inserida no input:", masked);
7984
7998
  }
7985
7999
  };
7986
- return /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsxs6(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8000
+ return /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsxs7(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
7987
8001
  /* @__PURE__ */ jsx15(
7988
8002
  CalendarButtonStyled,
7989
8003
  {
@@ -8005,7 +8019,7 @@ function Calendar(_a) {
8005
8019
  )
8006
8020
  }
8007
8021
  ),
8008
- showContainer && /* @__PURE__ */ jsxs6(CalendarContentStyled, { position, children: [
8022
+ showContainer && /* @__PURE__ */ jsxs7(CalendarContentStyled, { position, children: [
8009
8023
  /* @__PURE__ */ jsx15(Box, { children: /* @__PURE__ */ jsx15(DayPickerWrapperStyled, { children: /* @__PURE__ */ jsx15(
8010
8024
  DayPicker,
8011
8025
  {
@@ -8041,7 +8055,7 @@ function Calendar(_a) {
8041
8055
  // src/components/DoubleCalendar/index.tsx
8042
8056
  import { useRef as useRef4, useEffect as useEffect4, useState as useState3 } from "react";
8043
8057
  import { DayPicker as DayPicker2 } from "react-day-picker";
8044
- import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
8058
+ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
8045
8059
  function DoubleCalendar(_a) {
8046
8060
  var _b = _a, {
8047
8061
  action,
@@ -8090,7 +8104,7 @@ function DoubleCalendar(_a) {
8090
8104
  setEndValue("");
8091
8105
  }
8092
8106
  }, [selected]);
8093
- return /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs7(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8107
+ return /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs8(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8094
8108
  /* @__PURE__ */ jsx16(
8095
8109
  CalendarButtonStyled,
8096
8110
  {
@@ -8118,7 +8132,7 @@ function DoubleCalendar(_a) {
8118
8132
  ) })
8119
8133
  }
8120
8134
  ),
8121
- showContainer && /* @__PURE__ */ jsxs7(CalendarContentStyled, { position, children: [
8135
+ showContainer && /* @__PURE__ */ jsxs8(CalendarContentStyled, { position, children: [
8122
8136
  /* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(DayPickerWrapperStyled, { children: /* @__PURE__ */ jsx16(
8123
8137
  DayPicker2,
8124
8138
  {
@@ -8134,7 +8148,7 @@ function DoubleCalendar(_a) {
8134
8148
  toMonth: maxDate
8135
8149
  }
8136
8150
  ) }) }),
8137
- action && /* @__PURE__ */ jsxs7(CalendarFooterStyled, { children: [
8151
+ action && /* @__PURE__ */ jsxs8(CalendarFooterStyled, { children: [
8138
8152
  /* @__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"}` }) }),
8139
8153
  /* @__PURE__ */ jsx16(
8140
8154
  Button,
@@ -8268,7 +8282,7 @@ var GoBackButtonStyled = styled("button", {
8268
8282
  });
8269
8283
 
8270
8284
  // src/components/Drawer/index.tsx
8271
- import { Fragment, jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
8285
+ import { Fragment, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
8272
8286
  function Drawer({
8273
8287
  isOpen,
8274
8288
  onClose,
@@ -8295,7 +8309,7 @@ function Drawer({
8295
8309
  document.body.style.paddingRight = "";
8296
8310
  };
8297
8311
  }, [isOpen]);
8298
- return /* @__PURE__ */ jsxs8(Fragment, { children: [
8312
+ return /* @__PURE__ */ jsxs9(Fragment, { children: [
8299
8313
  /* @__PURE__ */ jsx17(
8300
8314
  DrawerOverlayStyled,
8301
8315
  {
@@ -8315,7 +8329,7 @@ function Drawer({
8315
8329
  maxWidth: "100%"
8316
8330
  },
8317
8331
  open: isOpen,
8318
- children: /* @__PURE__ */ jsxs8(
8332
+ children: /* @__PURE__ */ jsxs9(
8319
8333
  DrawerContainerStyled,
8320
8334
  {
8321
8335
  open: isOpen,
@@ -8323,8 +8337,8 @@ function Drawer({
8323
8337
  backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
8324
8338
  },
8325
8339
  children: [
8326
- /* @__PURE__ */ jsxs8(DrawerHeaderDiv, { children: [
8327
- /* @__PURE__ */ jsxs8(Flex2, { gap: 8, align: "center", children: [
8340
+ /* @__PURE__ */ jsxs9(DrawerHeaderDiv, { children: [
8341
+ /* @__PURE__ */ jsxs9(Flex2, { gap: 8, align: "center", children: [
8328
8342
  goBackIcon && goBackIcon && /* @__PURE__ */ jsx17(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8329
8343
  /* @__PURE__ */ jsx17(DrawerHeaderTitle, { children: title })
8330
8344
  ] }),
@@ -8341,7 +8355,7 @@ function Drawer({
8341
8355
 
8342
8356
  // src/components/TimePicker.tsx
8343
8357
  import { useCallback, useRef as useRef6, useState as useState4 } from "react";
8344
- import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
8358
+ import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
8345
8359
  var TimePickerStyled = styled("div", {
8346
8360
  position: "relative",
8347
8361
  width: "fit-content",
@@ -8498,7 +8512,7 @@ function TimePicker({
8498
8512
  },
8499
8513
  [hours, minutes]
8500
8514
  );
8501
- return /* @__PURE__ */ jsxs9(TimePickerStyled, { ref: dropdownRef, expand, children: [
8515
+ return /* @__PURE__ */ jsxs10(TimePickerStyled, { ref: dropdownRef, expand, children: [
8502
8516
  /* @__PURE__ */ jsx18(
8503
8517
  TimePickerButtonStyled,
8504
8518
  {
@@ -8520,13 +8534,13 @@ function TimePicker({
8520
8534
  )
8521
8535
  }
8522
8536
  ),
8523
- isOpen && /* @__PURE__ */ jsxs9(
8537
+ isOpen && /* @__PURE__ */ jsxs10(
8524
8538
  TimePickerDropdownStyled,
8525
8539
  {
8526
8540
  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" },
8527
8541
  children: [
8528
- /* @__PURE__ */ jsxs9(TimerPickerContentStyled, { children: [
8529
- ["hours", "minutes"].map((unit) => /* @__PURE__ */ jsxs9(
8542
+ /* @__PURE__ */ jsxs10(TimerPickerContentStyled, { children: [
8543
+ ["hours", "minutes"].map((unit) => /* @__PURE__ */ jsxs10(
8530
8544
  Box,
8531
8545
  {
8532
8546
  style: {
@@ -8541,7 +8555,7 @@ function TimePicker({
8541
8555
  type: "button",
8542
8556
  variant: "text",
8543
8557
  onClick: () => handleIncrement(unit),
8544
- children: /* @__PURE__ */ jsxs9(
8558
+ children: /* @__PURE__ */ jsxs10(
8545
8559
  "svg",
8546
8560
  {
8547
8561
  xmlns: "http://www.w3.org/2000/svg",
@@ -8613,7 +8627,7 @@ function TimePicker({
8613
8627
  type: "button",
8614
8628
  variant: "text",
8615
8629
  onClick: () => handleDecrement(unit),
8616
- children: /* @__PURE__ */ jsxs9(
8630
+ children: /* @__PURE__ */ jsxs10(
8617
8631
  "svg",
8618
8632
  {
8619
8633
  xmlns: "http://www.w3.org/2000/svg",
@@ -8670,7 +8684,7 @@ function TimePicker({
8670
8684
 
8671
8685
  // src/components/Alert.tsx
8672
8686
  import { Theme as Theme2, AlertDialog } from "@radix-ui/themes";
8673
- import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
8687
+ import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
8674
8688
  var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
8675
8689
  fontFamily: "$default",
8676
8690
  lineHeight: "$base",
@@ -8784,19 +8798,19 @@ function Alert(_a) {
8784
8798
  "completAlert",
8785
8799
  "simpleAlert"
8786
8800
  ]);
8787
- return /* @__PURE__ */ jsxs10(Fragment2, { children: [
8788
- simpleAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs10(AlertDialog.Root, { children: [
8801
+ return /* @__PURE__ */ jsxs11(Fragment2, { children: [
8802
+ simpleAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs11(AlertDialog.Root, { children: [
8789
8803
  /* @__PURE__ */ jsx19(AlertDialog.Trigger, { children: trigger }),
8790
- /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs10(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8804
+ /* @__PURE__ */ jsx19(Fragment2, { children: /* @__PURE__ */ jsxs11(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8791
8805
  /* @__PURE__ */ jsx19(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8792
8806
  simpleAlert.cancel && /* @__PURE__ */ jsx19(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx19(Button, { variant: "text", children: /* @__PURE__ */ jsx19(Icon_default, { name: "close" }) }) })
8793
8807
  ] })) })
8794
8808
  ] }) }),
8795
- completAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs10(AlertDialog.Root, { children: [
8809
+ completAlert && /* @__PURE__ */ jsx19(Theme2, { children: /* @__PURE__ */ jsxs11(AlertDialog.Root, { children: [
8796
8810
  /* @__PURE__ */ jsx19(AlertDialog.Trigger, { children: trigger }),
8797
- /* @__PURE__ */ jsxs10(AlertDialogCompleteStyled, { children: [
8798
- /* @__PURE__ */ jsxs10(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8799
- color === "success" && /* @__PURE__ */ jsxs10(
8811
+ /* @__PURE__ */ jsxs11(AlertDialogCompleteStyled, { children: [
8812
+ /* @__PURE__ */ jsxs11(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8813
+ color === "success" && /* @__PURE__ */ jsxs11(
8800
8814
  "svg",
8801
8815
  {
8802
8816
  width: "56",
@@ -8816,7 +8830,7 @@ function Alert(_a) {
8816
8830
  ]
8817
8831
  }
8818
8832
  ),
8819
- color === "error" && /* @__PURE__ */ jsxs10(
8833
+ color === "error" && /* @__PURE__ */ jsxs11(
8820
8834
  "svg",
8821
8835
  {
8822
8836
  width: "56",
@@ -8836,7 +8850,7 @@ function Alert(_a) {
8836
8850
  ]
8837
8851
  }
8838
8852
  ),
8839
- color === "warning" && /* @__PURE__ */ jsxs10(
8853
+ color === "warning" && /* @__PURE__ */ jsxs11(
8840
8854
  "svg",
8841
8855
  {
8842
8856
  width: "56",
@@ -8856,7 +8870,7 @@ function Alert(_a) {
8856
8870
  ]
8857
8871
  }
8858
8872
  ),
8859
- color === "info" && /* @__PURE__ */ jsxs10(
8873
+ color === "info" && /* @__PURE__ */ jsxs11(
8860
8874
  "svg",
8861
8875
  {
8862
8876
  width: "40",
@@ -8877,7 +8891,7 @@ function Alert(_a) {
8877
8891
  }
8878
8892
  ),
8879
8893
  completAlert.title && /* @__PURE__ */ jsx19(AlertDialogTitleStyled, { children: completAlert.title }),
8880
- /* @__PURE__ */ jsxs10(AlertDialogDescriptionStyled, { children: [
8894
+ /* @__PURE__ */ jsxs11(AlertDialogDescriptionStyled, { children: [
8881
8895
  completAlert.subtitle && /* @__PURE__ */ jsx19(
8882
8896
  Text,
8883
8897
  {
@@ -8892,7 +8906,7 @@ function Alert(_a) {
8892
8906
  ] })
8893
8907
  ] }),
8894
8908
  completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx19(AlertDialoghrStyled, {}) : null,
8895
- /* @__PURE__ */ jsx19(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs10(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8909
+ /* @__PURE__ */ jsx19(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs11(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8896
8910
  completAlert.onAction && /* @__PURE__ */ jsx19(AlertDialog.Action, { children: /* @__PURE__ */ jsx19(
8897
8911
  Button,
8898
8912
  {
@@ -9204,7 +9218,7 @@ function Card(_a) {
9204
9218
  // src/components/TextareaField.tsx
9205
9219
  import { TextArea as TextAreaRadix } from "@radix-ui/themes";
9206
9220
  import React9, { useRef as useRef7, useState as useState5, useEffect as useEffect6 } from "react";
9207
- import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
9221
+ import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
9208
9222
  var TextareaFieldStyle = styled(TextAreaRadix, {
9209
9223
  display: "flex",
9210
9224
  flex: 1,
@@ -9271,7 +9285,7 @@ var TextareaField = React9.forwardRef((_a, forwardedRef) => {
9271
9285
  }
9272
9286
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9273
9287
  };
9274
- return /* @__PURE__ */ jsxs11(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9288
+ return /* @__PURE__ */ jsxs12(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9275
9289
  maxLength && /* @__PURE__ */ jsx23(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9276
9290
  /* @__PURE__ */ jsx23(TextareaContainer, { color, children: /* @__PURE__ */ jsx23(
9277
9291
  TextareaFieldStyle,
@@ -9419,7 +9433,7 @@ var ToastClose = styled(ToastPrimitive.Close, {
9419
9433
  });
9420
9434
 
9421
9435
  // src/components/Toast/components/ToastItem.tsx
9422
- import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
9436
+ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
9423
9437
  function ToastItem({
9424
9438
  toast,
9425
9439
  onRemove
@@ -9431,7 +9445,7 @@ function ToastItem({
9431
9445
  onRemove(toast.id);
9432
9446
  }
9433
9447
  };
9434
- return /* @__PURE__ */ jsxs12(
9448
+ return /* @__PURE__ */ jsxs13(
9435
9449
  ToastRoot,
9436
9450
  {
9437
9451
  type: toast.type,
@@ -9450,7 +9464,7 @@ function ToastItem({
9450
9464
  // src/components/Toast/components/ToastProvider.tsx
9451
9465
  import { createContext, useState as useState7 } from "react";
9452
9466
  import * as ToastPrimitive2 from "@radix-ui/react-toast";
9453
- import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
9467
+ import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
9454
9468
  var ToastContext = createContext(null);
9455
9469
  function ToastProvider({
9456
9470
  children,
@@ -9486,7 +9500,7 @@ function ToastProvider({
9486
9500
  removeToast,
9487
9501
  removeAllToasts
9488
9502
  };
9489
- return /* @__PURE__ */ jsx25(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs13(ToastPrimitive2.Provider, { swipeDirection, children: [
9503
+ return /* @__PURE__ */ jsx25(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs14(ToastPrimitive2.Provider, { swipeDirection, children: [
9490
9504
  children,
9491
9505
  toasts.map((toast) => /* @__PURE__ */ jsx25(ToastItem, { toast, onRemove: removeToast }, toast.id)),
9492
9506
  /* @__PURE__ */ jsx25(ToastViewport, {})
@@ -9505,7 +9519,7 @@ var useToast = () => {
9505
9519
 
9506
9520
  // src/components/Tooltip/index.tsx
9507
9521
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
9508
- import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9522
+ import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
9509
9523
  var TooltipProvider = TooltipPrimitive.Provider;
9510
9524
  var TooltipRoot = TooltipPrimitive.Root;
9511
9525
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -9544,9 +9558,9 @@ function Tooltip({
9544
9558
  delayDuration = 200,
9545
9559
  side = "top"
9546
9560
  }) {
9547
- return /* @__PURE__ */ jsx26(TooltipProvider, { children: /* @__PURE__ */ jsxs14(TooltipRoot, { delayDuration, children: [
9561
+ return /* @__PURE__ */ jsx26(TooltipProvider, { children: /* @__PURE__ */ jsxs15(TooltipRoot, { delayDuration, children: [
9548
9562
  /* @__PURE__ */ jsx26(TooltipTrigger, { asChild: true, children }),
9549
- /* @__PURE__ */ jsxs14(TooltipContent, { side, sideOffset: 5, children: [
9563
+ /* @__PURE__ */ jsxs15(TooltipContent, { side, sideOffset: 5, children: [
9550
9564
  typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", children: content }) : content,
9551
9565
  /* @__PURE__ */ jsx26(TooltipArrow, {})
9552
9566
  ] })
@@ -9711,7 +9725,7 @@ var ButtonSelectAllStyled = styled("button", {
9711
9725
  });
9712
9726
 
9713
9727
  // src/components/MultiSelect/index.tsx
9714
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
9728
+ import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
9715
9729
  var MultiSelect = React10.forwardRef(
9716
9730
  ({
9717
9731
  placeholder,
@@ -9782,9 +9796,9 @@ var MultiSelect = React10.forwardRef(
9782
9796
  },
9783
9797
  [disabled]
9784
9798
  );
9785
- return /* @__PURE__ */ jsxs15(Theme3, { style: width !== "100%" ? { width } : void 0, children: [
9786
- /* @__PURE__ */ jsxs15(DropdownMenu4.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9787
- /* @__PURE__ */ jsx27(DropdownMenu4.Trigger, { children: /* @__PURE__ */ jsxs15(
9799
+ return /* @__PURE__ */ jsxs16(Theme3, { style: width !== "100%" ? { width } : void 0, children: [
9800
+ /* @__PURE__ */ jsxs16(DropdownMenu4.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9801
+ /* @__PURE__ */ jsx27(DropdownMenu4.Trigger, { children: /* @__PURE__ */ jsxs16(
9788
9802
  StyledTrigger,
9789
9803
  {
9790
9804
  ref: (r) => {
@@ -9832,11 +9846,9 @@ var MultiSelect = React10.forwardRef(
9832
9846
  value: selectedValues,
9833
9847
  onValueChange: (v) => {
9834
9848
  onValueChange == null ? void 0 : onValueChange(v);
9835
- if (allOptionsSelected) {
9836
- setAllOptionsSelected(false);
9837
- }
9849
+ setAllOptionsSelected((v || []).length === options.length);
9838
9850
  },
9839
- children: /* @__PURE__ */ jsxs15(
9851
+ children: /* @__PURE__ */ jsxs16(
9840
9852
  StyledFlexWithMaxHeight,
9841
9853
  {
9842
9854
  direction: "column",
@@ -9844,7 +9856,7 @@ var MultiSelect = React10.forwardRef(
9844
9856
  hasMaxHeight: !!maxHeight,
9845
9857
  style: maxHeight ? { maxHeight } : void 0,
9846
9858
  children: [
9847
- selectedAllOptions && /* @__PURE__ */ jsxs15(
9859
+ selectedAllOptions && /* @__PURE__ */ jsxs16(
9848
9860
  ButtonSelectAllStyled,
9849
9861
  {
9850
9862
  css: itemStyle,
@@ -9884,7 +9896,38 @@ var MultiSelect = React10.forwardRef(
9884
9896
  align: selectedOrientation === "column" ? "start" : "center",
9885
9897
  justify: "start",
9886
9898
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9887
- children: selectedValues.map((value) => /* @__PURE__ */ jsxs15(
9899
+ children: allOptionsSelected ? /* @__PURE__ */ jsxs16(
9900
+ Flex2,
9901
+ {
9902
+ gap: 4,
9903
+ align: "center",
9904
+ css: { flexWrap: "wrap" },
9905
+ children: [
9906
+ /* @__PURE__ */ jsx27(
9907
+ CloseBtnStyled,
9908
+ {
9909
+ onClick: (e) => {
9910
+ e.stopPropagation();
9911
+ onValueChange == null ? void 0 : onValueChange([]);
9912
+ setAllOptionsSelected(false);
9913
+ },
9914
+ type: "button",
9915
+ children: /* @__PURE__ */ jsx27(FontAwesomeIcon3, { icon: faSquareXmark, size: "sm" })
9916
+ }
9917
+ ),
9918
+ /* @__PURE__ */ jsx27(
9919
+ Text,
9920
+ {
9921
+ typography: "captionMedium",
9922
+ fontWeight: "regular",
9923
+ color: "dark600",
9924
+ children: "Todos selecionados"
9925
+ }
9926
+ )
9927
+ ]
9928
+ },
9929
+ "all-selected"
9930
+ ) : selectedValues.map((value) => /* @__PURE__ */ jsxs16(
9888
9931
  Flex2,
9889
9932
  {
9890
9933
  gap: 4,
@@ -10122,20 +10165,22 @@ function Section(_a) {
10122
10165
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
10123
10166
  import { faXmarkCircle } from "@fortawesome/free-solid-svg-icons";
10124
10167
  import { FontAwesomeIcon as FontAwesomeIcon4 } from "@fortawesome/react-fontawesome";
10125
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
10168
+ import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
10126
10169
  var ErrorFormMessage = ({ message: message2 }) => {
10127
10170
  if (!message2) return null;
10128
10171
  if (typeof message2 !== "string") {
10129
10172
  return null;
10130
10173
  }
10131
- return /* @__PURE__ */ jsxs16(Flex2, { justify: "start", align: "center", gap: 6, children: [
10174
+ return /* @__PURE__ */ jsxs17(Flex2, { justify: "start", align: "center", gap: 6, children: [
10132
10175
  /* @__PURE__ */ jsx31(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10133
10176
  /* @__PURE__ */ jsx31(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10134
10177
  ] });
10135
10178
  };
10136
10179
 
10137
10180
  // src/components/FormFields/subComponents/FormLabel.tsx
10138
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
10181
+ import { FontAwesomeIcon as FontAwesomeIcon5 } from "@fortawesome/react-fontawesome";
10182
+ import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
10183
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
10139
10184
  var FormLabel = ({
10140
10185
  name,
10141
10186
  label,
@@ -10143,24 +10188,24 @@ var FormLabel = ({
10143
10188
  required
10144
10189
  }) => {
10145
10190
  if (!label) return null;
10146
- return /* @__PURE__ */ jsxs17(
10147
- Text,
10148
- {
10149
- typography: "labelMedium",
10150
- fontWeight: "medium",
10151
- color: haveError ? "error600" : "dark700",
10152
- id: `${name}-label`,
10153
- children: [
10154
- label,
10155
- !required && /* @__PURE__ */ jsx32(Text, { color: "dark500", children: " (opcional)" })
10156
- ]
10157
- }
10158
- );
10191
+ return /* @__PURE__ */ jsxs18(Flex2, { align: "start", gap: 6, children: [
10192
+ /* @__PURE__ */ jsx32(
10193
+ Text,
10194
+ {
10195
+ typography: "labelMedium",
10196
+ fontWeight: "medium",
10197
+ color: haveError ? "error600" : "dark700",
10198
+ id: `${name}-label`,
10199
+ children: label
10200
+ }
10201
+ ),
10202
+ required && /* @__PURE__ */ jsx32(FontAwesomeIcon5, { icon: faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10203
+ ] });
10159
10204
  };
10160
10205
 
10161
10206
  // src/components/FormFields/TextAreaFormField.tsx
10162
10207
  import { useFormContext } from "react-hook-form";
10163
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
10208
+ import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
10164
10209
  var TextAreaFormField = (_a) => {
10165
10210
  var _b = _a, {
10166
10211
  name,
@@ -10192,7 +10237,7 @@ var TextAreaFormField = (_a) => {
10192
10237
  required: required ? validationErrorMessage : false,
10193
10238
  validate
10194
10239
  };
10195
- return /* @__PURE__ */ jsxs18(Flex2, { direction: "column", children: [
10240
+ return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10196
10241
  /* @__PURE__ */ jsx33(
10197
10242
  FormLabel,
10198
10243
  {
@@ -10222,7 +10267,7 @@ import {
10222
10267
  } from "react-hook-form";
10223
10268
  import { useCallback as useCallback3, useMemo as useMemo3 } from "react";
10224
10269
  import { format as format3, unformat as unformat2 } from "@react-input/mask";
10225
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
10270
+ import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
10226
10271
  var TextFormField = (_a) => {
10227
10272
  var _b = _a, {
10228
10273
  name,
@@ -10277,7 +10322,7 @@ var TextFormField = (_a) => {
10277
10322
  if (valueFormatter) value = valueFormatter.unformat(value);
10278
10323
  formChange(value);
10279
10324
  };
10280
- return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10325
+ return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10281
10326
  label && /* @__PURE__ */ jsx34(
10282
10327
  FormLabel,
10283
10328
  {
@@ -10329,7 +10374,7 @@ var Form = (_a) => {
10329
10374
 
10330
10375
  // src/components/FormFields/MultiSelectFormField.tsx
10331
10376
  import { useController as useController2 } from "react-hook-form";
10332
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
10377
+ import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
10333
10378
  var MultiSelectFormField = (_a) => {
10334
10379
  var _b = _a, {
10335
10380
  name,
@@ -10360,7 +10405,7 @@ var MultiSelectFormField = (_a) => {
10360
10405
  const handleChange = (v) => {
10361
10406
  onChange(v);
10362
10407
  };
10363
- return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10408
+ return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10364
10409
  /* @__PURE__ */ jsx36(
10365
10410
  FormLabel,
10366
10411
  {
@@ -10436,7 +10481,7 @@ var PhoneFormField = ({
10436
10481
 
10437
10482
  // src/components/FormFields/CPFFormField.tsx
10438
10483
  import { useFormContext as useFormContext3, useWatch } from "react-hook-form";
10439
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
10484
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
10440
10485
  var isValidCPF = (cpf) => {
10441
10486
  cpf = cpf.replace(/[^\d]+/g, "");
10442
10487
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10462,7 +10507,7 @@ var CPFFormField = ({
10462
10507
  }) => {
10463
10508
  const { control, setValue } = useFormContext3();
10464
10509
  const foreigner = useWatch({ name: "foreigner", control });
10465
- return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10510
+ return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10466
10511
  /* @__PURE__ */ jsx38(
10467
10512
  TextFormField,
10468
10513
  {
@@ -10665,7 +10710,7 @@ function getNestedValue(obj, path) {
10665
10710
  }
10666
10711
 
10667
10712
  // src/components/FormFields/SelectFormField.tsx
10668
- import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10713
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
10669
10714
  var SelectFormField = ({
10670
10715
  name,
10671
10716
  label,
@@ -10686,7 +10731,7 @@ var SelectFormField = ({
10686
10731
  const validationRules = __spreadValues({
10687
10732
  required: required ? validationErrorMessage : false
10688
10733
  }, validation);
10689
- return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10734
+ return /* @__PURE__ */ jsxs23(Flex2, { direction: "column", children: [
10690
10735
  /* @__PURE__ */ jsx42(
10691
10736
  FormLabel,
10692
10737
  {
@@ -10949,7 +10994,7 @@ function CityFormField({
10949
10994
  }
10950
10995
 
10951
10996
  // src/components/FormFields/AddressFormFields/index.tsx
10952
- import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
10997
+ import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
10953
10998
  function getNestedValue2(obj, path) {
10954
10999
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
10955
11000
  }
@@ -10999,7 +11044,7 @@ function AddressFormFields({
10999
11044
  console.error("Erro ao buscar CEP");
11000
11045
  });
11001
11046
  };
11002
- return /* @__PURE__ */ jsxs23(AddressContainerStyled, { layout, children: [
11047
+ return /* @__PURE__ */ jsxs24(AddressContainerStyled, { layout, children: [
11003
11048
  /* @__PURE__ */ jsx47(
11004
11049
  FormLabel,
11005
11050
  {
@@ -11078,7 +11123,7 @@ function AddressFormFields({
11078
11123
 
11079
11124
  // src/components/FormFields/RadioGroupFormField.tsx
11080
11125
  import { Controller as Controller3, useFormContext as useFormContext7 } from "react-hook-form";
11081
- import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
11126
+ import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
11082
11127
  var RadioGroupFormField = ({
11083
11128
  name,
11084
11129
  label,
@@ -11100,7 +11145,7 @@ var RadioGroupFormField = ({
11100
11145
  const validationRules = {
11101
11146
  required: required ? validationErrorMessage : false
11102
11147
  };
11103
- return /* @__PURE__ */ jsxs24(Flex2, { direction: "column", children: [
11148
+ return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11104
11149
  /* @__PURE__ */ jsx48(
11105
11150
  FormLabel,
11106
11151
  {
@@ -11125,10 +11170,7 @@ var RadioGroupFormField = ({
11125
11170
  color: haveError ? "error" : color,
11126
11171
  fontWeight,
11127
11172
  disabled,
11128
- children: options.map((option) => /* @__PURE__ */ jsxs24("label", { children: [
11129
- /* @__PURE__ */ jsx48(RadioItem, { value: option.value }),
11130
- option.label
11131
- ] }, option.value))
11173
+ children: /* @__PURE__ */ jsx48(Flex2, { direction: "column", children: options.map((option) => /* @__PURE__ */ jsx48(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx48(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11132
11174
  }
11133
11175
  )
11134
11176
  }
@@ -11139,7 +11181,7 @@ var RadioGroupFormField = ({
11139
11181
 
11140
11182
  // src/components/FormFields/CheckboxGroupFormField.tsx
11141
11183
  import { Controller as Controller4, useFormContext as useFormContext8 } from "react-hook-form";
11142
- import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
11184
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
11143
11185
  var CheckboxGroupFormField = ({
11144
11186
  name,
11145
11187
  label,
@@ -11162,7 +11204,7 @@ var CheckboxGroupFormField = ({
11162
11204
  required: required ? validationErrorMessage : false,
11163
11205
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11164
11206
  };
11165
- return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11207
+ return /* @__PURE__ */ jsxs26(Flex2, { direction: "column", children: [
11166
11208
  /* @__PURE__ */ jsx49(
11167
11209
  FormLabel,
11168
11210
  {
@@ -11207,7 +11249,7 @@ var CheckboxGroupFormField = ({
11207
11249
 
11208
11250
  // src/components/FormFields/SwitchFormField.tsx
11209
11251
  import { useFormContext as useFormContext9, Controller as Controller5 } from "react-hook-form";
11210
- import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
11252
+ import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
11211
11253
  var SwitchFormField = ({
11212
11254
  name,
11213
11255
  label,
@@ -11221,7 +11263,7 @@ var SwitchFormField = ({
11221
11263
  if (watch) {
11222
11264
  watchForm(name);
11223
11265
  }
11224
- return /* @__PURE__ */ jsxs26(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11266
+ return /* @__PURE__ */ jsxs27(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11225
11267
  /* @__PURE__ */ jsx50(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11226
11268
  /* @__PURE__ */ jsx50(
11227
11269
  Controller5,
@@ -12325,7 +12367,7 @@ var QuillEditor = styled("div", {
12325
12367
  });
12326
12368
 
12327
12369
  // src/components/RichEditor/QuillComponent.tsx
12328
- import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
12370
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
12329
12371
  var QuillComponent = ({
12330
12372
  value = "",
12331
12373
  onChange,
@@ -12587,7 +12629,7 @@ var QuillComponent = ({
12587
12629
  document.addEventListener("mousedown", handleClickOutside);
12588
12630
  return () => document.removeEventListener("mousedown", handleClickOutside);
12589
12631
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12590
- return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs27(QuillEditor, { style: { position: "relative" }, children: [
12632
+ return /* @__PURE__ */ jsx52(QuillContainer, { className, children: /* @__PURE__ */ jsxs28(QuillEditor, { style: { position: "relative" }, children: [
12591
12633
  /* @__PURE__ */ jsx52("div", { ref: quillRef }),
12592
12634
  showVideoModal && /* @__PURE__ */ jsx52(
12593
12635
  "div",
@@ -12606,7 +12648,7 @@ var QuillComponent = ({
12606
12648
  zIndex: 1e3,
12607
12649
  width: "fit-content"
12608
12650
  },
12609
- children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12651
+ children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12610
12652
  /* @__PURE__ */ jsx52(
12611
12653
  Text,
12612
12654
  {
@@ -12676,7 +12718,7 @@ var QuillComponent = ({
12676
12718
  zIndex: 1e3,
12677
12719
  width: "fit-content"
12678
12720
  },
12679
- children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12721
+ children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12680
12722
  /* @__PURE__ */ jsx52(
12681
12723
  Text,
12682
12724
  {
@@ -12748,7 +12790,7 @@ var RichEditor_default = RichEditor;
12748
12790
 
12749
12791
  // src/components/FormFields/RichEditorFormField.tsx
12750
12792
  import { useState as useState12 } from "react";
12751
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
12793
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
12752
12794
  var RichEditorFormField = (_a) => {
12753
12795
  var _b = _a, {
12754
12796
  name,
@@ -12791,8 +12833,8 @@ var RichEditorFormField = (_a) => {
12791
12833
  const fieldError = fieldState.error;
12792
12834
  const haveError = !!fieldError;
12793
12835
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12794
- return /* @__PURE__ */ jsxs28(Flex2, { direction: "column", children: [
12795
- maxLength ? /* @__PURE__ */ jsxs28(Flex2, { direction: "row", justify: "between", children: [
12836
+ return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", children: [
12837
+ maxLength ? /* @__PURE__ */ jsxs29(Flex2, { direction: "row", justify: "between", children: [
12796
12838
  label && /* @__PURE__ */ jsx54(
12797
12839
  FormLabel,
12798
12840
  {
@@ -12831,7 +12873,7 @@ var RichEditorFormField = (_a) => {
12831
12873
  // src/components/FormFields/CalendarFormField.tsx
12832
12874
  import { useController as useController4 } from "react-hook-form";
12833
12875
  import { useCallback as useCallback5 } from "react";
12834
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
12876
+ import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
12835
12877
  var CalendarFormField = (_a) => {
12836
12878
  var _b = _a, {
12837
12879
  name,
@@ -12880,7 +12922,7 @@ var CalendarFormField = (_a) => {
12880
12922
  const handleCalendarChange = (date) => {
12881
12923
  setSelected(date);
12882
12924
  };
12883
- return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", style: { flex: "1" }, children: [
12925
+ return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
12884
12926
  label && /* @__PURE__ */ jsx55(
12885
12927
  FormLabel,
12886
12928
  {
@@ -12910,7 +12952,7 @@ var CalendarFormField = (_a) => {
12910
12952
  // src/components/FormFields/DoubleCalendarFormField.tsx
12911
12953
  import { useCallback as useCallback6 } from "react";
12912
12954
  import { useController as useController5 } from "react-hook-form";
12913
- import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
12955
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
12914
12956
  var DoubleCalendarFormField = (_a) => {
12915
12957
  var _b = _a, {
12916
12958
  name,
@@ -12959,7 +13001,7 @@ var DoubleCalendarFormField = (_a) => {
12959
13001
  const handleCalendarChange = (range) => {
12960
13002
  setSelected(range);
12961
13003
  };
12962
- return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
13004
+ return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
12963
13005
  label && /* @__PURE__ */ jsx56(FormLabel, { name, label, required, haveError }),
12964
13006
  /* @__PURE__ */ jsx56(
12965
13007
  DoubleCalendar,
@@ -12982,7 +13024,7 @@ var DoubleCalendarFormField = (_a) => {
12982
13024
  // src/components/FormFields/TimePickerFormField.tsx
12983
13025
  import { useController as useController6 } from "react-hook-form";
12984
13026
  import { useCallback as useCallback7 } from "react";
12985
- import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
13027
+ import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
12986
13028
  var TimePickerFormField = (_a) => {
12987
13029
  var _b = _a, {
12988
13030
  name,
@@ -13025,7 +13067,7 @@ var TimePickerFormField = (_a) => {
13025
13067
  const handleTimePickerChange = (time) => {
13026
13068
  setSelected(time);
13027
13069
  };
13028
- return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
13070
+ return /* @__PURE__ */ jsxs32(Flex2, { direction: "column", style: { flex: "1" }, children: [
13029
13071
  label && /* @__PURE__ */ jsx57(
13030
13072
  FormLabel,
13031
13073
  {