@ctlyst.id/internal-ui 2.0.27 → 2.0.29-canary.0

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/badge/__stories__/badge.stories.d.ts +0 -3
  2. package/dist/components/base/__stories__/switch.stories.d.ts +0 -3
  3. package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +0 -3
  4. package/dist/components/button/__stories__/button.stories.d.ts +0 -3
  5. package/dist/components/card/__stories__/card.stories.d.ts +0 -3
  6. package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +0 -3
  7. package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +0 -3
  8. package/dist/components/chips/__stories__/chips.stories.d.ts +0 -3
  9. package/dist/components/data-table/__stories__/datatable.stories.d.ts +0 -3
  10. package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +0 -3
  11. package/dist/components/form/__stories__/textarea.stories.d.ts +0 -3
  12. package/dist/components/header/__stories__/header.stories.d.ts +0 -3
  13. package/dist/components/loader/__stories__/loader.stories.d.ts +0 -3
  14. package/dist/components/modal/__stories__/modal.stories.d.ts +0 -3
  15. package/dist/components/navigation/__stories__/navigation.stories.d.ts +0 -3
  16. package/dist/components/pagination/__stories__/pagination.stories.d.ts +0 -3
  17. package/dist/components/radio/__stories__/radio-group.stories.d.ts +0 -3
  18. package/dist/components/radio/__stories__/radio.stories.d.ts +0 -3
  19. package/dist/components/rating/__stories__/rating.stories.d.ts +0 -3
  20. package/dist/components/select/__stories__/select.stories.d.ts +0 -3
  21. package/dist/components/switch/__stories__/switch.stories.d.ts +0 -3
  22. package/dist/components/tabs/__stories__/tabs.stories.d.ts +0 -3
  23. package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +0 -3
  24. package/dist/components/uploader/__stories__/uploader.stories.d.ts +0 -3
  25. package/dist/config/theme/components/loader.d.ts +1 -1
  26. package/dist/config/theme/foundations/index.d.ts +0 -1
  27. package/dist/config/theme/themeConfiguration.d.ts +1 -0
  28. package/dist/internal-ui.cjs.development.js +286 -437
  29. package/dist/internal-ui.cjs.development.js.map +1 -1
  30. package/dist/internal-ui.cjs.production.min.js +5 -5
  31. package/dist/internal-ui.cjs.production.min.js.map +1 -1
  32. package/dist/internal-ui.esm.js +287 -439
  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,
