thailife-react 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var styled = require('styled-components');
6
+ var styled = require('@emotion/styled');
7
+ var react = require('@emotion/react');
7
8
 
8
9
  function _interopNamespaceDefault(e) {
9
10
  var n = Object.create(null);
@@ -1542,7 +1543,7 @@ const theme = {
1542
1543
  };
1543
1544
 
1544
1545
  const _excluded$6 = ["className", "color", "variant", "size", "fullWidth", "loading", "disabled", "children"];
1545
- var _templateObject$6, _templateObject2$6, _templateObject3$6, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$6;
1546
+ var _templateObject$6;
1546
1547
  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
1548
  var _theme$borderRadius;
1548
1549
  let {
@@ -1575,15 +1576,15 @@ const StyledButton = styled.button(_templateObject$6 || (_templateObject$6 = _ta
1575
1576
  } = _ref5;
1576
1577
  const currentTheme = theme$1 || theme;
1577
1578
  if (variant === "contained") {
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"]);
1579
+ return "\n background-color: ".concat(currentTheme.colors[color || "primary"], ";\n color: ").concat(currentTheme.colors.white, ";\n &:hover:not(:disabled) {\n background-color: ").concat(currentTheme.colors[color || "primary"], "cc;\n }\n ");
1579
1580
  }
1580
1581
  if (variant === "outlined") {
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"]);
1582
+ return "\n background-color: transparent;\n border: 1px solid ".concat(currentTheme.colors[color || "primary"], ";\n color: ").concat(currentTheme.colors[color || "primary"], ";\n &:hover:not(:disabled) {\n background-color: ").concat(currentTheme.colors[color || "primary"], "1a;\n }\n ");
1582
1583
  }
1583
1584
  if (variant === "link") {
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"]);
1585
+ return "\n background-color: transparent;\n color: ".concat(currentTheme.colors[color || "primary"], ";\n text-decoration: underline;\n &:hover:not(:disabled) {\n text-decoration: none;\n }\n ");
1585
1586
  }
1586
- return styled.css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral([""])));
1587
+ return "";
1587
1588
  }, _ref6 => {
1588
1589
  let {
1589
1590
  size,
@@ -1591,20 +1592,20 @@ const StyledButton = styled.button(_templateObject$6 || (_templateObject$6 = _ta
1591
1592
  } = _ref6;
1592
1593
  const currentTheme = theme$1 || theme;
1593
1594
  if (size === "sm") {
1594
- return styled.css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
1595
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[3], ";\n font-size: ").concat(currentTheme.fontSize.sm, ";\n ");
1595
1596
  }
1596
1597
  if (size === "md") {
1597
- return styled.css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
1598
+ return "\n padding: ".concat(currentTheme.spacing[2], " ").concat(currentTheme.spacing[4], ";\n font-size: ").concat(currentTheme.fontSize.sm, ";\n ");
1598
1599
  }
1599
1600
  if (size === "lg") {
1600
- return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[6], currentTheme.fontSize.base);
1601
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[6], ";\n font-size: ").concat(currentTheme.fontSize.base, ";\n ");
1601
1602
  }
1602
- return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteral([""])));
1603
+ return "";
1603
1604
  }, _ref7 => {
1604
1605
  let {
1605
1606
  fullWidth
1606
1607
  } = _ref7;
1607
- return fullWidth && styled.css(_templateObject0$6 || (_templateObject0$6 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1608
+ return fullWidth && "\n width: 100%;\n ";
1608
1609
  });
1609
1610
  const Button = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
1610
1611
  let {
@@ -1634,14 +1635,14 @@ const Button = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
1634
1635
  Button.displayName = "Button";
1635
1636
 
1636
1637
  const _excluded$5 = ["className", "type", "label", "error", "helperText", "size", "fullWidth", "id"];
1637
- var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$5, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject0$5;
1638
+ var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$5;
1638
1639
  const InputContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n"])), _ref => {
1639
1640
  let {
1640
1641
  fullWidth
1641
1642
  } = _ref;
1642
- return fullWidth && styled.css(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1643
+ return fullWidth && "\n width: 100%;\n ";
1643
1644
  });
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
+ const InputLabel = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
1645
1646
  var _theme$spacing;
1646
1647
  let {
1647
1648
  theme: theme$1
@@ -1660,7 +1661,7 @@ const InputLabel = styled.label(_templateObject3$5 || (_templateObject3$5 = _tag
1660
1661
  } = _ref4;
1661
1662
  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];
1662
1663
  });
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
+ const StyledInput = styled.input(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n font-family: ", ";\n padding: ", " ", ";\n font-size: ", ";\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"])), _ref5 => {
1664
1665
  var _theme$colors2, _theme$colors3;
1665
1666
  let {
1666
1667
  theme: theme$1,
@@ -1686,61 +1687,63 @@ const StyledInput = styled.input(_templateObject4$5 || (_templateObject4$5 = _ta
1686
1687
  } = _ref8;
1687
1688
  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(", ");
1688
1689
  }, _ref9 => {
1689
- var _theme$colors4, _theme$colors5;
1690
+ var _theme$spacing2;
1690
1691
  let {
1691
- theme: theme$1,
1692
- hasError
1692
+ theme: theme$1
1693
1693
  } = _ref9;
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;
1694
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing2 = theme$1.spacing) === null || _theme$spacing2 === void 0 ? void 0 : _theme$spacing2[2]) || theme.spacing[2];
1695
1695
  }, _ref0 => {
1696
- var _theme$colors6;
1696
+ var _theme$spacing3;
1697
1697
  let {
1698
1698
  theme: theme$1
1699
1699
  } = _ref0;
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];
1700
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing3 = theme$1.spacing) === null || _theme$spacing3 === void 0 ? void 0 : _theme$spacing3[4]) || theme.spacing[4];
1701
1701
  }, _ref1 => {
1702
+ var _theme$fontSize2;
1702
1703
  let {
1703
- size,
1704
1704
  theme: theme$1
1705
1705
  } = _ref1;
1706
- const currentTheme = theme$1 || theme;
1707
- if (size === "sm") {
1708
- return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[3], currentTheme.fontSize.sm);
1709
- }
1710
- if (size === "md") {
1711
- return styled.css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[2], currentTheme.spacing[4], currentTheme.fontSize.sm);
1712
- }
1713
- if (size === "lg") {
1714
- return styled.css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), currentTheme.spacing[3], currentTheme.spacing[4], currentTheme.fontSize.base);
1715
- }
1716
- return styled.css(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteral([""])));
1706
+ return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize2 = theme$1.fontSize) === null || _theme$fontSize2 === void 0 ? void 0 : _theme$fontSize2.sm) || theme.fontSize.sm;
1717
1707
  }, _ref10 => {
1708
+ var _theme$colors4, _theme$colors5;
1718
1709
  let {
1719
- fullWidth
1710
+ theme: theme$1,
1711
+ hasError
1720
1712
  } = _ref10;
1721
- return fullWidth && styled.css(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1722
- });
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;
1713
+ 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;
1714
+ }, _ref11 => {
1715
+ var _theme$colors6;
1725
1716
  let {
1726
1717
  theme: theme$1
1727
1718
  } = _ref11;
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];
1719
+ 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];
1729
1720
  }, _ref12 => {
1730
- var _theme$fontSize2;
1731
1721
  let {
1732
- theme: theme$1
1722
+ fullWidth
1733
1723
  } = _ref12;
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;
1735
- }, _ref13 => {
1724
+ return fullWidth && "\n width: 100%;\n ";
1725
+ });
1726
+ const HelperText$5 = styled.p(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref13 => {
1727
+ var _theme$spacing4;
1728
+ let {
1729
+ theme: theme$1
1730
+ } = _ref13;
1731
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing4 = theme$1.spacing) === null || _theme$spacing4 === void 0 ? void 0 : _theme$spacing4[1]) || theme.spacing[1];
1732
+ }, _ref14 => {
1733
+ var _theme$fontSize3;
1734
+ let {
1735
+ theme: theme$1
1736
+ } = _ref14;
1737
+ return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize3 = theme$1.fontSize) === null || _theme$fontSize3 === void 0 ? void 0 : _theme$fontSize3.xs) || theme.fontSize.xs;
1738
+ }, _ref15 => {
1736
1739
  var _theme$colors7, _theme$colors8;
1737
1740
  let {
1738
1741
  theme: theme$1,
1739
1742
  hasError
1740
- } = _ref13;
1743
+ } = _ref15;
1741
1744
  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];
