@ctlyst.id/internal-ui 2.0.28 → 2.0.29-canary.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/badge/__stories__/badge.stories.d.ts +0 -3
- package/dist/components/base/__stories__/switch.stories.d.ts +0 -3
- package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +0 -3
- package/dist/components/button/__stories__/button.stories.d.ts +0 -3
- package/dist/components/card/__stories__/card.stories.d.ts +0 -3
- package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +0 -3
- package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +0 -3
- package/dist/components/chips/__stories__/chips.stories.d.ts +0 -3
- package/dist/components/data-table/__stories__/datatable.stories.d.ts +0 -3
- package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +0 -3
- package/dist/components/form/__stories__/textarea.stories.d.ts +0 -3
- package/dist/components/header/__stories__/header.stories.d.ts +0 -3
- package/dist/components/loader/__stories__/loader.stories.d.ts +0 -3
- package/dist/components/modal/__stories__/modal.stories.d.ts +0 -3
- package/dist/components/navigation/__stories__/navigation.stories.d.ts +0 -3
- package/dist/components/pagination/__stories__/pagination.stories.d.ts +0 -3
- package/dist/components/radio/__stories__/radio-group.stories.d.ts +0 -3
- package/dist/components/radio/__stories__/radio.stories.d.ts +0 -3
- package/dist/components/rating/__stories__/rating.stories.d.ts +0 -3
- package/dist/components/select/__stories__/select.stories.d.ts +0 -3
- package/dist/components/switch/__stories__/switch.stories.d.ts +0 -3
- package/dist/components/tabs/__stories__/tabs.stories.d.ts +0 -3
- package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +0 -3
- package/dist/components/uploader/__stories__/uploader.stories.d.ts +0 -3
- package/dist/config/theme/components/loader.d.ts +1 -1
- package/dist/config/theme/foundations/index.d.ts +0 -1
- package/dist/config/theme/themeConfiguration.d.ts +1 -0
- package/dist/internal-ui.cjs.development.js +285 -437
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +5 -5
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +286 -439
- package/dist/internal-ui.esm.js.map +1 -1
- package/dist/provider/__stories__/provider.stories.d.ts +4 -0
- package/package.json +5 -4
- package/dist/config/theme/foundations/colors.d.ts +0 -158
package/dist/internal-ui.esm.js
CHANGED
@@ -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,
|
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, theme as theme$1, 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 ?
|
1748
|
+
}) => isError ? 'var(--chakra-colors-danger-500)' : 'var(--chakra-colors-primary-500)'};
|
2166
1749
|
`;
|
2167
1750
|
const MultiDatePickerMonth = ({
|
2168
1751
|
onChange,
|
@@ -3031,6 +2614,249 @@ SelectWrapper.defaultProps = {
|
|
3031
2614
|
isError: false
|
3032
2615
|
};
|
3033
2616
|
|
2617
|
+
const radius = {
|
2618
|
+
none: 0,
|
2619
|
+
sm: '2px',
|
2620
|
+
md: '4px',
|
2621
|
+
lg: '8px',
|
2622
|
+
full: '9999px'
|
2623
|
+
};
|
2624
|
+
|
2625
|
+
const shadows = {
|
2626
|
+
...theme$1.shadows,
|
2627
|
+
raised: '0px 4px 20px rgba(0, 0, 0, 0.05)'
|
2628
|
+
};
|
2629
|
+
|
2630
|
+
const sizes = {
|
2631
|
+
...theme$1.sizes,
|
2632
|
+
4.5: '1.125rem',
|
2633
|
+
9.5: '2.375rem',
|
2634
|
+
18: '4.5rem',
|
2635
|
+
22: '5.5rem',
|
2636
|
+
26: '6.5rem',
|
2637
|
+
30: '7.5rem'
|
2638
|
+
};
|
2639
|
+
|
2640
|
+
const spacing = {
|
2641
|
+
...theme$1.space,
|
2642
|
+
4.5: '1.125rem',
|
2643
|
+
9.5: '2.375rem',
|
2644
|
+
18: '4.5rem',
|
2645
|
+
22: '5.5rem',
|
2646
|
+
26: '6.5rem',
|
2647
|
+
30: '7.5rem'
|
2648
|
+
};
|
2649
|
+
|
2650
|
+
const fonts = {
|
2651
|
+
heading: `'Poppins', sans-serif`,
|
2652
|
+
body: `'Poppins', sans-serif`
|
2653
|
+
};
|
2654
|
+
const fontWeights = {
|
2655
|
+
hairline: 100,
|
2656
|
+
thin: 200,
|
2657
|
+
light: 300,
|
2658
|
+
normal: 400,
|
2659
|
+
medium: 500,
|
2660
|
+
semibold: 600,
|
2661
|
+
bold: 700,
|
2662
|
+
extrabold: 800,
|
2663
|
+
black: 900
|
2664
|
+
};
|
2665
|
+
const lineHeights = {
|
2666
|
+
normal: 'normal',
|
2667
|
+
none: 1,
|
2668
|
+
shorter: 1.25,
|
2669
|
+
short: 1.375,
|
2670
|
+
base: 1.5,
|
2671
|
+
tall: 1.625,
|
2672
|
+
64: '4rem',
|
2673
|
+
56: '3.5rem',
|
2674
|
+
48: '3rem',
|
2675
|
+
40: '2.5rem',
|
2676
|
+
36: '2.25rem',
|
2677
|
+
34: '2.125rem',
|
2678
|
+
32: '2rem',
|
2679
|
+
30: '1.875rem',
|
2680
|
+
28: '1.75',
|
2681
|
+
26: '1.625rem',
|
2682
|
+
24: '1.5rem',
|
2683
|
+
22: '1.375rem',
|
2684
|
+
20: '1.25rem',
|
2685
|
+
18: '1.125rem',
|
2686
|
+
16: '1rem',
|
2687
|
+
14: '0.875rem',
|
2688
|
+
12: '0.75rem'
|
2689
|
+
};
|
2690
|
+
const letterSpacings = {
|
2691
|
+
tighter: '-0.05em',
|
2692
|
+
tight: '-0.025em',
|
2693
|
+
normal: '0',
|
2694
|
+
wide: '0.025em',
|
2695
|
+
wider: '0.05em',
|
2696
|
+
widest: '0.1em'
|
2697
|
+
};
|
2698
|
+
const fontSizes = {
|
2699
|
+
heading: {
|
2700
|
+
1: '2.5rem',
|
2701
|
+
2: '2rem',
|
2702
|
+
3: '1.75rem',
|
2703
|
+
4: '1.5rem',
|
2704
|
+
5: '1.375rem',
|
2705
|
+
6: '1.125rem'
|
2706
|
+
},
|
2707
|
+
text: {
|
2708
|
+
xl: '1.125rem',
|
2709
|
+
lg: '1rem',
|
2710
|
+
md: '0.875rem',
|
2711
|
+
sm: '0.75rem',
|
2712
|
+
xs: '0.625rem'
|
2713
|
+
},
|
2714
|
+
button: {
|
2715
|
+
lg: '1.125rem',
|
2716
|
+
md: '0.875rem',
|
2717
|
+
sm: '0.625rem'
|
2718
|
+
},
|
2719
|
+
field: {
|
2720
|
+
lg: '1rem',
|
2721
|
+
md: '0.875rem',
|
2722
|
+
sm: '0.75rem'
|
2723
|
+
},
|
2724
|
+
table: {
|
2725
|
+
header: '0.75rem'
|
2726
|
+
}
|
2727
|
+
};
|
2728
|
+
const heading = {
|
2729
|
+
1: {
|
2730
|
+
fontSize: fontSizes.heading[1],
|
2731
|
+
fontWeight: fontWeights.semibold,
|
2732
|
+
lineHeight: lineHeights[64],
|
2733
|
+
letterSpacing: letterSpacings.normal
|
2734
|
+
},
|
2735
|
+
2: {
|
2736
|
+
fontSize: fontSizes.heading[2],
|
2737
|
+
fontWeight: fontWeights.semibold,
|
2738
|
+
lineHeight: lineHeights[56],
|
2739
|
+
letterSpacing: letterSpacings.normal
|
2740
|
+
},
|
2741
|
+
3: {
|
2742
|
+
fontSize: fontSizes.heading[3],
|
2743
|
+
fontWeight: fontWeights.semibold,
|
2744
|
+
lineHeight: lineHeights[48],
|
2745
|
+
letterSpacing: letterSpacings.normal
|
2746
|
+
},
|
2747
|
+
4: {
|
2748
|
+
fontSize: fontSizes.heading[4],
|
2749
|
+
fontWeight: fontWeights.semibold,
|
2750
|
+
lineHeight: lineHeights[40],
|
2751
|
+
letterSpacing: letterSpacings.normal
|
2752
|
+
},
|
2753
|
+
5: {
|
2754
|
+
fontSize: fontSizes.heading[5],
|
2755
|
+
fontWeight: fontWeights.semibold,
|
2756
|
+
lineHeight: lineHeights[36],
|
2757
|
+
letterSpacing: letterSpacings.normal
|
2758
|
+
},
|
2759
|
+
6: {
|
2760
|
+
fontSize: fontSizes.heading[6],
|
2761
|
+
fontWeight: fontWeights.semibold,
|
2762
|
+
lineHeight: lineHeights[32],
|
2763
|
+
letterSpacing: letterSpacings.normal
|
2764
|
+
}
|
2765
|
+
};
|
2766
|
+
const text = {
|
2767
|
+
xl: {
|
2768
|
+
fontSize: fontSizes.text.xl,
|
2769
|
+
fontWeight: fontWeights.normal,
|
2770
|
+
lineHeight: lineHeights[28],
|
2771
|
+
letterSpacing: letterSpacings.normal
|
2772
|
+
},
|
2773
|
+
lg: {
|
2774
|
+
fontSize: fontSizes.text.lg,
|
2775
|
+
fontWeight: fontWeights.normal,
|
2776
|
+
lineHeight: lineHeights[24],
|
2777
|
+
letterSpacing: letterSpacings.normal
|
2778
|
+
},
|
2779
|
+
md: {
|
2780
|
+
fontSize: fontSizes.text.md,
|
2781
|
+
fontWeight: fontWeights.normal,
|
2782
|
+
lineHeight: lineHeights[22],
|
2783
|
+
letterSpacing: letterSpacings.normal
|
2784
|
+
},
|
2785
|
+
sm: {
|
2786
|
+
fontSize: fontSizes.text.sm,
|
2787
|
+
fontWeight: fontWeights.normal,
|
2788
|
+
lineHeight: lineHeights[18],
|
2789
|
+
letterSpacing: letterSpacings.normal
|
2790
|
+
},
|
2791
|
+
xs: {
|
2792
|
+
fontSize: fontSizes.text.xs,
|
2793
|
+
fontWeight: fontWeights.normal,
|
2794
|
+
lineHeight: lineHeights[14],
|
2795
|
+
letterSpacing: letterSpacings.normal
|
2796
|
+
}
|
2797
|
+
};
|
2798
|
+
const button = {
|
2799
|
+
lg: {
|
2800
|
+
fontSize: fontSizes.button.lg,
|
2801
|
+
lineHeight: lineHeights[28],
|
2802
|
+
letterSpacing: letterSpacings.normal,
|
2803
|
+
fontWeight: fontWeights.normal
|
2804
|
+
},
|
2805
|
+
md: {
|
2806
|
+
fontSize: fontSizes.button.md,
|
2807
|
+
lineHeight: lineHeights[22],
|
2808
|
+
letterSpacing: letterSpacings.normal,
|
2809
|
+
fontWeight: fontWeights.normal
|
2810
|
+
},
|
2811
|
+
sm: {
|
2812
|
+
fontSize: fontSizes.button.sm,
|
2813
|
+
lineHeight: lineHeights[14],
|
2814
|
+
letterSpacing: letterSpacings.normal,
|
2815
|
+
fontWeight: fontWeights.normal
|
2816
|
+
}
|
2817
|
+
};
|
2818
|
+
const field = {
|
2819
|
+
lg: {
|
2820
|
+
fontSize: fontSizes.field.lg,
|
2821
|
+
lineHeight: lineHeights[24],
|
2822
|
+
letterSpacing: letterSpacings.normal,
|
2823
|
+
fontWeight: fontWeights.normal
|
2824
|
+
},
|
2825
|
+
md: {
|
2826
|
+
fontSize: fontSizes.field.md,
|
2827
|
+
lineHeight: lineHeights[22],
|
2828
|
+
letterSpacing: letterSpacings.normal,
|
2829
|
+
fontWeight: fontWeights.normal
|
2830
|
+
},
|
2831
|
+
sm: {
|
2832
|
+
fontSize: fontSizes.field.sm,
|
2833
|
+
lineHeight: lineHeights[18],
|
2834
|
+
letterSpacing: letterSpacings.normal,
|
2835
|
+
fontWeight: fontWeights.normal
|
2836
|
+
}
|
2837
|
+
};
|
2838
|
+
const textStyles = {
|
2839
|
+
heading,
|
2840
|
+
text,
|
2841
|
+
button,
|
2842
|
+
field
|
2843
|
+
};
|
2844
|
+
|
2845
|
+
|
2846
|
+
|
2847
|
+
var foundations = {
|
2848
|
+
__proto__: null,
|
2849
|
+
radii: radius,
|
2850
|
+
shadows: shadows,
|
2851
|
+
sizes: sizes,
|
2852
|
+
space: spacing,
|
2853
|
+
fonts: fonts,
|
2854
|
+
fontSizes: fontSizes,
|
2855
|
+
letterSpacings: letterSpacings,
|
2856
|
+
lineHeights: lineHeights,
|
2857
|
+
textStyles: textStyles
|
2858
|
+
};
|
2859
|
+
|
3034
2860
|
const styleMd = textStyles.text.sm;
|
3035
2861
|
const selectStyle = {
|
3036
2862
|
fontSize: styleMd.fontSize,
|
@@ -3041,20 +2867,20 @@ const boxShadow = color => `0 0 0 1px ${color}`;
|
|
3041
2867
|
function selectStyles(colorMode, _isError) {
|
3042
2868
|
const boxShadowLight = (isFocused = false, isError = false) => {
|
3043
2869
|
if (isError && isFocused || isError) {
|
3044
|
-
return boxShadow(
|
2870
|
+
return boxShadow('danger.500');
|
3045
2871
|
}
|
3046
2872
|
if (isFocused) {
|
3047
|
-
return boxShadow(
|
2873
|
+
return boxShadow('primary.500');
|
3048
2874
|
}
|
3049
|
-
return boxShadow(
|
2875
|
+
return boxShadow('neutral.400');
|
3050
2876
|
};
|
3051
2877
|
return {
|
3052
2878
|
control: (base, state) => colorMode === 'dark' ? {
|
3053
2879
|
...base,
|
3054
2880
|
...selectStyle,
|
3055
2881
|
background: 'transparent',
|
3056
|
-
color:
|
3057
|
-
borderColor:
|
2882
|
+
color: 'primary.300',
|
2883
|
+
borderColor: 'secondary.500',
|
3058
2884
|
boxShadow: state.isFocused ? 'none' : `inherit`
|
3059
2885
|
} : {
|
3060
2886
|
...base,
|
@@ -3067,7 +2893,7 @@ function selectStyles(colorMode, _isError) {
|
|
3067
2893
|
}) => colorMode === 'dark' ? {
|
3068
2894
|
...base,
|
3069
2895
|
...selectStyle,
|
3070
|
-
background: isSelected ?
|
2896
|
+
background: isSelected ? 'primary.700' : 'dark.800',
|
3071
2897
|
color: 'white'
|
3072
2898
|
} : {
|
3073
2899
|
...base,
|
@@ -3076,7 +2902,7 @@ function selectStyles(colorMode, _isError) {
|
|
3076
2902
|
menu: base => colorMode === 'dark' ? {
|
3077
2903
|
...base,
|
3078
2904
|
...selectStyle,
|
3079
|
-
background:
|
2905
|
+
background: 'dark.800',
|
3080
2906
|
zIndex: 5
|
3081
2907
|
} : {
|
3082
2908
|
...base,
|
@@ -3102,7 +2928,7 @@ function selectStyles(colorMode, _isError) {
|
|
3102
2928
|
dropdownIndicator: base => colorMode === 'dark' ? {
|
3103
2929
|
...base,
|
3104
2930
|
...selectStyle,
|
3105
|
-
color:
|
2931
|
+
color: 'secondary.500'
|
3106
2932
|
} : {
|
3107
2933
|
...base,
|
3108
2934
|
...selectStyle
|
@@ -3110,7 +2936,7 @@ function selectStyles(colorMode, _isError) {
|
|
3110
2936
|
indicatorSeparator: base => colorMode === 'dark' ? {
|
3111
2937
|
...base,
|
3112
2938
|
...selectStyle,
|
3113
|
-
backgroundColor:
|
2939
|
+
backgroundColor: 'secondary.500'
|
3114
2940
|
} : {
|
3115
2941
|
...base,
|
3116
2942
|
...selectStyle
|
@@ -3119,7 +2945,7 @@ function selectStyles(colorMode, _isError) {
|
|
3119
2945
|
return {
|
3120
2946
|
...base,
|
3121
2947
|
...selectStyle,
|
3122
|
-
color:
|
2948
|
+
color: 'black.low'
|
3123
2949
|
};
|
3124
2950
|
}
|
3125
2951
|
};
|
@@ -3129,10 +2955,10 @@ const themeSelect = theme => {
|
|
3129
2955
|
...theme,
|
3130
2956
|
colors: {
|
3131
2957
|
...theme.colors,
|
3132
|
-
primary:
|
3133
|
-
primary25:
|
3134
|
-
primary50:
|
3135
|
-
primary75:
|
2958
|
+
primary: 'primary.500',
|
2959
|
+
primary25: 'primary.50',
|
2960
|
+
primary50: 'primary.100',
|
2961
|
+
primary75: 'primary.200'
|
3136
2962
|
}
|
3137
2963
|
};
|
3138
2964
|
};
|
@@ -4182,10 +4008,10 @@ const rotate = /*#__PURE__*/keyframes({
|
|
4182
4008
|
}
|
4183
4009
|
});
|
4184
4010
|
const getLoaderColor = color => {
|
4185
|
-
if (color === 'primary') return colors
|
4186
|
-
if (color === 'danger') return colors
|
4187
|
-
if (color === 'warning') return colors
|
4188
|
-
return colors
|
4011
|
+
if (color === 'primary') return '--chakra-colors-primary-600';
|
4012
|
+
if (color === 'danger') return '--chakra-colors-danger-500';
|
4013
|
+
if (color === 'warning') return '--chakra-colors-warning-700';
|
4014
|
+
return '--chakra-colors-white-high';
|
4189
4015
|
};
|
4190
4016
|
const LoaderStyle = /*#__PURE__*/defineStyleConfig({
|
4191
4017
|
baseStyle: props => {
|
@@ -4196,7 +4022,7 @@ const LoaderStyle = /*#__PURE__*/defineStyleConfig({
|
|
4196
4022
|
justifyContent: 'center',
|
4197
4023
|
alignItems: 'center',
|
4198
4024
|
animation: `${rotate} 1s linear infinite`,
|
4199
|
-
background: `conic-gradient(from 180deg at 50% 50%, ${colors} 0deg, rgba(217, 217, 217, 0) 360deg);`,
|
4025
|
+
background: `conic-gradient(from 180deg at 50% 50%, var(${colors}) 0deg, rgba(217, 217, 217, 0) 360deg);`,
|
4200
4026
|
':before': {
|
4201
4027
|
content: `''`,
|
4202
4028
|
display: 'block',
|
@@ -4753,6 +4579,27 @@ const config = {
|
|
4753
4579
|
initialColorMode: 'light',
|
4754
4580
|
useSystemColorMode: false
|
4755
4581
|
};
|
4582
|
+
const getTheme = colorScheme => {
|
4583
|
+
return extendTheme({
|
4584
|
+
colors: colorScheme,
|
4585
|
+
...foundations,
|
4586
|
+
components: {
|
4587
|
+
...components
|
4588
|
+
},
|
4589
|
+
styles: {
|
4590
|
+
global: {
|
4591
|
+
'*::-webkit-scrollbar-thumb': {
|
4592
|
+
background: 'neutral.400'
|
4593
|
+
},
|
4594
|
+
body: {
|
4595
|
+
fontSize: 'text.sm',
|
4596
|
+
color: 'black.high'
|
4597
|
+
}
|
4598
|
+
}
|
4599
|
+
},
|
4600
|
+
config
|
4601
|
+
});
|
4602
|
+
};
|
4756
4603
|
const theme = /*#__PURE__*/extendTheme({
|
4757
4604
|
...foundations,
|
4758
4605
|
components: {
|
@@ -4836,5 +4683,5 @@ function useFetcher() {
|
|
4836
4683
|
};
|
4837
4684
|
}
|
4838
4685
|
|
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 };
|
4686
|
+
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, getTheme, theme, useAlertStyles, useFetcher, useInternalUI };
|
4840
4687
|
//# sourceMappingURL=internal-ui.esm.js.map
|