@ctlyst.id/internal-ui 2.0.28 → 2.0.29-canary.1

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.
Files changed (36) hide show
  1. package/dist/components/alert/__stories__/alert.stories.d.ts +0 -3
  2. package/dist/components/badge/__stories__/badge.stories.d.ts +0 -3
  3. package/dist/components/base/__stories__/switch.stories.d.ts +0 -3
  4. package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +0 -3
  5. package/dist/components/button/__stories__/button.stories.d.ts +0 -3
  6. package/dist/components/card/__stories__/card.stories.d.ts +0 -3
  7. package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +0 -3
  8. package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +0 -3
  9. package/dist/components/chips/__stories__/chips.stories.d.ts +0 -3
  10. package/dist/components/data-table/__stories__/datatable.stories.d.ts +0 -3
  11. package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +0 -3
  12. package/dist/components/form/__stories__/textarea.stories.d.ts +0 -3
  13. package/dist/components/header/__stories__/header.stories.d.ts +0 -3
  14. package/dist/components/loader/__stories__/loader.stories.d.ts +0 -3
  15. package/dist/components/modal/__stories__/modal.stories.d.ts +0 -3
  16. package/dist/components/navigation/__stories__/navigation.stories.d.ts +0 -3
  17. package/dist/components/pagination/__stories__/pagination.stories.d.ts +0 -3
  18. package/dist/components/radio/__stories__/radio-group.stories.d.ts +0 -3
  19. package/dist/components/radio/__stories__/radio.stories.d.ts +0 -3
  20. package/dist/components/rating/__stories__/rating.stories.d.ts +0 -3
  21. package/dist/components/select/__stories__/select.stories.d.ts +0 -3
  22. package/dist/components/switch/__stories__/switch.stories.d.ts +0 -3
  23. package/dist/components/tabs/__stories__/tabs.stories.d.ts +0 -3
  24. package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +0 -3
  25. package/dist/components/uploader/__stories__/uploader.stories.d.ts +0 -3
  26. package/dist/config/theme/foundations/index.d.ts +0 -1
  27. package/dist/config/theme/themeConfiguration.d.ts +3 -4
  28. package/dist/internal-ui.cjs.development.js +238 -445
  29. package/dist/internal-ui.cjs.development.js.map +1 -1
  30. package/dist/internal-ui.cjs.production.min.js +6 -6
  31. package/dist/internal-ui.cjs.production.min.js.map +1 -1
  32. package/dist/internal-ui.esm.js +239 -446
  33. package/dist/internal-ui.esm.js.map +1 -1
  34. package/dist/provider/__stories__/provider.stories.d.ts +4 -0
  35. package/package.json +5 -4
  36. package/dist/config/theme/foundations/colors.d.ts +0 -158
@@ -1742,423 +1742,6 @@ DatePickerMonth.defaultProps = {
1742
1742
  'data-test-id': ''
1743
1743
  };
1744
1744
 