1742
1745
  });
1743
- const Input = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1746
+ const Input = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
1744
1747
  let {
1745
1748
  className,
1746
1749
  type = "text",
@@ -1750,8 +1753,8 @@ const Input = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1750
1753
  size = "md",
1751
1754
  fullWidth = false,
1752
1755
  id
1753
- } = _ref14,
1754
- props = _objectWithoutProperties(_ref14, _excluded$5);
1756
+ } = _ref16,
1757
+ props = _objectWithoutProperties(_ref16, _excluded$5);
1755
1758
  const inputId = id || "input-".concat(Math.random().toString(36).substr(2, 9));
1756
1759
  return jsxRuntimeExports.jsxs(InputContainer, {
1757
1760
  fullWidth: fullWidth,
@@ -1760,7 +1763,6 @@ const Input = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1760
1763
  children: label
1761
1764
  }), jsxRuntimeExports.jsx(StyledInput, _objectSpread2({
1762
1765
  type: type,
1763
- size: size,
1764
1766
  fullWidth: fullWidth,
1765
1767
  hasError: !!error,
1766
1768
  className: className,
@@ -1775,98 +1777,111 @@ const Input = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1775
1777
  Input.displayName = "Input";
1776
1778
 
1777
1779
  const _excluded$4 = ["className", "label", "error", "helperText", "size", "fullWidth", "rows", "id"];
1778
- var _templateObject$4, _templateObject2$4, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4;
1780
+ var _templateObject$4, _templateObject2$4, _templateObject3$4, _templateObject4$4;
1779
1781
  const TextareaContainer = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n"])), _ref => {
1780
1782
  let {
1781
1783
  fullWidth
1782
1784
  } = _ref;
1783
- return fullWidth && styled.css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1785
+ return fullWidth && "\n width: 100%;\n ";
1784
1786
  });
1785
- const TextareaLabel = styled.label(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
1787
+ const TextareaLabel = styled.label(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
1788
+ var _theme$spacing;
1786
1789
  let {
1787
- theme
1790
+ theme: theme$1
1788
1791
  } = _ref2;
1789
- return theme.spacing[1];
1792
+ 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];
1790
1793
  }, _ref3 => {
1794
+ var _theme$fontSize;
1791
1795
  let {
1792
- theme
1796
+ theme: theme$1
1793
1797
  } = _ref3;
1794
- return theme.fontSize.sm;
1798
+ 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;
1795
1799
  }, _ref4 => {
1800
+ var _theme$colors;
1796
1801
  let {
1797
- theme
1802
+ theme: theme$1
1798
1803
  } = _ref4;
1799
- return theme.colors.gray[700];
1804
+ 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];
1800
1805
  });
1801
- const StyledTextarea = styled.textarea(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n resize: vertical;\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 => {
1806
+ const StyledTextarea = styled.textarea(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n resize: vertical;\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 => {
1807
+ var _theme$colors2, _theme$colors3;
1802
1808
  let {
1803
- theme,
1809
+ theme: theme$1,
1804
1810
  hasError
1805
1811
  } = _ref5;
1806
- return hasError ? theme.colors.error : theme.colors.gray[300];
1812
+ 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];
1807
1813
  }, _ref6 => {
1814
+ var _theme$borderRadius;
1808
1815
  let {
1809
- theme
1816
+ theme: theme$1
1810
1817
  } = _ref6;
1811
- return theme.borderRadius.md;
1818
+ 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;
1812
1819
  }, _ref7 => {
1820
+ var _theme$transitions;
1813
1821
  let {
1814
- theme
1822
+ theme: theme$1
1815
1823
  } = _ref7;
1816
- return theme.transitions.base;
1824
+ 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;
1817
1825
  }, _ref8 => {
1826
+ var _theme$fontFamily;
1818
1827
  let {
1819
- theme
1828
+ theme: theme$1
1820
1829
  } = _ref8;
1821
- return theme.fontFamily.sans.join(", ");
1830
+ 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(", ");
1822
1831
  }, _ref9 => {
1832
+ var _theme$colors4, _theme$colors5;
1823
1833
  let {
1824
- theme,
1834
+ theme: theme$1,
1825
1835
  hasError
1826
1836
  } = _ref9;
1827
- return hasError ? theme.colors.error : theme.colors.primary;
1837
+ 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;
1828
1838
  }, _ref0 => {
1839
+ var _theme$colors6;
1829
1840
  let {
1830
- theme
1841
+ theme: theme$1
1831
1842
  } = _ref0;
1832
- return theme.colors.gray[50];
1843
+ 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];
1833
1844
  }, _ref1 => {
1834
1845
  let {
1835
1846
  size,
1836
- theme
1847
+ theme: theme$1
1837
1848
  } = _ref1;
1849
+ const currentTheme = theme$1 || theme;
1838
1850
  if (size === "sm") {
1839
- return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[3], theme.fontSize.sm);
1851
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[3], ";\n font-size: ").concat(currentTheme.fontSize.sm, ";\n ");
1840
1852
  }
