@lets-events/react 11.6.4 → 11.6.5

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
@@ -3293,21 +3293,24 @@ function FilterItem(_a) {
3293
3293
  }
3294
3294
 
3295
3295
  // src/components/Dropdown.tsx
3296
- import { useState } from "react";
3296
+ import React2, {
3297
+ useState,
3298
+ useRef,
3299
+ useEffect
3300
+ } from "react";
3297
3301
  import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons";
3298
- import { Theme as Theme2, DropdownMenu as DropdownMenuRadix } from "@radix-ui/themes";
3299
3302
  import { FontAwesomeIcon as FontAwesomeIcon2 } from "@fortawesome/react-fontawesome";
3300
3303
  import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
3301
- var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
3304
+ var DropdownMenuItemStyled = styled("div", {
3302
3305
  fontFamily: "$default",
3303
3306
  color: "$dark600",
3304
3307
  letterSpacing: "0px",
3305
3308
  padding: "$8 $16",
3309
+ cursor: "pointer",
3306
3310
  "&:hover, &:focus": {
3307
3311
  backgroundColor: "$dark100",
3308
3312
  border: "none",
3309
- outline: "none",
3310
- cursor: "pointer"
3313
+ outline: "none"
3311
3314
  },
3312
3315
  variants: {
3313
3316
  typography: typographyLabelValues,
@@ -3320,16 +3323,18 @@ var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
3320
3323
  }
3321
3324
  });
