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,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Paper = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../BoxView/index.js");
|
|
10
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
11
|
+
var _index2 = require("../../theme/index.js");
|
|
12
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const shadows = {
|
|
16
|
+
xs: {
|
|
17
|
+
ios: {
|
|
18
|
+
shadowColor: '#000',
|
|
19
|
+
shadowOffset: {
|
|
20
|
+
width: 0,
|
|
21
|
+
height: 1
|
|
22
|
+
},
|
|
23
|
+
shadowOpacity: 0.05,
|
|
24
|
+
shadowRadius: 1
|
|
25
|
+
},
|
|
26
|
+
android: {
|
|
27
|
+
elevation: 1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
sm: {
|
|
31
|
+
ios: {
|
|
32
|
+
shadowColor: '#000',
|
|
33
|
+
shadowOffset: {
|
|
34
|
+
width: 0,
|
|
35
|
+
height: 1
|
|
36
|
+
},
|
|
37
|
+
shadowOpacity: 0.1,
|
|
38
|
+
shadowRadius: 2
|
|
39
|
+
},
|
|
40
|
+
android: {
|
|
41
|
+
elevation: 2
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
md: {
|
|
45
|
+
ios: {
|
|
46
|
+
shadowColor: '#000',
|
|
47
|
+
shadowOffset: {
|
|
48
|
+
width: 0,
|
|
49
|
+
height: 2
|
|
50
|
+
},
|
|
51
|
+
shadowOpacity: 0.15,
|
|
52
|
+
shadowRadius: 4
|
|
53
|
+
},
|
|
54
|
+
android: {
|
|
55
|
+
elevation: 4
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
lg: {
|
|
59
|
+
ios: {
|
|
60
|
+
shadowColor: '#000',
|
|
61
|
+
shadowOffset: {
|
|
62
|
+
width: 0,
|
|
63
|
+
height: 4
|
|
64
|
+
},
|
|
65
|
+
shadowOpacity: 0.2,
|
|
66
|
+
shadowRadius: 8
|
|
67
|
+
},
|
|
68
|
+
android: {
|
|
69
|
+
elevation: 8
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
xl: {
|
|
73
|
+
ios: {
|
|
74
|
+
shadowColor: '#000',
|
|
75
|
+
shadowOffset: {
|
|
76
|
+
width: 0,
|
|
77
|
+
height: 8
|
|
78
|
+
},
|
|
79
|
+
shadowOpacity: 0.25,
|
|
80
|
+
shadowRadius: 16
|
|
81
|
+
},
|
|
82
|
+
android: {
|
|
83
|
+
elevation: 12
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const useStyles = (0, _index2.createStyles)((theme, {
|
|
88
|
+
shadow,
|
|
89
|
+
radius,
|
|
90
|
+
p,
|
|
91
|
+
withBorder
|
|
92
|
+
}) => {
|
|
93
|
+
const getShadowStyles = () => {
|
|
94
|
+
if (!shadow) return {};
|
|
95
|
+
const shadowConfig = shadows[shadow];
|
|
96
|
+
if (!shadowConfig) return {};
|
|
97
|
+
return _reactNative.Platform.OS === 'ios' ? shadowConfig.ios : shadowConfig.android;
|
|
98
|
+
};
|
|
99
|
+
const getPadding = () => {
|
|
100
|
+
if (p === undefined) return {};
|
|
101
|
+
if (typeof p === 'number') return {
|
|
102
|
+
padding: (0, _rem.rem)(p)
|
|
103
|
+
};
|
|
104
|
+
return {
|
|
105
|
+
padding: theme.spacing[p] || theme.spacing.md
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
root: {
|
|
110
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
111
|
+
borderRadius: theme.fn.radius(radius),
|
|
112
|
+
...getShadowStyles(),
|
|
113
|
+
...getPadding(),
|
|
114
|
+
...(withBorder && {
|
|
115
|
+
borderWidth: 1,
|
|
116
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3]
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
const defaultProps = {
|
|
122
|
+
radius: 'sm',
|
|
123
|
+
p: 0,
|
|
124
|
+
withBorder: false
|
|
125
|
+
};
|
|
126
|
+
const Paper = exports.Paper = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
127
|
+
const {
|
|
128
|
+
shadow,
|
|
129
|
+
radius,
|
|
130
|
+
p,
|
|
131
|
+
withBorder,
|
|
132
|
+
children,
|
|
133
|
+
style
|
|
134
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Paper', defaultProps, props);
|
|
135
|
+
const {
|
|
136
|
+
styles,
|
|
137
|
+
sx,
|
|
138
|
+
...others
|
|
139
|
+
} = useStyles({
|
|
140
|
+
shadow,
|
|
141
|
+
radius,
|
|
142
|
+
p,
|
|
143
|
+
withBorder
|
|
144
|
+
}, {
|
|
145
|
+
name: 'Paper'
|
|
146
|
+
});
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
148
|
+
ref: ref,
|
|
149
|
+
style: sx(styles.root, style),
|
|
150
|
+
...others,
|
|
151
|
+
children: children
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
Paper.displayName = 'Paper';
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_themeProvider","_index2","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","shadows","xs","ios","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","android","elevation","sm","md","lg","xl","useStyles","createStyles","theme","shadow","radius","p","withBorder","getShadowStyles","shadowConfig","Platform","OS","getPadding","undefined","padding","rem","spacing","root","backgroundColor","colorScheme","colors","dark","white","borderRadius","fn","borderWidth","borderColor","gray","defaultProps","Paper","exports","forwardRef","props","ref","children","style","useComponentDefaultProps","styles","sx","others","name","jsx","BoxView","displayName"],"sourceRoot":"../../../../src","sources":["components/Paper/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAMA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,y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AAC;IAAEG,MAAM;IAAEC,MAAM;IAAEC,CAAC;IAAEC;EAAU,CAAC,EAAE;IAAEiC,IAAI,EAAE;EAAQ,CAAC,CAAQ;EAEtG,oBACE,IAAA1E,WAAA,CAAA2E,GAAA,EAAC/E,MAAA,CAAAgF,OAAO;IAACT,GAAG,EAAEA,GAAI;IAACE,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACpB,IAAI,EAAEkB,KAAK,CAAE;IAAA,GAAKI,MAAM;IAAAL,QAAA,EACzDA;EAAQ,CACF,CAAC;AAEd,CAAC,CAAC;AAEFL,KAAK,CAACc,WAAW,GAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PasswordInput = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../TextInput/index.js");
|
|
10
|
+
var _index2 = require("../Text/index.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
const defaultProps = {
|
|
14
|
+
visibilityToggleLabel: 'Toggle password visibility'
|
|
15
|
+
};
|
|
16
|
+
const DefaultEyeIcon = ({
|
|
17
|
+
visible
|
|
18
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
19
|
+
style: {
|
|
20
|
+
fontSize: 18
|
|
21
|
+
},
|
|
22
|
+
children: visible ? '👁️' : '👁️🗨️'
|
|
23
|
+
});
|
|
24
|
+
const PasswordInput = exports.PasswordInput = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
25
|
+
const {
|
|
26
|
+
visibilityToggleLabel,
|
|
27
|
+
visible: controlledVisible,
|
|
28
|
+
onVisibilityChange,
|
|
29
|
+
visibilityToggleIcon,
|
|
30
|
+
...others
|
|
31
|
+
} = {
|
|
32
|
+
...defaultProps,
|
|
33
|
+
...props
|
|
34
|
+
};
|
|
35
|
+
const [uncontrolledVisible, setUncontrolledVisible] = (0, _react.useState)(false);
|
|
36
|
+
const isControlled = controlledVisible !== undefined;
|
|
37
|
+
const visible = isControlled ? controlledVisible : uncontrolledVisible;
|
|
38
|
+
const handleToggle = () => {
|
|
39
|
+
const newVisible = !visible;
|
|
40
|
+
if (!isControlled) {
|
|
41
|
+
setUncontrolledVisible(newVisible);
|
|
42
|
+
}
|
|
43
|
+
onVisibilityChange?.(newVisible);
|
|
44
|
+
};
|
|
45
|
+
const toggleButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
46
|
+
onPress: handleToggle,
|
|
47
|
+
accessibilityLabel: visibilityToggleLabel,
|
|
48
|
+
accessibilityRole: "button",
|
|
49
|
+
style: {
|
|
50
|
+
padding: 8,
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
alignItems: 'center'
|
|
53
|
+
},
|
|
54
|
+
children: visibilityToggleIcon ? visibilityToggleIcon(visible) : /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultEyeIcon, {
|
|
55
|
+
visible: visible
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TextInput, {
|
|
59
|
+
ref: ref,
|
|
60
|
+
secureTextEntry: !visible,
|
|
61
|
+
rightSection: toggleButton,
|
|
62
|
+
rightSectionWidth: 40,
|
|
63
|
+
...others
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
PasswordInput.displayName = 'PasswordInput';
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","defaultProps","visibilityToggleLabel","DefaultEyeIcon","visible","jsx","Text","style","fontSize","children","PasswordInput","exports","forwardRef","props","ref","controlledVisible","onVisibilityChange","visibilityToggleIcon","others","uncontrolledVisible","setUncontrolledVisible","useState","isControlled","undefined","handleToggle","newVisible","toggleButton","Pressable","onPress","accessibilityLabel","accessibilityRole","padding","justifyContent","alignItems","TextInput","secureTextEntry","rightSection","rightSectionWidth","displayName"],"sourceRoot":"../../../../src","sources":["components/PasswordInput/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAA+B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAA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AAiB,KAAKQ,SAAS;EACpD,MAAMnB,OAAO,GAAGkB,YAAY,GAAGP,iBAAiB,GAAGI,mBAAmB;EAEtE,MAAMK,YAAY,GAAGA,CAAA,KAAM;IACzB,MAAMC,UAAU,GAAG,CAACrB,OAAO;IAC3B,IAAI,CAACkB,YAAY,EAAE;MACjBF,sBAAsB,CAACK,UAAU,CAAC;IACpC;IACAT,kBAAkB,GAAGS,UAAU,CAAC;EAClC,CAAC;EAED,MAAMC,YAAY,gBAChB,IAAA7C,WAAA,CAAAwB,GAAA,EAAC3B,YAAA,CAAAiD,SAAS;IACRC,OAAO,EAAEJ,YAAa;IACtBK,kBAAkB,EAAE3B,qBAAsB;IAC1C4B,iBAAiB,EAAC,QAAQ;IAC1BvB,KAAK,EAAE;MACLwB,OAAO,EAAE,CAAC;MACVC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE;IACd,CAAE;IAAAxB,QAAA,EAEDQ,oBAAoB,GAAGA,oBAAoB,CAACb,OAAO,CAAC,gBAAG,IAAAvB,WAAA,CAAAwB,GAAA,EAACF,cAAc;MAACC,OAAO,EAAEA;IAAQ,CAAE;EAAC,CACnF,CACZ;EAED,oBACE,IAAAvB,WAAA,CAAAwB,GAAA,EAAC1B,MAAA,CAAAuD,SAAS;IACRpB,GAAG,EAAEA,GAAI;IACTqB,eAAe,EAAE,CAAC/B,OAAQ;IAC1BgC,YAAY,EAAEV,YAAa;IAC3BW,iBAAiB,EAAE,EAAG;IAAA,GAClBnB;EAAM,CACX,CAAC;AAEN,CAAC,CAAC;AAEFR,aAAa,CAAC4B,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PinInput = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../BoxView/index.js");
|
|
10
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
11
|
+
var _index2 = require("../../theme/index.js");
|
|
12
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
const sizes = {
|
|
15
|
+
xs: (0, _rem.rem)(32),
|
|
16
|
+
sm: (0, _rem.rem)(40),
|
|
17
|
+
md: (0, _rem.rem)(48),
|
|
18
|
+
lg: (0, _rem.rem)(56),
|
|
19
|
+
xl: (0, _rem.rem)(64)
|
|
20
|
+
};
|
|
21
|
+
const useStyles = (0, _index2.createStyles)((theme, {
|
|
22
|
+
size,
|
|
23
|
+
radius,
|
|
24
|
+
error,
|
|
25
|
+
disabled,
|
|
26
|
+
spacing
|
|
27
|
+
}) => {
|
|
28
|
+
const getSpacing = () => {
|
|
29
|
+
return theme.spacing[spacing] || theme.spacing.sm;
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
root: {
|
|
33
|
+
flexDirection: 'row',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
gap: getSpacing()
|
|
36
|
+
},
|
|
37
|
+
input: {
|
|
38
|
+
width: sizes[size] || sizes.md,
|
|
39
|
+
height: sizes[size] || sizes.md,
|
|
40
|
+
borderRadius: theme.fn.radius(radius),
|
|
41
|
+
borderWidth: 1,
|
|
42
|
+
borderColor: error ? (theme.colors.red || [])[6] : theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4],
|
|
43
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
44
|
+
fontSize: (0, _index2.getSize)({
|
|
45
|
+
size,
|
|
46
|
+
sizes: theme.fontSizes
|
|
47
|
+
}),
|
|
48
|
+
textAlign: 'center',
|
|
49
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
50
|
+
...(disabled && {
|
|
51
|
+
opacity: 0.6
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
inputFocused: {
|
|
55
|
+
borderColor: theme.colors[theme.primaryColor]?.[6] || theme.primaryBgColor,
|
|
56
|
+
borderWidth: 2
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
const defaultProps = {
|
|
61
|
+
length: 4,
|
|
62
|
+
size: 'sm',
|
|
63
|
+
radius: 'sm',
|
|
64
|
+
mask: false,
|
|
65
|
+
type: 'number',
|
|
66
|
+
disabled: false,
|
|
67
|
+
error: false,
|
|
68
|
+
spacing: 'sm'
|
|
69
|
+
};
|
|
70
|
+
const PinInput = exports.PinInput = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
71
|
+
const {
|
|
72
|
+
length,
|
|
73
|
+
size,
|
|
74
|
+
radius,
|
|
75
|
+
mask,
|
|
76
|
+
type,
|
|
77
|
+
value: controlledValue,
|
|
78
|
+
defaultValue,
|
|
79
|
+
onChange,
|
|
80
|
+
onComplete,
|
|
81
|
+
disabled,
|
|
82
|
+
error,
|
|
83
|
+
spacing,
|
|
84
|
+
style,
|
|
85
|
+
inputStyle,
|
|
86
|
+
...others
|
|
87
|
+
} = (0, _themeProvider.useComponentDefaultProps)('PinInput', defaultProps, props);
|
|
88
|
+
const [uncontrolledValue, setUncontrolledValue] = (0, _react.useState)(defaultValue || '');
|
|
89
|
+
const [focusedIndex, setFocusedIndex] = (0, _react.useState)(null);
|
|
90
|
+
const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
|
|
91
|
+
const inputRefs = (0, _react.useRef)([]);
|
|
92
|
+
const {
|
|
93
|
+
styles,
|
|
94
|
+
sx
|
|
95
|
+
} = useStyles({
|
|
96
|
+
size,
|
|
97
|
+
radius,
|
|
98
|
+
error,
|
|
99
|
+
disabled,
|
|
100
|
+
spacing
|
|
101
|
+
}, {
|
|
102
|
+
name: 'PinInput'
|
|
103
|
+
});
|
|
104
|
+
const handleChange = (text, index) => {
|
|
105
|
+
if (disabled) return;
|
|
106
|
+
|
|
107
|
+
// Validate input based on type
|
|
108
|
+
const isValid = type === 'number' ? /^\d*$/.test(text) : /^[a-zA-Z0-9]*$/.test(text);
|
|
109
|
+
if (!isValid) return;
|
|
110
|
+
|
|
111
|
+
// Handle paste
|
|
112
|
+
if (text.length > 1) {
|
|
113
|
+
const pastedText = text.slice(0, length);
|
|
114
|
+
const newValue = pastedText.padEnd(length, ' ').slice(0, length);
|
|
115
|
+
if (controlledValue === undefined) {
|
|
116
|
+
setUncontrolledValue(newValue);
|
|
117
|
+
}
|
|
118
|
+
onChange?.(newValue);
|
|
119
|
+
|
|
120
|
+
// Move focus to the last filled input or the end
|
|
121
|
+
const nextIndex = Math.min(pastedText.length, length - 1);
|
|
122
|
+
inputRefs.current[nextIndex]?.focus();
|
|
123
|
+
if (newValue.replace(/ /g, '').length === length) {
|
|
124
|
+
onComplete?.(newValue);
|
|
125
|
+
}
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Handle single character input
|
|
130
|
+
const newValueArray = value.padEnd(length, ' ').split('');
|
|
131
|
+
newValueArray[index] = text;
|
|
132
|
+
const newValue = newValueArray.join('').slice(0, length);
|
|
133
|
+
if (controlledValue === undefined) {
|
|
134
|
+
setUncontrolledValue(newValue);
|
|
135
|
+
}
|
|
136
|
+
onChange?.(newValue);
|
|
137
|
+
|
|
138
|
+
// Move to next input if character was entered
|
|
139
|
+
if (text && index < length - 1) {
|
|
140
|
+
inputRefs.current[index + 1]?.focus();
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Check if complete
|
|
144
|
+
if (newValue.replace(/ /g, '').length === length) {
|
|
145
|
+
onComplete?.(newValue);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const handleKeyPress = (e, index) => {
|
|
149
|
+
// Handle backspace
|
|
150
|
+
if (e.nativeEvent.key === 'Backspace') {
|
|
151
|
+
const currentValue = value.charAt(index);
|
|
152
|
+
if (!currentValue || currentValue === ' ') {
|
|
153
|
+
// Move to previous input if current is empty
|
|
154
|
+
if (index > 0) {
|
|
155
|
+
inputRefs.current[index - 1]?.focus();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
161
|
+
ref: ref,
|
|
162
|
+
style: sx(styles.root, style),
|
|
163
|
+
...others,
|
|
164
|
+
children: Array.from({
|
|
165
|
+
length: length
|
|
166
|
+
}, (_, index) => {
|
|
167
|
+
const inputValue = value.charAt(index) || '';
|
|
168
|
+
const displayValue = inputValue === ' ' ? '' : inputValue;
|
|
169
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
170
|
+
ref: el => inputRefs.current[index] = el,
|
|
171
|
+
value: mask && displayValue ? '•' : displayValue,
|
|
172
|
+
onChangeText: text => handleChange(text, index),
|
|
173
|
+
onKeyPress: e => handleKeyPress(e, index),
|
|
174
|
+
onFocus: () => setFocusedIndex(index),
|
|
175
|
+
onBlur: () => setFocusedIndex(null),
|
|
176
|
+
maxLength: 1,
|
|
177
|
+
keyboardType: type === 'number' ? 'number-pad' : 'default',
|
|
178
|
+
editable: !disabled,
|
|
179
|
+
selectTextOnFocus: true,
|
|
180
|
+
style: sx(styles.input, focusedIndex === index && styles.inputFocused, inputStyle)
|
|
181
|
+
}, index);
|
|
182
|
+
})
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
PinInput.displayName = 'PinInput';
|
|
186
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_index","_themeProvider","_index2","_rem","_jsxRuntime","sizes","xs","rem","sm","md","lg","xl","useStyles","createStyles","theme","size","radius","error","disabled","spacing","getSpacing","root","flexDirection","alignItems","gap","input","width","height","borderRadius","fn","borderWidth","borderColor","colors","red","colorScheme","dark","gray","backgroundColor","white","fontSize","getSize","fontSizes","textAlign","color","black","opacity","inputFocused","primaryColor","primaryBgColor","defaultProps","length","mask","type","PinInput","exports","forwardRef","props","ref","value","controlledValue","defaultValue","onChange","onComplete","style","inputStyle","others","useComponentDefaultProps","uncontrolledValue","setUncontrolledValue","useState","focusedIndex","setFocusedIndex","undefined","inputRefs","useRef","styles","sx","name","handleChange","text","index","isValid","test","pastedText","slice","newValue","padEnd","nextIndex","Math","min","current","focus","replace","newValueArray","split","join","handleKeyPress","e","nativeEvent","key","currentValue","charAt","jsx","BoxView","children","Array","from","_","inputValue","displayValue","TextInput","el","onChangeText","onKeyPress","onFocus","onBlur","maxLength","keyboardType","editable","selectTextOnFocus","displayName"],"sourceRoot":"../../../../src","sources":["components/PinInput/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AA+C5C,MAAMO,KAAK,GAAG;EACZC,EAAE,EAAE,IAAAC,QAAG,EAAC,EAAE,CAAC;EACXC,EAAE,EAAE,IAAAD,QAAG,EAAC,EAAE,CAAC;EACXE,EAAE,EAAE,IAAAF,QAAG,EAAC,EAAE,CAAC;EACXG,EAAE,EAAE,IAAAH,QAAG,EAAC,EAAE,CAAC;EACXI,EAAE,EAAE,IAAAJ,QAAG,EAAC,EAAE;AACZ,CAAC;AAED,MAAMK,SAAS,GAAG,IAAAC,oBAAY,EAC5B,CACEC,KAAK,EACL;EACEC,IAAI;EACJC,MAAM;EACNC,KAAK;EACLC,QAAQ;EACRC;AAOF,CAAC,KACE;EACH,MAAMC,UAAU,GAAGA,CAAA,KAAM;IACvB,OAAON,KAAK,CAACK,OAAO,CAACA,OAAO,CAAC,IAAIL,KAAK,CAACK,OAAO,CAACX,EAAE;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C,IAAI,EAAE;MAC5C,MAAM6B,YAAY,GAAGD,UAAU,KAAK,GAAG,GAAG,EAAE,GAAGA,UAAU;MAEzD,oBACE,IAAAxG,WAAA,CAAAkG,GAAA,EAACvG,YAAA,CAAA+G,SAAS;QAERrD,GAAG,EAAGsD,EAAE,IAAMtC,SAAS,CAACiB,OAAO,CAACV,KAAK,CAAC,GAAG+B,EAAI;QAC7CrD,KAAK,EAAEP,IAAI,IAAI0D,YAAY,GAAG,GAAG,GAAGA,YAAa;QACjDG,YAAY,EAAGjC,IAAI,IAAKD,YAAY,CAACC,IAAI,EAAEC,KAAK,CAAE;QAClDiC,UAAU,EAAGhB,CAAC,IAAKD,cAAc,CAACC,CAAC,EAAEjB,KAAK,CAAE;QAC5CkC,OAAO,EAAEA,CAAA,KAAM3C,eAAe,CAACS,KAAK,CAAE;QACtCmC,MAAM,EAAEA,CAAA,KAAM5C,eAAe,CAAC,IAAI,CAAE;QACpC6C,SAAS,EAAE,CAAE;QACbC,YAAY,EAAEjE,IAAI,KAAK,QAAQ,GAAG,YAAY,GAAG,SAAU;QAC3DkE,QAAQ,EAAE,CAACpG,QAAS;QACpBqG,iBAAiB;QACjBxD,KAAK,EAAEa,EAAE,CACPD,MAAM,CAAClD,KAAK,EACZ6C,YAAY,KAAKU,KAAK,IAAIL,MAAM,CAAC7B,YAAY,EAC7CkB,UACF;MAAE,GAfGgB,KAgBN,CAAC;IAEN,CAAC;EAAC,CACK,CAAC;AAEd,CAAC,CAAC;AAEF3B,QAAQ,CAACmE,WAAW,GAAG,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Popover = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../BoxView/index.js");
|
|
10
|
+
var _index2 = require("../Portal/index.js");
|
|
11
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
const defaultProps = {
|
|
15
|
+
position: 'bottom',
|
|
16
|
+
width: 260,
|
|
17
|
+
radius: 'md',
|
|
18
|
+
shadow: 'md',
|
|
19
|
+
withArrow: false,
|
|
20
|
+
arrowSize: 7,
|
|
21
|
+
arrowOffset: 5,
|
|
22
|
+
closeOnClickOutside: true,
|
|
23
|
+
closeOnEscape: true,
|
|
24
|
+
zIndex: 1000
|
|
25
|
+
};
|
|
26
|
+
const PopoverContext = /*#__PURE__*/_react.default.createContext(null);
|
|
27
|
+
const usePopoverContext = () => {
|
|
28
|
+
const ctx = _react.default.useContext(PopoverContext);
|
|
29
|
+
if (!ctx) {
|
|
30
|
+
throw new Error('Popover components must be used within Popover');
|
|
31
|
+
}
|
|
32
|
+
return ctx;
|
|
33
|
+
};
|
|
34
|
+
const PopoverTarget = ({
|
|
35
|
+
children
|
|
36
|
+
}) => {
|
|
37
|
+
const {
|
|
38
|
+
setOpened,
|
|
39
|
+
targetRef,
|
|
40
|
+
setDropdownPosition
|
|
41
|
+
} = usePopoverContext();
|
|
42
|
+
const handlePress = () => {
|
|
43
|
+
if (targetRef.current) {
|
|
44
|
+
targetRef.current.measureInWindow((x, y, width, height) => {
|
|
45
|
+
setDropdownPosition({
|
|
46
|
+
top: y + height + 8,
|
|
47
|
+
left: x,
|
|
48
|
+
width
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
setOpened(true);
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/_react.default.cloneElement(children, {
|
|
55
|
+
ref: targetRef,
|
|
56
|
+
onPress: handlePress
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const PopoverDropdown = ({
|
|
60
|
+
children,
|
|
61
|
+
style,
|
|
62
|
+
...others
|
|
63
|
+
}) => {
|
|
64
|
+
const {
|
|
65
|
+
opened,
|
|
66
|
+
setOpened,
|
|
67
|
+
dropdownPosition
|
|
68
|
+
} = usePopoverContext();
|
|
69
|
+
const opacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
70
|
+
_react.default.useEffect(() => {
|
|
71
|
+
if (opened) {
|
|
72
|
+
_reactNative.Animated.timing(opacity, {
|
|
73
|
+
toValue: 1,
|
|
74
|
+
duration: 150,
|
|
75
|
+
useNativeDriver: true
|
|
76
|
+
}).start();
|
|
77
|
+
}
|
|
78
|
+
}, [opened, opacity]);
|
|
79
|
+
if (!opened) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Portal, {
|
|
83
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
84
|
+
onPress: () => setOpened(false),
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
86
|
+
style: {
|
|
87
|
+
position: 'absolute',
|
|
88
|
+
top: 0,
|
|
89
|
+
left: 0,
|
|
90
|
+
right: 0,
|
|
91
|
+
bottom: 0
|
|
92
|
+
},
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
94
|
+
style: [{
|
|
95
|
+
position: 'absolute',
|
|
96
|
+
top: dropdownPosition.top,
|
|
97
|
+
left: dropdownPosition.left,
|
|
98
|
+
opacity
|
|
99
|
+
}, style],
|
|
100
|
+
...others,
|
|
101
|
+
children: children
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const Popover = exports.Popover = Object.assign(/*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
108
|
+
const {
|
|
109
|
+
position,
|
|
110
|
+
width,
|
|
111
|
+
radius,
|
|
112
|
+
shadow,
|
|
113
|
+
withArrow,
|
|
114
|
+
arrowSize,
|
|
115
|
+
arrowOffset,
|
|
116
|
+
closeOnClickOutside,
|
|
117
|
+
closeOnEscape,
|
|
118
|
+
opened: controlledOpened,
|
|
119
|
+
onChange,
|
|
120
|
+
zIndex,
|
|
121
|
+
children,
|
|
122
|
+
style,
|
|
123
|
+
...others
|
|
124
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Popover', defaultProps, props);
|
|
125
|
+
const [opened, setOpened] = (0, _react.useState)(false);
|
|
126
|
+
const [dropdownPosition, setDropdownPosition] = (0, _react.useState)({
|
|
127
|
+
top: 0,
|
|
128
|
+
left: 0,
|
|
129
|
+
width: 0
|
|
130
|
+
});
|
|
131
|
+
const targetRef = (0, _react.useRef)(null);
|
|
132
|
+
const isControlled = controlledOpened !== undefined;
|
|
133
|
+
const isOpened = isControlled ? controlledOpened : opened;
|
|
134
|
+
const handleSetOpened = value => {
|
|
135
|
+
if (!isControlled) {
|
|
136
|
+
setOpened(value);
|
|
137
|
+
}
|
|
138
|
+
onChange?.(value);
|
|
139
|
+
};
|
|
140
|
+
const contextValue = {
|
|
141
|
+
opened: isOpened,
|
|
142
|
+
setOpened: handleSetOpened,
|
|
143
|
+
targetRef,
|
|
144
|
+
dropdownPosition,
|
|
145
|
+
setDropdownPosition
|
|
146
|
+
};
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopoverContext.Provider, {
|
|
148
|
+
value: contextValue,
|
|
149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
150
|
+
ref: ref,
|
|
151
|
+
...others,
|
|
152
|
+
children: children
|
|
153
|
+
})
|
|
154
|
+
});
|
|
155
|
+
}), {
|
|
156
|
+
Target: PopoverTarget,
|
|
157
|
+
Dropdown: PopoverDropdown
|
|
158
|
+
});
|
|
159
|
+
Popover.displayName = 'Popover';
|
|
160
|
+
PopoverTarget.displayName = 'Popover.Target';
|
|
161
|
+
PopoverDropdown.displayName = 'Popover.Dropdown';
|
|
162
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","defaultProps","position","width","radius","shadow","withArrow","arrowSize","arrowOffset","closeOnClickOutside","closeOnEscape","zIndex","PopoverContext","React","createContext","usePopoverContext","ctx","useContext","Error","PopoverTarget","children","setOpened","targetRef","setDropdownPosition","handlePress","current","measureInWindow","x","y","height","top","left","cloneElement","ref","onPress","PopoverDropdown","style","others","opened","dropdownPosition","opacity","useRef","Animated","Value","useEffect","timing","toValue","duration","useNativeDriver","start","jsx","Portal","TouchableWithoutFeedback","View","right","bottom","Popover","exports","assign","forwardRef","props","controlledOpened","onChange","useComponentDefaultProps","useState","isControlled","undefined","isOpened","handleSetOpened","value","contextValue","Provider","BoxView","Target","Dropdown","displayName"],"sourceRoot":"../../../../src","sources":["components/Popover/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAMA,IAAAI,cAAA,GAAAJ,OAAA;AAAsE,IAAAK,W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