@ctlyst.id/internal-ui 1.0.4-canary.9 → 1.1.0-canary.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/components/card/__stories__/card.stories.d.ts +11 -0
  2. package/dist/components/card/components/card.d.ts +8 -0
  3. package/dist/components/card/index.d.ts +2 -0
  4. package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +12 -0
  5. package/dist/components/checkbox/components/checkbox.d.ts +16 -0
  6. package/dist/components/checkbox/index.d.ts +2 -0
  7. package/dist/components/field/components/field.d.ts +5 -2
  8. package/dist/components/index.d.ts +3 -0
  9. package/dist/components/{base/stories/checkbox.stories.d.ts → loader/__stories__/loader.stories.d.ts} +3 -2
  10. package/dist/components/loader/components/loader.d.ts +9 -0
  11. package/dist/components/loader/index.d.ts +2 -0
  12. package/dist/config/{foundations.stories.d.ts → __stories__/foundations.stories.d.ts} +1 -0
  13. package/dist/config/theme/components/card.d.ts +18 -0
  14. package/dist/config/theme/components/checkbox.d.ts +86 -2
  15. package/dist/config/theme/components/index.d.ts +3 -1
  16. package/dist/config/theme/components/loader.d.ts +85 -0
  17. package/dist/config/theme/foundations/index.d.ts +3 -2
  18. package/dist/config/theme/foundations/shadows.d.ts +15 -0
  19. package/dist/config/theme/foundations/typography.d.ts +25 -7
  20. package/dist/internal-ui.cjs.development.js +397 -145
  21. package/dist/internal-ui.cjs.development.js.map +1 -1
  22. package/dist/internal-ui.cjs.production.min.js +10 -10
  23. package/dist/internal-ui.cjs.production.min.js.map +1 -1
  24. package/dist/internal-ui.esm.js +401 -152
  25. package/dist/internal-ui.esm.js.map +1 -1
  26. package/dist/provider/{provider.d.ts → components/provider.d.ts} +2 -1
  27. package/dist/provider/index.d.ts +2 -2
  28. package/package.json +2 -2
  29. /package/dist/components/base/{stories → __stories__}/button.stories.d.ts +0 -0
  30. /package/dist/components/base/{stories → __stories__}/input.stories.d.ts +0 -0
  31. /package/dist/components/base/{stories → __stories__}/radio.stories.d.ts +0 -0
  32. /package/dist/components/base/{stories → __stories__}/switch.stories.d.ts +0 -0
  33. /package/dist/components/breadcrumb/{components/BreadCrumb.stories.d.ts → __stories__/breadcrumb.stories.d.ts} +0 -0
  34. /package/dist/components/data-table/{stories/data-table.stories.d.ts → __stories__/datatable.stories.d.ts} +0 -0
  35. /package/dist/components/datepicker/{components → __stories__}/datepicker.stories.d.ts +0 -0
  36. /package/dist/components/header/{stories → __stories__}/header.stories.d.ts +0 -0
  37. /package/dist/components/modal/{stories → __stories__}/modal.stories.d.ts +0 -0
  38. /package/dist/components/navigation/{stories → __stories__}/navigation.stories.d.ts +0 -0
  39. /package/dist/components/pagination/{stories → __stories__}/pagination.stories.d.ts +0 -0
  40. /package/dist/components/select/{stories → __stories__}/select.stories.d.ts +0 -0
  41. /package/dist/components/tabs/{stories → __stories__}/tabs.stories.d.ts +0 -0
  42. /package/dist/components/uploader/{stories → __stories__}/uploader.stories.d.ts +0 -0
  43. /package/dist/provider/{provider.stories.d.ts → __stories__/provider.stories.d.ts} +0 -0
