@lets-events/react 12.6.1 → 12.6.3

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
@@ -1712,6 +1712,13 @@ var ButtonStyled = styled(ButtonRadix, {
1712
1712
  full: {
1713
1713
  borderRadius: "$full"
1714
1714
  }
1715
+ },
1716
+ isCircle: {
1717
+ true: {
1718
+ borderRadius: "$full",
1719
+ padding: 0,
1720
+ aspectRatio: "1"
1721
+ }
1715
1722
  }
1716
1723
  },
1717
1724
  compoundVariants: [
@@ -1745,7 +1752,118 @@ var SpinningDiv = styled("div", {
1745
1752
 
1746
1753
  // src/components/Button/index.tsx
1747
1754
  import { Button as ButtonRadix2 } from "@radix-ui/themes";
1748
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1755
+
1756
+ // src/components/Flex.tsx
1757
+ import { Flex as FlexRadix } from "@radix-ui/themes";
1758
+ import { jsx as jsx3 } from "react/jsx-runtime";
1759
+ var FlexStyled = styled(FlexRadix, {
1760
+ variants: {
1761
+ display: {
1762
+ "flex": { display: "flex" },
1763
+ "inline-flex": { display: "inline-flex" }
1764
+ },
1765
+ align: {
1766
+ start: { alignItems: "flex-start" },
1767
+ center: { alignItems: "center" },
1768
+ end: { alignItems: "flex-end" },
1769
+ stretch: { alignItems: "stretch" },
1770
+ baseline: { alignItems: "baseline" }
1771
+ },
1772
+ justify: {
1773
+ start: { justifyContent: "flex-start" },
1774
+ center: { justifyContent: "center" },
1775
+ end: { justifyContent: "flex-end" },
1776
+ between: { justifyContent: "space-between" },
1777
+ around: { justifyContent: "space-around" },
1778
+ evenly: { justifyContent: "space-evenly" }
1779
+ },
1780
+ direction: {
1781
+ row: { flexDirection: "row" },
1782
+ column: { flexDirection: "column" },
1783
+ "row-reverse": { flexDirection: "row-reverse" },
1784
+ "column-reverse": { flexDirection: "column-reverse" }
1785
+ },
1786
+ gap: {
1787
+ 0: { gap: "0px" },
1788
+ 2: { gap: "$2" },
1789
+ 4: { gap: "$4" },
1790
+ 6: { gap: "$6" },
1791
+ 8: { gap: "$8" },
1792
+ 10: { gap: "$10" },
1793
+ 12: { gap: "$12" },
1794
+ 14: { gap: "$14" },
1795
+ 16: { gap: "$16" },
1796
+ 20: { gap: "$20" },
1797
+ 22: { gap: "$22" },
1798
+ 24: { gap: "$24" },
1799
+ 32: { gap: "$32" },
1800
+ 36: { gap: "$36" },
1801
+ 40: { gap: "$40" },
1802
+ 48: { gap: "$48" },
1803
+ 56: { gap: "$56" },
1804
+ 64: { gap: "$64" },
1805
+ 72: { gap: "$72" },
1806
+ 80: { gap: "$80" },
1807
+ full: { gap: "$full" }
1808
+ },
1809
+ gapY: {
1810
+ 2: { gap: "$2" },
1811
+ 4: { gap: "$4" },
1812
+ 6: { gap: "$6" },
1813
+ 8: { gap: "$8" },
1814
+ 10: { gap: "$10" },
1815
+ 12: { gap: "$12" },
1816
+ 14: { gap: "$14" },
1817
+ 16: { gap: "$16" },
1818
+ 20: { gap: "$20" },
1819
+ 22: { gap: "$22" },
1820
+ 24: { gap: "$24" },
1821
+ 32: { gap: "$32" },
1822
+ 36: { gap: "$36" },
1823
+ 40: { gap: "$40" },
1824
+ 48: { gap: "$48" },
1825
+ 56: { gap: "$56" },
1826
+ 64: { gap: "$64" },
1827
+ 72: { gap: "$72" },
1828
+ 80: { gap: "$80" },
1829
+ full: { gap: "$full" }
1830
+ },
1831
+ gapX: {
1832
+ 2: { gap: "$2" },
1833
+ 4: { gap: "$4" },
1834
+ 6: { gap: "$6" },
1835
+ 8: { gap: "$8" },
1836
+ 10: { gap: "$10" },
1837
+ 12: { gap: "$12" },
1838
+ 14: { gap: "$14" },
1839
+ 16: { gap: "$16" },
1840
+ 20: { gap: "$20" },
1841
+ 22: { gap: "$22" },
1842
+ 24: { gap: "$24" },
1843
+ 32: { gap: "$32" },
1844
+ 36: { gap: "$36" },
1845
+ 40: { gap: "$40" },
1846
+ 48: { gap: "$48" },
1847
+ 56: { gap: "$56" },
1848
+ 64: { gap: "$64" },
1849
+ 72: { gap: "$72" },
1850
+ 80: { gap: "$80" },
1851
+ full: { gap: "$full" }
1852
+ }
1853
+ },
1854
+ defaultVariants: {
1855
+ display: "flex",
1856
+ direction: "row",
1857
+ gap: 10
1858
+ }
1859
+ });
1860
+ function Flex(_a) {
1861
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1862
+ return /* @__PURE__ */ jsx3(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
1863
+ }
1864
+
1865
+ // src/components/Button/index.tsx
1866
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
1749
1867
  function Button(_a) {
1750
1868
  var _b = _a, { asChild, children, loading } = _b, props = __objRest(_b, ["asChild", "children", "loading"]);
1751
1869
  const Component = asChild ? ButtonRadix2 : "button";
@@ -1764,9 +1882,17 @@ function Button(_a) {
1764
1882
  return "md";
1765
1883
  }
1766
1884
  }, [size]);
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(
1885
+ return /* @__PURE__ */ jsx4(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
1886
+ /* @__PURE__ */ jsx4(
1887
+ Flex,
1888
+ {
1889
+ justify: "center",
1890
+ align: "center",
1891
+ css: { visibility: loading ? "hidden" : void 0 },
1892
+ children
1893
+ }
1894
+ ),
1895
+ loading && /* @__PURE__ */ jsx4(
1770
1896
  "div",
1771
1897
  {
1772
1898
  style: {
@@ -1775,15 +1901,15 @@ function Button(_a) {
1775
1901
  left: "50%",
1776
1902
  transform: "translate(-50%, -50%)"
1777
1903
  },
1778
- children: /* @__PURE__ */ jsx3(SpinningDiv, { children: /* @__PURE__ */ jsx3(Icon_default, { name: "circle-notch", size: spinnerSize }) })
1904
+ children: /* @__PURE__ */ jsx4(SpinningDiv, { children: /* @__PURE__ */ jsx4(Icon_default, { name: "circle-notch", size: spinnerSize }) })
1779
1905
  }
1780
1906
  )
1781
1907
  ] }) }));