1841
1853
  if (size === "md") {
1842
- return styled.css(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[2], theme.spacing[4], theme.fontSize.sm);
1854
+ return "\n padding: ".concat(currentTheme.spacing[2], " ").concat(currentTheme.spacing[4], ";\n font-size: ").concat(currentTheme.fontSize.sm, ";\n ");
1843
1855
  }
1844
1856
  if (size === "lg") {
1845
- return styled.css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[4], theme.fontSize.base);
1857
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[4], ";\n font-size: ").concat(currentTheme.fontSize.base, ";\n ");
1846
1858
  }
1847
- return styled.css(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteral([""])));
1859
+ return "";
1848
1860
  }, _ref10 => {
1849
1861
  let {
1850
1862
  fullWidth
1851
1863
  } = _ref10;
1852
- return fullWidth && styled.css(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1864
+ return fullWidth && "\n width: 100%;\n ";
1853
1865
  });
1854
- const HelperText$4 = styled.p(_templateObject0$4 || (_templateObject0$4 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref11 => {
1866
+ const HelperText$4 = styled.p(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref11 => {
1867
+ var _theme$spacing2;
1855
1868
  let {
1856
- theme
1869
+ theme: theme$1
1857
1870
  } = _ref11;
1858
- return theme.spacing[1];
1871
+ 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];
1859
1872
  }, _ref12 => {
1873
+ var _theme$fontSize2;
1860
1874
  let {
1861
- theme
1875
+ theme: theme$1
1862
1876
  } = _ref12;
1863
- return theme.fontSize.xs;
1877
+ 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;
1864
1878
  }, _ref13 => {
1879
+ var _theme$colors7, _theme$colors8;
1865
1880
  let {
1866
- theme,
1881
+ theme: theme$1,
1867
1882
  hasError
1868
1883
  } = _ref13;
1869
- return hasError ? theme.colors.error : theme.colors.gray[500];
1884
+ 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];
1870
1885
  });
1871
1886
  const Textarea = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1872
1887
  let {
@@ -1903,113 +1918,128 @@ const Textarea = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
1903
1918
  Textarea.displayName = "Textarea";
1904
1919
 
1905
1920
  const _excluded$3 = ["className", "label", "error", "helperText", "size", "fullWidth", "accept", "multiple", "buttonText", "id"];
1906
- var _templateObject$3, _templateObject2$3, _templateObject3$3, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3, _templateObject11$2, _templateObject12$2;
1921
+ var _templateObject$3, _templateObject2$3, _templateObject3$3, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7, _templateObject8;
1907
1922
  const InputFileContainer = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n"])), _ref => {
1908
1923
  let {
1909
1924
  fullWidth
1910
1925
  } = _ref;
1911
- return fullWidth && styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1926
+ return fullWidth && "\n width: 100%;\n ";
1912
1927
  });
1913
- const InputFileLabel = styled.label(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
1928
+ const InputFileLabel = styled.label(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
1929
+ var _theme$spacing;
1914
1930
  let {
1915
- theme
1931
+ theme: theme$1
1916
1932
  } = _ref2;
1917
- return theme.spacing[1];
1933
+ 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];
1918
1934
  }, _ref3 => {
1935
+ var _theme$fontSize;
1919
1936
  let {
1920
- theme
1937
+ theme: theme$1
1921
1938
  } = _ref3;
1922
- return theme.fontSize.sm;
1939
+ 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;
1923
1940
  }, _ref4 => {
1941
+ var _theme$colors;
1924
1942
  let {
1925
- theme
1943
+ theme: theme$1
1926
1944
  } = _ref4;
1927
- return theme.colors.gray[700];
1945
+ 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];
1928
1946
  });
1929
- const InputFileWrapper = styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n position: relative;\n"])));
1930
- const HiddenInput = styled.input(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n"])));
1931
- const FileUploadArea = styled.div(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral(["\n border: 2px dashed ", ";\n transition: all ", ";\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus-within {\n border-color: ", ";\n }\n\n ", "\n\n ", "\n"])), _ref5 => {
1947
+ const InputFileWrapper = styled.div(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n position: relative;\n"])));
1948
+ const HiddenInput = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n"])));
1949
+ const FileUploadArea = styled.div(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["\n border: 2px dashed ", ";\n transition: all ", ";\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus-within {\n border-color: ", ";\n }\n\n ", "\n\n ", "\n"])), _ref5 => {
1950
+ var _theme$colors2, _theme$colors3;
1932
1951
  let {
1933
- theme,
1952
+ theme: theme$1,
1934
1953
  hasError
1935
1954
  } = _ref5;
1936
- return hasError ? theme.colors.error : theme.colors.gray[300];
1955
+ 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];
1937
1956
  }, _ref6 => {
1957
+ var _theme$transitions;
1938
1958
  let {
1939
- theme
1959
+ theme: theme$1
1940
1960
  } = _ref6;
1941
- return theme.transitions.base;
1961
+ 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;
1942
1962
  }, _ref7 => {
1963
+ var _theme$colors4, _theme$colors5;
1943
1964
  let {
1944
- theme,
1965
+ theme: theme$1,
1945
1966
  hasError
1946
1967
  } = _ref7;
1947
- return hasError ? theme.colors.error : theme.colors.primary;
1968
+ 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;
1948
1969
  }, _ref8 => {
1970
+ var _theme$colors6, _theme$colors7;
1949
1971
  let {
1950
- theme,
1972
+ theme: theme$1,
1951
1973
  hasError
1952
1974
  } = _ref8;
1953
- return hasError ? theme.colors.error : theme.colors.primary;
1975
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors6 = theme$1.colors) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors7 = theme$1.colors) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7.primary) || theme.colors.primary;
1954
1976
  }, _ref9 => {
1955
1977
  let {
1956
1978
  size,
1957
- theme
1979
+ theme: theme$1
1958
1980
  } = _ref9;
1981
+ const currentTheme = theme$1 || theme;
1959
1982
  if (size === "sm") {
1960
- return styled.css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[3], theme.fontSize.sm);
1983
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[3], ";\n font-size: ").concat(currentTheme.fontSize.sm, ";\n ");
1961
1984
  }
