@lets-events/react 12.6.0 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @lets-events/react@12.6.0 build
2
+ > @lets-events/react@12.6.1 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,16 +9,11 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- CJS dist\index.js 403.16 KB
13
- CJS ⚡️ Build success in 1079ms
14
- ESM dist\index.mjs 388.31 KB
15
- ESM ⚡️ Build success in 1080ms
12
+ ESM dist\index.mjs 389.01 KB
13
+ ESM ⚡️ Build success in 203ms
14
+ CJS dist\index.js 404.02 KB
15
+ CJS ⚡️ Build success in 203ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 9868ms
17
+ DTS ⚡️ Build success in 4551ms
18
18
  DTS dist\index.d.mts 402.83 KB
19
19
  DTS dist\index.d.ts 402.83 KB
20
- npm notice
21
- npm notice New minor version of npm available! 11.5.1 -> 11.7.0
22
- npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.7.0
23
- npm notice To update run: npm install -g npm@11.7.0
24
- npm notice
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix textformfield label
8
+
3
9
  ## 12.6.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1882,7 +1882,21 @@ function Button(_a) {
1882
1882
  return "md";
1883
1883
  }
1884
1884
  }, [size]);
1885
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1885
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { position: "relative" }, children: [
1886
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { visibility: loading ? "hidden" : void 0 }, children }),
1887
+ loading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1888
+ "div",
1889
+ {
1890
+ style: {
1891
+ position: "absolute",
1892
+ top: "50%",
1893
+ left: "50%",
1894
+ transform: "translate(-50%, -50%)"
1895
+ },
1896
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) })
1897
+ }
1898
+ )
1899
+ ] }) }));
1886
1900
  }
1887
1901
 
1888
1902
  // src/components/ButtonGroup.tsx
@@ -10274,6 +10288,8 @@ var ErrorFormMessage = ({ message: message2 }) => {
10274
10288
  };
10275
10289
 
10276
10290
  // src/components/FormFields/subComponents/FormLabel.tsx
10291
+ var import_react_fontawesome5 = require("@fortawesome/react-fontawesome");
10292
+ var import_free_solid_svg_icons5 = require("@fortawesome/free-solid-svg-icons");
10277
10293
  var import_jsx_runtime32 = require("react/jsx-runtime");
10278
10294
  var FormLabel = ({
10279
10295
  name,
@@ -10282,19 +10298,19 @@ var FormLabel = ({
10282
10298
  required
10283
10299
  }) => {
10284
10300
  if (!label) return null;
10285
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
10286
- Text,
10287
- {
10288
- typography: "labelMedium",
10289
- fontWeight: "medium",
10290
- color: haveError ? "error600" : "dark700",
10291
- id: `${name}-label`,
10292
- children: [
10293
- label,
10294
- !required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: "dark500", children: " (opcional)" })
10295
- ]
10296
- }
10297
- );
10301
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex2, { align: "start", gap: 6, children: [
10302
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10303
+ Text,
10304
+ {
10305
+ typography: "labelMedium",
10306
+ fontWeight: "medium",
10307
+ color: haveError ? "error600" : "dark700",
10308
+ id: `${name}-label`,
10309
+ children: label
10310
+ }
10311
+ ),
10312
+ required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_fontawesome5.FontAwesomeIcon, { icon: import_free_solid_svg_icons5.faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10313
+ ] });
10298
10314
  };
10299
10315
 
10300
10316
  // src/components/FormFields/TextAreaFormField.tsx
@@ -11259,10 +11275,7 @@ var RadioGroupFormField = ({
11259
11275
  color: haveError ? "error" : color,
11260
11276
  fontWeight,
11261
11277
  disabled,
11262
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("label", { children: [
11263
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value }),
11264
- option.label
11265
- ] }, option.value))
11278
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Flex2, { direction: "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11266
11279
  }
11267
11280
  )