1782
1908
  }
1783
1909
 
1784
1910
  // src/components/ButtonGroup.tsx
1785
- import { Button as Button2, Flex } from "@radix-ui/themes";
1786
- import { jsx as jsx4 } from "react/jsx-runtime";
1911
+ import { Button as Button2, Flex as Flex2 } from "@radix-ui/themes";
1912
+ import { jsx as jsx5 } from "react/jsx-runtime";
1787
1913
  var ButtonItemStyled = styled(Button2, {
1788
1914
  fontFamily: "$default",
1789
1915
  letterSpacing: 0,
@@ -1797,7 +1923,7 @@ var ButtonItemStyled = styled(Button2, {
1797
1923
  }
1798
1924
  }
1799
1925
  });
1800
- var ButtonGroupStyled = styled(Flex, {
1926
+ var ButtonGroupStyled = styled(Flex2, {
1801
1927
  display: "flex",
1802
1928
  borderRadius: "$md",
1803
1929
  overflow: "hidden",
@@ -2249,16 +2375,16 @@ var ButtonGroupStyled = styled(Flex, {
2249
2375
  });
2250
2376
  function ButtonItem(_a) {
2251
2377
  var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
2252
- return /* @__PURE__ */ jsx4(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
2378
+ return /* @__PURE__ */ jsx5(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
2253
2379
  }
2254
2380
  function ButtonGroup(_a) {
2255
2381
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2256
- return /* @__PURE__ */ jsx4(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
2382
+ return /* @__PURE__ */ jsx5(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
2257
2383
  }
2258
2384
 
2259
2385
  // src/components/Avatar.tsx
2260
2386
  import { Avatar as AvatarRadix } from "@radix-ui/themes";
2261
- import { jsx as jsx5 } from "react/jsx-runtime";
2387
+ import { jsx as jsx6 } from "react/jsx-runtime";
2262
2388
  var AvatarStyled = styled(AvatarRadix, {
2263
2389
  fontFamily: "$default",
2264
2390
  color: "$gray100",
@@ -2303,123 +2429,12 @@ var AvatarStyled = styled(AvatarRadix, {
2303
2429
  });
2304
2430
  function Avatar(_a) {
2305
2431
  var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
2306
- return /* @__PURE__ */ jsx5(AvatarStyled, __spreadValues({ as: AvatarRadix }, props));
2432
+ return /* @__PURE__ */ jsx6(AvatarStyled, __spreadValues({ as: AvatarRadix }, props));
2307
2433
  }
2308
2434
 
2309
2435
  // src/components/TextField.tsx
2310
2436
  import React from "react";
2311
2437
  import { TextField as TextFieldRadix } from "@radix-ui/themes";
2312
-
2313
- // src/components/Flex.tsx
2314
- import { Flex as FlexRadix } from "@radix-ui/themes";
2315
- import { jsx as jsx6 } from "react/jsx-runtime";
2316
- var FlexStyled = styled(FlexRadix, {
2317
- variants: {
2318
- display: {
2319
- "flex": { display: "flex" },
2320
- "inline-flex": { display: "inline-flex" }
2321
- },
2322
- align: {
2323
- start: { alignItems: "flex-start" },
2324
- center: { alignItems: "center" },
2325
- end: { alignItems: "flex-end" },
2326
- stretch: { alignItems: "stretch" },
2327
- baseline: { alignItems: "baseline" }
2328
- },
2329
- justify: {
2330
- start: { justifyContent: "flex-start" },
2331
- center: { justifyContent: "center" },
2332
- end: { justifyContent: "flex-end" },
2333
- between: { justifyContent: "space-between" },
2334
- around: { justifyContent: "space-around" },
2335
- evenly: { justifyContent: "space-evenly" }
2336
- },
2337
- direction: {
2338
- row: { flexDirection: "row" },
2339
- column: { flexDirection: "column" },
2340
- "row-reverse": { flexDirection: "row-reverse" },
2341
- "column-reverse": { flexDirection: "column-reverse" }
2342
- },
2343
- gap: {
2344
- 0: { gap: "0px" },
2345
- 2: { gap: "$2" },
2346
- 4: { gap: "$4" },
2347
- 6: { gap: "$6" },
2348
- 8: { gap: "$8" },
2349
- 10: { gap: "$10" },
2350
- 12: { gap: "$12" },
2351
- 14: { gap: "$14" },
2352
- 16: { gap: "$16" },
2353
- 20: { gap: "$20" },
2354
- 22: { gap: "$22" },
2355
- 24: { gap: "$24" },
2356
- 32: { gap: "$32" },
2357
- 36: { gap: "$36" },
2358
- 40: { gap: "$40" },
2359
- 48: { gap: "$48" },
2360
- 56: { gap: "$56" },
2361
- 64: { gap: "$64" },
2362
- 72: { gap: "$72" },
2363
- 80: { gap: "$80" },
2364
- full: { gap: "$full" }
2365
- },
2366
- gapY: {
2367
- 2: { gap: "$2" },
2368
- 4: { gap: "$4" },
2369
- 6: { gap: "$6" },
2370
- 8: { gap: "$8" },
2371
- 10: { gap: "$10" },
2372
- 12: { gap: "$12" },
2373
- 14: { gap: "$14" },
2374
- 16: { gap: "$16" },
2375
- 20: { gap: "$20" },
2376
- 22: { gap: "$22" },
2377
- 24: { gap: "$24" },
2378
- 32: { gap: "$32" },
2379
- 36: { gap: "$36" },
2380
- 40: { gap: "$40" },
2381
- 48: { gap: "$48" },
2382
- 56: { gap: "$56" },
2383
- 64: { gap: "$64" },
2384
- 72: { gap: "$72" },
2385
- 80: { gap: "$80" },
2386
- full: { gap: "$full" }
2387
- },
2388
- gapX: {
2389
- 2: { gap: "$2" },
2390
- 4: { gap: "$4" },
2391
- 6: { gap: "$6" },
2392
- 8: { gap: "$8" },
2393
- 10: { gap: "$10" },
2394
- 12: { gap: "$12" },
2395
- 14: { gap: "$14" },
2396
- 16: { gap: "$16" },
2397
- 20: { gap: "$20" },
2398
- 22: { gap: "$22" },
2399
- 24: { gap: "$24" },
2400
- 32: { gap: "$32" },
2401
- 36: { gap: "$36" },
2402
- 40: { gap: "$40" },
2403
- 48: { gap: "$48" },
2404
- 56: { gap: "$56" },
2405
- 64: { gap: "$64" },
2406
- 72: { gap: "$72" },
2407
- 80: { gap: "$80" },
2408
- full: { gap: "$full" }
2409
- }
2410
- },
2411
- defaultVariants: {
2412
- display: "flex",
2413
- direction: "row",
2414
- gap: 10
2415
- }
2416
- });
2417
- function Flex2(_a) {
2418
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2419
- return /* @__PURE__ */ jsx6(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
2420
- }
2421
-
2422
- // src/components/TextField.tsx
2423
2438
  import { format, useMask, unformat } from "@react-input/mask";
2424
2439
  import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
2425
2440
  var TextFieldStyled = styled(TextFieldRadix.Root, {
@@ -2653,8 +2668,8 @@ var TextField = React.forwardRef(
2653
2668
  updateCharCountBadge();
2654
2669
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
2655
2670
  };
2656
- return /* @__PURE__ */ jsxs2(Flex2, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2657
- /* @__PURE__ */ jsxs2(Flex2, { gap: "0", css: { width: "100%" }, children: [
2671
+ return /* @__PURE__ */ jsxs2(Flex, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2672
+ /* @__PURE__ */ jsxs2(Flex, { gap: "0", css: { width: "100%" }, children: [
2658
2673
  !!addon && /* @__PURE__ */ jsx7(
2659
2674
  InputAddon,
2660
2675
  {
@@ -8338,7 +8353,7 @@ function Drawer({
8338
8353
  },
8339
8354
  children: [
8340
8355
  /* @__PURE__ */ jsxs9(DrawerHeaderDiv, { children: [
8341
- /* @__PURE__ */ jsxs9(Flex2, { gap: 8, align: "center", children: [
8356
+ /* @__PURE__ */ jsxs9(Flex, { gap: 8, align: "center", children: [
8342
8357
  goBackIcon && goBackIcon && /* @__PURE__ */ jsx17(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8343
8358
  /* @__PURE__ */ jsx17(DrawerHeaderTitle, { children: title })
8344
8359
  ] }),
@@ -8906,7 +8921,7 @@ function Alert(_a) {
8906
8921
  ] })
8907
8922
  ] }),
8908
8923
  completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx19(AlertDialoghrStyled, {}) : null,
8909
- /* @__PURE__ */ jsx19(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs11(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8924
+ /* @__PURE__ */ jsx19(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs11(Flex, { gap: "10", justify: "end", width: "100%", children: [
8910
8925
  completAlert.onAction && /* @__PURE__ */ jsx19(AlertDialog.Action, { children: /* @__PURE__ */ jsx19(
8911
8926
  Button,
8912
8927
  {
@@ -9285,7 +9300,7 @@ var TextareaField = React9.forwardRef((_a, forwardedRef) => {
9285
9300
  }
9286
9301
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9287
9302
  };
9288
- return /* @__PURE__ */ jsxs12(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9303
+ return /* @__PURE__ */ jsxs12(Flex, { direction: "column", align: "end", style: { position: "relative" }, children: [
9289
9304
  maxLength && /* @__PURE__ */ jsx23(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9290
9305
  /* @__PURE__ */ jsx23(TextareaContainer, { color, children: /* @__PURE__ */ jsx23(
9291
9306
  TextareaFieldStyle,
@@ -9561,7 +9576,7 @@ function Tooltip({
9561
9576
  return /* @__PURE__ */ jsx26(TooltipProvider, { children: /* @__PURE__ */ jsxs15(TooltipRoot, { delayDuration, children: [
9562
9577
  /* @__PURE__ */ jsx26(TooltipTrigger, { asChild: true, children }),
9563
9578
  /* @__PURE__ */ jsxs15(TooltipContent, { side, sideOffset: 5, children: [
9564
- typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", children: content }) : content,
9579
+ typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", color: "grey50", children: content }) : content,
9565
9580
  /* @__PURE__ */ jsx26(TooltipArrow, {})
9566
9581
  ] })
9567
9582
  ] }) });
@@ -9639,7 +9654,7 @@ var CloseBtnStyled = styled("button", {
9639
9654
  background: "none",
9640
9655
  border: "none"
9641
9656
  });
9642
- var StyledFlexWithMaxHeight = styled(Flex2, {
9657
+ var StyledFlexWithMaxHeight = styled(Flex, {
9643
9658
  variants: {
9644
9659
  hasMaxHeight: {
9645
9660
  true: {
@@ -9665,7 +9680,7 @@ var StyledFlexWithMaxHeight = styled(Flex2, {
9665
9680
  hasMaxHeight: false
9666
9681
  }
9667
9682
  });
9668
- var StyledFlexSelectedItems = styled(Flex2, {
9683
+ var StyledFlexSelectedItems = styled(Flex, {
9669
9684
  overflowY: "auto",
9670
9685
  margin: "8px 0",
9671
9686
  "&::-webkit-scrollbar": {
@@ -9897,7 +9912,7 @@ var MultiSelect = React10.forwardRef(
9897
9912
  justify: "start",
9898
9913
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9899
9914
  children: allOptionsSelected ? /* @__PURE__ */ jsxs16(
9900
- Flex2,
9915
+ Flex,
9901
9916
  {
9902
9917
  gap: 4,
9903
9918
  align: "center",
@@ -9928,7 +9943,7 @@ var MultiSelect = React10.forwardRef(
9928
9943
  },
9929
9944
  "all-selected"
9930
9945
  ) : selectedValues.map((value) => /* @__PURE__ */ jsxs16(
9931
- Flex2,
9946
+ Flex,
9932
9947
  {
9933
9948
  gap: 4,
9934
9949
  align: "center",
@@ -10171,7 +10186,7 @@ var ErrorFormMessage = ({ message: message2 }) => {
10171
10186
  if (typeof message2 !== "string") {
10172
10187
  return null;
10173
10188
  }
10174
- return /* @__PURE__ */ jsxs17(Flex2, { justify: "start", align: "center", gap: 6, children: [
10189
+ return /* @__PURE__ */ jsxs17(Flex, { justify: "start", align: "center", gap: 6, children: [
10175
10190
  /* @__PURE__ */ jsx31(FontAwesomeIcon4, { icon: faXmarkCircle, color: colors.error600, size: "1x" }),
10176
10191
  /* @__PURE__ */ jsx31(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10177
10192
  ] });
@@ -10188,7 +10203,7 @@ var FormLabel = ({
10188
10203
  required
10189
10204
  }) => {
10190
10205
  if (!label) return null;
10191
- return /* @__PURE__ */ jsxs18(Flex2, { align: "start", gap: 6, children: [
10206
+ return /* @__PURE__ */ jsxs18(Flex, { align: "start", gap: 6, children: [
10192
10207
  /* @__PURE__ */ jsx32(
10193
10208
  Text,
10194
10209
  {
@@ -10237,7 +10252,7 @@ var TextAreaFormField = (_a) => {
10237
10252
  required: required ? validationErrorMessage : false,
10238
10253
  validate
10239
10254
  };
10240
- return /* @__PURE__ */ jsxs19(Flex2, { direction: "column", children: [
10255
+ return /* @__PURE__ */ jsxs19(Flex, { direction: "column", children: [
10241
10256
  /* @__PURE__ */ jsx33(
10242
10257
  FormLabel,
10243
10258
  {
@@ -10322,7 +10337,7 @@ var TextFormField = (_a) => {
10322
10337
  if (valueFormatter) value = valueFormatter.unformat(value);
10323
10338
  formChange(value);
10324
10339
  };
10325
- return /* @__PURE__ */ jsxs20(Flex2, { direction: "column", children: [
10340
+ return /* @__PURE__ */ jsxs20(Flex, { direction: "column", children: [
10326
10341
  label && /* @__PURE__ */ jsx34(
10327
10342
  FormLabel,
10328
10343
  {
@@ -10405,7 +10420,7 @@ var MultiSelectFormField = (_a) => {
10405
10420
  const handleChange = (v) => {
10406
10421
  onChange(v);
10407
10422
  };
10408
- return /* @__PURE__ */ jsxs21(Flex2, { direction: "column", children: [
10423
+ return /* @__PURE__ */ jsxs21(Flex, { direction: "column", children: [
10409
10424
  /* @__PURE__ */ jsx36(
10410
10425
  FormLabel,
10411
10426
  {
@@ -10507,7 +10522,7 @@ var CPFFormField = ({
10507
10522
  }) => {
10508
10523
  const { control, setValue } = useFormContext3();
10509
10524
  const foreigner = useWatch({ name: "foreigner", control });
10510
- return /* @__PURE__ */ jsxs22(Flex2, { direction: "column", children: [
10525
+ return /* @__PURE__ */ jsxs22(Flex, { direction: "column", children: [
10511
10526
  /* @__PURE__ */ jsx38(
10512
10527
  TextFormField,
10513
10528
  {
@@ -10731,7 +10746,7 @@ var SelectFormField = ({
10731
10746
  const validationRules = __spreadValues({
10732
10747
  required: required ? validationErrorMessage : false
10733
10748
  }, validation);
10734
- return /* @__PURE__ */ jsxs23(Flex2, { direction: "column", children: [
10749
+ return /* @__PURE__ */ jsxs23(Flex, { direction: "column", children: [
10735
10750
  /* @__PURE__ */ jsx42(
10736
10751
  FormLabel,
10737
10752
  {
@@ -10814,7 +10829,7 @@ function CountryFormField({
10814
10829
  language = "pt-BR"
10815
10830
  }) {
10816
10831
  const countries2 = useCountries(language);
10817
- return /* @__PURE__ */ jsx43(Flex2, { direction: "column", children: /* @__PURE__ */ jsx43(
10832
+ return /* @__PURE__ */ jsx43(Flex, { direction: "column", children: /* @__PURE__ */ jsx43(
10818
10833
  SelectFormField,
10819
10834
  {
10820
10835
  label,
@@ -11145,7 +11160,7 @@ var RadioGroupFormField = ({
11145
11160
  const validationRules = {
11146
11161
  required: required ? validationErrorMessage : false
11147
11162
  };
11148
- return /* @__PURE__ */ jsxs25(Flex2, { direction: "column", children: [
11163
+ return /* @__PURE__ */ jsxs25(Flex, { direction: "column", children: [
11149
11164
  /* @__PURE__ */ jsx48(
11150
11165
  FormLabel,
11151
11166
  {
@@ -11170,7 +11185,7 @@ var RadioGroupFormField = ({
11170
11185
  color: haveError ? "error" : color,
11171
11186
  fontWeight,
11172
11187
  disabled,
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)) })
11188
+ children: /* @__PURE__ */ jsx48(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ jsx48(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx48(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11174
11189
  }
11175
11190
  )
11176
11191
  }
@@ -11204,7 +11219,7 @@ var CheckboxGroupFormField = ({
11204
11219
  required: required ? validationErrorMessage : false,
11205
11220
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11206
11221
  };
11207
- return /* @__PURE__ */ jsxs26(Flex2, { direction: "column", children: [
11222
+ return /* @__PURE__ */ jsxs26(Flex, { direction: "column", children: [
11208
11223
  /* @__PURE__ */ jsx49(
11209
11224
  FormLabel,
11210
11225
  {
@@ -11263,7 +11278,7 @@ var SwitchFormField = ({
11263
11278
  if (watch) {
11264
11279
  watchForm(name);
11265
11280
  }
11266
- return /* @__PURE__ */ jsxs27(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11281
+ return /* @__PURE__ */ jsxs27(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11267
11282
  /* @__PURE__ */ jsx50(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11268
11283
  /* @__PURE__ */ jsx50(
11269
11284
  Controller5,
@@ -12648,7 +12663,7 @@ var QuillComponent = ({
12648
12663
  zIndex: 1e3,
12649
12664
  width: "fit-content"
12650
12665
  },
12651
- children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12666
+ children: /* @__PURE__ */ jsxs28(Flex, { gap: 8, align: "center", children: [
12652
12667
  /* @__PURE__ */ jsx52(
12653
12668
  Text,
12654
12669
  {
@@ -12718,7 +12733,7 @@ var QuillComponent = ({
12718
12733
  zIndex: 1e3,
12719
12734
  width: "fit-content"
12720
12735
  },
12721
- children: /* @__PURE__ */ jsxs28(Flex2, { gap: 8, align: "center", children: [
12736
+ children: /* @__PURE__ */ jsxs28(Flex, { gap: 8, align: "center", children: [
12722
12737
  /* @__PURE__ */ jsx52(
12723
12738
  Text,
12724
12739
  {
@@ -12833,8 +12848,8 @@ var RichEditorFormField = (_a) => {
12833
12848
  const fieldError = fieldState.error;
12834
12849
  const haveError = !!fieldError;
12835
12850
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12836
- return /* @__PURE__ */ jsxs29(Flex2, { direction: "column", children: [
12837
- maxLength ? /* @__PURE__ */ jsxs29(Flex2, { direction: "row", justify: "between", children: [
12851
+ return /* @__PURE__ */ jsxs29(Flex, { direction: "column", children: [
12852
+ maxLength ? /* @__PURE__ */ jsxs29(Flex, { direction: "row", justify: "between", children: [
12838
12853
  label && /* @__PURE__ */ jsx54(
12839
12854
  FormLabel,
12840
12855
  {
@@ -12922,7 +12937,7 @@ var CalendarFormField = (_a) => {
12922
12937
  const handleCalendarChange = (date) => {
12923
12938
  setSelected(date);
12924
12939
  };
12925
- return /* @__PURE__ */ jsxs30(Flex2, { direction: "column", style: { flex: "1" }, children: [
12940
+ return /* @__PURE__ */ jsxs30(Flex, { direction: "column", style: { flex: "1" }, children: [
12926
12941
  label && /* @__PURE__ */ jsx55(
12927
12942
  FormLabel,
12928
12943
  {
@@ -13001,7 +13016,7 @@ var DoubleCalendarFormField = (_a) => {
13001
13016
  const handleCalendarChange = (range) => {
13002
13017
  setSelected(range);
13003
13018
  };
13004
- return /* @__PURE__ */ jsxs31(Flex2, { direction: "column", style: { flex: "1" }, children: [
13019
+ return /* @__PURE__ */ jsxs31(Flex, { direction: "column", style: { flex: "1" }, children: [
13005
13020
  label && /* @__PURE__ */ jsx56(FormLabel, { name, label, required, haveError }),
13006
13021
  /* @__PURE__ */ jsx56(
13007
13022
  DoubleCalendar,
@@ -13067,7 +13082,7 @@ var TimePickerFormField = (_a) => {
13067
13082
  const handleTimePickerChange = (time) => {
13068
13083
  setSelected(time);
13069
13084
  };
13070
- return /* @__PURE__ */ jsxs32(Flex2, { direction: "column", style: { flex: "1" }, children: [
13085
+ return /* @__PURE__ */ jsxs32(Flex, { direction: "column", style: { flex: "1" }, children: [
13071
13086
  label && /* @__PURE__ */ jsx57(
13072
13087
  FormLabel,
13073
13088
  {
@@ -13235,7 +13250,7 @@ export {
13235
13250
  ErrorFormMessage,
13236
13251
  Filter,
13237
13252
  FilterItem,
13238
- Flex2 as Flex,
13253
+ Flex,
13239
13254
  FlexStyled,
13240
13255
  Form,
13241
13256
  FormLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.6.1",
3
+ "version": "12.6.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -3,6 +3,7 @@ import { ButtonStyled, SpinningDiv } from "./styledComponents";
3
3
  import { Button as ButtonRadix } from "@radix-ui/themes";
4
4
  import type { VariantProps } from "@stitches/react";
5
5
  import Icon, { IconProps } from "../Icon";
6
+ import { Flex } from "../Flex";
6
7
 
7
8
  type ButtonVariantProps = VariantProps<typeof ButtonStyled>;
8
9
  export interface ButtonProps
@@ -34,9 +35,13 @@ export function Button({ asChild, children, loading, ...props }: ButtonProps) {
34
35
  return (
35
36
  <ButtonStyled as={Component} {...props} disabled={disabled || loading}>
36
37
  <div style={{ position: "relative" }}>
37
- <div style={{ visibility: loading ? "hidden" : undefined }}>
38
+ <Flex
39
+ justify={"center"}
40
+ align={"center"}
41
+ css={{ visibility: loading ? "hidden" : undefined }}
42
+ >
38
43
  {children}
39
- </div>
44
+ </Flex>
40
45
  {loading && (
41
46
  <div
42
47
  style={{
@@ -278,6 +278,13 @@ export const ButtonStyled = styled(ButtonRadix, {
278
278
  borderRadius: "$full",
279
279
  },
280
280
  },
281
+ isCircle: {
282
+ true: {
283
+ borderRadius: "$full",
284
+ padding: 0,
285
+ aspectRatio: "1",
286
+ },
287
+ },
281
288
  },
282
289
 
283
290
  compoundVariants: [