1962
1985
  if (size === "md") {
1963
- return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[2], theme.spacing[4], theme.fontSize.base);
1986
+ return "\n padding: ".concat(currentTheme.spacing[2], " ").concat(currentTheme.spacing[4], ";\n font-size: ").concat(currentTheme.fontSize.base, ";\n ");
1964
1987
  }
1965
1988
  if (size === "lg") {
1966
- return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[4], theme.fontSize.base);
1989
+ return "\n padding: ".concat(currentTheme.spacing[3], " ").concat(currentTheme.spacing[4], ";\n font-size: ").concat(currentTheme.fontSize.base, ";\n ");
1967
1990
  }
1968
- return styled.css(_templateObject0$3 || (_templateObject0$3 = _taggedTemplateLiteral([""])));
1991
+ return "";
1969
1992
  }, _ref0 => {
1970
1993
  let {
1971
1994
  fullWidth
1972
1995
  } = _ref0;
1973
- return fullWidth && styled.css(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
1996
+ return fullWidth && "\n width: 100%;\n ";
1974
1997
  });
1975
- const ButtonText = styled.span(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), _ref1 => {
1998
+ const ButtonText = styled.span(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), _ref1 => {
1999
+ var _theme$colors8;
1976
2000
  let {
1977
- theme
2001
+ theme: theme$1
1978
2002
  } = _ref1;
1979
- return theme.colors.gray[600];
2003
+ return (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[600]) || theme.colors.gray[600];
1980
2004
  });
1981
- const MultipleText = styled.span(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteral(["\n margin-left: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref10 => {
2005
+ const MultipleText = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref10 => {
2006
+ var _theme$spacing2;
1982
2007
  let {
1983
- theme
2008
+ theme: theme$1
1984
2009
  } = _ref10;
1985
- return theme.spacing[1];
2010
+ 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];
1986
2011
  }, _ref11 => {
2012
+ var _theme$fontSize2;
1987
2013
  let {
1988
- theme
2014
+ theme: theme$1
1989
2015
  } = _ref11;
1990
- return theme.fontSize.xs;
2016
+ 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;
1991
2017
  }, _ref12 => {
2018
+ var _theme$colors9;
1992
2019
  let {
1993
- theme
2020
+ theme: theme$1
1994
2021
  } = _ref12;
1995
- return theme.colors.gray[500];
2022
+ return (theme$1 === null || theme$1 === void 0 || (_theme$colors9 = theme$1.colors) === null || _theme$colors9 === void 0 || (_theme$colors9 = _theme$colors9.gray) === null || _theme$colors9 === void 0 ? void 0 : _theme$colors9[500]) || theme.colors.gray[500];
1996
2023
  });
1997
- const HelperText$3 = styled.p(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref13 => {
2024
+ const HelperText$3 = styled.p(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref13 => {
2025
+ var _theme$spacing3;
1998
2026
  let {
1999
- theme
2027
+ theme: theme$1
2000
2028
  } = _ref13;
2001
- return theme.spacing[1];
2029
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing3 = theme$1.spacing) === null || _theme$spacing3 === void 0 ? void 0 : _theme$spacing3[1]) || theme.spacing[1];
2002
2030
  }, _ref14 => {
2031
+ var _theme$fontSize3;
2003
2032
  let {
2004
- theme
2033
+ theme: theme$1
2005
2034
  } = _ref14;
2006
- return theme.fontSize.xs;
2035
+ return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize3 = theme$1.fontSize) === null || _theme$fontSize3 === void 0 ? void 0 : _theme$fontSize3.xs) || theme.fontSize.xs;
2007
2036
  }, _ref15 => {
2037
+ var _theme$colors0, _theme$colors1;
2008
2038
  let {
2009
- theme,
2039
+ theme: theme$1,
2010
2040
  hasError
2011
2041
  } = _ref15;
2012
- return hasError ? theme.colors.error : theme.colors.gray[500];
2042
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors0 = theme$1.colors) === null || _theme$colors0 === void 0 ? void 0 : _theme$colors0.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors1 = theme$1.colors) === null || _theme$colors1 === void 0 || (_theme$colors1 = _theme$colors1.gray) === null || _theme$colors1 === void 0 ? void 0 : _theme$colors1[500]) || theme.colors.gray[500];
2013
2043
  });
2014
2044
  const InputFile = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
2015
2045
  let {
@@ -2058,100 +2088,92 @@ const InputFile = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
2058
2088
  InputFile.displayName = "InputFile";
2059
2089
 
2060
2090
  const _excluded$2 = ["className", "label", "error", "helperText", "size", "fullWidth", "indeterminate", "id"];
2061
- var _templateObject$2, _templateObject2$2, _templateObject3$2, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$1, _templateObject12$1, _templateObject13$1;
2091
+ var _templateObject$2, _templateObject2$2, _templateObject3$2, _templateObject4$2, _templateObject5$2, _templateObject6$2;
2062
2092
  const CheckboxContainer = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n ", "\n"])), _ref => {
2063
2093
  let {
2064
2094
  fullWidth
2065
2095
  } = _ref;
2066
- return fullWidth && styled.css(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
2096
+ return fullWidth && "\n width: 100%;\n ";
2067
2097
  });
2068
- const CheckboxWrapper = styled.div(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: ", ";\n"])), _ref2 => {
2098
+ const CheckboxWrapper = styled.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: ", ";\n"])), _ref2 => {
2099
+ var _theme$spacing;
2069
2100
  let {
2070
- theme
2101
+ theme: theme$1
2071
2102
  } = _ref2;
2072
- return theme.spacing[5];
2103
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing = theme$1.spacing) === null || _theme$spacing === void 0 ? void 0 : _theme$spacing[5]) || theme.spacing[5];
2073
2104
  });
