@lets-events/react 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1011,15 +1011,26 @@ import { fab } from "@fortawesome/free-brands-svg-icons";
1011
1011
  import { jsx } from "react/jsx-runtime";
1012
1012
  library.add(fas, far, fab);
1013
1013
  var Icon = (_a) => {
1014
- var _b = _a, { name, prefix = "fas", size = "1x", color = "currentColor", className = "" } = _b, props = __objRest(_b, ["name", "prefix", "size", "color", "className"]);
1014
+ var _b = _a, { name, prefix = "fas", size = "sm", color = "currentColor", className = "" } = _b, props = __objRest(_b, ["name", "prefix", "size", "color", "className"]);
1015
+ var _a2, _b2;
1016
+ const sizeMap = {
1017
+ "xs": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
1018
+ "sm": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
1019
+ "md": { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" },
1020
+ "xl": { width: "1rem", height: "1rem", fontSize: "1rem" },
1021
+ undefined: { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" }
1022
+ };
1015
1023
  return /* @__PURE__ */ jsx(
1016
1024
  FontAwesomeIcon,
1017
- __spreadValues({
1025
+ __spreadProps(__spreadValues({
1018
1026
  icon: [prefix, name],
1019
- size,
1027
+ style: sizeMap[size],
1020
1028
  color,
1021
1029
  className
1022
- }, props)
1030
+ }, props), {
1031
+ width: (_a2 = sizeMap[size]) == null ? void 0 : _a2.width,
1032
+ height: (_b2 = sizeMap[size]) == null ? void 0 : _b2.height
1033
+ })
1023
1034
  );
1024
1035
  };
1025
1036
  Icon.propTypes = {
@@ -1066,6 +1077,7 @@ var colors = {
1066
1077
  red800: "#75151D",
1067
1078
  red900: "#380A0E",
1068
1079
  red950: "#1E0507",
1080
+ pink100: "#F9DCF3",
1069
1081
  purple50: "#F3EFFB",
1070
1082
  purple100: "#E6DEF7",
1071
1083
  purple200: "#D1C2F0",
@@ -1088,6 +1100,7 @@ var colors = {
1088
1100
  yellow800: "#664D03",
1089
1101
  yellow900: "#332701",
1090
1102
  yellow950: "#191300",
1103
+ orange100: "#FEE0D8",
1091
1104
  dark50: "#FFFFFF",
1092
1105
  dark100: "#F4F4F4",
1093
1106
  dark200: "#EAEBF0",
@@ -1439,7 +1452,11 @@ var BadgeText = styled(Text5, {
1439
1452
  1: { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" },
1440
1453
  2: { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
1441
1454
  3: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
1442
- 4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" }
1455
+ 4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
1456
+ "xs": { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
1457
+ "sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
1458
+ "md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
1459
+ "xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
1443
1460
  }
1444
1461
  },
1445
1462
  defaultVariants: {
@@ -1483,150 +1500,322 @@ var ButtonStyled = styled(ButtonRadix, {
1483
1500
  alignItems: "center",
1484
1501
  justifyContent: "center",
1485
1502
  gap: "$10",
1503
+ "&:hover": {
1504
+ transform: "scale(1.05)"
1505
+ },
1506
+ "&:active": {
1507
+ transform: "scale(0.95)"
1508
+ },
1509
+ "&:disabled": {
1510
+ cursor: "not-allowed",
1511
+ transition: "none"
1512
+ },
1513
+ "&:hover:disabled": {
1514
+ transform: "none"
1515
+ },
1486
1516
  variants: {
1517
+ color: {
1518
+ brand: {},
1519
+ neutral: {},
1520
+ purple: {}
1521
+ },
1487
1522
  variant: {
1488
- simple: {
1523
+ text: {
1489
1524
  backgroundColor: "transparent",
1490
- padding: 0,
1491
- color: "$neutral600",
1492
- border: 0,
1493
1525
  boxShadow: "none",
1526
+ padding: 0,
1527
+ border: 0
1528
+ },
1529
+ contained: {
1494
1530
  "&:hover": {
1495
- transform: "scale(1.05)",
1496
- color: "$brand600"
1531
+ borderWidth: "$2",
1532
+ borderStyle: "solid"
1497
1533
  },
1498
1534
  "&:focus": {
1499
- border: "2px solid $gray500",
1500
- color: "$brand700"
1535
+ border: 0
1501
1536
  },
1502
1537
  "&:active": {
1503
- transform: "scale(0.95)",
1504
- color: "$brand500"
1538
+ borderWidth: "$4",
1539
+ borderStyle: "solid"
1505
1540
  },
1506
- "&:hover:disabled": {
1507
- transform: "none"
1541
+ "&:disabled": {
1542
+ borderWidth: "$1",
1543
+ borderStyle: "solid",
1544
+ boxShadow: "none"
1545
+ }
1546
+ },
1547
+ outlined: {
1548
+ borderWidth: "$1",
1549
+ borderStyle: "solid",
1550
+ "&:hover": {
1551
+ borderWidth: "$2",
1552
+ borderStyle: "solid"
1553
+ },
1554
+ "&:focus": {
1555
+ borderWidth: "$2",
1556
+ borderStyle: "solid"
1557
+ },
1558
+ "&:active": {
1559
+ borderWidth: "$2",
1560
+ borderStyle: "solid"
1508
1561
  },
1509
1562
  "&:disabled": {
1510
- cursor: "not-allowed",
1511
- color: "$dark400",
1512
- transition: "none"
1563
+ borderWidth: "$1",
1564
+ borderStyle: "solid",
1565
+ color: "$neutral400"
1513
1566
  }
1567
+ }
1568
+ },
1569
+ size: {
1570
+ xs: {
1571
+ padding: "$6 $12",
1572
+ fontSize: "$12",
1573
+ lineHeight: "$base"
1514
1574
  },
1515
- primary: {
1516
- backgroundColor: "$brand500",
1575
+ sm: {
1576
+ padding: "$8 $14",
1577
+ fontSize: "$13",
1578
+ lineHeight: "$smaller"
1579
+ },
1580
+ md: {
1581
+ padding: "$12 $16",
1582
+ fontSize: "$14",
1583
+ lineHeight: "$smaller"
1584
+ },
1585
+ lg: {
1586
+ padding: "$13 $20",
1587
+ fontSize: "$18",
1588
+ lineHeight: "$smaller"
1589
+ }
1590
+ },
1591
+ radii: {
1592
+ "full": {
1593
+ borderRadius: "$full"
1594
+ }
1595
+ }
1596
+ },
1597
+ defaultVariants: {
1598
+ variant: "contained",
1599
+ size: "md",
1600
+ color: "brand"
1601
+ },
1602
+ compoundVariants: [
1603
+ {
1604
+ variant: "text",
1605
+ color: "brand",
1606
+ css: {
1607
+ color: "$brand500",
1608
+ "&:hover": { color: "$brand600" },
1609
+ "&:focus": { color: "$brand700" },
1610
+ "&:active": { color: "$brand500" },
1611
+ "&:disabled": { color: "$dark400" }
1612
+ }
1613
+ },
1614
+ {
1615
+ variant: "text",
1616
+ color: "neutral",
1617
+ css: {
1618
+ color: "$neutral600",
1619
+ "&:hover": { color: "$neutral700" },
1620
+ "&:focus": { color: "$neutral800" },
1621
+ "&:active": { color: "$neutral500" },
1622
+ "&:disabled": { color: "$dark400" }
1623
+ }
1624
+ },
1625
+ {
1626
+ variant: "text",
1627
+ color: "purple",
1628
+ css: {
1629
+ color: "$purple500",
1630
+ "&:hover": { color: "$purple600" },
1631
+ "&:focus": { color: "$purple700" },
1632
+ "&:active": { color: "$purple500" },
1633
+ "&:disabled": { color: "$dark400" }
1634
+ }
1635
+ },
1636
+ {
1637
+ variant: "text",
1638
+ color: "green",
1639
+ css: {
1640
+ color: "$green500",
1641
+ "&:hover": { color: "$green600" },
1642
+ "&:focus": { color: "$green700" },
1643
+ "&:active": { color: "$green500" },
1644
+ "&:disabled": { color: "$dark400" }
1645
+ }
1646
+ },
1647
+ {
1648
+ variant: "text",
1649
+ color: "blue",
1650
+ css: {
1651
+ color: "$blue500",
1652
+ "&:hover": { color: "$blue600" },
1653
+ "&:focus": { color: "$blue700" },
1654
+ "&:active": { color: "$blue500" },
1655
+ "&:disabled": { color: "$dark400" }
1656
+ }
1657
+ },
1658
+ {
1659
+ variant: "text",
1660
+ color: "red",
1661
+ css: {
1662
+ color: "$red500",
1663
+ "&:hover": { color: "$red600" },
1664
+ "&:focus": { color: "$red700" },
1665
+ "&:active": { color: "$red500" },
1666
+ "&:disabled": { color: "$dark400" }
1667
+ }
1668
+ },
1669
+ // contained
1670
+ {
1671
+ variant: "contained",
1672
+ color: "brand",
1673
+ css: {
1517
1674
  color: "$grey50",
1675
+ backgroundColor: "$brand500",
1518
1676
  "&:hover": {
1519
- border: "$2 solid $brand700",
1520
- transform: "scale(1.05)",
1677
+ borderColor: "$brand700",
1521
1678
  backgroundColor: "$blue600"
1522
1679
  },
1523
1680
  "&:focus": {
1524
- border: 0,
1525
1681
  backgroundColor: "$blue700"
1526
1682
  },
1527
1683
  "&:active": {
1528
- transform: "scale(0.95)",
1529
- border: "$4 solid $brand300",
1684
+ borderColor: "$brand300",
1530
1685
  backgroundColor: "$blue500"
1531
1686
  },
1532
- "&:hover:disabled": {
1533
- transform: "none"
1534
- },
1535
1687
  "&:disabled": {
1536
- border: "$1 solid $brand50",
1688
+ borderColor: "$brand50",
1537
1689
  backgroundColor: "$brand50",
1538
- boxShadow: "none",
1539
- color: "$neutral400",
1540
- transition: "none"
1690
+ color: "$neutral400"
1541
1691
  }
1542
- },
1543
- purple: {
1692
+ }
1693
+ },
1694
+ {
1695
+ variant: "contained",
1696
+ color: "neutral",
1697
+ css: {
1698
+ backgroundColor: "$neutral600",
1699
+ color: "$grey50",
1700
+ "&:hover": {
1701
+ backgroundColor: "$neutral700",
1702
+ borderColor: "$neutral800"
1703
+ },
1704
+ "&:focus": {
1705
+ backgroundColor: "$neutral800"
1706
+ },
1707
+ "&:active": {
1708
+ backgroundColor: "$neutral500",
1709
+ borderColor: "$neutral400"
1710
+ },
1711
+ "&:disabled": {
1712
+ backgroundColor: "$neutral50",
1713
+ borderColor: "$neutral200",
1714
+ color: "$neutral400"
1715
+ }
1716
+ }
1717
+ },
1718
+ {
1719
+ variant: "contained",
1720
+ color: "purple",
1721
+ css: {
1544
1722
  backgroundColor: "$purple500",
1545
1723
  color: "$grey50",
1546
1724
  "&:hover": {
1547
- transform: "scale(1.05)",
1548
1725
  backgroundColor: "$purple600",
1549
- border: "$2 solid $purple700"
1726
+ borderColor: "$purple700"
1550
1727
  },
1551
1728
  "&:focus": {
1552
- border: "$2 solid $purple700",
1553
- backgroundColor: "$purple600"
1729
+ backgroundColor: "$purple700"
1554
1730
  },
1555
1731
  "&:active": {
1556
- transform: "scale(0.95)",
1557
- border: "$2 solid $purple300",
1732
+ borderColor: "$purple300",
1558
1733
  backgroundColor: "$purple500"
1559
1734
  },
1560
- "&:hover:disabled": {
1561
- transform: "none"
1562
- },
1563
1735
  "&:disabled": {
1564
- border: "$1 solid $purple200",
1736
+ borderColor: "$purple200",
1565
1737
  backgroundColor: "$purple200",
1566
- transition: "none"
1738
+ color: "$neutral400"
1567
1739
  }
1568
- },
1569
- secondary: {
1570
- backgroundColor: "$neutral500",
1571
- border: "$1 solid $neutral300",
1572
- color: "$neutral600",
1740
+ }
1741
+ },
1742
+ // outlined
1743
+ {
1744
+ variant: "outlined",
1745
+ color: "brand",
1746
+ css: {
1747
+ color: "$brand500",
1748
+ borderColor: "$brand300",
1749
+ backgroundColor: "$grey50",
1573
1750
  "&:hover": {
1574
- transform: "scale(1.05)",
1575
- backgroundColor: "$neutral100",
1576
- border: "$1 solid $neutral400"
1751
+ borderColor: "$brand400",
1752
+ backgroundColor: "$brand50"
1577
1753
  },
1578
1754
  "&:focus": {
1579
- backgroundColor: "$neutral200",
1580
- border: 0
1755
+ borderColor: "$brand400",
1756
+ backgroundColor: "$brand50"
1581
1757
  },
1582
1758
  "&:active": {
1583
- transform: "scale(0.95)",
1584
- backgroundColor: "$neutral50",
1585
- border: "$1 solid $neutral300"
1586
- },
1587
- "&:hover:disabled": {
1588
- transform: "none"
1759
+ borderColor: "$brand300",
1760
+ backgroundColor: "$grey50"
1589
1761
  },
1590
1762
  "&:disabled": {
1591
- backgroundColor: "$neutral50",
1592
- border: "$1 solid $neutral200",
1593
- color: "$neutral400",
1594
- transition: "none"
1763
+ borderColor: "$brand200",
1764
+ backgroundColor: "$neutral200"
1595
1765
  }
1596
1766
  }
1597
1767
  },
1598
- size: {
1599
- xs: {
1600
- padding: "$6 $12",
1601
- fontSize: "$12",
1602
- lineHeight: "$base"
1603
- },
1604
- sm: {
1605
- padding: "$8 $14",
1606
- fontSize: "$13",
1607
- lineHeight: "$smaller"
1608
- },
1609
- md: {
1610
- padding: "$12 $16",
1611
- fontSize: "$14",
1612
- lineHeight: "$smaller"
1613
- },
1614
- lg: {
1615
- padding: "$13 $20",
1616
- fontSize: "$18",
1617
- lineHeight: "$smaller"
1768
+ {
1769
+ variant: "outlined",
1770
+ color: "neutral",
1771
+ css: {
1772
+ color: "$neutral600",
1773
+ borderColor: "$neutral300",
1774
+ backgroundColor: "$grey50",
1775
+ "&:hover": {
1776
+ borderColor: "$neutral400",
1777
+ backgroundColor: "$grey100"
1778
+ },
1779
+ "&:focus": {
1780
+ borderColor: "$neutral400",
1781
+ backgroundColor: "$grey100"
1782
+ },
1783
+ "&:active": {
1784
+ borderColor: "$neutral300",
1785
+ backgroundColor: "$grey50"
1786
+ },
1787
+ "&:disabled": {
1788
+ borderColor: "$neutral200",
1789
+ backgroundColor: "$neutral200"
1790
+ }
1618
1791
  }
1619
1792
  },
1620
- radii: {
1621
- "full": {
1622
- borderRadius: "$full"
1793
+ {
1794
+ variant: "outlined",
1795
+ color: "purple",
1796
+ css: {
1797
+ color: "$purple500",
1798
+ borderColor: "$purple300",
1799
+ backgroundColor: "$grey50",
1800
+ "&:hover": {
1801
+ borderColor: "$purple400",
1802
+ backgroundColor: "$purple50"
1803
+ },
1804
+ "&:focus": {
1805
+ borderColor: "$purple400",
1806
+ backgroundColor: "$purple50"
1807
+ },
1808
+ "&:active": {
1809
+ borderColor: "$purple300",
1810
+ backgroundColor: "$grey50"
1811
+ },
1812
+ "&:disabled": {
1813
+ borderColor: "$purple200",
1814
+ backgroundColor: "$neutral200"
1815
+ }
1623
1816
  }
1624
1817
  }
1625
- },
1626
- defaultVariants: {
1627
- variant: "simple",
1628
- size: "md"
1629
- }
1818
+ ]
1630
1819
  });
1631
1820
  function Button(_a) {
1632
1821
  var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
@@ -1643,6 +1832,7 @@ var ButtonItemStyled = styled(Button2, {
1643
1832
  border: 0,
1644
1833
  transition: "all 300ms ease-out",
1645
1834
  cursor: "pointer",
1835
+ boxSizing: "border-box",
1646
1836
  variants: {
1647
1837
  active: {
1648
1838
  true: {}
@@ -1654,41 +1844,66 @@ var ButtonGroupStyled = styled(Flex, {
1654
1844
  borderRadius: "$md",
1655
1845
  overflow: "hidden",
1656
1846
  variants: {
1847
+ color: {
1848
+ brand: {},
1849
+ neutral: {},
1850
+ purple: {},
1851
+ green: {},
1852
+ blue: {},
1853
+ red: {}
1854
+ },
1657
1855
  variant: {
1658
- primary: {
1856
+ text: {
1659
1857
  [`& ${ButtonItemStyled}`]: {
1660
- backgroundColor: "$brand500",
1661
- color: "$grey50",
1662
- "&:hover": { backgroundColor: "$blue600" },
1663
- "&:focus": { backgroundColor: "$blue700" },
1664
- "&:active": { backgroundColor: "$blue400" }
1665
- },
1666
- [`& ${ButtonItemStyled}.active`]: {
1667
- backgroundColor: "$brand700",
1668
- "&:hover": { backgroundColor: "$brand700" },
1669
- "&:focus": { backgroundColor: "$brand700" },
1670
- "&:active": { backgroundColor: "$brand700" }
1858
+ backgroundColor: "transparent",
1859
+ boxShadow: "none",
1860
+ padding: 0,
1861
+ border: 0
1671
1862
  }
1672
1863
  },
1673
- simple: {
1864
+ contained: {
1674
1865
  [`& ${ButtonItemStyled}`]: {
1675
- backgroundColor: "transparent",
1676
- border: "1px solid $dark300",
1677
- color: "$dark600",
1678
- "&:hover": { backgroundColor: "$neutral" }
1679
- },
1680
- [`& ${ButtonItemStyled}.active`]: {
1681
- backgroundColor: "$dark200",
1682
- color: "$dark600",
1683
- "&:hover": { backgroundColor: "$dark200", color: "$dark600" }
1866
+ borderWidth: "$1",
1867
+ borderStyle: "solid",
1868
+ "&:disabled": {
1869
+ boxShadow: "none"
1870
+ }
1871
+ }
1872
+ },
1873
+ outlined: {
1874
+ [`& ${ButtonItemStyled}`]: {
1875
+ borderWidth: "$1",
1876
+ borderStyle: "solid",
1877
+ "&:disabled": {
1878
+ color: "$neutral400"
1879
+ }
1684
1880
  }
1685
1881
  }
1686
1882
  },
1687
1883
  size: {
1884
+ xs: {
1885
+ [`& ${ButtonItemStyled}`]: {
1886
+ padding: "$6 $12",
1887
+ fontSize: "$12",
1888
+ lineHeight: "$base",
1889
+ "&:not(:first-child)": {
1890
+ borderLeft: "none"
1891
+ },
1892
+ "&:first-child": {
1893
+ borderTopLeftRadius: "$xs",
1894
+ borderBottomLeftRadius: "$xs"
1895
+ },
1896
+ "&:last-child": {
1897
+ borderTopRightRadius: "$xs",
1898
+ borderBottomRightRadius: "$xs"
1899
+ }
1900
+ }
1901
+ },
1688
1902
  sm: {
1689
1903
  [`& ${ButtonItemStyled}`]: {
1690
1904
  padding: "$8 $14",
1691
1905
  fontSize: "$13",
1906
+ lineHeight: "$smaller",
1692
1907
  "&:not(:first-child)": {
1693
1908
  borderLeft: "none"
1694
1909
  },
@@ -1706,6 +1921,7 @@ var ButtonGroupStyled = styled(Flex, {
1706
1921
  [`& ${ButtonItemStyled}`]: {
1707
1922
  padding: "$12 $16",
1708
1923
  fontSize: "$14",
1924
+ lineHeight: "$smaller",
1709
1925
  "&:not(:first-child)": {
1710
1926
  borderLeft: "none"
1711
1927
  },
@@ -1723,6 +1939,7 @@ var ButtonGroupStyled = styled(Flex, {
1723
1939
  [`& ${ButtonItemStyled}`]: {
1724
1940
  padding: "$13 $20",
1725
1941
  fontSize: "$18",
1942
+ lineHeight: "$smaller",
1726
1943
  "&:not(:first-child)": {
1727
1944
  borderLeft: "none"
1728
1945
  },
@@ -1738,9 +1955,331 @@ var ButtonGroupStyled = styled(Flex, {
1738
1955
  }
1739
1956
  }
1740
1957
  },
1958
+ compoundVariants: [
1959
+ // text
1960
+ {
1961
+ variant: "text",
1962
+ color: "brand",
1963
+ css: {
1964
+ [`& ${ButtonItemStyled}`]: {
1965
+ color: "$brand500",
1966
+ "&:hover": { color: "$brand600" },
1967
+ "&:focus": { color: "$brand700" },
1968
+ "&:active": { color: "$brand500" },
1969
+ "&:disabled": { color: "$dark400" }
1970
+ },
1971
+ [`& ${ButtonItemStyled}.active`]: {
1972
+ color: "$brand700",
1973
+ "&:hover": { color: "$brand700" },
1974
+ "&:focus": { color: "$brand700" },
1975
+ "&:active": { color: "$brand700" }
1976
+ }
1977
+ }
1978
+ },
1979
+ {
1980
+ variant: "text",
1981
+ color: "neutral",
1982
+ css: {
1983
+ [`& ${ButtonItemStyled}`]: {
1984
+ color: "$neutral600",
1985
+ "&:hover": { color: "$neutral700" },
1986
+ "&:focus": { color: "$neutral800" },
1987
+ "&:active": { color: "$neutral500" },
1988
+ "&:disabled": { color: "$dark400" }
1989
+ },
1990
+ [`& ${ButtonItemStyled}.active`]: {
1991
+ color: "$neutral800",
1992
+ "&:hover": { color: "$neutral800" },
1993
+ "&:focus": { color: "$neutral800" },
1994
+ "&:active": { color: "$neutral800" }
1995
+ }
1996
+ }
1997
+ },
1998
+ {
1999
+ variant: "text",
2000
+ color: "purple",
2001
+ css: {
2002
+ [`& ${ButtonItemStyled}`]: {
2003
+ color: "$purple500",
2004
+ "&:hover": { color: "$purple600" },
2005
+ "&:focus": { color: "$purple700" },
2006
+ "&:active": { color: "$purple500" },
2007
+ "&:disabled": { color: "$dark400" }
2008
+ },
2009
+ [`& ${ButtonItemStyled}.active`]: {
2010
+ color: "$purple700",
2011
+ "&:hover": { color: "$purple700" },
2012
+ "&:focus": { color: "$purple700" },
2013
+ "&:active": { color: "$purple700" }
2014
+ }
2015
+ }
2016
+ },
2017
+ {
2018
+ variant: "text",
2019
+ color: "green",
2020
+ css: {
2021
+ [`& ${ButtonItemStyled}`]: {
2022
+ color: "$green500",
2023
+ "&:hover": { color: "$green600" },
2024
+ "&:focus": { color: "$green700" },
2025
+ "&:active": { color: "$green500" },
2026
+ "&:disabled": { color: "$dark400" }
2027
+ },
2028
+ [`& ${ButtonItemStyled}.active`]: {
2029
+ color: "$green700",
2030
+ "&:hover": { color: "$green700" },
2031
+ "&:focus": { color: "$green700" },
2032
+ "&:active": { color: "$green700" }
2033
+ }
2034
+ }
2035
+ },
2036
+ {
2037
+ variant: "text",
2038
+ color: "blue",
2039
+ css: {
2040
+ [`& ${ButtonItemStyled}`]: {
2041
+ color: "$blue500",
2042
+ "&:hover": { color: "$blue600" },
2043
+ "&:focus": { color: "$blue700" },
2044
+ "&:active": { color: "$blue500" },
2045
+ "&:disabled": { color: "$dark400" }
2046
+ },
2047
+ [`& ${ButtonItemStyled}.active`]: {
2048
+ color: "$blue700",
2049
+ "&:hover": { color: "$blue700" },
2050
+ "&:focus": { color: "$blue700" },
2051
+ "&:active": { color: "$blue700" }
2052
+ }
2053
+ }
2054
+ },
2055
+ {
2056
+ variant: "text",
2057
+ color: "red",
2058
+ css: {
2059
+ [`& ${ButtonItemStyled}`]: {
2060
+ color: "$red500",
2061
+ "&:hover": { color: "$red600" },
2062
+ "&:focus": { color: "$red700" },
2063
+ "&:active": { color: "$red500" },
2064
+ "&:disabled": { color: "$dark400" }
2065
+ },
2066
+ [`& ${ButtonItemStyled}.active`]: {
2067
+ color: "$red700",
2068
+ "&:hover": { color: "$red700" },
2069
+ "&:focus": { color: "$red700" },
2070
+ "&:active": { color: "$red700" }
2071
+ }
2072
+ }
2073
+ },
2074
+ // contained
2075
+ {
2076
+ variant: "contained",
2077
+ color: "brand",
2078
+ css: {
2079
+ [`& ${ButtonItemStyled}`]: {
2080
+ color: "$grey50",
2081
+ backgroundColor: "$brand500",
2082
+ borderColor: "$brand500",
2083
+ "&:hover": {
2084
+ backgroundColor: "$blue600"
2085
+ },
2086
+ "&:focus": {
2087
+ backgroundColor: "$blue700"
2088
+ },
2089
+ "&:active": {
2090
+ backgroundColor: "$blue500"
2091
+ },
2092
+ "&:disabled": {
2093
+ backgroundColor: "$brand50",
2094
+ color: "$neutral400"
2095
+ }
2096
+ },
2097
+ [`& ${ButtonItemStyled}.active`]: {
2098
+ backgroundColor: "$brand700",
2099
+ "&:hover": { backgroundColor: "$brand700" },
2100
+ "&:focus": { backgroundColor: "$brand700" },
2101
+ "&:active": { backgroundColor: "$brand700" }
2102
+ }
2103
+ }
2104
+ },
2105
+ {
2106
+ variant: "contained",
2107
+ color: "neutral",
2108
+ css: {
2109
+ [`& ${ButtonItemStyled}`]: {
2110
+ backgroundColor: "$neutral600",
2111
+ color: "$grey50",
2112
+ "&:hover": {
2113
+ backgroundColor: "$neutral700",
2114
+ borderColor: "$neutral800"
2115
+ },
2116
+ "&:focus": {
2117
+ backgroundColor: "$neutral800"
2118
+ },
2119
+ "&:active": {
2120
+ backgroundColor: "$neutral500",
2121
+ borderColor: "$neutral400"
2122
+ },
2123
+ "&:disabled": {
2124
+ backgroundColor: "$neutral50",
2125
+ borderColor: "$neutral200",
2126
+ color: "$neutral400"
2127
+ }
2128
+ },
2129
+ [`& ${ButtonItemStyled}.active`]: {
2130
+ backgroundColor: "$neutral800",
2131
+ "&:hover": { backgroundColor: "$neutral800" },
2132
+ "&:focus": { backgroundColor: "$neutral800" },
2133
+ "&:active": { backgroundColor: "$neutral800" }
2134
+ }
2135
+ }
2136
+ },
2137
+ {
2138
+ variant: "contained",
2139
+ color: "purple",
2140
+ css: {
2141
+ [`& ${ButtonItemStyled}`]: {
2142
+ backgroundColor: "$purple500",
2143
+ color: "$grey50",
2144
+ "&:hover": {
2145
+ backgroundColor: "$purple600",
2146
+ borderColor: "$purple700"
2147
+ },
2148
+ "&:focus": {
2149
+ backgroundColor: "$purple700"
2150
+ },
2151
+ "&:active": {
2152
+ borderColor: "$purple300",
2153
+ backgroundColor: "$purple500"
2154
+ },
2155
+ "&:disabled": {
2156
+ borderColor: "$purple200",
2157
+ backgroundColor: "$purple200",
2158
+ color: "$neutral400"
2159
+ }
2160
+ },
2161
+ [`& ${ButtonItemStyled}.active`]: {
2162
+ backgroundColor: "$purple700",
2163
+ "&:hover": { backgroundColor: "$purple700" },
2164
+ "&:focus": { backgroundColor: "$purple700" },
2165
+ "&:active": { backgroundColor: "$purple700" }
2166
+ }
2167
+ }
2168
+ },
2169
+ // outlined
2170
+ {
2171
+ variant: "outlined",
2172
+ color: "brand",
2173
+ css: {
2174
+ [`& ${ButtonItemStyled}`]: {
2175
+ color: "$brand500",
2176
+ borderColor: "$brand300",
2177
+ backgroundColor: "$grey50",
2178
+ "&:hover": {
2179
+ borderColor: "$brand400",
2180
+ backgroundColor: "$brand50"
2181
+ },
2182
+ "&:focus": {
2183
+ borderColor: "$brand400",
2184
+ backgroundColor: "$brand50"
2185
+ },
2186
+ "&:active": {
2187
+ borderColor: "$brand300",
2188
+ backgroundColor: "$grey50"
2189
+ },
2190
+ "&:disabled": {
2191
+ borderColor: "$brand200",
2192
+ backgroundColor: "$neutral200",
2193
+ color: "$neutral400"
2194
+ }
2195
+ },
2196
+ [`& ${ButtonItemStyled}.active`]: {
2197
+ color: "$brand700",
2198
+ borderColor: "$brand600",
2199
+ backgroundColor: "$brand50",
2200
+ "&:hover": { backgroundColor: "$brand50", borderColor: "$brand600" },
2201
+ "&:focus": { backgroundColor: "$brand50", borderColor: "$brand600" },
2202
+ "&:active": { backgroundColor: "$brand50", borderColor: "$brand600" }
2203
+ }
2204
+ }
2205
+ },
2206
+ {
2207
+ variant: "outlined",
2208
+ color: "neutral",
2209
+ css: {
2210
+ [`& ${ButtonItemStyled}`]: {
2211
+ color: "$neutral600",
2212
+ borderColor: "$neutral300",
2213
+ backgroundColor: "$grey50",
2214
+ "&:hover": {
2215
+ borderColor: "$neutral400",
2216
+ backgroundColor: "$grey100"
2217
+ },
2218
+ "&:focus": {
2219
+ borderColor: "$neutral400",
2220
+ backgroundColor: "$grey100"
2221
+ },
2222
+ "&:active": {
2223
+ borderColor: "$neutral300",
2224
+ backgroundColor: "$grey50"
2225
+ },
2226
+ "&:disabled": {
2227
+ borderColor: "$neutral200",
2228
+ backgroundColor: "$neutral200",
2229
+ color: "$neutral400"
2230
+ }
2231
+ },
2232
+ [`& ${ButtonItemStyled}.active`]: {
2233
+ color: "$neutral800",
2234
+ borderColor: "$neutral600",
2235
+ backgroundColor: "$grey100",
2236
+ "&:hover": { backgroundColor: "$grey100", borderColor: "$neutral600" },
2237
+ "&:focus": { backgroundColor: "$grey100", borderColor: "$neutral600" },
2238
+ "&:active": { backgroundColor: "$grey100", borderColor: "$neutral600" }
2239
+ }
2240
+ }
2241
+ },
2242
+ {
2243
+ variant: "outlined",
2244
+ color: "purple",
2245
+ css: {
2246
+ [`& ${ButtonItemStyled}`]: {
2247
+ color: "$purple500",
2248
+ borderColor: "$purple300",
2249
+ backgroundColor: "$grey50",
2250
+ "&:hover": {
2251
+ borderColor: "$purple400",
2252
+ backgroundColor: "$purple50"
2253
+ },
2254
+ "&:focus": {
2255
+ borderColor: "$purple400",
2256
+ backgroundColor: "$purple50"
2257
+ },
2258
+ "&:active": {
2259
+ borderColor: "$purple300",
2260
+ backgroundColor: "$grey50"
2261
+ },
2262
+ "&:disabled": {
2263
+ borderColor: "$purple200",
2264
+ backgroundColor: "$neutral200",
2265
+ color: "$neutral400"
2266
+ }
2267
+ },
2268
+ [`& ${ButtonItemStyled}.active`]: {
2269
+ color: "$purple700",
2270
+ borderColor: "$purple600",
2271
+ backgroundColor: "$purple50",
2272
+ "&:hover": { backgroundColor: "$purple50", borderColor: "$purple600" },
2273
+ "&:focus": { backgroundColor: "$purple50", borderColor: "$purple600" },
2274
+ "&:active": { backgroundColor: "$purple50", borderColor: "$purple600" }
2275
+ }
2276
+ }
2277
+ }
2278
+ ],
1741
2279
  defaultVariants: {
1742
- variant: "primary",
1743
- size: "md"
2280
+ variant: "contained",
2281
+ size: "md",
2282
+ color: "brand"
1744
2283
  }
1745
2284
  });
1746
2285
  function ButtonItem(_a) {
@@ -1879,13 +2418,40 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
1879
2418
  cursor: "not-allowed"
1880
2419
  },
1881
2420
  variants: {
1882
- isValid: {
1883
- true: {},
1884
- false: {
2421
+ color: {
2422
+ default: {
2423
+ color: "$dark400",
2424
+ border: "1px solid $dark200",
2425
+ "&:has(input:focus)": {
2426
+ border: "2px solid $brand300"
2427
+ },
2428
+ "&:has(input:disabled)": {
2429
+ backgroundColor: "$dark100",
2430
+ color: "$dark400",
2431
+ border: "1px solid $dark200",
2432
+ cursor: "not-allowed"
2433
+ }
2434
+ },
2435
+ error: {
1885
2436
  border: "1px solid $error400",
1886
2437
  color: "$error400",
1887
- backgroundColor: "$error50"
2438
+ "input::placeholder": {
2439
+ color: "$error400"
2440
+ },
2441
+ "& hast(input:focus)": {
2442
+ border: "2px solid $error400"
2443
+ },
2444
+ "&:has(input:disabled)": {
2445
+ backgroundColor: "$error50",
2446
+ color: "$error300",
2447
+ border: "1px solid $error100",
2448
+ cursor: "not-allowed"
2449
+ }
1888
2450
  }
2451
+ },
2452
+ isValid: {
2453
+ true: {},
2454
+ false: {}
1889
2455
  }
1890
2456
  },
1891
2457
  compoundVariants: [
@@ -1940,15 +2506,17 @@ function TextField(_a) {
1940
2506
  var _b = _a, {
1941
2507
  children,
1942
2508
  isValid,
1943
- name
2509
+ name,
2510
+ color
1944
2511
  } = _b, props = __objRest(_b, [
1945
2512
  "children",
1946
2513
  "isValid",
1947
- "name"
2514
+ "name",
2515
+ "color"
1948
2516
  ]);
1949
- return /* @__PURE__ */ jsxs(TextFieldStyled, __spreadProps(__spreadValues({ isValid, name }, props), { children: [
2517
+ return /* @__PURE__ */ jsxs(TextFieldStyled, __spreadProps(__spreadValues({ color, isValid, name }, props), { children: [
1950
2518
  children,
1951
- isValid && /* @__PURE__ */ jsx5(TextFieldSlot, { position: "flex-end", name, children: /* @__PURE__ */ jsx5(Icon_default, { name: "check" }) })
2519
+ isValid && /* @__PURE__ */ jsx5(TextFieldSlot, { position: "flex-end", name, color, children: /* @__PURE__ */ jsx5(Icon_default, { name: "check" }) })
1952
2520
  ] }));
1953
2521
  }
1954
2522
  function TextFieldSlot(_a) {
@@ -1962,7 +2530,7 @@ function TextFieldSlot(_a) {
1962
2530
  "onClick"
1963
2531
  ]);
1964
2532
  console.log("onclick", onClick);
1965
- return /* @__PURE__ */ jsx5(Fragment, { children: !!onClick ? /* @__PURE__ */ jsx5(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
2533
+ return /* @__PURE__ */ jsx5(Fragment, { children: !!onClick ? /* @__PURE__ */ jsx5(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
1966
2534
  position: "absolute",
1967
2535
  left: position === "flex-end" ? "none" : 15,
1968
2536
  right: position === "flex-start" ? "none" : 15,
@@ -1970,7 +2538,7 @@ function TextFieldSlot(_a) {
1970
2538
  zIndex: 2,
1971
2539
  top: 0,
1972
2540
  cursor: "pointer"
1973
- }, onClick: () => onClick(), children })) : /* @__PURE__ */ jsx5(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
2541
+ }, onClick: () => onClick(), children })) : /* @__PURE__ */ jsx5(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
1974
2542
  float: position === "flex-start" ? "left" : "right",
1975
2543
  order: position === "flex-start" ? 0 : 2,
1976
2544
  marginLeft: position === "flex-start" ? 0 : 15,
@@ -2027,8 +2595,8 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2027
2595
  zIndex: 1
2028
2596
  },
2029
2597
  variants: {
2030
- isValid: {
2031
- true: {
2598
+ color: {
2599
+ success: {
2032
2600
  "label": {
2033
2601
  "&:focus button, &:hover button": {
2034
2602
  boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
@@ -2042,7 +2610,8 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2042
2610
  backgroundColor: "$green500"
2043
2611
  }
2044
2612
  },
2045
- false: {
2613
+ blue: {},
2614
+ error: {
2046
2615
  "label": {
2047
2616
  "&:focus button, &:hover button": {
2048
2617
  boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
@@ -2075,7 +2644,7 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2075
2644
  },
2076
2645
  compoundVariants: [
2077
2646
  {
2078
- isValid: void 0,
2647
+ color: "blue",
2079
2648
  disabled: false,
2080
2649
  css: {
2081
2650
  "label": {
@@ -2092,7 +2661,7 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2092
2661
  }
2093
2662
  },
2094
2663
  {
2095
- isValid: void 0,
2664
+ color: "blue",
2096
2665
  disabled: true,
2097
2666
  css: {
2098
2667
  "label button": {
@@ -2105,7 +2674,7 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2105
2674
  }
2106
2675
  },
2107
2676
  {
2108
- isValid: true,
2677
+ color: "success",
2109
2678
  disabled: true,
2110
2679
  css: {
2111
2680
  "label button": {
@@ -2118,7 +2687,7 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2118
2687
  }
2119
2688
  },
2120
2689
  {
2121
- isValid: false,
2690
+ color: "error",
2122
2691
  disabled: true,
2123
2692
  css: {
2124
2693
  "label button": {
@@ -2130,23 +2699,24 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
2130
2699
  }
2131
2700
  }
2132
2701
  }
2133
- ]
2702
+ ],
2703
+ defaultVariants: {
2704
+ color: "blue",
2705
+ disabled: false
2706
+ }
2134
2707
  });
2135
2708
  function RadioGroup(_a) {
2136
2709
  var _b = _a, {
2137
2710
  children,
2138
- isValid,
2139
2711
  disabled
2140
2712
  } = _b, props = __objRest(_b, [
2141
2713
  "children",
2142
- "isValid",
2143
2714
  "disabled"
2144
2715
  ]);
2145
2716
  return /* @__PURE__ */ jsx6(
2146
2717
  RadioGroupStyled,
2147
2718
  __spreadProps(__spreadValues({
2148
- disabled,
2149
- isValid
2719
+ disabled
2150
2720
  }, props), {
2151
2721
  children
2152
2722
  })
@@ -2212,8 +2782,8 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2212
2782
  zIndex: 1
2213
2783
  },
2214
2784
  variants: {
2215
- isValid: {
2216
- true: {
2785
+ color: {
2786
+ success: {
2217
2787
  "label": {
2218
2788
  "&:focus button, &:hover button": {
2219
2789
  boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
@@ -2227,7 +2797,8 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2227
2797
  backgroundColor: "$green500"
2228
2798
  }
2229
2799
  },
2230
- false: {
2800
+ blue: {},
2801
+ error: {
2231
2802
  "label": {
2232
2803
  "&:focus button, &:hover button": {
2233
2804
  boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
@@ -2260,7 +2831,7 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2260
2831
  },
2261
2832
  compoundVariants: [
2262
2833
  {
2263
- isValid: void 0,
2834
+ color: "blue",
2264
2835
  disabled: false,
2265
2836
  css: {
2266
2837
  "label": {
@@ -2277,7 +2848,7 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2277
2848
  }
2278
2849
  },
2279
2850
  {
2280
- isValid: void 0,
2851
+ color: "blue",
2281
2852
  disabled: true,
2282
2853
  css: {
2283
2854
  "label button": {
@@ -2290,7 +2861,7 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2290
2861
  }
2291
2862
  },
2292
2863
  {
2293
- isValid: true,
2864
+ color: "success",
2294
2865
  disabled: true,
2295
2866
  css: {
2296
2867
  "label button": {
@@ -2303,7 +2874,7 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2303
2874
  }
2304
2875
  },
2305
2876
  {
2306
- isValid: false,
2877
+ color: "error",
2307
2878
  disabled: true,
2308
2879
  css: {
2309
2880
  "label button": {
@@ -2315,7 +2886,11 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
2315
2886
  }
2316
2887
  }
2317
2888
  }
2318
- ]
2889
+ ],
2890
+ defaultVariants: {
2891
+ color: "blue",
2892
+ disabled: false
2893
+ }
2319
2894
  });
2320
2895
  function CheckboxGroup(_a) {
2321
2896
  var _b = _a, {
@@ -2492,9 +3067,120 @@ function DropdownMenuItem(_a) {
2492
3067
  ]);
2493
3068
  return /* @__PURE__ */ jsx9(DropdownMenuItemStyled, __spreadProps(__spreadValues({}, props), { children }));
2494
3069
  }
3070
+
3071
+ // src/components/Badge.tsx
3072
+ import React from "react";
3073
+ import { Badge as BadgeRadix } from "@radix-ui/themes";
3074
+ import { jsx as jsx10 } from "react/jsx-runtime";
3075
+ var BadgeStyled = styled(BadgeRadix, {
3076
+ fontFamily: "$default",
3077
+ borderRadius: "$sm",
3078
+ verticalAlign: "middle",
3079
+ "svg": {
3080
+ marginRight: "10px"
3081
+ },
3082
+ variants: {
3083
+ color: {
3084
+ primary: {
3085
+ backgroundColor: "$brand100",
3086
+ color: "$dark700"
3087
+ },
3088
+ dark: {
3089
+ backgroundColor: "$dark700",
3090
+ color: "$grey50"
3091
+ },
3092
+ light: {
3093
+ backgroundColor: "$neutral200",
3094
+ color: "$dark700"
3095
+ },
3096
+ red: {
3097
+ backgroundColor: "$red100",
3098
+ color: "$dark700"
3099
+ },
3100
+ green: {
3101
+ backgroundColor: "$green100",
3102
+ color: "$dark700"
3103
+ },
3104
+ yellow: {
3105
+ backgroundColor: "$yellow100",
3106
+ color: "$dark700"
3107
+ },
3108
+ orange: {
3109
+ backgroundColor: "$orange100",
3110
+ color: "$dark700"
3111
+ },
3112
+ blue: {
3113
+ backgroundColor: "$blue100",
3114
+ color: "$dark700"
3115
+ },
3116
+ pink: {
3117
+ backgroundColor: "$pink100",
3118
+ color: "$dark700"
3119
+ },
3120
+ purple: {
3121
+ backgroundColor: "$purple100",
3122
+ color: "$dark700"
3123
+ },
3124
+ grey: {
3125
+ backgroundColor: "$grey200",
3126
+ color: "$dark700"
3127
+ },
3128
+ disable: {
3129
+ backgroundColor: "$neutral200",
3130
+ color: "$grey500"
3131
+ }
3132
+ },
3133
+ size: {
3134
+ xs: {
3135
+ padding: "$4 $6",
3136
+ fontSize: "$10",
3137
+ borderRadius: "$2xs",
3138
+ lineHeight: "$smaller"
3139
+ },
3140
+ sm: {
3141
+ padding: "$4 $8",
3142
+ fontSize: "$12",
3143
+ borderRadius: "$xs",
3144
+ lineHeight: "$smaller"
3145
+ },
3146
+ md: {
3147
+ padding: "$8 $10",
3148
+ fontSize: "$14",
3149
+ borderRadius: "$sm",
3150
+ lineHeight: "$smaller"
3151
+ },
3152
+ xl: {
3153
+ padding: "$12 $12",
3154
+ fontSize: "$16",
3155
+ borderRadius: "$sm",
3156
+ lineHeight: "$smaller"
3157
+ }
3158
+ },
3159
+ radii: {
3160
+ "full": {
3161
+ borderRadius: "$full"
3162
+ }
3163
+ }
3164
+ },
3165
+ defaultVariants: {
3166
+ size: "md",
3167
+ color: "primary"
3168
+ }
3169
+ });
3170
+ function Badge(_a) {
3171
+ var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
3172
+ return /* @__PURE__ */ jsx10(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: React.Children.map(children, (child) => {
3173
+ if (React.isValidElement(child)) {
3174
+ return React.cloneElement(child, { size: props.size });
3175
+ }
3176
+ return child;
3177
+ }) }));
3178
+ }
2495
3179
  export {
2496
3180
  Avatar,
2497
3181
  AvatarStyled,
3182
+ Badge,
3183
+ BadgeStyled,
2498
3184
  BadgeText,
2499
3185
  BodyText,
2500
3186
  Box,