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","useEffect","useRef","Modal","RNModal","TouchableOpacity","Animated","KeyboardAvoidingView","Platform","ScrollView","BoxView","Text","Overlay","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","full","useStyles","theme","size","padding","radius","centered","fullScreen","getPadding","undefined","spacing","getWidth","overlay","flex","backgroundColor","justifyContent","alignItems","paddingTop","container","colorScheme","colors","dark","white","borderRadius","fn","width","maxWidth","maxHeight","height","header","borderBottomWidth","borderBottomColor","gray","flexDirection","title","fontSize","fontSizes","fontWeight","color","black","closeButton","marginLeft","closeButtonText","body","defaultProps","closeOnClickOutside","withOverlay","overlayOpacity","overlayColor","withCloseButton","transitionDuration","zIndex","props","ref","opened","onClose","children","style","others","styles","sx","name","fadeAnim","Value","current","scaleAnim","parallel","timing","toValue","duration","useNativeDriver","spring","friction","start","handleOverlayPress","visible","transparent","animationType","onRequestClose","statusBarTranslucent","behavior","OS","View","opacity","onPress","position","activeOpacity","e","stopPropagation","transform","scale","showsVerticalScrollIndicator","displayName"],"sourceRoot":"../../../../src","sources":["components/Modal/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SACEC,KAAK,IAAIC,OAAO,EAChBC,gBAAgB,EAChBC,QAAQ,EACRC,oBAAoB,EACpBC,QAAQ,EACRC,UAAU,QACL,cAAc;AACrB,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,OAAO,QAAQ,qBAAY;AAEpC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAuD5C,MAA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CAACzC,SAAS,EAAEuC,KAAK,CAAC,EAC3B;cACE0B,OAAO,EAAErB,QAAQ;cACjB2B,SAAS,EAAE,CAAC;gBAAEC,KAAK,EAAEzB;cAAU,CAAC;YAClC,CAAC,CACD;YAAA,GACEP,MAAM;YAAAF,QAAA,GAET,CAACtB,KAAK,IAAIe,eAAe,kBACxBxD,KAAA,CAACT,OAAO;cAACyE,KAAK,EAAEE,MAAM,CAAC9B,MAAO;cAAA2B,QAAA,GAC3B,OAAOtB,KAAK,KAAK,QAAQ,gBACxB3C,IAAA,CAACN,IAAI;gBAACwE,KAAK,EAAEE,MAAM,CAACzB,KAAM;gBAAAsB,QAAA,EAAEtB;cAAK,CAAO,CAAC,GAEzCA,KACD,EACAe,eAAe,iBACd1D,IAAA,CAACZ,gBAAgB;gBAAC8E,KAAK,EAAEE,MAAM,CAACnB,WAAY;gBAAC4C,OAAO,EAAE7B,OAAQ;gBAAAC,QAAA,eAC5DjE,IAAA,CAACN,IAAI;kBAACwE,KAAK,EAAEE,MAAM,CAACjB,eAAgB;kBAAAc,QAAA,EAAC;gBAAC,CAAM;cAAC,CAC7B,CACnB;YAAA,CACM,CACV,eAEDjE,IAAA,CAACR,UAAU;cAAC0E,KAAK,EAAEE,MAAM,CAAChB,IAAK;cAACgD,4BAA4B,EAAE,KAAM;cAAAnC,QAAA,EACjEA;YAAQ,CACC,CAAC;UAAA,CACA;QAAC,CACA;MAAC,CACH,CAAC;IAAA,CACC;EAAC,CAChB,CAAC;AAEd,CAAC,CAAC;AAEF/E,KAAK,CAACmH,WAAW,GAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useState } from 'react';
|
|
4
|
+
import { Modal, ScrollView, TouchableOpacity } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { TextInput } from "../TextInput/index.js";
|
|
8
|
+
import { Badge } from "../Badge/index.js";
|
|
9
|
+
import { Checkbox } from "../Checkbox/index.js";
|
|
10
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
11
|
+
import { createStyles } from "../../theme/index.js";
|
|
12
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
+
const useStyles = createStyles((theme, {
|
|
15
|
+
color
|
|
16
|
+
}) => {
|
|
17
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
18
|
+
return {
|
|
19
|
+
valuesContainer: {
|
|
20
|
+
flexDirection: 'row',
|
|
21
|
+
flexWrap: 'wrap',
|
|
22
|
+
gap: theme.spacing.xs,
|
|
23
|
+
padding: rem(4)
|
|
24
|
+
},
|
|
25
|
+
modalOverlay: {
|
|
26
|
+
flex: 1,
|
|
27
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
28
|
+
justifyContent: 'flex-end'
|
|
29
|
+
},
|
|
30
|
+
modalContent: {
|
|
31
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
|
|
32
|
+
borderTopLeftRadius: theme.radius.lg,
|
|
33
|
+
borderTopRightRadius: theme.radius.lg,
|
|
34
|
+
maxHeight: '80%'
|
|
35
|
+
},
|
|
36
|
+
searchContainer: {
|
|
37
|
+
padding: theme.spacing.md,
|
|
38
|
+
borderBottomWidth: 1,
|
|
39
|
+
borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2]
|
|
40
|
+
},
|
|
41
|
+
listContainer: {
|
|
42
|
+
paddingVertical: rem(8)
|
|
43
|
+
},
|
|
44
|
+
item: {
|
|
45
|
+
paddingVertical: rem(12),
|
|
46
|
+
paddingHorizontal: theme.spacing.md,
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
alignItems: 'center'
|
|
49
|
+
},
|
|
50
|
+
itemSelected: {
|
|
51
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : colors?.[0] || (theme.colors.gray || [])[0]
|
|
52
|
+
},
|
|
53
|
+
itemDisabled: {
|
|
54
|
+
opacity: 0.4
|
|
55
|
+
},
|
|
56
|
+
itemText: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
fontSize: rem(14),
|
|
59
|
+
marginLeft: theme.spacing.sm,
|
|
60
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black
|
|
61
|
+
},
|
|
62
|
+
itemTextSelected: {
|
|
63
|
+
fontWeight: '600',
|
|
64
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
65
|
+
},
|
|
66
|
+
groupLabel: {
|
|
67
|
+
paddingVertical: rem(8),
|
|
68
|
+
paddingHorizontal: theme.spacing.md,
|
|
69
|
+
fontSize: rem(12),
|
|
70
|
+
fontWeight: '600',
|
|
71
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
72
|
+
textTransform: 'uppercase'
|
|
73
|
+
},
|
|
74
|
+
emptyState: {
|
|
75
|
+
padding: theme.spacing.xl,
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
},
|
|
78
|
+
emptyText: {
|
|
79
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6]
|
|
80
|
+
},
|
|
81
|
+
footer: {
|
|
82
|
+
padding: theme.spacing.md,
|
|
83
|
+
borderTopWidth: 1,
|
|
84
|
+
borderTopColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2],
|
|
85
|
+
flexDirection: 'row',
|
|
86
|
+
justifyContent: 'space-between'
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
const defaultProps = {
|
|
91
|
+
size: 'md',
|
|
92
|
+
radius: 'sm',
|
|
93
|
+
color: 'blue',
|
|
94
|
+
disabled: false,
|
|
95
|
+
searchable: false,
|
|
96
|
+
clearable: false,
|
|
97
|
+
maxDropdownHeight: 400,
|
|
98
|
+
searchPlaceholder: 'Search...',
|
|
99
|
+
clearButtonLabel: 'Clear all',
|
|
100
|
+
maxSelectedValues: 5
|
|
101
|
+
};
|
|
102
|
+
const normalizeData = data => {
|
|
103
|
+
return data.map(item => typeof item === 'string' ? {
|
|
104
|
+
value: item,
|
|
105
|
+
label: item
|
|
106
|
+
} : item);
|
|
107
|
+
};
|
|
108
|
+
export const MultiSelect = /*#__PURE__*/forwardRef((props, ref) => {
|
|
109
|
+
const {
|
|
110
|
+
data,
|
|
111
|
+
value: controlledValue,
|
|
112
|
+
defaultValue,
|
|
113
|
+
onChange,
|
|
114
|
+
placeholder,
|
|
115
|
+
label,
|
|
116
|
+
description,
|
|
117
|
+
error,
|
|
118
|
+
size,
|
|
119
|
+
radius,
|
|
120
|
+
color,
|
|
121
|
+
disabled,
|
|
122
|
+
searchable,
|
|
123
|
+
searchPlaceholder,
|
|
124
|
+
clearable,
|
|
125
|
+
clearButtonLabel,
|
|
126
|
+
maxDropdownHeight,
|
|
127
|
+
maxSelectedValues,
|
|
128
|
+
icon,
|
|
129
|
+
style,
|
|
130
|
+
...others
|
|
131
|
+
} = useComponentDefaultProps('MultiSelect', defaultProps, props);
|
|
132
|
+
const [opened, setOpened] = useState(false);
|
|
133
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
134
|
+
const [value, setValue] = useState(defaultValue || []);
|
|
135
|
+
const {
|
|
136
|
+
styles
|
|
137
|
+
} = useStyles({
|
|
138
|
+
color,
|
|
139
|
+
size
|
|
140
|
+
}, {
|
|
141
|
+
name: 'MultiSelect'
|
|
142
|
+
});
|
|
143
|
+
const isControlled = controlledValue !== undefined;
|
|
144
|
+
const currentValue = isControlled ? controlledValue : value;
|
|
145
|
+
const normalizedData = normalizeData(data);
|
|
146
|
+
const filteredData = searchable ? normalizedData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase())) : normalizedData;
|
|
147
|
+
const handleToggle = itemValue => {
|
|
148
|
+
const newValue = currentValue.includes(itemValue) ? currentValue.filter(v => v !== itemValue) : [...currentValue, itemValue];
|
|
149
|
+
if (!isControlled) {
|
|
150
|
+
setValue(newValue);
|
|
151
|
+
}
|
|
152
|
+
onChange?.(newValue);
|
|
153
|
+
};
|
|
154
|
+
const handleClear = () => {
|
|
155
|
+
if (!isControlled) {
|
|
156
|
+
setValue([]);
|
|
157
|
+
}
|
|
158
|
+
onChange?.([]);
|
|
159
|
+
};
|
|
160
|
+
const selectedItems = normalizedData.filter(item => currentValue.includes(item.value));
|
|
161
|
+
const displayedValues = maxSelectedValues && selectedItems.length > maxSelectedValues ? selectedItems.slice(0, maxSelectedValues) : selectedItems;
|
|
162
|
+
const remainingCount = maxSelectedValues ? selectedItems.length - maxSelectedValues : 0;
|
|
163
|
+
const groupedData = {};
|
|
164
|
+
let ungroupedItems = [];
|
|
165
|
+
filteredData.forEach(item => {
|
|
166
|
+
if (item.group) {
|
|
167
|
+
if (!groupedData[item.group]) {
|
|
168
|
+
groupedData[item.group] = [];
|
|
169
|
+
}
|
|
170
|
+
groupedData[item.group].push(item);
|
|
171
|
+
} else {
|
|
172
|
+
ungroupedItems.push(item);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
const renderValue = () => {
|
|
176
|
+
if (currentValue.length === 0) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
180
|
+
style: styles.valuesContainer,
|
|
181
|
+
children: [displayedValues.map(item => /*#__PURE__*/_jsx(Badge, {
|
|
182
|
+
size: "sm",
|
|
183
|
+
color: color,
|
|
184
|
+
children: item.label
|
|
185
|
+
}, item.value)), remainingCount > 0 && /*#__PURE__*/_jsxs(Badge, {
|
|
186
|
+
size: "sm",
|
|
187
|
+
color: "gray",
|
|
188
|
+
children: ["+", remainingCount]
|
|
189
|
+
})]
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
193
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
194
|
+
onPress: () => !disabled && setOpened(true),
|
|
195
|
+
disabled: disabled,
|
|
196
|
+
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
197
|
+
ref: ref,
|
|
198
|
+
label: label,
|
|
199
|
+
description: description,
|
|
200
|
+
error: error,
|
|
201
|
+
size: size,
|
|
202
|
+
radius: radius,
|
|
203
|
+
icon: icon,
|
|
204
|
+
value: "",
|
|
205
|
+
placeholder: currentValue.length === 0 ? placeholder : `${currentValue.length} selected`,
|
|
206
|
+
editable: !disabled,
|
|
207
|
+
style: style,
|
|
208
|
+
...others
|
|
209
|
+
}), renderValue()]
|
|
210
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
211
|
+
visible: opened,
|
|
212
|
+
transparent: true,
|
|
213
|
+
animationType: "slide",
|
|
214
|
+
onRequestClose: () => setOpened(false),
|
|
215
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
216
|
+
activeOpacity: 1,
|
|
217
|
+
style: styles.modalOverlay,
|
|
218
|
+
onPress: () => setOpened(false),
|
|
219
|
+
children: /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
220
|
+
activeOpacity: 1,
|
|
221
|
+
style: styles.modalContent,
|
|
222
|
+
children: [searchable && /*#__PURE__*/_jsx(BoxView, {
|
|
223
|
+
style: styles.searchContainer,
|
|
224
|
+
children: /*#__PURE__*/_jsx(TextInput, {
|
|
225
|
+
placeholder: searchPlaceholder,
|
|
226
|
+
value: searchQuery,
|
|
227
|
+
onChange: e => setSearchQuery(e.nativeEvent.text),
|
|
228
|
+
autoFocus: true
|
|
229
|
+
})
|
|
230
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
231
|
+
style: {
|
|
232
|
+
maxHeight: maxDropdownHeight
|
|
233
|
+
},
|
|
234
|
+
contentContainerStyle: styles.listContainer,
|
|
235
|
+
children: [ungroupedItems.map(item => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
236
|
+
style: [styles.item, currentValue.includes(item.value) && styles.itemSelected, item.disabled && styles.itemDisabled],
|
|
237
|
+
onPress: () => !item.disabled && handleToggle(item.value),
|
|
238
|
+
disabled: item.disabled,
|
|
239
|
+
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
240
|
+
checked: currentValue.includes(item.value),
|
|
241
|
+
onChange: () => !item.disabled && handleToggle(item.value),
|
|
242
|
+
disabled: item.disabled
|
|
243
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
244
|
+
style: [styles.itemText, currentValue.includes(item.value) && styles.itemTextSelected],
|
|
245
|
+
children: item.label
|
|
246
|
+
})]
|
|
247
|
+
}, item.value)), Object.keys(groupedData).map(group => /*#__PURE__*/_jsxs(React.Fragment, {
|
|
248
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
249
|
+
style: styles.groupLabel,
|
|
250
|
+
children: group
|
|
251
|
+
}), groupedData[group].map(item => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
252
|
+
style: [styles.item, currentValue.includes(item.value) && styles.itemSelected, item.disabled && styles.itemDisabled],
|
|
253
|
+
onPress: () => !item.disabled && handleToggle(item.value),
|
|
254
|
+
disabled: item.disabled,
|
|
255
|
+
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
256
|
+
checked: currentValue.includes(item.value),
|
|
257
|
+
onChange: () => !item.disabled && handleToggle(item.value),
|
|
258
|
+
disabled: item.disabled
|
|
259
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
260
|
+
style: [styles.itemText, currentValue.includes(item.value) && styles.itemTextSelected],
|
|
261
|
+
children: item.label
|
|
262
|
+
})]
|
|
263
|
+
}, item.value))]
|
|
264
|
+
}, group)), filteredData.length === 0 && /*#__PURE__*/_jsx(BoxView, {
|
|
265
|
+
style: styles.emptyState,
|
|
266
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
267
|
+
style: styles.emptyText,
|
|
268
|
+
children: "No options found"
|
|
269
|
+
})
|
|
270
|
+
})]
|
|
271
|
+
}), clearable && currentValue.length > 0 && /*#__PURE__*/_jsxs(BoxView, {
|
|
272
|
+
style: styles.footer,
|
|
273
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
274
|
+
onPress: handleClear,
|
|
275
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
276
|
+
style: {
|
|
277
|
+
color: color
|
|
278
|
+
},
|
|
279
|
+
children: clearButtonLabel
|
|
280
|
+
})
|
|
281
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
282
|
+
onPress: () => setOpened(false),
|
|
283
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
284
|
+
children: ["Done (", currentValue.length, ")"]
|
|
285
|
+
})
|
|
286
|
+
})]
|
|
287
|
+
})]
|
|
288
|
+
})
|
|
289
|
+
})
|
|
290
|
+
})]
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
MultiSelect.displayName = 'MultiSelect';
|
|
294
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","Modal","ScrollView","TouchableOpacity","BoxView","Text","TextInput","Badge","Checkbox","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","useStyles","theme","color","colors","primaryColor","valuesContainer","flexDirection","flexWrap","gap","spacing","xs","padding","modalOverlay","flex","backgroundColor","justifyContent","modalContent","colorScheme","dark","white","borderTopLeftRadius","radius","lg","borderTopRightRadius","maxHeight","searchContainer","md","borderBottomWidth","borderBottomColor","gray","listContainer","paddingVertical","item","paddingHorizontal","alignItems","itemSelected","itemDisabled","opacity","itemText","fontSize","marginLeft","sm","black","itemTextSelected","fontWeight","primaryBgColor","groupLabel","textTransform","emptyState","xl","emptyText","footer","borderTopWidth","borderTopColor","defaultProps","size","disabled","searchable","clearable","maxDropdownHeight","searchPlaceholder","clearButtonLabel","maxSelectedValues","normalizeData","data","map","value","label","MultiSelect","props","ref","controlledValue","defaultValue","onChange","placeholder","description","error","icon","style","others","opened","setOpened","searchQuery","setSearchQuery","setValue","styles","name","isControlled","undefined","currentValue","normalizedData","filteredData","filter","toLowerCase","includes","handleToggle","itemValue","newValue","v","handleClear","selectedItems","displayedValues","length","slice","remainingCount","groupedData","ungroupedItems","forEach","group","push","renderValue","children","onPress","editable","visible","transparent","animationType","onRequestClose","activeOpacity","e","nativeEvent","text","autoFocus","contentContainerStyle","checked","Object","keys","displayName"],"sourceRoot":"../../../../src","sources":["components/MultiSelect/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;AACxC,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,QAAQ,QAAQ,sBAAa;AAOtC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAuE5C,MAAMC,SAAS,GAAGR,YAAY,CAC5B,CACES,KAAK,EACL;EAAEC;AAAkD,CAAC,KAClD;EACH,MAAMC,MAAM,GAAGF,KAAK,CAACE,MAAM,CAACD,KAAK,CAAC,IAAID,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,YAAY,CAAC;EAEtE,OAAO;IACLC,eAAe,EAAE;MACfC,aAAa,EAAE,KAAK;MACpBC,QAAQ,EAAE,MAAM;MAChBC,GAAG,EAAEP,KAAK,CAACQ,OAA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,CAAC,KAAK,CAAE;cAAA8B,QAAA,eAChDlH,KAAA,CAACV,IAAI;gBAAA4H,QAAA,GAAC,QAAM,EAACtB,YAAY,CAACa,MAAM,EAAC,GAAC;cAAA,CAAM;YAAC,CACzB,CAAC;UAAA,CACZ,CACV;QAAA,CACe;MAAC,CACH;IAAC,CACd,CAAC;EAAA,CACR,CAAC;AAEP,CACF,CAAC;AAEDlC,WAAW,CAAC2D,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useState } from 'react';
|
|
4
|
+
import { TouchableOpacity, Modal, FlatList } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps, useTheme } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles, getSize } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { INPUT_SIZES } from "../Input/index.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const useStyles = createStyles((theme, {
|
|
13
|
+
size,
|
|
14
|
+
radius,
|
|
15
|
+
variant,
|
|
16
|
+
fullWidth,
|
|
17
|
+
error,
|
|
18
|
+
disabled,
|
|
19
|
+
withIcon
|
|
20
|
+
}) => {
|
|
21
|
+
const getVariantStyles = () => {
|
|
22
|
+
switch (variant) {
|
|
23
|
+
case 'filled':
|
|
24
|
+
return {
|
|
25
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
26
|
+
borderWidth: 1,
|
|
27
|
+
borderColor: 'transparent'
|
|
28
|
+
};
|
|
29
|
+
case 'unstyled':
|
|
30
|
+
return {
|
|
31
|
+
backgroundColor: 'transparent',
|
|
32
|
+
borderWidth: 0
|
|
33
|
+
};
|
|
34
|
+
default:
|
|
35
|
+
return {
|
|
36
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
37
|
+
borderWidth: 1,
|
|
38
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
wrapper: {
|
|
44
|
+
width: fullWidth ? '100%' : undefined
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
fontSize: theme.fontSizes.sm,
|
|
48
|
+
fontWeight: '500',
|
|
49
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
50
|
+
marginBottom: theme.spacing.xs
|
|
51
|
+
},
|
|
52
|
+
description: {
|
|
53
|
+
fontSize: theme.fontSizes.xs,
|
|
54
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
55
|
+
marginTop: theme.spacing.xs
|
|
56
|
+
},
|
|
57
|
+
error: {
|
|
58
|
+
fontSize: theme.fontSizes.xs,
|
|
59
|
+
color: (theme.colors.red || [])[6],
|
|
60
|
+
marginTop: theme.spacing.xs
|
|
61
|
+
},
|
|
62
|
+
selectWrapper: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
height: getSize({
|
|
66
|
+
size,
|
|
67
|
+
sizes: INPUT_SIZES
|
|
68
|
+
}),
|
|
69
|
+
borderRadius: theme.fn.radius(radius),
|
|
70
|
+
...getVariantStyles(),
|
|
71
|
+
...(error && {
|
|
72
|
+
borderColor: (theme.colors.red || [])[6]
|
|
73
|
+
}),
|
|
74
|
+
...(disabled && {
|
|
75
|
+
opacity: 0.6
|
|
76
|
+
})
|
|
77
|
+
},
|
|
78
|
+
icon: {
|
|
79
|
+
paddingLeft: theme.spacing.sm,
|
|
80
|
+
paddingRight: theme.spacing.xs
|
|
81
|
+
},
|
|
82
|
+
selectText: {
|
|
83
|
+
flex: 1,
|
|
84
|
+
fontSize: getSize({
|
|
85
|
+
size,
|
|
86
|
+
sizes: theme.fontSizes
|
|
87
|
+
}),
|
|
88
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
89
|
+
paddingHorizontal: theme.spacing.sm,
|
|
90
|
+
...(withIcon && {
|
|
91
|
+
paddingLeft: 0
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
placeholder: {
|
|
95
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[3] : (theme.colors.gray || [])[5]
|
|
96
|
+
},
|
|
97
|
+
chevron: {
|
|
98
|
+
paddingRight: theme.spacing.sm
|
|
99
|
+
},
|
|
100
|
+
chevronText: {
|
|
101
|
+
fontSize: rem(16),
|
|
102
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6]
|
|
103
|
+
},
|
|
104
|
+
modalOverlay: {
|
|
105
|
+
flex: 1,
|
|
106
|
+
justifyContent: 'flex-end'
|
|
107
|
+
},
|
|
108
|
+
modalContent: {
|
|
109
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
|
|
110
|
+
borderTopLeftRadius: theme.fn.radius('md'),
|
|
111
|
+
borderTopRightRadius: theme.fn.radius('md'),
|
|
112
|
+
maxHeight: '70%'
|
|
113
|
+
},
|
|
114
|
+
modalHeader: {
|
|
115
|
+
padding: theme.spacing.md,
|
|
116
|
+
borderBottomWidth: 1,
|
|
117
|
+
borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[2]
|
|
118
|
+
},
|
|
119
|
+
modalTitle: {
|
|
120
|
+
fontSize: theme.fontSizes.lg,
|
|
121
|
+
fontWeight: '600',
|
|
122
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black
|
|
123
|
+
},
|
|
124
|
+
option: {
|
|
125
|
+
padding: theme.spacing.md,
|
|
126
|
+
borderBottomWidth: 1,
|
|
127
|
+
borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[2]
|
|
128
|
+
},
|
|
129
|
+
optionSelected: {
|
|
130
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.fn.rgba(theme.colors[theme.primaryColor]?.[9] || theme.primaryBgColor, 0.25) : theme.colors[theme.primaryColor]?.[0] || (theme.colors.gray || [])[1]
|
|
131
|
+
},
|
|
132
|
+
optionDisabled: {
|
|
133
|
+
opacity: 0.4
|
|
134
|
+
},
|
|
135
|
+
optionText: {
|
|
136
|
+
fontSize: theme.fontSizes.sm,
|
|
137
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black
|
|
138
|
+
},
|
|
139
|
+
optionTextSelected: {
|
|
140
|
+
fontWeight: '600',
|
|
141
|
+
color: theme.colors[theme.primaryColor]?.[6] || theme.primaryBgColor
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
const defaultProps = {
|
|
146
|
+
size: 'sm',
|
|
147
|
+
radius: 'sm',
|
|
148
|
+
variant: 'default',
|
|
149
|
+
fullWidth: false,
|
|
150
|
+
disabled: false,
|
|
151
|
+
required: false
|
|
152
|
+
};
|
|
153
|
+
export const NativeSelect = /*#__PURE__*/forwardRef((props, ref) => {
|
|
154
|
+
const {
|
|
155
|
+
label,
|
|
156
|
+
description,
|
|
157
|
+
error,
|
|
158
|
+
size,
|
|
159
|
+
radius,
|
|
160
|
+
variant,
|
|
161
|
+
fullWidth,
|
|
162
|
+
data,
|
|
163
|
+
value: controlledValue,
|
|
164
|
+
defaultValue,
|
|
165
|
+
onChange,
|
|
166
|
+
disabled,
|
|
167
|
+
placeholder,
|
|
168
|
+
icon,
|
|
169
|
+
style,
|
|
170
|
+
wrapperStyle,
|
|
171
|
+
required,
|
|
172
|
+
...others
|
|
173
|
+
} = useComponentDefaultProps('NativeSelect', defaultProps, props);
|
|
174
|
+
const theme = useTheme();
|
|
175
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue || '');
|
|
176
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
177
|
+
const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
|
|
178
|
+
const {
|
|
179
|
+
styles,
|
|
180
|
+
sx
|
|
181
|
+
} = useStyles({
|
|
182
|
+
size,
|
|
183
|
+
radius,
|
|
184
|
+
variant,
|
|
185
|
+
fullWidth,
|
|
186
|
+
error: !!error,
|
|
187
|
+
disabled,
|
|
188
|
+
withIcon: !!icon
|
|
189
|
+
}, {
|
|
190
|
+
name: 'NativeSelect'
|
|
191
|
+
});
|
|
192
|
+
const normalizedData = data.map(item => typeof item === 'string' ? {
|
|
193
|
+
value: item,
|
|
194
|
+
label: item
|
|
195
|
+
} : item);
|
|
196
|
+
const selectedItem = normalizedData.find(item => item.value === value);
|
|
197
|
+
const handleSelect = itemValue => {
|
|
198
|
+
if (controlledValue === undefined) {
|
|
199
|
+
setUncontrolledValue(itemValue);
|
|
200
|
+
}
|
|
201
|
+
onChange?.(itemValue);
|
|
202
|
+
setModalVisible(false);
|
|
203
|
+
};
|
|
204
|
+
const handlePress = () => {
|
|
205
|
+
if (!disabled) {
|
|
206
|
+
setModalVisible(true);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
210
|
+
style: sx(styles.wrapper, wrapperStyle),
|
|
211
|
+
children: [label && /*#__PURE__*/_jsxs(Text, {
|
|
212
|
+
style: styles.label,
|
|
213
|
+
children: [typeof label === 'string' ? label : label, required && /*#__PURE__*/_jsx(Text, {
|
|
214
|
+
style: {
|
|
215
|
+
color: (theme.colors.red || [])[6]
|
|
216
|
+
},
|
|
217
|
+
children: " *"
|
|
218
|
+
})]
|
|
219
|
+
}), /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
220
|
+
ref: ref,
|
|
221
|
+
style: sx(styles.selectWrapper, style),
|
|
222
|
+
onPress: handlePress,
|
|
223
|
+
disabled: disabled,
|
|
224
|
+
activeOpacity: 0.7,
|
|
225
|
+
...others,
|
|
226
|
+
children: [icon && /*#__PURE__*/_jsx(BoxView, {
|
|
227
|
+
style: styles.icon,
|
|
228
|
+
children: icon
|
|
229
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
230
|
+
style: sx(styles.selectText, !selectedItem && styles.placeholder),
|
|
231
|
+
numberOfLines: 1,
|
|
232
|
+
children: selectedItem ? selectedItem.label : placeholder || 'Select option'
|
|
233
|
+
}), /*#__PURE__*/_jsx(BoxView, {
|
|
234
|
+
style: styles.chevron,
|
|
235
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
236
|
+
style: styles.chevronText,
|
|
237
|
+
children: "\u25BC"
|
|
238
|
+
})
|
|
239
|
+
})]
|
|
240
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
241
|
+
style: styles.description,
|
|
242
|
+
children: typeof description === 'string' ? description : description
|
|
243
|
+
}), error && /*#__PURE__*/_jsx(Text, {
|
|
244
|
+
style: styles.error,
|
|
245
|
+
children: typeof error === 'string' ? error : error
|
|
246
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
247
|
+
visible: modalVisible,
|
|
248
|
+
transparent: true,
|
|
249
|
+
animationType: "slide",
|
|
250
|
+
onRequestClose: () => setModalVisible(false),
|
|
251
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
252
|
+
style: styles.modalOverlay,
|
|
253
|
+
activeOpacity: 1,
|
|
254
|
+
onPress: () => setModalVisible(false),
|
|
255
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
256
|
+
activeOpacity: 1,
|
|
257
|
+
onPress: e => e.stopPropagation(),
|
|
258
|
+
children: /*#__PURE__*/_jsxs(BoxView, {
|
|
259
|
+
style: styles.modalContent,
|
|
260
|
+
children: [/*#__PURE__*/_jsx(BoxView, {
|
|
261
|
+
style: styles.modalHeader,
|
|
262
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
263
|
+
style: styles.modalTitle,
|
|
264
|
+
children: typeof label === 'string' ? label : 'Select an option'
|
|
265
|
+
})
|
|
266
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
267
|
+
data: normalizedData,
|
|
268
|
+
keyExtractor: item => item.value,
|
|
269
|
+
renderItem: ({
|
|
270
|
+
item
|
|
271
|
+
}) => /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
272
|
+
style: sx(styles.option, item.value === value && styles.optionSelected, item.disabled && styles.optionDisabled),
|
|
273
|
+
onPress: () => handleSelect(item.value),
|
|
274
|
+
disabled: item.disabled,
|
|
275
|
+
activeOpacity: 0.7,
|
|
276
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
277
|
+
style: sx(styles.optionText, item.value === value && styles.optionTextSelected),
|
|
278
|
+
children: item.label
|
|
279
|
+
})
|
|
280
|
+
})
|
|
281
|
+
})]
|
|
282
|
+
})
|
|
283
|
+
})
|
|
284
|
+
})
|
|
285
|
+
})]
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
NativeSelect.displayName = 'NativeSelect';
|
|
289
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","TouchableOpacity","Modal","FlatList","BoxView","Text","useComponentDefaultProps","useTheme","createStyles","getSize","rem","INPUT_SIZES","jsx","_jsx","jsxs","_jsxs","useStyles","theme","size","radius","variant","fullWidth","error","disabled","withIcon","getVariantStyles","backgroundColor","colorScheme","colors","dark","gray","borderWidth","borderColor","white","wrapper","width","undefined","label","fontSize","fontSizes","sm","fontWeight","color","black","marginBottom","spacing","xs","description","marginTop","red","selectWrapper","flexDirection","alignItems","height","sizes","borderRadius","fn","opacity","icon","paddingLeft","paddingRight","selectText","flex","paddingHorizontal","placeholder","chevron","chevronText","modalOverlay","justifyContent","modalContent","borderTopLeftRadius","borderTopRightRadius","maxHeight","modalHeader","padding","md","borderBottomWidth","borderBottomColor","modalTitle","lg","option","optionSelected","rgba","primaryColor","primaryBgColor","optionDisabled","optionText","optionTextSelected","defaultProps","required","NativeSelect","props","ref","data","value","controlledValue","defaultValue","onChange","style","wrapperStyle","others","uncontrolledValue","setUncontrolledValue","modalVisible","setModalVisible","styles","sx","name","normalizedData","map","item","selectedItem","find","handleSelect","itemValue","handlePress","children","onPress","activeOpacity","numberOfLines","visible","transparent","animationType","onRequestClose","e","stopPropagation","keyExtractor","renderItem","displayName"],"sourceRoot":"../../../../src","sources":["components/NativeSelect/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAM9B,SAASC,wBAAwB,EAAEC,QAAQ,QAAQ,+BAA4B;AAC/E,SAASC,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AACnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA6DvC,MAAMC,SAAS,GAAGR,YAAY,CAC5B,CACES,KAAK,EACL;EACEC,IAAI;EACJC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC;AASF,CAAC,KACE;EACH,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;IAC7B,QAAQL,OAAO;MACb,KAAK,QAAQ;QACX,OAAO;UACLM,eAAe,EACbT,KAAK,CAACU,WAAW,KAAK,MAAM,GAAG,CAACV,KAAK,CAACW,MAAM,CAACC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,CAACZ,KAAK,CAACW,MAAM,CAACE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;UAC5FC,WAAW,EAAE,CAAC;UAC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