@lets-events/react 11.7.9 → 11.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +18 -20
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.css +171 -0
  5. package/dist/index.d.mts +2 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.js +179 -138
  8. package/dist/index.mjs +154 -113
  9. package/package.json +1 -1
  10. package/src/components/Alert.tsx +303 -303
  11. package/src/components/Avatar.tsx +55 -55
  12. package/src/components/Badge.tsx +125 -125
  13. package/src/components/Box.tsx +3 -3
  14. package/src/components/Button/index.tsx +16 -16
  15. package/src/components/Button/styledComponents.ts +287 -287
  16. package/src/components/ButtonGroup.tsx +484 -484
  17. package/src/components/Calendar/index.tsx +136 -136
  18. package/src/components/Calendar/styledComponents.ts +209 -209
  19. package/src/components/Card.tsx +48 -48
  20. package/src/components/CheckboxGroup.tsx +176 -176
  21. package/src/components/Container.tsx +39 -39
  22. package/src/components/Drawer/index.tsx +55 -48
  23. package/src/components/Drawer/styledComponents.ts +46 -46
  24. package/src/components/Dropdown.tsx +302 -302
  25. package/src/components/Filter.tsx +164 -164
  26. package/src/components/Flex.tsx +118 -118
  27. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  28. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  29. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  30. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  31. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  32. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  33. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  34. package/src/components/FormFields/CPFFormField.tsx +78 -78
  35. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  36. package/src/components/FormFields/EmailFormField.tsx +27 -27
  37. package/src/components/FormFields/Form.tsx +39 -39
  38. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +40 -40
  39. package/src/components/FormFields/MultiSelectFormField.tsx +55 -55
  40. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  41. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  42. package/src/components/FormFields/SelectFormField.tsx +93 -93
  43. package/src/components/FormFields/TextAreaFormField.tsx +48 -48
  44. package/src/components/FormFields/TextFormField.tsx +112 -112
  45. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  46. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  47. package/src/components/FormFields/utils/validation.ts +23 -23
  48. package/src/components/Grid.tsx +137 -137
  49. package/src/components/Icon.tsx +47 -47
  50. package/src/components/MenuDropdown/index.tsx +38 -30
  51. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  52. package/src/components/Modal.tsx +90 -90
  53. package/src/components/MultiSelect.tsx +252 -218
  54. package/src/components/RadioGroup.tsx +210 -210
  55. package/src/components/Section.tsx +33 -33
  56. package/src/components/Step.tsx +164 -164
  57. package/src/components/Switch.tsx +108 -108
  58. package/src/components/Text.tsx +38 -38
  59. package/src/components/TextField.tsx +365 -365
  60. package/src/components/TextareaField.tsx +128 -128
  61. package/src/components/TimePicker.tsx +298 -298
  62. package/src/components/Toast/components/ToastItem.tsx +41 -41
  63. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  64. package/src/components/Toast/hooks/useToast.ts +12 -12
  65. package/src/components/Toast/index.tsx +5 -5
  66. package/src/components/Toast/styles/index.ts +135 -135
  67. package/src/components/Toast/types/index.ts +46 -46
  68. package/src/components/Tooltip/index.tsx +66 -66
  69. package/src/components/Tooltip/styles.ts +77 -77
  70. package/src/hooks/useCountries.ts +41 -41
  71. package/src/hooks/useOnClickOutside.tsx +20 -20
  72. package/src/index.tsx +54 -54
  73. package/src/styles/index.ts +38 -38
  74. package/src/types/typographyValues.ts +178 -178
  75. package/src/utils/getNestedValue.ts +3 -3
  76. package/src/utils/states.ts +29 -29
  77. package/tsconfig.json +3 -3
package/dist/index.mjs CHANGED
@@ -256,7 +256,7 @@ var require_react_is_development = __commonJS({
256
256
  var ContextProvider = REACT_PROVIDER_TYPE;
257
257
  var Element = REACT_ELEMENT_TYPE;
258
258
  var ForwardRef = REACT_FORWARD_REF_TYPE;
259
- var Fragment4 = REACT_FRAGMENT_TYPE;
259
+ var Fragment5 = REACT_FRAGMENT_TYPE;
260
260
  var Lazy = REACT_LAZY_TYPE;
261
261
  var Memo = REACT_MEMO_TYPE;
262
262
  var Portal = REACT_PORTAL_TYPE;
@@ -315,7 +315,7 @@ var require_react_is_development = __commonJS({
315
315
  exports.ContextProvider = ContextProvider;
316
316
  exports.Element = Element;
317
317
  exports.ForwardRef = ForwardRef;
318
- exports.Fragment = Fragment4;
318
+ exports.Fragment = Fragment5;
319
319
  exports.Lazy = Lazy;
320
320
  exports.Memo = Memo;
321
321
  exports.Portal = Portal;
@@ -3781,6 +3781,9 @@ function Modal(_a) {
3781
3781
  ] }));
3782
3782
  }