@@ -21,8 +21,9 @@ var ReactSelectAsyncCreatable = _interopDefault(require('react-select/async-crea
21
21
  var ReactSelectCreatable = _interopDefault(require('react-select/creatable'));
22
22
  var reactDropzone = require('react-dropzone');
23
23
  var themeTools = require('@chakra-ui/theme-tools');
24
- var anatomy = require('@chakra-ui/anatomy');
25
24
  var styledSystem = require('@chakra-ui/styled-system');
25
+ var anatomy = require('@chakra-ui/anatomy');
26
+ require('@fontsource/poppins');
26
27
  var axios = _interopDefault(require('axios'));
27
28
 
28
29
  /* eslint-disable react-hooks/rules-of-hooks */
@@ -120,6 +121,59 @@ BreadCrumb.defaultProps = {
120
121
  spacing: 2
121
122
  };
122
123
 
124
+ const CardCustom = /*#__PURE__*/React.forwardRef(({
125
+ children,
126
+ ...rest
127
+ }, ref) => {
128
+ const styles = react.useStyleConfig('Card', rest);
129
+ return /*#__PURE__*/React__default.createElement(react.Card, Object.assign({
130
+ __css: styles,
131
+ backgroundColor: "white.high",
132
+ ref: ref
133
+ }, rest), children);
134
+ });
135
+ CardCustom.defaultProps = {
136
+ withShadow: true,
137
+ isRounded: true
138
+ };
139
+
140
+ function CheckboxComponent({
141
+ isError = false,
142
+ helpText = '',
143
+ errorText = '',
144
+ children,
145
+ isDisabled,
146
+ ...rest
147
+ }) {
148
+ const variant = isError ? 'errors' : 'unstyled';
149
+ return /*#__PURE__*/React__default.createElement(react.Box, null, /*#__PURE__*/React__default.createElement(react.Box, {
150
+ display: "flex"
151
+ }, /*#__PURE__*/React__default.createElement(react.Checkbox, Object.assign({
152
+ variant: variant
153
+ }, rest, {
154
+ isDisabled: isDisabled
155
+ })), children && /*#__PURE__*/React__default.createElement(react.Box, null, /*#__PURE__*/React__default.createElement(react.Box, {
156
+ ml: "8px"
157
+ }, /*#__PURE__*/React__default.createElement(react.Text, {
158
+ textStyle: "text.sm",
159
+ color: isDisabled ? 'black.low' : 'black.high'
160
+ }, children)))), /*#__PURE__*/React__default.createElement(react.Box, {
161
+ mt: "5px",
162
+ ml: "24px"
163
+ }, isError ? /*#__PURE__*/React__default.createElement(react.Text, {
164
+ textStyle: "text.xs",
165
+ color: "danger.500"
166
+ }, errorText) : /*#__PURE__*/React__default.createElement(react.Text, {
167
+ textStyle: "text.xs",
168
+ color: isDisabled ? 'black.low' : 'black.medium'
169
+ }, helpText)));
170
+ }
171
+ CheckboxComponent.defaultProps = {
172
+ isError: false,
173
+ helpText: '',
174
+ errorText: ''
175
+ };
176
+
123
177
  const IndeterminateCheckbox = ({
124
178
  indeterminate = false,
125
179
  ...rest
@@ -1308,7 +1362,7 @@ const success = {
1308
1362
  '200': '#A9F9B5',
1309
1363
  '300': '#7CEE98',
1310
1364
  '400': '#58DD86',
1311
- '500': '#28c76f',
1365
+ '500': '#28C76F',
1312
1366
  '600': '#1DAB6A',
1313
1367
  '700': '#148F63',
1314
1368
  '800': '#0C7359',
@@ -1436,8 +1490,13 @@ const radius = {
1436
1490
  full: '9999px'
1437
1491
  };
1438
1492
 
1439
- const spacing = {
1440
- ...react.theme.space,
1493
+ const shadows = {
1494
+ ...react.theme.shadows,
1495
+ raised: '0px 4px 20px rgba(0, 0, 0, 0.05)'
1496
+ };
1497
+
1498
+ const sizes = {
1499
+ ...react.theme.sizes,
1441
1500
  4.5: '1.125rem',
1442
1501
  9.5: '2.375rem',
1443
1502
  18: '4.5rem',
@@ -1446,8 +1505,8 @@ const spacing = {
1446
1505
  30: '7.5rem'
1447
1506
  };
1448
1507
 
1449
- const sizes = {
1450
- ...react.theme.sizes,
1508
+ const spacing = {
1509
+ ...react.theme.space,
1451
1510
  4.5: '1.125rem',
1452
1511
  9.5: '2.375rem',
1453
1512
  18: '4.5rem',
@@ -1478,6 +1537,11 @@ const lineHeights = {
1478
1537
  short: 1.375,
1479
1538
  base: 1.5,
1480
1539
  tall: 1.625,
1540
+ 64: '4rem',
1541
+ 56: '3.5rem',
1542
+ 48: '3rem',
1543
+ 40: '2.5rem',
1544
+ 36: '2.25rem',
1481
1545
  34: '2.125rem',
1482
1546
  32: '2rem',
1483
1547
  30: '1.875rem',
@@ -1491,14 +1555,22 @@ const lineHeights = {
1491
1555
  14: '0.875rem',
1492
1556
  12: '0.75rem'
1493
1557
  };
1558
+ const letterSpacings = {
1559
+ tighter: '-0.05em',
1560
+ tight: '-0.025em',
1561
+ normal: '0',
1562
+ wide: '0.025em',
1563
+ wider: '0.05em',
1564
+ widest: '0.1em'
1565
+ };
1494
1566
  const fontSizes = {
1495
1567
  heading: {
1496
- 1: '1.75rem',
1497
- 2: '1.5rem',
1498
- 3: '1.25rem',
1499
- 4: '1.125rem',
1500
- 5: '1rem',
1501
- 6: '0.875rem'
1568
+ 1: '2.5rem',
1569
+ 2: '2rem',
1570
+ 3: '1.75rem',
1571
+ 4: '1.5rem',
1572
+ 5: '1.375rem',
1573
+ 6: '1.125rem'
1502
1574
  },
1503
1575
  text: {
1504
1576
  xl: '1.125rem',
@@ -1524,85 +1596,90 @@ const fontSizes = {
1524
1596
  const heading = {
1525
1597
  1: {
1526
1598
  fontSize: fontSizes.heading[1],
1527
- fontWeight: 'bold',
1528
- lineHeight: '3.5rem',
1529
- letterSpacing: '0'
1599
+ fontWeight: fontWeights.semibold,
1600
+ lineHeight: lineHeights[64],
1601
+ letterSpacing: letterSpacings.normal
1530
1602
  },
1531
1603
  2: {
1532
1604
  fontSize: fontSizes.heading[2],
1533
- fontWeight: 'bold',
1534
- lineHeight: '2.875rem',
1535
- letterSpacing: '0'
1605
+ fontWeight: fontWeights.semibold,
1606
+ lineHeight: lineHeights[56],
1607
+ letterSpacing: letterSpacings.normal
1536
1608
  },
1537
1609
  3: {
1538
1610
  fontSize: fontSizes.heading[3],
1539
- fontWeight: 'bold',
1540
- lineHeight: '2.5rem',
1541
- letterSpacing: '0'
1611
+ fontWeight: fontWeights.semibold,
1612
+ lineHeight: lineHeights[48],
1613
+ letterSpacing: letterSpacings.normal
1542
1614
  },
1543
1615
  4: {
1544
1616
  fontSize: fontSizes.heading[4],
1545
- fontWeight: 'bold',
1546
- lineHeight: '2rem',
1547
- letterSpacing: '0'
1617
+ fontWeight: fontWeights.semibold,
1618
+ lineHeight: lineHeights[40],
1619
+ letterSpacing: letterSpacings.normal
1548
1620
  },
1549
1621
  5: {
1550
1622
  fontSize: fontSizes.heading[5],
1551
- fontWeight: 'bold',
1552
- lineHeight: '1.5rem',
1553
- letterSpacing: '0'
1623
+ fontWeight: fontWeights.semibold,
1624
+ lineHeight: lineHeights[36],
1625
+ letterSpacing: letterSpacings.normal
1554
1626
  },
1555
1627
  6: {
1556
1628
  fontSize: fontSizes.heading[6],
1557
- fontWeight: 'bold',
1558
- lineHeight: '1.375rem',
1559
- letterSpacing: '0'
1629
+ fontWeight: fontWeights.semibold,
1630
+ lineHeight: lineHeights[32],
1631
+ letterSpacing: letterSpacings.normal
1560
1632
  }
1561
1633
  };
1562
1634
  const text = {
1563
1635
  xl: {
1564
1636
  fontSize: fontSizes.text.xl,
1637
+ fontWeight: fontWeights.normal,
1565
1638
  lineHeight: lineHeights[28],
1566
- letterSpacing: '0'
1639
+ letterSpacing: letterSpacings.normal
1567
1640
  },
1568
1641
  lg: {
1569
1642
  fontSize: fontSizes.text.lg,
1643
+ fontWeight: fontWeights.normal,
1570
1644
  lineHeight: lineHeights[24],
1571
- letterSpacing: '0'
1645
+ letterSpacing: letterSpacings.normal
1572
1646
  },
1573
1647
  md: {
1574
1648
  fontSize: fontSizes.text.md,
1649
+ fontWeight: fontWeights.normal,
1575
1650
  lineHeight: lineHeights[22],
1576
- letterSpacing: '0'
1651
+ letterSpacing: letterSpacings.normal
1577
1652
  },
1578
1653
  sm: {
1579
1654
  fontSize: fontSizes.text.sm,
1655
+ fontWeight: fontWeights.normal,
1580
1656
  lineHeight: lineHeights[18],
1581
- letterSpacing: '0'
1657
+ letterSpacing: letterSpacings.normal
1582
1658
  },
1583
1659
  xs: {
1584
1660
  fontSize: fontSizes.text.xs,
1661
+ fontWeight: fontWeights.normal,
1585
1662
  lineHeight: lineHeights[14],
1586
- letterSpacing: '0'
1663
+ letterSpacing: letterSpacings.normal
1587
1664
  }
1588
1665
  };
1589
1666
  const button = {
1590
1667
  lg: {
1591
1668
  fontSize: fontSizes.button.lg,
1592
1669
  lineHeight: lineHeights[28],
1593
- letterSpacing: '0',
1670
+ letterSpacing: letterSpacings.normal,
1594
1671
  fontWeight: fontWeights.normal
1595
1672
  },
1596
1673
  md: {
1597
1674
  fontSize: fontSizes.button.md,
1598
1675
  lineHeight: lineHeights[22],
1599
- letterSpacing: '0',
1676
+ letterSpacing: letterSpacings.normal,
1600
1677
  fontWeight: fontWeights.normal
1601
1678
  },
1602
1679
  sm: {
1603
1680
  fontSize: fontSizes.button.sm,
1604
1681
  lineHeight: lineHeights[14],
1605
- letterSpacing: '0',
1682
+ letterSpacing: letterSpacings.normal,
1606
1683
  fontWeight: fontWeights.normal
1607
1684
  }
1608
1685
  };
@@ -1610,19 +1687,19 @@ const field = {
1610
1687
  lg: {
1611
1688
  fontSize: fontSizes.field.lg,
1612
1689
  lineHeight: lineHeights[24],
1613
- letterSpacing: '0',
1690
+ letterSpacing: letterSpacings.normal,
1614
1691
  fontWeight: fontWeights.normal
1615
1692
  },
1616
1693
  md: {
1617
1694
  fontSize: fontSizes.field.md,
1618
1695
  lineHeight: lineHeights[22],
1619
- letterSpacing: '0',
1696
+ letterSpacing: letterSpacings.normal,
1620
1697
  fontWeight: fontWeights.normal
1621
1698
  },
1622
1699
  sm: {
1623
1700
  fontSize: fontSizes.field.sm,
1624
1701
  lineHeight: lineHeights[18],
1625
- letterSpacing: '0',
1702
+ letterSpacing: letterSpacings.normal,
1626
1703
  fontWeight: fontWeights.normal
1627
1704
  }
1628
1705
  };
@@ -1639,10 +1716,12 @@ var foundations = {
1639
1716
  __proto__: null,
1640
1717
  colors: colors,
1641
1718
  radii: radius,
1642
- space: spacing,
1719
+ shadows: shadows,
1643
1720
  sizes: sizes,
1721
+ space: spacing,
1644
1722
  fonts: fonts,
1645
1723
  fontSizes: fontSizes,
1724
+ letterSpacings: letterSpacings,
1646
1725
  lineHeights: lineHeights,
1647
1726
  textStyles: textStyles
1648
1727
  };
@@ -1696,35 +1775,62 @@ const Field = props => {
1696
1775
  const {
1697
1776
  label,
1698
1777
  isError,
1699
- error,
1700
- helperText,
1778
+ errorMessage,
1779
+ leftHelperText,
1780
+ rightHelperText,
1701
1781
  isRequired,
1702
- children
1782
+ children,
1783
+ isSuccess,
1784
+ isDisabled
1703
1785
  } = props;
1786
+ const getHelperColor = () => {
1787
+ if (isError) return 'danger.500';
1788
+ if (isSuccess) return 'success.500';
1789
+ if (isDisabled) return 'black.low';
1790
+ return 'black.medium';
1791
+ };
1792
+ const getJustifyContentHelper = () => {
1793
+ if (rightHelperText && (!leftHelperText || isError && !errorMessage)) return 'flex-end';
1794
+ return 'space-between';
1795
+ };
1796
+ const helperColor = getHelperColor();
1797
+ const justifyHelper = getJustifyContentHelper();
1704
1798
  return /*#__PURE__*/React__default.createElement(react.FormControl, {
1705
1799
  isInvalid: isError
1706
1800
  }, label && (typeof label === 'string' ? /*#__PURE__*/React__default.createElement(react.FormLabel, {
1707
- fontSize: "field.sm",
1801
+ fontSize: "text.sm",
1708
1802
  requiredIndicator: undefined
1709
1803
  }, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
1710
1804
  as: "span",
1711
- color: "red.500",
1805
+ color: "danger.500",
1712
1806
  ml: 0,
1713
1807
  mr: 1
1714
- }, "*"), label) : label), children, !isError ? helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, {
1715
- fontSize: "field.sm"
1716
- }, helperText) : typeof error === 'string' ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, {
1717
- textStyle: "field.sm",
1718
- fontSize: "field.sm",
1719
- mt: 1,
1720
- marginStart: 1
1721
- }, error) : error);
1808
+ }, "*"), label) : label), children, (isError && errorMessage || leftHelperText || rightHelperText) && /*#__PURE__*/React__default.createElement(react.Box, {
1809
+ display: "flex",
1810
+ width: "full",
1811
+ justifyContent: justifyHelper
1812
+ }, !isError ? leftHelperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, {
1813
+ fontSize: "text.xs",
1814
+ color: helperColor,
1815
+ mt: 1
1816
+ }, leftHelperText) : typeof errorMessage === 'string' ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, {
1817
+ fontSize: "text.xs",
1818
+ color: "danger.500",
1819
+ mt: 1
1820
+ }, errorMessage) : errorMessage, rightHelperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, {
1821
+ fontSize: "text.xs",
1822
+ color: helperColor,
1823
+ mt: 1
1824
+ }, rightHelperText)));
1722
1825
  };
1723
1826
  Field.defaultProps = {
1724
1827
  label: '',
1725
1828
  isError: false,
1726
- error: undefined,
1727
- helperText: undefined,
1829
+ isSuccess: false,
1830
+ isDisabled: false,
1831
+ errorMessage: undefined,
1832
+ leftHelperText: undefined,
1833
+ rightHelperText: undefined,
1728
1834
  isRequired: false
1729
1835
  };
1730
1836
 
@@ -1740,15 +1846,21 @@ const InputField = /*#__PURE__*/React__default.forwardRef((props, ref) => {
1740
1846
  isRequired,
1741
1847
  label,
1742
1848
  isError,
1743
- error,
1744
- helperText,
1849
+ isSuccess,
1850
+ isDisabled,
1851
+ errorMessage,
1852
+ leftHelperText,
1853
+ rightHelperText,
1745
1854
  ...inputProps
1746
1855
  } = props;
1747
1856
  return /*#__PURE__*/React__default.createElement(Field, {
1748
1857
  label: label,
1858
+ isSuccess: isSuccess,
1859
+ isDisabled: isDisabled,
1749
1860
  isError: isError,
1750
- error: error,
1751
- helperText: helperText,
1861
+ errorMessage: errorMessage,
1862
+ leftHelperText: leftHelperText,
1863
+ rightHelperText: rightHelperText,
1752
1864
  isRequired: isRequired
1753
1865
  }, /*#__PURE__*/React__default.createElement(react.InputGroup, {
1754
1866
  size: size
@@ -1966,6 +2078,14 @@ Header.defaultProps = {
1966
2078
  hideSwitchMode: false
1967
2079
  };
1968
2080
 
2081
+ const Loader = /*#__PURE__*/react.forwardRef((props, ref) => {
2082
+ const styles = react.useStyleConfig('LoaderStyle', props);
2083
+ return /*#__PURE__*/React__default.createElement(react.Box, {
2084
+ ref: ref,
2085
+ __css: styles
2086
+ });
2087
+ });
2088
+
1969
2089
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({
1970
2090
  children,
1971
2091
  ...rest
@@ -2793,81 +2913,116 @@ const Button = {
2793
2913
  }
2794
2914
  };
2795
2915
 
2916
+ const CardStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
2917
+ baseStyle: props => {
2918
+ return {
2919
+ shadow: props.withShadow ? 'raised' : 'none',
2920
+ borderRadius: props.isRounded ? 'lg' : 'none'
2921
+ };
2922
+ }
2923
+ });
2924
+
2796
2925
  const {
2797
- definePartsStyle
2798
- } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.checkboxAnatomy.keys);
2799
- const $size = /*#__PURE__*/styledSystem.cssVar('checkbox-size');
2800
- // You can also use the more specific type for
2801
- // a single part component: ComponentSingleStyleConfig
2802
- const Checkbox = {
2803
- // The styles all checkbox have in common
2804
- baseStyle: {
2805
- borderRadius: 'sm'
2926
+ definePartsStyle,
2927
+ defineMultiStyleConfig
2928
+ } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.checkboxAnatomy.keys);
2929
+ const baseStyle = /*#__PURE__*/definePartsStyle({
2930
+ control: {
2931
+ borderRadius: '4px',
2932
+ width: '16px',
2933
+ height: '16px',
2934
+ border: '1px solid'
2806
2935
  },
2807
- // Two sizes: sm and md
2808
- sizes: {
2809
- sm: /*#__PURE__*/definePartsStyle({
2810
- control: {
2811
- [$size.variable]: 'sizes.4',
2812
- borderRadius: 'md'
2813
- },
2814
- label: {
2815
- fontSize: 'text.sm'
2816
- },
2817
- icon: {
2818
- fontSize: '3xs'
2819
- }
2820
- }),
2821
- md: /*#__PURE__*/definePartsStyle({
2822
- control: {
2823
- [$size.variable]: 'sizes.5',
2824
- borderRadius: 'md'
2825
- },
2826
- label: {
2827
- fontSize: 'text.md'
2828
- },
2829
- icon: {
2830
- fontSize: '2xs'
2936
+ icon: {
2937
+ color: 'neutral.50',
2938
+ width: '9px'
2939
+ },
2940
+ label: {
2941
+ fontWeight: '400',
2942
+ lineHeight: '18px',
2943
+ color: 'black.high',
2944
+ ml: '8px'
2945
+ },
2946
+ _disabled: {
2947
+ background: 'neutral.500',
2948
+ border: '1px solid',
2949
+ borderColor: 'neutral.500',
2950
+ cursor: 'not-allowed'
2951
+ }
2952
+ });
2953
+ const errors = /*#__PURE__*/definePartsStyle({
2954
+ control: {
2955
+ borderColor: 'danger.500',
2956
+ _checked: {
2957
+ borderColor: 'danger.500',
2958
+ backgroundColor: 'danger.500',
2959
+ _hover: {
2960
+ borderColor: 'danger.600',
2961
+ backgroundColor: 'danger.600'
2831
2962
  }
2832
- }),
2833
- lg: /*#__PURE__*/definePartsStyle({
2834
- control: {
2835
- [$size.variable]: 'sizes.6',
2836
- borderRadius: 'md'
2837
- },
2838
- label: {
2839
- fontSize: 'text.lg'
2963
+ },
2964
+ _indeterminate: {
2965
+ borderColor: 'danger.500',
2966
+ backgroundColor: 'danger.500'
2967
+ }
2968
+ },
2969
+ label: {
2970
+ fontSize: '12px'
2971
+ }
2972
+ });
2973
+ const unstyled = /*#__PURE__*/definePartsStyle({
2974
+ control: {
2975
+ borderColor: 'neutral.500',
2976
+ _checked: {
2977
+ borderColor: 'primary.500',
2978
+ backgroundColor: 'primary.500',
2979
+ _hover: {
2980
+ borderColor: 'primary.600',
2981
+ backgroundColor: 'primary.600'
2840
2982
  },
2841
- icon: {
2842
- fontSize: 'xs'
2983
+ _disabled: {
2984
+ backgroundColor: 'neutral.500',
2985
+ borderColor: 'neutral.500'
2843
2986
  }
2844
- })
2987
+ },
2988
+ _disabled: {
2989
+ backgroundColor: 'neutral.500'
2990
+ },
2991
+ _indeterminate: {
2992
+ borderColor: 'primary.500',
2993
+ backgroundColor: 'primary.500'
2994
+ }
2845
2995
  },
2846
- // Two variants: outline and solid
2847
- variants: {},
2848
- // The default size and variant values
2849
- defaultProps: {
2850
- size: 'sm',
2851
- variant: 'solid',
2852
- orientation: 'vertical',
2853
- colorScheme: 'primary'
2996
+ label: {
2997
+ fontSize: '12px'
2854
2998
  }
2999
+ });
3000
+ const variants = {
3001
+ errors,
3002
+ unstyled
2855
3003
  };
3004
+ const Checkbox = /*#__PURE__*/defineMultiStyleConfig({
3005
+ baseStyle,
3006
+ variants,
3007
+ defaultProps: {
3008
+ variant: 'errors'
3009
+ }
3010
+ });
2856
3011
 
2857
- const baseStyle = /*#__PURE__*/styledSystem.defineStyle({
3012
+ const baseStyle$1 = /*#__PURE__*/styledSystem.defineStyle({
2858
3013
  fontSize: 'field.sm',
2859
3014
  marginEnd: 1,
2860
3015
  mb: 1
2861
3016
  });
2862
3017
  const FormLabel = /*#__PURE__*/styledSystem.defineStyleConfig({
2863
- baseStyle
3018
+ baseStyle: baseStyle$1
2864
3019
  });
2865
3020
 
2866
3021
  const {
2867
3022
  definePartsStyle: definePartsStyle$1,
2868
- defineMultiStyleConfig
3023
+ defineMultiStyleConfig: defineMultiStyleConfig$1
2869
3024
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.inputAnatomy.keys);
2870
- const baseStyle$1 = /*#__PURE__*/definePartsStyle$1({
3025
+ const baseStyle$2 = /*#__PURE__*/definePartsStyle$1({
2871
3026
  field: {
2872
3027
  width: '100%',
2873
3028
  minWidth: 0,
@@ -2973,7 +3128,7 @@ const outline = /*#__PURE__*/definePartsStyle$1(props => {
2973
3128
  }
2974
3129
  };
2975
3130
  });
2976
- const unstyled = /*#__PURE__*/definePartsStyle$1({
3131
+ const unstyled$1 = /*#__PURE__*/definePartsStyle$1({
2977
3132
  field: {
2978
3133
  bg: 'transparent',
2979
3134
  px: '0',
@@ -2985,28 +3140,130 @@ const unstyled = /*#__PURE__*/definePartsStyle$1({
2985
3140
  height: 'auto'
2986
3141
  }
2987
3142
  });
2988
- const variants = {
3143
+ const variants$1 = {
2989
3144
  outline,
2990
- unstyled
3145
+ unstyled: unstyled$1
2991
3146
  };
2992
- const Input = /*#__PURE__*/defineMultiStyleConfig({
2993
- baseStyle: baseStyle$1,
3147
+ const Input = /*#__PURE__*/defineMultiStyleConfig$1({
3148
+ baseStyle: baseStyle$2,
2994
3149
  sizes: sizes$1,
2995
- variants,
3150
+ variants: variants$1,
2996
3151
  defaultProps: {
2997
3152
  size: 'sm',
2998
3153
  variant: 'outline'
2999
3154
  }
3000
3155
  });
3001
3156
 
3157
+ const rotate = /*#__PURE__*/react$1.keyframes({
3158
+ '0%': {
3159
+ transform: 'rotate(0deg)'
3160
+ },
3161
+ '100%': {
3162
+ transform: 'rotate(360deg)'
3163
+ }
3164
+ });
3165
+ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
3166
+ baseStyle: props => {
3167
+ const colors$1 = props.color === 'white' ? 'white' : colors.primary[600];
3168
+ return {
3169
+ borderRadius: '50%',
3170
+ display: 'flex',
3171
+ justifyContent: 'center',
3172
+ alignItems: 'center',
3173
+ animation: `${rotate} 1s linear infinite`,
3174
+ background: `conic-gradient(from 180deg at 50% 50%, ${colors$1} 0deg, rgba(217, 217, 217, 0) 360deg);`,
3175
+ ':before': {
3176
+ content: `''`,
3177
+ display: 'block',
3178
+ borderRadius: '50%',
3179
+ width: '6px',
3180
+ height: '6px',
3181
+ position: 'absolute',
3182
+ bottom: 0,
3183
+ background: colors$1
3184
+ }
3185
+ };
3186
+ },
3187
+ sizes: {
3188
+ xs: {
3189
+ width: '12px',
3190
+ height: '12px',
3191
+ WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.4px),#000 0);',
3192
+ ':before': {
3193
+ width: '1.4px',
3194
+ height: '1.4px'
3195
+ }
3196
+ },
3197
+ sm: {
3198
+ width: '16px',
3199
+ height: '16px',
3200
+ WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 1.87px),#000 0);',
3201
+ ':before': {
3202
+ width: '1.87px',
3203
+ height: '1.87px'
3204
+ }
3205
+ },
3206
+ md: {
3207
+ width: '24px',
3208
+ height: '24px',
3209
+ WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 2.8px),#000 0);',
3210
+ ':before': {
3211
+ width: '2.8px',
3212
+ height: '2.8px'
3213
+ }
3214
+ },
3215
+ lg: {
3216
+ width: '50px',
3217
+ height: '50px',
3218
+ WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 5.83px),#000 0);',
3219
+ ':before': {
3220
+ width: '5.83px',
3221
+ height: '5.83px'
3222
+ }
3223
+ },
3224
+ xl: {
3225
+ width: '75px',
3226
+ height: '75px',
3227
+ WebkitMask: 'radial-gradient(farthest-side,#0000 calc(100% - 8.75px),#000 0);',
3228
+ ':before': {
3229
+ width: '8.75px',
3230
+ height: '8.75px'
3231
+ }
3232
+ },
3233
+ xxl: {
3234
+ width: '100px',
3235
+ height: '100px',
3236
+ WebkitMask: `radial-gradient(farthest-side,#0000 calc(100% - 11.67px),#000 0);`,
3237
+ ':before': {
3238
+ width: '11.67px',
3239
+ height: '11.67px'
3240
+ }
3241
+ }
3242
+ },
3243
+ defaultProps: {
3244
+ size: 'lg'
3245
+ }
3246
+ });
3247
+
3002
3248
  const {
3003
3249
  definePartsStyle: definePartsStyle$2
3250
+ } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.popoverAnatomy.keys);
3251
+ const Popover = {
3252
+ baseStyle: props => definePartsStyle$2({
3253
+ popper: {
3254
+ background: themeTools.mode('white', 'inherit')(props)
3255
+ }
3256
+ })
3257
+ };
3258
+
3259
+ const {
3260
+ definePartsStyle: definePartsStyle$3
3004
3261
  } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.radioAnatomy.keys);
3005
3262
  // You can also use the more specific type for
3006
3263
  // a single part component: ComponentSingleStyleConfig
3007
3264
  const Radio = {
3008
3265
  // The styles all checkbox have in common
3009
- baseStyle: /*#__PURE__*/definePartsStyle$2({
3266
+ baseStyle: /*#__PURE__*/definePartsStyle$3({
3010
3267
  control: {
3011
3268
  _checked: {
3012
3269
  borderColor: 'primary.500',
@@ -3025,7 +3282,7 @@ const Radio = {
3025
3282
  }),
3026
3283
  // Two sizes: sm and md
3027
3284
  sizes: {
3028
- sm: /*#__PURE__*/definePartsStyle$2({
3285
+ sm: /*#__PURE__*/definePartsStyle$3({
3029
3286
  control: {
3030
3287
  w: '3',
3031
3288
  h: '3'
@@ -3034,7 +3291,7 @@ const Radio = {
3034
3291
  fontSize: 'text.sm'
3035
3292
  }
3036
3293
  }),
3037
- md: /*#__PURE__*/definePartsStyle$2({
3294
+ md: /*#__PURE__*/definePartsStyle$3({
3038
3295
  control: {
3039
3296
  w: '4',
3040
3297
  h: '4'
@@ -3043,7 +3300,7 @@ const Radio = {
3043
3300
  fontSize: 'text.md'
3044
3301
  }
3045
3302
  }),
3046
- lg: /*#__PURE__*/definePartsStyle$2({
3303
+ lg: /*#__PURE__*/definePartsStyle$3({
3047
3304
  control: {
3048
3305
  w: '5',
3049
3306
  h: '5'
@@ -3065,10 +3322,10 @@ const Radio = {
3065
3322
  };
3066
3323
 
3067
3324
  const {
3068
- definePartsStyle: definePartsStyle$3,
3069
- defineMultiStyleConfig: defineMultiStyleConfig$1
3325
+ definePartsStyle: definePartsStyle$4,
3326
+ defineMultiStyleConfig: defineMultiStyleConfig$2
3070
3327
  } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.switchAnatomy.keys);
3071
- const baseStyle$2 = /*#__PURE__*/definePartsStyle$3({
3328
+ const baseStyle$3 = /*#__PURE__*/definePartsStyle$4({
3072
3329
  // define the part you're going to style
3073
3330
  container: {
3074
3331
  // ...
@@ -3084,21 +3341,10 @@ const baseStyle$2 = /*#__PURE__*/definePartsStyle$3({
3084
3341
  }
3085
3342
  }
3086
3343
  });
3087
- const Switch = /*#__PURE__*/defineMultiStyleConfig$1({
3088
- baseStyle: baseStyle$2
3344
+ const Switch = /*#__PURE__*/defineMultiStyleConfig$2({
3345
+ baseStyle: baseStyle$3
3089
3346
  });
3090
3347
 
3091
- const {
3092
- definePartsStyle: definePartsStyle$4
3093
- } = /*#__PURE__*/styledSystem.createMultiStyleConfigHelpers(anatomy.popoverAnatomy.keys);
3094
- const Popover = {
3095
- baseStyle: props => definePartsStyle$4({
3096
- popper: {
3097
- background: themeTools.mode('white', 'inherit')(props)
3098
- }
3099
- })
3100
- };
3101
-
3102
3348
  const Textarea = {
3103
3349
  baseStyle: {
3104
3350
  _hover: {
@@ -3129,12 +3375,14 @@ const Textarea = {
3129
3375
  var components = {
3130
3376
  __proto__: null,
3131
3377
  Button: Button,
3378
+ Card: CardStyle,
3132
3379
  Checkbox: Checkbox,
3133
3380
  FormLabel: FormLabel,
3134
3381
  Input: Input,
3382
+ LoaderStyle: LoaderStyle,
3383
+ Popover: Popover,
3135
3384
  Radio: Radio,
3136
3385
  Switch: Switch,
3137
- Popover: Popover,
3138
3386
  Textarea: Textarea
3139
3387
  };
3140
3388
 
@@ -3153,7 +3401,8 @@ const theme = /*#__PURE__*/react.extendTheme({
3153
3401
  background: 'neutral.400'
3154
3402
  },
3155
3403
  body: {
3156
- fontSize: 'text.sm'
3404
+ fontSize: 'text.sm',
3405
+ color: 'black.high'
3157
3406
  }
3158
3407
  }
3159
3408
  },
@@ -3430,12 +3679,15 @@ Object.defineProperty(exports, 'useTabsStyles', {
3430
3679
  }
3431
3680
  });
3432
3681
  exports.BreadCrumb = BreadCrumb;
3682
+ exports.Card = CardCustom;
3683
+ exports.Checkbox = CheckboxComponent;
3433
3684
  exports.DataTable = DataTable;
3434
3685
  exports.DatePickerMonth = DatePickerMonth;
3435
3686
  exports.Datepicker = Datepicker;
3436
3687
  exports.Field = Field;
3437
3688
  exports.Header = Header;
3438
3689
  exports.InputField = InputField;
3690
+ exports.Loader = Loader;
3439
3691
  exports.MainMenu = Navigation;
3440
3692
  exports.ModalBody = ModalBody;
3441
3693
  exports.ModalCloseButton = ModalCloseButton;