2074
- const StyledCheckbox = styled.input(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral(["\n border-radius: ", ";\n border: 1px solid ", ";\n transition: all ", ";\n outline: none;\n\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n ", "\n"])), _ref3 => {
2105
+ const StyledCheckbox = styled.input(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n border-radius: ", ";\n border: 1px solid ", ";\n transition: all ", ";\n outline: none;\n\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n ", "\n"])), _ref3 => {
2106
+ var _theme$borderRadius;
2075
2107
  let {
2076
- theme
2108
+ theme: theme$1
2077
2109
  } = _ref3;
2078
- return theme.borderRadius.md;
2110
+ 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;
2079
2111
  }, _ref4 => {
2112
+ var _theme$colors, _theme$colors2;
2080
2113
  let {
2081
- theme,
2114
+ theme: theme$1,
2082
2115
  hasError
2083
2116
  } = _ref4;
2084
- return hasError ? theme.colors.error : theme.colors.gray[300];
2117
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors = theme$1.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors2 = theme$1.colors) === null || _theme$colors2 === void 0 || (_theme$colors2 = _theme$colors2.gray) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2[300]) || theme.colors.gray[300];
2085
2118
  }, _ref5 => {
2119
+ var _theme$transitions;
2086
2120
  let {
2087
- theme
2121
+ theme: theme$1
2088
2122
  } = _ref5;
2089
- return theme.transitions.base;
2123
+ 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;
2090
2124
  }, _ref6 => {
2125
+ var _theme$colors3, _theme$colors4;
2091
2126
  let {
2092
- theme,
2127
+ theme: theme$1,
2093
2128
  hasError
2094
2129
  } = _ref6;
2095
- return hasError ? theme.colors.error : theme.colors.primary;
2130
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors3 = theme$1.colors) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors4 = theme$1.colors) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.primary) || theme.colors.primary;
2096
2131
  }, _ref7 => {
2097
2132
  let {
2098
- size,
2099
- theme
2133
+ theme: theme$1
2100
2134
  } = _ref7;
2101
- if (size === "sm") {
2102
- return styled.css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[4], theme.spacing[4]);
2103
- }
2104
- if (size === "md") {
2105
- return styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[5], theme.spacing[5]);
2106
- }
2107
- if (size === "lg") {
2108
- return styled.css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[6], theme.spacing[6]);
2109
- }
2110
- return styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral([""])));
2135
+ const currentTheme = theme$1 || theme;
2136
+ return "\n width: ".concat(currentTheme.spacing[5], ";\n height: ").concat(currentTheme.spacing[5], ";\n ");
2111
2137
  });
2112
- const LabelContainer$1 = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), _ref8 => {
2138
+ const LabelContainer$1 = styled.div(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), _ref8 => {
2139
+ var _theme$spacing2;
2113
2140
  let {
2114
- theme
2141
+ theme: theme$1
2115
2142
  } = _ref8;
2116
- return theme.spacing[3];
2143
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing2 = theme$1.spacing) === null || _theme$spacing2 === void 0 ? void 0 : _theme$spacing2[3]) || theme.spacing[3];
2117
2144
  });
2118
- const CheckboxLabel = styled.label(_templateObject0$2 || (_templateObject0$2 = _taggedTemplateLiteral(["\n font-weight: 500;\n color: ", ";\n cursor: pointer;\n\n ", "\n"])), _ref9 => {
2145
+ const CheckboxLabel = styled.label(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n font-weight: 500;\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n"])), _ref9 => {
2146
+ var _theme$colors5;
2119
2147
  let {
2120
- theme
2148
+ theme: theme$1
2121
2149
  } = _ref9;
2122
- return theme.colors.gray[700];
2150
+ return (theme$1 === null || theme$1 === void 0 || (_theme$colors5 = theme$1.colors) === null || _theme$colors5 === void 0 || (_theme$colors5 = _theme$colors5.gray) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5[700]) || theme.colors.gray[700];
2123
2151
  }, _ref0 => {
2152
+ var _theme$fontSize;
2124
2153
  let {
2125
- size,
2126
- theme
2154
+ theme: theme$1
2127
2155
  } = _ref0;
2128
- if (size === "sm") {
2129
- return styled.css(_templateObject1$2 || (_templateObject1$2 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.sm);
2130
- }
2131
- if (size === "md") {
2132
- return styled.css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.sm);
2133
- }
2134
- if (size === "lg") {
2135
- return styled.css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.base);
2136
- }
2137
- return styled.css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteral([""])));
2156
+ 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;
2138
2157
  });
2139
- const HelperText$2 = styled.p(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref1 => {
2158
+ const HelperText$2 = styled.p(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref1 => {
2159
+ var _theme$spacing3;
2140
2160
  let {
2141
- theme
2161
+ theme: theme$1
2142
2162
  } = _ref1;
2143
- return theme.spacing[1];
2163
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing3 = theme$1.spacing) === null || _theme$spacing3 === void 0 ? void 0 : _theme$spacing3[1]) || theme.spacing[1];
2144
2164
  }, _ref10 => {
2165
+ var _theme$fontSize2;
2145
2166
  let {
2146
- theme
2167
+ theme: theme$1
2147
2168
  } = _ref10;
2148
- return theme.fontSize.xs;
2169
+ 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;
2149
2170
  }, _ref11 => {
2171
+ var _theme$colors6, _theme$colors7;
2150
2172
  let {
2151
- theme,
2173
+ theme: theme$1,
2152
2174
  hasError
2153
2175
  } = _ref11;
2154
- return hasError ? theme.colors.error : theme.colors.gray[500];
2176
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors6 = theme$1.colors) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors7 = theme$1.colors) === null || _theme$colors7 === void 0 || (_theme$colors7 = _theme$colors7.gray) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7[500]) || theme.colors.gray[500];
2155
2177
  });
2156
2178
  const Checkbox = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
