@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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +409 -22
- package/dist/index.d.ts +409 -22
- package/dist/index.js +837 -149
- package/dist/index.mjs +835 -149
- package/package.json +1 -1
- package/src/components/Badge.tsx +121 -0
- package/src/components/BadgeText.tsx +5 -0
- package/src/components/Button.tsx +266 -89
- package/src/components/ButtonGroup.tsx +378 -28
- package/src/components/CheckboxGroup.tsx +14 -9
- package/src/components/Icon.tsx +15 -4
- package/src/components/RadioGroup.tsx +14 -12
- package/src/components/TextField.tsx +40 -9
- package/src/index.tsx +1 -0
package/dist/index.js
CHANGED
|
@@ -1012,6 +1012,8 @@ var index_exports = {};
|
|
|
1012
1012
|
__export(index_exports, {
|
|
1013
1013
|
Avatar: () => Avatar,
|
|
1014
1014
|
AvatarStyled: () => AvatarStyled,
|
|
1015
|
+
Badge: () => Badge,
|
|
1016
|
+
BadgeStyled: () => BadgeStyled,
|
|
1015
1017
|
BadgeText: () => BadgeText,
|
|
1016
1018
|
BodyText: () => BodyText,
|
|
1017
1019
|
Box: () => Box,
|
|
@@ -1057,15 +1059,26 @@ var import_prop_types = __toESM(require_prop_types());
|
|
|
1057
1059
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
1058
1060
|
import_fontawesome_svg_core.library.add(import_free_solid_svg_icons.fas, import_free_regular_svg_icons.far, import_free_brands_svg_icons.fab);
|
|
1059
1061
|
var Icon = (_a) => {
|
|
1060
|
-
var _b = _a, { name, prefix = "fas", size = "
|
|
1062
|
+
var _b = _a, { name, prefix = "fas", size = "sm", color = "currentColor", className = "" } = _b, props = __objRest(_b, ["name", "prefix", "size", "color", "className"]);
|
|
1063
|
+
var _a2, _b2;
|
|
1064
|
+
const sizeMap = {
|
|
1065
|
+
"xs": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
|
|
1066
|
+
"sm": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
|
|
1067
|
+
"md": { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" },
|
|
1068
|
+
"xl": { width: "1rem", height: "1rem", fontSize: "1rem" },
|
|
1069
|
+
undefined: { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" }
|
|
1070
|
+
};
|
|
1061
1071
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1062
1072
|
import_react_fontawesome.FontAwesomeIcon,
|
|
1063
|
-
__spreadValues({
|
|
1073
|
+
__spreadProps(__spreadValues({
|
|
1064
1074
|
icon: [prefix, name],
|
|
1065
|
-
size,
|
|
1075
|
+
style: sizeMap[size],
|
|
1066
1076
|
color,
|
|
1067
1077
|
className
|
|
1068
|
-
}, props)
|
|
1078
|
+
}, props), {
|
|
1079
|
+
width: (_a2 = sizeMap[size]) == null ? void 0 : _a2.width,
|
|
1080
|
+
height: (_b2 = sizeMap[size]) == null ? void 0 : _b2.height
|
|
1081
|
+
})
|
|
1069
1082
|
);
|
|
1070
1083
|
};
|
|
1071
1084
|
Icon.propTypes = {
|
|
@@ -1112,6 +1125,7 @@ var colors = {
|
|
|
1112
1125
|
red800: "#75151D",
|
|
1113
1126
|
red900: "#380A0E",
|
|
1114
1127
|
red950: "#1E0507",
|
|
1128
|
+
pink100: "#F9DCF3",
|
|
1115
1129
|
purple50: "#F3EFFB",
|
|
1116
1130
|
purple100: "#E6DEF7",
|
|
1117
1131
|
purple200: "#D1C2F0",
|
|
@@ -1134,6 +1148,7 @@ var colors = {
|
|
|
1134
1148
|
yellow800: "#664D03",
|
|
1135
1149
|
yellow900: "#332701",
|
|
1136
1150
|
yellow950: "#191300",
|
|
1151
|
+
orange100: "#FEE0D8",
|
|
1137
1152
|
dark50: "#FFFFFF",
|
|
1138
1153
|
dark100: "#F4F4F4",
|
|
1139
1154
|
dark200: "#EAEBF0",
|
|
@@ -1485,7 +1500,11 @@ var BadgeText = styled(import_themes6.Text, {
|
|
|
1485
1500
|
1: { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" },
|
|
1486
1501
|
2: { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1487
1502
|
3: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1488
|
-
4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" }
|
|
1503
|
+
4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1504
|
+
"xs": { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1505
|
+
"sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1506
|
+
"md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1507
|
+
"xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
|
|
1489
1508
|
}
|
|
1490
1509
|
},
|
|
1491
1510
|
defaultVariants: {
|
|
@@ -1529,150 +1548,322 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1529
1548
|
alignItems: "center",
|
|
1530
1549
|
justifyContent: "center",
|
|
1531
1550
|
gap: "$10",
|
|
1551
|
+
"&:hover": {
|
|
1552
|
+
transform: "scale(1.05)"
|
|
1553
|
+
},
|
|
1554
|
+
"&:active": {
|
|
1555
|
+
transform: "scale(0.95)"
|
|
1556
|
+
},
|
|
1557
|
+
"&:disabled": {
|
|
1558
|
+
cursor: "not-allowed",
|
|
1559
|
+
transition: "none"
|
|
1560
|
+
},
|
|
1561
|
+
"&:hover:disabled": {
|
|
1562
|
+
transform: "none"
|
|
1563
|
+
},
|
|
1532
1564
|
variants: {
|
|
1565
|
+
color: {
|
|
1566
|
+
brand: {},
|
|
1567
|
+
neutral: {},
|
|
1568
|
+
purple: {}
|
|
1569
|
+
},
|
|
1533
1570
|
variant: {
|
|
1534
|
-
|
|
1571
|
+
text: {
|
|
1535
1572
|
backgroundColor: "transparent",
|
|
1536
|
-
padding: 0,
|
|
1537
|
-
color: "$neutral600",
|
|
1538
|
-
border: 0,
|
|
1539
1573
|
boxShadow: "none",
|
|
1574
|
+
padding: 0,
|
|
1575
|
+
border: 0
|
|
1576
|
+
},
|
|
1577
|
+
contained: {
|
|
1540
1578
|
"&:hover": {
|
|
1541
|
-
|
|
1542
|
-
|
|
1579
|
+
borderWidth: "$2",
|
|
1580
|
+
borderStyle: "solid"
|
|
1543
1581
|
},
|
|
1544
1582
|
"&:focus": {
|
|
1545
|
-
border:
|
|
1546
|
-
color: "$brand700"
|
|
1583
|
+
border: 0
|
|
1547
1584
|
},
|
|
1548
1585
|
"&:active": {
|
|
1549
|
-
|
|
1550
|
-
|
|
1586
|
+
borderWidth: "$4",
|
|
1587
|
+
borderStyle: "solid"
|
|
1551
1588
|
},
|
|
1552
|
-
"&:
|
|
1553
|
-
|
|
1589
|
+
"&:disabled": {
|
|
1590
|
+
borderWidth: "$1",
|
|
1591
|
+
borderStyle: "solid",
|
|
1592
|
+
boxShadow: "none"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
outlined: {
|
|
1596
|
+
borderWidth: "$1",
|
|
1597
|
+
borderStyle: "solid",
|
|
1598
|
+
"&:hover": {
|
|
1599
|
+
borderWidth: "$2",
|
|
1600
|
+
borderStyle: "solid"
|
|
1601
|
+
},
|
|
1602
|
+
"&:focus": {
|
|
1603
|
+
borderWidth: "$2",
|
|
1604
|
+
borderStyle: "solid"
|
|
1605
|
+
},
|
|
1606
|
+
"&:active": {
|
|
1607
|
+
borderWidth: "$2",
|
|
1608
|
+
borderStyle: "solid"
|
|
1554
1609
|
},
|
|
1555
1610
|
"&:disabled": {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1611
|
+
borderWidth: "$1",
|
|
1612
|
+
borderStyle: "solid",
|
|
1613
|
+
color: "$neutral400"
|
|
1559
1614
|
}
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
size: {
|
|
1618
|
+
xs: {
|
|
1619
|
+
padding: "$6 $12",
|
|
1620
|
+
fontSize: "$12",
|
|
1621
|
+
lineHeight: "$base"
|
|
1560
1622
|
},
|
|
1561
|
-
|
|
1562
|
-
|
|
1623
|
+
sm: {
|
|
1624
|
+
padding: "$8 $14",
|
|
1625
|
+
fontSize: "$13",
|
|
1626
|
+
lineHeight: "$smaller"
|
|
1627
|
+
},
|
|
1628
|
+
md: {
|
|
1629
|
+
padding: "$12 $16",
|
|
1630
|
+
fontSize: "$14",
|
|
1631
|
+
lineHeight: "$smaller"
|
|
1632
|
+
},
|
|
1633
|
+
lg: {
|
|
1634
|
+
padding: "$13 $20",
|
|
1635
|
+
fontSize: "$18",
|
|
1636
|
+
lineHeight: "$smaller"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
radii: {
|
|
1640
|
+
"full": {
|
|
1641
|
+
borderRadius: "$full"
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
defaultVariants: {
|
|
1646
|
+
variant: "contained",
|
|
1647
|
+
size: "md",
|
|
1648
|
+
color: "brand"
|
|
1649
|
+
},
|
|
1650
|
+
compoundVariants: [
|
|
1651
|
+
{
|
|
1652
|
+
variant: "text",
|
|
1653
|
+
color: "brand",
|
|
1654
|
+
css: {
|
|
1655
|
+
color: "$brand500",
|
|
1656
|
+
"&:hover": { color: "$brand600" },
|
|
1657
|
+
"&:focus": { color: "$brand700" },
|
|
1658
|
+
"&:active": { color: "$brand500" },
|
|
1659
|
+
"&:disabled": { color: "$dark400" }
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
variant: "text",
|
|
1664
|
+
color: "neutral",
|
|
1665
|
+
css: {
|
|
1666
|
+
color: "$neutral600",
|
|
1667
|
+
"&:hover": { color: "$neutral700" },
|
|
1668
|
+
"&:focus": { color: "$neutral800" },
|
|
1669
|
+
"&:active": { color: "$neutral500" },
|
|
1670
|
+
"&:disabled": { color: "$dark400" }
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
variant: "text",
|
|
1675
|
+
color: "purple",
|
|
1676
|
+
css: {
|
|
1677
|
+
color: "$purple500",
|
|
1678
|
+
"&:hover": { color: "$purple600" },
|
|
1679
|
+
"&:focus": { color: "$purple700" },
|
|
1680
|
+
"&:active": { color: "$purple500" },
|
|
1681
|
+
"&:disabled": { color: "$dark400" }
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
variant: "text",
|
|
1686
|
+
color: "green",
|
|
1687
|
+
css: {
|
|
1688
|
+
color: "$green500",
|
|
1689
|
+
"&:hover": { color: "$green600" },
|
|
1690
|
+
"&:focus": { color: "$green700" },
|
|
1691
|
+
"&:active": { color: "$green500" },
|
|
1692
|
+
"&:disabled": { color: "$dark400" }
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
variant: "text",
|
|
1697
|
+
color: "blue",
|
|
1698
|
+
css: {
|
|
1699
|
+
color: "$blue500",
|
|
1700
|
+
"&:hover": { color: "$blue600" },
|
|
1701
|
+
"&:focus": { color: "$blue700" },
|
|
1702
|
+
"&:active": { color: "$blue500" },
|
|
1703
|
+
"&:disabled": { color: "$dark400" }
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
variant: "text",
|
|
1708
|
+
color: "red",
|
|
1709
|
+
css: {
|
|
1710
|
+
color: "$red500",
|
|
1711
|
+
"&:hover": { color: "$red600" },
|
|
1712
|
+
"&:focus": { color: "$red700" },
|
|
1713
|
+
"&:active": { color: "$red500" },
|
|
1714
|
+
"&:disabled": { color: "$dark400" }
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
// contained
|
|
1718
|
+
{
|
|
1719
|
+
variant: "contained",
|
|
1720
|
+
color: "brand",
|
|
1721
|
+
css: {
|
|
1563
1722
|
color: "$grey50",
|
|
1723
|
+
backgroundColor: "$brand500",
|
|
1564
1724
|
"&:hover": {
|
|
1565
|
-
|
|
1566
|
-
transform: "scale(1.05)",
|
|
1725
|
+
borderColor: "$brand700",
|
|
1567
1726
|
backgroundColor: "$blue600"
|
|
1568
1727
|
},
|
|
1569
1728
|
"&:focus": {
|
|
1570
|
-
border: 0,
|
|
1571
1729
|
backgroundColor: "$blue700"
|
|
1572
1730
|
},
|
|
1573
1731
|
"&:active": {
|
|
1574
|
-
|
|
1575
|
-
border: "$4 solid $brand300",
|
|
1732
|
+
borderColor: "$brand300",
|
|
1576
1733
|
backgroundColor: "$blue500"
|
|
1577
1734
|
},
|
|
1578
|
-
"&:hover:disabled": {
|
|
1579
|
-
transform: "none"
|
|
1580
|
-
},
|
|
1581
1735
|
"&:disabled": {
|
|
1582
|
-
|
|
1736
|
+
borderColor: "$brand50",
|
|
1583
1737
|
backgroundColor: "$brand50",
|
|
1584
|
-
|
|
1585
|
-
color: "$neutral400",
|
|
1586
|
-
transition: "none"
|
|
1738
|
+
color: "$neutral400"
|
|
1587
1739
|
}
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
variant: "contained",
|
|
1744
|
+
color: "neutral",
|
|
1745
|
+
css: {
|
|
1746
|
+
backgroundColor: "$neutral600",
|
|
1747
|
+
color: "$grey50",
|
|
1748
|
+
"&:hover": {
|
|
1749
|
+
backgroundColor: "$neutral700",
|
|
1750
|
+
borderColor: "$neutral800"
|
|
1751
|
+
},
|
|
1752
|
+
"&:focus": {
|
|
1753
|
+
backgroundColor: "$neutral800"
|
|
1754
|
+
},
|
|
1755
|
+
"&:active": {
|
|
1756
|
+
backgroundColor: "$neutral500",
|
|
1757
|
+
borderColor: "$neutral400"
|
|
1758
|
+
},
|
|
1759
|
+
"&:disabled": {
|
|
1760
|
+
backgroundColor: "$neutral50",
|
|
1761
|
+
borderColor: "$neutral200",
|
|
1762
|
+
color: "$neutral400"
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
variant: "contained",
|
|
1768
|
+
color: "purple",
|
|
1769
|
+
css: {
|
|
1590
1770
|
backgroundColor: "$purple500",
|
|
1591
1771
|
color: "$grey50",
|
|
1592
1772
|
"&:hover": {
|
|
1593
|
-
transform: "scale(1.05)",
|
|
1594
1773
|
backgroundColor: "$purple600",
|
|
1595
|
-
|
|
1774
|
+
borderColor: "$purple700"
|
|
1596
1775
|
},
|
|
1597
1776
|
"&:focus": {
|
|
1598
|
-
|
|
1599
|
-
backgroundColor: "$purple600"
|
|
1777
|
+
backgroundColor: "$purple700"
|
|
1600
1778
|
},
|
|
1601
1779
|
"&:active": {
|
|
1602
|
-
|
|
1603
|
-
border: "$2 solid $purple300",
|
|
1780
|
+
borderColor: "$purple300",
|
|
1604
1781
|
backgroundColor: "$purple500"
|
|
1605
1782
|
},
|
|
1606
|
-
"&:hover:disabled": {
|
|
1607
|
-
transform: "none"
|
|
1608
|
-
},
|
|
1609
1783
|
"&:disabled": {
|
|
1610
|
-
|
|
1784
|
+
borderColor: "$purple200",
|
|
1611
1785
|
backgroundColor: "$purple200",
|
|
1612
|
-
|
|
1786
|
+
color: "$neutral400"
|
|
1613
1787
|
}
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
// outlined
|
|
1791
|
+
{
|
|
1792
|
+
variant: "outlined",
|
|
1793
|
+
color: "brand",
|
|
1794
|
+
css: {
|
|
1795
|
+
color: "$brand500",
|
|
1796
|
+
borderColor: "$brand300",
|
|
1797
|
+
backgroundColor: "$grey50",
|
|
1619
1798
|
"&:hover": {
|
|
1620
|
-
|
|
1621
|
-
backgroundColor: "$
|
|
1622
|
-
border: "$1 solid $neutral400"
|
|
1799
|
+
borderColor: "$brand400",
|
|
1800
|
+
backgroundColor: "$brand50"
|
|
1623
1801
|
},
|
|
1624
1802
|
"&:focus": {
|
|
1625
|
-
|
|
1626
|
-
|
|
1803
|
+
borderColor: "$brand400",
|
|
1804
|
+
backgroundColor: "$brand50"
|
|
1627
1805
|
},
|
|
1628
1806
|
"&:active": {
|
|
1629
|
-
|
|
1630
|
-
backgroundColor: "$
|
|
1631
|
-
border: "$1 solid $neutral300"
|
|
1632
|
-
},
|
|
1633
|
-
"&:hover:disabled": {
|
|
1634
|
-
transform: "none"
|
|
1807
|
+
borderColor: "$brand300",
|
|
1808
|
+
backgroundColor: "$grey50"
|
|
1635
1809
|
},
|
|
1636
1810
|
"&:disabled": {
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
color: "$neutral400",
|
|
1640
|
-
transition: "none"
|
|
1811
|
+
borderColor: "$brand200",
|
|
1812
|
+
backgroundColor: "$neutral200"
|
|
1641
1813
|
}
|
|
1642
1814
|
}
|
|
1643
1815
|
},
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1816
|
+
{
|
|
1817
|
+
variant: "outlined",
|
|
1818
|
+
color: "neutral",
|
|
1819
|
+
css: {
|
|
1820
|
+
color: "$neutral600",
|
|
1821
|
+
borderColor: "$neutral300",
|
|
1822
|
+
backgroundColor: "$grey50",
|
|
1823
|
+
"&:hover": {
|
|
1824
|
+
borderColor: "$neutral400",
|
|
1825
|
+
backgroundColor: "$grey100"
|
|
1826
|
+
},
|
|
1827
|
+
"&:focus": {
|
|
1828
|
+
borderColor: "$neutral400",
|
|
1829
|
+
backgroundColor: "$grey100"
|
|
1830
|
+
},
|
|
1831
|
+
"&:active": {
|
|
1832
|
+
borderColor: "$neutral300",
|
|
1833
|
+
backgroundColor: "$grey50"
|
|
1834
|
+
},
|
|
1835
|
+
"&:disabled": {
|
|
1836
|
+
borderColor: "$neutral200",
|
|
1837
|
+
backgroundColor: "$neutral200"
|
|
1838
|
+
}
|
|
1664
1839
|
}
|
|
1665
1840
|
},
|
|
1666
|
-
|
|
1667
|
-
"
|
|
1668
|
-
|
|
1841
|
+
{
|
|
1842
|
+
variant: "outlined",
|
|
1843
|
+
color: "purple",
|
|
1844
|
+
css: {
|
|
1845
|
+
color: "$purple500",
|
|
1846
|
+
borderColor: "$purple300",
|
|
1847
|
+
backgroundColor: "$grey50",
|
|
1848
|
+
"&:hover": {
|
|
1849
|
+
borderColor: "$purple400",
|
|
1850
|
+
backgroundColor: "$purple50"
|
|
1851
|
+
},
|
|
1852
|
+
"&:focus": {
|
|
1853
|
+
borderColor: "$purple400",
|
|
1854
|
+
backgroundColor: "$purple50"
|
|
1855
|
+
},
|
|
1856
|
+
"&:active": {
|
|
1857
|
+
borderColor: "$purple300",
|
|
1858
|
+
backgroundColor: "$grey50"
|
|
1859
|
+
},
|
|
1860
|
+
"&:disabled": {
|
|
1861
|
+
borderColor: "$purple200",
|
|
1862
|
+
backgroundColor: "$neutral200"
|
|
1863
|
+
}
|
|
1669
1864
|
}
|
|
1670
1865
|
}
|
|
1671
|
-
|
|
1672
|
-
defaultVariants: {
|
|
1673
|
-
variant: "simple",
|
|
1674
|
-
size: "md"
|
|
1675
|
-
}
|
|
1866
|
+
]
|
|
1676
1867
|
});
|
|
1677
1868
|
function Button(_a) {
|
|
1678
1869
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
@@ -1689,6 +1880,7 @@ var ButtonItemStyled = styled(import_themes9.Button, {
|
|
|
1689
1880
|
border: 0,
|
|
1690
1881
|
transition: "all 300ms ease-out",
|
|
1691
1882
|
cursor: "pointer",
|
|
1883
|
+
boxSizing: "border-box",
|
|
1692
1884
|
variants: {
|
|
1693
1885
|
active: {
|
|
1694
1886
|
true: {}
|
|
@@ -1700,41 +1892,66 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
1700
1892
|
borderRadius: "$md",
|
|
1701
1893
|
overflow: "hidden",
|
|
1702
1894
|
variants: {
|
|
1895
|
+
color: {
|
|
1896
|
+
brand: {},
|
|
1897
|
+
neutral: {},
|
|
1898
|
+
purple: {},
|
|
1899
|
+
green: {},
|
|
1900
|
+
blue: {},
|
|
1901
|
+
red: {}
|
|
1902
|
+
},
|
|
1703
1903
|
variant: {
|
|
1704
|
-
|
|
1904
|
+
text: {
|
|
1705
1905
|
[`& ${ButtonItemStyled}`]: {
|
|
1706
|
-
backgroundColor: "
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
"&:active": { backgroundColor: "$blue400" }
|
|
1711
|
-
},
|
|
1712
|
-
[`& ${ButtonItemStyled}.active`]: {
|
|
1713
|
-
backgroundColor: "$brand700",
|
|
1714
|
-
"&:hover": { backgroundColor: "$brand700" },
|
|
1715
|
-
"&:focus": { backgroundColor: "$brand700" },
|
|
1716
|
-
"&:active": { backgroundColor: "$brand700" }
|
|
1906
|
+
backgroundColor: "transparent",
|
|
1907
|
+
boxShadow: "none",
|
|
1908
|
+
padding: 0,
|
|
1909
|
+
border: 0
|
|
1717
1910
|
}
|
|
1718
1911
|
},
|
|
1719
|
-
|
|
1912
|
+
contained: {
|
|
1720
1913
|
[`& ${ButtonItemStyled}`]: {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1914
|
+
borderWidth: "$1",
|
|
1915
|
+
borderStyle: "solid",
|
|
1916
|
+
"&:disabled": {
|
|
1917
|
+
boxShadow: "none"
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
outlined: {
|
|
1922
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1923
|
+
borderWidth: "$1",
|
|
1924
|
+
borderStyle: "solid",
|
|
1925
|
+
"&:disabled": {
|
|
1926
|
+
color: "$neutral400"
|
|
1927
|
+
}
|
|
1730
1928
|
}
|
|
1731
1929
|
}
|
|
1732
1930
|
},
|
|
1733
1931
|
size: {
|
|
1932
|
+
xs: {
|
|
1933
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1934
|
+
padding: "$6 $12",
|
|
1935
|
+
fontSize: "$12",
|
|
1936
|
+
lineHeight: "$base",
|
|
1937
|
+
"&:not(:first-child)": {
|
|
1938
|
+
borderLeft: "none"
|
|
1939
|
+
},
|
|
1940
|
+
"&:first-child": {
|
|
1941
|
+
borderTopLeftRadius: "$xs",
|
|
1942
|
+
borderBottomLeftRadius: "$xs"
|
|
1943
|
+
},
|
|
1944
|
+
"&:last-child": {
|
|
1945
|
+
borderTopRightRadius: "$xs",
|
|
1946
|
+
borderBottomRightRadius: "$xs"
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1734
1950
|
sm: {
|
|
1735
1951
|
[`& ${ButtonItemStyled}`]: {
|
|
1736
1952
|
padding: "$8 $14",
|
|
1737
1953
|
fontSize: "$13",
|
|
1954
|
+
lineHeight: "$smaller",
|
|
1738
1955
|
"&:not(:first-child)": {
|
|
1739
1956
|
borderLeft: "none"
|
|
1740
1957
|
},
|
|
@@ -1752,6 +1969,7 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
1752
1969
|
[`& ${ButtonItemStyled}`]: {
|
|
1753
1970
|
padding: "$12 $16",
|
|
1754
1971
|
fontSize: "$14",
|
|
1972
|
+
lineHeight: "$smaller",
|
|
1755
1973
|
"&:not(:first-child)": {
|
|
1756
1974
|
borderLeft: "none"
|
|
1757
1975
|
},
|
|
@@ -1769,6 +1987,7 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
1769
1987
|
[`& ${ButtonItemStyled}`]: {
|
|
1770
1988
|
padding: "$13 $20",
|
|
1771
1989
|
fontSize: "$18",
|
|
1990
|
+
lineHeight: "$smaller",
|
|
1772
1991
|
"&:not(:first-child)": {
|
|
1773
1992
|
borderLeft: "none"
|
|
1774
1993
|
},
|
|
@@ -1784,9 +2003,331 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
1784
2003
|
}
|
|
1785
2004
|
}
|
|
1786
2005
|
},
|
|
2006
|
+
compoundVariants: [
|
|
2007
|
+
// text
|
|
2008
|
+
{
|
|
2009
|
+
variant: "text",
|
|
2010
|
+
color: "brand",
|
|
2011
|
+
css: {
|
|
2012
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2013
|
+
color: "$brand500",
|
|
2014
|
+
"&:hover": { color: "$brand600" },
|
|
2015
|
+
"&:focus": { color: "$brand700" },
|
|
2016
|
+
"&:active": { color: "$brand500" },
|
|
2017
|
+
"&:disabled": { color: "$dark400" }
|
|
2018
|
+
},
|
|
2019
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2020
|
+
color: "$brand700",
|
|
2021
|
+
"&:hover": { color: "$brand700" },
|
|
2022
|
+
"&:focus": { color: "$brand700" },
|
|
2023
|
+
"&:active": { color: "$brand700" }
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
variant: "text",
|
|
2029
|
+
color: "neutral",
|
|
2030
|
+
css: {
|
|
2031
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2032
|
+
color: "$neutral600",
|
|
2033
|
+
"&:hover": { color: "$neutral700" },
|
|
2034
|
+
"&:focus": { color: "$neutral800" },
|
|
2035
|
+
"&:active": { color: "$neutral500" },
|
|
2036
|
+
"&:disabled": { color: "$dark400" }
|
|
2037
|
+
},
|
|
2038
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2039
|
+
color: "$neutral800",
|
|
2040
|
+
"&:hover": { color: "$neutral800" },
|
|
2041
|
+
"&:focus": { color: "$neutral800" },
|
|
2042
|
+
"&:active": { color: "$neutral800" }
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
variant: "text",
|
|
2048
|
+
color: "purple",
|
|
2049
|
+
css: {
|
|
2050
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2051
|
+
color: "$purple500",
|
|
2052
|
+
"&:hover": { color: "$purple600" },
|
|
2053
|
+
"&:focus": { color: "$purple700" },
|
|
2054
|
+
"&:active": { color: "$purple500" },
|
|
2055
|
+
"&:disabled": { color: "$dark400" }
|
|
2056
|
+
},
|
|
2057
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2058
|
+
color: "$purple700",
|
|
2059
|
+
"&:hover": { color: "$purple700" },
|
|
2060
|
+
"&:focus": { color: "$purple700" },
|
|
2061
|
+
"&:active": { color: "$purple700" }
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
variant: "text",
|
|
2067
|
+
color: "green",
|
|
2068
|
+
css: {
|
|
2069
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2070
|
+
color: "$green500",
|
|
2071
|
+
"&:hover": { color: "$green600" },
|
|
2072
|
+
"&:focus": { color: "$green700" },
|
|
2073
|
+
"&:active": { color: "$green500" },
|
|
2074
|
+
"&:disabled": { color: "$dark400" }
|
|
2075
|
+
},
|
|
2076
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2077
|
+
color: "$green700",
|
|
2078
|
+
"&:hover": { color: "$green700" },
|
|
2079
|
+
"&:focus": { color: "$green700" },
|
|
2080
|
+
"&:active": { color: "$green700" }
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
variant: "text",
|
|
2086
|
+
color: "blue",
|
|
2087
|
+
css: {
|
|
2088
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2089
|
+
color: "$blue500",
|
|
2090
|
+
"&:hover": { color: "$blue600" },
|
|
2091
|
+
"&:focus": { color: "$blue700" },
|
|
2092
|
+
"&:active": { color: "$blue500" },
|
|
2093
|
+
"&:disabled": { color: "$dark400" }
|
|
2094
|
+
},
|
|
2095
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2096
|
+
color: "$blue700",
|
|
2097
|
+
"&:hover": { color: "$blue700" },
|
|
2098
|
+
"&:focus": { color: "$blue700" },
|
|
2099
|
+
"&:active": { color: "$blue700" }
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
variant: "text",
|
|
2105
|
+
color: "red",
|
|
2106
|
+
css: {
|
|
2107
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2108
|
+
color: "$red500",
|
|
2109
|
+
"&:hover": { color: "$red600" },
|
|
2110
|
+
"&:focus": { color: "$red700" },
|
|
2111
|
+
"&:active": { color: "$red500" },
|
|
2112
|
+
"&:disabled": { color: "$dark400" }
|
|
2113
|
+
},
|
|
2114
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2115
|
+
color: "$red700",
|
|
2116
|
+
"&:hover": { color: "$red700" },
|
|
2117
|
+
"&:focus": { color: "$red700" },
|
|
2118
|
+
"&:active": { color: "$red700" }
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
// contained
|
|
2123
|
+
{
|
|
2124
|
+
variant: "contained",
|
|
2125
|
+
color: "brand",
|
|
2126
|
+
css: {
|
|
2127
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2128
|
+
color: "$grey50",
|
|
2129
|
+
backgroundColor: "$brand500",
|
|
2130
|
+
borderColor: "$brand500",
|
|
2131
|
+
"&:hover": {
|
|
2132
|
+
backgroundColor: "$blue600"
|
|
2133
|
+
},
|
|
2134
|
+
"&:focus": {
|
|
2135
|
+
backgroundColor: "$blue700"
|
|
2136
|
+
},
|
|
2137
|
+
"&:active": {
|
|
2138
|
+
backgroundColor: "$blue500"
|
|
2139
|
+
},
|
|
2140
|
+
"&:disabled": {
|
|
2141
|
+
backgroundColor: "$brand50",
|
|
2142
|
+
color: "$neutral400"
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2146
|
+
backgroundColor: "$brand700",
|
|
2147
|
+
"&:hover": { backgroundColor: "$brand700" },
|
|
2148
|
+
"&:focus": { backgroundColor: "$brand700" },
|
|
2149
|
+
"&:active": { backgroundColor: "$brand700" }
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
variant: "contained",
|
|
2155
|
+
color: "neutral",
|
|
2156
|
+
css: {
|
|
2157
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2158
|
+
backgroundColor: "$neutral600",
|
|
2159
|
+
color: "$grey50",
|
|
2160
|
+
"&:hover": {
|
|
2161
|
+
backgroundColor: "$neutral700",
|
|
2162
|
+
borderColor: "$neutral800"
|
|
2163
|
+
},
|
|
2164
|
+
"&:focus": {
|
|
2165
|
+
backgroundColor: "$neutral800"
|
|
2166
|
+
},
|
|
2167
|
+
"&:active": {
|
|
2168
|
+
backgroundColor: "$neutral500",
|
|
2169
|
+
borderColor: "$neutral400"
|
|
2170
|
+
},
|
|
2171
|
+
"&:disabled": {
|
|
2172
|
+
backgroundColor: "$neutral50",
|
|
2173
|
+
borderColor: "$neutral200",
|
|
2174
|
+
color: "$neutral400"
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2178
|
+
backgroundColor: "$neutral800",
|
|
2179
|
+
"&:hover": { backgroundColor: "$neutral800" },
|
|
2180
|
+
"&:focus": { backgroundColor: "$neutral800" },
|
|
2181
|
+
"&:active": { backgroundColor: "$neutral800" }
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
variant: "contained",
|
|
2187
|
+
color: "purple",
|
|
2188
|
+
css: {
|
|
2189
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2190
|
+
backgroundColor: "$purple500",
|
|
2191
|
+
color: "$grey50",
|
|
2192
|
+
"&:hover": {
|
|
2193
|
+
backgroundColor: "$purple600",
|
|
2194
|
+
borderColor: "$purple700"
|
|
2195
|
+
},
|
|
2196
|
+
"&:focus": {
|
|
2197
|
+
backgroundColor: "$purple700"
|
|
2198
|
+
},
|
|
2199
|
+
"&:active": {
|
|
2200
|
+
borderColor: "$purple300",
|
|
2201
|
+
backgroundColor: "$purple500"
|
|
2202
|
+
},
|
|
2203
|
+
"&:disabled": {
|
|
2204
|
+
borderColor: "$purple200",
|
|
2205
|
+
backgroundColor: "$purple200",
|
|
2206
|
+
color: "$neutral400"
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2210
|
+
backgroundColor: "$purple700",
|
|
2211
|
+
"&:hover": { backgroundColor: "$purple700" },
|
|
2212
|
+
"&:focus": { backgroundColor: "$purple700" },
|
|
2213
|
+
"&:active": { backgroundColor: "$purple700" }
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
// outlined
|
|
2218
|
+
{
|
|
2219
|
+
variant: "outlined",
|
|
2220
|
+
color: "brand",
|
|
2221
|
+
css: {
|
|
2222
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2223
|
+
color: "$brand500",
|
|
2224
|
+
borderColor: "$brand300",
|
|
2225
|
+
backgroundColor: "$grey50",
|
|
2226
|
+
"&:hover": {
|
|
2227
|
+
borderColor: "$brand400",
|
|
2228
|
+
backgroundColor: "$brand50"
|
|
2229
|
+
},
|
|
2230
|
+
"&:focus": {
|
|
2231
|
+
borderColor: "$brand400",
|
|
2232
|
+
backgroundColor: "$brand50"
|
|
2233
|
+
},
|
|
2234
|
+
"&:active": {
|
|
2235
|
+
borderColor: "$brand300",
|
|
2236
|
+
backgroundColor: "$grey50"
|
|
2237
|
+
},
|
|
2238
|
+
"&:disabled": {
|
|
2239
|
+
borderColor: "$brand200",
|
|
2240
|
+
backgroundColor: "$neutral200",
|
|
2241
|
+
color: "$neutral400"
|
|
2242
|
+
}
|
|
2243
|
+
},
|
|
2244
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2245
|
+
color: "$brand700",
|
|
2246
|
+
borderColor: "$brand600",
|
|
2247
|
+
backgroundColor: "$brand50",
|
|
2248
|
+
"&:hover": { backgroundColor: "$brand50", borderColor: "$brand600" },
|
|
2249
|
+
"&:focus": { backgroundColor: "$brand50", borderColor: "$brand600" },
|
|
2250
|
+
"&:active": { backgroundColor: "$brand50", borderColor: "$brand600" }
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
variant: "outlined",
|
|
2256
|
+
color: "neutral",
|
|
2257
|
+
css: {
|
|
2258
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2259
|
+
color: "$neutral600",
|
|
2260
|
+
borderColor: "$neutral300",
|
|
2261
|
+
backgroundColor: "$grey50",
|
|
2262
|
+
"&:hover": {
|
|
2263
|
+
borderColor: "$neutral400",
|
|
2264
|
+
backgroundColor: "$grey100"
|
|
2265
|
+
},
|
|
2266
|
+
"&:focus": {
|
|
2267
|
+
borderColor: "$neutral400",
|
|
2268
|
+
backgroundColor: "$grey100"
|
|
2269
|
+
},
|
|
2270
|
+
"&:active": {
|
|
2271
|
+
borderColor: "$neutral300",
|
|
2272
|
+
backgroundColor: "$grey50"
|
|
2273
|
+
},
|
|
2274
|
+
"&:disabled": {
|
|
2275
|
+
borderColor: "$neutral200",
|
|
2276
|
+
backgroundColor: "$neutral200",
|
|
2277
|
+
color: "$neutral400"
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2281
|
+
color: "$neutral800",
|
|
2282
|
+
borderColor: "$neutral600",
|
|
2283
|
+
backgroundColor: "$grey100",
|
|
2284
|
+
"&:hover": { backgroundColor: "$grey100", borderColor: "$neutral600" },
|
|
2285
|
+
"&:focus": { backgroundColor: "$grey100", borderColor: "$neutral600" },
|
|
2286
|
+
"&:active": { backgroundColor: "$grey100", borderColor: "$neutral600" }
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
variant: "outlined",
|
|
2292
|
+
color: "purple",
|
|
2293
|
+
css: {
|
|
2294
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2295
|
+
color: "$purple500",
|
|
2296
|
+
borderColor: "$purple300",
|
|
2297
|
+
backgroundColor: "$grey50",
|
|
2298
|
+
"&:hover": {
|
|
2299
|
+
borderColor: "$purple400",
|
|
2300
|
+
backgroundColor: "$purple50"
|
|
2301
|
+
},
|
|
2302
|
+
"&:focus": {
|
|
2303
|
+
borderColor: "$purple400",
|
|
2304
|
+
backgroundColor: "$purple50"
|
|
2305
|
+
},
|
|
2306
|
+
"&:active": {
|
|
2307
|
+
borderColor: "$purple300",
|
|
2308
|
+
backgroundColor: "$grey50"
|
|
2309
|
+
},
|
|
2310
|
+
"&:disabled": {
|
|
2311
|
+
borderColor: "$purple200",
|
|
2312
|
+
backgroundColor: "$neutral200",
|
|
2313
|
+
color: "$neutral400"
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2317
|
+
color: "$purple700",
|
|
2318
|
+
borderColor: "$purple600",
|
|
2319
|
+
backgroundColor: "$purple50",
|
|
2320
|
+
"&:hover": { backgroundColor: "$purple50", borderColor: "$purple600" },
|
|
2321
|
+
"&:focus": { backgroundColor: "$purple50", borderColor: "$purple600" },
|
|
2322
|
+
"&:active": { backgroundColor: "$purple50", borderColor: "$purple600" }
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
],
|
|
1787
2327
|
defaultVariants: {
|
|
1788
|
-
variant: "
|
|
1789
|
-
size: "md"
|
|
2328
|
+
variant: "contained",
|
|
2329
|
+
size: "md",
|
|
2330
|
+
color: "brand"
|
|
1790
2331
|
}
|
|
1791
2332
|
});
|
|
1792
2333
|
function ButtonItem(_a) {
|
|
@@ -1925,13 +2466,40 @@ var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
|
1925
2466
|
cursor: "not-allowed"
|
|
1926
2467
|
},
|
|
1927
2468
|
variants: {
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2469
|
+
color: {
|
|
2470
|
+
default: {
|
|
2471
|
+
color: "$dark400",
|
|
2472
|
+
border: "1px solid $dark200",
|
|
2473
|
+
"&:has(input:focus)": {
|
|
2474
|
+
border: "2px solid $brand300"
|
|
2475
|
+
},
|
|
2476
|
+
"&:has(input:disabled)": {
|
|
2477
|
+
backgroundColor: "$dark100",
|
|
2478
|
+
color: "$dark400",
|
|
2479
|
+
border: "1px solid $dark200",
|
|
2480
|
+
cursor: "not-allowed"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
error: {
|
|
1931
2484
|
border: "1px solid $error400",
|
|
1932
2485
|
color: "$error400",
|
|
1933
|
-
|
|
2486
|
+
"input::placeholder": {
|
|
2487
|
+
color: "$error400"
|
|
2488
|
+
},
|
|
2489
|
+
"& hast(input:focus)": {
|
|
2490
|
+
border: "2px solid $error400"
|
|
2491
|
+
},
|
|
2492
|
+
"&:has(input:disabled)": {
|
|
2493
|
+
backgroundColor: "$error50",
|
|
2494
|
+
color: "$error300",
|
|
2495
|
+
border: "1px solid $error100",
|
|
2496
|
+
cursor: "not-allowed"
|
|
2497
|
+
}
|
|
1934
2498
|
}
|
|
2499
|
+
},
|
|
2500
|
+
isValid: {
|
|
2501
|
+
true: {},
|
|
2502
|
+
false: {}
|
|
1935
2503
|
}
|
|
1936
2504
|
},
|
|
1937
2505
|
compoundVariants: [
|
|
@@ -1986,15 +2554,17 @@ function TextField(_a) {
|
|
|
1986
2554
|
var _b = _a, {
|
|
1987
2555
|
children,
|
|
1988
2556
|
isValid,
|
|
1989
|
-
name
|
|
2557
|
+
name,
|
|
2558
|
+
color
|
|
1990
2559
|
} = _b, props = __objRest(_b, [
|
|
1991
2560
|
"children",
|
|
1992
2561
|
"isValid",
|
|
1993
|
-
"name"
|
|
2562
|
+
"name",
|
|
2563
|
+
"color"
|
|
1994
2564
|
]);
|
|
1995
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(TextFieldStyled, __spreadProps(__spreadValues({ isValid, name }, props), { children: [
|
|
2565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(TextFieldStyled, __spreadProps(__spreadValues({ color, isValid, name }, props), { children: [
|
|
1996
2566
|
children,
|
|
1997
|
-
isValid && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlot, { position: "flex-end", name, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "check" }) })
|
|
2567
|
+
isValid && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlot, { position: "flex-end", name, color, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "check" }) })
|
|
1998
2568
|
] }));
|
|
1999
2569
|
}
|
|
2000
2570
|
function TextFieldSlot(_a) {
|
|
@@ -2008,7 +2578,7 @@ function TextFieldSlot(_a) {
|
|
|
2008
2578
|
"onClick"
|
|
2009
2579
|
]);
|
|
2010
2580
|
console.log("onclick", onClick);
|
|
2011
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
|
|
2581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2012
2582
|
position: "absolute",
|
|
2013
2583
|
left: position === "flex-end" ? "none" : 15,
|
|
2014
2584
|
right: position === "flex-start" ? "none" : 15,
|
|
@@ -2016,7 +2586,7 @@ function TextFieldSlot(_a) {
|
|
|
2016
2586
|
zIndex: 2,
|
|
2017
2587
|
top: 0,
|
|
2018
2588
|
cursor: "pointer"
|
|
2019
|
-
}, onClick: () => onClick(), children })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
|
|
2589
|
+
}, onClick: () => onClick(), children })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2020
2590
|
float: position === "flex-start" ? "left" : "right",
|
|
2021
2591
|
order: position === "flex-start" ? 0 : 2,
|
|
2022
2592
|
marginLeft: position === "flex-start" ? 0 : 15,
|
|
@@ -2073,8 +2643,8 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2073
2643
|
zIndex: 1
|
|
2074
2644
|
},
|
|
2075
2645
|
variants: {
|
|
2076
|
-
|
|
2077
|
-
|
|
2646
|
+
color: {
|
|
2647
|
+
success: {
|
|
2078
2648
|
"label": {
|
|
2079
2649
|
"&:focus button, &:hover button": {
|
|
2080
2650
|
boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
|
|
@@ -2088,7 +2658,8 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2088
2658
|
backgroundColor: "$green500"
|
|
2089
2659
|
}
|
|
2090
2660
|
},
|
|
2091
|
-
|
|
2661
|
+
blue: {},
|
|
2662
|
+
error: {
|
|
2092
2663
|
"label": {
|
|
2093
2664
|
"&:focus button, &:hover button": {
|
|
2094
2665
|
boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
|
|
@@ -2121,7 +2692,7 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2121
2692
|
},
|
|
2122
2693
|
compoundVariants: [
|
|
2123
2694
|
{
|
|
2124
|
-
|
|
2695
|
+
color: "blue",
|
|
2125
2696
|
disabled: false,
|
|
2126
2697
|
css: {
|
|
2127
2698
|
"label": {
|
|
@@ -2138,7 +2709,7 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2138
2709
|
}
|
|
2139
2710
|
},
|
|
2140
2711
|
{
|
|
2141
|
-
|
|
2712
|
+
color: "blue",
|
|
2142
2713
|
disabled: true,
|
|
2143
2714
|
css: {
|
|
2144
2715
|
"label button": {
|
|
@@ -2151,7 +2722,7 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2151
2722
|
}
|
|
2152
2723
|
},
|
|
2153
2724
|
{
|
|
2154
|
-
|
|
2725
|
+
color: "success",
|
|
2155
2726
|
disabled: true,
|
|
2156
2727
|
css: {
|
|
2157
2728
|
"label button": {
|
|
@@ -2164,7 +2735,7 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2164
2735
|
}
|
|
2165
2736
|
},
|
|
2166
2737
|
{
|
|
2167
|
-
|
|
2738
|
+
color: "error",
|
|
2168
2739
|
disabled: true,
|
|
2169
2740
|
css: {
|
|
2170
2741
|
"label button": {
|
|
@@ -2176,23 +2747,24 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2176
2747
|
}
|
|
2177
2748
|
}
|
|
2178
2749
|
}
|
|
2179
|
-
]
|
|
2750
|
+
],
|
|
2751
|
+
defaultVariants: {
|
|
2752
|
+
color: "blue",
|
|
2753
|
+
disabled: false
|
|
2754
|
+
}
|
|
2180
2755
|
});
|
|
2181
2756
|
function RadioGroup(_a) {
|
|
2182
2757
|
var _b = _a, {
|
|
2183
2758
|
children,
|
|
2184
|
-
isValid,
|
|
2185
2759
|
disabled
|
|
2186
2760
|
} = _b, props = __objRest(_b, [
|
|
2187
2761
|
"children",
|
|
2188
|
-
"isValid",
|
|
2189
2762
|
"disabled"
|
|
2190
2763
|
]);
|
|
2191
2764
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2192
2765
|
RadioGroupStyled,
|
|
2193
2766
|
__spreadProps(__spreadValues({
|
|
2194
|
-
disabled
|
|
2195
|
-
isValid
|
|
2767
|
+
disabled
|
|
2196
2768
|
}, props), {
|
|
2197
2769
|
children
|
|
2198
2770
|
})
|
|
@@ -2258,8 +2830,8 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2258
2830
|
zIndex: 1
|
|
2259
2831
|
},
|
|
2260
2832
|
variants: {
|
|
2261
|
-
|
|
2262
|
-
|
|
2833
|
+
color: {
|
|
2834
|
+
success: {
|
|
2263
2835
|
"label": {
|
|
2264
2836
|
"&:focus button, &:hover button": {
|
|
2265
2837
|
boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
|
|
@@ -2273,7 +2845,8 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2273
2845
|
backgroundColor: "$green500"
|
|
2274
2846
|
}
|
|
2275
2847
|
},
|
|
2276
|
-
|
|
2848
|
+
blue: {},
|
|
2849
|
+
error: {
|
|
2277
2850
|
"label": {
|
|
2278
2851
|
"&:focus button, &:hover button": {
|
|
2279
2852
|
boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
|
|
@@ -2306,7 +2879,7 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2306
2879
|
},
|
|
2307
2880
|
compoundVariants: [
|
|
2308
2881
|
{
|
|
2309
|
-
|
|
2882
|
+
color: "blue",
|
|
2310
2883
|
disabled: false,
|
|
2311
2884
|
css: {
|
|
2312
2885
|
"label": {
|
|
@@ -2323,7 +2896,7 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2323
2896
|
}
|
|
2324
2897
|
},
|
|
2325
2898
|
{
|
|
2326
|
-
|
|
2899
|
+
color: "blue",
|
|
2327
2900
|
disabled: true,
|
|
2328
2901
|
css: {
|
|
2329
2902
|
"label button": {
|
|
@@ -2336,7 +2909,7 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2336
2909
|
}
|
|
2337
2910
|
},
|
|
2338
2911
|
{
|
|
2339
|
-
|
|
2912
|
+
color: "success",
|
|
2340
2913
|
disabled: true,
|
|
2341
2914
|
css: {
|
|
2342
2915
|
"label button": {
|
|
@@ -2349,7 +2922,7 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2349
2922
|
}
|
|
2350
2923
|
},
|
|
2351
2924
|
{
|
|
2352
|
-
|
|
2925
|
+
color: "error",
|
|
2353
2926
|
disabled: true,
|
|
2354
2927
|
css: {
|
|
2355
2928
|
"label button": {
|
|
@@ -2361,7 +2934,11 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2361
2934
|
}
|
|
2362
2935
|
}
|
|
2363
2936
|
}
|
|
2364
|
-
]
|
|
2937
|
+
],
|
|
2938
|
+
defaultVariants: {
|
|
2939
|
+
color: "blue",
|
|
2940
|
+
disabled: false
|
|
2941
|
+
}
|
|
2365
2942
|
});
|
|
2366
2943
|
function CheckboxGroup(_a) {
|
|
2367
2944
|
var _b = _a, {
|
|
@@ -2538,10 +3115,121 @@ function DropdownMenuItem(_a) {
|
|
|
2538
3115
|
]);
|
|
2539
3116
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItemStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2540
3117
|
}
|
|
3118
|
+
|
|
3119
|
+
// src/components/Badge.tsx
|
|
3120
|
+
var import_react2 = __toESM(require("react"));
|
|
3121
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
3122
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
3123
|
+
var BadgeStyled = styled(import_themes18.Badge, {
|
|
3124
|
+
fontFamily: "$default",
|
|
3125
|
+
borderRadius: "$sm",
|
|
3126
|
+
verticalAlign: "middle",
|
|
3127
|
+
"svg": {
|
|
3128
|
+
marginRight: "10px"
|
|
3129
|
+
},
|
|
3130
|
+
variants: {
|
|
3131
|
+
color: {
|
|
3132
|
+
primary: {
|
|
3133
|
+
backgroundColor: "$brand100",
|
|
3134
|
+
color: "$dark700"
|
|
3135
|
+
},
|
|
3136
|
+
dark: {
|
|
3137
|
+
backgroundColor: "$dark700",
|
|
3138
|
+
color: "$grey50"
|
|
3139
|
+
},
|
|
3140
|
+
light: {
|
|
3141
|
+
backgroundColor: "$neutral200",
|
|
3142
|
+
color: "$dark700"
|
|
3143
|
+
},
|
|
3144
|
+
red: {
|
|
3145
|
+
backgroundColor: "$red100",
|
|
3146
|
+
color: "$dark700"
|
|
3147
|
+
},
|
|
3148
|
+
green: {
|
|
3149
|
+
backgroundColor: "$green100",
|
|
3150
|
+
color: "$dark700"
|
|
3151
|
+
},
|
|
3152
|
+
yellow: {
|
|
3153
|
+
backgroundColor: "$yellow100",
|
|
3154
|
+
color: "$dark700"
|
|
3155
|
+
},
|
|
3156
|
+
orange: {
|
|
3157
|
+
backgroundColor: "$orange100",
|
|
3158
|
+
color: "$dark700"
|
|
3159
|
+
},
|
|
3160
|
+
blue: {
|
|
3161
|
+
backgroundColor: "$blue100",
|
|
3162
|
+
color: "$dark700"
|
|
3163
|
+
},
|
|
3164
|
+
pink: {
|
|
3165
|
+
backgroundColor: "$pink100",
|
|
3166
|
+
color: "$dark700"
|
|
3167
|
+
},
|
|
3168
|
+
purple: {
|
|
3169
|
+
backgroundColor: "$purple100",
|
|
3170
|
+
color: "$dark700"
|
|
3171
|
+
},
|
|
3172
|
+
grey: {
|
|
3173
|
+
backgroundColor: "$grey200",
|
|
3174
|
+
color: "$dark700"
|
|
3175
|
+
},
|
|
3176
|
+
disable: {
|
|
3177
|
+
backgroundColor: "$neutral200",
|
|
3178
|
+
color: "$grey500"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
size: {
|
|
3182
|
+
xs: {
|
|
3183
|
+
padding: "$4 $6",
|
|
3184
|
+
fontSize: "$10",
|
|
3185
|
+
borderRadius: "$2xs",
|
|
3186
|
+
lineHeight: "$smaller"
|
|
3187
|
+
},
|
|
3188
|
+
sm: {
|
|
3189
|
+
padding: "$4 $8",
|
|
3190
|
+
fontSize: "$12",
|
|
3191
|
+
borderRadius: "$xs",
|
|
3192
|
+
lineHeight: "$smaller"
|
|
3193
|
+
},
|
|
3194
|
+
md: {
|
|
3195
|
+
padding: "$8 $10",
|
|
3196
|
+
fontSize: "$14",
|
|
3197
|
+
borderRadius: "$sm",
|
|
3198
|
+
lineHeight: "$smaller"
|
|
3199
|
+
},
|
|
3200
|
+
xl: {
|
|
3201
|
+
padding: "$12 $12",
|
|
3202
|
+
fontSize: "$16",
|
|
3203
|
+
borderRadius: "$sm",
|
|
3204
|
+
lineHeight: "$smaller"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
radii: {
|
|
3208
|
+
"full": {
|
|
3209
|
+
borderRadius: "$full"
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
defaultVariants: {
|
|
3214
|
+
size: "md",
|
|
3215
|
+
color: "primary"
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
function Badge(_a) {
|
|
3219
|
+
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
3220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
|
|
3221
|
+
if (import_react2.default.isValidElement(child)) {
|
|
3222
|
+
return import_react2.default.cloneElement(child, { size: props.size });
|
|
3223
|
+
}
|
|
3224
|
+
return child;
|
|
3225
|
+
}) }));
|
|
3226
|
+
}
|
|
2541
3227
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2542
3228
|
0 && (module.exports = {
|
|
2543
3229
|
Avatar,
|
|
2544
3230
|
AvatarStyled,
|
|
3231
|
+
Badge,
|
|
3232
|
+
BadgeStyled,
|
|
2545
3233
|
BadgeText,
|
|
2546
3234
|
BodyText,
|
|
2547
3235
|
Box,
|