1745
- const transparent = 'transparent';
1746
- const black = {
1747
- high: '#111111',
1748
- medium: '#707070',
1749
- low: '#B8B8B8'
1750
- };
1751
- const white = {
1752
- high: '#FFFFFF',
1753
- medium: '#F1F1F1',
1754
- low: '#CCCCCC'
1755
- };
1756
- const neutral = {
1757
- '50': '#FFFFFF',
1758
- '100': '#FAFAFA',
1759
- '200': '#F5F5F5',
1760
- '300': '#EEEEEE',
1761
- '400': '#E0E0E0',
1762
- '500': '#BDBDBD',
1763
- '600': '#999999',
1764
- '700': '#242424',
1765
- '800': '#181818',
1766
- '900': '#111111'
1767
- };
1768
- const primary = {
1769
- '50': '#DFFFF1',
1770
- '100': '#ACF5D5',
1771
- '200': '#5EE5A9',
1772
- '300': '#05CB72',
1773
- '400': '#08A45E',
1774
- '500': '#12784A',
1775
- '600': '#0B603A',
1776
- '700': '#075331',
1777
- '800': '#064126',
1778
- '900': '#042E1B'
1779
- };
1780
- const secondary = {
1781
- '50': '#F2F2F3',
1782
- '100': '#DADBDD',
1783
- '200': '#C2C4C7',
1784
- '300': '#AAADB0',
1785
- '400': '#93969A',
1786
- '500': '#7B7F84',
1787
- '600': '#62666A',
1788
- '700': '#4A4C4F',
1789
- '800': '#313335',
1790
- '900': '#19191A'
1791
- };
1792
- const success = {
1793
- '50': '#ECFFED',
1794
- '100': '#D3FCD5',
1795
- '200': '#A9F9B5',
1796
- '300': '#7CEE98',
1797
- '400': '#58DD86',
1798
- '500': '#28C76F',
1799
- '600': '#1DAB6A',
1800
- '700': '#148F63',
1801
- '800': '#0C7359',
1802
- '900': '#075F51'
1803
- };
1804
- const danger = {
1805
- '50': '#FFEDEC',
1806
- '100': '#FFC7C2',
1807
- '200': '#FF8279',
1808
- '300': '#FF5B4F',
1809
- '400': '#F44336',
1810
- '500': '#D82F23',
1811
- '600': '#B71C1C',
1812
- '700': '#930B0B',
1813
- '800': '#660909',
1814
- '900': '#3E0707'
1815
- };
1816
- const warning = {
1817
- '50': '#FFF9EC',
1818
- '100': '#FFEFCC',
1819
- '200': '#FFD591',
1820
- '300': '#FFC069',
1821
- '400': '#FFA230',
1822
- '500': '#F68522',
1823
- '600': '#EF6C00',
1824
- '700': '#C65B03',
1825
- '800': '#9F4901',
1826
- '900': '#652E00'
1827
- };
1828
- const info = {
1829
- '50': '#EBFFFB',
1830
- '100': '#CBFDF2',
1831
- '200': '#97FCEF',
1832
- '300': '#63F8F0',
1833
- '400': '#3CECF1',
1834
- '500': '#00CFE8',
1835
- '600': '#00A1C7',
1836
- '700': '#007AA7',
1837
- '800': '#005786',
1838
- '900': '#003F6F'
1839
- };
1840
- const dark = {
1841
- '50': '#F2F2F2',
1842
- '100': '#DBDBDB',
1843
- '200': '#C4C4C4',
1844
- '300': '#ADADAD',
1845
- '400': '#969696',
1846
- '500': '#808080',
1847
- '600': '#666666',
1848
- '700': '#4D4D4D',
1849
- '800': '#333333',
1850
- '900': '#1A1A1A'
1851
- };
1852
- const mirage = {
1853
- '50': '#EDF0F7',
1854
- '100': '#CED5E9',
1855
- '200': '#AEBADB',
1856
- '300': '#8E9ECC',
1857
- '400': '#6F83BE',
1858
- '500': '#4F68B0',
1859
- '600': '#3F538D',
1860
- '700': '#2F3E6A',
1861
- '800': '#202A46',
1862
- '900': '#101523'
1863
- };
1864
- const ebonyClay = {
1865
- '50': '#EFF1F6',
1866
- '100': '#D2D7E5',
1867
- '200': '#B4BDD4',
1868
- '300': '#97A3C4',
1869
- '400': '#7A89B3',
1870
- '500': '#5D6FA2',
1871
- '600': '#4A5982',
1872
- '700': '#384361',
1873
- '800': '#252D41',
1874
- '900': '#131620'
1875
- };
1876
- const brightGray = {
1877
- '50': '#F0F1F4',
1878
- '100': '#D5D9E1',
1879
- '200': '#BAC0CE',
1880
- '300': '#A0A8BB',
1881
- '400': '#858FA8',
1882
- '500': '#6A7795',
1883
- '600': '#555F77',
1884
- '700': '#404759',
1885
- '800': '#2A2F3C',
1886
- '900': '#15181E'
1887
- };
1888
- const doveGray = {
1889
- '50': '#F2F2F2',
1890
- '100': '#DBDBDB',
1891
- '200': '#C4C4C4',
1892
- '300': '#ADADAD',
1893
- '400': '#969696',
1894
- '500': '#808080',
1895
- '600': '#666666',
1896
- '700': '#4D4D4D',
1897
- '800': '#333333',
1898
- '900': '#1A1A1A'
1899
- };
1900
- const colors = {
1901
- transparent,
1902
- black,
1903
- white,
1904
- neutral,
1905
- primary,
1906
- secondary,
1907
- success,
1908
- danger,
1909
- warning,
1910
- info,
1911
- dark,
1912
- mirage,
1913
- 'ebony-clay': ebonyClay,
1914
- 'bright-gray': brightGray,
1915
- 'dove-gray': doveGray
1916
- };
1917
-
1918
- const radius = {
1919
- none: 0,
1920
- sm: '2px',
1921
- md: '4px',
1922
- lg: '8px',
1923
- full: '9999px'
1924
- };
1925
-
1926
- const shadows = {
1927
- ...react.theme.shadows,
1928
- raised: '0px 4px 20px rgba(0, 0, 0, 0.05)'
1929
- };
1930
-
1931
- const sizes = {
1932
- ...react.theme.sizes,
1933
- 4.5: '1.125rem',
1934
- 9.5: '2.375rem',
1935
- 18: '4.5rem',
1936
- 22: '5.5rem',
1937
- 26: '6.5rem',
1938
- 30: '7.5rem'
1939
- };
1940
-
1941
- const spacing = {
1942
- ...react.theme.space,
1943
- 4.5: '1.125rem',
1944
- 9.5: '2.375rem',
1945
- 18: '4.5rem',
1946
- 22: '5.5rem',
1947
- 26: '6.5rem',
1948
- 30: '7.5rem'
1949
- };
1950
-
1951
- const fonts = {
1952
- heading: `'Poppins', sans-serif`,
1953
- body: `'Poppins', sans-serif`
1954
- };
1955
- const fontWeights = {
1956
- hairline: 100,
1957
- thin: 200,
1958
- light: 300,
1959
- normal: 400,
1960
- medium: 500,
1961
- semibold: 600,
1962
- bold: 700,
1963
- extrabold: 800,
1964
- black: 900
1965
- };
1966
- const lineHeights = {
1967
- normal: 'normal',
1968
- none: 1,
1969
- shorter: 1.25,
1970
- short: 1.375,
1971
- base: 1.5,
1972
- tall: 1.625,
1973
- 64: '4rem',
1974
- 56: '3.5rem',
1975
- 48: '3rem',
1976
- 40: '2.5rem',
1977
- 36: '2.25rem',
1978
- 34: '2.125rem',
1979
- 32: '2rem',
1980
- 30: '1.875rem',
1981
- 28: '1.75',
1982
- 26: '1.625rem',
1983
- 24: '1.5rem',
1984
- 22: '1.375rem',
1985
- 20: '1.25rem',
1986
- 18: '1.125rem',
1987
- 16: '1rem',
1988
- 14: '0.875rem',
1989
- 12: '0.75rem'
1990
- };
1991
- const letterSpacings = {
1992
- tighter: '-0.05em',
1993
- tight: '-0.025em',
1994
- normal: '0',
1995
- wide: '0.025em',
1996
- wider: '0.05em',
1997
- widest: '0.1em'
1998
- };
1999
- const fontSizes = {
2000
- heading: {
2001
- 1: '2.5rem',
2002
- 2: '2rem',
2003
- 3: '1.75rem',
2004
- 4: '1.5rem',
2005
- 5: '1.375rem',
2006
- 6: '1.125rem'
2007
- },
2008
- text: {
2009
- xl: '1.125rem',
2010
- lg: '1rem',
2011
- md: '0.875rem',
2012
- sm: '0.75rem',
2013
- xs: '0.625rem'
2014
- },
2015
- button: {
2016
- lg: '1.125rem',
2017
- md: '0.875rem',
2018
- sm: '0.625rem'
2019
- },
2020
- field: {
2021
- lg: '1rem',
2022
- md: '0.875rem',
2023
- sm: '0.75rem'
2024
- },
2025
- table: {
2026
- header: '0.75rem'
2027
- }
2028
- };
2029
- const heading = {
2030
- 1: {
2031
- fontSize: fontSizes.heading[1],
2032
- fontWeight: fontWeights.semibold,
2033
- lineHeight: lineHeights[64],
2034
- letterSpacing: letterSpacings.normal
2035
- },
2036
- 2: {
2037
- fontSize: fontSizes.heading[2],
2038
- fontWeight: fontWeights.semibold,
2039
- lineHeight: lineHeights[56],
2040
- letterSpacing: letterSpacings.normal
2041
- },
2042
- 3: {
2043
- fontSize: fontSizes.heading[3],
2044
- fontWeight: fontWeights.semibold,
2045
- lineHeight: lineHeights[48],
2046
- letterSpacing: letterSpacings.normal
2047
- },
2048
- 4: {
2049
- fontSize: fontSizes.heading[4],
2050
- fontWeight: fontWeights.semibold,
2051
- lineHeight: lineHeights[40],
2052
- letterSpacing: letterSpacings.normal
2053
- },
2054
- 5: {
2055
- fontSize: fontSizes.heading[5],
2056
- fontWeight: fontWeights.semibold,
2057
- lineHeight: lineHeights[36],
2058
- letterSpacing: letterSpacings.normal
2059
- },
2060
- 6: {
2061
- fontSize: fontSizes.heading[6],
2062
- fontWeight: fontWeights.semibold,
2063
- lineHeight: lineHeights[32],
2064
- letterSpacing: letterSpacings.normal
2065
- }
2066
- };
2067
- const text = {
2068
- xl: {
2069
- fontSize: fontSizes.text.xl,
2070
- fontWeight: fontWeights.normal,
2071
- lineHeight: lineHeights[28],
2072
- letterSpacing: letterSpacings.normal
2073
- },
2074
- lg: {
2075
- fontSize: fontSizes.text.lg,
2076
- fontWeight: fontWeights.normal,
2077
- lineHeight: lineHeights[24],
2078
- letterSpacing: letterSpacings.normal
2079
- },
2080
- md: {
2081
- fontSize: fontSizes.text.md,
2082
- fontWeight: fontWeights.normal,
2083
- lineHeight: lineHeights[22],
2084
- letterSpacing: letterSpacings.normal
2085
- },
2086
- sm: {
2087
- fontSize: fontSizes.text.sm,
2088
- fontWeight: fontWeights.normal,
2089
- lineHeight: lineHeights[18],
2090
- letterSpacing: letterSpacings.normal
2091
- },
2092
- xs: {
2093
- fontSize: fontSizes.text.xs,
2094
- fontWeight: fontWeights.normal,
2095
- lineHeight: lineHeights[14],
2096
- letterSpacing: letterSpacings.normal
2097
- }
2098
- };
2099
- const button = {
2100
- lg: {
2101
- fontSize: fontSizes.button.lg,
2102
- lineHeight: lineHeights[28],
2103
- letterSpacing: letterSpacings.normal,
2104
- fontWeight: fontWeights.normal
2105
- },
2106
- md: {
2107
- fontSize: fontSizes.button.md,
2108
- lineHeight: lineHeights[22],
2109
- letterSpacing: letterSpacings.normal,
2110
- fontWeight: fontWeights.normal
2111
- },
2112
- sm: {
2113
- fontSize: fontSizes.button.sm,
2114
- lineHeight: lineHeights[14],
2115
- letterSpacing: letterSpacings.normal,
2116
- fontWeight: fontWeights.normal
2117
- }
2118
- };
2119
- const field = {
2120
- lg: {
2121
- fontSize: fontSizes.field.lg,
2122
- lineHeight: lineHeights[24],
2123
- letterSpacing: letterSpacings.normal,
2124
- fontWeight: fontWeights.normal
2125
- },
2126
- md: {
2127
- fontSize: fontSizes.field.md,
2128
- lineHeight: lineHeights[22],
2129
- letterSpacing: letterSpacings.normal,
2130
- fontWeight: fontWeights.normal
2131
- },
2132
- sm: {
2133
- fontSize: fontSizes.field.sm,
2134
- lineHeight: lineHeights[18],
2135
- letterSpacing: letterSpacings.normal,
2136
- fontWeight: fontWeights.normal
2137
- }
2138
- };
2139
- const textStyles = {
2140
- heading,
2141
- text,
2142
- button,
2143
- field
2144
- };
2145
-
2146
-
2147
-
2148
- var foundations = {
2149
- __proto__: null,
2150
- colors: colors,
2151
- radii: radius,
2152
- shadows: shadows,
2153
- sizes: sizes,
2154
- space: spacing,
2155
- fonts: fonts,
2156
- fontSizes: fontSizes,
2157
- letterSpacings: letterSpacings,
2158
- lineHeights: lineHeights,
2159
- textStyles: textStyles
2160
- };
2161
-
2162
1745
  const MultiDateWrapper = /*#__PURE__*/styled(react.Box)`
2163
1746
  display: flex;
2164
1747
  align-items: center;
@@ -2168,7 +1751,7 @@ const MultiDateWrapper = /*#__PURE__*/styled(react.Box)`
2168
1751
  border-radius: 4px;
