@lets-events/react 12.6.0 → 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.0 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,16 +9,11 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- CJS dist\index.js 403.16 KB
13
- CJS ⚡️ Build success in 1079ms
14
- ESM dist\index.mjs 388.31 KB
15
- ESM ⚡️ Build success in 1080ms
12
+ ESM dist\index.mjs 389.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 9868ms
18
- DTS dist\index.d.mts 402.83 KB
19
- DTS dist\index.d.ts 402.83 KB
20
- npm notice
21
- npm notice New minor version of npm available! 11.5.1 -> 11.7.0
22
- npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.7.0
23
- npm notice To update run: npm install -g npm@11.7.0
24
- npm notice
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,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix button
8
+
9
+ ## 12.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - fix textformfield label
14
+
3
15
  ## 12.6.0
4
16
 
5
17
  ### Minor 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,13 +2000,35 @@ 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: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
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)(
2014
+ "div",
2015
+ {
2016
+ style: {
2017
+ position: "absolute",
2018
+ top: "50%",
2019
+ left: "50%",
2020
+ transform: "translate(-50%, -50%)"
2021
+ },
2022
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) })
2023
+ }
2024
+ )
2025
+ ] }) }));
1886
2026
  }
1887
2027
 
1888
2028
  // src/components/ButtonGroup.tsx
1889
- var import_themes4 = require("@radix-ui/themes");
1890
- var import_jsx_runtime4 = require("react/jsx-runtime");
1891
- 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, {
1892
2032
  fontFamily: "$default",
1893
2033
  letterSpacing: 0,
1894
2034
  border: 0,
@@ -1901,7 +2041,7 @@ var ButtonItemStyled = styled(import_themes4.Button, {
1901
2041
  }
1902
2042
  }
1903
2043
  });
1904
- var ButtonGroupStyled = styled(import_themes4.Flex, {
2044
+ var ButtonGroupStyled = styled(import_themes5.Flex, {
1905
2045
  display: "flex",
1906
2046
  borderRadius: "$md",
1907
2047
  overflow: "hidden",
@@ -2353,17 +2493,17 @@ var ButtonGroupStyled = styled(import_themes4.Flex, {
2353
2493
  });
2354
2494
  function ButtonItem(_a) {
2355
2495
  var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
2356
- 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 }));
2357
2497
  }
2358
2498
  function ButtonGroup(_a) {
2359
2499
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2360
- 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 }));
2361
2501
  }
2362
2502
 
2363
2503
  // src/components/Avatar.tsx
2364
- var import_themes5 = require("@radix-ui/themes");
2365
- var import_jsx_runtime5 = require("react/jsx-runtime");
2366
- 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, {
2367
2507
  fontFamily: "$default",
2368
2508
  color: "$gray100",
2369
2509
  letterSpacing: "0px",
@@ -2407,123 +2547,12 @@ var AvatarStyled = styled(import_themes5.Avatar, {
2407
2547
  });
2408
2548
  function Avatar(_a) {
2409
2549
  var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
2410
- 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));
2411
2551
  }
2412
2552
 
2413
2553
  // src/components/TextField.tsx
2414
2554
  var import_react3 = __toESM(require("react"));
2415
2555
  var import_themes7 = require("@radix-ui/themes");
