@lets-events/react 6.1.0 → 7.0.1

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.js CHANGED
@@ -1071,6 +1071,7 @@ __export(index_exports, {
1071
1071
  TimePickerDialogStyled: () => TimePickerDialogStyled,
1072
1072
  TimePickerFooterStyled: () => TimePickerFooterStyled,
1073
1073
  TimePickerStyled: () => TimePickerStyled,
1074
+ TimePickerTitleStyled: () => TimePickerTitleStyled,
1074
1075
  TimerPickerContentStyled: () => TimerPickerContentStyled
1075
1076
  });
1076
1077
  module.exports = __toCommonJS(index_exports);
@@ -1667,6 +1668,10 @@ function Text(_a) {
1667
1668
  // src/components/Button/styledComponents.ts
1668
1669
  var import_themes2 = require("@radix-ui/themes");
1669
1670
  var ButtonStyled = styled(import_themes2.Button, {
1671
+ $$buttonColor: "inherit",
1672
+ $$buttonBgColor: "$colors$grey50",
1673
+ $$buttonBorderColor: "inherit",
1674
+ $$buttonOutlinedColor: "inherit",
1670
1675
  fontFamily: "$default",
1671
1676
  letterSpacing: 0,
1672
1677
  border: 0,
@@ -1685,332 +1690,223 @@ var ButtonStyled = styled(import_themes2.Button, {
1685
1690
  },
1686
1691
  variants: {
1687
1692
  color: {
1688
- brand: {},
1689
- neutral: {},
1690
- purple: {}
1691
- },
1692
- variant: {
1693
- text: {
1694
- backgroundColor: "transparent",
1695
- boxShadow: "none",
1696
- padding: 0,
1697
- border: 0
1698
- },
1699
- contained: {
1693
+ brand: {
1694
+ $$buttonColor: "$colors$brand500",
1695
+ $$buttonBorderColor: "$colors$brand600",
1696
+ $$buttonOutlinedColor: "$$buttonColor",
1700
1697
  "&:hover": {
1701
- borderWidth: "1px",
1702
- borderStyle: "solid"
1698
+ $$buttonColor: "$colors$brand600",
1699
+ $$buttonBorderColor: "$colors$brand700"
1703
1700
  },
1704
- "&:active": {
1705
- borderWidth: "2px"
1701
+ "&:focus": {
1702
+ $$buttonColor: "$colors$brand400",
1703
+ $$buttonBorderColor: "$colors$brand300",
1704
+ $$buttonBgColor: "$colors$grey200"
1706
1705
  },
1707
- "&:disabled": {
1708
- boxShadow: "none"
1706
+ "&:active": {
1707
+ $$buttonColor: "$colors$brand500",
1708
+ $$buttonBorderColor: "$colors$brand700",
1709
+ $$buttonBgColor: "$colors$grey200"
1709
1710
  }
1710
1711
  },
1711
- outlined: {
1712
- borderWidth: "1px",
1713
- borderStyle: "solid",
1714
- "&:disabled": {
1715
- color: "$neutral400",
1716
- boxShadow: "none"
1717
- }
1718
- }
1719
- },
1720
- typography: typographyButtonValues,
1721
- fontWeight: {
1722
- regular: { fontWeight: "$regular" },
1723
- medium: { fontWeight: "$medium" },
1724
- semibold: { fontWeight: "$semibold" },
1725
- bold: { fontWeight: "$bold" }
1726
- },
1727
- outlinedBgColor: {
1728
- neutral: {},
1729
- transparent: {}
1730
- },
1731
- radii: {
1732
- "full": {
1733
- borderRadius: "$full"
1734
- }
1735
- }
1736
- },
1737
- defaultVariants: {
1738
- variant: "contained",
1739
- typography: "buttonMedium",
1740
- color: "brand"
1741
- },
1742
- compoundVariants: [
1743
- {
1744
- variant: "text",
1745
- color: "brand",
1746
- css: {
1747
- color: "$brand500",
1748
- "&:hover": { color: "$brand600" },
1749
- "&:focus": { color: "$brand700" },
1750
- "&:active": { color: "$brand500" },
1751
- "&:disabled": { color: "$dark400" }
1752
- }
1753
- },
1754
- {
1755
- variant: "text",
1756
- color: "neutral",
1757
- css: {
1758
- color: "$neutral600",
1759
- "&:hover": { color: "$neutral700" },
1760
- "&:focus": { color: "$neutral800" },
1761
- "&:active": { color: "$neutral500" },
1762
- "&:disabled": { color: "$dark400" }
1763
- }
1764
- },
1765
- {
1766
- variant: "text",
1767
- color: "purple",
1768
- css: {
1769
- color: "$purple500",
1770
- "&:hover": { color: "$purple600" },
1771
- "&:focus": { color: "$purple700" },
1772
- "&:active": { color: "$purple500" },
1773
- "&:disabled": { color: "$dark400" }
1774
- }
1775
- },
1776
- {
1777
- variant: "text",
1778
- color: "green",
1779
- css: {
1780
- color: "$green500",
1781
- "&:hover": { color: "$green600" },
1782
- "&:focus": { color: "$green700" },
1783
- "&:active": { color: "$green500" },
1784
- "&:disabled": { color: "$dark400" }
1785
- }
1786
- },
1787
- {
1788
- variant: "text",
1789
- color: "blue",
1790
- css: {
1791
- color: "$blue500",
1792
- "&:hover": { color: "$blue600" },
1793
- "&:focus": { color: "$blue700" },
1794
- "&:active": { color: "$blue500" },
1795
- "&:disabled": { color: "$dark400" }
1796
- }
1797
- },
1798
- {
1799
- variant: "text",
1800
- color: "red",
1801
- css: {
1802
- color: "$red500",
1803
- "&:hover": { color: "$red600" },
1804
- "&:focus": { color: "$red700" },
1805
- "&:active": { color: "$red500" },
1806
- "&:disabled": { color: "$dark400" }
1807
- }
1808
- },
1809
- // contained
1810
- {
1811
- variant: "contained",
1812
- color: "brand",
1813
- css: {
1814
- color: "$grey50",
1815
- backgroundColor: "$brand500",
1816
- borderWidth: "2px",
1817
- borderStyle: "solid",
1818
- borderColor: "transparent",
1712
+ purple: {
1713
+ $$buttonColor: "$colors$purple500",
1714
+ $$buttonBorderColor: "$colors$purple300",
1715
+ $$buttonOutlinedColor: "$$buttonColor",
1819
1716
  "&:hover": {
1820
- borderColor: "$brand700",
1821
- backgroundColor: "$blue600"
1717
+ $$buttonColor: "$colors$purple600",
1718
+ $$buttonBorderColor: "$colors$purple700",
1719
+ $$buttonOutlinedColor: "$colors$purple500",
1720
+ $$buttonBgColor: "$colors$purple50"
1822
1721
  },
1823
1722
  "&:focus": {
1824
- backgroundColor: "$blue700"
1723
+ $$buttonColor: "$colors$purple700",
1724
+ $$buttonOutlinedColor: "$colors$purple500",
1725
+ $$buttonBgColor: "$colors$purple200",
1726
+ $$buttonBorderColor: "$colors$purple400"
1825
1727
  },
1826
1728
  "&:active": {
1827
- borderColor: "$brand300",
1828
- backgroundColor: "$blue500"
1829
- },
1830
- "&:disabled": {
1831
- borderColor: "$brand50",
1832
- backgroundColor: "$brand50",
1833
- color: "$neutral400"
1729
+ $$buttonColor: "$colors$purple500",
1730
+ $$buttonOutlinedColor: "$colors$purple500",
1731
+ $$buttonBgColor: "$colors$purple100",
1732
+ $$buttonBorderColor: "$colors$purple300"
1834
1733
  }
1835
- }
1836
- },
1837
- {
1838
- variant: "contained",
1839
- color: "neutral",
1840
- css: {
1841
- backgroundColor: "$neutral600",
1842
- color: "$grey50",
1734
+ },
1735
+ error: {
1736
+ $$buttonColor: "$colors$error600",
1737
+ $$buttonBorderColor: "$colors$error500",
1738
+ $$buttonOutlinedColor: " $colors$error500",
1843
1739
  "&:hover": {
1844
- backgroundColor: "$neutral700",
1845
- borderColor: "$neutral800"
1740
+ $$buttonColor: "$colors$error600",
1741
+ $$buttonBorderColor: "$colors$error700",
1742
+ $$buttonBgColor: "$colors$error50"
1846
1743
  },
1847
1744
  "&:focus": {
1848
- backgroundColor: "$neutral800"
1745
+ $$buttonColor: "$colors$error400",
1746
+ $$buttonBorderColor: "$colors$error300",
1747
+ $$buttonBgColor: "$colors$error200"
1849
1748
  },
1850
1749
  "&:active": {
1851
- backgroundColor: "$neutral500",
1852
- borderColor: "$neutral400"
1853
- },
1854
- "&:disabled": {
1855
- backgroundColor: "$neutral50",
1856
- borderColor: "$neutral200",
1857
- color: "$neutral400"
1750
+ $$buttonColor: "$colors$error700",
1751
+ $$buttonBorderColor: "$colors$error700",
1752
+ $$buttonBgColor: "$colors$re1050"
1858
1753
  }
1859
- }
1860
- },
1861
- {
1862
- variant: "contained",
1863
- color: "purple",
1864
- css: {
1865
- backgroundColor: "$purple500",
1866
- color: "$grey50",
1754
+ },
1755
+ info: {
1756
+ $$buttonColor: "$colors$info500",
1757
+ $$buttonBorderColor: "$colors$info600",
1758
+ $$buttonOutlinedColor: "$$buttonColor",
1867
1759
  "&:hover": {
1868
- backgroundColor: "$purple600",
1869
- borderColor: "$purple700"
1760
+ $$buttonColor: "$colors$info600",
1761
+ $$buttonBorderColor: "$colors$info700",
1762
+ $$buttonBgColor: "$colors$info50"
1870
1763
  },
1871
1764
  "&:focus": {
1872
- backgroundColor: "$purple700"
1765
+ $$buttonColor: "$colors$info400",
1766
+ $$buttonBorderColor: "$colors$info600",
1767
+ $$buttonBgColor: "$colors$info200"
1873
1768
  },
1874
1769
  "&:active": {
1875
- borderColor: "$purple300",
1876
- backgroundColor: "$purple500"
1877
- },
1878
- "&:disabled": {
1879
- borderColor: "$purple200",
1880
- backgroundColor: "$purple200",
1881
- color: "$neutral400"
1770
+ $$buttonColor: "$colors$info700",
1771
+ $$buttonBorderColor: "$colors$info700",
1772
+ $$buttonBgColor: "$colors$info100"
1882
1773
  }
1883
- }
1884
- },
1885
- // outlined
1886
- {
1887
- variant: "outlined",
1888
- color: "brand",
1889
- outlinedBgColor: "neutral",
1890
- css: {
1891
- color: "$brand500",
1892
- border: "1px solid $brand300",
1893
- backgroundColor: "$grey50",
1774
+ },
1775
+ success: {
1776
+ $$buttonColor: "$colors$success500",
1777
+ $$buttonBorderColor: "$colors$success600",
1778
+ $$buttonOutlinedColor: "$$buttonColor",
1894
1779
  "&:hover": {
1895
- borderColor: "$brand400",
1896
- backgroundColor: "$brand50"
1780
+ $$buttonColor: "$colors$success600",
1781
+ $$buttonBorderColor: "$colors$success700",
1782
+ $$buttonBgColor: "$colors$success50"
1897
1783
  },
1898
1784
  "&:focus": {
1899
- borderColor: "$brand400",
1900
- backgroundColor: "$brand50"
1785
+ $$buttonColor: "$colors$success400",
1786
+ $$buttonBorderColor: "$colors$success600",
1787
+ $$buttonBgColor: "$colors$success200"
1901
1788
  },
1902
- "&:disabled": {
1903
- borderColor: "$brand200",
1904
- backgroundColor: "$neutral200"
1789
+ "&:active": {
1790
+ $$buttonColor: "$colors$success700",
1791
+ $$buttonBorderColor: "$colors$success700",
1792
+ $$buttonBgColor: "$colors$success100"
1905
1793
  }
1906
- }
1907
- },
1908
- {
1909
- variant: "outlined",
1910
- color: "neutral",
1911
- outlinedBgColor: "neutral",
1912
- css: {
1913
- color: "$neutral600",
1914
- border: "1px solid $neutral300",
1915
- backgroundColor: "$grey50",
1794
+ },
1795
+ warning: {
1796
+ $$buttonColor: "$colors$warning500",
1797
+ $$buttonBorderColor: "$colors$warning600",
1798
+ $$buttonOutlinedColor: "$$buttonColor",
1916
1799
  "&:hover": {
1917
- borderColor: "$neutral400",
1918
- backgroundColor: "$grey100"
1800
+ $$buttonColor: "$colors$warning600",
1801
+ $$buttonBorderColor: "$colors$warning700",
1802
+ $$buttonBgColor: "$colors$warning50"
1919
1803
  },
1920
1804
  "&:focus": {
1921
- borderColor: "$neutral400",
1922
- backgroundColor: "$grey100"
1805
+ $$buttonColor: "$colors$warning400",
1806
+ $$buttonBorderColor: "$colors$warning600",
1807
+ $$buttonBgColor: "$colors$warning200"
1923
1808
  },
1924
- "&:disabled": {
1925
- borderColor: "$neutral200",
1926
- backgroundColor: "$neutral200"
1809
+ "&:active": {
1810
+ $$buttonColor: "$colors$warning700",
1811
+ $$buttonBorderColor: "$colors$warning700",
1812
+ $$buttonBgColor: "$colors$warning100"
1927
1813
  }
1928
- }
1929
- },
1930
- {
1931
- variant: "outlined",
1932
- color: "purple",
1933
- outlinedBgColor: "neutral",
1934
- css: {
1935
- color: "$purple500",
1936
- backgroundColor: "$grey50",
1937
- border: "1px solid $purple300",
1814
+ },
1815
+ neutral: {
1816
+ $$buttonColor: "$colors$neutral600",
1817
+ $$buttonBorderColor: "$colors$neutral300",
1818
+ $$buttonOutlinedColor: "$$buttonColor",
1938
1819
  "&:hover": {
1939
- borderColor: "$purple400",
1940
- backgroundColor: "$purple50"
1820
+ $$buttonColor: "$colors$neutral700",
1821
+ $$buttonBgColor: "$colors$neutral100",
1822
+ $$buttonBorderColor: "$colors$neutral300"
1941
1823
  },
1942
1824
  "&:focus": {
1943
- borderColor: "$purple400",
1944
- backgroundColor: "$purple50"
1825
+ $$buttonColor: "$colors$neutral800",
1826
+ $$buttonBgColor: "$colors$neutral300",
1827
+ $$buttonBorderColor: "$colors$neutral400"
1945
1828
  },
1946
- "&:disabled": {
1947
- borderColor: "$purple200",
1948
- backgroundColor: "$neutral200"
1829
+ "&:active": {
1830
+ $$buttonColor: "$colors$neutral500",
1831
+ $$buttonBgColor: "$colors$neutral300",
1832
+ $$buttonBorderColor: "$colors$neutral400"
1949
1833
  }
1950
- }
1951
- },
1952
- // outlined transparent
1953
- {
1954
- variant: "outlined",
1955
- color: "brand",
1956
- outlinedBgColor: "transparent",
1957
- css: {
1958
- color: "$brand500",
1959
- border: "1px solid $brand300",
1960
- backgroundColor: "transparent",
1834
+ },
1835
+ white: {
1836
+ $$buttonColor: "$colors$neutral50",
1837
+ $$buttonBorderColor: "$colors$neutral300",
1838
+ $$buttonOutlinedColor: "$colors$neutral50",
1961
1839
  "&:hover": {
1962
- borderColor: "$brand400",
1963
- opacity: "0.8"
1840
+ $$buttonColor: "$colors$neutral100",
1841
+ $$buttonBorderColor: "$colors$neutral300",
1842
+ $$buttonBgColor: "$colors$neutral100"
1964
1843
  },
1965
1844
  "&:focus": {
1966
- borderColor: "$brand400"
1845
+ $$buttonBorderColor: "$colors$neutral400",
1846
+ $$buttonColor: "$colors$neutral300",
1847
+ $$buttonBgColor: "$colors$neutral200"
1967
1848
  },
1968
- "&:disabled": {
1969
- borderColor: "$brand200"
1849
+ "&:active": {
1850
+ $$buttonColor: "$colors$neutral400",
1851
+ $$buttonBorderColor: "$colors$neutral500",
1852
+ $$buttonBgColor: "$colors$neutral300"
1970
1853
  }
1971
1854
  }
1972
1855
  },
1973
- {
1974
- variant: "outlined",
1975
- color: "neutral",
1976
- outlinedBgColor: "transparent",
1977
- css: {
1978
- color: "$neutral600",
1979
- border: "1px solid $neutral300",
1856
+ variant: {
1857
+ text: {
1980
1858
  backgroundColor: "transparent",
1981
- "&:hover": {
1982
- borderColor: "$neutral400",
1983
- opacity: "0.8"
1984
- },
1985
- "&:focus": {
1986
- borderColor: "$neutral400"
1987
- },
1859
+ boxShadow: "none",
1860
+ padding: 0,
1861
+ border: 0,
1862
+ color: "$$buttonColor"
1863
+ },
1864
+ contained: {
1865
+ color: "$grey50",
1866
+ backgroundColor: "$$buttonColor",
1867
+ border: "1px solid $$buttonBorderColor",
1988
1868
  "&:disabled": {
1989
- borderColor: "$neutral200"
1869
+ boxShadow: "none",
1870
+ color: "$neutral400",
1871
+ backgroundColor: "$neutral200",
1872
+ $$buttonBorderColor: "$colors$neutral100"
1990
1873
  }
1991
- }
1992
- },
1993
- {
1994
- variant: "outlined",
1995
- color: "purple",
1996
- outlinedBgColor: "transparent",
1997
- css: {
1998
- color: "$purple500",
1999
- backgroundColor: "transparent",
2000
- border: "1px solid $purple300",
2001
- "&:hover": {
2002
- borderColor: "$purple400",
2003
- opacity: "0.8"
2004
- },
2005
- "&:focus": {
2006
- borderColor: "$purple400"
2007
- },
1874
+ },
1875
+ outlined: {
1876
+ color: "$$buttonOutlinedColor",
1877
+ border: "1px solid $$buttonOutlinedColor",
1878
+ backgroundColor: "$$buttonBgColor",
2008
1879
  "&:disabled": {
2009
- borderColor: "$purple200"
1880
+ boxShadow: "none",
1881
+ borderColor: "$colors$neutral100",
1882
+ $$buttonColor: "$colors$neutral300"
2010
1883
  }
2011
1884
  }
1885
+ },
1886
+ typography: typographyButtonValues,
1887
+ fontWeight: {
1888
+ regular: { fontWeight: "$regular" },
1889
+ medium: { fontWeight: "$medium" },
1890
+ semibold: { fontWeight: "$semibold" },
1891
+ bold: { fontWeight: "$bold" }
1892
+ },
1893
+ outlinedBgColor: {
1894
+ neutral: {},
1895
+ transparent: {
1896
+ backgroundColor: "transparent"
1897
+ }
1898
+ },
1899
+ radii: {
1900
+ "full": {
1901
+ borderRadius: "$full"
1902
+ }
2012
1903
  }
2013
- ]
1904
+ },
1905
+ defaultVariants: {
1906
+ variant: "contained",
1907
+ typography: "buttonMedium",
1908
+ color: "brand"
1909
+ }
2014
1910
  });
2015
1911
 
2016
1912
  // src/components/Button/index.tsx
@@ -2548,27 +2444,140 @@ function Avatar(_a) {
2548
2444
  }
2549
2445
 
2550
2446
  // src/components/TextField.tsx
2447
+ var import_themes7 = require("@radix-ui/themes");
2448
+
2449
+ // src/components/Flex.tsx
2551
2450
  var import_themes6 = require("@radix-ui/themes");
2552
2451
  var import_jsx_runtime6 = require("react/jsx-runtime");
2553
- var TextFieldStyled = styled(import_themes6.TextField.Root, {
2452
+ var FlexStyled = styled(import_themes6.Flex, {
2453
+ variants: {
2454
+ display: {
2455
+ "flex": { display: "flex" },
2456
+ "inline-flex": { display: "inline-flex" }
2457
+ },
2458
+ align: {
2459
+ start: { alignItems: "flex-start" },
2460
+ center: { alignItems: "center" },
2461
+ end: { alignItems: "flex-end" },
2462
+ stretch: { alignItems: "stretch" },
2463
+ baseline: { alignItems: "baseline" }
2464
+ },
2465
+ justify: {
2466
+ start: { justifyContent: "flex-start" },
2467
+ center: { justifyContent: "center" },
2468
+ end: { justifyContent: "flex-end" },
2469
+ between: { justifyContent: "space-between" },
2470
+ around: { justifyContent: "space-around" },
2471
+ evenly: { justifyContent: "space-evenly" }
2472
+ },
2473
+ direction: {
2474
+ row: { flexDirection: "row" },
2475
+ column: { flexDirection: "column" },
2476
+ "row-reverse": { flexDirection: "row-reverse" },
2477
+ "column-reverse": { flexDirection: "column-reverse" }
2478
+ },
2479
+ gap: {
2480
+ 0: { gap: "0px" },
2481
+ 2: { gap: "$2" },
2482
+ 4: { gap: "$4" },
2483
+ 6: { gap: "$6" },
2484
+ 8: { gap: "$8" },
2485
+ 10: { gap: "$10" },
2486
+ 12: { gap: "$12" },
2487
+ 14: { gap: "$14" },
2488
+ 16: { gap: "$16" },
2489
+ 20: { gap: "$20" },
2490
+ 22: { gap: "$22" },
2491
+ 24: { gap: "$24" },
2492
+ 32: { gap: "$32" },
2493
+ 36: { gap: "$36" },
2494
+ 40: { gap: "$40" },
2495
+ 48: { gap: "$48" },
2496
+ 56: { gap: "$56" },
2497
+ 64: { gap: "$64" },
2498
+ 72: { gap: "$72" },
2499
+ 80: { gap: "$80" },
2500
+ full: { gap: "$full" }
2501
+ },
2502
+ gapY: {
2503
+ 2: { gap: "$2" },
2504
+ 4: { gap: "$4" },
2505
+ 6: { gap: "$6" },
2506
+ 8: { gap: "$8" },
2507
+ 10: { gap: "$10" },
2508
+ 12: { gap: "$12" },
2509
+ 14: { gap: "$14" },
2510
+ 16: { gap: "$16" },
2511
+ 20: { gap: "$20" },
2512
+ 22: { gap: "$22" },
2513
+ 24: { gap: "$24" },
2514
+ 32: { gap: "$32" },
2515
+ 36: { gap: "$36" },
2516
+ 40: { gap: "$40" },
2517
+ 48: { gap: "$48" },
2518
+ 56: { gap: "$56" },
2519
+ 64: { gap: "$64" },
2520
+ 72: { gap: "$72" },
2521
+ 80: { gap: "$80" },
2522
+ full: { gap: "$full" }
2523
+ },
2524
+ gapX: {
2525
+ 2: { gap: "$2" },
2526
+ 4: { gap: "$4" },
2527
+ 6: { gap: "$6" },
2528
+ 8: { gap: "$8" },
2529
+ 10: { gap: "$10" },
2530
+ 12: { gap: "$12" },
2531
+ 14: { gap: "$14" },
2532
+ 16: { gap: "$16" },
2533
+ 20: { gap: "$20" },
2534
+ 22: { gap: "$22" },
2535
+ 24: { gap: "$24" },
2536
+ 32: { gap: "$32" },
2537
+ 36: { gap: "$36" },
2538
+ 40: { gap: "$40" },
2539
+ 48: { gap: "$48" },
2540
+ 56: { gap: "$56" },
2541
+ 64: { gap: "$64" },
2542
+ 72: { gap: "$72" },
2543
+ 80: { gap: "$80" },
2544
+ full: { gap: "$full" }
2545
+ }
2546
+ },
2547
+ defaultVariants: {
2548
+ display: "flex",
2549
+ direction: "row",
2550
+ gap: 10
2551
+ }
2552
+ });
2553
+ function Flex2(_a) {
2554
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2555
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
2556
+ }
2557
+
2558
+ // src/components/TextField.tsx
2559
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2560
+ var TextFieldStyled = styled(import_themes7.TextField.Root, {
2554
2561
  height: "$40",
2555
2562
  fontFamily: "$default",
2556
- padding: "$12 $14",
2563
+ padding: "0",
2557
2564
  borderRadius: "$sm",
2558
2565
  boxSizing: "border-box",
2559
2566
  color: "$dark500",
2560
2567
  border: "1px solid $dark300",
2561
2568
  position: "relative",
2562
2569
  display: "flex",
2570
+ width: "100%",
2571
+ alignItems: "center",
2563
2572
  "input": {
2564
2573
  order: 1,
2565
- border: "none",
2566
2574
  outline: "none",
2567
- padding: 0,
2575
+ border: "none",
2568
2576
  margin: 0,
2569
2577
  width: "100%",
2570
2578
  font: "inherit",
2571
- textAlign: "inherit"
2579
+ textAlign: "left",
2580
+ padding: "0 $14"
2572
2581
  },
2573
2582
  "&:has(input:focus)": {
2574
2583
  border: "2px solid $brand300"
@@ -2671,7 +2680,7 @@ var TextFieldStyled = styled(import_themes6.TextField.Root, {
2671
2680
  }
2672
2681
  ]
2673
2682
  });
2674
- var TextFieldSlotStyled = styled(import_themes6.TextField.Slot, {
2683
+ var TextFieldSlotStyled = styled(import_themes7.TextField.Slot, {
2675
2684
  display: "flex",
2676
2685
  alignItems: "center",
2677
2686
  justifyContent: "center",
@@ -2690,6 +2699,18 @@ var TextFieldSlotStyled = styled(import_themes6.TextField.Slot, {
2690
2699
  }
2691
2700
  }
2692
2701
  });
2702
+ var InputAddon = styled(TextStyle, {
2703
+ boxSizing: "border-box",
2704
+ border: "1px solid $dark300",
2705
+ height: "$40",
2706
+ padding: "0",
2707
+ color: "$dark600",
2708
+ borderRadius: "$sm 0px 0px $sm",
2709
+ borderRightWidth: "0px",
2710
+ margin: "auto 0",
2711
+ display: "flex",
2712
+ alignItems: "center"
2713
+ });
2693
2714
  function TextField(_a) {
2694
2715
  var _b = _a, {
2695
2716
  children,
@@ -2698,6 +2719,7 @@ function TextField(_a) {
2698
2719
  color,
2699
2720
  typography,
2700
2721
  fontWeight,
2722
+ addon,
2701
2723
  textAlign = "right"
2702
2724
  } = _b, props = __objRest(_b, [
2703
2725
  "children",
@@ -2706,35 +2728,40 @@ function TextField(_a) {
2706
2728
  "color",
2707
2729
  "typography",
2708
2730
  "fontWeight",
2731
+ "addon",
2709
2732
  "textAlign"
2710
2733
  ]);
2711
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
2712
- TextFieldStyled,
2713
- __spreadProps(__spreadValues({
2714
- color,
2715
- isValid: isValid2,
2716
- name,
2717
- typography,
2718
- fontWeight,
2719
- textAlign
2720
- }, props), {
2721
- children: [
2722
- children,
2723
- isValid2 && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2724
- TextFieldSlot,
2725
- {
2726
- position: "flex-end",
2727
- name,
2728
- color,
2729
- typography,
2730
- fontWeight,
2731
- textAlign,
2732
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "check" })
2733
- }
2734
- )
2735
- ]
2736
- })
2737
- );
2734
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex2, { gap: "0", css: { width: "100%" }, children: [
2735
+ !!addon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(InputAddon, { typography: "labelSmall", children: addon }),
2736
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2737
+ TextFieldStyled,
2738
+ __spreadProps(__spreadValues({
2739
+ color,
2740
+ isValid: isValid2,
2741
+ name,
2742
+ typography,
2743
+ fontWeight,
2744
+ textAlign,
2745
+ style: !!addon ? { borderTopLeftRadius: "0px", borderBottomLeftRadius: "0px" } : void 0
2746
+ }, props), {
2747
+ children: [
2748
+ children,
2749
+ isValid2 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2750
+ TextFieldSlot,
2751
+ {
2752
+ position: "flex-end",
2753
+ name,
2754
+ color,
2755
+ typography,
2756
+ fontWeight,
2757
+ textAlign,
2758
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon_default, { name: "check" })
2759
+ }
2760
+ )
2761
+ ]
2762
+ })
2763
+ )
2764
+ ] });
2738
2765
  }
2739
2766
  function TextFieldSlot(_a) {
2740
2767
  var _b = _a, {
@@ -2759,7 +2786,7 @@ function TextFieldSlot(_a) {
2759
2786
  }, props), {
2760
2787
  color: void 0
2761
2788
  });
2762
- return !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2789
+ return !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2763
2790
  TextFieldSlotStyled,
2764
2791
  __spreadProps(__spreadValues({}, sharedStyles), {
2765
2792
  style: {
@@ -2775,7 +2802,7 @@ function TextFieldSlot(_a) {
2775
2802
  onClick: () => onClick(),
2776
2803
  children
2777
2804
  })
2778
- ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2805
+ ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2779
2806
  TextFieldSlotStyled,
2780
2807
  __spreadProps(__spreadValues({}, sharedStyles), {
2781
2808
  style: {
@@ -2791,9 +2818,9 @@ function TextFieldSlot(_a) {
2791
2818
  }
2792
2819
 
2793
2820
  // src/components/RadioGroup.tsx
2794
- var import_themes7 = require("@radix-ui/themes");
2795
- var import_jsx_runtime7 = require("react/jsx-runtime");
2796
- var RadioGroupStyled = styled(import_themes7.RadioGroup.Root, {
2821
+ var import_themes8 = require("@radix-ui/themes");
2822
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2823
+ var RadioGroupStyled = styled(import_themes8.RadioGroup.Root, {
2797
2824
  fontFamily: "$default",
2798
2825
  "label": {
2799
2826
  display: "flex",
@@ -2962,7 +2989,7 @@ function RadioGroup(_a) {
2962
2989
  "children",
2963
2990
  "disabled"
2964
2991
  ]);
2965
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2992
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2966
2993
  RadioGroupStyled,
2967
2994
  __spreadProps(__spreadValues({
2968
2995
  disabled
@@ -2977,13 +3004,13 @@ function RadioItem(_a) {
2977
3004
  } = _b, props = __objRest(_b, [
2978
3005
  "children"
2979
3006
  ]);
2980
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes7.RadioGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
3007
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes8.RadioGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
2981
3008
  }
2982
3009
 
2983
3010
  // src/components/CheckboxGroup.tsx
2984
- var import_themes8 = require("@radix-ui/themes");
2985
- var import_jsx_runtime8 = require("react/jsx-runtime");
2986
- var CheckboxGroupStyled = styled(import_themes8.CheckboxGroup.Root, {
3011
+ var import_themes9 = require("@radix-ui/themes");
3012
+ var import_jsx_runtime9 = require("react/jsx-runtime");
3013
+ var CheckboxGroupStyled = styled(import_themes9.CheckboxGroup.Root, {
2987
3014
  fontFamily: "$default",
2988
3015
  "svg": {
2989
3016
  display: "none"
@@ -3152,7 +3179,7 @@ function CheckboxGroup(_a) {
3152
3179
  } = _b, props = __objRest(_b, [
3153
3180
  "children"
3154
3181
  ]);
3155
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
3182
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
3156
3183
  }
3157
3184
  function CheckboxItem(_a) {
3158
3185
  var _b = _a, {
@@ -3160,13 +3187,13 @@ function CheckboxItem(_a) {
3160
3187
  } = _b, props = __objRest(_b, [
3161
3188
  "children"
3162
3189
  ]);
3163
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes8.CheckboxGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
3190
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.CheckboxGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
3164
3191
  }
3165
3192
 
3166
3193
  // src/components/Filter.tsx
3167
- var import_themes9 = require("@radix-ui/themes");
3168
- var import_jsx_runtime9 = require("react/jsx-runtime");
3169
- var FilterContentStyled = styled(import_themes9.DropdownMenu.Content, {
3194
+ var import_themes10 = require("@radix-ui/themes");
3195
+ var import_jsx_runtime10 = require("react/jsx-runtime");
3196
+ var FilterContentStyled = styled(import_themes10.DropdownMenu.Content, {
3170
3197
  background: "white",
3171
3198
  padding: "$8 $12",
3172
3199
  border: "1px solid $dark300",
@@ -3275,13 +3302,13 @@ function Filter(_a) {
3275
3302
  "typography",
3276
3303
  "fontWeight"
3277
3304
  ]);
3278
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(FilterStyled, { typography, fontWeight, children: [
3279
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
3280
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "filter" }),
3281
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: placeholder || "Fitrar" }),
3282
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes9.DropdownMenu.TriggerIcon, {})
3305
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(FilterStyled, { typography, fontWeight, children: [
3306
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
3307
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "filter" }),
3308
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: placeholder || "Fitrar" }),
3309
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.TriggerIcon, {})
3283
3310
  ] }) }),
3284
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3311
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3285
3312
  FilterContentStyled,
3286
3313
  {
3287
3314
  avoidCollisions: false,
@@ -3289,7 +3316,7 @@ function Filter(_a) {
3289
3316
  alignOffset: -14,
3290
3317
  typography,
3291
3318
  fontWeight,
3292
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxGroup, { children })
3319
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CheckboxGroup, { children })
3293
3320
  }
3294
3321
  )
3295
3322
  ] }) })) });
@@ -3300,13 +3327,13 @@ function FilterItem(_a) {
3300
3327
  } = _b, props = __objRest(_b, [
3301
3328
  "children"
3302
3329
  ]);
3303
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
3304
3331
  }
3305
3332
 
3306
3333
  // src/components/Dropdown.tsx
3307
- var import_themes10 = require("@radix-ui/themes");
3308
- var import_jsx_runtime10 = require("react/jsx-runtime");
3309
- var DropdownMenuItemStyled = styled(import_themes10.DropdownMenu.Item, {
3334
+ var import_themes11 = require("@radix-ui/themes");
3335
+ var import_jsx_runtime11 = require("react/jsx-runtime");
3336
+ var DropdownMenuItemStyled = styled(import_themes11.DropdownMenu.Item, {
3310
3337
  fontFamily: "$default",
3311
3338
  color: "$dark600",
3312
3339
  letterSpacing: "0px",
@@ -3388,7 +3415,7 @@ var DropdownMenuStyled = styled("div", {
3388
3415
  }
3389
3416
  }
3390
3417
  });
3391
- var DropdownMenuContentStyled = styled(import_themes10.DropdownMenu.Content, {
3418
+ var DropdownMenuContentStyled = styled(import_themes11.DropdownMenu.Content, {
3392
3419
  background: "white",
3393
3420
  padding: "$8 $12",
3394
3421
  border: "1px solid $dark300",
@@ -3410,18 +3437,18 @@ function DropdownMenu2(_a) {
3410
3437
  "typography",
3411
3438
  "fontWeight"
3412
3439
  ]);
3413
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DropdownMenuStyled, { typography, fontWeight, children: [
3414
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { "aria-label": placeholder || "Filtrar", children: [
3415
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: placeholder || "Filtrar" }),
3416
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.TriggerIcon, {})
3440
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes11.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes11.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DropdownMenuStyled, { typography, fontWeight, children: [
3441
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes11.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("button", { "aria-label": placeholder || "Filtrar", children: [
3442
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: placeholder || "Filtrar" }),
3443
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes11.DropdownMenu.TriggerIcon, {})
3417
3444
  ] }) }),
3418
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3445
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3419
3446
  DropdownMenuContentStyled,
3420
3447
  {
3421
3448
  avoidCollisions: false,
3422
3449
  align: "start",
3423
3450
  alignOffset: -14,
3424
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes10.DropdownMenu.Group, { children })
3451
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes11.DropdownMenu.Group, { children })
3425
3452
  }
3426
3453
  )
3427
3454
  ] }) })) });
@@ -3436,7 +3463,7 @@ function DropdownMenuItem(_a) {
3436
3463
  "typography",
3437
3464
  "fontWeight"
3438
3465
  ]);