2169
1752
  border-color: ${({
2170
1753
  isError
2171
- }) => isError ? `${colors.danger[500]}` : `${colors.primary[500]}`};
1754
+ }) => isError ? 'var(--chakra-colors-danger-500)' : 'var(--chakra-colors-primary-500)'};
2172
1755
  `;
2173
1756
  const MultiDatePickerMonth = ({
2174
1757
  onChange,
@@ -3037,6 +2620,197 @@ SelectWrapper.defaultProps = {
3037
2620
  isError: false
3038
2621
  };
3039
2622
 
2623
+ const fontWeights = {
2624
+ hairline: 100,
2625
+ thin: 200,
2626
+ light: 300,
2627
+ normal: 400,
2628
+ medium: 500,
2629
+ semibold: 600,
2630
+ bold: 700,
2631
+ extrabold: 800,
2632
+ black: 900
2633
+ };
2634
+ const lineHeights = {
2635
+ normal: 'normal',
2636
+ none: 1,
2637
+ shorter: 1.25,
2638
+ short: 1.375,
2639
+ base: 1.5,
2640
+ tall: 1.625,
2641
+ 64: '4rem',
2642
+ 56: '3.5rem',
2643
+ 48: '3rem',
2644
+ 40: '2.5rem',
2645
+ 36: '2.25rem',
2646
+ 34: '2.125rem',
2647
+ 32: '2rem',
2648
+ 30: '1.875rem',
2649
+ 28: '1.75',
2650
+ 26: '1.625rem',
2651
+ 24: '1.5rem',
2652
+ 22: '1.375rem',
2653
+ 20: '1.25rem',
2654
+ 18: '1.125rem',
2655
+ 16: '1rem',
2656
+ 14: '0.875rem',
2657
+ 12: '0.75rem'
2658
+ };
2659
+ const letterSpacings = {
2660
+ tighter: '-0.05em',
2661
+ tight: '-0.025em',
2662
+ normal: '0',
2663
+ wide: '0.025em',
2664
+ wider: '0.05em',
2665
+ widest: '0.1em'
2666
+ };
2667
+ const fontSizes = {
2668
+ heading: {
2669
+ 1: '2.5rem',
2670
+ 2: '2rem',
2671
+ 3: '1.75rem',
2672
+ 4: '1.5rem',
2673
+ 5: '1.375rem',
2674
+ 6: '1.125rem'
2675
+ },
2676
+ text: {
2677
+ xl: '1.125rem',
2678
+ lg: '1rem',
2679
+ md: '0.875rem',
2680
+ sm: '0.75rem',
2681
+ xs: '0.625rem'
2682
+ },
2683
+ button: {
2684
+ lg: '1.125rem',
2685
+ md: '0.875rem',
2686
+ sm: '0.625rem'
2687
+ },
2688
+ field: {
2689
+ lg: '1rem',
2690
+ md: '0.875rem',
2691
+ sm: '0.75rem'
2692
+ },
2693
+ table: {
2694
+ header: '0.75rem'
2695
+ }
2696
+ };
2697
+ const heading = {
2698
+ 1: {
2699
+ fontSize: fontSizes.heading[1],
2700
+ fontWeight: fontWeights.semibold,
2701
+ lineHeight: lineHeights[64],
2702
+ letterSpacing: letterSpacings.normal
2703
+ },
2704
+ 2: {
2705
+ fontSize: fontSizes.heading[2],
2706
+ fontWeight: fontWeights.semibold,
2707
+ lineHeight: lineHeights[56],
2708
+ letterSpacing: letterSpacings.normal
2709
+ },
2710
+ 3: {
2711
+ fontSize: fontSizes.heading[3],
2712
+ fontWeight: fontWeights.semibold,
2713
+ lineHeight: lineHeights[48],
2714
+ letterSpacing: letterSpacings.normal
2715
+ },
2716
+ 4: {
2717
+ fontSize: fontSizes.heading[4],
2718
+ fontWeight: fontWeights.semibold,
2719
+ lineHeight: lineHeights[40],
2720
+ letterSpacing: letterSpacings.normal
2721
+ },
2722
+ 5: {
2723
+ fontSize: fontSizes.heading[5],
2724
+ fontWeight: fontWeights.semibold,
2725
+ lineHeight: lineHeights[36],
2726
+ letterSpacing: letterSpacings.normal
2727
+ },
2728
+ 6: {
2729
+ fontSize: fontSizes.heading[6],
2730
+ fontWeight: fontWeights.semibold,
2731
+ lineHeight: lineHeights[32],
2732
+ letterSpacing: letterSpacings.normal
2733
+ }
2734
+ };
2735
+ const text = {
2736
+ xl: {
2737
+ fontSize: fontSizes.text.xl,
2738
+ fontWeight: fontWeights.normal,
2739
+ lineHeight: lineHeights[28],
2740
+ letterSpacing: letterSpacings.normal
2741
+ },
2742
+ lg: {
2743
+ fontSize: fontSizes.text.lg,
2744
+ fontWeight: fontWeights.normal,
2745
+ lineHeight: lineHeights[24],
2746
+ letterSpacing: letterSpacings.normal
2747
+ },
2748
+ md: {
2749
+ fontSize: fontSizes.text.md,
2750
+ fontWeight: fontWeights.normal,
2751
+ lineHeight: lineHeights[22],
2752
+ letterSpacing: letterSpacings.normal
2753
+ },
2754
+ sm: {
2755
+ fontSize: fontSizes.text.sm,
2756
+ fontWeight: fontWeights.normal,
2757
+ lineHeight: lineHeights[18],
2758
+ letterSpacing: letterSpacings.normal
2759
+ },
2760
+ xs: {
2761
+ fontSize: fontSizes.text.xs,
2762
+ fontWeight: fontWeights.normal,
2763
+ lineHeight: lineHeights[14],
2764
+ letterSpacing: letterSpacings.normal
2765
+ }
2766
+ };
2767
+ const button = {
2768
+ lg: {
2769
+ fontSize: fontSizes.button.lg,
2770
+ lineHeight: lineHeights[28],
2771
+ letterSpacing: letterSpacings.normal,
2772
+ fontWeight: fontWeights.normal
2773
+ },
2774
+ md: {
2775
+ fontSize: fontSizes.button.md,
2776
+ lineHeight: lineHeights[22],
2777
+ letterSpacing: letterSpacings.normal,
2778
+ fontWeight: fontWeights.normal
2779
+ },
2780
+ sm: {
2781
+ fontSize: fontSizes.button.sm,
2782
+ lineHeight: lineHeights[14],
2783
+ letterSpacing: letterSpacings.normal,
2784
+ fontWeight: fontWeights.normal
2785
+ }
2786
+ };
2787
+ const field = {
2788
+ lg: {
2789
+ fontSize: fontSizes.field.lg,
2790
+ lineHeight: lineHeights[24],
2791
+ letterSpacing: letterSpacings.normal,
2792
+ fontWeight: fontWeights.normal
2793
+ },
2794
+ md: {
2795
+ fontSize: fontSizes.field.md,
2796
+ lineHeight: lineHeights[22],
2797
+ letterSpacing: letterSpacings.normal,
2798
+ fontWeight: fontWeights.normal
2799
+ },
2800
+ sm: {
2801
+ fontSize: fontSizes.field.sm,
2802
+ lineHeight: lineHeights[18],
2803
+ letterSpacing: letterSpacings.normal,
2804
+ fontWeight: fontWeights.normal
2805
+ }
2806
+ };
2807
+ const textStyles = {
2808
+ heading,
2809
+ text,
2810
+ button,
2811
+ field
2812
+ };
2813
+
3040
2814
  const styleMd = textStyles.text.sm;
3041
2815
  const selectStyle = {
3042
2816
  fontSize: styleMd.fontSize,
@@ -3047,20 +2821,20 @@ const boxShadow = color => `0 0 0 1px ${color}`;
3047
2821
  function selectStyles(colorMode, _isError) {
3048
2822
  const boxShadowLight = (isFocused = false, isError = false) => {
3049
2823
  if (isError && isFocused || isError) {
3050
- return boxShadow(colors.danger['500']);
2824
+ return boxShadow('danger.500');
3051
2825
  }
3052
2826
  if (isFocused) {
3053
- return boxShadow(colors.primary['500']);
2827
+ return boxShadow('primary.500');
3054
2828
  }
3055
- return boxShadow(colors.neutral['400']);
2829
+ return boxShadow('neutral.400');
3056
2830
  };
3057
2831
  return {
3058
2832
  control: (base, state) => colorMode === 'dark' ? {
3059
2833
  ...base,
3060
2834
  ...selectStyle,
3061
2835
  background: 'transparent',
3062
- color: colors.primary['300'],
3063
- borderColor: colors.secondary['500'],
2836
+ color: 'primary.300',
2837
+ borderColor: 'secondary.500',
3064
2838
  boxShadow: state.isFocused ? 'none' : `inherit`
3065
2839
  } : {
3066
2840
  ...base,
@@ -3073,7 +2847,7 @@ function selectStyles(colorMode, _isError) {
3073
2847
  }) => colorMode === 'dark' ? {
3074
2848
  ...base,
3075
2849
  ...selectStyle,
3076
- background: isSelected ? colors.primary['700'] : colors.dark['800'],
2850
+ background: isSelected ? 'primary.700' : 'dark.800',
3077
2851
  color: 'white'
3078
2852
  } : {
3079
2853
  ...base,
@@ -3082,7 +2856,7 @@ function selectStyles(colorMode, _isError) {
3082
2856
  menu: base => colorMode === 'dark' ? {
3083
2857
  ...base,
3084
2858
  ...selectStyle,
3085
- background: colors.dark['800'],
2859
+ background: 'dark.800',
3086
2860
  zIndex: 5
3087
2861
  } : {
3088
2862
  ...base,
@@ -3108,7 +2882,7 @@ function selectStyles(colorMode, _isError) {
3108
2882
  dropdownIndicator: base => colorMode === 'dark' ? {
3109
2883
  ...base,
3110
2884
  ...selectStyle,
3111
- color: colors.secondary['500']
2885
+ color: 'secondary.500'
3112
2886
  } : {
3113
2887
  ...base,
3114
2888
  ...selectStyle
@@ -3116,7 +2890,7 @@ function selectStyles(colorMode, _isError) {
3116
2890
  indicatorSeparator: base => colorMode === 'dark' ? {
3117
2891
  ...base,
3118
2892
  ...selectStyle,
3119
- backgroundColor: colors.secondary['500']
2893
+ backgroundColor: 'secondary.500'
3120
2894
  } : {
3121
2895
  ...base,
3122
2896
  ...selectStyle
@@ -3125,7 +2899,7 @@ function selectStyles(colorMode, _isError) {
3125
2899
  return {
3126
2900
  ...base,
3127
2901
  ...selectStyle,
3128
- color: colors.black.low
2902
+ color: 'black.low'
3129
2903
  };
3130
2904
  }
3131
2905
  };
@@ -3135,10 +2909,10 @@ const themeSelect = theme => {
3135
2909
  ...theme,
3136
2910
  colors: {
3137
2911
  ...theme.colors,
3138
- primary: colors.primary['500'],
3139
- primary25: colors.primary['50'],
3140
- primary50: colors.primary['100'],
3141
- primary75: colors.primary['200']
2912
+ primary: 'primary.500',
2913
+ primary25: 'primary.50',
2914
+ primary50: 'primary.100',
2915
+ primary75: 'primary.200'
3142
2916
  }
3143
2917
  };
3144
2918
  };
@@ -4121,7 +3895,7 @@ const size = {
4121
3895
  borderRadius: 'md'
4122
3896
  })
4123
3897
  };
4124
- const sizes$1 = {
3898
+ const sizes = {
4125
3899
  lg: /*#__PURE__*/definePartsStyle$2({
4126
3900
  field: size.lg,
4127
3901
  addon: size.lg
@@ -4171,7 +3945,7 @@ const variants$2 = {
4171
3945
  };
4172
3946
  const Input = /*#__PURE__*/defineMultiStyleConfig$2({
4173
3947
  baseStyle: baseStyle$3,
4174
- sizes: sizes$1,
3948
+ sizes,
4175
3949
  variants: variants$2,
4176
3950
  defaultProps: {
4177
3951
  size: 'sm',
@@ -4188,10 +3962,10 @@ const rotate = /*#__PURE__*/react$1.keyframes({
4188
3962
  }
4189
3963
  });
4190
3964
  const getLoaderColor = color => {
4191
- if (color === 'primary') return colors.primary[600];
4192
- if (color === 'danger') return colors.danger[500];
4193
- if (color === 'warning') return colors.warning[700];
4194
- return colors.white.high;
3965
+ if (color === 'primary') return '--chakra-colors-primary-600';
3966
+ if (color === 'danger') return '--chakra-colors-danger-500';
3967
+ if (color === 'warning') return '--chakra-colors-warning-700';
3968
+ return '--chakra-colors-white-high';
4195
3969
  };
4196
3970
  const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4197
3971
  baseStyle: props => {
@@ -4202,7 +3976,7 @@ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4202
3976
  justifyContent: 'center',
4203
3977
  alignItems: 'center',
4204
3978
  animation: `${rotate} 1s linear infinite`,
4205
- background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,
3979
+ background: `conic-gradient(from 180deg at 50% 50%, var(${colors}) 0deg, rgba(217, 217, 217, 0) 360deg);`,
4206
3980
  ':before': {
4207
3981
  content: `''`,
4208
3982
  display: 'block',
@@ -4433,7 +4207,7 @@ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4433
4207
  },
4434
4208
  thumb: baseStyleThumb
4435
4209
  }));
4436
- const sizes$2 = {
4210
+ const sizes$1 = {
4437
4211
  sm: /*#__PURE__*/definePartsStyle$5({
4438
4212
  container: {
4439
4213
  [$width.variable]: '2.125rem',
@@ -4455,7 +4229,7 @@ const sizes$2 = {
4455
4229
  };
4456
4230
  const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4457
4231
  baseStyle: baseStyle$5,
4458
- sizes: sizes$2,
4232
+ sizes: sizes$1,
4459
4233
  defaultProps: {
4460
4234
  size: 'md'
4461
4235
  }
@@ -4576,7 +4350,7 @@ const variants$4 = {
4576
4350
  striped: variantStripe,
4577
4351
  unstyled: /*#__PURE__*/styledSystem.defineStyle({})
4578
4352
  };
4579
- const sizes$3 = {
4353
+ const sizes$2 = {
4580
4354
  sm: /*#__PURE__*/definePartsStyle$6({
4581
4355
  th: {
4582
4356
  px: '4',
@@ -4648,7 +4422,7 @@ const sizes$3 = {
4648
4422
  const tableTheme = /*#__PURE__*/defineMultiStyleConfig$5({
4649
4423
  baseStyle: baseStyle$6,
4650
4424
  variants: variants$4,
4651
- sizes: sizes$3,
4425
+ sizes: sizes$2,
4652
4426
  defaultProps: {
4653
4427
  variant: 'simple',
4654
4428
  size: 'md',
@@ -4759,8 +4533,27 @@ const config = {
4759
4533
  initialColorMode: 'light',
4760
4534
  useSystemColorMode: false
4761
4535
  };
4536
+ const getTheme = foundations => {
4537
+ return react.extendTheme({
4538
+ ...foundations,
4539
+ components: {
4540
+ ...components
4541
+ },
4542
+ styles: {
4543
+ global: {
4544
+ '*::-webkit-scrollbar-thumb': {
4545
+ background: 'neutral.400'
4546
+ },
4547
+ body: {
4548
+ fontSize: 'text.sm',
4549
+ color: 'black.high'
4550
+ }
4551
+ }
4552
+ },
4553
+ config
4554
+ });
4555
+ };
4762
4556
  const theme = /*#__PURE__*/react.extendTheme({
4763
- ...foundations,
4764
4557
  components: {
4765
4558
  ...components
4766
4559
  },
@@ -5536,7 +5329,7 @@ exports.TabList = TabList;
5536
5329
  exports.TabPanel = TabPanel;
5537
5330
  exports.TextareaField = TextareaField;
5538
5331
  exports.Uploader = Uploader;
5539
- exports.foundations = foundations;
5332
+ exports.getTheme = getTheme;
5540
5333
  exports.theme = theme;
5541
5334
  exports.useAlertStyles = useAlertStyles;
5542
5335
  exports.useFetcher = useFetcher;