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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAChF,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;CAChD;AAwFD,QAAA,MAAM,MAAM,uFAQX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3F,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwED,QAAA,MAAM,KAAK,qFAUT,CAAC;AAIH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1435,57 +1435,148 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1435
1435
|
|
|
1436
1436
|
var jsxRuntimeExports = jsxRuntime.exports;
|
|
1437
1437
|
|
|
1438
|
+
const theme = {
|
|
1439
|
+
colors: {
|
|
1440
|
+
primary: "#007AC2",
|
|
1441
|
+
error: "#ff1100",
|
|
1442
|
+
dark: "#333333",
|
|
1443
|
+
light: "#666666",
|
|
1444
|
+
white: "#ffffff",
|
|
1445
|
+
black: "#000000",
|
|
1446
|
+
gray: {
|
|
1447
|
+
50: "#f9fafb",
|
|
1448
|
+
100: "#f3f4f6",
|
|
1449
|
+
200: "#e5e7eb",
|
|
1450
|
+
300: "#d1d5db",
|
|
1451
|
+
400: "#9ca3af",
|
|
1452
|
+
500: "#6b7280",
|
|
1453
|
+
600: "#4b5563",
|
|
1454
|
+
700: "#374151",
|
|
1455
|
+
800: "#1f2937",
|
|
1456
|
+
900: "#111827"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
spacing: {
|
|
1460
|
+
0: "0",
|
|
1461
|
+
1: "0.25rem",
|
|
1462
|
+
2: "0.5rem",
|
|
1463
|
+
3: "0.75rem",
|
|
1464
|
+
4: "1rem",
|
|
1465
|
+
5: "1.25rem",
|
|
1466
|
+
6: "1.5rem",
|
|
1467
|
+
8: "2rem",
|
|
1468
|
+
10: "2.5rem",
|
|
1469
|
+
12: "3rem",
|
|
1470
|
+
16: "4rem",
|
|
1471
|
+
18: "4.5rem",
|
|
1472
|
+
20: "5rem",
|
|
1473
|
+
24: "6rem",
|
|
1474
|
+
32: "8rem",
|
|
1475
|
+
40: "10rem",
|
|
1476
|
+
48: "12rem",
|
|
1477
|
+
56: "14rem",
|
|
1478
|
+
64: "16rem",
|
|
1479
|
+
88: "22rem"
|
|
1480
|
+
},
|
|
1481
|
+
fontSize: {
|
|
1482
|
+
xs: "0.75rem",
|
|
1483
|
+
sm: "0.875rem",
|
|
1484
|
+
base: "1rem",
|
|
1485
|
+
lg: "1.125rem",
|
|
1486
|
+
xl: "1.25rem",
|
|
1487
|
+
"2xl": "1.5rem",
|
|
1488
|
+
"3xl": "1.875rem",
|
|
1489
|
+
"4xl": "2.25rem",
|
|
1490
|
+
"5xl": "3rem",
|
|
1491
|
+
"6xl": "3.75rem"
|
|
1492
|
+
},
|
|
1493
|
+
fontFamily: {
|
|
1494
|
+
sans: ["Inter", "system-ui", "sans-serif"],
|
|
1495
|
+
serif: ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
1496
|
+
mono: ["Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"]
|
|
1497
|
+
},
|
|
1498
|
+
borderRadius: {
|
|
1499
|
+
none: "0",
|
|
1500
|
+
sm: "0.125rem",
|
|
1501
|
+
base: "0.25rem",
|
|
1502
|
+
md: "0.375rem",
|
|
1503
|
+
lg: "0.5rem",
|
|
1504
|
+
xl: "0.75rem",
|
|
1505
|
+
"2xl": "1rem",
|
|
1506
|
+
"3xl": "1.5rem",
|
|
1507
|
+
full: "9999px"
|
|
1508
|
+
},
|
|
1509
|
+
shadows: {
|
|
1510
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
1511
|
+
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
1512
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
1513
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
1514
|
+
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
|
|
1515
|
+
},
|
|
1516
|
+
transitions: {
|
|
1517
|
+
fast: "150ms ease-in-out",
|
|
1518
|
+
base: "300ms ease-in-out",
|
|
1519
|
+
slow: "500ms ease-in-out"
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1438
1523
|
const _excluded$6 = ["className", "color", "variant", "size", "fullWidth", "loading", "disabled", "children"];
|
|
1439
1524
|
var _templateObject$6, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$6;
|
|
1440
1525
|
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 => {
|
|
1526
|
+
var _theme$borderRadius;
|
|
1441
1527
|
let {
|
|
1442
|
-
theme
|
|
1528
|
+
theme: theme$1
|
|
1443
1529
|
} = _ref;
|
|
1444
|
-
return theme.borderRadius.md;
|
|
1530
|
+
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;
|
|
1445
1531
|
}, _ref2 => {
|
|
1532
|
+
var _theme$fontFamily;
|
|
1446
1533
|
let {
|
|
1447
|
-
theme
|
|
1534
|
+
theme: theme$1
|
|
1448
1535
|
} = _ref2;
|
|
1449
|
-
return theme.fontFamily.sans.join(", ");
|
|
1536
|
+
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(", ");
|
|
1450
1537
|
}, _ref3 => {
|
|
1538
|
+
var _theme$transitions;
|
|
1451
1539
|
let {
|
|
1452
|
-
theme
|
|
1540
|
+
theme: theme$1
|
|
1453
1541
|
} = _ref3;
|
|
1454
|
-
return theme.transitions.base;
|
|
1542
|
+
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;
|
|
1455
1543
|
}, _ref4 => {
|
|
1544
|
+
var _theme$colors;
|
|
1456
1545
|
let {
|
|
1457
|
-
theme
|
|
1546
|
+
theme: theme$1
|
|
1458
1547
|
} = _ref4;
|
|
1459
|
-
return theme.colors.primary;
|
|
1548
|
+
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;
|
|
1460
1549
|
}, _ref5 => {
|
|
1461
1550
|
let {
|
|
1462
1551
|
variant,
|
|
1463
1552
|
color,
|
|
1464
|
-
theme
|
|
1553
|
+
theme: theme$1
|
|
1465
1554
|
} = _ref5;
|
|
1555
|
+
const currentTheme = theme$1 || theme;
|
|
1466
1556
|
if (variant === "contained") {
|
|
1467
|
-
return css(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n &:hover:not(:disabled) {\n background-color: ", "cc;\n }\n "])),
|
|
1557
|
+
return 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"]);
|
|
1468
1558
|
}
|
|
1469
1559
|
if (variant === "outlined") {
|
|
1470
|
-
return 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 "])),
|
|
1560
|
+
return 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"]);
|
|
1471
1561
|
}
|
|
1472
1562
|
if (variant === "link") {
|
|
1473
|
-
return 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 "])),
|
|
1563
|
+
return 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"]);
|
|
1474
1564
|
}
|
|
1475
1565
|
return css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral([""])));
|
|
1476
1566
|
}, _ref6 => {
|
|
1477
1567
|
let {
|
|
1478
1568
|
size,
|
|
1479
|
-
theme
|
|
1569
|
+
theme: theme$1
|
|
1480
1570
|
} = _ref6;
|
|
1571
|
+
const currentTheme = theme$1 || theme;
|
|
1481
1572
|
if (size === "sm") {
|
|
1482
|
-
return css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1573
|
+
return css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
|
|
1483
1574
|
}
|
|
1484
1575
|
if (size === "md") {
|
|
1485
|
-
return css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1576
|
+
return css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
|
|
1486
1577
|
}
|
|
1487
1578
|
if (size === "lg") {
|
|
1488
|
-
return css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1579
|
+
return css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[6], currentTheme.fontSize.base);
|
|
1489
1580
|
}
|
|
1490
1581
|
return css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteral([""])));
|
|
1491
1582
|
}, _ref7 => {
|
|
@@ -1530,66 +1621,76 @@ const InputContainer = styled.div(_templateObject$5 || (_templateObject$5 = _tag
|
|
|
1530
1621
|
return fullWidth && css(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
1531
1622
|
});
|
|
1532
1623
|
const InputLabel = styled.label(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
|
|
1624
|
+
var _theme$spacing;
|
|
1533
1625
|
let {
|
|
1534
|
-
theme
|
|
1626
|
+
theme: theme$1
|
|
1535
1627
|
} = _ref2;
|
|
1536
|
-
return theme.spacing[1];
|
|
1628
|
+
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];
|
|
1537
1629
|
}, _ref3 => {
|
|
1630
|
+
var _theme$fontSize;
|
|
1538
1631
|
let {
|
|
1539
|
-
theme
|
|
1632
|
+
theme: theme$1
|
|
1540
1633
|
} = _ref3;
|
|
1541
|
-
return theme.fontSize.sm;
|
|
1634
|
+
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;
|
|
1542
1635
|
}, _ref4 => {
|
|
1636
|
+
var _theme$colors;
|
|
1543
1637
|
let {
|
|
1544
|
-
theme
|
|
1638
|
+
theme: theme$1
|
|
1545
1639
|
} = _ref4;
|
|
1546
|
-
return theme.colors.gray[700];
|
|
1640
|
+
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];
|
|
1547
1641
|
});
|
|
1548
1642
|
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 => {
|
|
1643
|
+
var _theme$colors2, _theme$colors3;
|
|
1549
1644
|
let {
|
|
1550
|
-
theme,
|
|
1645
|
+
theme: theme$1,
|
|
1551
1646
|
hasError
|
|
1552
1647
|
} = _ref5;
|
|
1553
|
-
return hasError ? theme.colors.error : theme.colors.gray[300];
|
|
1648
|
+
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];
|
|
1554
1649
|
}, _ref6 => {
|
|
1650
|
+
var _theme$borderRadius;
|
|
1555
1651
|
let {
|
|
1556
|
-
theme
|
|
1652
|
+
theme: theme$1
|
|
1557
1653
|
} = _ref6;
|
|
1558
|
-
return theme.borderRadius.md;
|
|
1654
|
+
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;
|
|
1559
1655
|
}, _ref7 => {
|
|
1656
|
+
var _theme$transitions;
|
|
1560
1657
|
let {
|
|
1561
|
-
theme
|
|
1658
|
+
theme: theme$1
|
|
1562
1659
|
} = _ref7;
|
|
1563
|
-
return theme.transitions.base;
|
|
1660
|
+
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;
|
|
1564
1661
|
}, _ref8 => {
|
|
1662
|
+
var _theme$fontFamily;
|
|
1565
1663
|
let {
|
|
1566
|
-
theme
|
|
1664
|
+
theme: theme$1
|
|
1567
1665
|
} = _ref8;
|
|
1568
|
-
return theme.fontFamily.sans.join(", ");
|
|
1666
|
+
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(", ");
|
|
1569
1667
|
}, _ref9 => {
|
|
1668
|
+
var _theme$colors4, _theme$colors5;
|
|
1570
1669
|
let {
|
|
1571
|
-
theme,
|
|
1670
|
+
theme: theme$1,
|
|
1572
1671
|
hasError
|
|
1573
1672
|
} = _ref9;
|
|
1574
|
-
return hasError ? theme.colors.error : theme.colors.primary;
|
|
1673
|
+
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;
|
|
1575
1674
|
}, _ref0 => {
|
|
1675
|
+
var _theme$colors6;
|
|
1576
1676
|
let {
|
|
1577
|
-
theme
|
|
1677
|
+
theme: theme$1
|
|
1578
1678
|
} = _ref0;
|
|
1579
|
-
return theme.colors.gray[50];
|
|
1679
|
+
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];
|
|
1580
1680
|
}, _ref1 => {
|
|
1581
1681
|
let {
|
|
1582
1682
|
size,
|
|
1583
|
-
theme
|
|
1683
|
+
theme: theme$1
|
|
1584
1684
|
} = _ref1;
|
|
1685
|
+
const currentTheme = theme$1 || theme;
|
|
1585
1686
|
if (size === "sm") {
|
|
1586
|
-
return css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1687
|
+
return css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
|
|
1587
1688
|
}
|
|
1588
1689
|
if (size === "md") {
|
|
1589
|
-
return css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1690
|
+
return css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
|
|
1590
1691
|
}
|
|
1591
1692
|
if (size === "lg") {
|
|
1592
|
-
return css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])),
|
|
1693
|
+
return css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[4], currentTheme.fontSize.base);
|
|
1593
1694
|
}
|
|
1594
1695
|
return css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteral([""])));
|
|
1595
1696
|
}, _ref10 => {
|
|
@@ -1599,21 +1700,24 @@ const StyledInput = styled.input(_templateObject4$5 || (_templateObject4$5 = _ta
|
|
|
1599
1700
|
return fullWidth && css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
1600
1701
|
});
|
|
1601
1702
|
const HelperText$5 = styled.p(_templateObject0$5 || (_templateObject0$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref11 => {
|
|
1703
|
+
var _theme$spacing2;
|
|
1602
1704
|
let {
|
|
1603
|
-
theme
|
|
1705
|
+
theme: theme$1
|
|
1604
1706
|
} = _ref11;
|
|
1605
|
-
return theme.spacing[1];
|
|
1707
|
+
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];
|
|
1606
1708
|
}, _ref12 => {
|
|
1709
|
+
var _theme$fontSize2;
|
|
1607
1710
|
let {
|
|
1608
|
-
theme
|
|
1711
|
+
theme: theme$1
|
|
1609
1712
|
} = _ref12;
|
|
1610
|
-
return theme.fontSize.xs;
|
|
1713
|
+
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;
|
|
1611
1714
|
}, _ref13 => {
|
|
1715
|
+
var _theme$colors7, _theme$colors8;
|
|
1612
1716
|
let {
|
|
1613
|
-
theme,
|
|
1717
|
+
theme: theme$1,
|
|
1614
1718
|
hasError
|
|
1615
1719
|
} = _ref13;
|
|
1616
|
-
return hasError ? theme.colors.error : theme.colors.gray[500];
|
|
1720
|
+
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];
|
|
1617
1721
|
});
|
|
1618
1722
|
const Input = /*#__PURE__*/React__default.forwardRef((_ref14, ref) => {
|
|
1619
1723
|
let {
|
|
@@ -2368,91 +2472,6 @@ const Select = /*#__PURE__*/React__default.forwardRef((_ref16, ref) => {
|
|
|
2368
2472
|
});
|
|
2369
2473
|
Select.displayName = "Select";
|
|
2370
2474
|
|
|
2371
|
-
const theme = {
|
|
2372
|
-
colors: {
|
|
2373
|
-
primary: "#007AC2",
|
|
2374
|
-
error: "#ff1100",
|
|
2375
|
-
dark: "#333333",
|
|
2376
|
-
light: "#666666",
|
|
2377
|
-
white: "#ffffff",
|
|
2378
|
-
black: "#000000",
|
|
2379
|
-
gray: {
|
|
2380
|
-
50: "#f9fafb",
|
|
2381
|
-
100: "#f3f4f6",
|
|
2382
|
-
200: "#e5e7eb",
|
|
2383
|
-
300: "#d1d5db",
|
|
2384
|
-
400: "#9ca3af",
|
|
2385
|
-
500: "#6b7280",
|
|
2386
|
-
600: "#4b5563",
|
|
2387
|
-
700: "#374151",
|
|
2388
|
-
800: "#1f2937",
|
|
2389
|
-
900: "#111827"
|
|
2390
|
-
}
|
|
2391
|
-
},
|
|
2392
|
-
spacing: {
|
|
2393
|
-
0: "0",
|
|
2394
|
-
1: "0.25rem",
|
|
2395
|
-
2: "0.5rem",
|
|
2396
|
-
3: "0.75rem",
|
|
2397
|
-
4: "1rem",
|
|
2398
|
-
5: "1.25rem",
|
|
2399
|
-
6: "1.5rem",
|
|
2400
|
-
8: "2rem",
|
|
2401
|
-
10: "2.5rem",
|
|
2402
|
-
12: "3rem",
|
|
2403
|
-
16: "4rem",
|
|
2404
|
-
18: "4.5rem",
|
|
2405
|
-
20: "5rem",
|
|
2406
|
-
24: "6rem",
|
|
2407
|
-
32: "8rem",
|
|
2408
|
-
40: "10rem",
|
|
2409
|
-
48: "12rem",
|
|
2410
|
-
56: "14rem",
|
|
2411
|
-
64: "16rem",
|
|
2412
|
-
88: "22rem"
|
|
2413
|
-
},
|
|
2414
|
-
fontSize: {
|
|
2415
|
-
xs: "0.75rem",
|
|
2416
|
-
sm: "0.875rem",
|
|
2417
|
-
base: "1rem",
|
|
2418
|
-
lg: "1.125rem",
|
|
2419
|
-
xl: "1.25rem",
|
|
2420
|
-
"2xl": "1.5rem",
|
|
2421
|
-
"3xl": "1.875rem",
|
|
2422
|
-
"4xl": "2.25rem",
|
|
2423
|
-
"5xl": "3rem",
|
|
2424
|
-
"6xl": "3.75rem"
|
|
2425
|
-
},
|
|
2426
|
-
fontFamily: {
|
|
2427
|
-
sans: ["Inter", "system-ui", "sans-serif"],
|
|
2428
|
-
serif: ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
2429
|
-
mono: ["Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"]
|
|
2430
|
-
},
|
|
2431
|
-
borderRadius: {
|
|
2432
|
-
none: "0",
|
|
2433
|
-
sm: "0.125rem",
|
|
2434
|
-
base: "0.25rem",
|
|
2435
|
-
md: "0.375rem",
|
|
2436
|
-
lg: "0.5rem",
|
|
2437
|
-
xl: "0.75rem",
|
|
2438
|
-
"2xl": "1rem",
|
|
2439
|
-
"3xl": "1.5rem",
|
|
2440
|
-
full: "9999px"
|
|
2441
|
-
},
|
|
2442
|
-
shadows: {
|
|
2443
|
-
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
2444
|
-
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
2445
|
-
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
2446
|
-
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
2447
|
-
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
|
|
2448
|
-
},
|
|
2449
|
-
transitions: {
|
|
2450
|
-
fast: "150ms ease-in-out",
|
|
2451
|
-
base: "300ms ease-in-out",
|
|
2452
|
-
slow: "500ms ease-in-out"
|
|
2453
|
-
}
|
|
2454
|
-
};
|
|
2455
|
-
|
|
2456
2475
|
const ThemeProvider = _ref => {
|
|
2457
2476
|
let {
|
|
2458
2477
|
children
|