2157
2179
  let {
@@ -2176,7 +2198,6 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
2176
2198
  children: [jsxRuntimeExports.jsx(CheckboxWrapper, {
2177
2199
  children: jsxRuntimeExports.jsx(StyledCheckbox, _objectSpread2({
2178
2200
  type: "checkbox",
2179
- size: size,
2180
2201
  hasError: !!error,
2181
2202
  className: className,
2182
2203
  ref: ref,
@@ -2185,7 +2206,6 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
2185
2206
  }), jsxRuntimeExports.jsxs(LabelContainer$1, {
2186
2207
  children: [label && jsxRuntimeExports.jsx(CheckboxLabel, {
2187
2208
  htmlFor: checkboxId,
2188
- size: size,
2189
2209
  children: label
2190
2210
  }), (error || helperText) && jsxRuntimeExports.jsx(HelperText$2, {
2191
2211
  hasError: !!error,
@@ -2197,97 +2217,94 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
2197
2217
  Checkbox.displayName = "Checkbox";
2198
2218
 
2199
2219
  const _excluded$1 = ["className", "label", "error", "helperText", "size", "fullWidth", "id"];
2200
- var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13;
2220
+ var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6$1;
2201
2221
  const RadioContainer = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n ", "\n"])), _ref => {
2202
2222
  let {
2203
2223
  fullWidth
2204
2224
  } = _ref;
2205
- return fullWidth && styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
2225
+ return fullWidth && "\n width: 100%;\n ";
2206
2226
  });
2207
- const RadioWrapper = styled.div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: ", ";\n"])), _ref2 => {
2227
+ const RadioWrapper = styled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: ", ";\n"])), _ref2 => {
2228
+ var _theme$spacing;
2208
2229
  let {
2209
- theme
2230
+ theme: theme$1
2210
2231
  } = _ref2;
2211
- return theme.spacing[5];
2232
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing = theme$1.spacing) === null || _theme$spacing === void 0 ? void 0 : _theme$spacing[5]) || theme.spacing[5];
2212
2233
  });
2213
- const StyledRadio = styled.input(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n border: 2px solid ", ";\n transition: all ", ";\n outline: none;\n\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n ", "\n"])), _ref3 => {
2234
+ const StyledRadio = styled.input(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n border: 2px solid ", ";\n transition: all ", ";\n outline: none;\n width: ", ";\n height: ", ";\n\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])), _ref3 => {
2235
+ var _theme$colors, _theme$colors2;
2214
2236
  let {
2215
- theme,
2237
+ theme: theme$1,
2216
2238
  hasError
2217
2239
  } = _ref3;
2218
- return hasError ? theme.colors.error : theme.colors.gray[300];
2240
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors = theme$1.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors2 = theme$1.colors) === null || _theme$colors2 === void 0 || (_theme$colors2 = _theme$colors2.gray) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2[300]) || theme.colors.gray[300];
2219
2241
  }, _ref4 => {
2242
+ var _theme$transitions;
2220
2243
  let {
2221
- theme
2244
+ theme: theme$1
2222
2245
  } = _ref4;
2223
- return theme.transitions.base;
2246
+ 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;
2224
2247
  }, _ref5 => {
2248
+ var _theme$spacing2;
2225
2249
  let {
2226
- theme,
2227
- hasError
2250
+ theme: theme$1
2228
2251
  } = _ref5;
2229
- return hasError ? theme.colors.error : theme.colors.primary;
2252
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing2 = theme$1.spacing) === null || _theme$spacing2 === void 0 ? void 0 : _theme$spacing2[5]) || theme.spacing[5];
2230
2253
  }, _ref6 => {
2254
+ var _theme$spacing3;
2231
2255
  let {
2232
- size,
2233
- theme
2256
+ theme: theme$1
2234
2257
  } = _ref6;
2235
- if (size === "sm") {
2236
- return styled.css(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[4], theme.spacing[4]);
2237
- }
2238
- if (size === "md") {
2239
- return styled.css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[5], theme.spacing[5]);
2240
- }
2241
- if (size === "lg") {
2242
- return styled.css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n "])), theme.spacing[6], theme.spacing[6]);
2243
- }
2244
- return styled.css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteral([""])));
2245
- });
2246
- const LabelContainer = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), _ref7 => {
2258
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing3 = theme$1.spacing) === null || _theme$spacing3 === void 0 ? void 0 : _theme$spacing3[5]) || theme.spacing[5];
2259
+ }, _ref7 => {
2260
+ var _theme$colors3, _theme$colors4;
2247
2261
  let {
2248
- theme
2262
+ theme: theme$1,
2263
+ hasError
2249
2264
  } = _ref7;
2250
- return theme.spacing[3];
2265
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors3 = theme$1.colors) === null || _theme$colors3 === void 0 ? void 0 : _theme$colors3.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors4 = theme$1.colors) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.primary) || theme.colors.primary;
2251
2266
  });
2252
- const RadioLabel = styled.label(_templateObject0$1 || (_templateObject0$1 = _taggedTemplateLiteral(["\n font-weight: 500;\n color: ", ";\n cursor: pointer;\n\n ", "\n"])), _ref8 => {
2267
+ const LabelContainer = styled.div(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), _ref8 => {
2268
+ var _theme$spacing4;
2253
2269
  let {
2254
- theme
2270
+ theme: theme$1
2255
2271
  } = _ref8;
2256
- return theme.colors.gray[700];
2257
- }, _ref9 => {
2272
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing4 = theme$1.spacing) === null || _theme$spacing4 === void 0 ? void 0 : _theme$spacing4[3]) || theme.spacing[3];
2273
+ });
2274
+ const RadioLabel = styled.label(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n font-weight: 500;\n color: ", ";\n cursor: pointer;\n font-size: ", ";\n"])), _ref9 => {
2275
+ var _theme$colors5;
2258
2276
  let {
2259
- size,
2260
- theme
2277
+ theme: theme$1
2261
2278
  } = _ref9;
2262
- if (size === "sm") {
2263
- return styled.css(_templateObject1$1 || (_templateObject1$1 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.sm);
2264
- }
2265
- if (size === "md") {
2266
- return styled.css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.sm);
2267
- }
2268
- if (size === "lg") {
2269
- return styled.css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n "])), theme.fontSize.base);
2270
- }
2271
- return styled.css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([""])));
2272
- });
2273
- const HelperText$1 = styled.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref0 => {
2279
+ return (theme$1 === null || theme$1 === void 0 || (_theme$colors5 = theme$1.colors) === null || _theme$colors5 === void 0 || (_theme$colors5 = _theme$colors5.gray) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5[700]) || theme.colors.gray[700];
2280
+ }, _ref0 => {
2281
+ var _theme$fontSize;
2274
2282
  let {
2275
- theme
2283
+ theme: theme$1
2276
2284
  } = _ref0;
2277
- return theme.spacing[1];
2278
- }, _ref1 => {
2285
+ 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;
2286
+ });
2287
+ const HelperText$1 = styled.p(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref1 => {
2288
+ var _theme$spacing5;
2279
2289
  let {
2280
- theme
2290
+ theme: theme$1
2281
2291
  } = _ref1;
2282
- return theme.fontSize.xs;
2292
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing5 = theme$1.spacing) === null || _theme$spacing5 === void 0 ? void 0 : _theme$spacing5[1]) || theme.spacing[1];
2283
2293
  }, _ref10 => {
2294
+ var _theme$fontSize2;
2284
2295
  let {
2285
- theme,
2286
- hasError
2296
+ theme: theme$1
2287
2297
  } = _ref10;
2288
- return hasError ? theme.colors.error : theme.colors.gray[500];
2298
+ 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;
2299
+ }, _ref11 => {
2300
+ var _theme$colors6, _theme$colors7;
2301
+ let {
2302
+ theme: theme$1,
2303
+ hasError
2304
+ } = _ref11;
2305
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors6 = theme$1.colors) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors7 = theme$1.colors) === null || _theme$colors7 === void 0 || (_theme$colors7 = _theme$colors7.gray) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7[500]) || theme.colors.gray[500];
2289
2306
  });