3322
3325
  var DropdownMenuStyled = styled("div", {
3326
+ boxSizing: "border-box",
3323
3327
  fontFamily: "$default",
3324
3328
  color: "$dark600",
3325
3329
  letterSpacing: "0px",
3326
3330
  cursor: "pointer",
3327
3331
  border: "1px solid $dark300",
3328
3332
  borderRadius: "$xs",
3329
- padding: "$8 $12",
3330
- width: "100%",
3333
+ maxWidth: "100%",
3331
3334
  display: "flex",
3335
+ position: "relative",
3332
3336
  button: {
3337
+ boxSizing: "border-box",
3333
3338
  fontFamily: "$default",
3334
3339
  color: "$dark600",
3335
3340
  letterSpacing: "0px",
@@ -3340,6 +3345,7 @@ var DropdownMenuStyled = styled("div", {
3340
3345
  display: "flex",
3341
3346
  alignItems: "center",
3342
3347
  gap: "$8",
3348
+ padding: "$8 $12",
3343
3349
  cursor: "pointer",
3344
3350
  svg: {
3345
3351
  marginLeft: "auto"
@@ -3388,17 +3394,17 @@ var DropdownMenuStyled = styled("div", {
3388
3394
  }
3389
3395
  }
3390
3396
  });
3391
- var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
3397
+ var DropdownMenuContentStyled = styled("div", {
3398
+ position: "absolute",
3399
+ top: "100%",
3400
+ left: 0,
3401
+ width: "100%",
3392
3402
  background: "white",
3393
3403
  border: "1px solid $dark300",
3394
3404
  borderRadius: "$xs",
3395
3405
  boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
3396
- width: "100%",
3397
- minWidth: "100%",
3398
3406
  marginTop: "3px",
3399
3407
  maxHeight: "400px",
3400
- height: "100%",
3401
- position: "relative",
3402
3408
  overflow: "auto",
3403
3409
  zIndex: 9999999999
3404
3410
  });
@@ -3407,63 +3413,144 @@ function DropdownMenu2(_a) {
3407
3413
  children,
3408
3414
  placeholder,
3409
3415
  typography,
3410
- color,
3411
- fontWeight
3416
+ color = "default",
3417
+ fontWeight,
3418
+ open: controlledOpen,
3419
+ onOpenChange,
3420
+ defaultOpen = false
3412
3421
  } = _b, props = __objRest(_b, [
3413
3422
  "children",
3414
3423
  "placeholder",
3415
3424
  "typography",
3416
3425
  "color",
3417
- "fontWeight"
3426
+ "fontWeight",
3427
+ "open",
3428
+ "onOpenChange",
3429
+ "defaultOpen"
3418
3430
  ]);
3419
- const [isOpen, setIsOpen] = useState(false);
3420
- return /* @__PURE__ */ jsx11(Theme2, { children: /* @__PURE__ */ jsx11(DropdownMenuRadix.Root, __spreadProps(__spreadValues({ open: isOpen, onOpenChange: setIsOpen }, props), { children: /* @__PURE__ */ jsxs3(
3431
+ const [internalOpen, setInternalOpen] = useState(defaultOpen);
3432
+ const dropdownRef = useRef(null);
3433
+ const isControlled = controlledOpen !== void 0;
3434
+ const isOpen = isControlled ? controlledOpen : internalOpen;
3435
+ const handleToggle = () => {
3436
+ const newOpen = !isOpen;
3437
+ if (!isControlled) {
3438
+ setInternalOpen(newOpen);
3439
+ }
3440
+ onOpenChange == null ? void 0 : onOpenChange(newOpen);
3441
+ };
3442
+ const handleClose = () => {
3443
+ if (!isControlled) {
3444
+ setInternalOpen(false);
3445
+ }
3446
+ onOpenChange == null ? void 0 : onOpenChange(false);
3447
+ };
3448
+ useEffect(() => {
3449
+ const handleClickOutside = (event) => {
3450
+ if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
3451
+ handleClose();
3452
+ }
3453
+ };
3454
+ const handleEscape = (event) => {
3455
+ if (event.key === "Escape") {
3456
+ handleClose();
3457
+ }
3458
+ };
3459
+ if (isOpen) {
3460
+ document.addEventListener("mousedown", handleClickOutside);
3461
+ document.addEventListener("keydown", handleEscape);
3462
+ }
3463
+ return () => {
3464
+ document.removeEventListener("mousedown", handleClickOutside);
3465
+ document.removeEventListener("keydown", handleEscape);
3466
+ };
3467
+ }, [isOpen]);
3468
+ return /* @__PURE__ */ jsxs3(
3421
3469
  DropdownMenuStyled,
3422
- {
3470
+ __spreadProps(__spreadValues({
3471
+ ref: dropdownRef,
3423
3472
  typography,
3424
3473
  fontWeight,
3425
- color,
3474
+ color
3475
+ }, props), {
3426
3476
  children: [
3427
- /* @__PURE__ */ jsx11(DropdownMenuRadix.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "Filtrar", children: [
3428
- /* @__PURE__ */ jsx11("span", { children: placeholder || "Filtrar" }),
3429
- /* @__PURE__ */ jsx11(
3430
- FontAwesomeIcon2,
3431
- {
3432
- icon: isOpen ? faChevronUp : faChevronDown,
3433
- size: "sm",
3434
- color: colors.dark600
3435
- }
3436
- )
3437
- ] }) }),
3438
- /* @__PURE__ */ jsx11(
3439
- DropdownMenuContentStyled,
3477
+ /* @__PURE__ */ jsxs3(
3478
+ "button",
3440
3479
  {
3441
- container: document.body,
3442
- avoidCollisions: false,
3443
- align: "start",
3444
- alignOffset: -14,
3445
- children: /* @__PURE__ */ jsx11(DropdownMenuRadix.Group, { children })
3480
+ "aria-label": placeholder || "Filtrar",
3481
+ "aria-expanded": isOpen,
3482
+ "aria-haspopup": "listbox",
3483
+ onClick: handleToggle,
3484
+ type: "button",
3485
+ onKeyDown: (e) => {
3486
+ if (e.key === "Enter" || e.key === " ") {
3487
+ e.preventDefault();
3488
+ handleToggle();
3489
+ }
3490
+ },
3491
+ children: [
3492
+ /* @__PURE__ */ jsx11("span", { children: placeholder || "Filtrar" }),
3493
+ /* @__PURE__ */ jsx11(
3494
+ FontAwesomeIcon2,
3495
+ {
3496
+ icon: isOpen ? faChevronUp : faChevronDown,
3497
+ size: "sm",
3498
+ color: colors.dark600
3499
+ }
3500
+ )
3501
+ ]
3446
3502
  }
3447
- )
3503
+ ),
3504
+ isOpen && /* @__PURE__ */ jsx11(DropdownMenuContentStyled, { role: "listbox", children: /* @__PURE__ */ jsx11(DropdownMenuProvider, { onItemSelect: handleClose, children }) })
3448
3505
  ]
3449
- }
3450
- ) })) });
3506
+ })
3507
+ );
3508
+ }
3509
+ var DropdownMenuContext = React2.createContext(null);
3510
+ function DropdownMenuProvider({
3511
+ children,
3512
+ onItemSelect
3513
+ }) {
3514
+ return /* @__PURE__ */ jsx11(DropdownMenuContext.Provider, { value: { onItemSelect }, children });
3451
3515
  }