3783
3783
 
3784
+ // src/components/MenuDropdown/index.tsx
3785
+ import { useRef as useRef2 } from "react";
3786
+
3784
3787
  // src/components/MenuDropdown/styledComponents.ts
3785
3788
  var MenuDropdownContainerStyled = styled("div", {
3786
3789
  position: "relative",
@@ -3812,22 +3815,6 @@ var MenuItemsContainerStyled = styled("div", {
3812
3815
  height: "fit-content"
3813
3816
  });
3814
3817
 
3815
- // src/components/MenuDropdown/index.tsx
3816
- import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
3817
- function MenuDropdown({
3818
- children,
3819
- isOpen,
3820
- setIsOpen
3821
- }) {
3822
- return /* @__PURE__ */ jsxs5(MenuDropdownContainerStyled, { children: [
3823
- /* @__PURE__ */ jsx14(TriggerButtonStyled, { onClick: () => setIsOpen(!isOpen), children: /* @__PURE__ */ jsx14(Icon_default, { name: "ellipsis", size: "xl", color: "#FFFFFF" }) }),
3824
- isOpen && /* @__PURE__ */ jsx14(MenuItemsContainerStyled, { children })
3825
- ] });
3826
- }
3827
-
3828
- // src/components/Calendar/index.tsx
3829
- import { useRef as useRef2, useEffect as useEffect3, useState as useState2 } from "react";
3830
-
3831
3818
  // src/hooks/useOnClickOutside.tsx
3832
3819
  import { useEffect as useEffect2 } from "react";
3833
3820
  function useOnClickOutside(ref, handler) {
@@ -3847,7 +3834,25 @@ function useOnClickOutside(ref, handler) {
3847
3834
  }, [ref, handler]);
3848
3835
  }
3849
3836
 
3837
+ // src/components/MenuDropdown/index.tsx
3838
+ import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
3839
+ function MenuDropdown({
3840
+ children,
3841
+ isOpen,
3842
+ setIsOpen
3843
+ }) {
3844
+ const dropdownItemsContainerRef = useRef2(null);
3845
+ useOnClickOutside(dropdownItemsContainerRef, () => {
3846
+ setIsOpen(false);
3847
+ });
3848
+ return /* @__PURE__ */ jsxs5(MenuDropdownContainerStyled, { children: [
3849
+ /* @__PURE__ */ jsx14(TriggerButtonStyled, { onClick: () => setIsOpen(!isOpen), children: /* @__PURE__ */ jsx14(Icon_default, { name: "ellipsis", size: "xl", color: "#FFFFFF" }) }),
3850
+ isOpen && /* @__PURE__ */ jsx14(MenuItemsContainerStyled, { ref: dropdownItemsContainerRef, children })
3851
+ ] });
3852
+ }
3853
+
3850
3854
  // src/components/Calendar/index.tsx
3855
+ import { useRef as useRef3, useEffect as useEffect3, useState as useState2 } from "react";
3851
3856
  import { DayPicker } from "react-day-picker";
3852
3857
 
3853
3858
  // ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
@@ -7970,7 +7975,7 @@ function Calendar(_a) {
7970
7975
  ]);
7971
7976
  const [inputValue, setInputValue] = useState2("");
7972
7977
  const [showContainer, setShowCalendar] = useState2(false);
7973
- const dropdownRef = useRef2(null);
7978
+ const dropdownRef = useRef3(null);
7974
7979
  useOnClickOutside(dropdownRef, () => {
7975
7980
  setShowCalendar(false);
7976
7981
  });
@@ -8052,6 +8057,9 @@ function Calendar(_a) {
8052
8057
  ] })) });
8053
8058
  }
8054
8059
 