2290
- const Radio = /*#__PURE__*/React.forwardRef((_ref11, ref) => {
2307
+ const Radio = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
2291
2308
  let {
2292
2309
  className,
2293
2310
  label,
@@ -2296,15 +2313,14 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref11, ref) => {
2296
2313
  size = "md",
2297
2314
  fullWidth = false,
2298
2315
  id
2299
- } = _ref11,
2300
- props = _objectWithoutProperties(_ref11, _excluded$1);
2316
+ } = _ref12,
2317
+ props = _objectWithoutProperties(_ref12, _excluded$1);
2301
2318
  const radioId = id || "radio-".concat(Math.random().toString(36).substr(2, 9));
2302
2319
  return jsxRuntimeExports.jsxs(RadioContainer, {
2303
2320
  fullWidth: fullWidth,
2304
2321
  children: [jsxRuntimeExports.jsx(RadioWrapper, {
2305
2322
  children: jsxRuntimeExports.jsx(StyledRadio, _objectSpread2({
2306
2323
  type: "radio",
2307
- size: size,
2308
2324
  hasError: !!error,
2309
2325
  className: className,
2310
2326
  ref: ref,
@@ -2313,7 +2329,6 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref11, ref) => {
2313
2329
  }), jsxRuntimeExports.jsxs(LabelContainer, {
2314
2330
  children: [label && jsxRuntimeExports.jsx(RadioLabel, {
2315
2331
  htmlFor: radioId,
2316
- size: size,
2317
2332
  children: label
2318
2333
  }), (error || helperText) && jsxRuntimeExports.jsx(HelperText$1, {
2319
2334
  hasError: !!error,
@@ -2325,112 +2340,129 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref11, ref) => {
2325
2340
  Radio.displayName = "Radio";
2326
2341
 
2327
2342
  const _excluded = ["className", "label", "error", "helperText", "size", "fullWidth", "options", "placeholder", "id"];
2328
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10;
2343
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
2329
2344
  const SelectContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ", "\n"])), _ref => {
2330
2345
  let {
2331
2346
  fullWidth
2332
2347
  } = _ref;
2333
- return fullWidth && styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
2348
+ return fullWidth && "\n width: 100%;\n ";
2334
2349
  });
2335
- const SelectLabel = styled.label(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
2350
+ const SelectLabel = styled.label(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n"])), _ref2 => {
2351
+ var _theme$spacing;
2336
2352
  let {
2337
- theme
2353
+ theme: theme$1
2338
2354
  } = _ref2;
2339
- return theme.spacing[1];
2355
+ 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];
2340
2356
  }, _ref3 => {
2357
+ var _theme$fontSize;
2341
2358
  let {
2342
- theme
2359
+ theme: theme$1
2343
2360
  } = _ref3;
2344
- return theme.fontSize.sm;
2361
+ 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;
2345
2362
  }, _ref4 => {
2363
+ var _theme$colors;
2346
2364
  let {
2347
- theme
2365
+ theme: theme$1
2348
2366
  } = _ref4;
2349
- return theme.colors.gray[700];
2367
+ 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];
2350
2368
  });
2351
- const SelectWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n"])));
2352
- const StyledSelect = styled.select(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n appearance: none;\n background-color: ", ";\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 => {
2369
+ const SelectWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n"])));
2370
+ const StyledSelect = styled.select(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n border-radius: ", ";\n transition: border-color ", ";\n outline: none;\n appearance: none;\n background-color: ", ";\n font-family: ", ";\n padding: ", " ", ";\n font-size: ", ";\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"])), _ref5 => {
2371
+ var _theme$colors2, _theme$colors3;
2353
2372
  let {
2354
- theme,
2373
+ theme: theme$1,
2355
2374
  hasError
2356
2375
  } = _ref5;
2357
- return hasError ? theme.colors.error : theme.colors.gray[300];
2376
+ 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];
2358
2377
  }, _ref6 => {
2378
+ var _theme$borderRadius;
2359
2379
  let {
2360
- theme
2380
+ theme: theme$1
2361
2381
  } = _ref6;
2362
- return theme.borderRadius.md;
2382
+ 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;
2363
2383
  }, _ref7 => {
2384
+ var _theme$transitions;
2364
2385
  let {
2365
- theme
2386
+ theme: theme$1
2366
2387
  } = _ref7;
2367
- return theme.transitions.base;
2388
+ 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;
2368
2389
  }, _ref8 => {
2390
+ var _theme$colors4;
2369
2391
  let {
2370
- theme
2392
+ theme: theme$1
2371
2393
  } = _ref8;
2372
- return theme.colors.white;
2394
+ return (theme$1 === null || theme$1 === void 0 || (_theme$colors4 = theme$1.colors) === null || _theme$colors4 === void 0 ? void 0 : _theme$colors4.white) || theme.colors.white;
2373
2395
  }, _ref9 => {
2396
+ var _theme$fontFamily;
2374
2397
  let {
2375
- theme
2398
+ theme: theme$1
2376
2399
  } = _ref9;
2377
- return theme.fontFamily.sans.join(", ");
2400
+ 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(", ");
2378
2401
  }, _ref0 => {
2402
+ var _theme$spacing2;
2379
2403
  let {
2380
- theme,
2381
- hasError
2404
+ theme: theme$1
2382
2405
  } = _ref0;
2383
- return hasError ? theme.colors.error : theme.colors.primary;
2406
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing2 = theme$1.spacing) === null || _theme$spacing2 === void 0 ? void 0 : _theme$spacing2[2]) || theme.spacing[2];
2384
2407
  }, _ref1 => {
2408
+ var _theme$spacing3;
2385
2409
  let {
2386
- theme
2410
+ theme: theme$1
2387
2411
  } = _ref1;
2388
- return theme.colors.gray[50];
2412
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing3 = theme$1.spacing) === null || _theme$spacing3 === void 0 ? void 0 : _theme$spacing3[4]) || theme.spacing[4];
2389
2413
  }, _ref10 => {
2414
+ var _theme$fontSize2;
2390
2415
  let {
2391
- size,
2392
- theme
2416
+ theme: theme$1
2393
2417
  } = _ref10;
2394
- if (size === "sm") {
2395
- return styled.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[3], theme.fontSize.sm);
2396
- }
2397
- if (size === "md") {
2398
- return styled.css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[2], theme.spacing[4], theme.fontSize.sm);
2399
- }
2400
- if (size === "lg") {
2401
- return styled.css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-size: ", ";\n "])), theme.spacing[3], theme.spacing[4], theme.fontSize.base);
2402
- }
2403
- return styled.css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([""])));
2418
+ return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize2 = theme$1.fontSize) === null || _theme$fontSize2 === void 0 ? void 0 : _theme$fontSize2.sm) || theme.fontSize.sm;
2404
2419
  }, _ref11 => {
2420
+ var _theme$colors5, _theme$colors6;
2405
2421
  let {
2406
- fullWidth
2422
+ theme: theme$1,
2423
+ hasError
2407
2424
  } = _ref11;
2408
- return fullWidth && styled.css(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
2409
- });
2410
- const SelectIcon = styled.div(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n padding-right: ", ";\n pointer-events: none;\n"])), _ref12 => {
2425
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors5 = theme$1.colors) === null || _theme$colors5 === void 0 ? void 0 : _theme$colors5.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors6 = theme$1.colors) === null || _theme$colors6 === void 0 ? void 0 : _theme$colors6.primary) || theme.colors.primary;
2426
+ }, _ref12 => {
2427
+ var _theme$colors7;
2411
2428
  let {
2412
- theme
2429
+ theme: theme$1
2413
2430
  } = _ref12;
2414
- return theme.spacing[3];
2415
- });
2416
- const HelperText = styled.p(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref13 => {
2431
+ return (theme$1 === null || theme$1 === void 0 || (_theme$colors7 = theme$1.colors) === null || _theme$colors7 === void 0 || (_theme$colors7 = _theme$colors7.gray) === null || _theme$colors7 === void 0 ? void 0 : _theme$colors7[50]) || theme.colors.gray[50];
2432
+ }, _ref13 => {
2417
2433
  let {
2418
- theme
2434
+ fullWidth
2419
2435
  } = _ref13;
2420
- return theme.spacing[1];
2421
- }, _ref14 => {
2436
+ return fullWidth && "\n width: 100%;\n ";
2437
+ });
2438
+ const SelectIcon = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n padding-right: ", ";\n pointer-events: none;\n"])), _ref14 => {
2439
+ var _theme$spacing4;
2422
2440
  let {
2423
- theme
2441
+ theme: theme$1
2424
2442
  } = _ref14;