@@ -2750,6 +2333,7 @@ const PaginationButton = /*#__PURE__*/react.forwardRef(({
2750
2333
  py: 2,
2751
2334
  h: 8,
2752
2335
  minW: "auto",
2336
+ width: 8,
2753
2337
  background: isActive ? 'primary.500' : btnBg,
2754
2338
  color: isActive ? 'white' : btnColor,
2755
2339
  _hover: !isActive ? {
@@ -3036,6 +2620,249 @@ SelectWrapper.defaultProps = {
3036
2620
  isError: false
3037
2621
  };
3038
2622
 
2623
+ const radius = {
2624
+ none: 0,
2625
+ sm: '2px',
2626
+ md: '4px',
2627
+ lg: '8px',
2628
+ full: '9999px'
2629
+ };
2630
+
2631
+ const shadows = {
2632
+ ...react.theme.shadows,
2633
+ raised: '0px 4px 20px rgba(0, 0, 0, 0.05)'
2634
+ };
2635
+
2636
+ const sizes = {
2637
+ ...react.theme.sizes,
2638
+ 4.5: '1.125rem',
2639
+ 9.5: '2.375rem',
2640
+ 18: '4.5rem',
2641
+ 22: '5.5rem',
2642
+ 26: '6.5rem',
2643
+ 30: '7.5rem'
2644
+ };
2645
+
2646
+ const spacing = {
2647
+ ...react.theme.space,
2648
+ 4.5: '1.125rem',
2649
+ 9.5: '2.375rem',
2650
+ 18: '4.5rem',
2651
+ 22: '5.5rem',
2652
+ 26: '6.5rem',
2653
+ 30: '7.5rem'
2654
+ };
2655
+
2656
+ const fonts = {
2657
+ heading: `'Poppins', sans-serif`,
2658
+ body: `'Poppins', sans-serif`
2659
+ };
2660
+ const fontWeights = {
2661
+ hairline: 100,
2662
+ thin: 200,
2663
+ light: 300,
2664
+ normal: 400,
2665
+ medium: 500,
2666
+ semibold: 600,
2667
+ bold: 700,
2668
+ extrabold: 800,
2669
+ black: 900
2670
+ };
2671
+ const lineHeights = {
2672
+ normal: 'normal',
2673
+ none: 1,
2674
+ shorter: 1.25,
2675
+ short: 1.375,
2676
+ base: 1.5,
2677
+ tall: 1.625,
2678
+ 64: '4rem',
2679
+ 56: '3.5rem',
2680
+ 48: '3rem',
2681
+ 40: '2.5rem',
2682
+ 36: '2.25rem',
2683
+ 34: '2.125rem',
2684
+ 32: '2rem',
2685
+ 30: '1.875rem',
2686
+ 28: '1.75',
2687
+ 26: '1.625rem',
2688
+ 24: '1.5rem',
2689
+ 22: '1.375rem',
2690
+ 20: '1.25rem',
2691
+ 18: '1.125rem',
2692
+ 16: '1rem',
2693
+ 14: '0.875rem',
2694
+ 12: '0.75rem'
2695
+ };
2696
+ const letterSpacings = {
2697
+ tighter: '-0.05em',
2698
+ tight: '-0.025em',
2699
+ normal: '0',
2700
+ wide: '0.025em',
2701
+ wider: '0.05em',
2702
+ widest: '0.1em'
2703
+ };
2704
+ const fontSizes = {
2705
+ heading: {
2706
+ 1: '2.5rem',
2707
+ 2: '2rem',
2708
+ 3: '1.75rem',
2709
+ 4: '1.5rem',
2710
+ 5: '1.375rem',
2711
+ 6: '1.125rem'
2712
+ },
2713
+ text: {
2714
+ xl: '1.125rem',
2715
+ lg: '1rem',
2716
+ md: '0.875rem',
2717
+ sm: '0.75rem',
2718
+ xs: '0.625rem'
2719
+ },
2720
+ button: {
2721
+ lg: '1.125rem',
2722
+ md: '0.875rem',
2723
+ sm: '0.625rem'
2724
+ },
2725
+ field: {
2726
+ lg: '1rem',
2727
+ md: '0.875rem',
2728
+ sm: '0.75rem'
2729
+ },
2730
+ table: {
2731
+ header: '0.75rem'
2732
+ }
2733
+ };
2734
+ const heading = {
2735
+ 1: {
2736
+ fontSize: fontSizes.heading[1],
2737
+ fontWeight: fontWeights.semibold,
2738
+ lineHeight: lineHeights[64],
2739
+ letterSpacing: letterSpacings.normal
2740
+ },
2741
+ 2: {
2742
+ fontSize: fontSizes.heading[2],
2743
+ fontWeight: fontWeights.semibold,
2744
+ lineHeight: lineHeights[56],
2745
+ letterSpacing: letterSpacings.normal
2746
+ },
2747
+ 3: {
2748
+ fontSize: fontSizes.heading[3],
2749
+ fontWeight: fontWeights.semibold,
2750
+ lineHeight: lineHeights[48],
2751
+ letterSpacing: letterSpacings.normal
2752
+ },
2753
+ 4: {
2754
+ fontSize: fontSizes.heading[4],
2755
+ fontWeight: fontWeights.semibold,
2756
+ lineHeight: lineHeights[40],
2757
+ letterSpacing: letterSpacings.normal
2758
+ },
2759
+ 5: {
2760
+ fontSize: fontSizes.heading[5],
2761
+ fontWeight: fontWeights.semibold,
2762
+ lineHeight: lineHeights[36],
2763
+ letterSpacing: letterSpacings.normal
2764
+ },
2765
+ 6: {
2766
+ fontSize: fontSizes.heading[6],
2767
+ fontWeight: fontWeights.semibold,
2768
+ lineHeight: lineHeights[32],
2769
+ letterSpacing: letterSpacings.normal
2770
+ }
2771
+ };
2772
+ const text = {
2773
+ xl: {
2774
+ fontSize: fontSizes.text.xl,
2775
+ fontWeight: fontWeights.normal,
2776
+ lineHeight: lineHeights[28],
2777
+ letterSpacing: letterSpacings.normal
2778
+ },
2779
+ lg: {
2780
+ fontSize: fontSizes.text.lg,
2781
+ fontWeight: fontWeights.normal,
2782
+ lineHeight: lineHeights[24],
2783
+ letterSpacing: letterSpacings.normal
2784
+ },
2785
+ md: {
2786
+ fontSize: fontSizes.text.md,
2787
+ fontWeight: fontWeights.normal,
2788
+ lineHeight: lineHeights[22],
2789
+ letterSpacing: letterSpacings.normal
2790
+ },
2791
+ sm: {
2792
+ fontSize: fontSizes.text.sm,
2793
+ fontWeight: fontWeights.normal,
2794
+ lineHeight: lineHeights[18],
2795
+ letterSpacing: letterSpacings.normal
2796
+ },
2797
+ xs: {
2798
+ fontSize: fontSizes.text.xs,
2799
+ fontWeight: fontWeights.normal,
2800
+ lineHeight: lineHeights[14],
2801
+ letterSpacing: letterSpacings.normal
2802
+ }
2803
+ };
2804
+ const button = {
2805
+ lg: {
2806
+ fontSize: fontSizes.button.lg,
2807
+ lineHeight: lineHeights[28],
2808
+ letterSpacing: letterSpacings.normal,
2809
+ fontWeight: fontWeights.normal
2810
+ },
2811
+ md: {
2812
+ fontSize: fontSizes.button.md,
2813
+ lineHeight: lineHeights[22],
2814
+ letterSpacing: letterSpacings.normal,
2815
+ fontWeight: fontWeights.normal
2816
+ },
2817
+ sm: {
2818
+ fontSize: fontSizes.button.sm,
2819
+ lineHeight: lineHeights[14],
2820
+ letterSpacing: letterSpacings.normal,
2821
+ fontWeight: fontWeights.normal
2822
+ }
2823
+ };
2824
+ const field = {
2825
+ lg: {
2826
+ fontSize: fontSizes.field.lg,
2827
+ lineHeight: lineHeights[24],
2828
+ letterSpacing: letterSpacings.normal,
2829
+ fontWeight: fontWeights.normal
2830
+ },
2831
+ md: {
2832
+ fontSize: fontSizes.field.md,
2833
+ lineHeight: lineHeights[22],
2834
+ letterSpacing: letterSpacings.normal,
2835
+ fontWeight: fontWeights.normal
2836
+ },
2837
+ sm: {
2838
+ fontSize: fontSizes.field.sm,
2839
+ lineHeight: lineHeights[18],
2840
+ letterSpacing: letterSpacings.normal,
2841
+ fontWeight: fontWeights.normal
2842
+ }
2843
+ };
2844
+ const textStyles = {
2845
+ heading,
2846
+ text,
2847
+ button,
2848
+ field
2849
+ };
2850
+
2851
+
2852
+
2853
+ var foundations = {
2854
+ __proto__: null,
2855
+ radii: radius,
2856
+ shadows: shadows,
2857
+ sizes: sizes,
2858
+ space: spacing,
2859
+ fonts: fonts,
2860
+ fontSizes: fontSizes,
2861
+ letterSpacings: letterSpacings,
2862
+ lineHeights: lineHeights,
2863
+ textStyles: textStyles
2864
+ };
2865
+
3039
2866
  const styleMd = textStyles.text.sm;
3040
2867
  const selectStyle = {
3041
2868
  fontSize: styleMd.fontSize,
@@ -3046,20 +2873,20 @@ const boxShadow = color => `0 0 0 1px ${color}`;
3046
2873
  function selectStyles(colorMode, _isError) {
3047
2874
  const boxShadowLight = (isFocused = false, isError = false) => {
3048
2875
  if (isError && isFocused || isError) {
3049
- return boxShadow(colors.danger['500']);
2876
+ return boxShadow('danger.500');
3050
2877
  }
3051
2878
  if (isFocused) {
3052
- return boxShadow(colors.primary['500']);
2879
+ return boxShadow('primary.500');
3053
2880
  }
3054
- return boxShadow(colors.neutral['400']);
2881
+ return boxShadow('neutral.400');
3055
2882
  };
3056
2883
  return {
3057
2884
  control: (base, state) => colorMode === 'dark' ? {
3058
2885
  ...base,
3059
2886
  ...selectStyle,
3060
2887
  background: 'transparent',
3061
- color: colors.primary['300'],
3062
- borderColor: colors.secondary['500'],
2888
+ color: 'primary.300',
2889
+ borderColor: 'secondary.500',
3063
2890
  boxShadow: state.isFocused ? 'none' : `inherit`
3064
2891
  } : {
3065
2892
  ...base,
@@ -3072,7 +2899,7 @@ function selectStyles(colorMode, _isError) {
3072
2899
  }) => colorMode === 'dark' ? {
3073
2900
  ...base,
3074
2901
  ...selectStyle,
3075
- background: isSelected ? colors.primary['700'] : colors.dark['800'],
2902
+ background: isSelected ? 'primary.700' : 'dark.800',
3076
2903
  color: 'white'
3077
2904
  } : {
3078
2905
  ...base,
@@ -3081,7 +2908,7 @@ function selectStyles(colorMode, _isError) {
3081
2908
  menu: base => colorMode === 'dark' ? {
3082
2909
  ...base,
3083
2910
  ...selectStyle,
3084
- background: colors.dark['800'],
2911
+ background: 'dark.800',
3085
2912
  zIndex: 5
3086
2913
  } : {
3087
2914
  ...base,
@@ -3107,7 +2934,7 @@ function selectStyles(colorMode, _isError) {
3107
2934
  dropdownIndicator: base => colorMode === 'dark' ? {
3108
2935
  ...base,
3109
2936
  ...selectStyle,
3110
- color: colors.secondary['500']
2937
+ color: 'secondary.500'
3111
2938
  } : {
3112
2939
  ...base,
3113
2940
  ...selectStyle
@@ -3115,7 +2942,7 @@ function selectStyles(colorMode, _isError) {
3115
2942
  indicatorSeparator: base => colorMode === 'dark' ? {
3116
2943
  ...base,
3117
2944
  ...selectStyle,
3118
- backgroundColor: colors.secondary['500']
2945
+ backgroundColor: 'secondary.500'
3119
2946
  } : {
3120
2947
  ...base,
3121
2948
  ...selectStyle
@@ -3124,7 +2951,7 @@ function selectStyles(colorMode, _isError) {
3124
2951
  return {
3125
2952
  ...base,
3126
2953
  ...selectStyle,
3127
- color: colors.black.low
2954
+ color: 'black.low'
3128
2955
  };
3129
2956
  }
3130
2957
  };
@@ -3134,10 +2961,10 @@ const themeSelect = theme => {
3134
2961
  ...theme,
3135
2962
  colors: {
3136
2963
  ...theme.colors,
3137
- primary: colors.primary['500'],
3138
- primary25: colors.primary['50'],
3139
- primary50: colors.primary['100'],
3140
- primary75: colors.primary['200']
2964
+ primary: 'primary.500',
2965
+ primary25: 'primary.50',
2966
+ primary50: 'primary.100',
2967
+ primary75: 'primary.200'
3141
2968
  }
3142
2969
  };
3143
2970
  };
@@ -4187,10 +4014,10 @@ const rotate = /*#__PURE__*/react$1.keyframes({
4187
4014
  }
4188
4015
  });
4189
4016
  const getLoaderColor = color => {
4190
- if (color === 'primary') return colors.primary[600];
4191
- if (color === 'danger') return colors.danger[500];
4192
- if (color === 'warning') return colors.warning[700];
4193
- return colors.white.high;
4017
+ if (color === 'primary') return '--chakra-colors-primary-600';
4018
+ if (color === 'danger') return '--chakra-colors-danger-500';
4019
+ if (color === 'warning') return '--chakra-colors-warning-700';
4020
+ return '--chakra-colors-white-high';
4194
4021
  };
4195
4022
  const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4196
4023
  baseStyle: props => {
@@ -4201,7 +4028,7 @@ const LoaderStyle = /*#__PURE__*/styledSystem.defineStyleConfig({
4201
4028
  justifyContent: 'center',
4202
4029
  alignItems: 'center',
4203
4030
  animation: `${rotate} 1s linear infinite`,
4204
- background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,
4031
+ background: `conic-gradient(from 180deg at 50% 50%, var(${colors}) 0deg, rgba(217, 217, 217, 0) 360deg);`,
4205
4032
  ':before': {
4206
4033
  content: `''`,
4207
4034
  display: 'block',
@@ -4758,6 +4585,27 @@ const config = {
4758
4585
  initialColorMode: 'light',
4759
4586
  useSystemColorMode: false
4760
4587
  };
4588
+ const getTheme = colorScheme => {
4589
+ return react.extendTheme({
4590
+ colors: colorScheme,
4591
+ ...foundations,
4592
+ components: {
4593
+ ...components
4594
+ },
4595
+ styles: {
4596
+ global: {
4597
+ '*::-webkit-scrollbar-thumb': {
4598
+ background: 'neutral.400'
4599
+ },
4600
+ body: {
4601
+ fontSize: 'text.sm',
4602
+ color: 'black.high'
4603
+ }
4604
+ }
4605
+ },
4606
+ config
4607
+ });
4608
+ };
4761
4609
  const theme = /*#__PURE__*/react.extendTheme({
4762
4610
  ...foundations,
4763
4611
  components: {
@@ -5536,6 +5384,7 @@ exports.TabPanel = TabPanel;
5536
5384
  exports.TextareaField = TextareaField;
5537
5385
  exports.Uploader = Uploader;
5538
5386
  exports.foundations = foundations;
5387
+ exports.getTheme = getTheme;
5539
5388
  exports.theme = theme;
5540
5389
  exports.useAlertStyles = useAlertStyles;
5541
5390
  exports.useFetcher = useFetcher;