8060
+ // src/components/Drawer/index.tsx
8061
+ import { useRef as useRef4 } from "react";
8062
+
8055
8063
  // src/components/Drawer/styledComponents.ts
8056
8064
  var DrawerOverlayStyled = styled("div", {
8057
8065
  position: "fixed",
@@ -8107,9 +8115,14 @@ function Drawer({
8107
8115
  children
8108
8116
  }) {
8109
8117
  if (!isOpen) return null;
8118
+ const drawerContainerRef = useRef4(null);
8119
+ useOnClickOutside(drawerContainerRef, () => {
8120
+ onClose();
8121
+ });
8110
8122
  return /* @__PURE__ */ jsx16(DrawerOverlayStyled, { children: /* @__PURE__ */ jsxs7(
8111
8123
  DrawerContainerStyled,
8112
8124
  {
8125
+ ref: drawerContainerRef,
8113
8126
  style: {
8114
8127
  width: width != null ? width : "34.25rem",
8115
8128
  backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
@@ -8126,7 +8139,7 @@ function Drawer({
8126
8139
  }
8127
8140
 
8128
8141
  // src/components/TimePicker.tsx
8129
- import { useCallback, useRef as useRef3, useState as useState3 } from "react";
8142
+ import { useCallback, useRef as useRef5, useState as useState3 } from "react";
8130
8143
  import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
8131
8144
  var TimePickerStyled = styled("div", {
8132
8145
  position: "relative",
@@ -8235,7 +8248,7 @@ function TimePicker({
8235
8248
  const [rawHours, setRawHours] = useState3("00");
8236
8249
  const [rawMinutes, setRawMinutes] = useState3("00");
8237
8250
  const [isOpen, setIsOpen] = useState3(false);
8238
- const dropdownRef = useRef3(null);
8251
+ const dropdownRef = useRef5(null);
8239
8252
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
8240
8253
  const handleIncrement = useCallback(
8241
8254
  (type) => {
@@ -8773,7 +8786,7 @@ function Switch(props) {
8773
8786
  }
8774
8787
 
8775
8788
  // src/components/Step.tsx
8776
- import React6 from "react";
8789
+ import React7 from "react";
8777
8790
  import { Box as Box2, Tabs as StepRadix } from "@radix-ui/themes";
8778
8791
  import { jsx as jsx20 } from "react/jsx-runtime";
8779
8792
  var StepStyled = styled("div", {
@@ -8889,9 +8902,9 @@ function StepList(_a) {
8889
8902
  "children",
8890
8903
  "currentStep"
8891
8904
  ]);
8892
- return /* @__PURE__ */ jsx20(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React6.Children.map(children, (child) => {
8893
- if (React6.isValidElement(child) && child.type === StepTrigger) {
8894
- return React6.cloneElement(child, { currentStep });
8905
+ return /* @__PURE__ */ jsx20(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React7.Children.map(children, (child) => {
8906
+ if (React7.isValidElement(child) && child.type === StepTrigger) {
8907
+ return React7.cloneElement(child, { currentStep });
8895
8908
  }
8896
8909
  return child;
8897
8910
  }) }));
@@ -8948,7 +8961,7 @@ function Card(_a) {
8948
8961
 
8949
8962
  // src/components/TextareaField.tsx
8950
8963
  import { TextArea as TextAreaRadix } from "@radix-ui/themes";
8951
- import React7, { useRef as useRef4 } from "react";
8964
+ import React8, { useRef as useRef6 } from "react";
8952
8965
  import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
8953
8966
  var TextareaFieldStyle = styled(TextAreaRadix, {
8954
8967
  display: "flex",
@@ -9013,10 +9026,10 @@ var TextareaLimitIndicator = styled("div", {
9013
9026
  padding: "$4"
9014
9027
  }
9015
9028
  });
9016
- var TextareaField = React7.forwardRef((_a, fowardedRef) => {
9029
+ var TextareaField = React8.forwardRef((_a, fowardedRef) => {
9017
9030
  var _b = _a, { maxLength, color } = _b, props = __objRest(_b, ["maxLength", "color"]);
9018
- const inputRef = useRef4(null);
9019
- const badgeRef = useRef4(null);
9031
+ const inputRef = useRef6(null);
9032
+ const badgeRef = useRef6(null);
9020
9033
  const updateCharCountBadge = () => {
9021
9034
  var _a2, _b2;
9022
9035
  if (!maxLength || !badgeRef.current) return;
@@ -9318,11 +9331,11 @@ import { FontAwesomeIcon as FontAwesomeIcon3 } from "@fortawesome/react-fontawes
9318
9331
  import {
9319
9332
  faChevronDown as faChevronDown2,
9320
9333
  faChevronUp as faChevronUp2,
9321
- faX
9334
+ faSquareXmark
9322
9335
  } from "@fortawesome/free-solid-svg-icons";
9323
- import { useCallback as useCallback2, useMemo, useRef as useRef5, useState as useState6 } from "react";
9324
- import React8 from "react";
9325
- import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9336
+ import { useCallback as useCallback2, useMemo, useRef as useRef7, useState as useState6 } from "react";
9337
+ import React9 from "react";
9338
+ import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
9326
9339
  var StyledContent = styled(DropdownMenu3.Content, {
9327
9340
  backgroundColor: "$dark50",
9328
9341
  borderRadius: "$sm",
@@ -9361,31 +9374,23 @@ var itemStyle = {
9361
9374
  boxSizing: "border-box",
9362
9375
  backgroundColor: "$dark50",
9363
9376
  display: "block",
9377
+ cursor: "pointer",
9364
9378
  "&:hover": {
9365
9379
  backgroundColor: "$dark100"
9366
9380
  }
9367
9381
  };
9382
+ var StyledItem2 = styled("div", __spreadValues({}, itemStyle));
9368
9383
  var BadgeWrapper = styled("div", {
9369
9384
  flex: "1",
9370
9385
  display: "flex",
9371
- justifyContent: "start",
9372
- flexWrap: "wrap",
9373
- gap: "4px"
9386
+ gap: "4px",
9387
+ marginTop: "8px",
9388
+ flexDirection: "column"
9374
9389
  });
9375
9390
  var BadgeCloseBtn = styled("div", {
9376
- borderRadius: "100%",
9377
- width: "16px",
9378
- height: "16px",
9379
- minWidth: "16px",
9380
- minHeight: "16px",
9381
- display: "flex",
9382
- justifyContent: "center",
9383
- alignItems: "center",
9384
- "&:hover": {
9385
- backgroundColor: "$dark600"
9386
- }
9391
+ cursor: "pointer"
9387
9392
  });
9388
- var MultiSelect = React8.forwardRef(
9393
+ var MultiSelect = React9.forwardRef(
9389
9394
  ({
9390
9395
  placeholder,
9391
9396
  value: selectedValues = [],
@@ -9393,11 +9398,13 @@ var MultiSelect = React8.forwardRef(
9393
9398
  options,
9394
9399
  color,
9395
9400
  width = "100%",
9396
- zIndex = "auto"
9401
+ zIndex = "auto",
9402
+ showSelectedValues = true,
9403
+ singleSelect = false
9397
9404
  }, fowardedRef) => {
9398
9405
  var _a;
9399
9406
  const [isOpen, setIsOpen] = useState6(false);
9400
- const triggerRef = useRef5(null);
9407
+ const triggerRef = useRef7(null);
9401
9408
  const labelByValue = useMemo(() => {
9402
9409
  return options.reduce((prev, curr) => {
9403
9410
  return __spreadProps(__spreadValues({}, prev), {
@@ -9413,72 +9420,106 @@ var MultiSelect = React8.forwardRef(
9413
9420
  [selectedValues, onValueChange]
9414
9421
  );
9415
9422
  const menuWidth = (_a = triggerRef.current) == null ? void 0 : _a.offsetWidth;
9416
- return /* @__PURE__ */ jsx26(Theme3, { children: /* @__PURE__ */ jsxs14(DropdownMenu3.Root, { open: isOpen, onOpenChange: () => setIsOpen(false), children: [
9417
- /* @__PURE__ */ jsx26(DropdownMenu3.Trigger, { onClick: () => setIsOpen(true), children: /* @__PURE__ */ jsxs14(
9418
- StyledTrigger,
9419
- {
9420
- css: {
9421
- width
9422
- },
9423
- ref: (r) => {
9424
- if (!r) return;
9425
- triggerRef.current = r;
9426
- if (fowardedRef) {
9427
- if (typeof fowardedRef === "function") fowardedRef(r);
9428
- else {
9429
- fowardedRef.current = r;
9423
+ const text = useMemo(() => {
9424
+ if (selectedValues.length > 0 && singleSelect) {
9425
+ const value = selectedValues[0];
9426
+ return labelByValue[value];
9427
+ }
9428
+ return placeholder != null ? placeholder : "Selecione";
9429
+ }, [selectedValues, placeholder, singleSelect]);
9430
+ const handleItemClick = (v) => {
9431
+ onValueChange == null ? void 0 : onValueChange([v]);
9432
+ setIsOpen(false);
9433
+ };
9434
+ return /* @__PURE__ */ jsxs14(Theme3, { children: [
9435
+ /* @__PURE__ */ jsxs14(DropdownMenu3.Root, { open: isOpen, onOpenChange: () => setIsOpen(false), children: [
9436
+ /* @__PURE__ */ jsx26(DropdownMenu3.Trigger, { onClick: () => setIsOpen(true), children: /* @__PURE__ */ jsxs14(
9437
+ StyledTrigger,
9438
+ {
9439
+ css: {
9440
+ width
9441
+ },
9442
+ ref: (r) => {
9443
+ if (!r) return;
9444
+ triggerRef.current = r;
9445
+ if (fowardedRef) {
9446
+ if (typeof fowardedRef === "function") fowardedRef(r);
9447
+ else {
9448
+ fowardedRef.current = r;
9449
+ }
9430
9450
  }
9431
- }
9432
- },
9433
- color,
9434
- children: [
9435
- selectedValues.length === 0 ? /* @__PURE__ */ jsx26(Text, { typography: "labelMedium", css: { flex: 1 }, children: placeholder != null ? placeholder : "Selecione" }) : /* @__PURE__ */ jsx26(BadgeWrapper, { children: selectedValues.map((value) => {
9436
- return /* @__PURE__ */ jsx26(Badge, { size: "sm", color: "dark", children: /* @__PURE__ */ jsxs14(Flex2, { justify: "between", align: "center", children: [
9437
- /* @__PURE__ */ jsx26(Text, { typography: "badgeSmall", color: "dark100", children: labelByValue[value] }),
9438
- /* @__PURE__ */ jsx26(
9439
- BadgeCloseBtn,
9440
- {
9441
- onClick: (e) => {
9442
- e.stopPropagation();
9443
- handleRemove(value);
9444
- },
9445
- role: "button",
9446
- children: /* @__PURE__ */ jsx26(FontAwesomeIcon3, { icon: faX, size: "xs" })
9447
- }
9448
- )
9449
- ] }) }, value);
9450
- }) }),
9451
- /* @__PURE__ */ jsx26(
9452
- FontAwesomeIcon3,
9451
+ },
9452
+ color,
9453
+ children: [
9454
+ /* @__PURE__ */ jsx26(
9455
+ Text,
9456
+ {
9457
+ typography: "labelMedium",
9458
+ css: {
9459
+ flex: 1,
9460
+ overflow: "hidden",
9461
+ whiteSpace: "nowrap",
9462
+ textOverflow: "ellipsis"
9463
+ },
9464
+ children: text
9465
+ }
9466
+ ),
9467
+ /* @__PURE__ */ jsx26(
9468
+ FontAwesomeIcon3,
9469
+ {
9470
+ icon: isOpen ? faChevronUp2 : faChevronDown2,
9471
+ size: "sm",
9472
+ color: colors.dark600
9473
+ }
9474
+ )
9475
+ ]
9476
+ }
9477
+ ) }),
9478
+ /* @__PURE__ */ jsx26(
9479
+ StyledContent,
9480
+ {
9481
+ css: {
9482
+ width: menuWidth ? menuWidth + "px" : width,
9483
+ zIndex
9484
+ },
9485
+ children: !singleSelect ? /* @__PURE__ */ jsx26(
9486
+ CheckboxGroup,
9453
9487
  {
9454
- icon: isOpen ? faChevronUp2 : faChevronDown2,
9455
- size: "sm",
9456
- color: colors.dark600
9488
+ value: selectedValues,
9489
+ onValueChange: (v) => {
9490
+ onValueChange == null ? void 0 : onValueChange(v);
9491
+ },
9492
+ children: /* @__PURE__ */ jsx26(Flex2, { direction: "column", gap: 8, children: options.map(({ value, label }, i) => /* @__PURE__ */ jsx26(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: label }) }, i)) })
9457
9493
  }
9458
- )
9459
- ]
9460
- }
9461
- ) }),
9462
- /* @__PURE__ */ jsx26(
9463
- StyledContent,
9464
- {
9465
- css: {
9466
- width: menuWidth ? menuWidth + "px" : width,
9467
- zIndex
9468
- },
9469
- children: /* @__PURE__ */ jsx26(
9470
- CheckboxGroup,
9494
+ ) : /* @__PURE__ */ jsx26(Flex2, { direction: "column", gap: 8, children: options.map(({ value, label }, i) => /* @__PURE__ */ jsx26(StyledItem2, { onClick: () => handleItemClick(value), children: /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: label }) }, i)) })
9495
+ }
9496
+ )
9497
+ ] }),
9498
+ selectedValues.length > 0 && showSelectedValues && /* @__PURE__ */ jsx26(Fragment2, { children: /* @__PURE__ */ jsx26(BadgeWrapper, { children: selectedValues.map((value) => {
9499
+ return /* @__PURE__ */ jsxs14(Flex2, { gap: 4, children: [
9500
+ /* @__PURE__ */ jsx26(
9501
+ BadgeCloseBtn,
9471
9502
  {
9472
- value: selectedValues,
9473
- onValueChange: (v) => {
9474
- onValueChange == null ? void 0 : onValueChange(v);
9503
+ onClick: (e) => {
9504
+ e.stopPropagation();
9505
+ handleRemove(value);
9475
9506
  },
9476
- children: /* @__PURE__ */ jsx26(Flex2, { direction: "column", gap: 8, children: options.map(({ value, label }, i) => /* @__PURE__ */ jsx26(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ jsx26(Text, { typography: "labelSmall", children: label }) }, i)) })
9507
+ role: "button",
9508
+ children: /* @__PURE__ */ jsx26(FontAwesomeIcon3, { icon: faSquareXmark, size: "sm" })
9509
+ }
9510
+ ),
9511
+ /* @__PURE__ */ jsx26(
9512
+ Text,
9513
+ {
9514
+ typography: "captionMedium",
9515
+ fontWeight: "regular",
9516
+ color: "dark600",
9517
+ children: labelByValue[value]
9477
9518
  }
9478
9519
  )
9479
- }
9480
- )
9481
- ] }) });
9520
+ ] });
9521
+ }) }) })
9522
+ ] });
9482
9523
  }
9483
9524
  );
9484
9525
 
@@ -10382,14 +10423,14 @@ var brazilianStates = [
10382
10423
  ];
10383
10424
 
10384
10425
  // src/components/FormFields/AddressFormFields/StateFormField.tsx
10385
- import { Fragment as Fragment2, jsx as jsx44 } from "react/jsx-runtime";
10426
+ import { Fragment as Fragment3, jsx as jsx44 } from "react/jsx-runtime";
10386
10427
  function StateFormField({
10387
10428
  name,
10388
10429
  label,
10389
10430
  required,
10390
10431
  isBrazil
10391
10432
  }) {
10392
- return /* @__PURE__ */ jsx44(Fragment2, { children: isBrazil ? /* @__PURE__ */ jsx44(
10433
+ return /* @__PURE__ */ jsx44(Fragment3, { children: isBrazil ? /* @__PURE__ */ jsx44(
10393
10434
  SelectFormField,
10394
10435
  {
10395
10436
  name,
@@ -10403,7 +10444,7 @@ function StateFormField({
10403
10444
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
10404
10445
  import { useEffect as useEffect4, useState as useState7 } from "react";
10405
10446
  import { useFormContext as useFormContext6, Controller as Controller2 } from "react-hook-form";
10406
- import { Fragment as Fragment3, jsx as jsx45 } from "react/jsx-runtime";
10447
+ import { Fragment as Fragment4, jsx as jsx45 } from "react/jsx-runtime";
10407
10448
  function CityFormField({
10408
10449
  name,
10409
10450
  label,
@@ -10455,7 +10496,7 @@ function CityFormField({
10455
10496
  }
10456
10497
  fetchCities();
10457
10498
  }, [selectedState, isBrazil]);
10458
- return /* @__PURE__ */ jsx45(Fragment3, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx45(
10499
+ return /* @__PURE__ */ jsx45(Fragment4, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ jsx45(
10459
10500
  Controller2,
10460
10501
  {
10461
10502
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "11.7.9",
3
+ "version": "11.8.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",