2425
- return theme.fontSize.xs;
2426
- }, _ref15 => {
2443
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing4 = theme$1.spacing) === null || _theme$spacing4 === void 0 ? void 0 : _theme$spacing4[3]) || theme.spacing[3];
2444
+ });
2445
+ const HelperText = styled.p(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: ", ";\n color: ", ";\n"])), _ref15 => {
2446
+ var _theme$spacing5;
2427
2447
  let {
2428
- theme,
2429
- hasError
2448
+ theme: theme$1
2430
2449
  } = _ref15;
2431
- return hasError ? theme.colors.error : theme.colors.gray[500];
2450
+ return (theme$1 === null || theme$1 === void 0 || (_theme$spacing5 = theme$1.spacing) === null || _theme$spacing5 === void 0 ? void 0 : _theme$spacing5[1]) || theme.spacing[1];
2451
+ }, _ref16 => {
2452
+ var _theme$fontSize3;
2453
+ let {
2454
+ theme: theme$1
2455
+ } = _ref16;
2456
+ return (theme$1 === null || theme$1 === void 0 || (_theme$fontSize3 = theme$1.fontSize) === null || _theme$fontSize3 === void 0 ? void 0 : _theme$fontSize3.xs) || theme.fontSize.xs;
2457
+ }, _ref17 => {
2458
+ var _theme$colors8, _theme$colors9;
2459
+ let {
2460
+ theme: theme$1,
2461
+ hasError
2462
+ } = _ref17;
2463
+ return hasError ? (theme$1 === null || theme$1 === void 0 || (_theme$colors8 = theme$1.colors) === null || _theme$colors8 === void 0 ? void 0 : _theme$colors8.error) || theme.colors.error : (theme$1 === null || theme$1 === void 0 || (_theme$colors9 = theme$1.colors) === null || _theme$colors9 === void 0 || (_theme$colors9 = _theme$colors9.gray) === null || _theme$colors9 === void 0 ? void 0 : _theme$colors9[500]) || theme.colors.gray[500];
2432
2464
  });
2433
- const Select = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
2465
+ const Select = /*#__PURE__*/React.forwardRef((_ref18, ref) => {
2434
2466
  let {
2435
2467
  className,
2436
2468
  label,
@@ -2441,8 +2473,8 @@ const Select = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
2441
2473
  options,
2442
2474
  placeholder,
2443
2475
  id
2444
- } = _ref16,
2445
- props = _objectWithoutProperties(_ref16, _excluded);
2476
+ } = _ref18,
2477
+ props = _objectWithoutProperties(_ref18, _excluded);
2446
2478
  const selectId = id || "select-".concat(Math.random().toString(36).substr(2, 9));
2447
2479
  return jsxRuntimeExports.jsxs(SelectContainer, {
2448
2480
  fullWidth: fullWidth,
@@ -2451,7 +2483,6 @@ const Select = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
2451
2483
  children: label
2452
2484
  }), jsxRuntimeExports.jsxs(SelectWrapper, {
2453
2485
  children: [jsxRuntimeExports.jsxs(StyledSelect, _objectSpread2(_objectSpread2({
2454
- size: size,
2455
2486
  fullWidth: fullWidth,
2456
2487
  hasError: !!error,
2457
2488
  className: className,
@@ -2497,7 +2528,7 @@ const ThemeProvider = _ref => {
2497
2528
  let {
2498
2529
  children
2499
2530
  } = _ref;
2500
- return jsxRuntimeExports.jsx(styled.ThemeProvider, {
2531
+ return jsxRuntimeExports.jsx(react.ThemeProvider, {
2501
2532
  theme: theme,
2502
2533
  children: children
2503
2534
  });