react-native-mantine 0.1.15 → 0.3.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.
- package/README.md +603 -7
- package/lib/commonjs/components/Accordion/index.js +250 -0
- package/lib/commonjs/components/Accordion/index.js.map +1 -0
- package/lib/commonjs/components/ActionIcon/ActionIcon.js +23 -28
- package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/commonjs/components/Anchor/index.js +107 -0
- package/lib/commonjs/components/Anchor/index.js.map +1 -0
- package/lib/commonjs/components/AspectRatio/index.js +65 -0
- package/lib/commonjs/components/AspectRatio/index.js.map +1 -0
- package/lib/commonjs/components/Avatar/index.js +128 -0
- package/lib/commonjs/components/Avatar/index.js.map +1 -0
- package/lib/commonjs/components/BackgroundImage/index.js +55 -0
- package/lib/commonjs/components/BackgroundImage/index.js.map +1 -0
- package/lib/commonjs/components/Badge/index.js +189 -0
- package/lib/commonjs/components/Badge/index.js.map +1 -0
- package/lib/commonjs/components/Blockquote/index.js +97 -0
- package/lib/commonjs/components/Blockquote/index.js.map +1 -0
- package/lib/commonjs/components/BoxView/index.js +66 -2
- package/lib/commonjs/components/BoxView/index.js.map +1 -1
- package/lib/commonjs/components/Breadcrumbs/index.js +57 -0
- package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
- package/lib/commonjs/components/Burger/index.js +183 -0
- package/lib/commonjs/components/Burger/index.js.map +1 -0
- package/lib/commonjs/components/Button/Button.styles.js +35 -18
- package/lib/commonjs/components/Button/Button.styles.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +3 -3
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Card/index.js +135 -0
- package/lib/commonjs/components/Card/index.js.map +1 -0
- package/lib/commonjs/components/Center/index.js +35 -0
- package/lib/commonjs/components/Center/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +139 -0
- package/lib/commonjs/components/Checkbox/index.js.map +1 -0
- package/lib/commonjs/components/Chip/index.js +268 -0
- package/lib/commonjs/components/Chip/index.js.map +1 -0
- package/lib/commonjs/components/CloseButton/index.js +136 -0
- package/lib/commonjs/components/CloseButton/index.js.map +1 -0
- package/lib/commonjs/components/Code/index.js +67 -0
- package/lib/commonjs/components/Code/index.js.map +1 -0
- package/lib/commonjs/components/Collapse/index.js +82 -0
- package/lib/commonjs/components/Collapse/index.js.map +1 -0
- package/lib/commonjs/components/ColorSwatch/index.js +95 -0
- package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
- package/lib/commonjs/components/Container/index.js +70 -0
- package/lib/commonjs/components/Container/index.js.map +1 -0
- package/lib/commonjs/components/CopyButton/index.js +54 -0
- package/lib/commonjs/components/CopyButton/index.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js +139 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -0
- package/lib/commonjs/components/Divider/index.js +147 -0
- package/lib/commonjs/components/Divider/index.js.map +1 -0
- package/lib/commonjs/components/Drawer/index.js +251 -0
- package/lib/commonjs/components/Drawer/index.js.map +1 -0
- package/lib/commonjs/components/Flex/index.js +62 -0
- package/lib/commonjs/components/Flex/index.js.map +1 -0
- package/lib/commonjs/components/Grid/index.js +144 -0
- package/lib/commonjs/components/Grid/index.js.map +1 -0
- package/lib/commonjs/components/Group/index.js +22 -1
- package/lib/commonjs/components/Group/index.js.map +1 -1
- package/lib/commonjs/components/Highlight/index.js +74 -0
- package/lib/commonjs/components/Highlight/index.js.map +1 -0
- package/lib/commonjs/components/Image/index.js +132 -0
- package/lib/commonjs/components/Image/index.js.map +1 -0
- package/lib/commonjs/components/Indicator/index.js +198 -0
- package/lib/commonjs/components/Indicator/index.js.map +1 -0
- package/lib/commonjs/components/Kbd/index.js +95 -0
- package/lib/commonjs/components/Kbd/index.js.map +1 -0
- package/lib/commonjs/components/List/index.js +216 -0
- package/lib/commonjs/components/List/index.js.map +1 -0
- package/lib/commonjs/components/Loader/Loader.js +25 -18
- package/lib/commonjs/components/Loader/Loader.js.map +1 -1
- package/lib/commonjs/components/LoadingOverlay/index.js +84 -0
- package/lib/commonjs/components/LoadingOverlay/index.js.map +1 -0
- package/lib/commonjs/components/Mark/index.js +46 -0
- package/lib/commonjs/components/Mark/index.js.map +1 -0
- package/lib/commonjs/components/MediaQuery/index.js +88 -0
- package/lib/commonjs/components/MediaQuery/index.js.map +1 -0
- package/lib/commonjs/components/Menu/index.js +305 -0
- package/lib/commonjs/components/Menu/index.js.map +1 -0
- package/lib/commonjs/components/Modal/index.js +235 -0
- package/lib/commonjs/components/Modal/index.js.map +1 -0
- package/lib/commonjs/components/MultiSelect/index.js +299 -0
- package/lib/commonjs/components/MultiSelect/index.js.map +1 -0
- package/lib/commonjs/components/NativeSelect/index.js +294 -0
- package/lib/commonjs/components/NativeSelect/index.js.map +1 -0
- package/lib/commonjs/components/NavLink/index.js +163 -0
- package/lib/commonjs/components/NavLink/index.js.map +1 -0
- package/lib/commonjs/components/Notification/index.js +142 -0
- package/lib/commonjs/components/Notification/index.js.map +1 -0
- package/lib/commonjs/components/NumberInput/index.js +267 -0
- package/lib/commonjs/components/NumberInput/index.js.map +1 -0
- package/lib/commonjs/components/Overlay/index.js +77 -0
- package/lib/commonjs/components/Overlay/index.js.map +1 -0
- package/lib/commonjs/components/Pagination/index.js +253 -0
- package/lib/commonjs/components/Pagination/index.js.map +1 -0
- package/lib/commonjs/components/Paper/index.js +155 -0
- package/lib/commonjs/components/Paper/index.js.map +1 -0
- package/lib/commonjs/components/PasswordInput/index.js +67 -0
- package/lib/commonjs/components/PasswordInput/index.js.map +1 -0
- package/lib/commonjs/components/PinInput/index.js +186 -0
- package/lib/commonjs/components/PinInput/index.js.map +1 -0
- package/lib/commonjs/components/Popover/index.js +162 -0
- package/lib/commonjs/components/Popover/index.js.map +1 -0
- package/lib/commonjs/components/Portal/index.js +69 -0
- package/lib/commonjs/components/Portal/index.js.map +1 -0
- package/lib/commonjs/components/Progress/index.js +124 -0
- package/lib/commonjs/components/Progress/index.js.map +1 -0
- package/lib/commonjs/components/Radio/index.js +135 -0
- package/lib/commonjs/components/Radio/index.js.map +1 -0
- package/lib/commonjs/components/Rating/index.js +151 -0
- package/lib/commonjs/components/Rating/index.js.map +1 -0
- package/lib/commonjs/components/RingProgress/index.js +174 -0
- package/lib/commonjs/components/RingProgress/index.js.map +1 -0
- package/lib/commonjs/components/SegmentedControl/index.js +225 -0
- package/lib/commonjs/components/SegmentedControl/index.js.map +1 -0
- package/lib/commonjs/components/Select/index.js +244 -0
- package/lib/commonjs/components/Select/index.js.map +1 -0
- package/lib/commonjs/components/SimpleGrid/index.js +101 -0
- package/lib/commonjs/components/SimpleGrid/index.js.map +1 -0
- package/lib/commonjs/components/Skeleton/index.js +111 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Slider/index.js +275 -0
- package/lib/commonjs/components/Slider/index.js.map +1 -0
- package/lib/commonjs/components/Space/index.js +45 -0
- package/lib/commonjs/components/Space/index.js.map +1 -0
- package/lib/commonjs/components/Spoiler/index.js +109 -0
- package/lib/commonjs/components/Spoiler/index.js.map +1 -0
- package/lib/commonjs/components/Stepper/index.js +275 -0
- package/lib/commonjs/components/Stepper/index.js.map +1 -0
- package/lib/commonjs/components/Switch/index.js +118 -0
- package/lib/commonjs/components/Switch/index.js.map +1 -0
- package/lib/commonjs/components/Table/index.js +313 -0
- package/lib/commonjs/components/Table/index.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +7 -2
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/TextInput/index.js +184 -0
- package/lib/commonjs/components/TextInput/index.js.map +1 -0
- package/lib/commonjs/components/Textarea/index.js +54 -0
- package/lib/commonjs/components/Textarea/index.js.map +1 -0
- package/lib/commonjs/components/ThemeIcon/index.js +144 -0
- package/lib/commonjs/components/ThemeIcon/index.js.map +1 -0
- package/lib/commonjs/components/Timeline/index.js +241 -0
- package/lib/commonjs/components/Timeline/index.js.map +1 -0
- package/lib/commonjs/components/Title/index.js +44 -0
- package/lib/commonjs/components/Title/index.js.map +1 -0
- package/lib/commonjs/components/Tooltip/index.js +186 -0
- package/lib/commonjs/components/Tooltip/index.js.map +1 -0
- package/lib/commonjs/components/TransferList/index.js +292 -0
- package/lib/commonjs/components/TransferList/index.js.map +1 -0
- package/lib/commonjs/components/Transition/index.js +174 -0
- package/lib/commonjs/components/Transition/index.js.map +1 -0
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.js +1 -2
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.js.map +1 -1
- package/lib/commonjs/components/index.js +759 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks/useCachedResources.js +1 -2
- package/lib/commonjs/hooks/useCachedResources.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme/create-theme.js +4 -1
- package/lib/commonjs/theme/create-theme.js.map +1 -1
- package/lib/commonjs/theme/default-theme.js +2 -0
- package/lib/commonjs/theme/default-theme.js.map +1 -1
- package/lib/commonjs/theme/functions/attach-functions.js +12 -2
- package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/helpers.js +44 -0
- package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/index.js +4 -1
- package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +26 -4
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/variant.js +89 -2
- package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
- package/lib/commonjs/theme/get-size/index.js +2 -2
- package/lib/commonjs/theme/get-size/index.js.map +1 -1
- package/lib/commonjs/theme/theme-provider.js +10 -9
- package/lib/commonjs/theme/theme-provider.js.map +1 -1
- package/lib/commonjs/theme/utils/rem.js +8 -6
- package/lib/commonjs/theme/utils/rem.js.map +1 -1
- package/lib/module/components/Accordion/index.js +246 -0
- package/lib/module/components/Accordion/index.js.map +1 -0
- package/lib/module/components/ActionIcon/ActionIcon.js +25 -29
- package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/module/components/Anchor/index.js +102 -0
- package/lib/module/components/Anchor/index.js.map +1 -0
- package/lib/module/components/AspectRatio/index.js +60 -0
- package/lib/module/components/AspectRatio/index.js.map +1 -0
- package/lib/module/components/Avatar/index.js +123 -0
- package/lib/module/components/Avatar/index.js.map +1 -0
- package/lib/module/components/BackgroundImage/index.js +50 -0
- package/lib/module/components/BackgroundImage/index.js.map +1 -0
- package/lib/module/components/Badge/index.js +184 -0
- package/lib/module/components/Badge/index.js.map +1 -0
- package/lib/module/components/Blockquote/index.js +92 -0
- package/lib/module/components/Blockquote/index.js.map +1 -0
- package/lib/module/components/BoxView/index.js +66 -2
- package/lib/module/components/BoxView/index.js.map +1 -1
- package/lib/module/components/Breadcrumbs/index.js +52 -0
- package/lib/module/components/Breadcrumbs/index.js.map +1 -0
- package/lib/module/components/Burger/index.js +180 -0
- package/lib/module/components/Burger/index.js.map +1 -0
- package/lib/module/components/Button/Button.styles.js +35 -18
- package/lib/module/components/Button/Button.styles.js.map +1 -1
- package/lib/module/components/Button/index.js +1 -0
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Card/index.js +130 -0
- package/lib/module/components/Card/index.js.map +1 -0
- package/lib/module/components/Center/index.js +30 -0
- package/lib/module/components/Center/index.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +134 -0
- package/lib/module/components/Checkbox/index.js.map +1 -0
- package/lib/module/components/Chip/index.js +263 -0
- package/lib/module/components/Chip/index.js.map +1 -0
- package/lib/module/components/CloseButton/index.js +132 -0
- package/lib/module/components/CloseButton/index.js.map +1 -0
- package/lib/module/components/Code/index.js +62 -0
- package/lib/module/components/Code/index.js.map +1 -0
- package/lib/module/components/Collapse/index.js +77 -0
- package/lib/module/components/Collapse/index.js.map +1 -0
- package/lib/module/components/ColorSwatch/index.js +90 -0
- package/lib/module/components/ColorSwatch/index.js.map +1 -0
- package/lib/module/components/Container/index.js +65 -0
- package/lib/module/components/Container/index.js.map +1 -0
- package/lib/module/components/CopyButton/index.js +48 -0
- package/lib/module/components/CopyButton/index.js.map +1 -0
- package/lib/module/components/Dialog/index.js +134 -0
- package/lib/module/components/Dialog/index.js.map +1 -0
- package/lib/module/components/Divider/index.js +142 -0
- package/lib/module/components/Divider/index.js.map +1 -0
- package/lib/module/components/Drawer/index.js +246 -0
- package/lib/module/components/Drawer/index.js.map +1 -0
- package/lib/module/components/Flex/index.js +57 -0
- package/lib/module/components/Flex/index.js.map +1 -0
- package/lib/module/components/Grid/index.js +139 -0
- package/lib/module/components/Grid/index.js.map +1 -0
- package/lib/module/components/Group/index.js +22 -1
- package/lib/module/components/Group/index.js.map +1 -1
- package/lib/module/components/Highlight/index.js +70 -0
- package/lib/module/components/Highlight/index.js.map +1 -0
- package/lib/module/components/Image/index.js +127 -0
- package/lib/module/components/Image/index.js.map +1 -0
- package/lib/module/components/Indicator/index.js +193 -0
- package/lib/module/components/Indicator/index.js.map +1 -0
- package/lib/module/components/Kbd/index.js +90 -0
- package/lib/module/components/Kbd/index.js.map +1 -0
- package/lib/module/components/List/index.js +211 -0
- package/lib/module/components/List/index.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +26 -19
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/LoadingOverlay/index.js +80 -0
- package/lib/module/components/LoadingOverlay/index.js.map +1 -0
- package/lib/module/components/Mark/index.js +41 -0
- package/lib/module/components/Mark/index.js.map +1 -0
- package/lib/module/components/MediaQuery/index.js +82 -0
- package/lib/module/components/MediaQuery/index.js.map +1 -0
- package/lib/module/components/Menu/index.js +300 -0
- package/lib/module/components/Menu/index.js.map +1 -0
- package/lib/module/components/Modal/index.js +230 -0
- package/lib/module/components/Modal/index.js.map +1 -0
- package/lib/module/components/MultiSelect/index.js +294 -0
- package/lib/module/components/MultiSelect/index.js.map +1 -0
- package/lib/module/components/NativeSelect/index.js +289 -0
- package/lib/module/components/NativeSelect/index.js.map +1 -0
- package/lib/module/components/NavLink/index.js +158 -0
- package/lib/module/components/NavLink/index.js.map +1 -0
- package/lib/module/components/Notification/index.js +137 -0
- package/lib/module/components/Notification/index.js.map +1 -0
- package/lib/module/components/NumberInput/index.js +262 -0
- package/lib/module/components/NumberInput/index.js.map +1 -0
- package/lib/module/components/Overlay/index.js +72 -0
- package/lib/module/components/Overlay/index.js.map +1 -0
- package/lib/module/components/Pagination/index.js +248 -0
- package/lib/module/components/Pagination/index.js.map +1 -0
- package/lib/module/components/Paper/index.js +150 -0
- package/lib/module/components/Paper/index.js.map +1 -0
- package/lib/module/components/PasswordInput/index.js +62 -0
- package/lib/module/components/PasswordInput/index.js.map +1 -0
- package/lib/module/components/PinInput/index.js +182 -0
- package/lib/module/components/PinInput/index.js.map +1 -0
- package/lib/module/components/Popover/index.js +157 -0
- package/lib/module/components/Popover/index.js.map +1 -0
- package/lib/module/components/Portal/index.js +62 -0
- package/lib/module/components/Portal/index.js.map +1 -0
- package/lib/module/components/Progress/index.js +120 -0
- package/lib/module/components/Progress/index.js.map +1 -0
- package/lib/module/components/Radio/index.js +130 -0
- package/lib/module/components/Radio/index.js.map +1 -0
- package/lib/module/components/Rating/index.js +146 -0
- package/lib/module/components/Rating/index.js.map +1 -0
- package/lib/module/components/RingProgress/index.js +169 -0
- package/lib/module/components/RingProgress/index.js.map +1 -0
- package/lib/module/components/SegmentedControl/index.js +220 -0
- package/lib/module/components/SegmentedControl/index.js.map +1 -0
- package/lib/module/components/Select/index.js +239 -0
- package/lib/module/components/Select/index.js.map +1 -0
- package/lib/module/components/SimpleGrid/index.js +96 -0
- package/lib/module/components/SimpleGrid/index.js.map +1 -0
- package/lib/module/components/Skeleton/index.js +106 -0
- package/lib/module/components/Skeleton/index.js.map +1 -0
- package/lib/module/components/Slider/index.js +270 -0
- package/lib/module/components/Slider/index.js.map +1 -0
- package/lib/module/components/Space/index.js +41 -0
- package/lib/module/components/Space/index.js.map +1 -0
- package/lib/module/components/Spoiler/index.js +104 -0
- package/lib/module/components/Spoiler/index.js.map +1 -0
- package/lib/module/components/Stepper/index.js +270 -0
- package/lib/module/components/Stepper/index.js.map +1 -0
- package/lib/module/components/Switch/index.js +113 -0
- package/lib/module/components/Switch/index.js.map +1 -0
- package/lib/module/components/Table/index.js +308 -0
- package/lib/module/components/Table/index.js.map +1 -0
- package/lib/module/components/Text/index.js +7 -2
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/TextInput/index.js +179 -0
- package/lib/module/components/TextInput/index.js.map +1 -0
- package/lib/module/components/Textarea/index.js +50 -0
- package/lib/module/components/Textarea/index.js.map +1 -0
- package/lib/module/components/ThemeIcon/index.js +140 -0
- package/lib/module/components/ThemeIcon/index.js.map +1 -0
- package/lib/module/components/Timeline/index.js +236 -0
- package/lib/module/components/Timeline/index.js.map +1 -0
- package/lib/module/components/Title/index.js +39 -0
- package/lib/module/components/Title/index.js.map +1 -0
- package/lib/module/components/Tooltip/index.js +181 -0
- package/lib/module/components/Tooltip/index.js.map +1 -0
- package/lib/module/components/TransferList/index.js +287 -0
- package/lib/module/components/TransferList/index.js.map +1 -0
- package/lib/module/components/Transition/index.js +169 -0
- package/lib/module/components/Transition/index.js.map +1 -0
- package/lib/module/components/index.js +101 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/theme/create-theme.js +4 -1
- package/lib/module/theme/create-theme.js.map +1 -1
- package/lib/module/theme/default-theme.js +2 -0
- package/lib/module/theme/default-theme.js.map +1 -1
- package/lib/module/theme/functions/attach-functions.js +12 -2
- package/lib/module/theme/functions/attach-functions.js.map +1 -1
- package/lib/module/theme/functions/fns/helpers.js +34 -0
- package/lib/module/theme/functions/fns/helpers.js.map +1 -0
- package/lib/module/theme/functions/fns/index.js +3 -1
- package/lib/module/theme/functions/fns/index.js.map +1 -1
- package/lib/module/theme/functions/fns/theme-color/theme-color.js +26 -4
- package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/module/theme/functions/fns/variant.js +89 -2
- package/lib/module/theme/functions/fns/variant.js.map +1 -1
- package/lib/module/theme/get-size/index.js +2 -2
- package/lib/module/theme/get-size/index.js.map +1 -1
- package/lib/module/theme/theme-provider.js +9 -7
- package/lib/module/theme/theme-provider.js.map +1 -1
- package/lib/module/theme/utils/rem.js +8 -6
- package/lib/module/theme/utils/rem.js.map +1 -1
- package/lib/typescript/commonjs/src/components/Accordion/index.d.ts +54 -0
- package/lib/typescript/commonjs/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Anchor/index.d.ts +25 -0
- package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Avatar/index.d.ts +23 -0
- package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Badge/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BoxView/index.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/BoxView/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Burger/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/Burger/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Button/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Card/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Center/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Chip/index.d.ts +51 -0
- package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Code/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Collapse/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/Collapse/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Container/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Dialog/index.d.ts +31 -0
- package/lib/typescript/commonjs/src/components/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Divider/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/Divider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Drawer/index.d.ts +36 -0
- package/lib/typescript/commonjs/src/components/Drawer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Flex/index.d.ts +27 -0
- package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Grid/index.d.ts +38 -0
- package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Group/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/Group/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Highlight/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Image/index.d.ts +31 -0
- package/lib/typescript/commonjs/src/components/Image/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Indicator/index.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Input/Input.styles.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/Kbd/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/Kbd/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/List/index.d.ts +42 -0
- package/lib/typescript/commonjs/src/components/List/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts +23 -0
- package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Mark/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/Mark/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Menu/index.d.ts +64 -0
- package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Modal/index.d.ts +40 -0
- package/lib/typescript/commonjs/src/components/Modal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts +53 -0
- package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts +45 -0
- package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/NavLink/index.d.ts +30 -0
- package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Notification/index.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts +47 -0
- package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Overlay/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Overlay/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Pagination/index.d.ts +37 -0
- package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Paper/index.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/Paper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/PinInput/index.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Popover/index.d.ts +44 -0
- package/lib/typescript/commonjs/src/components/Popover/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Portal/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/Portal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Progress/index.d.ts +29 -0
- package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Radio/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Rating/index.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts +61 -0
- package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Select/index.d.ts +53 -0
- package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Slider/index.d.ts +43 -0
- package/lib/typescript/commonjs/src/components/Slider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Space/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/Space/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Stepper/index.d.ts +55 -0
- package/lib/typescript/commonjs/src/components/Stepper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Switch/index.d.ts +24 -0
- package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Table/index.d.ts +72 -0
- package/lib/typescript/commonjs/src/components/Table/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Text/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/TextInput/index.d.ts +31 -0
- package/lib/typescript/commonjs/src/components/TextInput/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Textarea/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/Textarea/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Timeline/index.d.ts +52 -0
- package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Title/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts +36 -0
- package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/TransferList/index.d.ts +42 -0
- package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Transition/index.d.ts +25 -0
- package/lib/typescript/commonjs/src/components/Transition/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/index.d.ts +69 -0
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts +20 -0
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +23 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +22 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +19 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/utils/rem.d.ts +2 -2
- package/lib/typescript/commonjs/src/theme/utils/rem.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Accordion/index.d.ts +54 -0
- package/lib/typescript/module/src/components/Accordion/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts +4 -4
- package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Anchor/index.d.ts +25 -0
- package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AspectRatio/index.d.ts +12 -0
- package/lib/typescript/module/src/components/AspectRatio/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Avatar/index.d.ts +23 -0
- package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BackgroundImage/index.d.ts +15 -0
- package/lib/typescript/module/src/components/BackgroundImage/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Badge/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Blockquote/index.d.ts +18 -0
- package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BoxView/index.d.ts +28 -0
- package/lib/typescript/module/src/components/BoxView/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts +12 -0
- package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Burger/index.d.ts +21 -0
- package/lib/typescript/module/src/components/Burger/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Button/Button.styles.d.ts +5 -0
- package/lib/typescript/module/src/components/Button/Button.styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Button/index.d.ts +1 -0
- package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Card/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Center/index.d.ts +15 -0
- package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Checkbox/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Chip/index.d.ts +51 -0
- package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CloseButton/index.d.ts +22 -0
- package/lib/typescript/module/src/components/CloseButton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Code/index.d.ts +15 -0
- package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Collapse/index.d.ts +20 -0
- package/lib/typescript/module/src/components/Collapse/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ColorSwatch/index.d.ts +20 -0
- package/lib/typescript/module/src/components/ColorSwatch/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Container/index.d.ts +20 -0
- package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/CopyButton/index.d.ts +15 -0
- package/lib/typescript/module/src/components/CopyButton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Dialog/index.d.ts +31 -0
- package/lib/typescript/module/src/components/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Divider/index.d.ts +20 -0
- package/lib/typescript/module/src/components/Divider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Drawer/index.d.ts +36 -0
- package/lib/typescript/module/src/components/Drawer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Flex/index.d.ts +27 -0
- package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Grid/index.d.ts +38 -0
- package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Group/index.d.ts +2 -1
- package/lib/typescript/module/src/components/Group/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Highlight/index.d.ts +19 -0
- package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Image/index.d.ts +31 -0
- package/lib/typescript/module/src/components/Image/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Indicator/index.d.ts +32 -0
- package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Input/Input.styles.d.ts +5 -5
- package/lib/typescript/module/src/components/Kbd/index.d.ts +12 -0
- package/lib/typescript/module/src/components/Kbd/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/List/index.d.ts +42 -0
- package/lib/typescript/module/src/components/List/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts +23 -0
- package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Mark/index.d.ts +14 -0
- package/lib/typescript/module/src/components/Mark/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MediaQuery/index.d.ts +24 -0
- package/lib/typescript/module/src/components/MediaQuery/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Menu/index.d.ts +64 -0
- package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Modal/index.d.ts +40 -0
- package/lib/typescript/module/src/components/Modal/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/MultiSelect/index.d.ts +53 -0
- package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/NativeSelect/index.d.ts +45 -0
- package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/NavLink/index.d.ts +30 -0
- package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Notification/index.d.ts +28 -0
- package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/NumberInput/index.d.ts +47 -0
- package/lib/typescript/module/src/components/NumberInput/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Overlay/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Overlay/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Pagination/index.d.ts +37 -0
- package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Paper/index.d.ts +18 -0
- package/lib/typescript/module/src/components/Paper/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/PasswordInput/index.d.ts +15 -0
- package/lib/typescript/module/src/components/PasswordInput/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/PinInput/index.d.ts +33 -0
- package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Popover/index.d.ts +44 -0
- package/lib/typescript/module/src/components/Popover/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Portal/index.d.ts +10 -0
- package/lib/typescript/module/src/components/Portal/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Progress/index.d.ts +29 -0
- package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Radio/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Rating/index.d.ts +32 -0
- package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/RingProgress/index.d.ts +61 -0
- package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SegmentedControl/index.d.ts +35 -0
- package/lib/typescript/module/src/components/SegmentedControl/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Select/index.d.ts +53 -0
- package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SimpleGrid/index.d.ts +22 -0
- package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Skeleton/index.d.ts +22 -0
- package/lib/typescript/module/src/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Slider/index.d.ts +43 -0
- package/lib/typescript/module/src/components/Slider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Space/index.d.ts +13 -0
- package/lib/typescript/module/src/components/Space/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Spoiler/index.d.ts +22 -0
- package/lib/typescript/module/src/components/Spoiler/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Stepper/index.d.ts +55 -0
- package/lib/typescript/module/src/components/Stepper/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Switch/index.d.ts +24 -0
- package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Table/index.d.ts +72 -0
- package/lib/typescript/module/src/components/Table/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Text/index.d.ts +4 -0
- package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/TextInput/index.d.ts +31 -0
- package/lib/typescript/module/src/components/TextInput/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Textarea/index.d.ts +12 -0
- package/lib/typescript/module/src/components/Textarea/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ThemeIcon/index.d.ts +21 -0
- package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Timeline/index.d.ts +52 -0
- package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Title/index.d.ts +14 -0
- package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Tooltip/index.d.ts +36 -0
- package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/TransferList/index.d.ts +42 -0
- package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Transition/index.d.ts +25 -0
- package/lib/typescript/module/src/components/Transition/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/index.d.ts +69 -0
- package/lib/typescript/module/src/components/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/default-theme.d.ts +20 -0
- package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +23 -0
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts +22 -1
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/radius.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +19 -1
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/utils/rem.d.ts +2 -2
- package/lib/typescript/module/src/theme/utils/rem.d.ts.map +1 -1
- package/package.json +11 -8
- package/src/components/Accordion/index.tsx +297 -0
- package/src/components/ActionIcon/ActionIcon.tsx +61 -44
- package/src/components/Anchor/index.tsx +139 -0
- package/src/components/AspectRatio/index.tsx +68 -0
- package/src/components/Avatar/index.tsx +164 -0
- package/src/components/BackgroundImage/index.tsx +77 -0
- package/src/components/Badge/index.tsx +193 -0
- package/src/components/Blockquote/index.tsx +104 -0
- package/src/components/BoxView/index.tsx +90 -2
- package/src/components/Breadcrumbs/index.tsx +64 -0
- package/src/components/Burger/index.tsx +230 -0
- package/src/components/Button/Button.styles.ts +36 -16
- package/src/components/Button/index.tsx +3 -1
- package/src/components/Card/index.tsx +166 -0
- package/src/components/Center/index.tsx +40 -0
- package/src/components/Checkbox/index.tsx +168 -0
- package/src/components/Chip/index.tsx +350 -0
- package/src/components/CloseButton/index.tsx +154 -0
- package/src/components/Code/index.tsx +83 -0
- package/src/components/Collapse/index.tsx +108 -0
- package/src/components/ColorSwatch/index.tsx +106 -0
- package/src/components/Container/index.tsx +92 -0
- package/src/components/CopyButton/index.tsx +60 -0
- package/src/components/Dialog/index.tsx +189 -0
- package/src/components/Divider/index.tsx +161 -0
- package/src/components/Drawer/index.tsx +315 -0
- package/src/components/Flex/index.tsx +87 -0
- package/src/components/Grid/index.tsx +167 -0
- package/src/components/Group/index.tsx +24 -5
- package/src/components/Highlight/index.tsx +93 -0
- package/src/components/Image/index.tsx +180 -0
- package/src/components/Indicator/index.tsx +240 -0
- package/src/components/Kbd/index.tsx +84 -0
- package/src/components/List/index.tsx +294 -0
- package/src/components/Loader/Loader.tsx +27 -17
- package/src/components/LoadingOverlay/index.tsx +103 -0
- package/src/components/Mark/index.tsx +51 -0
- package/src/components/MediaQuery/index.tsx +133 -0
- package/src/components/Menu/index.tsx +395 -0
- package/src/components/Modal/index.tsx +318 -0
- package/src/components/MultiSelect/index.tsx +458 -0
- package/src/components/NativeSelect/index.tsx +387 -0
- package/src/components/NavLink/index.tsx +205 -0
- package/src/components/Notification/index.tsx +175 -0
- package/src/components/NumberInput/index.tsx +356 -0
- package/src/components/Overlay/index.tsx +100 -0
- package/src/components/Pagination/index.tsx +336 -0
- package/src/components/Paper/index.tsx +155 -0
- package/src/components/PasswordInput/index.tsx +78 -0
- package/src/components/PinInput/index.tsx +251 -0
- package/src/components/Popover/index.tsx +244 -0
- package/src/components/Portal/index.tsx +75 -0
- package/src/components/Progress/index.tsx +182 -0
- package/src/components/Radio/index.tsx +169 -0
- package/src/components/Rating/index.tsx +214 -0
- package/src/components/RingProgress/index.tsx +206 -0
- package/src/components/SegmentedControl/index.tsx +259 -0
- package/src/components/Select/index.tsx +377 -0
- package/src/components/SimpleGrid/index.tsx +119 -0
- package/src/components/Skeleton/index.tsx +149 -0
- package/src/components/Slider/index.tsx +338 -0
- package/src/components/Space/index.tsx +48 -0
- package/src/components/Spoiler/index.tsx +123 -0
- package/src/components/Stepper/index.tsx +388 -0
- package/src/components/Switch/index.tsx +146 -0
- package/src/components/Table/index.tsx +402 -0
- package/src/components/Text/index.tsx +6 -1
- package/src/components/TextInput/index.tsx +232 -0
- package/src/components/Textarea/index.tsx +61 -0
- package/src/components/ThemeIcon/index.tsx +167 -0
- package/src/components/Timeline/index.tsx +331 -0
- package/src/components/Title/index.tsx +53 -0
- package/src/components/Tooltip/index.tsx +259 -0
- package/src/components/TransferList/index.tsx +399 -0
- package/src/components/Transition/index.tsx +225 -0
- package/src/components/index.tsx +101 -0
- package/src/theme/create-theme.ts +3 -1
- package/src/theme/default-theme.ts +24 -0
- package/src/theme/functions/attach-functions.ts +8 -1
- package/src/theme/functions/fns/helpers.ts +36 -0
- package/src/theme/functions/fns/index.ts +2 -0
- package/src/theme/functions/fns/theme-color/theme-color.ts +34 -3
- package/src/theme/functions/fns/variant.ts +110 -2
- package/src/theme/get-size/index.ts +2 -2
- package/src/theme/theme-provider.tsx +7 -7
- package/src/theme/utils/rem.ts +9 -7
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, createContext, useContext } from 'react';
|
|
4
|
+
import { ScrollView } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const TableContext = /*#__PURE__*/createContext(null);
|
|
12
|
+
const useTableContext = () => {
|
|
13
|
+
const context = useContext(TableContext);
|
|
14
|
+
return context;
|
|
15
|
+
};
|
|
16
|
+
const fontSizes = {
|
|
17
|
+
xs: rem(10),
|
|
18
|
+
sm: rem(12),
|
|
19
|
+
md: rem(14),
|
|
20
|
+
lg: rem(16),
|
|
21
|
+
xl: rem(18)
|
|
22
|
+
};
|
|
23
|
+
const useTableStyles = createStyles((theme, {
|
|
24
|
+
withBorder,
|
|
25
|
+
captionSide
|
|
26
|
+
}) => ({
|
|
27
|
+
wrapper: {
|
|
28
|
+
flex: 1
|
|
29
|
+
},
|
|
30
|
+
root: {
|
|
31
|
+
width: '100%',
|
|
32
|
+
borderCollapse: 'collapse',
|
|
33
|
+
...(withBorder && {
|
|
34
|
+
borderWidth: 1,
|
|
35
|
+
borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
caption: {
|
|
39
|
+
fontSize: theme.fontSizes.sm,
|
|
40
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark?.[2] : theme.colors.gray?.[6],
|
|
41
|
+
paddingVertical: theme.spacing.xs,
|
|
42
|
+
textAlign: 'center',
|
|
43
|
+
...(captionSide === 'bottom' && {
|
|
44
|
+
order: 1
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
const useTableHeadStyles = createStyles(theme => ({
|
|
49
|
+
thead: {
|
|
50
|
+
borderBottomWidth: 1,
|
|
51
|
+
borderBottomColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
const useTableRowStyles = createStyles((theme, {
|
|
55
|
+
striped,
|
|
56
|
+
isEven
|
|
57
|
+
}) => ({
|
|
58
|
+
tr: {
|
|
59
|
+
borderBottomWidth: 1,
|
|
60
|
+
borderBottomColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3],
|
|
61
|
+
...(striped && isEven && {
|
|
62
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] : theme.colors.gray?.[0]
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
const useTableCellStyles = createStyles((theme, {
|
|
67
|
+
fontSize,
|
|
68
|
+
verticalSpacing,
|
|
69
|
+
horizontalSpacing,
|
|
70
|
+
withColumnBorders,
|
|
71
|
+
isHeader
|
|
72
|
+
}) => {
|
|
73
|
+
const getVerticalPadding = () => {
|
|
74
|
+
if (typeof verticalSpacing === 'number') return rem(verticalSpacing);
|
|
75
|
+
return theme.spacing[verticalSpacing] || theme.spacing.xs;
|
|
76
|
+
};
|
|
77
|
+
const getHorizontalPadding = () => {
|
|
78
|
+
if (typeof horizontalSpacing === 'number') return rem(horizontalSpacing);
|
|
79
|
+
return theme.spacing[horizontalSpacing] || theme.spacing.xs;
|
|
80
|
+
};
|
|
81
|
+
return {
|
|
82
|
+
cell: {
|
|
83
|
+
paddingVertical: getVerticalPadding(),
|
|
84
|
+
paddingHorizontal: getHorizontalPadding(),
|
|
85
|
+
fontSize: fontSizes[fontSize],
|
|
86
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
87
|
+
textAlign: 'left',
|
|
88
|
+
...(withColumnBorders && {
|
|
89
|
+
borderRightWidth: 1,
|
|
90
|
+
borderRightColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
91
|
+
}),
|
|
92
|
+
...(isHeader && {
|
|
93
|
+
fontWeight: '600'
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
const defaultProps = {
|
|
99
|
+
horizontalSpacing: 'xs',
|
|
100
|
+
verticalSpacing: 'xs',
|
|
101
|
+
fontSize: 'sm',
|
|
102
|
+
striped: false,
|
|
103
|
+
highlightOnHover: false,
|
|
104
|
+
withBorder: false,
|
|
105
|
+
withColumnBorders: false,
|
|
106
|
+
captionSide: 'top'
|
|
107
|
+
};
|
|
108
|
+
export const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
109
|
+
const {
|
|
110
|
+
children,
|
|
111
|
+
horizontalSpacing,
|
|
112
|
+
verticalSpacing,
|
|
113
|
+
fontSize,
|
|
114
|
+
striped,
|
|
115
|
+
highlightOnHover: _highlightOnHover,
|
|
116
|
+
withBorder,
|
|
117
|
+
withColumnBorders,
|
|
118
|
+
captionSide,
|
|
119
|
+
caption,
|
|
120
|
+
style,
|
|
121
|
+
...others
|
|
122
|
+
} = useComponentDefaultProps('Table', defaultProps, props);
|
|
123
|
+
const {
|
|
124
|
+
styles,
|
|
125
|
+
sx
|
|
126
|
+
} = useTableStyles({
|
|
127
|
+
withBorder,
|
|
128
|
+
captionSide
|
|
129
|
+
}, {
|
|
130
|
+
name: 'Table'
|
|
131
|
+
});
|
|
132
|
+
return /*#__PURE__*/_jsx(TableContext.Provider, {
|
|
133
|
+
value: {
|
|
134
|
+
striped: striped,
|
|
135
|
+
highlightOnHover: _highlightOnHover,
|
|
136
|
+
withBorder: withBorder,
|
|
137
|
+
withColumnBorders: withColumnBorders,
|
|
138
|
+
fontSize: fontSize,
|
|
139
|
+
verticalSpacing: verticalSpacing,
|
|
140
|
+
horizontalSpacing: horizontalSpacing
|
|
141
|
+
},
|
|
142
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
143
|
+
horizontal: true,
|
|
144
|
+
style: styles.wrapper,
|
|
145
|
+
showsHorizontalScrollIndicator: true,
|
|
146
|
+
children: /*#__PURE__*/_jsxs(BoxView, {
|
|
147
|
+
ref: ref,
|
|
148
|
+
style: sx(styles.root, style),
|
|
149
|
+
...others,
|
|
150
|
+
children: [caption && /*#__PURE__*/_jsx(Text, {
|
|
151
|
+
style: styles.caption,
|
|
152
|
+
children: caption
|
|
153
|
+
}), children]
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
export const Thead = /*#__PURE__*/forwardRef((props, ref) => {
|
|
159
|
+
const {
|
|
160
|
+
children,
|
|
161
|
+
style,
|
|
162
|
+
...others
|
|
163
|
+
} = props;
|
|
164
|
+
const {
|
|
165
|
+
styles,
|
|
166
|
+
sx
|
|
167
|
+
} = useTableHeadStyles({}, {
|
|
168
|
+
name: 'Thead'
|
|
169
|
+
});
|
|
170
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
171
|
+
ref: ref,
|
|
172
|
+
style: sx(styles.thead, style),
|
|
173
|
+
...others,
|
|
174
|
+
children: children
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
export const Tbody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
178
|
+
const {
|
|
179
|
+
children,
|
|
180
|
+
style,
|
|
181
|
+
...others
|
|
182
|
+
} = props;
|
|
183
|
+
const childrenArray = React.Children.toArray(children);
|
|
184
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
185
|
+
ref: ref,
|
|
186
|
+
style: style,
|
|
187
|
+
...others,
|
|
188
|
+
children: childrenArray.map((child, index) => {
|
|
189
|
+
if (! /*#__PURE__*/React.isValidElement(child)) return child;
|
|
190
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
191
|
+
key: index,
|
|
192
|
+
__index: index
|
|
193
|
+
});
|
|
194
|
+
})
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
export const Tfoot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
198
|
+
const {
|
|
199
|
+
children,
|
|
200
|
+
style,
|
|
201
|
+
...others
|
|
202
|
+
} = props;
|
|
203
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
204
|
+
ref: ref,
|
|
205
|
+
style: style,
|
|
206
|
+
...others,
|
|
207
|
+
children: children
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
export const Tr = /*#__PURE__*/forwardRef((props, ref) => {
|
|
211
|
+
const {
|
|
212
|
+
children,
|
|
213
|
+
style,
|
|
214
|
+
__index,
|
|
215
|
+
...others
|
|
216
|
+
} = props;
|
|
217
|
+
const context = useTableContext();
|
|
218
|
+
const {
|
|
219
|
+
styles,
|
|
220
|
+
sx
|
|
221
|
+
} = useTableRowStyles({
|
|
222
|
+
striped: context?.striped ?? false,
|
|
223
|
+
highlightOnHover: context?.highlightOnHover ?? false,
|
|
224
|
+
isEven: (__index ?? 0) % 2 === 0
|
|
225
|
+
}, {
|
|
226
|
+
name: 'Tr'
|
|
227
|
+
});
|
|
228
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
229
|
+
ref: ref,
|
|
230
|
+
style: sx(styles.tr, style),
|
|
231
|
+
...others,
|
|
232
|
+
children: children
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
export const Th = /*#__PURE__*/forwardRef((props, ref) => {
|
|
236
|
+
const {
|
|
237
|
+
children,
|
|
238
|
+
style,
|
|
239
|
+
...others
|
|
240
|
+
} = props;
|
|
241
|
+
const context = useTableContext();
|
|
242
|
+
const {
|
|
243
|
+
styles,
|
|
244
|
+
sx
|
|
245
|
+
} = useTableCellStyles({
|
|
246
|
+
fontSize: context?.fontSize ?? 'sm',
|
|
247
|
+
verticalSpacing: context?.verticalSpacing ?? 'xs',
|
|
248
|
+
horizontalSpacing: context?.horizontalSpacing ?? 'xs',
|
|
249
|
+
withColumnBorders: context?.withColumnBorders ?? false,
|
|
250
|
+
isHeader: true
|
|
251
|
+
}, {
|
|
252
|
+
name: 'Th'
|
|
253
|
+
});
|
|
254
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
255
|
+
ref: ref,
|
|
256
|
+
style: sx(styles.cell, style),
|
|
257
|
+
...others,
|
|
258
|
+
children: typeof children === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
259
|
+
style: styles.cell,
|
|
260
|
+
children: children
|
|
261
|
+
}) : children
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
export const Td = /*#__PURE__*/forwardRef((props, ref) => {
|
|
265
|
+
const {
|
|
266
|
+
children,
|
|
267
|
+
style,
|
|
268
|
+
...others
|
|
269
|
+
} = props;
|
|
270
|
+
const context = useTableContext();
|
|
271
|
+
const {
|
|
272
|
+
styles,
|
|
273
|
+
sx
|
|
274
|
+
} = useTableCellStyles({
|
|
275
|
+
fontSize: context?.fontSize ?? 'sm',
|
|
276
|
+
verticalSpacing: context?.verticalSpacing ?? 'xs',
|
|
277
|
+
horizontalSpacing: context?.horizontalSpacing ?? 'xs',
|
|
278
|
+
withColumnBorders: context?.withColumnBorders ?? false,
|
|
279
|
+
isHeader: false
|
|
280
|
+
}, {
|
|
281
|
+
name: 'Td'
|
|
282
|
+
});
|
|
283
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
284
|
+
ref: ref,
|
|
285
|
+
style: sx(styles.cell, style),
|
|
286
|
+
...others,
|
|
287
|
+
children: typeof children === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
288
|
+
style: styles.cell,
|
|
289
|
+
children: children
|
|
290
|
+
}) : children
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
Table.displayName = 'Table';
|
|
294
|
+
Thead.displayName = 'Table.Thead';
|
|
295
|
+
Tbody.displayName = 'Table.Tbody';
|
|
296
|
+
Tfoot.displayName = 'Table.Tfoot';
|
|
297
|
+
Tr.displayName = 'Table.Tr';
|
|
298
|
+
Th.displayName = 'Table.Th';
|
|
299
|
+
Td.displayName = 'Table.Td';
|
|
300
|
+
|
|
301
|
+
// Attach sub-components
|
|
302
|
+
Table.Thead = Thead;
|
|
303
|
+
Table.Tbody = Tbody;
|
|
304
|
+
Table.Tfoot = Tfoot;
|
|
305
|
+
Table.Tr = Tr;
|
|
306
|
+
Table.Th = Th;
|
|
307
|
+
Table.Td = Td;
|
|
308
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","createContext","useContext","ScrollView","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","TableContext","useTableContext","context","fontSizes","xs","sm","md","lg","xl","useTableStyles","theme","withBorder","captionSide","wrapper","flex","root","width","borderCollapse","borderWidth","borderColor","colorScheme","colors","dark","gray","caption","fontSize","color","paddingVertical","spacing","textAlign","order","useTableHeadStyles","thead","borderBottomWidth","borderBottomColor","useTableRowStyles","striped","isEven","tr","backgroundColor","useTableCellStyles","verticalSpacing","horizontalSpacing","withColumnBorders","isHeader","getVerticalPadding","getHorizontalPadding","cell","paddingHorizontal","white","black","borderRightWidth","borderRightColor","fontWeight","defaultProps","highlightOnHover","Table","props","ref","children","_highlightOnHover","style","others","styles","sx","name","Provider","value","horizontal","showsHorizontalScrollIndicator","Thead","Tbody","childrenArray","Children","toArray","map","child","index","isValidElement","cloneElement","key","__index","Tfoot","Tr","Th","Td","displayName"],"sourceRoot":"../../../../src","sources":["components/Table/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,aAAa,EAAEC,UAAU,QAAQ,OAAO;AACpE,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YA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qB,IAAI,EAAE;EAAK,CACf,CAAQ;EAER,oBACEpE,IAAA,CAACN,OAAO;IAACmE,GAAG,EAAEA,GAAI;IAACG,KAAK,EAAEG,EAAE,CAACD,MAAM,CAAChB,IAAI,EAAEc,KAAK,CAAE;IAAA,GAAKC,MAAM;IAAAH,QAAA,EACzD,OAAOA,QAAQ,KAAK,QAAQ,gBAAG9D,IAAA,CAACL,IAAI;MAACqE,KAAK,EAAEE,MAAM,CAAChB,IAAK;MAAAY,QAAA,EAAEA;IAAQ,CAAO,CAAC,GAAGA;EAAQ,CAC/E,CAAC;AAEd,CAAC,CAAC;AAEFH,KAAK,CAAC8B,WAAW,GAAG,OAAO;AAC3BhB,KAAK,CAACgB,WAAW,GAAG,aAAa;AACjCf,KAAK,CAACe,WAAW,GAAG,aAAa;AACjCJ,KAAK,CAACI,WAAW,GAAG,aAAa;AACjCH,EAAE,CAACG,WAAW,GAAG,UAAU;AAC3BF,EAAE,CAACE,WAAW,GAAG,UAAU;AAC3BD,EAAE,CAACC,WAAW,GAAG,UAAU;;AAE3B;AACC9B,KAAK,CAASc,KAAK,GAAGA,KAAK;AAC3Bd,KAAK,CAASe,KAAK,GAAGA,KAAK;AAC3Bf,KAAK,CAAS0B,KAAK,GAAGA,KAAK;AAC3B1B,KAAK,CAAS2B,EAAE,GAAGA,EAAE;AACrB3B,KAAK,CAAS4B,EAAE,GAAGA,EAAE;AACrB5B,KAAK,CAAS6B,EAAE,GAAGA,EAAE","ignoreList":[]}
|
|
@@ -22,6 +22,8 @@ export const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22
22
|
questrial = false,
|
|
23
23
|
semiBold = false,
|
|
24
24
|
fontSize,
|
|
25
|
+
weight,
|
|
26
|
+
align,
|
|
25
27
|
...otherProps
|
|
26
28
|
} = props;
|
|
27
29
|
const {
|
|
@@ -37,9 +39,12 @@ export const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
37
39
|
ref: ref,
|
|
38
40
|
style: [{
|
|
39
41
|
fontFamily: semiBold ? fontFamilySemiBold : bold ? fontFamilyBold : questrial ? 'Questrial' : fontFamily,
|
|
40
|
-
fontWeight: bold ? '900' : '300',
|
|
42
|
+
fontWeight: weight || (bold ? '900' : '300'),
|
|
41
43
|
fontSize: fontSize ? fontSize : get(fontSizes, size, 16),
|
|
42
|
-
color: white ? 'white' : color ? propToColor(color, colors, primaryShade) : light.text
|
|
44
|
+
color: white ? 'white' : color ? propToColor(color, colors, primaryShade) : light.text,
|
|
45
|
+
...(align ? {
|
|
46
|
+
textAlign: align
|
|
47
|
+
} : {})
|
|
43
48
|
}, style],
|
|
44
49
|
...otherProps
|
|
45
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTheme","get","forwardRef","Text","DefaultText","jsx","_jsx","propToColor","color","colors","primaryShade","colorExistOnPalette","props","ref","style","white","size","bold","questrial","semiBold","fontSize","otherProps","fontFamily","fontFamilyBold","fontFamilySemiBold","fontSizes","light","fontWeight","text"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,+BAA4B;AAErD,SAASC,GAAG,QAAQ,WAAW;AAC/B,SAASC,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,IAAIC,WAAW,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["useTheme","get","forwardRef","Text","DefaultText","jsx","_jsx","propToColor","color","colors","primaryShade","colorExistOnPalette","props","ref","style","white","size","bold","questrial","semiBold","fontSize","weight","align","otherProps","fontFamily","fontFamilyBold","fontFamilySemiBold","fontSizes","light","fontWeight","text","textAlign"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,+BAA4B;AAErD,SAASC,GAAG,QAAQ,WAAW;AAC/B,SAASC,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,IAAIC,WAAW,QAAQ,cAAc;AA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K,GAAG;QAAES,SAAS,EAAET;MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC,EACDR,KAAK,CACL;IAAA,GACES;EAAU,CACf,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles, getSize } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { INPUT_SIZES } from "../Input/index.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const useStyles = createStyles((theme, {
|
|
13
|
+
radius,
|
|
14
|
+
invalid,
|
|
15
|
+
withIcon,
|
|
16
|
+
withRightSection,
|
|
17
|
+
rightSectionWidth
|
|
18
|
+
}, {
|
|
19
|
+
variant,
|
|
20
|
+
size
|
|
21
|
+
}) => {
|
|
22
|
+
const getVariantStyles = () => {
|
|
23
|
+
if (variant === 'filled') {
|
|
24
|
+
return {
|
|
25
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
26
|
+
borderWidth: 1,
|
|
27
|
+
borderColor: 'transparent'
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
if (variant === 'unstyled') {
|
|
31
|
+
return {
|
|
32
|
+
backgroundColor: 'transparent',
|
|
33
|
+
borderWidth: 0,
|
|
34
|
+
paddingHorizontal: 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// default variant
|
|
39
|
+
return {
|
|
40
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
41
|
+
borderWidth: 1,
|
|
42
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4]
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
const sizeValue = INPUT_SIZES[size] || INPUT_SIZES.md;
|
|
46
|
+
return {
|
|
47
|
+
wrapper: {
|
|
48
|
+
width: '100%'
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
fontSize: theme.fontSizes.sm,
|
|
52
|
+
fontWeight: '500',
|
|
53
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
54
|
+
marginBottom: theme.spacing.xs / 2
|
|
55
|
+
},
|
|
56
|
+
required: {
|
|
57
|
+
color: (theme.colors.red || [])[6]
|
|
58
|
+
},
|
|
59
|
+
description: {
|
|
60
|
+
fontSize: theme.fontSizes.xs,
|
|
61
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
62
|
+
marginTop: theme.spacing.xs / 2,
|
|
63
|
+
marginBottom: theme.spacing.xs / 2
|
|
64
|
+
},
|
|
65
|
+
error: {
|
|
66
|
+
fontSize: theme.fontSizes.xs,
|
|
67
|
+
color: (theme.colors.red || [])[6],
|
|
68
|
+
marginTop: theme.spacing.xs / 2
|
|
69
|
+
},
|
|
70
|
+
inputWrapper: {
|
|
71
|
+
position: 'relative'
|
|
72
|
+
},
|
|
73
|
+
input: {
|
|
74
|
+
...theme.fn.fontStyles(),
|
|
75
|
+
height: sizeValue,
|
|
76
|
+
fontSize: getSize({
|
|
77
|
+
size,
|
|
78
|
+
sizes: theme.fontSizes
|
|
79
|
+
}),
|
|
80
|
+
paddingHorizontal: variant === 'unstyled' ? 0 : rem(12),
|
|
81
|
+
paddingLeft: withIcon ? sizeValue : variant === 'unstyled' ? 0 : rem(12),
|
|
82
|
+
paddingRight: withRightSection ? rem(rightSectionWidth || sizeValue) : variant === 'unstyled' ? 0 : rem(12),
|
|
83
|
+
borderRadius: theme.fn.radius(radius),
|
|
84
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
85
|
+
...getVariantStyles(),
|
|
86
|
+
...(invalid && {
|
|
87
|
+
borderColor: (theme.colors.red || [])[6],
|
|
88
|
+
color: (theme.colors.red || [])[6]
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
icon: {
|
|
92
|
+
position: 'absolute',
|
|
93
|
+
left: 0,
|
|
94
|
+
top: 0,
|
|
95
|
+
bottom: 0,
|
|
96
|
+
width: sizeValue,
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
zIndex: 1
|
|
100
|
+
},
|
|
101
|
+
rightSectionContainer: {
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
right: 0,
|
|
104
|
+
top: 0,
|
|
105
|
+
bottom: 0,
|
|
106
|
+
width: rem(rightSectionWidth || sizeValue),
|
|
107
|
+
justifyContent: 'center',
|
|
108
|
+
alignItems: 'center'
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
const defaultProps = {
|
|
113
|
+
size: 'sm',
|
|
114
|
+
radius: 'sm',
|
|
115
|
+
variant: 'default',
|
|
116
|
+
required: false
|
|
117
|
+
};
|
|
118
|
+
export const TextInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
119
|
+
const {
|
|
120
|
+
label,
|
|
121
|
+
description,
|
|
122
|
+
error,
|
|
123
|
+
size,
|
|
124
|
+
radius,
|
|
125
|
+
icon,
|
|
126
|
+
rightSection,
|
|
127
|
+
rightSectionWidth,
|
|
128
|
+
required,
|
|
129
|
+
variant,
|
|
130
|
+
style,
|
|
131
|
+
wrapperStyle,
|
|
132
|
+
...others
|
|
133
|
+
} = useComponentDefaultProps('TextInput', defaultProps, props);
|
|
134
|
+
const {
|
|
135
|
+
styles,
|
|
136
|
+
sx
|
|
137
|
+
} = useStyles({
|
|
138
|
+
radius,
|
|
139
|
+
invalid: !!error,
|
|
140
|
+
withIcon: !!icon,
|
|
141
|
+
withRightSection: !!rightSection,
|
|
142
|
+
rightSectionWidth
|
|
143
|
+
}, {
|
|
144
|
+
name: 'TextInput',
|
|
145
|
+
variant,
|
|
146
|
+
size
|
|
147
|
+
});
|
|
148
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
149
|
+
style: sx(styles.wrapper, wrapperStyle),
|
|
150
|
+
children: [label && /*#__PURE__*/_jsxs(Text, {
|
|
151
|
+
style: styles.label,
|
|
152
|
+
children: [label, required && /*#__PURE__*/_jsx(Text, {
|
|
153
|
+
style: styles.required,
|
|
154
|
+
children: " *"
|
|
155
|
+
})]
|
|
156
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
157
|
+
style: styles.description,
|
|
158
|
+
children: description
|
|
159
|
+
}), /*#__PURE__*/_jsxs(BoxView, {
|
|
160
|
+
style: styles.inputWrapper,
|
|
161
|
+
children: [icon && /*#__PURE__*/_jsx(BoxView, {
|
|
162
|
+
style: styles.icon,
|
|
163
|
+
children: icon
|
|
164
|
+
}), /*#__PURE__*/_jsx(RNTextInput, {
|
|
165
|
+
ref: ref,
|
|
166
|
+
style: sx(styles.input, style),
|
|
167
|
+
...others
|
|
168
|
+
}), rightSection && /*#__PURE__*/_jsx(BoxView, {
|
|
169
|
+
style: styles.rightSectionContainer,
|
|
170
|
+
children: rightSection
|
|
171
|
+
})]
|
|
172
|
+
}), error && /*#__PURE__*/_jsx(Text, {
|
|
173
|
+
style: styles.error,
|
|
174
|
+
children: error
|
|
175
|
+
})]
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
TextInput.displayName = 'TextInput';
|
|
179
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","TextInput","RNTextInput","BoxView","Text","useComponentDefaultProps","createStyles","getSize","rem","INPUT_SIZES","jsx","_jsx","jsxs","_jsxs","useStyles","theme","radius","invalid","withIcon","withRightSection","rightSectionWidth","variant","size","getVariantStyles","backgroundColor","colorScheme","colors","dark","gray","borderWidth","borderColor","paddingHorizontal","white","sizeValue","md","wrapper","width","label","fontSize","fontSizes","sm","fontWeight","color","black","marginBottom","spacing","xs","required","red","description","marginTop","error","inputWrapper","position","input","fn","fontStyles","height","sizes","paddingLeft","paddingRight","borderRadius","icon","left","top","bottom","justifyContent","alignItems","zIndex","rightSectionContainer","right","defaultProps","props","ref","rightSection","style","wrapperStyle","others","styles","sx","name","children","displayName"],"sourceRoot":"../../../../src","sources":["components/TextInput/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,SAAS,IAAIC,WAAW,QAAiD,cAAc;AAChG,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAM9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AACnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAwCvC,MAAMC,SAAS,GAAGR,YAAY,CAC5B,CACES,KAAK,EACL;EACEC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,gBAAgB;EAChBC;AAOF,CAAC,EACD;EAAEC,OAAO;EAAEC;AAAK,CAAC,KACd;EACH,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;IAC7B,IAAIF,OAAO,KAAK,QAAQ,EAAE;MACxB,OAAO;QACLG,eAAe,EAAET,KAAK,CAACU,WAAW,KAAK,MAAM,GAAG,CAACV,KAAK,CAACW,MAAM,CAACC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,CAACZ,KAAK,CAACW,MAAM,CAACE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3GC,WAAW,EA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AAK,EAAEqB,KAAK,CAAE;QAAA,GAC3BE;MAAM,CACX,CAAC,EAEDH,YAAY,iBACX/D,IAAA,CAACR,OAAO;QAACwE,KAAK,EAAEG,MAAM,CAACT,qBAAsB;QAAAY,QAAA,EAAEP;MAAY,CAAU,CACtE;IAAA,CACM,CAAC,EAETvB,KAAK,iBAAIxC,IAAA,CAACP,IAAI;MAACuE,KAAK,EAAEG,MAAM,CAAC3B,KAAM;MAAA8B,QAAA,EAAE9B;IAAK,CAAO,CAAC;EAAA,CAC5C,CAAC;AAEd,CAAC,CAAC;AAEFlD,SAAS,CAACiF,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useState } from 'react';
|
|
4
|
+
import { TextInput } from "../TextInput/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const defaultProps = {
|
|
7
|
+
minRows: 3,
|
|
8
|
+
autosize: false
|
|
9
|
+
};
|
|
10
|
+
export const Textarea = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
minRows,
|
|
13
|
+
maxRows,
|
|
14
|
+
autosize,
|
|
15
|
+
style,
|
|
16
|
+
...others
|
|
17
|
+
} = {
|
|
18
|
+
...defaultProps,
|
|
19
|
+
...props
|
|
20
|
+
};
|
|
21
|
+
const [contentHeight, setContentHeight] = useState(undefined);
|
|
22
|
+
const handleContentSizeChange = event => {
|
|
23
|
+
if (autosize) {
|
|
24
|
+
const height = event.nativeEvent.contentSize.height;
|
|
25
|
+
setContentHeight(height);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Calculate height based on rows
|
|
30
|
+
const lineHeight = 20; // approximate line height
|
|
31
|
+
const paddingVertical = 12;
|
|
32
|
+
const minHeight = minRows ? minRows * lineHeight + paddingVertical * 2 : undefined;
|
|
33
|
+
const maxHeight = maxRows ? maxRows * lineHeight + paddingVertical * 2 : undefined;
|
|
34
|
+
const textareaStyle = {
|
|
35
|
+
height: autosize ? contentHeight : minHeight,
|
|
36
|
+
minHeight: minHeight,
|
|
37
|
+
maxHeight: maxHeight,
|
|
38
|
+
textAlignVertical: 'top'
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_jsx(TextInput, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
multiline: true,
|
|
43
|
+
numberOfLines: minRows,
|
|
44
|
+
onContentSizeChange: handleContentSizeChange,
|
|
45
|
+
style: [textareaStyle, style],
|
|
46
|
+
...others
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
Textarea.displayName = 'Textarea';
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useState","TextInput","jsx","_jsx","defaultProps","minRows","autosize","Textarea","props","ref","maxRows","style","others","contentHeight","setContentHeight","undefined","handleContentSizeChange","event","height","nativeEvent","contentSize","lineHeight","paddingVertical","minHeight","maxHeight","textareaStyle","textAlignVertical","multiline","numberOfLines","onContentSizeChange","displayName"],"sourceRoot":"../../../../src","sources":["components/Textarea/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAE5C,SAASC,SAAS,QAA6B,uBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAa9D,MAAMC,YAAoC,GAAG;EAC3CC,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,MAAMC,QAAQ,gBAAGR,UAAU,CAA6B,CAACS,KAAK,EAAEC,GAAG,KAAK;EAC7E,MAAM;IAAEJ,OAAO;IAAEK,OAAO;IAAEJ,QAAQ;IAAEK,KAAK;IAAE,GAAGC;EAAM,CAAC,GAAG;IACtD,GAAGR,YAAY;IACf,GAAGI;EACL,CAAC;EAED,MAAM,CAACK,aAAa,EAAEC,gBAAgB,CAAC,GAAGd,QA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