@lets-events/react 12.6.1 → 12.6.2

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.1 build
2
+ > @lets-events/react@12.6.2 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,11 +9,11 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
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
12
+ ESM dist\index.mjs 389.19 KB
13
+ ESM ⚡️ Build success in 252ms
14
+ CJS dist\index.js 404.20 KB
15
+ CJS ⚡️ Build success in 253ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 4551ms
18
- DTS dist\index.d.mts 402.83 KB
19
- DTS dist\index.d.ts 402.83 KB
17
+ DTS ⚡️ Build success in 4784ms
18
+ DTS dist\index.d.mts 402.87 KB
19
+ DTS dist\index.d.ts 402.87 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix button
8
+
3
9
  ## 12.6.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -422,6 +422,7 @@ declare const ButtonStyled: _stitches_react_types_styled_component.StyledCompone
422
422
  fontWeight?: "bold" | "medium" | "regular" | "semibold" | undefined;
423
423
  outlinedBgColor?: "transparent" | "neutral" | undefined;
424
424
  radii?: "full" | undefined;
425
+ isCircle?: boolean | "true" | undefined;
425
426
  }, {
426
427
  md: "(max-width: 690px)";
427
428
  }, _stitches_react_types_css_util.CSS<{
package/dist/index.d.ts CHANGED
@@ -422,6 +422,7 @@ declare const ButtonStyled: _stitches_react_types_styled_component.StyledCompone
422
422
  fontWeight?: "bold" | "medium" | "regular" | "semibold" | undefined;
423
423
  outlinedBgColor?: "transparent" | "neutral" | undefined;
424
424
  radii?: "full" | undefined;
425
+ isCircle?: boolean | "true" | undefined;
425
426
  }, {
426
427
  md: "(max-width: 690px)";
427
428
  }, _stitches_react_types_css_util.CSS<{
package/dist/index.js CHANGED
@@ -905,7 +905,7 @@ __export(index_exports, {
905
905
  ErrorFormMessage: () => ErrorFormMessage,
906
906
  Filter: () => Filter,
907
907
  FilterItem: () => FilterItem,
908
- Flex: () => Flex2,
908
+ Flex: () => Flex,
909
909
  FlexStyled: () => FlexStyled,
910
910
  Form: () => Form,
911
911
  FormLabel: () => FormLabel,
@@ -1830,6 +1830,13 @@ var ButtonStyled = styled(import_themes2.Button, {
1830
1830
  full: {
1831
1831
  borderRadius: "$full"
1832
1832
  }
1833
+ },
1834
+ isCircle: {
1835
+ true: {
1836
+ borderRadius: "$full",
1837
+ padding: 0,
1838
+ aspectRatio: "1"
1839
+ }
1833
1840
  }
1834
1841
  },
1835
1842
  compoundVariants: [
@@ -1862,11 +1869,122 @@ var SpinningDiv = styled("div", {
1862
1869
  });
1863
1870
 
1864
1871
  // src/components/Button/index.tsx
1872
+ var import_themes4 = require("@radix-ui/themes");
1873
+
1874
+ // src/components/Flex.tsx
1865
1875
  var import_themes3 = require("@radix-ui/themes");
1866
1876
  var import_jsx_runtime3 = require("react/jsx-runtime");
1877
+ var FlexStyled = styled(import_themes3.Flex, {
1878
+ variants: {
1879
+ display: {
1880
+ "flex": { display: "flex" },
1881
+ "inline-flex": { display: "inline-flex" }
1882
+ },
1883
+ align: {
1884
+ start: { alignItems: "flex-start" },
1885
+ center: { alignItems: "center" },
1886
+ end: { alignItems: "flex-end" },
1887
+ stretch: { alignItems: "stretch" },
1888
+ baseline: { alignItems: "baseline" }
1889
+ },
1890
+ justify: {
1891
+ start: { justifyContent: "flex-start" },
1892
+ center: { justifyContent: "center" },
1893
+ end: { justifyContent: "flex-end" },
1894
+ between: { justifyContent: "space-between" },
1895
+ around: { justifyContent: "space-around" },
1896
+ evenly: { justifyContent: "space-evenly" }
1897
+ },
1898
+ direction: {
1899
+ row: { flexDirection: "row" },
1900
+ column: { flexDirection: "column" },
1901
+ "row-reverse": { flexDirection: "row-reverse" },
1902
+ "column-reverse": { flexDirection: "column-reverse" }
1903
+ },
1904
+ gap: {
1905
+ 0: { gap: "0px" },
1906
+ 2: { gap: "$2" },
1907
+ 4: { gap: "$4" },
1908
+ 6: { gap: "$6" },
1909
+ 8: { gap: "$8" },
1910
+ 10: { gap: "$10" },
1911
+ 12: { gap: "$12" },
1912
+ 14: { gap: "$14" },
1913
+ 16: { gap: "$16" },
1914
+ 20: { gap: "$20" },
1915
+ 22: { gap: "$22" },
1916
+ 24: { gap: "$24" },
1917
+ 32: { gap: "$32" },
1918
+ 36: { gap: "$36" },
1919
+ 40: { gap: "$40" },
1920
+ 48: { gap: "$48" },
1921
+ 56: { gap: "$56" },
1922
+ 64: { gap: "$64" },
1923
+ 72: { gap: "$72" },
1924
+ 80: { gap: "$80" },
1925
+ full: { gap: "$full" }
1926
+ },
1927
+ gapY: {
1928
+ 2: { gap: "$2" },
1929
+ 4: { gap: "$4" },
1930
+ 6: { gap: "$6" },
1931
+ 8: { gap: "$8" },
1932
+ 10: { gap: "$10" },
1933
+ 12: { gap: "$12" },
1934
+ 14: { gap: "$14" },
1935
+ 16: { gap: "$16" },
1936
+ 20: { gap: "$20" },
1937
+ 22: { gap: "$22" },
1938
+ 24: { gap: "$24" },
1939
+ 32: { gap: "$32" },
1940
+ 36: { gap: "$36" },
1941
+ 40: { gap: "$40" },
1942
+ 48: { gap: "$48" },
1943
+ 56: { gap: "$56" },
1944
+ 64: { gap: "$64" },
1945
+ 72: { gap: "$72" },
1946
+ 80: { gap: "$80" },
1947
+ full: { gap: "$full" }
1948
+ },
1949
+ gapX: {
1950
+ 2: { gap: "$2" },
1951
+ 4: { gap: "$4" },
1952
+ 6: { gap: "$6" },
1953
+ 8: { gap: "$8" },
1954
+ 10: { gap: "$10" },
1955
+ 12: { gap: "$12" },
1956
+ 14: { gap: "$14" },
1957
+ 16: { gap: "$16" },
1958
+ 20: { gap: "$20" },
1959
+ 22: { gap: "$22" },
1960
+ 24: { gap: "$24" },
1961
+ 32: { gap: "$32" },
1962
+ 36: { gap: "$36" },
1963
+ 40: { gap: "$40" },
1964
+ 48: { gap: "$48" },
1965
+ 56: { gap: "$56" },
1966
+ 64: { gap: "$64" },
1967
+ 72: { gap: "$72" },
1968
+ 80: { gap: "$80" },
1969
+ full: { gap: "$full" }
1970
+ }
1971
+ },
1972
+ defaultVariants: {
1973
+ display: "flex",
1974
+ direction: "row",
1975
+ gap: 10
1976
+ }
1977
+ });
1978
+ function Flex(_a) {
1979
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1980
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
1981
+ }
1982
+
1983
+ // src/components/Button/index.tsx
1984
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1867
1985
  function Button(_a) {
1868
1986
  var _b = _a, { asChild, children, loading } = _b, props = __objRest(_b, ["asChild", "children", "loading"]);
1869
- const Component = asChild ? import_themes3.Button : "button";
1987
+ const Component = asChild ? import_themes4.Button : "button";
1870
1988
  const { size, disabled } = props;
1871
1989
  const spinnerSize = (0, import_react2.useMemo)(() => {
1872
1990
  switch (size) {
@@ -1882,9 +2000,17 @@ function Button(_a) {
1882
2000
  return "md";
1883
2001
  }
1884
2002
  }, [size]);
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)(
2003
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { position: "relative" }, children: [
2004
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2005
+ Flex,
2006
+ {
2007
+ justify: "center",
2008
+ align: "center",
2009
+ css: { visibility: loading ? "hidden" : void 0 },
2010
+ children
2011
+ }
2012
+ ),
2013
+ loading && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1888
2014
  "div",
1889
2015
  {
1890
2016
  style: {
@@ -1893,16 +2019,16 @@ function Button(_a) {
1893
2019
  left: "50%",
1894
2020
  transform: "translate(-50%, -50%)"
1895
2021
  },
1896
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) })
2022
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) })
1897
2023
  }
1898
2024
  )