2416
-
2417
- // src/components/Flex.tsx
2418
- var import_themes6 = require("@radix-ui/themes");
2419
- var import_jsx_runtime6 = require("react/jsx-runtime");
2420
- var FlexStyled = styled(import_themes6.Flex, {
2421
- variants: {
2422
- display: {
2423
- "flex": { display: "flex" },
2424
- "inline-flex": { display: "inline-flex" }
2425
- },
2426
- align: {
2427
- start: { alignItems: "flex-start" },
2428
- center: { alignItems: "center" },
2429
- end: { alignItems: "flex-end" },
2430
- stretch: { alignItems: "stretch" },
2431
- baseline: { alignItems: "baseline" }
2432
- },
2433
- justify: {
2434
- start: { justifyContent: "flex-start" },
2435
- center: { justifyContent: "center" },
2436
- end: { justifyContent: "flex-end" },
2437
- between: { justifyContent: "space-between" },
2438
- around: { justifyContent: "space-around" },
2439
- evenly: { justifyContent: "space-evenly" }
2440
- },
2441
- direction: {
2442
- row: { flexDirection: "row" },
2443
- column: { flexDirection: "column" },
2444
- "row-reverse": { flexDirection: "row-reverse" },
2445
- "column-reverse": { flexDirection: "column-reverse" }
2446
- },
2447
- gap: {
2448
- 0: { gap: "0px" },
2449
- 2: { gap: "$2" },
2450
- 4: { gap: "$4" },
2451
- 6: { gap: "$6" },
2452
- 8: { gap: "$8" },
2453
- 10: { gap: "$10" },
2454
- 12: { gap: "$12" },
2455
- 14: { gap: "$14" },
2456
- 16: { gap: "$16" },
2457
- 20: { gap: "$20" },
2458
- 22: { gap: "$22" },
2459
- 24: { gap: "$24" },
2460
- 32: { gap: "$32" },
2461
- 36: { gap: "$36" },
2462
- 40: { gap: "$40" },
2463
- 48: { gap: "$48" },
2464
- 56: { gap: "$56" },
2465
- 64: { gap: "$64" },
2466
- 72: { gap: "$72" },
2467
- 80: { gap: "$80" },
2468
- full: { gap: "$full" }
2469
- },
2470
- gapY: {
2471
- 2: { gap: "$2" },
2472
- 4: { gap: "$4" },
2473
- 6: { gap: "$6" },
2474
- 8: { gap: "$8" },
2475
- 10: { gap: "$10" },
2476
- 12: { gap: "$12" },
2477
- 14: { gap: "$14" },
2478
- 16: { gap: "$16" },
2479
- 20: { gap: "$20" },
2480
- 22: { gap: "$22" },
2481
- 24: { gap: "$24" },
2482
- 32: { gap: "$32" },
2483
- 36: { gap: "$36" },
2484
- 40: { gap: "$40" },
2485
- 48: { gap: "$48" },
2486
- 56: { gap: "$56" },
2487
- 64: { gap: "$64" },
2488
- 72: { gap: "$72" },
2489
- 80: { gap: "$80" },
2490
- full: { gap: "$full" }
2491
- },
2492
- gapX: {
2493
- 2: { gap: "$2" },
2494
- 4: { gap: "$4" },
2495
- 6: { gap: "$6" },
2496
- 8: { gap: "$8" },
2497
- 10: { gap: "$10" },
2498
- 12: { gap: "$12" },
2499
- 14: { gap: "$14" },
2500
- 16: { gap: "$16" },
2501
- 20: { gap: "$20" },
2502
- 22: { gap: "$22" },
2503
- 24: { gap: "$24" },
2504
- 32: { gap: "$32" },
2505
- 36: { gap: "$36" },
2506
- 40: { gap: "$40" },
2507
- 48: { gap: "$48" },
2508
- 56: { gap: "$56" },
2509
- 64: { gap: "$64" },
2510
- 72: { gap: "$72" },
2511
- 80: { gap: "$80" },
2512
- full: { gap: "$full" }
2513
- }
2514
- },
2515
- defaultVariants: {
2516
- display: "flex",
2517
- direction: "row",
2518
- gap: 10
2519
- }
2520
- });
2521
- function Flex2(_a) {
2522
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2523
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
2524
- }
2525
-
2526
- // src/components/TextField.tsx
2527
2556
  var import_mask = require("@react-input/mask");
2528
2557
  var import_jsx_runtime7 = require("react/jsx-runtime");