11268
11281
  }
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) => {
@@ -9834,7 +9848,7 @@ var MultiSelect = React10.forwardRef(
9834
9848
  onValueChange == null ? void 0 : onValueChange(v);
9835
9849
  setAllOptionsSelected((v || []).length === options.length);
9836
9850
  },
9837
- children: /* @__PURE__ */ jsxs15(
9851
+ children: /* @__PURE__ */ jsxs16(
9838
9852
  StyledFlexWithMaxHeight,
9839
9853
  {
9840
9854
  direction: "column",
@@ -9842,7 +9856,7 @@ var MultiSelect = React10.forwardRef(
9842
9856
  hasMaxHeight: !!maxHeight,
9843
9857
  style: maxHeight ? { maxHeight } : void 0,
9844
9858
  children: [
9845
- selectedAllOptions && /* @__PURE__ */ jsxs15(
9859
+ selectedAllOptions && /* @__PURE__ */ jsxs16(
9846
9860
  ButtonSelectAllStyled,
9847
9861
  {
9848
9862
  css: itemStyle,
@@ -9882,7 +9896,7 @@ var MultiSelect = React10.forwardRef(
9882
9896
  align: selectedOrientation === "column" ? "start" : "center",
9883
9897
  justify: "start",
9884
9898
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9885
- children: allOptionsSelected ? /* @__PURE__ */ jsxs15(
9899
+ children: allOptionsSelected ? /* @__PURE__ */ jsxs16(
9886
9900
  Flex2,
9887
9901
  {
9888
9902
  gap: 4,
@@ -9913,7 +9927,7 @@ var MultiSelect = React10.forwardRef(
9913
9927
  ]
9914
9928
  },
9915
9929
  "all-selected"
9916
- ) : selectedValues.map((value) => /* @__PURE__ */ jsxs15(
9930
+ ) : selectedValues.map((value) => /* @__PURE__ */ jsxs16(
9917
9931
  Flex2,
9918
9932
  {
9919
9933
  gap: 4,
@@ -10151,20 +10165,22 @@ function Section(_a) {
10151
10165
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
10152
10166
  import { faXmarkCircle } from "@fortawesome/free-solid-svg-icons";
10153
10167
  import { FontAwesomeIcon as FontAwesomeIcon4 } from "@fortawesome/react-fontawesome";
10154
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
10168
+ import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
10155
10169
  var ErrorFormMessage = ({ message: message2 }) => {
10156
10170
  if (!message2) return null;
10157
10171
  if (typeof message2 !== "string") {
10158
10172
  return null;
10159
10173
  }
10160
- return /* @__PURE__ */ jsxs16(Flex2, { justify: "start", align: "center", gap: 6, children: [
10174
+ return /* @__PURE__ */ jsxs17(Flex2, { justify: "start", align: "center", gap: 6, children: [
10161
10175
  /* @__PURE__ */ jsx31(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10162
10176
  /* @__PURE__ */ jsx31(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10163
10177
  ] });
10164
10178
  };
10165
10179
 
10166
10180
  // src/components/FormFields/subComponents/FormLabel.tsx
10167
- 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";
10168
10184
  var FormLabel = ({
10169
10185
  name,
10170
10186
  label,
@@ -10172,24 +10188,24 @@ var FormLabel = ({
10172
10188
  required
10173
10189
  }) => {
10174
10190
  if (!label) return null;
10175
- return /* @__PURE__ */ jsxs17(
10176
- Text,
10177
- {
10178
- typography: "labelMedium",
10179
- fontWeight: "medium",
10180
- color: haveError ? "error600" : "dark700",
10181
- id: `${name}-label`,
10182
- children: [
10183
- label,
10184
- !required && /* @__PURE__ */ jsx32(Text, { color: "dark500", children: " (opcional)" })
10185
- ]
10186
- }
10187
- );
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
+ ] });
10188
10204
  };
10189
10205
 
10190
10206
  // src/components/FormFields/TextAreaFormField.tsx
10191
10207
  import { useFormContext } from "react-hook-form";
10192
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
10208
+ import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
10193
10209
  var TextAreaFormField = (_a) => {
10194
10210
  var _b = _a, {
10195
10211
  name,
@@ -10221,7 +10237,7 @@ var TextAreaFormField = (_a) => {
10221
10237
  required: required ? validationErrorMessage : false,
10222
10238
  validate
10223
10239
  };
10224
- return /* @__PURE__ */ jsxs18(Flex2, { direction: "column", children: [
10240
+ return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10225
10241
  /* @__PURE__ */ jsx33(
10226
10242
  FormLabel,
10227
10243
  {
@@ -10251,7 +10267,7 @@ import {
10251
10267
  } from "react-hook-form";
10252
10268
  import { useCallback as useCallback3, useMemo as useMemo3 } from "react";
10253
10269
  import { format as format3, unformat as unformat2 } from "@react-input/mask";
10254
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
10270
+ import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
10255
10271
  var TextFormField = (_a) => {
10256
10272
  var _b = _a, {
10257
10273
  name,
@@ -10306,7 +10322,7 @@ var TextFormField = (_a) => {
10306
10322
  if (valueFormatter) value = valueFormatter.unformat(value);
10307
10323
  formChange(value);
10308
10324
  };
10309
- return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10325
+ return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10310
10326
  label && /* @__PURE__ */ jsx34(
10311
10327
  FormLabel,
10312
10328
  {
@@ -10358,7 +10374,7 @@ var Form = (_a) => {
10358
10374
 
10359
10375
  // src/components/FormFields/MultiSelectFormField.tsx
10360
10376
  import { useController as useController2 } from "react-hook-form";
10361
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
10377
+ import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
10362
10378
  var MultiSelectFormField = (_a) => {
10363
10379
  var _b = _a, {
10364
10380
  name,
@@ -10389,7 +10405,7 @@ var MultiSelectFormField = (_a) => {
10389
10405
  const handleChange = (v) => {
10390
10406
  onChange(v);
10391
10407
  };
10392
- return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10408
+ return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10393
10409
  /* @__PURE__ */ jsx36(
10394
10410
  FormLabel,
10395
10411
  {
@@ -10465,7 +10481,7 @@ var PhoneFormField = ({
10465
10481
 
10466
10482
  // src/components/FormFields/CPFFormField.tsx
10467
10483
  import { useFormContext as useFormContext3, useWatch } from "react-hook-form";
10468
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
10484
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
10469
10485
  var isValidCPF = (cpf) => {
10470
10486
  cpf = cpf.replace(/[^\d]+/g, "");
10471
10487
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10491,7 +10507,7 @@ var CPFFormField = ({
10491
10507
  }) => {
10492
10508
  const { control, setValue } = useFormContext3();
10493
10509
  const foreigner = useWatch({ name: "foreigner", control });
10494
- return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10510
+ return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10495
10511
  /* @__PURE__ */ jsx38(
10496
10512
  TextFormField,
10497
10513
  {
@@ -10694,7 +10710,7 @@ function getNestedValue(obj, path) {
10694
10710
  }
10695
10711
 
10696
10712
  // src/components/FormFields/SelectFormField.tsx
10697
- import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10713
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
10698
10714
  var SelectFormField = ({
10699
10715
  name,
10700
10716
  label,
@@ -10715,7 +10731,7 @@ var SelectFormField = ({
10715
10731
  const validationRules = __spreadValues({
10716
10732
  required: required ? validationErrorMessage : false
10717
10733
  }, validation);
10718
- return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10734
+ return /* @__PURE__ */ jsxs23(Flex2, { direction: "column", children: [
10719
10735
  /* @__PURE__ */ jsx42(
10720
10736
  FormLabel,
10721
10737
  {
@@ -10978,7 +10994,7 @@ function CityFormField({
10978
10994
  }
10979
10995
 
10980
10996
  // src/components/FormFields/AddressFormFields/index.tsx
10981
- import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
10997
+ import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
10982
10998
  function getNestedValue2(obj, path) {
10983
10999
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
10984
11000
  }
@@ -11028,7 +11044,7 @@ function AddressFormFields({
11028
11044
  console.error("Erro ao buscar CEP");
11029
11045
  });
11030
11046
  };
11031
- return /* @__PURE__ */ jsxs23(AddressContainerStyled, { layout, children: [
11047
+ return /* @__PURE__ */ jsxs24(AddressContainerStyled, { layout, children: [
11032
11048
  /* @__PURE__ */ jsx47(
11033
11049
  FormLabel,
11034
11050
  {
@@ -11107,7 +11123,7 @@ function AddressFormFields({
11107
11123
 
11108
11124
  // src/components/FormFields/RadioGroupFormField.tsx
11109
11125
  import { Controller as Controller3, useFormContext as useFormContext7 } from "react-hook-form";
11110
- import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
11126
+ import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
11111
11127
  var RadioGroupFormField = ({
11112
11128
  name,
11113
11129
  label,
@@ -11129,7 +11145,7 @@ var RadioGroupFormField = ({
11129
11145
  const validationRules = {
11130
11146
  required: required ? validationErrorMessage : false
11131
11147
  };
11132
- return /* @__PURE__ */ jsxs24(Flex2, { direction: "column", children: [
11148
+ return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11133
11149
  /* @__PURE__ */ jsx48(
11134
11150
  FormLabel,
11135
11151
  {
@@ -11154,10 +11170,7 @@ var RadioGroupFormField = ({
11154
11170
  color: haveError ? "error" : color,
11155
11171
  fontWeight,
11156
11172
  disabled,
11157
- children: options.map((option) => /* @__PURE__ */ jsxs24("label", { children: [
11158
- /* @__PURE__ */ jsx48(RadioItem, { value: option.value }),
11159
- option.label
11160
- ] }, 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)) })
11161
11174
  }
11162
11175
  )
11163
11176
  }
@@ -11168,7 +11181,7 @@ var RadioGroupFormField = ({
11168
11181
 
11169
11182
  // src/components/FormFields/CheckboxGroupFormField.tsx
11170
11183
  import { Controller as Controller4, useFormContext as useFormContext8 } from "react-hook-form";
11171
- import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
11184
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
11172
11185
  var CheckboxGroupFormField = ({
11173
11186
  name,
11174
11187
  label,
@@ -11191,7 +11204,7 @@ var CheckboxGroupFormField = ({
11191
11204
  required: required ? validationErrorMessage : false,
11192
11205
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11193
11206
  };
11194
- return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11207
+ return /* @__PURE__ */ jsxs26(Flex2, { direction: "column", children: [
11195
11208
  /* @__PURE__ */ jsx49(
11196
11209
  FormLabel,
11197
11210
  {
@@ -11236,7 +11249,7 @@ var CheckboxGroupFormField = ({
11236
11249
 
11237
11250
  // src/components/FormFields/SwitchFormField.tsx
11238
11251
  import { useFormContext as useFormContext9, Controller as Controller5 } from "react-hook-form";
11239
- import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
11252
+ import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
11240
11253
  var SwitchFormField = ({
11241
11254
  name,
11242
11255
  label,
@@ -11250,7 +11263,7 @@ var SwitchFormField = ({
11250
11263
  if (watch) {
11251
11264
  watchForm(name);
11252
11265
  }
11253
- return /* @__PURE__ */ jsxs26(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11266
+ return /* @__PURE__ */ jsxs27(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11254
11267
  /* @__PURE__ */ jsx50(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11255
11268
  /* @__PURE__ */ jsx50(
11256
11269
  Controller5,
@@ -12354,7 +12367,7 @@ var QuillEditor = styled("div", {
12354
12367
  });
12355
12368
 
12356
12369
  // src/components/RichEditor/QuillComponent.tsx
12357
- import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
12370
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
12358
12371
  var QuillComponent = ({
12359
12372
  value = "",
12360
12373
  onChange,
@@ -12616,7 +12629,7 @@ var QuillComponent = ({
12616
12629
  document.addEventListener("mousedown", handleClickOutside);
12617
12630
  return () => document.removeEventListener("mousedown", handleClickOutside);
12618
12631
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12619
- 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: [
12620
12633
  /* @__PURE__ */ jsx52("div", { ref: quillRef }),
12621
12634
  showVideoModal && /* @__PURE__ */ jsx52(
12622
12635
  "div",
@@ -12635,7 +12648,7 @@ var QuillComponent = ({
12635
12648
  zIndex: 1e3,
12636
12649
  width: "fit-content"
12637
12650
  },
12638
- children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12651
+ children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12639
12652
  /* @__PURE__ */ jsx52(
12640
12653
  Text,
12641
12654
  {
@@ -12705,7 +12718,7 @@ var QuillComponent = ({
12705
12718
  zIndex: 1e3,
12706
12719
  width: "fit-content"
12707
12720
  },
12708
- children: /* @__PURE__ */ jsxs27(Flex2, { gap: 8, align: "center", children: [
12721
+ children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12709
12722
  /* @__PURE__ */ jsx52(
12710
12723
  Text,
12711
12724
  {
@@ -12777,7 +12790,7 @@ var RichEditor_default = RichEditor;
12777
12790
 
12778
12791
  // src/components/FormFields/RichEditorFormField.tsx
12779
12792
  import { useState as useState12 } from "react";
12780
- 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";
12781
12794
  var RichEditorFormField = (_a) => {
12782
12795
  var _b = _a, {
12783
12796
  name,
@@ -12820,8 +12833,8 @@ var RichEditorFormField = (_a) => {
12820
12833
  const fieldError = fieldState.error;
12821
12834
  const haveError = !!fieldError;
12822
12835
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12823
- return /* @__PURE__ */ jsxs28(Flex2, { direction: "column", children: [
12824
- 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: [
12825
12838
  label && /* @__PURE__ */ jsx54(
12826
12839
  FormLabel,
12827
12840
  {
@@ -12860,7 +12873,7 @@ var RichEditorFormField = (_a) => {
12860
12873
  // src/components/FormFields/CalendarFormField.tsx
12861
12874
  import { useController as useController4 } from "react-hook-form";
12862
12875
  import { useCallback as useCallback5 } from "react";
12863
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
12876
+ import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
12864
12877
  var CalendarFormField = (_a) => {
12865
12878
  var _b = _a, {
12866
12879
  name,
@@ -12909,7 +12922,7 @@ var CalendarFormField = (_a) => {
12909
12922
  const handleCalendarChange = (date) => {
12910
12923
  setSelected(date);
12911
12924
  };
12912
- return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", style: { flex: "1" }, children: [
12925
+ return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
12913
12926
  label && /* @__PURE__ */ jsx55(
12914
12927
  FormLabel,
12915
12928
  {
@@ -12939,7 +12952,7 @@ var CalendarFormField = (_a) => {
12939
12952
  // src/components/FormFields/DoubleCalendarFormField.tsx
12940
12953
  import { useCallback as useCallback6 } from "react";
12941
12954
  import { useController as useController5 } from "react-hook-form";
12942
- import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
12955
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
12943
12956
  var DoubleCalendarFormField = (_a) => {
12944
12957
  var _b = _a, {
12945
12958
  name,
@@ -12988,7 +13001,7 @@ var DoubleCalendarFormField = (_a) => {
12988
13001
  const handleCalendarChange = (range) => {
12989
13002
  setSelected(range);
12990
13003
  };
12991
- return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
13004
+ return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
12992
13005
  label && /* @__PURE__ */ jsx56(FormLabel, { name, label, required, haveError }),
12993
13006
  /* @__PURE__ */ jsx56(
12994
13007
  DoubleCalendar,
@@ -13011,7 +13024,7 @@ var DoubleCalendarFormField = (_a) => {
13011
13024
  // src/components/FormFields/TimePickerFormField.tsx
13012
13025
  import { useController as useController6 } from "react-hook-form";
13013
13026
  import { useCallback as useCallback7 } from "react";
13014
- import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
13027
+ import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
13015
13028
  var TimePickerFormField = (_a) => {
13016
13029
  var _b = _a, {
13017
13030
  name,
@@ -13054,7 +13067,7 @@ var TimePickerFormField = (_a) => {
13054
13067
  const handleTimePickerChange = (time) => {
13055
13068
  setSelected(time);
13056
13069
  };
13057
- return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
13070
+ return /* @__PURE__ */ jsxs32(Flex2, { direction: "column", style: { flex: "1" }, children: [
13058
13071
  label && /* @__PURE__ */ jsx57(
13059
13072
  FormLabel,
13060
13073
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.6.0",
3
+ "version": "12.6.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -33,13 +33,25 @@ export function Button({ asChild, children, loading, ...props }: ButtonProps) {
33
33
 
34
34
  return (
35
35
  <ButtonStyled as={Component} {...props} disabled={disabled || loading}>
36
- {loading ? (
37
- <SpinningDiv>
38
- <Icon name="circle-notch" size={spinnerSize} />
39
- </SpinningDiv>
40
- ) : (
41
- children
42
- )}
36
+ <div style={{ position: "relative" }}>
37
+ <div style={{ visibility: loading ? "hidden" : undefined }}>
38
+ {children}
39
+ </div>
40
+ {loading && (
41
+ <div
42
+ style={{
43
+ position: "absolute",
44
+ top: "50%",
45
+ left: "50%",
46
+ transform: "translate(-50%, -50%)",
47
+ }}
48
+ >
49
+ <SpinningDiv>
50
+ <Icon name="circle-notch" size={spinnerSize} />
51
+ </SpinningDiv>
52
+ </div>
53
+ )}
54
+ </div>
43
55
  </ButtonStyled>
44
56
  );
45
57
  }
@@ -4,6 +4,7 @@ import { FormLabel } from "./subComponents/FormLabel";
4
4
  import { ErrorFormMessage } from "./subComponents/ErrorFormMessage";
5
5
  import { RadioGroup, RadioItem } from "../RadioGroup";
6
6
  import { getNestedValue } from "../../utils/getNestedValue";
7
+ import { Text } from "../Text";
7
8
 
8
9
  type Option = {
9
10
  label: string;
@@ -68,12 +69,13 @@ export const RadioGroupFormField = ({
68
69
  fontWeight={fontWeight}
69
70
  disabled={disabled}
70
71
  >
71
- {options.map((option) => (
72
- <label key={option.value}>
73
- <RadioItem value={option.value} />
74
- {option.label}
75
- </label>
76
- ))}
72
+ <Flex direction="column">
73
+ {options.map((option) => (
74
+ <RadioItem key={option.value} value={option.value}>
75
+ <Text typography={"labelSmall"}>{option.label}</Text>
76
+ </RadioItem>
77
+ ))}
78
+ </Flex>
77
79
  </RadioGroup>
78
80
  )}
79
81
  />
@@ -1,4 +1,7 @@
1
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1
2
  import { Text } from "../../Text";
3
+ import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
4
+ import { Flex } from "../../Flex";
2
5
 
3
6
  export type FormLabelProps = {
4
7
  name: string;
@@ -16,14 +19,18 @@ export const FormLabel = ({
16
19
  if (!label) return null;
17
20
 
18
21
  return (
19
- <Text
20
- typography={"labelMedium"}
21
- fontWeight={"medium"}
22
- color={haveError ? "error600" : "dark700"}
23
- id={`${name}-label`}
24
- >
25
- {label}
26
- {!required && <Text color="dark500"> (opcional)</Text>}
27
- </Text>
22
+ <Flex align={"start"} gap={6}>
23
+ <Text
24
+ typography={"labelMedium"}
25
+ fontWeight={"medium"}
26
+ color={haveError ? "error600" : "dark700"}
27
+ id={`${name}-label`}
28
+ >
29
+ {label}
30
+ </Text>
31
+ {required && (
32
+ <FontAwesomeIcon icon={faAsterisk} fontSize={"8px"} color="#AD1F2B" />
33
+ )}
34
+ </Flex>
28
35
  );
29
36
  };