thailife-react 0.0.13 → 0.0.14
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/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/index.esm.js +148 -129
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +148 -129
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1456,57 +1456,148 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1456
1456
|
|
|
1457
1457
|
var jsxRuntimeExports = jsxRuntime.exports;
|
|
1458
1458
|
|
|
1459
|
+
const theme = {
|
|
1460
|
+
colors: {
|
|
1461
|
+
primary: "#007AC2",
|
|
1462
|
+
error: "#ff1100",
|
|
1463
|
+
dark: "#333333",
|
|
1464
|
+
light: "#666666",
|
|
1465
|
+
white: "#ffffff",
|
|
1466
|
+
black: "#000000",
|
|
1467
|
+
gray: {
|
|
1468
|
+
50: "#f9fafb",
|
|
1469
|
+
100: "#f3f4f6",
|
|
1470
|
+
200: "#e5e7eb",
|
|
1471
|
+
300: "#d1d5db",
|
|
1472
|
+
400: "#9ca3af",
|
|
1473
|
+
500: "#6b7280",
|
|
1474
|
+
600: "#4b5563",
|
|
1475
|
+
700: "#374151",
|
|
1476
|
+
800: "#1f2937",
|
|
1477
|
+
900: "#111827"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
spacing: {
|
|
1481
|
+
0: "0",
|
|
1482
|
+
1: "0.25rem",
|
|
1483
|
+
2: "0.5rem",
|
|
1484
|
+
3: "0.75rem",
|
|
1485
|
+
4: "1rem",
|
|
1486
|
+
5: "1.25rem",
|
|
1487
|
+
6: "1.5rem",
|
|
1488
|
+
8: "2rem",
|
|
1489
|
+
10: "2.5rem",
|
|
1490
|
+
12: "3rem",
|
|
1491
|
+
16: "4rem",
|
|
1492
|
+
18: "4.5rem",
|
|
1493
|
+
20: "5rem",
|
|
1494
|
+
24: "6rem",
|
|
1495
|
+
32: "8rem",
|
|
1496
|
+
40: "10rem",
|
|
1497
|
+
48: "12rem",
|
|
1498
|
+
56: "14rem",
|
|
1499
|
+
64: "16rem",
|
|
1500
|
+
88: "22rem"
|
|
1501
|
+
},
|
|
1502
|
+
fontSize: {
|
|
1503
|
+
xs: "0.75rem",
|
|
1504
|
+
sm: "0.875rem",
|
|
1505
|
+
base: "1rem",
|
|
1506
|
+
lg: "1.125rem",
|
|
1507
|
+
xl: "1.25rem",
|
|
1508
|
+
"2xl": "1.5rem",
|
|
1509
|
+
"3xl": "1.875rem",
|
|
1510
|
+
"4xl": "2.25rem",
|
|
1511
|
+
"5xl": "3rem",
|
|
1512
|
+
"6xl": "3.75rem"
|
|
1513
|
+
},
|
|
1514
|
+
fontFamily: {
|
|
1515
|
+
sans: ["Inter", "system-ui", "sans-serif"],
|
|
1516
|
+
serif: ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
1517
|
+
mono: ["Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"]
|
|
1518
|
+
},
|
|
1519
|
+
borderRadius: {
|
|
1520
|
+
none: "0",
|
|
1521
|
+
sm: "0.125rem",
|
|
1522
|
+
base: "0.25rem",
|
|
1523
|
+
md: "0.375rem",
|
|
1524
|
+
lg: "0.5rem",
|
|
1525
|
+
xl: "0.75rem",
|
|
1526
|
+
"2xl": "1rem",
|
|
1527
|
+
"3xl": "1.5rem",
|
|
1528
|
+
full: "9999px"
|
|
1529
|
+
},
|
|
1530
|
+
shadows: {
|
|
1531
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
1532
|
+
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
1533
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
1534
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
1535
|
+
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
|
|
1536
|
+
},
|
|
1537
|
+
transitions: {
|
|
1538
|
+
fast: "150ms ease-in-out",
|
|
1539
|
+
base: "300ms ease-in-out",
|
|
1540
|
+
slow: "500ms ease-in-out"
|
|
1541
|
+
}
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1459
1544
|
const _excluded$6 = ["className", "color", "variant", "size", "fullWidth", "loading", "disabled", "children"];
|
|
1460
1545
|
var _templateObject$6, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$6;
|
|
1461
1546
|
const StyledButton = styled.button(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: ", ";\n font-family: ", ";\n font-weight: 500;\n cursor: pointer;\n transition: all ", ";\n outline: none;\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
1547
|
+
var _theme$borderRadius;
|
|
1462
1548
|
let {
|
|
1463
|
-
theme
|
|
1549
|
+
theme: theme$1
|
|
1464
1550
|
} = _ref;
|
|
1465
|
-
return theme.borderRadius.md;
|
|
1551
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$borderRadius = theme$1.borderRadius) === null || _theme$borderRadius === void 0 ? void 0 : _theme$borderRadius.md) || theme.borderRadius.md;
|
|
1466
1552
|
}, _ref2 => {
|
|
1553
|
+
var _theme$fontFamily;
|
|
1467
1554
|
let {
|
|
1468
|
-
theme
|
|
1555
|
+
theme: theme$1
|
|
1469
1556
|
} = _ref2;
|
|
1470
|
-
return theme.fontFamily.sans.join(", ");
|
|
1557
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$fontFamily = theme$1.fontFamily) === null || _theme$fontFamily === void 0 || (_theme$fontFamily = _theme$fontFamily.sans) === null || _theme$fontFamily === void 0 ? void 0 : _theme$fontFamily.join(", ")) || theme.fontFamily.sans.join(", ");
|
|
1471
1558
|
}, _ref3 => {
|
|
1559
|
+
var _theme$transitions;
|
|
1472
1560
|
let {
|
|
1473
|
-
theme
|
|
1561
|
+
theme: theme$1
|
|
1474
1562
|
} = _ref3;
|
|
1475
|
-
return theme.transitions.base;
|
|
1563
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$transitions = theme$1.transitions) === null || _theme$transitions === void 0 ? void 0 : _theme$transitions.base) || theme.transitions.base;
|
|
1476
1564
|
}, _ref4 => {
|
|
1565
|
+
var _theme$colors;
|
|
1477
1566
|
let {
|
|
1478
|
-
theme
|
|
1567
|
+
theme: theme$1
|
|
1479
1568
|
} = _ref4;
|
|
1480
|
-
return theme.colors.primary;
|
|
1569
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$colors = theme$1.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.primary) || theme.colors.primary;
|
|
1481
1570
|
}, _ref5 => {
|
|
1482
1571
|
let {
|
|
1483
1572
|
variant,
|
|
1484
1573
|
color,
|
|
1485
|
-
theme
|
|
1574
|
+
theme: theme$1
|
|
1486
1575
|
} = _ref5;
|
|
1576
|
+
const currentTheme = theme$1 || theme;
|
|
1487
1577
|
if (variant === "contained") {
|
|
1488
|
-
return styled.css(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n &:hover:not(:disabled) {\n background-color: ", "cc;\n }\n "])),
|
|
1578
|
+
return styled.css(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n &:hover:not(:disabled) {\n background-color: ", "cc;\n }\n "])), currentTheme.colors[color || "primary"], currentTheme.colors.white, currentTheme.colors[color || "primary"]);
|
|
1489
1579
|
}
|
|
1490
1580
|
if (variant === "outlined") {
|
|
1491
|
-
return styled.css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n color: ", ";\n &:hover:not(:disabled) {\n background-color: ", "1a;\n }\n "])),
|
|
1581
|
+
return styled.css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n color: ", ";\n &:hover:not(:disabled) {\n background-color: ", "1a;\n }\n "])), currentTheme.colors[color || "primary"], currentTheme.colors[color || "primary"], currentTheme.colors[color || "primary"]);
|
|
1492
1582
|
}
|
|
1493
1583
|
if (variant === "link") {
|
|
1494
|
-
return styled.css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n &:hover:not(:disabled) {\n text-decoration: none;\n }\n "])),
|
|
1584
|
+
return styled.css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n &:hover:not(:disabled) {\n text-decoration: none;\n }\n "])), currentTheme.colors[color || "primary"]);
|
|
1495
1585
|
}
|
|
1496
1586
|
return styled.css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral([""])));
|
|
1497
1587
|
}, _ref6 => {
|
|
1498
1588
|
let {
|
|
1499
1589
|
size,
|
|
1500
|
-
theme
|
|
1590
|
+
theme: theme$1
|
|
1501
1591
|
} = _ref6;
|
|
1592
|
+
const currentTheme = theme$1 || theme;
|
|
1502
1593
|
if (size === "sm") {
|
|
1503
|
-
return styled.css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1594
|
+
return styled.css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
|
|
1504
1595
|
}
|
|
1505
1596
|
if (size === "md") {
|
|
1506
|
-
return styled.css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1597
|
+
return styled.css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
|
|
1507
1598
|
}
|
|
1508
1599
|
if (size === "lg") {
|
|
1509
|
-
return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1600
|
+
return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[6], currentTheme.fontSize.base);
|
|
1510
1601
|
}
|
|
1511
1602
|
return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteral([""])));
|
|
1512
1603
|
}, _ref7 => {
|
|
@@ -1551,66 +1642,76 @@ const InputContainer = styled.div(_templateObject$5 || (_templateObject$5 = _tag
|
|
|
1551
1642
|
return fullWidth && styled.css(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
1552
1643
|
});
|
|
1553
1644
|
const InputLabel = styled.label(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
|
|
1645
|
+
var _theme$spacing;
|
|
1554
1646
|
let {
|
|
1555
|
-
theme
|
|
1647
|
+
theme: theme$1
|
|
1556
1648
|
} = _ref2;
|
|
1557
|
-
return theme.spacing[1];
|
|
1649
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$spacing = theme$1.spacing) === null || _theme$spacing === void 0 ? void 0 : _theme$spacing[1]) || theme.spacing[1];
|
|
1558
1650
|
}, _ref3 => {
|
|
1651
|
+
var _theme$fontSize;
|
|
1559
1652
|
let {
|
|
1560
|
-
theme
|
|
1653
|
+
theme: theme$1
|
|
1561
1654
|
} = _ref3;
|
|
1562
|
-
return theme.fontSize.sm;
|
|
1655
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize = theme$1.fontSize) === null || _theme$fontSize === void 0 ? void 0 : _theme$fontSize.sm) || theme.fontSize.sm;
|
|
1563
1656
|
}, _ref4 => {
|
|
1657
|
+
var _theme$colors;
|
|
1564
1658
|
let {
|
|
1565
|
-
theme
|
|
1659
|
+
theme: theme$1
|
|
1566
1660
|
} = _ref4;
|
|
1567
|
-
return theme.colors.gray[700];
|
|
1661
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$colors = theme$1.colors) === null || _theme$colors === void 0 || (_theme$colors = _theme$colors.gray) === null || _theme$colors === void 0 ? void 0 : _theme$colors[700]) || theme.colors.gray[700];
|
|
1568
1662
|
});
|
|
1569
1663
|
const StyledInput = styled.input(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n font-family: ", ";\n\n &:focus {\n border-color: ", ";\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n background-color: ", ";\n }\n\n ", "\n\n ", "\n"])), _ref5 => {
|
|
1664
|
+
var _theme$colors2, _theme$colors3;
|
|
1570
1665
|
let {
|
|
1571
|
-
theme,
|
|
1666
|
+
theme: theme$1,
|
|
1572
1667
|
hasError
|
|
1573
1668
|
} = _ref5;
|
|
1574
|
-
return hasError ? theme.colors.error : theme.colors.gray[300];
|
|
1669
|
+
return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors2 = theme$1.colors) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors3 = theme$1.colors) === null || _theme$colors3 === void 0 || (_theme$colors3 = _theme$colors3.gray) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3[300]) || theme.colors.gray[300];
|
|
1575
1670
|
}, _ref6 => {
|
|
1671
|
+
var _theme$borderRadius;
|
|
1576
1672
|
let {
|
|
1577
|
-
theme
|
|
1673
|
+
theme: theme$1
|
|
1578
1674
|
} = _ref6;
|
|
1579
|
-
return theme.borderRadius.md;
|
|
1675
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$borderRadius = theme$1.borderRadius) === null || _theme$borderRadius === void 0 ? void 0 : _theme$borderRadius.md) || theme.borderRadius.md;
|
|
1580
1676
|
}, _ref7 => {
|
|
1677
|
+
var _theme$transitions;
|
|
1581
1678
|
let {
|
|
1582
|
-
theme
|
|
1679
|
+
theme: theme$1
|
|
1583
1680
|
} = _ref7;
|
|
1584
|
-
return theme.transitions.base;
|
|
1681
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$transitions = theme$1.transitions) === null || _theme$transitions === void 0 ? void 0 : _theme$transitions.base) || theme.transitions.base;
|
|
1585
1682
|
}, _ref8 => {
|
|
1683
|
+
var _theme$fontFamily;
|
|
1586
1684
|
let {
|
|
1587
|
-
theme
|
|
1685
|
+
theme: theme$1
|
|
1588
1686
|
} = _ref8;
|
|
1589
|
-
return theme.fontFamily.sans.join(", ");
|
|
1687
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$fontFamily = theme$1.fontFamily) === null || _theme$fontFamily === void 0 || (_theme$fontFamily = _theme$fontFamily.sans) === null || _theme$fontFamily === void 0 ? void 0 : _theme$fontFamily.join(", ")) || theme.fontFamily.sans.join(", ");
|
|
1590
1688
|
}, _ref9 => {
|
|
1689
|
+
var _theme$colors4, _theme$colors5;
|
|
1591
1690
|
let {
|
|
1592
|
-
theme,
|
|
1691
|
+
theme: theme$1,
|
|
1593
1692
|
hasError
|
|
1594
1693
|
} = _ref9;
|
|
1595
|
-
return hasError ? theme.colors.error : theme.colors.primary;
|
|
1694
|
+
return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors4 = theme$1.colors) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors5 = theme$1.colors) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5.primary) || theme.colors.primary;
|
|
1596
1695
|
}, _ref0 => {
|
|
1696
|
+
var _theme$colors6;
|
|
1597
1697
|
let {
|
|
1598
|
-
theme
|
|
1698
|
+
theme: theme$1
|
|
1599
1699
|
} = _ref0;
|
|
1600
|
-
return theme.colors.gray[50];
|
|
1700
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$colors6 = theme$1.colors) === null || _theme$colors6 === void 0 || (_theme$colors6 = _theme$colors6.gray) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6[50]) || theme.colors.gray[50];
|
|
1601
1701
|
}, _ref1 => {
|
|
1602
1702
|
let {
|
|
1603
1703
|
size,
|
|
1604
|
-
theme
|
|
1704
|
+
theme: theme$1
|
|
1605
1705
|
} = _ref1;
|
|
1706
|
+
const currentTheme = theme$1 || theme;
|
|
1606
1707
|
if (size === "sm") {
|
|
1607
|
-
return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1708
|
+
return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
|
|
1608
1709
|
}
|
|
1609
1710
|
if (size === "md") {
|
|
1610
|
-
return styled.css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1711
|
+
return styled.css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
|
|
1611
1712
|
}
|
|
1612
1713
|
if (size === "lg") {
|
|
1613
|
-
return styled.css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1714
|
+
return styled.css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[4], currentTheme.fontSize.base);
|
|
1614
1715
|
}
|
|
1615
1716
|
return styled.css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteral([""])));
|
|
1616
1717
|
}, _ref10 => {
|
|
@@ -1620,21 +1721,24 @@ const StyledInput = styled.input(_templateObject4$5 || (_templateObject4$5 = _ta
|
|
|
1620
1721
|
return fullWidth && styled.css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
1621
1722
|
});
|
|
1622
1723
|
const HelperText$5 = styled.p(_templateObject0$5 || (_templateObject0$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref11 => {
|
|
1724
|
+
var _theme$spacing2;
|
|
1623
1725
|
let {
|
|
1624
|
-
theme
|
|
1726
|
+
theme: theme$1
|
|
1625
1727
|
} = _ref11;
|
|
1626
|
-
return theme.spacing[1];
|
|
1728
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$spacing2 = theme$1.spacing) === null || _theme$spacing2 === void 0 ? void 0 : _theme$spacing2[1]) || theme.spacing[1];
|
|
1627
1729
|
}, _ref12 => {
|
|
1730
|
+
var _theme$fontSize2;
|
|
1628
1731
|
let {
|
|
1629
|
-
theme
|
|
1732
|
+
theme: theme$1
|
|
1630
1733
|
} = _ref12;
|
|
1631
|
-
return theme.fontSize.xs;
|
|
1734
|
+
return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize2 = theme$1.fontSize) === null || _theme$fontSize2 === void 0 ? void 0 : _theme$fontSize2.xs) || theme.fontSize.xs;
|
|
1632
1735
|
}, _ref13 => {
|
|
1736
|
+
var _theme$colors7, _theme$colors8;
|
|
1633
1737
|
let {
|
|
1634
|
-
theme,
|
|
1738
|
+
theme: theme$1,
|
|
1635
1739
|
hasError
|
|
1636
1740
|
} = _ref13;
|
|
1637
|
-
return hasError ? theme.colors.error : theme.colors.gray[500];
|
|
1741
|
+
return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors7 = theme$1.colors) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors8 = theme$1.colors) === null || _theme$colors8 === void 0 || (_theme$colors8 = _theme$colors8.gray) === null || _theme$colors8 === void 0 ? void 0 : _theme$colors8[500]) || theme.colors.gray[500];
|
|
1638
1742
|
});
|
|
1639
1743
|
const Input = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
|
|
1640
1744
|
let {
|
|
@@ -2389,91 +2493,6 @@ const Select = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
|
|
|
2389
2493
|
});
|
|
2390
2494
|
Select.displayName = "Select";
|
|
2391
2495
|
|
|
2392
|
-
const theme = {
|
|
2393
|
-
colors: {
|
|
2394
|
-
primary: "#007AC2",
|
|
2395
|
-
error: "#ff1100",
|
|
2396
|
-
dark: "#333333",
|
|
2397
|
-
light: "#666666",
|
|
2398
|
-
white: "#ffffff",
|
|
2399
|
-
black: "#000000",
|
|
2400
|
-
gray: {
|
|
2401
|
-
50: "#f9fafb",
|
|
2402
|
-
100: "#f3f4f6",
|
|
2403
|
-
200: "#e5e7eb",
|
|
2404
|
-
300: "#d1d5db",
|
|
2405
|
-
400: "#9ca3af",
|
|
2406
|
-
500: "#6b7280",
|
|
2407
|
-
600: "#4b5563",
|
|
2408
|
-
700: "#374151",
|
|
2409
|
-
800: "#1f2937",
|
|
2410
|
-
900: "#111827"
|
|
2411
|
-
}
|
|
2412
|
-
},
|
|
2413
|
-
spacing: {
|
|
2414
|
-
0: "0",
|
|
2415
|
-
1: "0.25rem",
|
|
2416
|
-
2: "0.5rem",
|
|
2417
|
-
3: "0.75rem",
|
|
2418
|
-
4: "1rem",
|
|
2419
|
-
5: "1.25rem",
|
|
2420
|
-
6: "1.5rem",
|
|
2421
|
-
8: "2rem",
|
|
2422
|
-
10: "2.5rem",
|
|
2423
|
-
12: "3rem",
|
|
2424
|
-
16: "4rem",
|
|
2425
|
-
18: "4.5rem",
|
|
2426
|
-
20: "5rem",
|
|
2427
|
-
24: "6rem",
|
|
2428
|
-
32: "8rem",
|
|
2429
|
-
40: "10rem",
|
|
2430
|
-
48: "12rem",
|
|
2431
|
-
56: "14rem",
|
|
2432
|
-
64: "16rem",
|
|
2433
|
-
88: "22rem"
|
|
2434
|
-
},
|
|
2435
|
-
fontSize: {
|
|
2436
|
-
xs: "0.75rem",
|
|
2437
|
-
sm: "0.875rem",
|
|
2438
|
-
base: "1rem",
|
|
2439
|
-
lg: "1.125rem",
|
|
2440
|
-
xl: "1.25rem",
|
|
2441
|
-
"2xl": "1.5rem",
|
|
2442
|
-
"3xl": "1.875rem",
|
|
2443
|
-
"4xl": "2.25rem",
|
|
2444
|
-
"5xl": "3rem",
|
|
2445
|
-
"6xl": "3.75rem"
|
|
2446
|
-
},
|
|
2447
|
-
fontFamily: {
|
|
2448
|
-
sans: ["Inter", "system-ui", "sans-serif"],
|
|
2449
|
-
serif: ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
2450
|
-
mono: ["Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"]
|
|
2451
|
-
},
|
|
2452
|
-
borderRadius: {
|
|
2453
|
-
none: "0",
|
|
2454
|
-
sm: "0.125rem",
|
|
2455
|
-
base: "0.25rem",
|
|
2456
|
-
md: "0.375rem",
|
|
2457
|
-
lg: "0.5rem",
|
|
2458
|
-
xl: "0.75rem",
|
|
2459
|
-
"2xl": "1rem",
|
|
2460
|
-
"3xl": "1.5rem",
|
|
2461
|
-
full: "9999px"
|
|
2462
|
-
},
|
|
2463
|
-
shadows: {
|
|
2464
|
-
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
2465
|
-
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
2466
|
-
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
2467
|
-
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
2468
|
-
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
|
|
2469
|
-
},
|
|
2470
|
-
transitions: {
|
|
2471
|
-
fast: "150ms ease-in-out",
|
|
2472
|
-
base: "300ms ease-in-out",
|
|
2473
|
-
slow: "500ms ease-in-out"
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
|
|
2477
2496
|
const ThemeProvider = _ref => {
|
|
2478
2497
|
let {
|
|
2479
2498
|
children
|