1899
2025
  ] }) }));
1900
2026
  }
1901
2027
 
1902
2028
  // src/components/ButtonGroup.tsx
1903
- var import_themes4 = require("@radix-ui/themes");
1904
- var import_jsx_runtime4 = require("react/jsx-runtime");
1905
- var ButtonItemStyled = styled(import_themes4.Button, {
2029
+ var import_themes5 = require("@radix-ui/themes");
2030
+ var import_jsx_runtime5 = require("react/jsx-runtime");
2031
+ var ButtonItemStyled = styled(import_themes5.Button, {
1906
2032
  fontFamily: "$default",
1907
2033
  letterSpacing: 0,
1908
2034
  border: 0,
@@ -1915,7 +2041,7 @@ var ButtonItemStyled = styled(import_themes4.Button, {
1915
2041
  }
1916
2042
  }
1917
2043
  });
1918
- var ButtonGroupStyled = styled(import_themes4.Flex, {
2044
+ var ButtonGroupStyled = styled(import_themes5.Flex, {
1919
2045
  display: "flex",
1920
2046
  borderRadius: "$md",
1921
2047
  overflow: "hidden",
@@ -2367,17 +2493,17 @@ var ButtonGroupStyled = styled(import_themes4.Flex, {
2367
2493
  });
2368
2494
  function ButtonItem(_a) {
2369
2495
  var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
2370
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
2496
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
2371
2497
  }
2372
2498
  function ButtonGroup(_a) {
2373
2499
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2374
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
2375
2501
  }
2376
2502
 
2377
2503
  // src/components/Avatar.tsx
2378
- var import_themes5 = require("@radix-ui/themes");
2379
- var import_jsx_runtime5 = require("react/jsx-runtime");
2380
- var AvatarStyled = styled(import_themes5.Avatar, {
2504
+ var import_themes6 = require("@radix-ui/themes");
2505
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2506
+ var AvatarStyled = styled(import_themes6.Avatar, {
2381
2507
  fontFamily: "$default",
2382
2508
  color: "$gray100",
2383
2509
  letterSpacing: "0px",
@@ -2421,123 +2547,12 @@ var AvatarStyled = styled(import_themes5.Avatar, {
2421
2547
  });
2422
2548
  function Avatar(_a) {
2423
2549
  var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
2424
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarStyled, __spreadValues({ as: import_themes5.Avatar }, props));
2550
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarStyled, __spreadValues({ as: import_themes6.Avatar }, props));
2425
2551
  }
2426
2552
 
2427
2553
  // src/components/TextField.tsx
2428
2554
  var import_react3 = __toESM(require("react"));
2429
2555
  var import_themes7 = require("@radix-ui/themes");
2430
-
2431
- // src/components/Flex.tsx
2432
- var import_themes6 = require("@radix-ui/themes");
2433
- var import_jsx_runtime6 = require("react/jsx-runtime");
2434
- var FlexStyled = styled(import_themes6.Flex, {
2435
- variants: {
2436
- display: {
2437
- "flex": { display: "flex" },
2438
- "inline-flex": { display: "inline-flex" }
2439
- },
2440
- align: {
2441
- start: { alignItems: "flex-start" },
2442
- center: { alignItems: "center" },
2443
- end: { alignItems: "flex-end" },
2444
- stretch: { alignItems: "stretch" },
2445
- baseline: { alignItems: "baseline" }
2446
- },
2447
- justify: {
2448
- start: { justifyContent: "flex-start" },
2449
- center: { justifyContent: "center" },
2450
- end: { justifyContent: "flex-end" },
2451
- between: { justifyContent: "space-between" },
2452
- around: { justifyContent: "space-around" },
2453
- evenly: { justifyContent: "space-evenly" }
2454
- },
2455
- direction: {
2456
- row: { flexDirection: "row" },
2457
- column: { flexDirection: "column" },
2458
- "row-reverse": { flexDirection: "row-reverse" },
2459
- "column-reverse": { flexDirection: "column-reverse" }
2460
- },
2461
- gap: {
2462
- 0: { gap: "0px" },
2463
- 2: { gap: "$2" },
2464
- 4: { gap: "$4" },
2465
- 6: { gap: "$6" },
2466
- 8: { gap: "$8" },
2467
- 10: { gap: "$10" },
2468
- 12: { gap: "$12" },
2469
- 14: { gap: "$14" },
2470
- 16: { gap: "$16" },
2471
- 20: { gap: "$20" },
2472
- 22: { gap: "$22" },
2473
- 24: { gap: "$24" },
2474
- 32: { gap: "$32" },
2475
- 36: { gap: "$36" },
2476
- 40: { gap: "$40" },
2477
- 48: { gap: "$48" },
2478
- 56: { gap: "$56" },
2479
- 64: { gap: "$64" },
2480
- 72: { gap: "$72" },
2481
- 80: { gap: "$80" },
2482
- full: { gap: "$full" }
2483
- },
2484
- gapY: {
2485
- 2: { gap: "$2" },
2486
- 4: { gap: "$4" },
2487
- 6: { gap: "$6" },
2488
- 8: { gap: "$8" },
2489
- 10: { gap: "$10" },
2490
- 12: { gap: "$12" },
2491
- 14: { gap: "$14" },
2492
- 16: { gap: "$16" },
2493
- 20: { gap: "$20" },
2494
- 22: { gap: "$22" },
2495
- 24: { gap: "$24" },
2496
- 32: { gap: "$32" },
2497
- 36: { gap: "$36" },
2498
- 40: { gap: "$40" },
2499
- 48: { gap: "$48" },
2500
- 56: { gap: "$56" },
2501
- 64: { gap: "$64" },
2502
- 72: { gap: "$72" },
2503
- 80: { gap: "$80" },
2504
- full: { gap: "$full" }
2505
- },
2506
- gapX: {
2507
- 2: { gap: "$2" },
2508
- 4: { gap: "$4" },
2509
- 6: { gap: "$6" },
2510
- 8: { gap: "$8" },
2511
- 10: { gap: "$10" },
2512
- 12: { gap: "$12" },
2513
- 14: { gap: "$14" },
2514
- 16: { gap: "$16" },
2515
- 20: { gap: "$20" },
2516
- 22: { gap: "$22" },
2517
- 24: { gap: "$24" },
2518
- 32: { gap: "$32" },
2519
- 36: { gap: "$36" },
2520
- 40: { gap: "$40" },
2521
- 48: { gap: "$48" },
2522
- 56: { gap: "$56" },
2523
- 64: { gap: "$64" },
2524
- 72: { gap: "$72" },
2525
- 80: { gap: "$80" },
2526
- full: { gap: "$full" }
2527
- }
2528
- },
2529
- defaultVariants: {
2530
- display: "flex",
2531
- direction: "row",
2532
- gap: 10
2533
- }
2534
- });
2535
- function Flex2(_a) {
2536
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2537
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
2538
- }
2539
-
2540
- // src/components/TextField.tsx
2541
2556
  var import_mask = require("@react-input/mask");
2542
2557
  var import_jsx_runtime7 = require("react/jsx-runtime");
2543
2558
  var TextFieldStyled = styled(import_themes7.TextField.Root, {
@@ -2771,8 +2786,8 @@ var TextField = import_react3.default.forwardRef(
2771
2786
  updateCharCountBadge();
2772
2787
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
2773
2788
  };
2774
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex2, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2775
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex2, { gap: "0", css: { width: "100%" }, children: [
2789
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2790
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex, { gap: "0", css: { width: "100%" }, children: [
2776
2791
  !!addon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2777
2792
  InputAddon,
2778
2793
  {
@@ -8452,7 +8467,7 @@ function Drawer({
8452
8467
  },
8453
8468
  children: [
8454
8469
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DrawerHeaderDiv, { children: [
8455
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Flex2, { gap: 8, align: "center", children: [
8470
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Flex, { gap: 8, align: "center", children: [
8456
8471
  goBackIcon && goBackIcon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8457
8472
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerHeaderTitle, { children: title })
8458
8473
  ] }),
@@ -9020,7 +9035,7 @@ function Alert(_a) {
9020
9035
  ] })
9021
9036
  ] }),
9022
9037
  completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialoghrStyled, {}) : null,
9023
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", children: [
9038
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Flex, { gap: "10", justify: "end", width: "100%", children: [
9024
9039
  completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
9025
9040
  Button,
9026
9041
  {
@@ -9399,7 +9414,7 @@ var TextareaField = import_react13.default.forwardRef((_a, forwardedRef) => {
9399
9414
  }
9400
9415
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9401
9416
  };
9402
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9417
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Flex, { direction: "column", align: "end", style: { position: "relative" }, children: [
9403
9418
  maxLength && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9404
9419
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TextareaContainer, { color, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9405
9420
  TextareaFieldStyle,
@@ -9749,7 +9764,7 @@ var CloseBtnStyled = styled("button", {
9749
9764
  background: "none",
9750
9765
  border: "none"
9751
9766
  });
9752
- var StyledFlexWithMaxHeight = styled(Flex2, {
9767
+ var StyledFlexWithMaxHeight = styled(Flex, {
9753
9768
  variants: {
9754
9769
  hasMaxHeight: {
9755
9770
  true: {
@@ -9775,7 +9790,7 @@ var StyledFlexWithMaxHeight = styled(Flex2, {
9775
9790
  hasMaxHeight: false
9776
9791
  }
9777
9792
  });
9778
- var StyledFlexSelectedItems = styled(Flex2, {
9793
+ var StyledFlexSelectedItems = styled(Flex, {
9779
9794
  overflowY: "auto",
9780
9795
  margin: "8px 0",
9781
9796
  "&::-webkit-scrollbar": {
@@ -10007,7 +10022,7 @@ var MultiSelect = import_react18.default.forwardRef(
10007
10022
  justify: "start",
10008
10023
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
10009
10024
  children: allOptionsSelected ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
10010
- Flex2,
10025
+ Flex,
10011
10026
  {
10012
10027
  gap: 4,
10013
10028
  align: "center",
@@ -10038,7 +10053,7 @@ var MultiSelect = import_react18.default.forwardRef(
10038
10053
  },
10039
10054
  "all-selected"
10040
10055
  ) : selectedValues.map((value) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
10041
- Flex2,
10056
+ Flex,
10042
10057
  {
10043
10058
  gap: 4,
10044
10059
  align: "center",
@@ -10281,7 +10296,7 @@ var ErrorFormMessage = ({ message: message2 }) => {
10281
10296
  if (typeof message2 !== "string") {
10282
10297
  return null;
10283
10298
  }
10284
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex2, { justify: "start", align: "center", gap: 6, children: [
10299
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { justify: "start", align: "center", gap: 6, children: [
10285
10300
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10286
10301
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10287
10302
  ] });
@@ -10298,7 +10313,7 @@ var FormLabel = ({
10298
10313
  required
10299
10314
  }) => {
10300
10315
  if (!label) return null;
10301
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex2, { align: "start", gap: 6, children: [
10316
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { align: "start", gap: 6, children: [
10302
10317
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10303
10318
  Text,
10304
10319
  {
@@ -10347,7 +10362,7 @@ var TextAreaFormField = (_a) => {
10347
10362
  required: required ? validationErrorMessage : false,
10348
10363
  validate
10349
10364
  };
10350
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex2, { direction: "column", children: [
10365
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { direction: "column", children: [
10351
10366
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10352
10367
  FormLabel,
10353
10368
  {
@@ -10430,7 +10445,7 @@ var TextFormField = (_a) => {
10430
10445
  if (valueFormatter) value = valueFormatter.unformat(value);
10431
10446
  formChange(value);
10432
10447
  };
10433
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex2, { direction: "column", children: [
10448
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { direction: "column", children: [
10434
10449
  label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10435
10450
  FormLabel,
10436
10451
  {
@@ -10510,7 +10525,7 @@ var MultiSelectFormField = (_a) => {
10510
10525
  const handleChange = (v) => {
10511
10526
  onChange(v);
10512
10527
  };
10513
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex2, { direction: "column", children: [
10528
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex, { direction: "column", children: [
10514
10529
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10515
10530
  FormLabel,
10516
10531
  {
@@ -10612,7 +10627,7 @@ var CPFFormField = ({
10612
10627
  }) => {
10613
10628
  const { control, setValue } = (0, import_react_hook_form5.useFormContext)();
10614
10629
  const foreigner = (0, import_react_hook_form5.useWatch)({ name: "foreigner", control });
10615
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex2, { direction: "column", children: [
10630
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex, { direction: "column", children: [
10616
10631
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10617
10632
  TextFormField,
10618
10633
  {
@@ -10836,7 +10851,7 @@ var SelectFormField = ({
10836
10851
  const validationRules = __spreadValues({
10837
10852
  required: required ? validationErrorMessage : false
10838
10853
  }, validation);
10839
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex2, { direction: "column", children: [
10854
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex, { direction: "column", children: [
10840
10855
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10841
10856
  FormLabel,
10842
10857
  {
@@ -10919,7 +10934,7 @@ function CountryFormField({
10919
10934
  language = "pt-BR"
10920
10935
  }) {
10921
10936
  const countries2 = useCountries(language);
10922
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Flex2, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10937
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10923
10938
  SelectFormField,
10924
10939
  {
10925
10940
  label,
@@ -11250,7 +11265,7 @@ var RadioGroupFormField = ({
11250
11265
  const validationRules = {
11251
11266
  required: required ? validationErrorMessage : false
11252
11267
  };
11253
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex2, { direction: "column", children: [
11268
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex, { direction: "column", children: [
11254
11269
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11255
11270
  FormLabel,
11256
11271
  {
@@ -11275,7 +11290,7 @@ var RadioGroupFormField = ({
11275
11290
  color: haveError ? "error" : color,
11276
11291
  fontWeight,
11277
11292
  disabled,
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)) })
11293
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Flex, { 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)) })
11279
11294
  }
11280
11295
  )
11281
11296
  }
@@ -11309,7 +11324,7 @@ var CheckboxGroupFormField = ({
11309
11324
  required: required ? validationErrorMessage : false,
11310
11325
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11311
11326
  };
11312
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex2, { direction: "column", children: [
11327
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex, { direction: "column", children: [
11313
11328
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11314
11329
  FormLabel,
11315
11330
  {
@@ -11368,7 +11383,7 @@ var SwitchFormField = ({
11368
11383
  if (watch) {
11369
11384
  watchForm(name);
11370
11385
  }
11371
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11386
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11372
11387
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11373
11388
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11374
11389
  import_react_hook_form11.Controller,
@@ -12753,7 +12768,7 @@ var QuillComponent = ({
12753
12768
  zIndex: 1e3,
12754
12769
  width: "fit-content"
12755
12770
  },
12756
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex2, { gap: 8, align: "center", children: [
12771
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex, { gap: 8, align: "center", children: [
12757
12772
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12758
12773
  Text,
12759
12774
  {
@@ -12823,7 +12838,7 @@ var QuillComponent = ({
12823
12838
  zIndex: 1e3,
12824
12839
  width: "fit-content"
12825
12840
  },
12826
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex2, { gap: 8, align: "center", children: [
12841
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex, { gap: 8, align: "center", children: [
12827
12842
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12828
12843
  Text,
12829
12844
  {
@@ -12938,8 +12953,8 @@ var RichEditorFormField = (_a) => {
12938
12953
  const fieldError = fieldState.error;
12939
12954
  const haveError = !!fieldError;
12940
12955
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12941
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "column", children: [
12942
- maxLength ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "row", justify: "between", children: [
12956
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex, { direction: "column", children: [
12957
+ maxLength ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex, { direction: "row", justify: "between", children: [
12943
12958
  label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12944
12959
  FormLabel,
12945
12960
  {
@@ -13027,7 +13042,7 @@ var CalendarFormField = (_a) => {
13027
13042
  const handleCalendarChange = (date) => {
13028
13043
  setSelected(date);
13029
13044
  };
13030
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
13045
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13031
13046
  label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13032
13047
  FormLabel,
13033
13048
  {
@@ -13106,7 +13121,7 @@ var DoubleCalendarFormField = (_a) => {
13106
13121
  const handleCalendarChange = (range) => {
13107
13122
  setSelected(range);
13108
13123
  };
13109
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
13124
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13110
13125
  label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FormLabel, { name, label, required, haveError }),
13111
13126
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13112
13127
  DoubleCalendar,
@@ -13172,7 +13187,7 @@ var TimePickerFormField = (_a) => {
13172
13187
  const handleTimePickerChange = (time) => {
13173
13188
  setSelected(time);
13174
13189
  };
13175
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
13190
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13176
13191
  label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13177
13192
  FormLabel,
13178
13193
  {
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,
@@ -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.2",
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: [