2529
2558
  var TextFieldStyled = styled(import_themes7.TextField.Root, {
@@ -2757,8 +2786,8 @@ var TextField = import_react3.default.forwardRef(
2757
2786
  updateCharCountBadge();
2758
2787
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
2759
2788
  };
2760
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex2, { direction: "column", css: { width: "100%", position: "relative" }, children: [
2761
- /* @__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: [
2762
2791
  !!addon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2763
2792
  InputAddon,
2764
2793
  {
@@ -8438,7 +8467,7 @@ function Drawer({
8438
8467
  },
8439
8468
  children: [
8440
8469
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DrawerHeaderDiv, { children: [
8441
- /* @__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: [
8442
8471
  goBackIcon && goBackIcon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8443
8472
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerHeaderTitle, { children: title })
8444
8473
  ] }),
@@ -9006,7 +9035,7 @@ function Alert(_a) {
9006
9035
  ] })
9007
9036
  ] }),
9008
9037
  completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialoghrStyled, {}) : null,
9009
- /* @__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: [
9010
9039
  completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
9011
9040
  Button,
9012
9041
  {
@@ -9385,7 +9414,7 @@ var TextareaField = import_react13.default.forwardRef((_a, forwardedRef) => {
9385
9414
  }
9386
9415
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9387
9416
  };
9388
- 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: [
9389
9418
  maxLength && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9390
9419
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TextareaContainer, { color, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9391
9420
  TextareaFieldStyle,
@@ -9735,7 +9764,7 @@ var CloseBtnStyled = styled("button", {
9735
9764
  background: "none",
9736
9765
  border: "none"
9737
9766
  });
9738
- var StyledFlexWithMaxHeight = styled(Flex2, {
9767
+ var StyledFlexWithMaxHeight = styled(Flex, {
9739
9768
  variants: {
9740
9769
  hasMaxHeight: {
9741
9770
  true: {
@@ -9761,7 +9790,7 @@ var StyledFlexWithMaxHeight = styled(Flex2, {
9761
9790
  hasMaxHeight: false
9762
9791
  }
9763
9792
  });
9764
- var StyledFlexSelectedItems = styled(Flex2, {
9793
+ var StyledFlexSelectedItems = styled(Flex, {
9765
9794
  overflowY: "auto",
9766
9795
  margin: "8px 0",
9767
9796
  "&::-webkit-scrollbar": {
@@ -9993,7 +10022,7 @@ var MultiSelect = import_react18.default.forwardRef(
9993
10022
  justify: "start",
9994
10023
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9995
10024
  children: allOptionsSelected ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
9996
- Flex2,
10025
+ Flex,
9997
10026
  {
9998
10027
  gap: 4,
9999
10028
  align: "center",
@@ -10024,7 +10053,7 @@ var MultiSelect = import_react18.default.forwardRef(
10024
10053
  },
10025
10054
  "all-selected"
10026
10055
  ) : selectedValues.map((value) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
10027
- Flex2,
10056
+ Flex,
10028
10057
  {
10029
10058
  gap: 4,
10030
10059
  align: "center",
@@ -10267,13 +10296,15 @@ var ErrorFormMessage = ({ message: message2 }) => {
10267
10296
  if (typeof message2 !== "string") {
10268
10297
  return null;
10269
10298
  }
10270
- 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: [
10271
10300
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10272
10301
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10273
10302
  ] });
10274
10303
  };
10275
10304
 
10276
10305
  // src/components/FormFields/subComponents/FormLabel.tsx
10306
+ var import_react_fontawesome5 = require("@fortawesome/react-fontawesome");
10307
+ var import_free_solid_svg_icons5 = require("@fortawesome/free-solid-svg-icons");
10277
10308
  var import_jsx_runtime32 = require("react/jsx-runtime");
10278
10309
  var FormLabel = ({
10279
10310
  name,
@@ -10282,19 +10313,19 @@ var FormLabel = ({
10282
10313
  required
10283
10314
  }) => {
10284
10315
  if (!label) return null;
10285
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
10286
- Text,
10287
- {
10288
- typography: "labelMedium",
10289
- fontWeight: "medium",
10290
- color: haveError ? "error600" : "dark700",
10291
- id: `${name}-label`,
10292
- children: [
10293
- label,
10294
- !required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: "dark500", children: " (opcional)" })
10295
- ]
10296
- }
10297
- );
10316
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { align: "start", gap: 6, children: [
10317
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10318
+ Text,
10319
+ {
10320
+ typography: "labelMedium",
10321
+ fontWeight: "medium",
10322
+ color: haveError ? "error600" : "dark700",
10323
+ id: `${name}-label`,
10324
+ children: label
10325
+ }
10326
+ ),
10327
+ required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_fontawesome5.FontAwesomeIcon, { icon: import_free_solid_svg_icons5.faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10328
+ ] });
10298
10329
  };
10299
10330
 
10300
10331
  // src/components/FormFields/TextAreaFormField.tsx
@@ -10331,7 +10362,7 @@ var TextAreaFormField = (_a) => {
10331
10362
  required: required ? validationErrorMessage : false,
10332
10363
  validate
10333
10364
  };
10334
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex2, { direction: "column", children: [
10365
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { direction: "column", children: [
10335
10366
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10336
10367
  FormLabel,
10337
10368
  {
@@ -10414,7 +10445,7 @@ var TextFormField = (_a) => {
10414
10445
  if (valueFormatter) value = valueFormatter.unformat(value);
10415
10446
  formChange(value);
10416
10447
  };
10417
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex2, { direction: "column", children: [
10448
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { direction: "column", children: [
10418
10449
  label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10419
10450
  FormLabel,
10420
10451
  {
@@ -10494,7 +10525,7 @@ var MultiSelectFormField = (_a) => {
10494
10525
  const handleChange = (v) => {
10495
10526
  onChange(v);
10496
10527
  };
10497
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex2, { direction: "column", children: [
10528
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex, { direction: "column", children: [
10498
10529
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10499
10530
  FormLabel,
10500
10531
  {
@@ -10596,7 +10627,7 @@ var CPFFormField = ({
10596
10627
  }) => {
10597
10628
  const { control, setValue } = (0, import_react_hook_form5.useFormContext)();
10598
10629
  const foreigner = (0, import_react_hook_form5.useWatch)({ name: "foreigner", control });
10599
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex2, { direction: "column", children: [
10630
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex, { direction: "column", children: [
10600
10631
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10601
10632
  TextFormField,
10602
10633
  {
@@ -10820,7 +10851,7 @@ var SelectFormField = ({
10820
10851
  const validationRules = __spreadValues({
10821
10852
  required: required ? validationErrorMessage : false
10822
10853
  }, validation);
10823
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex2, { direction: "column", children: [
10854
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex, { direction: "column", children: [
10824
10855
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10825
10856
  FormLabel,
10826
10857
  {
@@ -10903,7 +10934,7 @@ function CountryFormField({
10903
10934
  language = "pt-BR"
10904
10935
  }) {
10905
10936
  const countries2 = useCountries(language);
10906
- 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)(
10907
10938
  SelectFormField,
10908
10939
  {
10909
10940
  label,
@@ -11234,7 +11265,7 @@ var RadioGroupFormField = ({
11234
11265
  const validationRules = {
11235
11266
  required: required ? validationErrorMessage : false
11236
11267
  };
11237
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex2, { direction: "column", children: [
11268
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex, { direction: "column", children: [
11238
11269
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11239
11270
  FormLabel,
11240
11271
  {
@@ -11259,10 +11290,7 @@ var RadioGroupFormField = ({
11259
11290
  color: haveError ? "error" : color,
11260
11291
  fontWeight,
11261
11292
  disabled,
11262
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("label", { children: [
11263
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value }),
11264
- option.label
11265
- ] }, option.value))
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)) })
11266
11294
  }
11267
11295
  )
11268
11296
  }
@@ -11296,7 +11324,7 @@ var CheckboxGroupFormField = ({
11296
11324
  required: required ? validationErrorMessage : false,
11297
11325
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11298
11326
  };
11299
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex2, { direction: "column", children: [
11327
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex, { direction: "column", children: [
11300
11328
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11301
11329
  FormLabel,
11302
11330
  {
@@ -11355,7 +11383,7 @@ var SwitchFormField = ({
11355
11383
  if (watch) {
11356
11384
  watchForm(name);
11357
11385
  }
11358
- 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: [
11359
11387
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11360
11388
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11361
11389
  import_react_hook_form11.Controller,
@@ -12740,7 +12768,7 @@ var QuillComponent = ({
12740
12768
  zIndex: 1e3,
12741
12769
  width: "fit-content"
12742
12770
  },
12743
- 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: [
12744
12772
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12745
12773
  Text,
12746
12774
  {
@@ -12810,7 +12838,7 @@ var QuillComponent = ({
12810
12838
  zIndex: 1e3,
12811
12839
  width: "fit-content"
12812
12840
  },
12813
- 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: [
12814
12842
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12815
12843
  Text,
12816
12844
  {
@@ -12925,8 +12953,8 @@ var RichEditorFormField = (_a) => {
12925
12953
  const fieldError = fieldState.error;
12926
12954
  const haveError = !!fieldError;
12927
12955
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12928
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "column", children: [
12929
- 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: [
12930
12958
  label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12931
12959
  FormLabel,
12932
12960
  {
@@ -13014,7 +13042,7 @@ var CalendarFormField = (_a) => {
13014
13042
  const handleCalendarChange = (date) => {
13015
13043
  setSelected(date);
13016
13044
  };
13017
- 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: [
13018
13046
  label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13019
13047
  FormLabel,
13020
13048
  {
@@ -13093,7 +13121,7 @@ var DoubleCalendarFormField = (_a) => {
13093
13121
  const handleCalendarChange = (range) => {
13094
13122
  setSelected(range);
13095
13123
  };
13096
- 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: [
13097
13125
  label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FormLabel, { name, label, required, haveError }),
13098
13126
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13099
13127
  DoubleCalendar,
@@ -13159,7 +13187,7 @@ var TimePickerFormField = (_a) => {
13159
13187
  const handleTimePickerChange = (time) => {
13160
13188
  setSelected(time);
13161
13189
  };
13162
- 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: [
13163
13191
  label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13164
13192
  FormLabel,
13165
13193
  {