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 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","Modal","ScrollView","TouchableOpacity","BoxView","Text","TextInput","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","useStyles","theme","color","colors","primaryColor","modalOverlay","flex","backgroundColor","justifyContent","modalContent","colorScheme","dark","white","borderTopLeftRadius","radius","lg","borderTopRightRadius","maxHeight","searchContainer","padding","spacing","md","borderBottomWidth","borderBottomColor","gray","listContainer","paddingVertical","item","paddingHorizontal","flexDirection","alignItems","itemSelected","itemDisabled","opacity","itemText","fontSize","black","itemTextSelected","fontWeight","primaryBgColor","groupLabel","textTransform","emptyState","xl","emptyText","defaultProps","size","disabled","searchable","clearable","maxDropdownHeight","searchPlaceholder","clearButtonLabel","normalizeData","data","map","value","label","Select","props","ref","controlledValue","defaultValue","onChange","placeholder","description","error","icon","rightSection","style","others","opened","setOpened","searchQuery","setSearchQuery","setValue","styles","name","isControlled","undefined","currentValue","normalizedData","selectedItem","find","filteredData","filter","toLowerCase","includes","handleSelect","itemValue","handleClear","groupedData","ungroupedItems","forEach","group","push","children","editable","onPress","visible","transparent","animationType","onRequestClose","activeOpacity","e","nativeEvent","text","autoFocus","contentContainerStyle","Object","keys","length","displayName"],"sourceRoot":"../../../../src","sources":["components/Select/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SACEC,KAAK,EACLC,UAAU,EACVC,gBAAgB,QAEX,cAAc;AACrB,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,SAAS,QAAQ,uBAAc;AAOxC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC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jB,CAAC,EAEDV,YAAY,CAAC2B,MAAM,KAAK,CAAC,iBACxBpH,IAAA,CAACP,OAAO;cAACiF,KAAK,EAAEO,MAAM,CAAClC,UAAW;cAAAsD,QAAA,eAChCrG,IAAA,CAACN,IAAI;gBAACgF,KAAK,EAAEO,MAAM,CAAChC,SAAU;gBAAAoD,QAAA,EAAC;cAAgB,CAAM;YAAC,CAC/C,CACV;UAAA,CACS,CAAC;QAAA,CACG;MAAC,CACH;IAAC,CACd,CAAC;EAAA,CACR,CAAC;AAEP,CAAC,CAAC;AAEFtC,MAAM,CAACsD,WAAW,GAAG,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useState, useEffect } from 'react';
|
|
4
|
+
import { Dimensions } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
7
|
+
import { createStyles } from "../../theme/index.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const useStyles = createStyles((theme, {
|
|
10
|
+
cols,
|
|
11
|
+
spacing,
|
|
12
|
+
verticalSpacing
|
|
13
|
+
}) => {
|
|
14
|
+
const horizontalSpacing = theme.fn.size({
|
|
15
|
+
size: spacing,
|
|
16
|
+
sizes: theme.spacing
|
|
17
|
+
});
|
|
18
|
+
const rowSpacing = theme.fn.size({
|
|
19
|
+
size: verticalSpacing || spacing,
|
|
20
|
+
sizes: theme.spacing
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
root: {
|
|
24
|
+
flexDirection: 'row',
|
|
25
|
+
flexWrap: 'wrap',
|
|
26
|
+
margin: -horizontalSpacing / 2
|
|
27
|
+
},
|
|
28
|
+
child: {
|
|
29
|
+
flexBasis: `${100 / cols}%`,
|
|
30
|
+
flexGrow: 0,
|
|
31
|
+
flexShrink: 0,
|
|
32
|
+
paddingHorizontal: horizontalSpacing / 2,
|
|
33
|
+
paddingVertical: rowSpacing / 2
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
const defaultProps = {
|
|
38
|
+
cols: 1,
|
|
39
|
+
spacing: 'md'
|
|
40
|
+
};
|
|
41
|
+
export const SimpleGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
42
|
+
const {
|
|
43
|
+
cols,
|
|
44
|
+
spacing,
|
|
45
|
+
verticalSpacing,
|
|
46
|
+
breakpoints,
|
|
47
|
+
children,
|
|
48
|
+
style
|
|
49
|
+
} = useComponentDefaultProps('SimpleGrid', defaultProps, props);
|
|
50
|
+
const [dimensions, setDimensions] = useState(Dimensions.get('window'));
|
|
51
|
+
const [activeCols, setActiveCols] = useState(cols);
|
|
52
|
+
const [activeSpacing, setActiveSpacing] = useState(spacing);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
const subscription = Dimensions.addEventListener('change', ({
|
|
55
|
+
window
|
|
56
|
+
}) => {
|
|
57
|
+
setDimensions(window);
|
|
58
|
+
});
|
|
59
|
+
return () => subscription?.remove();
|
|
60
|
+
}, []);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (breakpoints && breakpoints.length > 0) {
|
|
63
|
+
const width = dimensions.width;
|
|
64
|
+
const sorted = [...breakpoints].sort((a, b) => b.maxWidth - a.maxWidth);
|
|
65
|
+
const breakpoint = sorted.find(bp => width <= bp.maxWidth);
|
|
66
|
+
if (breakpoint) {
|
|
67
|
+
setActiveCols(breakpoint.cols);
|
|
68
|
+
setActiveSpacing(breakpoint.spacing || spacing);
|
|
69
|
+
} else {
|
|
70
|
+
setActiveCols(cols);
|
|
71
|
+
setActiveSpacing(spacing);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, [dimensions, breakpoints, cols, spacing]);
|
|
75
|
+
const {
|
|
76
|
+
styles,
|
|
77
|
+
sx
|
|
78
|
+
} = useStyles({
|
|
79
|
+
cols: activeCols,
|
|
80
|
+
spacing: activeSpacing,
|
|
81
|
+
verticalSpacing
|
|
82
|
+
}, {
|
|
83
|
+
name: 'SimpleGrid'
|
|
84
|
+
});
|
|
85
|
+
const childArray = React.Children.toArray(children);
|
|
86
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
87
|
+
ref: ref,
|
|
88
|
+
style: sx(styles.root, style),
|
|
89
|
+
children: childArray.map((child, index) => /*#__PURE__*/_jsx(BoxView, {
|
|
90
|
+
style: styles.child,
|
|
91
|
+
children: child
|
|
92
|
+
}, index))
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
SimpleGrid.displayName = 'SimpleGrid';
|
|
96
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","useEffect","Dimensions","BoxView","useComponentDefaultProps","createStyles","jsx","_jsx","useStyles","theme","cols","spacing","verticalSpacing","horizontalSpacing","fn","size","sizes","rowSpacing","root","flexDirection","flexWrap","margin","child","flexBasis","flexGrow","flexShrink","paddingHorizontal","paddingVertical","defaultProps","SimpleGrid","props","ref","breakpoints","children","style","dimensions","setDimensions","get","activeCols","setActiveCols","activeSpacing","setActiveSpacing","subscription","addEventListener","window","remove","length","width","sorted","sort","a","b","maxWidth","breakpoint","find","bp","styles","sx","name","childArray","Children","toArray","map","index","displayName"],"sourceRoot":"../../../../src","sources":["components/SimpleGrid/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC9D,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,OAAO,QAAQ,qBAAY;AAEpC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAsB3C,MAAMC,SAAS,GAAGH,YAAY,CAC5B,CACEI,KAAK,EACL;EACEC,IAAI;EACJC,OAAO;EACPC;AAKF,C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8D,QAAQ,CAACC,OAAO,CAAC5B,QAAQ,CAAC;EAEnD,oBACE1B,IAAA,CAACJ,OAAO;IAAC4B,GAAG,EAAEA,GAAI;IAACG,KAAK,EAAEuB,EAAE,CAACD,MAAM,CAACtC,IAAI,EAAEgB,KAAK,CAAE;IAAAD,QAAA,EAC9C0B,UAAU,CAACG,GAAG,CAAC,CAACxC,KAAK,EAAEyC,KAAK,kBAC3BxD,IAAA,CAACJ,OAAO;MAAa+B,KAAK,EAAEsB,MAAM,CAAClC,KAAM;MAAAW,QAAA,EACtCX;IAAK,GADMyC,KAEL,CACV;EAAC,CACK,CAAC;AAEd,CAAC,CAAC;AAEFlC,UAAU,CAACmC,WAAW,GAAG,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useEffect, useRef } from 'react';
|
|
4
|
+
import { Animated } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/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 { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const useStyles = createStyles((theme, {
|
|
11
|
+
height,
|
|
12
|
+
width,
|
|
13
|
+
radius,
|
|
14
|
+
circle
|
|
15
|
+
}) => {
|
|
16
|
+
const getSize = value => {
|
|
17
|
+
if (typeof value === 'number') return rem(value);
|
|
18
|
+
return value;
|
|
19
|
+
};
|
|
20
|
+
const circleSize = circle && height ? getSize(height) : undefined;
|
|
21
|
+
return {
|
|
22
|
+
root: {
|
|
23
|
+
height: circleSize || getSize(height) || rem(120),
|
|
24
|
+
width: circleSize || getSize(width) || '100%',
|
|
25
|
+
borderRadius: circle ? 9999 : theme.fn.radius(radius),
|
|
26
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3],
|
|
27
|
+
overflow: 'hidden'
|
|
28
|
+
},
|
|
29
|
+
shimmer: {
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
top: 0,
|
|
32
|
+
left: 0,
|
|
33
|
+
right: 0,
|
|
34
|
+
bottom: 0,
|
|
35
|
+
backgroundColor: 'rgba(255, 255, 255, 0.2)'
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
const defaultProps = {
|
|
40
|
+
height: 120,
|
|
41
|
+
radius: 'sm',
|
|
42
|
+
circle: false,
|
|
43
|
+
animate: true,
|
|
44
|
+
visible: true
|
|
45
|
+
};
|
|
46
|
+
export const Skeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
47
|
+
const {
|
|
48
|
+
height,
|
|
49
|
+
width,
|
|
50
|
+
radius,
|
|
51
|
+
circle,
|
|
52
|
+
animate,
|
|
53
|
+
visible,
|
|
54
|
+
children,
|
|
55
|
+
style,
|
|
56
|
+
...others
|
|
57
|
+
} = useComponentDefaultProps('Skeleton', defaultProps, props);
|
|
58
|
+
const shimmerAnimation = useRef(new Animated.Value(0)).current;
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (animate && visible) {
|
|
61
|
+
Animated.loop(Animated.sequence([Animated.timing(shimmerAnimation, {
|
|
62
|
+
toValue: 1,
|
|
63
|
+
duration: 1500,
|
|
64
|
+
useNativeDriver: true
|
|
65
|
+
}), Animated.timing(shimmerAnimation, {
|
|
66
|
+
toValue: 0,
|
|
67
|
+
duration: 1500,
|
|
68
|
+
useNativeDriver: true
|
|
69
|
+
})])).start();
|
|
70
|
+
}
|
|
71
|
+
}, [animate, visible, shimmerAnimation]);
|
|
72
|
+
const {
|
|
73
|
+
styles,
|
|
74
|
+
sx
|
|
75
|
+
} = useStyles({
|
|
76
|
+
height,
|
|
77
|
+
width,
|
|
78
|
+
radius,
|
|
79
|
+
circle
|
|
80
|
+
}, {
|
|
81
|
+
name: 'Skeleton'
|
|
82
|
+
});
|
|
83
|
+
if (!visible && children) {
|
|
84
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
85
|
+
children: children
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const shimmerTranslateX = shimmerAnimation.interpolate({
|
|
89
|
+
inputRange: [0, 1],
|
|
90
|
+
outputRange: ['-100%', '100%']
|
|
91
|
+
});
|
|
92
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
93
|
+
ref: ref,
|
|
94
|
+
style: sx(styles.root, style),
|
|
95
|
+
...others,
|
|
96
|
+
children: animate && /*#__PURE__*/_jsx(Animated.View, {
|
|
97
|
+
style: [styles.shimmer, {
|
|
98
|
+
transform: [{
|
|
99
|
+
translateX: shimmerTranslateX
|
|
100
|
+
}]
|
|
101
|
+
}]
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
Skeleton.displayName = 'Skeleton';
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useEffect","useRef","Animated","BoxView","useComponentDefaultProps","createStyles","rem","Fragment","_Fragment","jsx","_jsx","useStyles","theme","height","width","radius","circle","getSize","value","circleSize","undefined","root","borderRadius","fn","backgroundColor","colorScheme","colors","dark","gray","overflow","shimmer","position","top","left","right","bottom","defaultProps","animate","visible","Skeleton","props","ref","children","style","others","shimmerAnimation","Value","current","loop","sequence","timing","toValue","duration","useNativeDriver","start","styles","sx","name","shimmerTranslateX","interpolate","inputRange","outputRange","View","transform","translateX","displayName"],"sourceRoot":"../../../../src","sources":["components/Skeleton/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,OAAO,QAAQ,qBAAY;AAEpC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QA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AAA,CAAAF,SAAA;MAAAkC,QAAA,EAAGA;IAAQ,CAAG,CAAC;EACxB;EAEA,MAAMgB,iBAAiB,GAAGb,gBAAgB,CAACc,WAAW,CAAC;IACrDC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAClBC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM;EAC/B,CAAC,CAAC;EAEF,oBACEnD,IAAA,CAACP,OAAO;IAACsC,GAAG,EAAEA,GAAI;IAACE,KAAK,EAAEa,EAAE,CAACD,MAAM,CAAClC,IAAI,EAAEsB,KAAK,CAAE;IAAA,GAAKC,MAAM;IAAAF,QAAA,EACzDL,OAAO,iBACN3B,IAAA,CAACR,QAAQ,CAAC4D,IAAI;MACZnB,KAAK,EAAE,CACLY,MAAM,CAACzB,OAAO,EACd;QACEiC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAEN;QAAyB,CAAC;MACtD,CAAC;IACD,CACH;EACF,CACM,CAAC;AAEd,CAAC,CAAC;AAEFnB,QAAQ,CAAC0B,WAAW,GAAG,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useRef, useState, useCallback } from 'react';
|
|
4
|
+
import { View, PanResponder, 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: {
|
|
13
|
+
height: rem(4),
|
|
14
|
+
thumb: rem(12)
|
|
15
|
+
},
|
|
16
|
+
sm: {
|
|
17
|
+
height: rem(6),
|
|
18
|
+
thumb: rem(16)
|
|
19
|
+
},
|
|
20
|
+
md: {
|
|
21
|
+
height: rem(8),
|
|
22
|
+
thumb: rem(20)
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
height: rem(10),
|
|
26
|
+
thumb: rem(24)
|
|
27
|
+
},
|
|
28
|
+
xl: {
|
|
29
|
+
height: rem(12),
|
|
30
|
+
thumb: rem(28)
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const useStyles = createStyles((theme, {
|
|
34
|
+
color,
|
|
35
|
+
radius,
|
|
36
|
+
disabled
|
|
37
|
+
}, {
|
|
38
|
+
size
|
|
39
|
+
}) => {
|
|
40
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
41
|
+
const sizeStyles = sizes[size] || sizes.md;
|
|
42
|
+
return {
|
|
43
|
+
root: {
|
|
44
|
+
position: 'relative',
|
|
45
|
+
width: '100%',
|
|
46
|
+
paddingVertical: rem(10),
|
|
47
|
+
opacity: disabled ? 0.5 : 1
|
|
48
|
+
},
|
|
49
|
+
track: {
|
|
50
|
+
position: 'relative',
|
|
51
|
+
height: sizeStyles.height,
|
|
52
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[2],
|
|
53
|
+
borderRadius: theme.fn.radius(radius),
|
|
54
|
+
overflow: 'hidden'
|
|
55
|
+
},
|
|
56
|
+
bar: {
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
height: '100%',
|
|
59
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
60
|
+
borderRadius: theme.fn.radius(radius)
|
|
61
|
+
},
|
|
62
|
+
thumb: {
|
|
63
|
+
position: 'absolute',
|
|
64
|
+
width: sizeStyles.thumb,
|
|
65
|
+
height: sizeStyles.thumb,
|
|
66
|
+
borderRadius: sizeStyles.thumb,
|
|
67
|
+
backgroundColor: theme.white,
|
|
68
|
+
borderWidth: rem(3),
|
|
69
|
+
borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
70
|
+
top: -(sizeStyles.thumb / 2 - sizeStyles.height / 2),
|
|
71
|
+
shadowColor: '#000',
|
|
72
|
+
shadowOffset: {
|
|
73
|
+
width: 0,
|
|
74
|
+
height: 2
|
|
75
|
+
},
|
|
76
|
+
shadowOpacity: 0.1,
|
|
77
|
+
shadowRadius: 4,
|
|
78
|
+
elevation: 2
|
|
79
|
+
},
|
|
80
|
+
label: {
|
|
81
|
+
position: 'absolute',
|
|
82
|
+
top: rem(-32),
|
|
83
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
84
|
+
paddingHorizontal: theme.spacing.xs,
|
|
85
|
+
paddingVertical: rem(4),
|
|
86
|
+
borderRadius: theme.fn.radius('sm'),
|
|
87
|
+
minWidth: rem(28),
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
justifyContent: 'center'
|
|
90
|
+
},
|
|
91
|
+
labelText: {
|
|
92
|
+
color: theme.white,
|
|
93
|
+
fontSize: theme.fontSizes.xs,
|
|
94
|
+
fontWeight: '600'
|
|
95
|
+
},
|
|
96
|
+
marks: {
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
width: '100%',
|
|
99
|
+
top: sizeStyles.height,
|
|
100
|
+
flexDirection: 'row'
|
|
101
|
+
},
|
|
102
|
+
mark: {
|
|
103
|
+
position: 'absolute',
|
|
104
|
+
width: rem(2),
|
|
105
|
+
height: rem(6),
|
|
106
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3],
|
|
107
|
+
borderRadius: rem(1)
|
|
108
|
+
},
|
|
109
|
+
markLabel: {
|
|
110
|
+
position: 'absolute',
|
|
111
|
+
top: rem(10),
|
|
112
|
+
fontSize: theme.fontSizes.xs,
|
|
113
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark?.[2] : theme.colors.gray?.[6],
|
|
114
|
+
transform: [{
|
|
115
|
+
translateX: -10
|
|
116
|
+
}]
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
const defaultProps = {
|
|
121
|
+
min: 0,
|
|
122
|
+
max: 100,
|
|
123
|
+
step: 1,
|
|
124
|
+
size: 'md',
|
|
125
|
+
color: 'blue',
|
|
126
|
+
radius: 'xl',
|
|
127
|
+
disabled: false,
|
|
128
|
+
showLabelOnHover: true,
|
|
129
|
+
thumbWithoutBorder: false
|
|
130
|
+
};
|
|
131
|
+
export const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
132
|
+
const {
|
|
133
|
+
value: controlledValue,
|
|
134
|
+
defaultValue,
|
|
135
|
+
onChange,
|
|
136
|
+
onChangeEnd,
|
|
137
|
+
min,
|
|
138
|
+
max,
|
|
139
|
+
step,
|
|
140
|
+
size,
|
|
141
|
+
color,
|
|
142
|
+
radius,
|
|
143
|
+
label,
|
|
144
|
+
marks,
|
|
145
|
+
disabled,
|
|
146
|
+
showLabelOnHover,
|
|
147
|
+
thumbChildren,
|
|
148
|
+
thumbWithoutBorder,
|
|
149
|
+
style,
|
|
150
|
+
...others
|
|
151
|
+
} = useComponentDefaultProps('Slider', defaultProps, props);
|
|
152
|
+
const {
|
|
153
|
+
styles,
|
|
154
|
+
sx
|
|
155
|
+
} = useStyles({
|
|
156
|
+
color,
|
|
157
|
+
radius,
|
|
158
|
+
disabled
|
|
159
|
+
}, {
|
|
160
|
+
name: 'Slider',
|
|
161
|
+
size
|
|
162
|
+
});
|
|
163
|
+
const sizeStyles = sizes[size] || sizes.md;
|
|
164
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? min ?? 0);
|
|
165
|
+
const [trackWidth, setTrackWidth] = useState(0);
|
|
166
|
+
const [showLabel, setShowLabel] = useState(false);
|
|
167
|
+
const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
|
|
168
|
+
const scale = useRef(new Animated.Value(1)).current;
|
|
169
|
+
const clampValue = useCallback(val => {
|
|
170
|
+
const clamped = Math.max(min, Math.min(max, val));
|
|
171
|
+
const stepped = Math.round(clamped / step) * step;
|
|
172
|
+
return stepped;
|
|
173
|
+
}, [min, max, step]);
|
|
174
|
+
const updateValue = useCallback(newValue => {
|
|
175
|
+
const clampedValue = clampValue(newValue);
|
|
176
|
+
if (controlledValue === undefined) {
|
|
177
|
+
setUncontrolledValue(clampedValue);
|
|
178
|
+
}
|
|
179
|
+
onChange?.(clampedValue);
|
|
180
|
+
}, [clampValue, controlledValue, onChange]);
|
|
181
|
+
const getValueFromPosition = useCallback(posX => {
|
|
182
|
+
const percentage = posX / trackWidth;
|
|
183
|
+
return min + percentage * (max - min);
|
|
184
|
+
}, [trackWidth, min, max]);
|
|
185
|
+
const panResponder = useRef(PanResponder.create({
|
|
186
|
+
onStartShouldSetPanResponder: () => !disabled,
|
|
187
|
+
onMoveShouldSetPanResponder: () => !disabled,
|
|
188
|
+
onPanResponderGrant: () => {
|
|
189
|
+
setShowLabel(true);
|
|
190
|
+
Animated.spring(scale, {
|
|
191
|
+
toValue: 1.2,
|
|
192
|
+
useNativeDriver: true
|
|
193
|
+
}).start();
|
|
194
|
+
},
|
|
195
|
+
onPanResponderMove: (_evt, gestureState) => {
|
|
196
|
+
const newValue = getValueFromPosition(gestureState.moveX);
|
|
197
|
+
updateValue(newValue);
|
|
198
|
+
},
|
|
199
|
+
onPanResponderRelease: () => {
|
|
200
|
+
setShowLabel(false);
|
|
201
|
+
Animated.spring(scale, {
|
|
202
|
+
toValue: 1,
|
|
203
|
+
useNativeDriver: true
|
|
204
|
+
}).start();
|
|
205
|
+
onChangeEnd?.(value);
|
|
206
|
+
}
|
|
207
|
+
})).current;
|
|
208
|
+
const handleLayout = event => {
|
|
209
|
+
setTrackWidth(event.nativeEvent.layout.width);
|
|
210
|
+
};
|
|
211
|
+
const percentage = (value - min) / (max - min) * 100;
|
|
212
|
+
const thumbPosition = trackWidth * percentage / 100;
|
|
213
|
+
const renderLabel = () => {
|
|
214
|
+
if (!showLabel && !showLabelOnHover) return null;
|
|
215
|
+
if (!showLabel) return null;
|
|
216
|
+
const labelContent = typeof label === 'function' ? label(value) : label || value;
|
|
217
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
218
|
+
style: [styles.label, {
|
|
219
|
+
left: -(rem(28) / 2)
|
|
220
|
+
}],
|
|
221
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
222
|
+
style: styles.labelText,
|
|
223
|
+
children: labelContent
|
|
224
|
+
})
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
228
|
+
ref: ref,
|
|
229
|
+
style: sx(styles.root, style),
|
|
230
|
+
...others,
|
|
231
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
232
|
+
style: styles.track,
|
|
233
|
+
onLayout: handleLayout,
|
|
234
|
+
...panResponder.panHandlers,
|
|
235
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
236
|
+
style: [styles.bar, {
|
|
237
|
+
width: `${percentage}%`
|
|
238
|
+
}]
|
|
239
|
+
}), trackWidth > 0 && /*#__PURE__*/_jsxs(Animated.View, {
|
|
240
|
+
style: [styles.thumb, {
|
|
241
|
+
left: thumbPosition - sizeStyles.thumb / 2,
|
|
242
|
+
transform: [{
|
|
243
|
+
scale
|
|
244
|
+
}]
|
|
245
|
+
}],
|
|
246
|
+
children: [renderLabel(), thumbChildren]
|
|
247
|
+
})]
|
|
248
|
+
}), marks && marks.length > 0 && /*#__PURE__*/_jsx(View, {
|
|
249
|
+
style: styles.marks,
|
|
250
|
+
children: marks.map((mark, index) => {
|
|
251
|
+
const markPercentage = (mark.value - min) / (max - min) * 100;
|
|
252
|
+
const markPosition = trackWidth * markPercentage / 100;
|
|
253
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
254
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
255
|
+
style: [styles.mark, {
|
|
256
|
+
left: markPosition
|
|
257
|
+
}]
|
|
258
|
+
}), mark.label && /*#__PURE__*/_jsx(Text, {
|
|
259
|
+
style: [styles.markLabel, {
|
|
260
|
+
left: markPosition
|
|
261
|
+
}],
|
|
262
|
+
children: mark.label
|
|
263
|
+
})]
|
|
264
|
+
}, index);
|
|
265
|
+
})
|
|
266
|
+
})]
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
Slider.displayName = 'Slider';
|
|
270
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useRef","useState","useCallback","View","PanResponder","Animated","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","height","thumb","sm","md","lg","xl","useStyles","theme","color","radius","disabled","size","colors","primaryColor","sizeStyles","root","position","width","paddingVertical","opacity","track","backgroundColor","colorScheme","dark","gray","borderRadius","fn","overflow","bar","primaryBgColor","white","borderWidth","borderColor","top","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","label","paddingHorizontal","spacing","minWidth","alignItems","justifyContent","labelText","fontSize","fontSizes","fontWeight","marks","flexDirection","mark","markLabel","transform","translateX","defaultProps","min","max","step","showLabelOnHover","thumbWithoutBorder","Slider","props","ref","value","controlledValue","defaultValue","onChange","onChangeEnd","thumbChildren","style","others","styles","sx","name","uncontrolledValue","setUncontrolledValue","trackWidth","setTrackWidth","showLabel","setShowLabel","undefined","scale","Value","current","clampValue","val","clamped","Math","stepped","round","updateValue","newValue","clampedValue","getValueFromPosition","posX","percentage","panResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderGrant","spring","toValue","useNativeDriver","start","onPanResponderMove","_evt","gestureState","moveX","onPanResponderRelease","handleLayout","event","nativeEvent","layout","thumbPosition","renderLabel","labelContent","left","children","onLayout","panHandlers","length","map","index","markPercentage","markPosition","displayName"],"sourceRoot":"../../../../src","sources":["components/Slider/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AACxE,SACEC,IA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Ref } from 'react';
|
|
4
|
+
import { BoxView } from "../BoxView/index.js";
|
|
5
|
+
import { useTheme } from "../../theme/theme-provider.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Space component adds horizontal or vertical spacing between elements
|
|
9
|
+
*/
|
|
10
|
+
export const Space = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
style,
|
|
13
|
+
w,
|
|
14
|
+
h,
|
|
15
|
+
...others
|
|
16
|
+
} = props;
|
|
17
|
+
const theme = useTheme();
|
|
18
|
+
|
|
19
|
+
// Get spacing value from theme or use number directly
|
|
20
|
+
const getSpacing = value => {
|
|
21
|
+
if (value === undefined) return undefined;
|
|
22
|
+
if (typeof value === 'number') return value;
|
|
23
|
+
return theme.spacing[value] || 0;
|
|
24
|
+
};
|
|
25
|
+
const width = getSpacing(w);
|
|
26
|
+
const height = getSpacing(h);
|
|
27
|
+
return /*#__PURE__*/_jsx(BoxView, {
|
|
28
|
+
ref: ref,
|
|
29
|
+
style: [{
|
|
30
|
+
...(width !== undefined && {
|
|
31
|
+
width
|
|
32
|
+
}),
|
|
33
|
+
...(height !== undefined && {
|
|
34
|
+
height
|
|
35
|
+
})
|
|
36
|
+
}, style],
|
|
37
|
+
...others
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
Space.displayName = 'Space';
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","BoxView","useTheme","jsx","_jsx","Space","props","ref","style","w","h","others","theme","getSpacing","value","undefined","spacing","width","height","displayName"],"sourceRoot":"../../../../src","sources":["components/Space/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,OAAO,QAAQ,qBAAY;AAGpC,SAASC,QAAQ,QAAQ,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUtD;AACA;AACA;AACA,OAAO,MAAMC,KAAK,gBAAGL,UAAU,CAAkB,CAACM,KAAK,EAAEC,GAAG,KAAK;EAC/D,MAAM;IAAEC,KAAK;IAAEC,CAAC;IAAEC,CAAC;IAAE,GAAGC;EAAM,CAAC,GAAGL,KAAK;EAEvC,MAAMM,KAAK,GAAGV,QAAQ,CAAC,CAAC;;EAExB;EACA,MAAMW,UAAU,GAAIC,KAA6C,IAAK;IACpE,IAAIA,KAAK,KAAKC,SAAS,EAAE,OAAOA,SAAS;IACzC,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK;IAC3C,OAAOF,KAAK,CAACI,OAAO,CAACF,KAAK,CAA+B,IAAI,CAAC;EAChE,CAAC;EAED,MAAMG,KAAK,GAAGJ,UAAU,CAACJ,CAAC,CAAC;EAC3B,MAAMS,MAAM,GAAGL,UAAU,CAACH,CAAC,CAAC;EAE5B,oBACEN,IAAA,CAACH,OAAO;IACNM,GAAG,EAAEA,GAAI;IACTC,KAAK,EAAE,CACL;MACE,IAAIS,KAAK,KAAKF,SAAS,IAAI;QAAEE;MAAM,CAAC,CAAC;MACrC,IAAIC,MAAM,KAAKH,SAAS,IAAI;QAAEG;MAAO,CAAC;IACxC,CAAC,EACDV,KAAK,CACL;IAAA,GACEG;EAAM,CACX,CAAC;AAEN,CAAC,CAAC;AAEFN,KAAK,CAACc,WAAW,GAAG,OAAO","ignoreList":[]}
|