3439
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3466
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3440
3467
  DropdownMenuItemStyled,
3441
3468
  __spreadProps(__spreadValues({
3442
3469
  typography,
@@ -3449,9 +3476,9 @@ function DropdownMenuItem(_a) {
3449
3476
 
3450
3477
  // src/components/Badge.tsx
3451
3478
  var import_react2 = __toESM(require("react"));
3452
- var import_themes11 = require("@radix-ui/themes");
3453
- var import_jsx_runtime11 = require("react/jsx-runtime");
3454
- var BadgeStyled = styled(import_themes11.Badge, {
3479
+ var import_themes12 = require("@radix-ui/themes");
3480
+ var import_jsx_runtime12 = require("react/jsx-runtime");
3481
+ var BadgeStyled = styled(import_themes12.Badge, {
3455
3482
  fontFamily: "$default",
3456
3483
  borderRadius: "$sm",
3457
3484
  verticalAlign: "middle",
@@ -3555,7 +3582,7 @@ var BadgeStyled = styled(import_themes11.Badge, {
3555
3582
  });
3556
3583
  function Badge(_a) {
3557
3584
  var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
3558
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
3585
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
3559
3586
  if (import_react2.default.isValidElement(child)) {
3560
3587
  return import_react2.default.cloneElement(child, { size: props.size });
3561
3588
  }
@@ -3567,116 +3594,8 @@ function Badge(_a) {
3567
3594
  var import_themes14 = require("@radix-ui/themes");
3568
3595
 
3569
3596
  // src/components/Box.tsx
3570
- var import_themes12 = require("@radix-ui/themes");
3571
- var Box = import_themes12.Box;
3572
-
3573
- // src/components/Flex.tsx
3574
3597
  var import_themes13 = require("@radix-ui/themes");
3575
- var import_jsx_runtime12 = require("react/jsx-runtime");
3576
- var FlexStyled = styled(import_themes13.Flex, {
3577
- variants: {
3578
- display: {
3579
- "flex": { display: "flex" },
3580
- "inline-flex": { display: "inline-flex" }
3581
- },
3582
- align: {
3583
- start: { alignItems: "flex-start" },
3584
- center: { alignItems: "center" },
3585
- end: { alignItems: "flex-end" },
3586
- stretch: { alignItems: "stretch" },
3587
- baseline: { alignItems: "baseline" }
3588
- },
3589
- justify: {
3590
- start: { justifyContent: "flex-start" },
3591
- center: { justifyContent: "center" },
3592
- end: { justifyContent: "flex-end" },
3593
- between: { justifyContent: "space-between" },
3594
- around: { justifyContent: "space-around" },
3595
- evenly: { justifyContent: "space-evenly" }
3596
- },
3597
- direction: {
3598
- row: { flexDirection: "row" },
3599
- column: { flexDirection: "column" },
3600
- "row-reverse": { flexDirection: "row-reverse" },
3601
- "column-reverse": { flexDirection: "column-reverse" }
3602
- },
3603
- gap: {
3604
- 2: { gap: "$2" },
3605
- 4: { gap: "$4" },
3606
- 6: { gap: "$6" },
3607
- 8: { gap: "$8" },
3608
- 10: { gap: "$10" },
3609
- 12: { gap: "$12" },
3610
- 14: { gap: "$14" },
3611
- 16: { gap: "$16" },
3612
- 20: { gap: "$20" },
3613
- 22: { gap: "$22" },
3614
- 24: { gap: "$24" },
3615
- 32: { gap: "$32" },
3616
- 36: { gap: "$36" },
3617
- 40: { gap: "$40" },
3618
- 48: { gap: "$48" },
3619
- 56: { gap: "$56" },
3620
- 64: { gap: "$64" },
3621
- 72: { gap: "$72" },
3622
- 80: { gap: "$80" },
3623
- full: { gap: "$full" }
3624
- },
3625
- gapY: {
3626
- 2: { gap: "$2" },
3627
- 4: { gap: "$4" },
3628
- 6: { gap: "$6" },
3629
- 8: { gap: "$8" },
3630
- 10: { gap: "$10" },
3631
- 12: { gap: "$12" },
3632
- 14: { gap: "$14" },
3633
- 16: { gap: "$16" },
3634
- 20: { gap: "$20" },
3635
- 22: { gap: "$22" },
3636
- 24: { gap: "$24" },
3637
- 32: { gap: "$32" },
3638
- 36: { gap: "$36" },
3639
- 40: { gap: "$40" },
3640
- 48: { gap: "$48" },
3641
- 56: { gap: "$56" },
3642
- 64: { gap: "$64" },
3643
- 72: { gap: "$72" },
3644
- 80: { gap: "$80" },
3645
- full: { gap: "$full" }
3646
- },
3647
- gapX: {
3648
- 2: { gap: "$2" },
3649
- 4: { gap: "$4" },
3650
- 6: { gap: "$6" },
3651
- 8: { gap: "$8" },
3652
- 10: { gap: "$10" },
3653
- 12: { gap: "$12" },
3654
- 14: { gap: "$14" },
3655
- 16: { gap: "$16" },
3656
- 20: { gap: "$20" },
3657
- 22: { gap: "$22" },
3658
- 24: { gap: "$24" },
3659
- 32: { gap: "$32" },
3660
- 36: { gap: "$36" },
3661
- 40: { gap: "$40" },
3662
- 48: { gap: "$48" },
3663
- 56: { gap: "$56" },
3664
- 64: { gap: "$64" },
3665
- 72: { gap: "$72" },
3666
- 80: { gap: "$80" },
3667
- full: { gap: "$full" }
3668
- }
3669
- },
3670
- defaultVariants: {
3671
- display: "flex",
3672
- direction: "row",
3673
- gap: 10
3674
- }
3675
- });
3676
- function Flex2(_a) {
3677
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
3678
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
3679
- }
3598
+ var Box = import_themes13.Box;
3680
3599
 
3681
3600
  // src/components/Modal.tsx
3682
3601
  var import_jsx_runtime13 = require("react/jsx-runtime");
@@ -7647,6 +7566,9 @@ var CalendarStyled = styled("div", {
7647
7566
  maxWidth: "200px",
7648
7567
  borderRadius: "$sm"
7649
7568
  });
7569
+ var CalendarTitleStyled = styled(import_themes15.Dialog.Title, {
7570
+ display: "none"
7571
+ });
7650
7572
  var CalendarContentStyled = styled(import_themes15.Dialog.Content, {
7651
7573
  fontFamily: "$default",
7652
7574
  lineHeight: "$base",
@@ -7886,6 +7808,7 @@ function Calendar(_a) {
7886
7808
  }
7887
7809
  ) }),
7888
7810
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(CalendarContentStyled, { children: [
7811
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CalendarTitleStyled, { children: "Calend\xE1rio" }),
7889
7812
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DayPickerWrapperStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
7890
7813
  import_react_day_picker.DayPicker,
7891
7814
  {
@@ -7926,6 +7849,9 @@ var TimePickerStyled = styled("div", {
7926
7849
  maxWidth: "200px",
7927
7850
  borderRadius: "$sm"
7928
7851
  });
7852
+ var TimePickerTitleStyled = styled(import_themes17.Dialog.Title, {
7853
+ display: "none"
7854
+ });
7929
7855
  var TimePickerDialogStyled = styled(import_themes17.Dialog.Content, {
7930
7856
  width: "100%",
7931
7857
  maxWidth: "8.875rem",
@@ -7954,42 +7880,144 @@ function TimePicker({ selected, setSelected }) {
7954
7880
  const [hours, setHours] = (0, import_react4.useState)("00");
7955
7881
  const [minutes, setMinutes] = (0, import_react4.useState)("00");
7956
7882
  const pad = (num) => String(num).padStart(2, "0");
7957
- const handleInputValue = (0, import_react4.useCallback)((time) => {
7958
- setSelected(time);
7959
- }, [setSelected]);
7960
- const handleIncrement = (0, import_react4.useCallback)((type) => {
7961
- if (type === "hours") {
7962
- const next = (parseInt(hours) + 1) % 24;
7963
- setHours(pad(next));
7964
- } else {
7965
- const next = (parseInt(minutes) + 1) % 60;
7966
- setMinutes(pad(next));
7967
- }
7968
- }, [hours, minutes]);
7969
- const handleDecrement = (0, import_react4.useCallback)((type) => {
7970
- if (type === "hours") {
7971
- const prev = (parseInt(hours) - 1 + 24) % 24;
7972
- setHours(pad(prev));
7973
- } else {
7974
- const prev = (parseInt(minutes) - 1 + 60) % 60;
7975
- setMinutes(pad(prev));
7976
- }
7977
- }, [hours, minutes]);
7883
+ const handleInputValue = (0, import_react4.useCallback)(
7884
+ (time) => {
7885
+ setSelected(time);
7886
+ },
7887
+ [setSelected]
7888
+ );
7889
+ const handleIncrement = (0, import_react4.useCallback)(
7890
+ (type) => {
7891
+ if (type === "hours") {
7892
+ const next = (parseInt(hours) + 1) % 24;
7893
+ setHours(pad(next));
7894
+ } else {
7895
+ const next = (parseInt(minutes) + 1) % 60;
7896
+ setMinutes(pad(next));
7897
+ }
7898
+ },
7899
+ [hours, minutes]
7900
+ );
7901
+ const handleDecrement = (0, import_react4.useCallback)(
7902
+ (type) => {
7903
+ if (type === "hours") {
7904
+ const prev = (parseInt(hours) - 1 + 24) % 24;
7905
+ setHours(pad(prev));
7906
+ } else {
7907
+ const prev = (parseInt(minutes) - 1 + 60) % 60;
7908
+ setMinutes(pad(prev));
7909
+ }
7910
+ },
7911
+ [hours, minutes]
7912
+ );
7978
7913
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes17.Dialog.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(TimePickerStyled, { children: [
7979
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes17.Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextField, { value: selected, readOnly: true, type: "text", placeholder: "00:00", typography: "labelSmall", fontWeight: "regular", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "clock", size: "xl" }) }) }) }),
7914
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes17.Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7915
+ TextField,
7916
+ {
7917
+ value: selected,
7918
+ readOnly: true,
7919
+ type: "text",
7920
+ placeholder: "00:00",
7921
+ typography: "labelSmall",
7922
+ fontWeight: "regular",
7923
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "clock", size: "xl" }) })
7924
+ }
7925
+ ) }),
7980
7926
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(TimePickerDialogStyled, { children: [
7927
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TimePickerTitleStyled, { children: "Hor\xE1rio" }),
7981
7928
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(TimerPickerContentStyled, { children: [
7982
- ["hours", "minutes"].map((unit) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Box, { style: { display: "flex", alignItems: "center", flexDirection: "column" }, children: [
7983
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { variant: "text", onClick: () => handleIncrement(unit), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", children: [
7984
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z", fill: "white" }),
7985
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M16.7063 12.2937C16.3157 11.9031 15.6813 11.9031 15.2907 12.2937L10.2907 17.2937C9.9001 17.6843 9.9001 18.3187 10.2907 18.7093C10.6813 19.1 11.3157 19.1 11.7063 18.7093L16.0001 14.4156L20.2938 18.7062C20.6845 19.0968 21.3188 19.0968 21.7095 18.7062C22.1001 18.3156 22.1001 17.6812 21.7095 17.2906L16.7095 12.2906L16.7063 12.2937Z", fill: "#808289" })
7986
- ] }) }),
7987
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextField, { value: unit === "hours" ? hours : minutes, onChange: (e) => handleInputValue(e.target.value), type: "text", placeholder: "00", typography: "labelSmall", fontWeight: "regular", textAlign: "center", style: { padding: "4px" } }),
7988
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { variant: "text", onClick: () => handleDecrement(unit), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", children: [
7989
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z", fill: "white" }),
7990
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M15.2937 19.7063C15.6843 20.0969 16.3187 20.0969 16.7093 19.7063L21.7093 14.7063C22.0999 14.3157 22.0999 13.6813 21.7093 13.2907C21.3187 12.9 20.6843 12.9 20.2937 13.2907L15.9999 17.5844L11.7062 13.2938C11.3155 12.9032 10.6812 12.9032 10.2905 13.2938C9.8999 13.6844 9.8999 14.3188 10.2905 14.7094L15.2905 19.7094L15.2937 19.7063Z", fill: "#808289" })
7991
- ] }) })
7992
- ] }, unit)),
7929
+ ["hours", "minutes"].map((unit) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
7930
+ Box,
7931
+ {
7932
+ style: {
7933
+ display: "flex",
7934
+ alignItems: "center",
7935
+ flexDirection: "column"
7936
+ },
7937
+ children: [
7938
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7939
+ Button,
7940
+ {
7941
+ variant: "text",
7942
+ onClick: () => handleIncrement(unit),
7943
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
7944
+ "svg",
7945
+ {
7946
+ xmlns: "http://www.w3.org/2000/svg",
7947
+ width: "32",
7948
+ height: "32",
7949
+ viewBox: "0 0 32 32",
7950
+ fill: "none",
7951
+ children: [
7952
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7953
+ "path",
7954
+ {
7955
+ d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
7956
+ fill: "white"
7957
+ }
7958
+ ),
7959
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7960
+ "path",
7961
+ {
7962
+ d: "M16.7063 12.2937C16.3157 11.9031 15.6813 11.9031 15.2907 12.2937L10.2907 17.2937C9.9001 17.6843 9.9001 18.3187 10.2907 18.7093C10.6813 19.1 11.3157 19.1 11.7063 18.7093L16.0001 14.4156L20.2938 18.7062C20.6845 19.0968 21.3188 19.0968 21.7095 18.7062C22.1001 18.3156 22.1001 17.6812 21.7095 17.2906L16.7095 12.2906L16.7063 12.2937Z",
7963
+ fill: "#808289"
7964
+ }
7965
+ )
7966
+ ]
7967
+ }
7968
+ )
7969
+ }
7970
+ ),
7971
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7972
+ TextField,
7973
+ {
7974
+ value: unit === "hours" ? hours : minutes,
7975
+ onChange: (e) => handleInputValue(e.target.value),
7976
+ type: "text",
7977
+ placeholder: "00",
7978
+ typography: "labelSmall",
7979
+ fontWeight: "regular",
7980
+ textAlign: "center",
7981
+ style: { padding: "4px" }
7982
+ }
7983
+ ),
7984
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7985
+ Button,
7986
+ {
7987
+ variant: "text",
7988
+ onClick: () => handleDecrement(unit),
7989
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
7990
+ "svg",
7991
+ {
7992
+ xmlns: "http://www.w3.org/2000/svg",
7993
+ width: "32",
7994
+ height: "32",
7995
+ viewBox: "0 0 32 32",
7996
+ fill: "none",
7997
+ children: [
7998
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
7999
+ "path",
8000
+ {
8001
+ d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
8002
+ fill: "white"
8003
+ }
8004
+ ),
8005
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8006
+ "path",
8007
+ {
8008
+ d: "M15.2937 19.7063C15.6843 20.0969 16.3187 20.0969 16.7093 19.7063L21.7093 14.7063C22.0999 14.3157 22.0999 13.6813 21.7093 13.2907C21.3187 12.9 20.6843 12.9 20.2937 13.2907L15.9999 17.5844L11.7062 13.2938C11.3155 12.9032 10.6812 12.9032 10.2905 13.2938C9.8999 13.6844 9.8999 14.3188 10.2905 14.7094L15.2905 19.7094L15.2937 19.7063Z",
8009
+ fill: "#808289"
8010
+ }
8011
+ )
8012
+ ]
8013
+ }
8014
+ )
8015
+ }
8016
+ )
8017
+ ]
8018
+ },
8019
+ unit
8020
+ )),
7993
8021
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { children: ":" })
7994
8022
  ] }),
7995
8023
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TimePickerFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes17.Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
@@ -8623,6 +8651,7 @@ function Section(_a) {
8623
8651
  TimePickerDialogStyled,
8624
8652
  TimePickerFooterStyled,
8625
8653
  TimePickerStyled,
8654
+ TimePickerTitleStyled,
8626
8655
  TimerPickerContentStyled
8627
8656
  });
8628
8657
  /*! Bundled license information: