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,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useEffect, useRef } from 'react';
|
|
4
|
+
import { TouchableOpacity, Animated } from 'react-native';
|
|
5
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
6
|
+
import { createStyles } from "../../theme/index.js";
|
|
7
|
+
import { getSize } from "../../theme/index.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const sizes = {
|
|
10
|
+
xs: 12,
|
|
11
|
+
sm: 18,
|
|
12
|
+
md: 24,
|
|
13
|
+
lg: 34,
|
|
14
|
+
xl: 42
|
|
15
|
+
};
|
|
16
|
+
const useStyles = createStyles((_theme, {
|
|
17
|
+
size,
|
|
18
|
+
color,
|
|
19
|
+
disabled
|
|
20
|
+
}) => {
|
|
21
|
+
const burgerSize = typeof size === 'number' ? size : getSize({
|
|
22
|
+
size,
|
|
23
|
+
sizes
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
root: {
|
|
27
|
+
width: burgerSize + 8,
|
|
28
|
+
height: burgerSize,
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
opacity: disabled ? 0.4 : 1
|
|
32
|
+
},
|
|
33
|
+
burger: {
|
|
34
|
+
width: burgerSize,
|
|
35
|
+
height: burgerSize,
|
|
36
|
+
justifyContent: 'space-between',
|
|
37
|
+
position: 'relative'
|
|
38
|
+
},
|
|
39
|
+
line: {
|
|
40
|
+
height: Math.max(1, Math.round(burgerSize / 12)),
|
|
41
|
+
backgroundColor: color,
|
|
42
|
+
borderRadius: burgerSize / 24
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
const defaultProps = {
|
|
47
|
+
size: 'md',
|
|
48
|
+
transitionDuration: 300,
|
|
49
|
+
accessibilityLabel: 'Toggle navigation',
|
|
50
|
+
disabled: false
|
|
51
|
+
};
|
|
52
|
+
export const Burger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
53
|
+
const {
|
|
54
|
+
opened,
|
|
55
|
+
onPress,
|
|
56
|
+
color,
|
|
57
|
+
size = 'md',
|
|
58
|
+
transitionDuration,
|
|
59
|
+
accessibilityLabel,
|
|
60
|
+
style,
|
|
61
|
+
disabled,
|
|
62
|
+
...others
|
|
63
|
+
} = useComponentDefaultProps('Burger', defaultProps, props);
|
|
64
|
+
const topLineRotation = useRef(new Animated.Value(0)).current;
|
|
65
|
+
const middleLineOpacity = useRef(new Animated.Value(1)).current;
|
|
66
|
+
const bottomLineRotation = useRef(new Animated.Value(0)).current;
|
|
67
|
+
const topLineTranslateY = useRef(new Animated.Value(0)).current;
|
|
68
|
+
const bottomLineTranslateY = useRef(new Animated.Value(0)).current;
|
|
69
|
+
const burgerSize = typeof size === 'number' ? size : getSize({
|
|
70
|
+
size,
|
|
71
|
+
sizes
|
|
72
|
+
});
|
|
73
|
+
const lineHeight = Math.max(1, Math.round(burgerSize / 12));
|
|
74
|
+
const spacing = (burgerSize - lineHeight * 3) / 2;
|
|
75
|
+
const {
|
|
76
|
+
styles,
|
|
77
|
+
sx
|
|
78
|
+
} = useStyles({
|
|
79
|
+
size,
|
|
80
|
+
color: color || '#000',
|
|
81
|
+
disabled: disabled || false
|
|
82
|
+
}, {
|
|
83
|
+
name: 'Burger'
|
|
84
|
+
});
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
const config = {
|
|
87
|
+
duration: transitionDuration,
|
|
88
|
+
useNativeDriver: true
|
|
89
|
+
};
|
|
90
|
+
if (opened) {
|
|
91
|
+
Animated.parallel([Animated.timing(topLineRotation, {
|
|
92
|
+
toValue: 1,
|
|
93
|
+
...config
|
|
94
|
+
}), Animated.timing(middleLineOpacity, {
|
|
95
|
+
toValue: 0,
|
|
96
|
+
...config
|
|
97
|
+
}), Animated.timing(bottomLineRotation, {
|
|
98
|
+
toValue: 1,
|
|
99
|
+
...config
|
|
100
|
+
}), Animated.timing(topLineTranslateY, {
|
|
101
|
+
toValue: 1,
|
|
102
|
+
...config
|
|
103
|
+
}), Animated.timing(bottomLineTranslateY, {
|
|
104
|
+
toValue: 1,
|
|
105
|
+
...config
|
|
106
|
+
})]).start();
|
|
107
|
+
} else {
|
|
108
|
+
Animated.parallel([Animated.timing(topLineRotation, {
|
|
109
|
+
toValue: 0,
|
|
110
|
+
...config
|
|
111
|
+
}), Animated.timing(middleLineOpacity, {
|
|
112
|
+
toValue: 1,
|
|
113
|
+
...config
|
|
114
|
+
}), Animated.timing(bottomLineRotation, {
|
|
115
|
+
toValue: 0,
|
|
116
|
+
...config
|
|
117
|
+
}), Animated.timing(topLineTranslateY, {
|
|
118
|
+
toValue: 0,
|
|
119
|
+
...config
|
|
120
|
+
}), Animated.timing(bottomLineTranslateY, {
|
|
121
|
+
toValue: 0,
|
|
122
|
+
...config
|
|
123
|
+
})]).start();
|
|
124
|
+
}
|
|
125
|
+
}, [opened, transitionDuration, topLineRotation, middleLineOpacity, bottomLineRotation, topLineTranslateY, bottomLineTranslateY]);
|
|
126
|
+
const topLineStyle = {
|
|
127
|
+
transform: [{
|
|
128
|
+
translateY: topLineTranslateY.interpolate({
|
|
129
|
+
inputRange: [0, 1],
|
|
130
|
+
outputRange: [0, spacing + lineHeight]
|
|
131
|
+
})
|
|
132
|
+
}, {
|
|
133
|
+
rotate: topLineRotation.interpolate({
|
|
134
|
+
inputRange: [0, 1],
|
|
135
|
+
outputRange: ['0deg', '45deg']
|
|
136
|
+
})
|
|
137
|
+
}]
|
|
138
|
+
};
|
|
139
|
+
const bottomLineStyle = {
|
|
140
|
+
transform: [{
|
|
141
|
+
translateY: bottomLineTranslateY.interpolate({
|
|
142
|
+
inputRange: [0, 1],
|
|
143
|
+
outputRange: [0, -(spacing + lineHeight)]
|
|
144
|
+
})
|
|
145
|
+
}, {
|
|
146
|
+
rotate: bottomLineRotation.interpolate({
|
|
147
|
+
inputRange: [0, 1],
|
|
148
|
+
outputRange: ['0deg', '-45deg']
|
|
149
|
+
})
|
|
150
|
+
}]
|
|
151
|
+
};
|
|
152
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
153
|
+
ref: ref,
|
|
154
|
+
onPress: onPress,
|
|
155
|
+
disabled: disabled,
|
|
156
|
+
activeOpacity: 0.6,
|
|
157
|
+
accessible: true,
|
|
158
|
+
accessibilityLabel: accessibilityLabel,
|
|
159
|
+
accessibilityRole: "button",
|
|
160
|
+
accessibilityState: {
|
|
161
|
+
expanded: opened
|
|
162
|
+
},
|
|
163
|
+
style: sx(styles.root, style),
|
|
164
|
+
...others,
|
|
165
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
166
|
+
style: styles.burger,
|
|
167
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
168
|
+
style: [styles.line, topLineStyle]
|
|
169
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
170
|
+
style: [styles.line, {
|
|
171
|
+
opacity: middleLineOpacity
|
|
172
|
+
}]
|
|
173
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
174
|
+
style: [styles.line, bottomLineStyle]
|
|
175
|
+
})]
|
|
176
|
+
})
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
Burger.displayName = 'Burger';
|
|
180
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useEffect","useRef","TouchableOpacity","Animated","useComponentDefaultProps","createStyles","getSize","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","useStyles","_theme","size","color","disabled","burgerSize","root","width","height","justifyContent","alignItems","opacity","burger","position","line","Math","max","round","backgroundColor","borderRadius","defaultProps","transitionDuration","accessibilityLabel","Burger","props","ref","opened","onPress","style","others","topLineRotation","Value","current","middleLineOpacity","bottomLineRotation","topLineTranslateY","bottomLineTranslateY","lineHeight","spacing","styles","sx","name","config","duration","useNativeDriver","parallel","timing","toValue","start","topLineStyle","transform","translateY","interpolate","inputRange","outputRange","rotate","bottomLineStyle","activeOpacity","accessible","accessibilityRole","accessibilityState","expanded","children","View","displayName"],"sourceRoot":"../../../../src","sources":["components/Burger/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACrD,SAASC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;AAEzD,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,OAAO,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA4BtC,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,SAAS,GAAGZ,YAAY,CAC5B,CACEa,MAAM,EACN;EACEC,IAAI;EACJC,KAAK;EACLC;AAKF,CAAC,KACE;EACH,MAAMC,UAAU,GAAG,OAAOH,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAIb,OAAO,CAAC;IAAEa,IAAI;IAAER;EAAM,CAAC,CAAuB;EAEpG,OAAO;IACLY,IAAI,EAAE;MACJC,KAAK,EAAEF,UAAU,GAAG,CAAC;MACrBG,MAAM,EAAEH,UAAU;MAClBI,cAAc,EAAE,QAAiB;MACjCC,UAAU,EAAE,QAAiB;MAC7BC,OAAO,EAAEP,QAAQ,GAAG,GAAG,GAAG;IAC5B,CAAC;IACDQ,MAAM,EAAE;MACNL,KAAK,EAAEF,UAAU;MACjBG,MAAM,EAAEH,UAAU;MAClBI,cAAc,EAAE,eAAwB;MACxCI,QAAQ,EAAE;IACZ,CAAC;IACDC,IAAI,EAAE;MACJN,MAAM,EAAEO,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,KAAK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":[]}
|
|
@@ -117,16 +117,38 @@ const getWidthStyles = fullWidth => ({
|
|
|
117
117
|
// };
|
|
118
118
|
// }
|
|
119
119
|
|
|
120
|
+
function getVariantStyles({
|
|
121
|
+
variant,
|
|
122
|
+
theme,
|
|
123
|
+
color,
|
|
124
|
+
gradient
|
|
125
|
+
}) {
|
|
126
|
+
if (!BUTTON_VARIANTS.includes(variant)) {
|
|
127
|
+
return {};
|
|
128
|
+
}
|
|
129
|
+
const colors = theme.fn.variant({
|
|
130
|
+
color,
|
|
131
|
+
variant,
|
|
132
|
+
gradient
|
|
133
|
+
});
|
|
134
|
+
return {
|
|
135
|
+
backgroundColor: colors.background,
|
|
136
|
+
color: colors.color,
|
|
137
|
+
borderWidth: 1,
|
|
138
|
+
borderStyle: 'solid',
|
|
139
|
+
borderColor: colors.border
|
|
140
|
+
};
|
|
141
|
+
}
|
|
120
142
|
const useStyles = createStyles((theme, {
|
|
121
143
|
radius,
|
|
122
144
|
fullWidth,
|
|
123
145
|
compact,
|
|
124
146
|
withLeftIcon,
|
|
125
|
-
withRightIcon
|
|
126
|
-
|
|
127
|
-
|
|
147
|
+
withRightIcon,
|
|
148
|
+
color,
|
|
149
|
+
gradient
|
|
128
150
|
}, {
|
|
129
|
-
|
|
151
|
+
variant,
|
|
130
152
|
size
|
|
131
153
|
}) => {
|
|
132
154
|
return {
|
|
@@ -140,6 +162,12 @@ const useStyles = createStyles((theme, {
|
|
|
140
162
|
...theme.fn.fontStyles(),
|
|
141
163
|
...theme.fn.focusStyles(),
|
|
142
164
|
...getWidthStyles(fullWidth),
|
|
165
|
+
...getVariantStyles({
|
|
166
|
+
variant,
|
|
167
|
+
theme,
|
|
168
|
+
color,
|
|
169
|
+
gradient
|
|
170
|
+
}),
|
|
143
171
|
'borderRadius': theme.fn.radius(radius),
|
|
144
172
|
'fontWeight': 600,
|
|
145
173
|
'position': 'relative',
|
|
@@ -150,19 +178,11 @@ const useStyles = createStyles((theme, {
|
|
|
150
178
|
}),
|
|
151
179
|
'userSelect': 'none',
|
|
152
180
|
'cursor': 'pointer',
|
|
153
|
-
// ...getVariantStyles({ variant, theme, color, gradient }),
|
|
154
|
-
|
|
155
181
|
'&:active': theme.activeStyles,
|
|
156
182
|
'&:disabled, &[data-disabled]': {
|
|
157
183
|
'borderColor': 'transparent',
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
// ? theme.colors.dark[4]
|
|
161
|
-
// : theme.colors.gray[2],
|
|
162
|
-
// 'color':
|
|
163
|
-
// theme.colorScheme === 'dark'
|
|
164
|
-
// ? theme.colors.dark[6]
|
|
165
|
-
// : theme.colors.gray[5],
|
|
184
|
+
'backgroundColor': theme.colors.gray?.[2] || '#e9ecef',
|
|
185
|
+
'color': theme.colors.gray?.[5] || '#adb5bd',
|
|
166
186
|
'cursor': 'not-allowed',
|
|
167
187
|
'backgroundImage': 'none',
|
|
168
188
|
'pointerEvents': 'none',
|
|
@@ -175,10 +195,7 @@ const useStyles = createStyles((theme, {
|
|
|
175
195
|
'&::before': {
|
|
176
196
|
content: '""',
|
|
177
197
|
...theme.fn.cover(rem(-1)),
|
|
178
|
-
|
|
179
|
-
// theme.colorScheme === 'dark'
|
|
180
|
-
// ? theme.fn.rgba(theme.colors.dark[7], 0.5)
|
|
181
|
-
// : 'rgba(255, 255, 255, .5)',
|
|
198
|
+
backgroundColor: 'rgba(255, 255, 255, .5)',
|
|
182
199
|
borderRadius: theme.fn.radius(radius),
|
|
183
200
|
cursor: 'not-allowed'
|
|
184
201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createStyles","getSize","rem","INPUT_SIZES","BUTTON_VARIANTS","sizes","height","xs","paddingLeft","paddingRight","sm","md","lg","xl","getSizeStyles","size","withLeftIcon","withRightIcon","_sizes","getWidthStyles","fullWidth","display","width","
|
|
1
|
+
{"version":3,"names":["createStyles","getSize","rem","INPUT_SIZES","BUTTON_VARIANTS","sizes","height","xs","paddingLeft","paddingRight","sm","md","lg","xl","getSizeStyles","size","withLeftIcon","withRightIcon","_sizes","getWidthStyles","fullWidth","display","width","getVariantStyles","variant","theme","color","gradient","includes","colors","fn","backgroundColor","background","borderWidth","borderStyle","borderColor","border","useStyles","radius","compact","root","fontStyles","focusStyles","fontSizes","activeStyles","gray","transform","content","cover","borderRadius","cursor","icon","alignItems","leftIcon","marginRight","spacing","rightIcon","marginLeft","centerLoader","position","left","opacity","inner","justifyContent","overflow","label","whiteSpace"],"sourceRoot":"../../../../src","sources":["components/Button/Button.styles.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AAEnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAEtC,OAAO,MAAMC,eAAe,GAAG,CAC7B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,CACX;AAYD,OAAO,MAAMC,KAAK,GAAG;EACnB,IAAI,EAAE;IAAEC,MAAM,EAAEH,WAAW,CAACI,EAAE;IAAEC,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACO,EAAE;IAAEF,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACQ,EAAE;IAAEH,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACS,EAAE;IAAEJ,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM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,IAAI,EAAE;MACJ9B,OAAO,EAAE,MAAM;MACf+B,UAAU,EAAE;IACd,CAAC;IAEDC,QAAQ,EAAE;MACRC,WAAW,EAAE7B,KAAK,CAAC8B,OAAO,CAAChD;IAC7B,CAAC;IAEDiD,SAAS,EAAE;MACTC,UAAU,EAAEhC,KAAK,CAAC8B,OAAO,CAAChD;IAC5B,CAAC;IAEDmD,YAAY,EAAE;MACZC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAE,KAAK;MACXd,SAAS,EAAE,kBAAkB;MAC7Be,OAAO,EAAE;IACX,CAAC;IAEDC,KAAK,EAAE;MACLzC,OAAO,EAAE,MAAM;MACf+B,UAAU,EAAE,QAAQ;MACpBW,cAAc,EAAE,QAAQ;MACxBzD,MAAM,EAAE,MAAM;MACd0D,QAAQ,EAAE;IACZ,CAAC;IAEDC,KAAK,EAAE;MACLC,UAAU,EAAE,QAAQ;MACpB5D,MAAM,EAAE,MAAM;MACd0D,QAAQ,EAAE,QAAQ;MAClB3C,OAAO,EAAE,MAAM;MACf+B,UAAU,EAAE;IACd;EACF,CAAC;AACH,CACF,CAAC;AACD,eAAef,SAAS","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","UnstyledButton","ActivityIndicator","useComponentDefaultProps","useStyles","BoxView","jsx","_jsx","jsxs","_jsxs","defaultProps","size","type","variant","loaderPosition","_Button","props","ref","color","disabled","children","leftIcon","rightIcon","fullWidth","radius","uppercase","compact","loading","loaderProps","gradient","style","others","styles","sx","withLeftIcon","withRightIcon","name","loader","root","undefined","inner","icon","centerLoader","label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,4BAAmB;AAUlD,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,OAAOC,SAAS,MAAM,oBAAiB;AACvC,SAASC,OAAO,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA0DrC,MAAMC,YAAkC,GAAG;EACzCC,IAAI,EAAE,IAAI;EACVC,IAAI,EAAE,QAAQ;EACdC,OAAO,EAAE,QAAQ;EACjBC,cAAc,EAAE;AAClB,CAAC;AAED,OAAO,MAAMC,OAAO,gBAAGf,UAAU,CAC/B,CAACgB,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IACJ;IACAN,IAAI;IACJO,KAAK;IACLN,IAAI;IACJO,QAAQ;IACRC,QAAQ;IACRC,QAAQ;IACRC,SAAS;IACTC,SAAS;IACTV,OAAO;IACPW,MAAM;IACNC,SAAS;IACTC,OAAO;IACPC,OAAO;IACPb,cAAc;IACdc,WAAW;IACXC,QAAQ;IACR;IACA;IACA;IACAC,KAAK;IACL,GAAGC;EACL,CAAC,GAAG5B,wBAAwB,CAAC,QAAQ,EAAEO,YAAY,EAAEM,KAAK,CAAC;EAE3D,MAAM;IAAEgB,MAAM;IAAEC;
|
|
1
|
+
{"version":3,"names":["React","forwardRef","UnstyledButton","ActivityIndicator","useComponentDefaultProps","useStyles","BoxView","jsx","_jsx","jsxs","_jsxs","defaultProps","size","type","variant","loaderPosition","_Button","props","ref","color","disabled","children","leftIcon","rightIcon","fullWidth","radius","uppercase","compact","loading","loaderProps","gradient","style","others","styles","sx","withLeftIcon","withRightIcon","name","loader","root","undefined","inner","icon","centerLoader","label","Button"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,4BAAmB;AAUlD,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,OAAOC,SAAS,MAAM,oBAAiB;AACvC,SAASC,OAAO,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAA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;MAACyB,KAAK,EAAEE,MAAM,CAACQ,KAAM;MAAApB,QAAA,GAC1B,CAACC,QAAQ,IAAKM,OAAO,IAAIb,cAAc,KAAK,MAAO,kBAClDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACX,QAAQ,CAAE;QAAAD,QAAA,EAC9CO,OAAO,IAAIb,cAAc,KAAK,MAAM,GAAGuB,MAAM,GAAGhB;MAAQ,CAClD,CACV,EAEAM,OAAO,IAAIb,cAAc,KAAK,QAAQ,iBACrCP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEE,MAAM,CAACU,YAAa;QAAAtB,QAAA,EAAEiB;MAAM,CAAU,CACvD,eAED9B,IAAA,CAACF,OAAO;QACNyB,KAAK,EAAEE,MAAM,CAACW;QACd;QAAA;QAAAvB,QAAA,EAECA;MAAQ,CACF,CAAC,EAET,CAACE,SAAS,IAAKK,OAAO,IAAIb,cAAc,KAAK,OAAQ,kBACpDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACV,SAAS,CAAE;QAAAF,QAAA,EAC/CO,OAAO,IAAIb,cAAc,KAAK,OAAO,GAAGuB,MAAM,GAAGf;MAAS,CACpD,CACV;IAAA,CACM;EAAC,CACI,CAAC;AAErB,CACF,CAAQ;AAER,OAAO,MAAMsB,MAAM,GAAG7B,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, createContext, useContext } from 'react';
|
|
4
|
+
import { BoxView } from "../BoxView/index.js";
|
|
5
|
+
import { Paper } from "../Paper/index.js";
|
|
6
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
7
|
+
import { createStyles } from "../../theme/index.js";
|
|
8
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const CardContext = /*#__PURE__*/createContext(null);
|
|
11
|
+
const useCardContext = () => {
|
|
12
|
+
const context = useContext(CardContext);
|
|
13
|
+
return context;
|
|
14
|
+
};
|
|
15
|
+
const useCardStyles = createStyles((theme, {
|
|
16
|
+
padding
|
|
17
|
+
}) => {
|
|
18
|
+
const getPadding = () => {
|
|
19
|
+
if (padding === undefined) return theme.spacing.md;
|
|
20
|
+
if (typeof padding === 'number') return rem(padding);
|
|
21
|
+
return theme.spacing[padding] || theme.spacing.md;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
root: {
|
|
25
|
+
padding: getPadding(),
|
|
26
|
+
overflow: 'hidden'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
const useCardSectionStyles = createStyles((theme, {
|
|
31
|
+
padding,
|
|
32
|
+
withBorder,
|
|
33
|
+
inheritPadding,
|
|
34
|
+
cardPadding
|
|
35
|
+
}) => {
|
|
36
|
+
const getPadding = () => {
|
|
37
|
+
if (inheritPadding && cardPadding !== undefined) {
|
|
38
|
+
if (typeof cardPadding === 'number') return rem(cardPadding);
|
|
39
|
+
return theme.spacing[cardPadding] || theme.spacing.md;
|
|
40
|
+
}
|
|
41
|
+
if (padding === undefined) return 0;
|
|
42
|
+
if (typeof padding === 'number') return rem(padding);
|
|
43
|
+
return theme.spacing[padding] || 0;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
root: {
|
|
47
|
+
padding: getPadding(),
|
|
48
|
+
...(withBorder && {
|
|
49
|
+
borderTopWidth: 1,
|
|
50
|
+
borderBottomWidth: 1,
|
|
51
|
+
borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const defaultCardProps = {
|
|
57
|
+
padding: 'md',
|
|
58
|
+
radius: 'sm',
|
|
59
|
+
withBorder: false
|
|
60
|
+
};
|
|
61
|
+
const defaultCardSectionProps = {
|
|
62
|
+
inheritPadding: false,
|
|
63
|
+
withBorder: false
|
|
64
|
+
};
|
|
65
|
+
export const Card = /*#__PURE__*/forwardRef((props, ref) => {
|
|
66
|
+
const {
|
|
67
|
+
padding,
|
|
68
|
+
children,
|
|
69
|
+
style,
|
|
70
|
+
p,
|
|
71
|
+
...otherProps
|
|
72
|
+
} = useComponentDefaultProps('Card', defaultCardProps, props);
|
|
73
|
+
const {
|
|
74
|
+
styles,
|
|
75
|
+
sx
|
|
76
|
+
} = useCardStyles({
|
|
77
|
+
padding
|
|
78
|
+
}, {
|
|
79
|
+
name: 'Card'
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// Use p prop for Paper, padding for Card internal logic
|
|
83
|
+
const paperPadding = p !== undefined ? p : 0;
|
|
84
|
+
return /*#__PURE__*/_jsx(CardContext.Provider, {
|
|
85
|
+
value: {
|
|
86
|
+
padding: padding
|
|
87
|
+
},
|
|
88
|
+
children: /*#__PURE__*/_jsx(Paper, {
|
|
89
|
+
ref: ref,
|
|
90
|
+
p: paperPadding,
|
|
91
|
+
style: sx(styles.root, style),
|
|
92
|
+
...otherProps,
|
|
93
|
+
children: children
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
export const CardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
98
|
+
const {
|
|
99
|
+
children,
|
|
100
|
+
inheritPadding,
|
|
101
|
+
padding,
|
|
102
|
+
withBorder,
|
|
103
|
+
style,
|
|
104
|
+
...others
|
|
105
|
+
} = useComponentDefaultProps('CardSection', defaultCardSectionProps, props);
|
|
106
|
+
const cardContext = useCardContext();
|
|
107
|
+
const {
|
|
108
|
+
styles,
|
|
109
|
+
sx
|
|
110
|
+
} = useCardSectionStyles({
|
|
111
|
+
padding,
|
|
112
|
+
withBorder,
|
|
113
|
+
inheritPadding,
|
|
114
|
+
cardPadding: cardContext?.padding
|
|
115
|
+
}, {
|
|
116
|
+
name: 'CardSection'
|
|
117
|
+
});
|
|
118
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
119
|
+
ref: ref,
|
|
120
|
+
style: sx(styles.root, style),
|
|
121
|
+
...others,
|
|
122
|
+
children: children
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
Card.displayName = 'Card';
|
|
126
|
+
CardSection.displayName = 'Card.Section';
|
|
127
|
+
|
|
128
|
+
// Attach sub-components
|
|
129
|
+
Card.Section = CardSection;
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","createContext","useContext","BoxView","Paper","useComponentDefaultProps","createStyles","rem","jsx","_jsx","CardContext","useCardContext","context","useCardStyles","theme","padding","getPadding","undefined","spacing","md","root","overflow","useCardSectionStyles","withBorder","inheritPadding","cardPadding","borderTopWidth","borderBottomWidth","borderColor","colorScheme","colors","dark","gray","defaultCardProps","radius","defaultCardSectionProps","Card","props","ref","children","style","p","otherProps","styles","sx","name","paperPadding","Provider","value","CardSection","others","cardContext","displayName","Section"],"sourceRoot":"../../../../src","sources":["components/Card/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,aAAa,EAAEC,UAAU,QAAQ,OAAO;AACpE,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,KAAK,QAAQ,mBAAU;AAGhC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM5C,MAAMC,WAAW,gBAAGT,aAAa,CAA0B,IAAI,CAAC;AAEhE,MAAMU,cAAc,GAAGA,CAAA,KAAM;EAC3B,MAAMC,OAAO,GAAGV,UAAU,CAACQ,WAAW,CAAC;EACvC,OAAOE,OAAO;AAChB,CAAC;AA2BD,MAAMC,aAAa,GAAGP,YAAY,C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E,MAAM;IACJC,QAAQ;IACRf,cAAc;IACdT,OAAO;IACPQ,UAAU;IACViB,KAAK;IACL,GAAGU;EACL,CAAC,GAAG7C,wBAAwB,CAAC,aAAa,EAAE8B,uBAAuB,EAAEE,KAAK,CAAC;EAE3E,MAAMc,WAAW,GAAGxC,cAAc,CAAC,CAAC;EACpC,MAAM;IAAEgC,MAAM;IAAEC;EAAE,CAAC,GAAGtB,oBAAoB,CACxC;IACEP,OAAO;IACPQ,UAAU;IACVC,cAAc;IACdC,WAAW,EAAE0B,WAAW,EAAEpC;EAC5B,CAAC,EACD;IAAE8B,IAAI,EAAE;EAAc,CACxB,CAAQ;EAER,oBACEpC,IAAA,CAACN,OAAO;IAACmC,GAAG,EAAEA,GAAI;IAACE,KAAK,EAAEI,EAAE,CAACD,MAAM,CAACvB,IAAI,EAAEoB,KAAK,CAAE;IAAA,GAAKU,MAAM;IAAAX,QAAA,EACzDA;EAAQ,CACF,CAAC;AAEd,CAAC,CAAC;AAEFH,IAAI,CAACgB,WAAW,GAAG,MAAM;AACzBH,WAAW,CAACG,WAAW,GAAG,cAAc;;AAExC;AACChB,IAAI,CAASiB,OAAO,GAAGJ,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
|
+
import { BoxView } from "../BoxView/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
/**
|
|
7
|
+
* Center component centers its children horizontally and vertically
|
|
8
|
+
* Uses flexbox to achieve centering
|
|
9
|
+
*/
|
|
10
|
+
export const Center = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
children,
|
|
13
|
+
style,
|
|
14
|
+
inline,
|
|
15
|
+
...others
|
|
16
|
+
} = props;
|
|
17
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
style: [{
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
justifyContent: 'center'
|
|
24
|
+
}, style],
|
|
25
|
+
...others,
|
|
26
|
+
children: children
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
Center.displayName = 'Center';
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","BoxView","jsx","_jsx","Center","props","ref","children","style","inline","others","display","flexDirection","alignItems","justifyContent","displayName"],"sourceRoot":"../../../../src","sources":["components/Center/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,OAAO,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYrC;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,gBAAGJ,UAAU,CAAmB,CAACK,KAAK,EAAEC,GAAG,KAAK;EACjE,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAE,GAAGC;EAAM,CAAC,GAAGL,KAAK;EAEnD,oBACEF,IAAA,CAACF,OAAO;IACNK,GAAG,EAAEA,GAAI;IACTE,KAAK,EAAE,CACL;MACEG,OAAO,EAAE,MAAM;MACfC,aAAa,EAAE,QAAQ;MACvBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC,EACDN,KAAK,CACL;IAAA,GACEE,MAAM;IAAAH,QAAA,EAETA;EAAQ,CACF,CAAC;AAEd,CAAC,CAAC;AAEFH,MAAM,CAACW,WAAW,GAAG,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useEffect, useRef } from 'react';
|
|
4
|
+
import { Pressable, Animated } 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 sizes = {
|
|
12
|
+
xs: rem(14),
|
|
13
|
+
sm: rem(18),
|
|
14
|
+
md: rem(22),
|
|
15
|
+
lg: rem(28),
|
|
16
|
+
xl: rem(36)
|
|
17
|
+
};
|
|
18
|
+
const useStyles = createStyles((theme, {
|
|
19
|
+
size,
|
|
20
|
+
color,
|
|
21
|
+
disabled
|
|
22
|
+
}) => {
|
|
23
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
24
|
+
const checkboxSize = sizes[size] || sizes.md;
|
|
25
|
+
return {
|
|
26
|
+
root: {
|
|
27
|
+
flexDirection: 'row',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
opacity: disabled ? 0.5 : 1
|
|
30
|
+
},
|
|
31
|
+
checkbox: {
|
|
32
|
+
width: checkboxSize,
|
|
33
|
+
height: checkboxSize,
|
|
34
|
+
borderRadius: theme.radius.sm,
|
|
35
|
+
borderWidth: 2,
|
|
36
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4],
|
|
37
|
+
backgroundColor: 'transparent',
|
|
38
|
+
justifyContent: 'center',
|
|
39
|
+
alignItems: 'center'
|
|
40
|
+
},
|
|
41
|
+
checked: {
|
|
42
|
+
borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
43
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
44
|
+
},
|
|
45
|
+
checkmark: {
|
|
46
|
+
color: theme.white,
|
|
47
|
+
fontSize: checkboxSize * 0.6,
|
|
48
|
+
fontWeight: 'bold'
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
fontSize: theme.fontSizes.sm,
|
|
52
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
53
|
+
marginLeft: theme.spacing.sm,
|
|
54
|
+
flex: 1
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
const defaultProps = {
|
|
59
|
+
size: 'md',
|
|
60
|
+
color: 'blue',
|
|
61
|
+
checked: false,
|
|
62
|
+
indeterminate: false,
|
|
63
|
+
disabled: false
|
|
64
|
+
};
|
|
65
|
+
export const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
66
|
+
const {
|
|
67
|
+
label,
|
|
68
|
+
size,
|
|
69
|
+
color,
|
|
70
|
+
checked,
|
|
71
|
+
onChange,
|
|
72
|
+
indeterminate,
|
|
73
|
+
disabled,
|
|
74
|
+
style,
|
|
75
|
+
wrapperStyle,
|
|
76
|
+
...otherProps
|
|
77
|
+
} = useComponentDefaultProps('Checkbox', defaultProps, props);
|
|
78
|
+
const {
|
|
79
|
+
styles,
|
|
80
|
+
sx
|
|
81
|
+
} = useStyles({
|
|
82
|
+
size,
|
|
83
|
+
color,
|
|
84
|
+
disabled
|
|
85
|
+
}, {
|
|
86
|
+
name: 'Checkbox'
|
|
87
|
+
});
|
|
88
|
+
const scaleAnim = useRef(new Animated.Value(checked ? 1 : 0)).current;
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
Animated.spring(scaleAnim, {
|
|
91
|
+
toValue: checked || indeterminate ? 1 : 0,
|
|
92
|
+
useNativeDriver: true,
|
|
93
|
+
tension: 100,
|
|
94
|
+
friction: 7
|
|
95
|
+
}).start();
|
|
96
|
+
}, [checked, indeterminate, scaleAnim]);
|
|
97
|
+
const handlePress = () => {
|
|
98
|
+
if (!disabled) {
|
|
99
|
+
onChange?.(!checked);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
const checkboxContent = /*#__PURE__*/_jsx(BoxView, {
|
|
103
|
+
style: sx(styles.checkbox, (checked || indeterminate) && styles.checked, style),
|
|
104
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
105
|
+
style: {
|
|
106
|
+
transform: [{
|
|
107
|
+
scale: scaleAnim
|
|
108
|
+
}],
|
|
109
|
+
opacity: scaleAnim
|
|
110
|
+
},
|
|
111
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
112
|
+
style: styles.checkmark,
|
|
113
|
+
children: indeterminate ? '−' : '✓'
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
118
|
+
ref: ref,
|
|
119
|
+
onPress: handlePress,
|
|
120
|
+
disabled: disabled,
|
|
121
|
+
style: sx(styles.root, wrapperStyle),
|
|
122
|
+
accessibilityRole: "checkbox",
|
|
123
|
+
accessibilityState: {
|
|
124
|
+
checked: checked || indeterminate
|
|
125
|
+
},
|
|
126
|
+
...otherProps,
|
|
127
|
+
children: [checkboxContent, label && /*#__PURE__*/_jsx(Text, {
|
|
128
|
+
style: styles.label,
|
|
129
|
+
children: label
|
|
130
|
+
})]
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
Checkbox.displayName = 'Checkbox';
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useEffect","useRef","Pressable","Animated","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","useStyles","theme","size","color","disabled","colors","primaryColor","checkboxSize","root","flexDirection","alignItems","opacity","checkbox","width","height","borderRadius","radius","borderWidth","borderColor","colorScheme","dark","gray","backgroundColor","justifyContent","checked","primaryBgColor","checkmark","white","fontSize","fontWeight","label","fontSizes","black","marginLeft","spacing","flex","defaultProps","indeterminate","Checkbox","props","ref","onChange","style","wrapperStyle","otherProps","styles","sx","name","scaleAnim","Value","current","spring","toValue","useNativeDriver","tension","friction","start","handlePress","checkboxContent","children","View","transform","scale","onPress","accessibilityRole","accessibilityState","displayName"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SAASC,SAAS,EAAEC,QAAQ,QAAQ,cAAc;AAClD,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA+B5C,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAEN,GAAG,CAAC,EAAE,CAAC;EACXO,EAAE,EAAEP,GAAG,CAAC,EAAE,CAAC;EACXQ,EAAE,EAAER,GAAG,CAAC,EAAE,CAAC;EACXS,EAAE,EAAET,GAAG,CAAC,EAAE,CAAC;EACXU,EAAE,EAAEV,GAAG,CAAC,EAAE;AACZ,CAAC;AAED,MAAMW,SAAS,GAAGZ,YAAY,CAC5B,CACEa,KAAK,EACL;EACEC,IAAI;EACJC,KAAK;EACLC;AAKF,CAAC,KACE;EACH,MAAMC,MAAM,GAAGJ,KAAK,CAACI,MAAM,CAACF,KAAK,CAAC,IAAIF,KAAK,CAACI,MAAM,CAACJ,KAAK,CAACK,YAAY,CAAC;EACtE,MAAMC,YAAY,GAAGb,KAAK,CAACQ,IAAI,CAAuB,IAAIR,KAAK,CAACG,EAAE;EAElE,OAAO;IACLW,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,OAAO,EAAEP,QAAQ,GAAG,GAAG,GAAG;IAC5B,CAAC;IACDQ,QAAQ,EAAE;MACRC,KAAK,EAAEN,YAAmB;MAC1BO,MAAM,EAAEP,YAAmB;MAC3BQ,YAAY,EAAEd,KAAK,CAACe,MAAM,CAACpB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