3452
3516
  function DropdownMenuItem(_a) {
3453
3517
  var _b = _a, {
3454
3518
  children,
3455
3519
  typography,
3456
- fontWeight
3520
+ fontWeight,
3521
+ value,
3522
+ onSelect,
3523
+ onClick
3457
3524
  } = _b, props = __objRest(_b, [
3458
3525
  "children",
3459
3526
  "typography",
3460
- "fontWeight"
3527
+ "fontWeight",
3528
+ "value",
3529
+ "onSelect",
3530
+ "onClick"
3461
3531
  ]);
3532
+ const context = React2.useContext(DropdownMenuContext);
3533
+ const handleClick = (event) => {
3534
+ onClick == null ? void 0 : onClick(event);
3535
+ onSelect == null ? void 0 : onSelect(value);
3536
+ context == null ? void 0 : context.onItemSelect();
3537
+ };
3538
+ const handleKeyDown = (event) => {
3539
+ if (event.key === "Enter" || event.key === " ") {
3540
+ event.preventDefault();
3541
+ onSelect == null ? void 0 : onSelect(value);
3542
+ context == null ? void 0 : context.onItemSelect();
3543
+ }
3544
+ };
3462
3545
  return /* @__PURE__ */ jsx11(
3463
3546
  DropdownMenuItemStyled,
3464
3547
  __spreadProps(__spreadValues({
3465
3548
  typography,
3466
- fontWeight
3549
+ fontWeight,
3550
+ onClick: handleClick,
3551
+ onKeyDown: handleKeyDown,
3552
+ tabIndex: 0,
3553
+ role: "option"
3467
3554
  }, props), {
3468
3555
  children
3469
3556
  })
@@ -3471,7 +3558,7 @@ function DropdownMenuItem(_a) {
3471
3558
  }
3472
3559
 
3473
3560
  // src/components/Badge.tsx
3474
- import React2 from "react";
3561
+ import React3 from "react";
3475
3562
  import { Badge as BadgeRadix } from "@radix-ui/themes";
3476
3563
  import { jsx as jsx12 } from "react/jsx-runtime";
3477
3564
  var BadgeStyled = styled(BadgeRadix, {
@@ -3575,9 +3662,9 @@ var BadgeStyled = styled(BadgeRadix, {
3575
3662
  });
3576
3663
  function Badge(_a) {
3577
3664
  var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
3578
- return /* @__PURE__ */ jsx12(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: React2.Children.map(children, (child) => {
3579
- if (React2.isValidElement(child)) {
3580
- return React2.cloneElement(child, { size: props.size });
3665
+ return /* @__PURE__ */ jsx12(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: React3.Children.map(children, (child) => {
3666
+ if (React3.isValidElement(child)) {
3667
+ return React3.cloneElement(child, { size: props.size });
3581
3668
  }
3582
3669
  return child;
3583
3670
  }) }));
@@ -3699,12 +3786,12 @@ function MenuDropdown({ children }) {
3699
3786
  }
3700
3787
 
3701
3788
  // src/components/Calendar/index.tsx
3702
- import { useRef, useEffect as useEffect2, useState as useState3 } from "react";
3789
+ import { useRef as useRef2, useEffect as useEffect3, useState as useState3 } from "react";
3703
3790
 
3704
3791
  // src/hooks/useOnClickOutside.tsx
3705
- import { useEffect } from "react";
3792
+ import { useEffect as useEffect2 } from "react";
3706
3793
  function useOnClickOutside(ref, handler) {
3707
- useEffect(() => {
3794
+ useEffect2(() => {
3708
3795
  const listener = (event) => {
3709
3796
  if (!ref.current || ref.current.contains(event.target)) {
3710
3797
  return;
@@ -7843,13 +7930,13 @@ function Calendar(_a) {
7843
7930
  ]);
7844
7931
  const [inputValue, setInputValue] = useState3("");
7845
7932
  const [showContainer, setShowCalendar] = useState3(false);
7846
- const dropdownRef = useRef(null);
7933
+ const dropdownRef = useRef2(null);
7847
7934
  useOnClickOutside(dropdownRef, () => {
7848
7935
  setShowCalendar(false);
7849
7936
  });
7850
7937
  const today = /* @__PURE__ */ new Date();
7851
7938
  const maxDate = addYears(today, 20);
7852
- useEffect2(() => {
7939
+ useEffect3(() => {
7853
7940
  if (selected) {
7854
7941
  setInputValue(format2(selected, "dd/MM/yyyy"));
7855
7942
  } else {
@@ -7999,7 +8086,7 @@ function Drawer({
7999
8086
  }
8000
8087
 
8001
8088
  // src/components/TimePicker.tsx
8002
- import { useCallback, useRef as useRef2, useState as useState4 } from "react";
8089
+ import { useCallback, useRef as useRef3, useState as useState4 } from "react";
8003
8090
  import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
8004
8091
  var TimePickerStyled = styled("div", {
8005
8092
  position: "relative",
@@ -8108,7 +8195,7 @@ function TimePicker({
8108
8195
  const [rawHours, setRawHours] = useState4("00");
8109
8196
  const [rawMinutes, setRawMinutes] = useState4("00");
8110
8197
  const [isOpen, setIsOpen] = useState4(false);
8111
- const dropdownRef = useRef2(null);
8198
+ const dropdownRef = useRef3(null);
8112
8199
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
8113
8200
  const handleIncrement = useCallback(
8114
8201
  (type) => {
@@ -8307,7 +8394,7 @@ function TimePicker({
8307
8394
  }
8308
8395
 
8309
8396
  // src/components/Alert.tsx
8310
- import { Theme as Theme3, AlertDialog } from "@radix-ui/themes";
8397
+ import { Theme as Theme2, AlertDialog } from "@radix-ui/themes";
8311
8398
  import { Fragment, jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
8312
8399
  var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
8313
8400
  fontFamily: "$default",
@@ -8423,14 +8510,14 @@ function Alert(_a) {
8423
8510
  "simpleAlert"
8424
8511
  ]);
8425
8512
  return /* @__PURE__ */ jsxs9(Fragment, { children: [
8426
- simpleAlert && /* @__PURE__ */ jsx18(Theme3, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8513
+ simpleAlert && /* @__PURE__ */ jsx18(Theme2, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8427
8514
  /* @__PURE__ */ jsx18(AlertDialog.Trigger, { children: trigger }),
8428
8515
  /* @__PURE__ */ jsx18(Fragment, { children: /* @__PURE__ */ jsxs9(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8429
8516
  /* @__PURE__ */ jsx18(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8430
8517
  simpleAlert.cancel && /* @__PURE__ */ jsx18(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx18(Button, { variant: "text", children: /* @__PURE__ */ jsx18(Icon_default, { name: "close" }) }) })
8431
8518
  ] })) })
8432
8519
  ] }) }),
8433
- completAlert && /* @__PURE__ */ jsx18(Theme3, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8520
+ completAlert && /* @__PURE__ */ jsx18(Theme2, { children: /* @__PURE__ */ jsxs9(AlertDialog.Root, { children: [
8434
8521
  /* @__PURE__ */ jsx18(AlertDialog.Trigger, { children: trigger }),
8435
8522
  /* @__PURE__ */ jsxs9(AlertDialogCompleteStyled, { children: [
8436
8523
  /* @__PURE__ */ jsxs9(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
@@ -8646,7 +8733,7 @@ function Switch(props) {
8646
8733
  }
8647
8734
 
8648
8735
  // src/components/Step.tsx
8649
- import React5 from "react";
8736
+ import React6 from "react";
8650
8737
  import { Box as Box2, Tabs as StepRadix } from "@radix-ui/themes";
8651
8738
  import { jsx as jsx20 } from "react/jsx-runtime";
8652
8739
  var StepStyled = styled("div", {
@@ -8762,9 +8849,9 @@ function StepList(_a) {
8762
8849
  "children",
8763
8850
  "currentStep"
8764
8851
  ]);
8765
- return /* @__PURE__ */ jsx20(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React5.Children.map(children, (child) => {
8766
- if (React5.isValidElement(child) && child.type === StepTrigger) {
8767
- return React5.cloneElement(child, { currentStep });
8852
+ return /* @__PURE__ */ jsx20(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React6.Children.map(children, (child) => {
8853
+ if (React6.isValidElement(child) && child.type === StepTrigger) {
8854
+ return React6.cloneElement(child, { currentStep });
8768
8855
  }
8769
8856
  return child;
8770
8857
  }) }));
@@ -8821,7 +8908,7 @@ function Card(_a) {
8821
8908
 
8822
8909
  // src/components/TextareaField.tsx
8823
8910
  import { TextArea as TextAreaRadix } from "@radix-ui/themes";
8824
- import React6, { useRef as useRef3 } from "react";
8911
+ import React7, { useRef as useRef4 } from "react";
8825
8912
  import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
8826
8913
  var TextareaFieldStyle = styled(TextAreaRadix, {
8827
8914
  display: "flex",
@@ -8886,10 +8973,10 @@ var TextareaLimitIndicator = styled("div", {
8886
8973
  padding: "$4"
8887
8974
  }
8888
8975
  });
8889
- var TextareaField = React6.forwardRef((_a, fowardedRef) => {
8976
+ var TextareaField = React7.forwardRef((_a, fowardedRef) => {
8890
8977
  var _b = _a, { maxLength, color } = _b, props = __objRest(_b, ["maxLength", "color"]);
8891
- const inputRef = useRef3(null);
8892
- const badgeRef = useRef3(null);
8978
+ const inputRef = useRef4(null);
8979
+ const badgeRef = useRef4(null);
8893
8980
  const updateCharCountBadge = () => {
8894
8981
  var _a2, _b2;
8895
8982
  if (!maxLength || !badgeRef.current) return;
@@ -9186,15 +9273,15 @@ function Tooltip({
9186
9273
  }
9187
9274
 
9188
9275
  // src/components/MultiSelect.tsx
9189
- import { DropdownMenu as DropdownMenu3, Theme as Theme4 } from "@radix-ui/themes";
9276
+ import { DropdownMenu as DropdownMenu3, Theme as Theme3 } from "@radix-ui/themes";
9190
9277
  import { FontAwesomeIcon as FontAwesomeIcon3 } from "@fortawesome/react-fontawesome";
9191
9278
  import {
9192
9279
  faChevronDown as faChevronDown2,
9193
9280
  faChevronUp as faChevronUp2,
9194
9281
  faX
9195
9282
  } from "@fortawesome/free-solid-svg-icons";
9196
- import { useCallback as useCallback2, useMemo, useRef as useRef4, useState as useState7 } from "react";
9197
- import React7 from "react";
9283
+ import { useCallback as useCallback2, useMemo, useRef as useRef5, useState as useState7 } from "react";
9284
+ import React8 from "react";
9198
9285
  import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9199
9286
  var StyledContent = styled(DropdownMenu3.Content, {
9200
9287
  backgroundColor: "$dark50",
@@ -9258,7 +9345,7 @@ var BadgeCloseBtn = styled("div", {
9258
9345
  backgroundColor: "$dark600"
9259
9346
  }
9260
9347
  });
9261
- var MultiSelect = React7.forwardRef(
9348
+ var MultiSelect = React8.forwardRef(
9262
9349
  ({
9263
9350
  placeholder,
9264
9351
  value: selectedValues = [],
@@ -9270,7 +9357,7 @@ var MultiSelect = React7.forwardRef(
9270
9357
  }, fowardedRef) => {
9271
9358
  var _a;
9272
9359
  const [isOpen, setIsOpen] = useState7(false);
9273
- const triggerRef = useRef4(null);
9360
+ const triggerRef = useRef5(null);
9274
9361
  const labelByValue = useMemo(() => {
9275
9362
  return options.reduce((prev, curr) => {
9276
9363
  return __spreadProps(__spreadValues({}, prev), {
@@ -9286,7 +9373,7 @@ var MultiSelect = React7.forwardRef(
9286
9373
  [selectedValues, onValueChange]
9287
9374
  );
9288
9375
  const menuWidth = (_a = triggerRef.current) == null ? void 0 : _a.offsetWidth;
9289
- return /* @__PURE__ */ jsx26(Theme4, { children: /* @__PURE__ */ jsxs14(DropdownMenu3.Root, { open: isOpen, onOpenChange: () => setIsOpen(false), children: [
9376
+ return /* @__PURE__ */ jsx26(Theme3, { children: /* @__PURE__ */ jsxs14(DropdownMenu3.Root, { open: isOpen, onOpenChange: () => setIsOpen(false), children: [
9290
9377
  /* @__PURE__ */ jsx26(DropdownMenu3.Trigger, { onClick: () => setIsOpen(true), children: /* @__PURE__ */ jsxs14(
9291
9378
  StyledTrigger,
9292
9379
  {
@@ -10036,7 +10123,7 @@ var IdentityDocumentNumberFormField = ({
10036
10123
  };
10037
10124
 
10038
10125
  // src/components/FormFields/AddressFormFields/index.tsx
10039
- import { useEffect as useEffect4 } from "react";
10126
+ import { useEffect as useEffect5 } from "react";
10040
10127
  import { useFormContext as useFormContext9, useWatch as useWatch2, useFormState } from "react-hook-form";
10041
10128
 
10042
10129
  // src/components/FormFields/SelectFormField.tsx
@@ -10246,7 +10333,7 @@ function StateFormField({
10246
10333
  }
10247
10334
 
10248
10335
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
10249
- import { useEffect as useEffect3, useState as useState8 } from "react";
10336
+ import { useEffect as useEffect4, useState as useState8 } from "react";
10250
10337
  import { useFormContext as useFormContext8, Controller as Controller2 } from "react-hook-form";
10251
10338
  import { Fragment as Fragment3, jsx as jsx45 } from "react/jsx-runtime";
10252
10339
  function CityFormField({
@@ -10261,7 +10348,7 @@ function CityFormField({
10261
10348
  const selectedState = watch(stateName);
10262
10349
  const [cities, setCities] = useState8([]);
10263
10350
  const [loading, setLoading] = useState8(false);
10264
- useEffect3(() => {
10351
+ useEffect4(() => {
10265
10352
  if (!isBrazil) {
10266
10353
  setCities([]);
10267
10354
  return;
@@ -10368,7 +10455,7 @@ function AddressFormFields({
10368
10455
  const isBrazil = selectedCountry === "Brasil";
10369
10456
  const addressErrors = getNestedValue2(errors, name);
10370
10457
  const haveError = !!addressErrors;
10371
- useEffect4(() => {
10458
+ useEffect5(() => {
10372
10459
  const cleanedCep = cep == null ? void 0 : cep.replace(/\D/g, "");
10373
10460
  if (isBrazil && (cleanedCep == null ? void 0 : cleanedCep.length) === 8) {
10374
10461
  fetch(`https://viacep.com.br/ws/${cleanedCep}/json`).then((res) => res.json()).then((data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "11.6.4",
3
+ "version": "11.6.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",