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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -4,7 +4,7 @@ import React__default, { createElement, forwardRef as forwardRef$2, useMemo, use
4
4
  import { createContext } from '@chakra-ui/react-context';
5
5
  import { CheckCircle, Info, AlertTriangle, Close, EyeOff, Eye, Rating as Rating$1, Check } from '@ctlyst.id/internal-icon';
6
6
  import { cx as cx$1 } from '@chakra-ui/utils';
7
- import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, Grid, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
7
+ import { forwardRef as forwardRef$1, useStyleConfig, Box, Button as Button$2, Badge as Badge$2, useToken, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, defineStyle, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, InputLeftAddon, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, Grid, useMultiStyleConfig as useMultiStyleConfig$1, omitThemingProps as omitThemingProps$1, useCheckbox, chakra as chakra$1, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
8
8
  export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Box, ButtonGroup, Center, ChakraProvider, Table as ChakraTable, CloseButton, Code, Collapse, ColorModeScript, Container, Divider, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Flex, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, Icon, IconButton, Image, InputLeftElement as InputElementLeft, InputRightElement as InputElementRight, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Link, List, ListIcon, ListItem, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, OrderedList, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RequiredIndicator, ScaleFade, SimpleGrid, Skeleton, Spacer, Stack, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, Tbody, Td, Text, Th, Thead, Tooltip, Tr, UnorderedList, VStack, Wrap, WrapItem, extendTheme, forwardRef, useBoolean, useColorMode, useColorModeValue, useDisclosure, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles, useToken } from '@chakra-ui/react';
9
9
  import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
10
10
  import { ChevronUpIcon, ChevronDownIcon, UpDownIcon, ArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, ArrowRightIcon } from '@chakra-ui/icons';
@@ -1736,423 +1736,6 @@ DatePickerMonth.defaultProps = {
1736
1736
  'data-test-id': ''
1737
1737
  };
1738
1738
 
1739
- const transparent = 'transparent';
1740
- const black = {
1741
- high: '#111111',
1742
- medium: '#707070',
1743
- low: '#B8B8B8'
1744
- };
1745
- const white = {
1746
- high: '#FFFFFF',
1747
- medium: '#F1F1F1',
1748
- low: '#CCCCCC'
1749
- };
1750
- const neutral = {
1751
- '50': '#FFFFFF',
1752
- '100': '#FAFAFA',
1753
- '200': '#F5F5F5',
1754
- '300': '#EEEEEE',
1755
- '400': '#E0E0E0',
1756
- '500': '#BDBDBD',
1757
- '600': '#999999',
1758
- '700': '#242424',
1759
- '800': '#181818',
1760
- '900': '#111111'
1761
- };
1762
- const primary = {
1763
- '50': '#DFFFF1',
1764
- '100': '#ACF5D5',
1765
- '200': '#5EE5A9',
1766
- '300': '#05CB72',
1767
- '400': '#08A45E',
1768
- '500': '#12784A',
1769
- '600': '#0B603A',
1770
- '700': '#075331',
1771
- '800': '#064126',
1772
- '900': '#042E1B'
1773
- };
1774
- const secondary = {
1775
- '50': '#F2F2F3',
1776
- '100': '#DADBDD',
1777
- '200': '#C2C4C7',
1778
- '300': '#AAADB0',
1779
- '400': '#93969A',
1780
- '500': '#7B7F84',
1781
- '600': '#62666A',
1782
- '700': '#4A4C4F',
1783
- '800': '#313335',
1784
- '900': '#19191A'
1785
- };
1786
- const success = {
1787
- '50': '#ECFFED',
1788
- '100': '#D3FCD5',
1789
- '200': '#A9F9B5',
1790
- '300': '#7CEE98',
1791
- '400': '#58DD86',
1792
- '500': '#28C76F',
1793
- '600': '#1DAB6A',
1794
- '700': '#148F63',
1795
- '800': '#0C7359',
1796
- '900': '#075F51'
1797
- };
1798
- const danger = {
1799
- '50': '#FFEDEC',
1800
- '100': '#FFC7C2',
1801
- '200': '#FF8279',
1802
- '300': '#FF5B4F',
1803
- '400': '#F44336',
1804
- '500': '#D82F23',
1805
- '600': '#B71C1C',
1806
- '700': '#930B0B',
1807
- '800': '#660909',
1808
- '900': '#3E0707'
1809
- };
1810
- const warning = {
1811
- '50': '#FFF9EC',
1812
- '100': '#FFEFCC',
1813
- '200': '#FFD591',
1814
- '300': '#FFC069',
1815
- '400': '#FFA230',
1816
- '500': '#F68522',
1817
- '600': '#EF6C00',
1818
- '700': '#C65B03',
1819
- '800': '#9F4901',
1820
- '900': '#652E00'
1821
- };
1822
- const info = {
1823
- '50': '#EBFFFB',
1824
- '100': '#CBFDF2',
1825
- '200': '#97FCEF',
1826
- '300': '#63F8F0',
1827
- '400': '#3CECF1',
1828
- '500': '#00CFE8',
1829
- '600': '#00A1C7',
1830
- '700': '#007AA7',
1831
- '800': '#005786',
1832
- '900': '#003F6F'
1833
- };
1834
- const dark = {
1835
- '50': '#F2F2F2',
1836
- '100': '#DBDBDB',
1837
- '200': '#C4C4C4',
1838
- '300': '#ADADAD',
1839
- '400': '#969696',
1840
- '500': '#808080',
1841
- '600': '#666666',
1842
- '700': '#4D4D4D',
1843
- '800': '#333333',
1844
- '900': '#1A1A1A'
1845
- };
1846
- const mirage = {
1847
- '50': '#EDF0F7',
1848
- '100': '#CED5E9',
1849
- '200': '#AEBADB',
1850
- '300': '#8E9ECC',
1851
- '400': '#6F83BE',
1852
- '500': '#4F68B0',
1853
- '600': '#3F538D',
1854
- '700': '#2F3E6A',
1855
- '800': '#202A46',
1856
- '900': '#101523'
1857
- };
1858
- const ebonyClay = {
1859
- '50': '#EFF1F6',
1860
- '100': '#D2D7E5',
1861
- '200': '#B4BDD4',
1862
- '300': '#97A3C4',
1863
- '400': '#7A89B3',
1864
- '500': '#5D6FA2',
1865
- '600': '#4A5982',
1866
- '700': '#384361',
1867
- '800': '#252D41',
1868
- '900': '#131620'
1869
- };
1870
- const brightGray = {
1871
- '50': '#F0F1F4',
1872
- '100': '#D5D9E1',
1873
- '200': '#BAC0CE',
1874
- '300': '#A0A8BB',
1875
- '400': '#858FA8',
1876
- '500': '#6A7795',
1877
- '600': '#555F77',
1878
- '700': '#404759',
1879
- '800': '#2A2F3C',
1880
- '900': '#15181E'
1881
- };
1882
- const doveGray = {
1883
- '50': '#F2F2F2',
1884
- '100': '#DBDBDB',
1885
- '200': '#C4C4C4',
1886
- '300': '#ADADAD',
1887
- '400': '#969696',
1888
- '500': '#808080',
1889
- '600': '#666666',
1890
- '700': '#4D4D4D',
1891
- '800': '#333333',
1892
- '900': '#1A1A1A'
1893
- };
1894
- const colors = {
1895
- transparent,
1896
- black,
1897
- white,
1898
- neutral,
1899
- primary,
1900
- secondary,
1901
- success,
1902
- danger,
1903
- warning,
1904
- info,
1905
- dark,
1906
- mirage,
1907
- 'ebony-clay': ebonyClay,
1908
- 'bright-gray': brightGray,
1909
- 'dove-gray': doveGray
1910
- };
1911
-
1912
- const radius = {
1913
- none: 0,
1914
- sm: '2px',
1915
- md: '4px',
1916
- lg: '8px',
1917
- full: '9999px'
1918
- };
1919
-
1920
- const shadows = {
1921
- ...theme$1.shadows,
1922
- raised: '0px 4px 20px rgba(0, 0, 0, 0.05)'
1923
- };
1924
-
1925
- const sizes = {
1926
- ...theme$1.sizes,
1927
- 4.5: '1.125rem',
1928
- 9.5: '2.375rem',
1929
- 18: '4.5rem',
1930
- 22: '5.5rem',
1931
- 26: '6.5rem',
1932
- 30: '7.5rem'
1933
- };
1934
-
1935
- const spacing = {
1936
- ...theme$1.space,
1937
- 4.5: '1.125rem',
1938
- 9.5: '2.375rem',
1939
- 18: '4.5rem',
1940
- 22: '5.5rem',
1941
- 26: '6.5rem',
1942
- 30: '7.5rem'
1943
- };
1944
-
1945
- const fonts = {
1946
- heading: `'Poppins', sans-serif`,
1947
- body: `'Poppins', sans-serif`
1948
- };
1949
- const fontWeights = {
1950
- hairline: 100,
1951
- thin: 200,
1952
- light: 300,
1953
- normal: 400,
1954
- medium: 500,
1955
- semibold: 600,
1956
- bold: 700,
1957
- extrabold: 800,
1958
- black: 900
1959
- };
1960
- const lineHeights = {
1961
- normal: 'normal',
1962
- none: 1,
1963
- shorter: 1.25,
1964
- short: 1.375,
1965
- base: 1.5,
1966
- tall: 1.625,
1967
- 64: '4rem',
1968
- 56: '3.5rem',
1969
- 48: '3rem',
1970
- 40: '2.5rem',
1971
- 36: '2.25rem',
1972
- 34: '2.125rem',
1973
- 32: '2rem',
1974
- 30: '1.875rem',
1975
- 28: '1.75',
1976
- 26: '1.625rem',
1977
- 24: '1.5rem',
1978
- 22: '1.375rem',
1979
- 20: '1.25rem',
1980
- 18: '1.125rem',
1981
- 16: '1rem',
1982
- 14: '0.875rem',
1983
- 12: '0.75rem'
1984
- };
1985
- const letterSpacings = {
1986
- tighter: '-0.05em',
1987
- tight: '-0.025em',
1988
- normal: '0',
1989
- wide: '0.025em',
1990
- wider: '0.05em',
1991
- widest: '0.1em'
1992
- };
1993
- const fontSizes = {
1994
- heading: {
1995
- 1: '2.5rem',
1996
- 2: '2rem',
1997
- 3: '1.75rem',
1998
- 4: '1.5rem',
1999
- 5: '1.375rem',
2000
- 6: '1.125rem'
2001
- },
2002
- text: {
2003
- xl: '1.125rem',
2004
- lg: '1rem',
2005
- md: '0.875rem',
2006
- sm: '0.75rem',
2007
- xs: '0.625rem'
2008
- },
2009
- button: {
2010
- lg: '1.125rem',
2011
- md: '0.875rem',
2012
- sm: '0.625rem'
2013
- },
2014
- field: {
2015
- lg: '1rem',
2016
- md: '0.875rem',
2017
- sm: '0.75rem'
2018
- },
2019
- table: {
2020
- header: '0.75rem'
2021
- }
2022
- };
2023
- const heading = {
2024
- 1: {
2025
- fontSize: fontSizes.heading[1],
2026
- fontWeight: fontWeights.semibold,
2027
- lineHeight: lineHeights[64],
2028
- letterSpacing: letterSpacings.normal
2029
- },
2030
- 2: {
2031
- fontSize: fontSizes.heading[2],
2032
- fontWeight: fontWeights.semibold,
2033
- lineHeight: lineHeights[56],
2034
- letterSpacing: letterSpacings.normal
2035
- },
2036
- 3: {
2037
- fontSize: fontSizes.heading[3],
2038
- fontWeight: fontWeights.semibold,
2039
- lineHeight: lineHeights[48],
2040
- letterSpacing: letterSpacings.normal
2041
- },
2042
- 4: {
2043
- fontSize: fontSizes.heading[4],
2044
- fontWeight: fontWeights.semibold,
2045
- lineHeight: lineHeights[40],
2046
- letterSpacing: letterSpacings.normal
2047
- },
2048
- 5: {
2049
- fontSize: fontSizes.heading[5],
2050
- fontWeight: fontWeights.semibold,
2051
- lineHeight: lineHeights[36],
2052
- letterSpacing: letterSpacings.normal
2053
- },
2054
- 6: {
2055
- fontSize: fontSizes.heading[6],
2056
- fontWeight: fontWeights.semibold,
2057
- lineHeight: lineHeights[32],
2058
- letterSpacing: letterSpacings.normal
2059
- }
2060
- };
2061
- const text = {
2062
- xl: {
2063
- fontSize: fontSizes.text.xl,
2064
- fontWeight: fontWeights.normal,
2065
- lineHeight: lineHeights[28],
2066
- letterSpacing: letterSpacings.normal
2067
- },
2068
- lg: {
2069
- fontSize: fontSizes.text.lg,
2070
- fontWeight: fontWeights.normal,
2071
- lineHeight: lineHeights[24],
2072
- letterSpacing: letterSpacings.normal
2073
- },
2074
- md: {
2075
- fontSize: fontSizes.text.md,
2076
- fontWeight: fontWeights.normal,
2077
- lineHeight: lineHeights[22],
2078
- letterSpacing: letterSpacings.normal
2079
- },
2080
- sm: {
2081
- fontSize: fontSizes.text.sm,
2082
- fontWeight: fontWeights.normal,
2083
- lineHeight: lineHeights[18],
2084
- letterSpacing: letterSpacings.normal
2085
- },
2086
- xs: {
2087
- fontSize: fontSizes.text.xs,
2088
- fontWeight: fontWeights.normal,
2089
- lineHeight: lineHeights[14],
2090
- letterSpacing: letterSpacings.normal
2091
- }
2092
- };
2093
- const button = {
2094
- lg: {
2095
- fontSize: fontSizes.button.lg,
2096
- lineHeight: lineHeights[28],
2097
- letterSpacing: letterSpacings.normal,
2098
- fontWeight: fontWeights.normal
2099
- },
2100
- md: {
2101
- fontSize: fontSizes.button.md,
2102
- lineHeight: lineHeights[22],
2103
- letterSpacing: letterSpacings.normal,
2104
- fontWeight: fontWeights.normal
2105
- },
2106
- sm: {
2107
- fontSize: fontSizes.button.sm,
2108
- lineHeight: lineHeights[14],
2109
- letterSpacing: letterSpacings.normal,
2110
- fontWeight: fontWeights.normal
2111
- }
2112
- };
2113
- const field = {
2114
- lg: {
2115
- fontSize: fontSizes.field.lg,
2116
- lineHeight: lineHeights[24],
2117
- letterSpacing: letterSpacings.normal,
2118
- fontWeight: fontWeights.normal
2119
- },
2120
- md: {
2121
- fontSize: fontSizes.field.md,
2122
- lineHeight: lineHeights[22],
2123
- letterSpacing: letterSpacings.normal,
2124
- fontWeight: fontWeights.normal
2125
- },
2126
- sm: {
2127
- fontSize: fontSizes.field.sm,
2128
- lineHeight: lineHeights[18],
2129
- letterSpacing: letterSpacings.normal,
2130
- fontWeight: fontWeights.normal
2131
- }
2132
- };
2133
- const textStyles = {
2134
- heading,
2135
- text,
2136
- button,
2137
- field
2138
- };
2139
-
2140
-
2141
-
2142
- var foundations = {
2143
- __proto__: null,
2144
- colors: colors,
2145
- radii: radius,
2146
- shadows: shadows,
2147
- sizes: sizes,
2148
- space: spacing,
2149
- fonts: fonts,
2150
- fontSizes: fontSizes,
2151
- letterSpacings: letterSpacings,
2152
- lineHeights: lineHeights,
2153
- textStyles: textStyles
2154
- };
2155
-
2156
1739
  const MultiDateWrapper = /*#__PURE__*/styled(Box)`
2157
1740
  display: flex;
2158
1741
  align-items: center;
@@ -2162,7 +1745,7 @@ const MultiDateWrapper = /*#__PURE__*/styled(Box)`
2162
1745
  border-radius: 4px;
2163
1746
  border-color: ${({
2164
1747
  isError
2165
- }) => isError ? `${colors.danger[500]}` : `${colors.primary[500]}`};
1748
+ }) => isError ? 'var(--chakra-colors-danger-500)' : 'var(--chakra-colors-primary-500)'};
2166
1749
  `;
2167
1750
  const MultiDatePickerMonth = ({
2168
1751
  onChange,
@@ -3031,6 +2614,197 @@ SelectWrapper.defaultProps = {
3031
2614
  isError: false
3032
2615
  };
3033
2616
 
2617
+ const fontWeights = {
2618
+ hairline: 100,
2619
+ thin: 200,
2620
+ light: 300,
2621
+ normal: 400,
2622
+ medium: 500,
2623
+ semibold: 600,
2624
+ bold: 700,
2625
+ extrabold: 800,
2626
+ black: 900
2627
+ };
2628
+ const lineHeights = {
2629
+ normal: 'normal',
2630
+ none: 1,
2631
+ shorter: 1.25,
2632
+ short: 1.375,
2633
+ base: 1.5,
2634
+ tall: 1.625,
2635
+ 64: '4rem',
2636
+ 56: '3.5rem',
2637
+ 48: '3rem',
2638
+ 40: '2.5rem',
2639
+ 36: '2.25rem',
2640
+ 34: '2.125rem',
2641
+ 32: '2rem',
2642
+ 30: '1.875rem',
2643
+ 28: '1.75',
2644
+ 26: '1.625rem',
2645
+ 24: '1.5rem',
2646
+ 22: '1.375rem',
2647
+ 20: '1.25rem',
2648
+ 18: '1.125rem',
2649
+ 16: '1rem',
2650
+ 14: '0.875rem',
2651
+ 12: '0.75rem'
2652
+ };
2653
+ const letterSpacings = {
2654
+ tighter: '-0.05em',
2655
+ tight: '-0.025em',
2656
+ normal: '0',
2657
+ wide: '0.025em',
2658
+ wider: '0.05em',
2659
+ widest: '0.1em'
2660
+ };
2661
+ const fontSizes = {
2662
+ heading: {
2663
+ 1: '2.5rem',
2664
+ 2: '2rem',
2665
+ 3: '1.75rem',
2666
+ 4: '1.5rem',
2667
+ 5: '1.375rem',
2668
+ 6: '1.125rem'
2669
+ },
2670
+ text: {
2671
+ xl: '1.125rem',
2672
+ lg: '1rem',
2673
+ md: '0.875rem',
2674
+ sm: '0.75rem',
2675
+ xs: '0.625rem'
2676
+ },
2677
+ button: {
2678
+ lg: '1.125rem',
2679
+ md: '0.875rem',
2680
+ sm: '0.625rem'
2681
+ },
2682
+ field: {
2683
+ lg: '1rem',
2684
+ md: '0.875rem',
2685
+ sm: '0.75rem'
2686
+ },
2687
+ table: {
2688
+ header: '0.75rem'
2689
+ }
2690
+ };
2691
+ const heading = {
2692
+ 1: {
2693
+ fontSize: fontSizes.heading[1],
2694
+ fontWeight: fontWeights.semibold,
2695
+ lineHeight: lineHeights[64],
2696
+ letterSpacing: letterSpacings.normal
2697
+ },
2698
+ 2: {
2699
+ fontSize: fontSizes.heading[2],
2700
+ fontWeight: fontWeights.semibold,
2701
+ lineHeight: lineHeights[56],
2702
+ letterSpacing: letterSpacings.normal
2703
+ },
2704
+ 3: {
2705
+ fontSize: fontSizes.heading[3],
2706
+ fontWeight: fontWeights.semibold,
2707
+ lineHeight: lineHeights[48],
2708
+ letterSpacing: letterSpacings.normal
2709
+ },
2710
+ 4: {
2711
+ fontSize: fontSizes.heading[4],
2712
+ fontWeight: fontWeights.semibold,
2713
+ lineHeight: lineHeights[40],
2714
+ letterSpacing: letterSpacings.normal
2715
+ },
2716
+ 5: {
2717
+ fontSize: fontSizes.heading[5],
2718
+ fontWeight: fontWeights.semibold,
2719
+ lineHeight: lineHeights[36],
2720
+ letterSpacing: letterSpacings.normal
2721
+ },
2722
+ 6: {
2723
+ fontSize: fontSizes.heading[6],
2724
+ fontWeight: fontWeights.semibold,
2725
+ lineHeight: lineHeights[32],
2726
+ letterSpacing: letterSpacings.normal
2727
+ }
2728
+ };
2729
+ const text = {
2730
+ xl: {
2731
+ fontSize: fontSizes.text.xl,
2732
+ fontWeight: fontWeights.normal,
2733
+ lineHeight: lineHeights[28],
2734
+ letterSpacing: letterSpacings.normal
2735
+ },
2736
+ lg: {
2737
+ fontSize: fontSizes.text.lg,
2738
+ fontWeight: fontWeights.normal,
2739
+ lineHeight: lineHeights[24],
2740
+ letterSpacing: letterSpacings.normal
2741
+ },
2742
+ md: {
2743
+ fontSize: fontSizes.text.md,
2744
+ fontWeight: fontWeights.normal,
2745
+ lineHeight: lineHeights[22],
2746
+ letterSpacing: letterSpacings.normal
2747
+ },
2748
+ sm: {
2749
+ fontSize: fontSizes.text.sm,
2750
+ fontWeight: fontWeights.normal,
2751
+ lineHeight: lineHeights[18],
2752
+ letterSpacing: letterSpacings.normal
2753
+ },
2754
+ xs: {
2755
+ fontSize: fontSizes.text.xs,
2756
+ fontWeight: fontWeights.normal,
2757
+ lineHeight: lineHeights[14],
2758
+ letterSpacing: letterSpacings.normal
2759
+ }
2760
+ };
2761
+ const button = {
2762
+ lg: {
2763
+ fontSize: fontSizes.button.lg,
2764
+ lineHeight: lineHeights[28],
2765
+ letterSpacing: letterSpacings.normal,
2766
+ fontWeight: fontWeights.normal
2767
+ },
2768
+ md: {
2769
+ fontSize: fontSizes.button.md,
2770
+ lineHeight: lineHeights[22],
2771
+ letterSpacing: letterSpacings.normal,
2772
+ fontWeight: fontWeights.normal
2773
+ },
2774
+ sm: {
2775
+ fontSize: fontSizes.button.sm,
2776
+ lineHeight: lineHeights[14],
2777
+ letterSpacing: letterSpacings.normal,
2778
+ fontWeight: fontWeights.normal
2779
+ }
2780
+ };
2781
+ const field = {
2782
+ lg: {
2783
+ fontSize: fontSizes.field.lg,
2784
+ lineHeight: lineHeights[24],
2785
+ letterSpacing: letterSpacings.normal,
2786
+ fontWeight: fontWeights.normal
2787
+ },
2788
+ md: {
2789
+ fontSize: fontSizes.field.md,
2790
+ lineHeight: lineHeights[22],
2791
+ letterSpacing: letterSpacings.normal,
2792
+ fontWeight: fontWeights.normal
2793
+ },
2794
+ sm: {
2795
+ fontSize: fontSizes.field.sm,
2796
+ lineHeight: lineHeights[18],
2797
+ letterSpacing: letterSpacings.normal,
2798
+ fontWeight: fontWeights.normal
2799
+ }
2800
+ };
2801
+ const textStyles = {
2802
+ heading,
2803
+ text,
2804
+ button,
2805
+ field
2806
+ };
2807
+
3034
2808
  const styleMd = textStyles.text.sm;
3035
2809
  const selectStyle = {
3036
2810
  fontSize: styleMd.fontSize,
@@ -3041,20 +2815,20 @@ const boxShadow = color => `0 0 0 1px ${color}`;
3041
2815
  function selectStyles(colorMode, _isError) {
3042
2816
  const boxShadowLight = (isFocused = false, isError = false) => {
3043
2817
  if (isError && isFocused || isError) {
3044
- return boxShadow(colors.danger['500']);
2818
+ return boxShadow('danger.500');
3045
2819
  }
3046
2820
  if (isFocused) {
3047
- return boxShadow(colors.primary['500']);
2821
+ return boxShadow('primary.500');
3048
2822
  }
3049
- return boxShadow(colors.neutral['400']);
2823
+ return boxShadow('neutral.400');
3050
2824
  };
3051
2825
  return {
3052
2826
  control: (base, state) => colorMode === 'dark' ? {
3053
2827
  ...base,
3054
2828
  ...selectStyle,
3055
2829
  background: 'transparent',
3056
- color: colors.primary['300'],
3057
- borderColor: colors.secondary['500'],
2830
+ color: 'primary.300',
2831
+ borderColor: 'secondary.500',
3058
2832
  boxShadow: state.isFocused ? 'none' : `inherit`
3059
2833
  } : {
3060
2834
  ...base,
@@ -3067,7 +2841,7 @@ function selectStyles(colorMode, _isError) {
3067
2841
  }) => colorMode === 'dark' ? {
3068
2842
  ...base,
3069
2843
  ...selectStyle,
3070
- background: isSelected ? colors.primary['700'] : colors.dark['800'],
2844
+ background: isSelected ? 'primary.700' : 'dark.800',
3071
2845
  color: 'white'
3072
2846
  } : {
3073
2847
  ...base,
@@ -3076,7 +2850,7 @@ function selectStyles(colorMode, _isError) {
3076
2850
  menu: base => colorMode === 'dark' ? {
3077
2851
  ...base,
3078
2852
  ...selectStyle,
3079
- background: colors.dark['800'],
2853
+ background: 'dark.800',
3080
2854
  zIndex: 5
3081
2855
  } : {
3082
2856
  ...base,
@@ -3102,7 +2876,7 @@ function selectStyles(colorMode, _isError) {
3102
2876
  dropdownIndicator: base => colorMode === 'dark' ? {
3103
2877
  ...base,
3104
2878
  ...selectStyle,
3105
- color: colors.secondary['500']
2879
+ color: 'secondary.500'
3106
2880
  } : {
3107
2881
  ...base,
3108
2882
  ...selectStyle
@@ -3110,7 +2884,7 @@ function selectStyles(colorMode, _isError) {
3110
2884
  indicatorSeparator: base => colorMode === 'dark' ? {
3111
2885
  ...base,
3112
2886
  ...selectStyle,
3113
- backgroundColor: colors.secondary['500']
2887
+ backgroundColor: 'secondary.500'
3114
2888
  } : {
3115
2889
  ...base,
3116
2890
  ...selectStyle
@@ -3119,7 +2893,7 @@ function selectStyles(colorMode, _isError) {
3119
2893
  return {
3120
2894
  ...base,
3121
2895
  ...selectStyle,
3122
- color: colors.black.low
2896
+ color: 'black.low'
3123
2897
  };
3124
2898
  }
3125
2899
  };
@@ -3129,10 +2903,10 @@ const themeSelect = theme => {
3129
2903
  ...theme,
3130
2904
  colors: {
3131
2905
  ...theme.colors,
3132
- primary: colors.primary['500'],
3133
- primary25: colors.primary['50'],
3134
- primary50: colors.primary['100'],
3135
- primary75: colors.primary['200']
2906
+ primary: 'primary.500',
2907
+ primary25: 'primary.50',
2908
+ primary50: 'primary.100',
2909
+ primary75: 'primary.200'
3136
2910
  }
3137
2911
  };
3138
2912
  };
@@ -4115,7 +3889,7 @@ const size = {
4115
3889
  borderRadius: 'md'
4116
3890
  })
4117
3891
  };
4118
- const sizes$1 = {
3892
+ const sizes = {
4119
3893
  lg: /*#__PURE__*/definePartsStyle$2({
4120
3894
  field: size.lg,
4121
3895
  addon: size.lg
@@ -4165,7 +3939,7 @@ const variants$2 = {
4165
3939
  };
4166
3940
  const Input = /*#__PURE__*/defineMultiStyleConfig$2({
4167
3941
  baseStyle: baseStyle$3,
4168
- sizes: sizes$1,
3942
+ sizes,
4169
3943
  variants: variants$2,
4170
3944
  defaultProps: {
4171
3945
  size: 'sm',
@@ -4182,10 +3956,10 @@ const rotate = /*#__PURE__*/keyframes({
4182
3956
  }
4183
3957
  });
4184
3958
  const getLoaderColor = color => {
4185
- if (color === 'primary') return colors.primary[600];
4186
- if (color === 'danger') return colors.danger[500];
4187
- if (color === 'warning') return colors.warning[700];
4188
- return colors.white.high;
3959
+ if (color === 'primary') return '--chakra-colors-primary-600';
3960
+ if (color === 'danger') return '--chakra-colors-danger-500';
3961
+ if (color === 'warning') return '--chakra-colors-warning-700';
3962
+ return '--chakra-colors-white-high';
4189
3963
  };
4190
3964
  const LoaderStyle = /*#__PURE__*/defineStyleConfig({
4191
3965
  baseStyle: props => {
@@ -4196,7 +3970,7 @@ const LoaderStyle = /*#__PURE__*/defineStyleConfig({
4196
3970
  justifyContent: 'center',
4197
3971
  alignItems: 'center',
4198
3972
  animation: `${rotate} 1s linear infinite`,
4199
- background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,
3973
+ background: `conic-gradient(from 180deg at 50% 50%, var(${colors}) 0deg, rgba(217, 217, 217, 0) 360deg);`,
4200
3974
  ':before': {
4201
3975
  content: `''`,
4202
3976
  display: 'block',
@@ -4427,7 +4201,7 @@ const baseStyle$5 = /*#__PURE__*/definePartsStyle$5(() => ({
4427
4201
  },
4428
4202
  thumb: baseStyleThumb
4429
4203
  }));
4430
- const sizes$2 = {
4204
+ const sizes$1 = {
4431
4205
  sm: /*#__PURE__*/definePartsStyle$5({
4432
4206
  container: {
4433
4207
  [$width.variable]: '2.125rem',
@@ -4449,7 +4223,7 @@ const sizes$2 = {
4449
4223
  };
4450
4224
  const Switch$1 = /*#__PURE__*/defineMultiStyleConfig$4({
4451
4225
  baseStyle: baseStyle$5,
4452
- sizes: sizes$2,
4226
+ sizes: sizes$1,
4453
4227
  defaultProps: {
4454
4228
  size: 'md'
4455
4229
  }
@@ -4570,7 +4344,7 @@ const variants$4 = {
4570
4344
  striped: variantStripe,
4571
4345
  unstyled: /*#__PURE__*/defineStyle$1({})
4572
4346
  };
4573
- const sizes$3 = {
4347
+ const sizes$2 = {
4574
4348
  sm: /*#__PURE__*/definePartsStyle$6({
4575
4349
  th: {
4576
4350
  px: '4',
@@ -4642,7 +4416,7 @@ const sizes$3 = {
4642
4416
  const tableTheme = /*#__PURE__*/defineMultiStyleConfig$5({
4643
4417
  baseStyle: baseStyle$6,
4644
4418
  variants: variants$4,
4645
- sizes: sizes$3,
4419
+ sizes: sizes$2,
4646
4420
  defaultProps: {
4647
4421
  variant: 'simple',
4648
4422
  size: 'md',
@@ -4753,8 +4527,27 @@ const config = {
4753
4527
  initialColorMode: 'light',
4754
4528
  useSystemColorMode: false
4755
4529
  };
4530
+ const getTheme = foundations => {
4531
+ return extendTheme({
4532
+ ...foundations,
4533
+ components: {
4534
+ ...components
4535
+ },
4536
+ styles: {
4537
+ global: {
4538
+ '*::-webkit-scrollbar-thumb': {
4539
+ background: 'neutral.400'
4540
+ },
4541
+ body: {
4542
+ fontSize: 'text.sm',
4543
+ color: 'black.high'
4544
+ }
4545
+ }
4546
+ },
4547
+ config
4548
+ });
4549
+ };
4756
4550
  const theme = /*#__PURE__*/extendTheme({
4757
- ...foundations,
4758
4551
  components: {
4759
4552
  ...components
4760
4553
  },
@@ -4836,5 +4629,5 @@ function useFetcher() {
4836
4629
  };
4837
4630
  }
4838
4631
 
4839
- export { Alert, AlertAction, AlertClose, AlertDescription, AlertIcon, AlertTitle, Badge, BreadCrumb, Button, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Chips, DataTable, DatePickerMonth, Datepicker, Field, Header, InputAddonLeft, InputAddonRight, InputField, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Rating, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Switch, Tab, TabList, TabPanel, TextareaField, Uploader, foundations, theme, useAlertStyles, useFetcher, useInternalUI };
4632
+ export { Alert, AlertAction, AlertClose, AlertDescription, AlertIcon, AlertTitle, Badge, BreadCrumb, Button, CardCustom as Card, CheckboxComponent as Checkbox, CheckboxGroupComponent as CheckboxGroup, Chips, DataTable, DatePickerMonth, Datepicker, Field, Header, InputAddonLeft, InputAddonRight, InputField, Loader, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, MultiDatePickerMonth, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, RadioComponent as Radio, RadioGroupComponent as RadioGroup, Rating, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Switch, Tab, TabList, TabPanel, TextareaField, Uploader, getTheme, theme, useAlertStyles, useFetcher, useInternalUI };
4840
4633
  //# sourceMappingURL=internal-ui.esm.js.map