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,313 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Tr = exports.Thead = exports.Th = exports.Tfoot = exports.Td = exports.Tbody = exports.Table = 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("../Text/index.js");
|
|
11
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
12
|
+
var _index3 = require("../../theme/index.js");
|
|
13
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
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); }
|
|
16
|
+
const TableContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
17
|
+
const useTableContext = () => {
|
|
18
|
+
const context = (0, _react.useContext)(TableContext);
|
|
19
|
+
return context;
|
|
20
|
+
};
|
|
21
|
+
const fontSizes = {
|
|
22
|
+
xs: (0, _rem.rem)(10),
|
|
23
|
+
sm: (0, _rem.rem)(12),
|
|
24
|
+
md: (0, _rem.rem)(14),
|
|
25
|
+
lg: (0, _rem.rem)(16),
|
|
26
|
+
xl: (0, _rem.rem)(18)
|
|
27
|
+
};
|
|
28
|
+
const useTableStyles = (0, _index3.createStyles)((theme, {
|
|
29
|
+
withBorder,
|
|
30
|
+
captionSide
|
|
31
|
+
}) => ({
|
|
32
|
+
wrapper: {
|
|
33
|
+
flex: 1
|
|
34
|
+
},
|
|
35
|
+
root: {
|
|
36
|
+
width: '100%',
|
|
37
|
+
borderCollapse: 'collapse',
|
|
38
|
+
...(withBorder && {
|
|
39
|
+
borderWidth: 1,
|
|
40
|
+
borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
41
|
+
})
|
|
42
|
+
},
|
|
43
|
+
caption: {
|
|
44
|
+
fontSize: theme.fontSizes.sm,
|
|
45
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark?.[2] : theme.colors.gray?.[6],
|
|
46
|
+
paddingVertical: theme.spacing.xs,
|
|
47
|
+
textAlign: 'center',
|
|
48
|
+
...(captionSide === 'bottom' && {
|
|
49
|
+
order: 1
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
const useTableHeadStyles = (0, _index3.createStyles)(theme => ({
|
|
54
|
+
thead: {
|
|
55
|
+
borderBottomWidth: 1,
|
|
56
|
+
borderBottomColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
const useTableRowStyles = (0, _index3.createStyles)((theme, {
|
|
60
|
+
striped,
|
|
61
|
+
isEven
|
|
62
|
+
}) => ({
|
|
63
|
+
tr: {
|
|
64
|
+
borderBottomWidth: 1,
|
|
65
|
+
borderBottomColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3],
|
|
66
|
+
...(striped && isEven && {
|
|
67
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] : theme.colors.gray?.[0]
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
const useTableCellStyles = (0, _index3.createStyles)((theme, {
|
|
72
|
+
fontSize,
|
|
73
|
+
verticalSpacing,
|
|
74
|
+
horizontalSpacing,
|
|
75
|
+
withColumnBorders,
|
|
76
|
+
isHeader
|
|
77
|
+
}) => {
|
|
78
|
+
const getVerticalPadding = () => {
|
|
79
|
+
if (typeof verticalSpacing === 'number') return (0, _rem.rem)(verticalSpacing);
|
|
80
|
+
return theme.spacing[verticalSpacing] || theme.spacing.xs;
|
|
81
|
+
};
|
|
82
|
+
const getHorizontalPadding = () => {
|
|
83
|
+
if (typeof horizontalSpacing === 'number') return (0, _rem.rem)(horizontalSpacing);
|
|
84
|
+
return theme.spacing[horizontalSpacing] || theme.spacing.xs;
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
cell: {
|
|
88
|
+
paddingVertical: getVerticalPadding(),
|
|
89
|
+
paddingHorizontal: getHorizontalPadding(),
|
|
90
|
+
fontSize: fontSizes[fontSize],
|
|
91
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
92
|
+
textAlign: 'left',
|
|
93
|
+
...(withColumnBorders && {
|
|
94
|
+
borderRightWidth: 1,
|
|
95
|
+
borderRightColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
|
|
96
|
+
}),
|
|
97
|
+
...(isHeader && {
|
|
98
|
+
fontWeight: '600'
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
const defaultProps = {
|
|
104
|
+
horizontalSpacing: 'xs',
|
|
105
|
+
verticalSpacing: 'xs',
|
|
106
|
+
fontSize: 'sm',
|
|
107
|
+
striped: false,
|
|
108
|
+
highlightOnHover: false,
|
|
109
|
+
withBorder: false,
|
|
110
|
+
withColumnBorders: false,
|
|
111
|
+
captionSide: 'top'
|
|
112
|
+
};
|
|
113
|
+
const Table = exports.Table = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
114
|
+
const {
|
|
115
|
+
children,
|
|
116
|
+
horizontalSpacing,
|
|
117
|
+
verticalSpacing,
|
|
118
|
+
fontSize,
|
|
119
|
+
striped,
|
|
120
|
+
highlightOnHover: _highlightOnHover,
|
|
121
|
+
withBorder,
|
|
122
|
+
withColumnBorders,
|
|
123
|
+
captionSide,
|
|
124
|
+
caption,
|
|
125
|
+
style,
|
|
126
|
+
...others
|
|
127
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Table', defaultProps, props);
|
|
128
|
+
const {
|
|
129
|
+
styles,
|
|
130
|
+
sx
|
|
131
|
+
} = useTableStyles({
|
|
132
|
+
withBorder,
|
|
133
|
+
captionSide
|
|
134
|
+
}, {
|
|
135
|
+
name: 'Table'
|
|
136
|
+
});
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TableContext.Provider, {
|
|
138
|
+
value: {
|
|
139
|
+
striped: striped,
|
|
140
|
+
highlightOnHover: _highlightOnHover,
|
|
141
|
+
withBorder: withBorder,
|
|
142
|
+
withColumnBorders: withColumnBorders,
|
|
143
|
+
fontSize: fontSize,
|
|
144
|
+
verticalSpacing: verticalSpacing,
|
|
145
|
+
horizontalSpacing: horizontalSpacing
|
|
146
|
+
},
|
|
147
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
148
|
+
horizontal: true,
|
|
149
|
+
style: styles.wrapper,
|
|
150
|
+
showsHorizontalScrollIndicator: true,
|
|
151
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
152
|
+
ref: ref,
|
|
153
|
+
style: sx(styles.root, style),
|
|
154
|
+
...others,
|
|
155
|
+
children: [caption && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
156
|
+
style: styles.caption,
|
|
157
|
+
children: caption
|
|
158
|
+
}), children]
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
const Thead = exports.Thead = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
164
|
+
const {
|
|
165
|
+
children,
|
|
166
|
+
style,
|
|
167
|
+
...others
|
|
168
|
+
} = props;
|
|
169
|
+
const {
|
|
170
|
+
styles,
|
|
171
|
+
sx
|
|
172
|
+
} = useTableHeadStyles({}, {
|
|
173
|
+
name: 'Thead'
|
|
174
|
+
});
|
|
175
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
176
|
+
ref: ref,
|
|
177
|
+
style: sx(styles.thead, style),
|
|
178
|
+
...others,
|
|
179
|
+
children: children
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
const Tbody = exports.Tbody = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
183
|
+
const {
|
|
184
|
+
children,
|
|
185
|
+
style,
|
|
186
|
+
...others
|
|
187
|
+
} = props;
|
|
188
|
+
const childrenArray = _react.default.Children.toArray(children);
|
|
189
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
190
|
+
ref: ref,
|
|
191
|
+
style: style,
|
|
192
|
+
...others,
|
|
193
|
+
children: childrenArray.map((child, index) => {
|
|
194
|
+
if (! /*#__PURE__*/_react.default.isValidElement(child)) return child;
|
|
195
|
+
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
196
|
+
key: index,
|
|
197
|
+
__index: index
|
|
198
|
+
});
|
|
199
|
+
})
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
const Tfoot = exports.Tfoot = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
203
|
+
const {
|
|
204
|
+
children,
|
|
205
|
+
style,
|
|
206
|
+
...others
|
|
207
|
+
} = props;
|
|
208
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
209
|
+
ref: ref,
|
|
210
|
+
style: style,
|
|
211
|
+
...others,
|
|
212
|
+
children: children
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
const Tr = exports.Tr = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
216
|
+
const {
|
|
217
|
+
children,
|
|
218
|
+
style,
|
|
219
|
+
__index,
|
|
220
|
+
...others
|
|
221
|
+
} = props;
|
|
222
|
+
const context = useTableContext();
|
|
223
|
+
const {
|
|
224
|
+
styles,
|
|
225
|
+
sx
|
|
226
|
+
} = useTableRowStyles({
|
|
227
|
+
striped: context?.striped ?? false,
|
|
228
|
+
highlightOnHover: context?.highlightOnHover ?? false,
|
|
229
|
+
isEven: (__index ?? 0) % 2 === 0
|
|
230
|
+
}, {
|
|
231
|
+
name: 'Tr'
|
|
232
|
+
});
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
234
|
+
ref: ref,
|
|
235
|
+
style: sx(styles.tr, style),
|
|
236
|
+
...others,
|
|
237
|
+
children: children
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
const Th = exports.Th = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
241
|
+
const {
|
|
242
|
+
children,
|
|
243
|
+
style,
|
|
244
|
+
...others
|
|
245
|
+
} = props;
|
|
246
|
+
const context = useTableContext();
|
|
247
|
+
const {
|
|
248
|
+
styles,
|
|
249
|
+
sx
|
|
250
|
+
} = useTableCellStyles({
|
|
251
|
+
fontSize: context?.fontSize ?? 'sm',
|
|
252
|
+
verticalSpacing: context?.verticalSpacing ?? 'xs',
|
|
253
|
+
horizontalSpacing: context?.horizontalSpacing ?? 'xs',
|
|
254
|
+
withColumnBorders: context?.withColumnBorders ?? false,
|
|
255
|
+
isHeader: true
|
|
256
|
+
}, {
|
|
257
|
+
name: 'Th'
|
|
258
|
+
});
|
|
259
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
260
|
+
ref: ref,
|
|
261
|
+
style: sx(styles.cell, style),
|
|
262
|
+
...others,
|
|
263
|
+
children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
264
|
+
style: styles.cell,
|
|
265
|
+
children: children
|
|
266
|
+
}) : children
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
const Td = exports.Td = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
270
|
+
const {
|
|
271
|
+
children,
|
|
272
|
+
style,
|
|
273
|
+
...others
|
|
274
|
+
} = props;
|
|
275
|
+
const context = useTableContext();
|
|
276
|
+
const {
|
|
277
|
+
styles,
|
|
278
|
+
sx
|
|
279
|
+
} = useTableCellStyles({
|
|
280
|
+
fontSize: context?.fontSize ?? 'sm',
|
|
281
|
+
verticalSpacing: context?.verticalSpacing ?? 'xs',
|
|
282
|
+
horizontalSpacing: context?.horizontalSpacing ?? 'xs',
|
|
283
|
+
withColumnBorders: context?.withColumnBorders ?? false,
|
|
284
|
+
isHeader: false
|
|
285
|
+
}, {
|
|
286
|
+
name: 'Td'
|
|
287
|
+
});
|
|
288
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
289
|
+
ref: ref,
|
|
290
|
+
style: sx(styles.cell, style),
|
|
291
|
+
...others,
|
|
292
|
+
children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
293
|
+
style: styles.cell,
|
|
294
|
+
children: children
|
|
295
|
+
}) : children
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
Table.displayName = 'Table';
|
|
299
|
+
Thead.displayName = 'Table.Thead';
|
|
300
|
+
Tbody.displayName = 'Table.Tbody';
|
|
301
|
+
Tfoot.displayName = 'Table.Tfoot';
|
|
302
|
+
Tr.displayName = 'Table.Tr';
|
|
303
|
+
Th.displayName = 'Table.Th';
|
|
304
|
+
Td.displayName = 'Table.Td';
|
|
305
|
+
|
|
306
|
+
// Attach sub-components
|
|
307
|
+
Table.Thead = Thead;
|
|
308
|
+
Table.Tbody = Tbody;
|
|
309
|
+
Table.Tfoot = Tfoot;
|
|
310
|
+
Table.Tr = Tr;
|
|
311
|
+
Table.Th = Th;
|
|
312
|
+
Table.Td = Td;
|
|
313
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TableContext","createContext","useTableContext","context","useContext","fontSizes","xs","rem","sm","md","lg","xl","useTableStyles","createStyles","theme","withBorder","captionSide","wrapper","flex","root","width","borderCollapse","borderWidth","borderColor","colorScheme","colors","dark","gray","caption","fontSize","color","paddingVertical","spacing","textAlign","order","useTableHeadStyles","thead","borderBottomWidth","borderBottomColor","useTableRowStyles","striped","isEven","tr","backgroundColor","useTableCellStyles","verticalSpacing","horizontalSpacing","withColumnBorders","isHeader","getVerticalPadding","getHorizontalPadding","cell","paddingHorizontal","white","black","borderRightWidth","borderRightColor","fontWeight","defaultProps","highlightOnHover","Table","exports","forwardRef","props","ref","children","_highlightOnHover","style","others","useComponentDefaultProps","styles","sx","name","jsx","Provider","value","ScrollView","horizontal","showsHorizontalScrollIndicator","jsxs","BoxView","Text","Thead","Tbody","childrenArray","React","Children","toArray","map","child","index","isValidElement","cloneElement","key","__index","Tfoot","Tr","Th","Td","displayName"],"sourceRoot":"../../../../src","sources":["components/Table/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;AAEA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AAA4C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAA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
semiBold = false,
|
|
28
28
|
fontSize,
|
|
29
|
+
weight,
|
|
30
|
+
align,
|
|
29
31
|
...otherProps
|
|
30
32
|
} = props;
|
|
31
33
|
const {
|
|
@@ -41,9 +43,12 @@ const Text = exports.Text = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
41
43
|
ref: ref,
|
|
42
44
|
style: [{
|
|
43
45
|
fontFamily: semiBold ? fontFamilySemiBold : bold ? fontFamilyBold : questrial ? 'Questrial' : fontFamily,
|
|
44
|
-
fontWeight: bold ? '900' : '300',
|
|
46
|
+
fontWeight: weight || (bold ? '900' : '300'),
|
|
45
47
|
fontSize: fontSize ? fontSize : (0, _lodashEs.get)(fontSizes, size, 16),
|
|
46
|
-
color: white ? 'white' : color ? propToColor(color, colors, primaryShade) : light.text
|
|
48
|
+
color: white ? 'white' : color ? propToColor(color, colors, primaryShade) : light.text,
|
|
49
|
+
...(align ? {
|
|
50
|
+
textAlign: align
|
|
51
|
+
} : {})
|
|
47
52
|
}, style],
|
|
48
53
|
...otherProps
|
|
49
54
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_themeProvider","require","_lodashEs","_react","_reactNative","_jsxRuntime","propToColor","color","colors","primaryShade","colorExistOnPalette","get","Text","exports","forwardRef","props","ref","style","white","size","bold","questrial","semiBold","fontSize","otherProps","fontFamily","fontFamilyBold","fontFamilySemiBold","fontSizes","light","useTheme","jsx","fontWeight","text"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;
|
|
1
|
+
{"version":3,"names":["_themeProvider","require","_lodashEs","_react","_reactNative","_jsxRuntime","propToColor","color","colors","primaryShade","colorExistOnPalette","get","Text","exports","forwardRef","props","ref","style","white","size","bold","questrial","semiBold","fontSize","weight","align","otherProps","fontFamily","fontFamilyBold","fontFamilySemiBold","fontSizes","light","useTheme","jsx","fontWeight","text","textAlign"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;AAcnD,MAAMK,WAAW,GAAGA,CAClBC,KAAa,EACbC,MAAkC,EAClCC,YAAoB,KACT;EACX,MAAMC,mBAAmB,GAAG,IAAAC,aAAG,EAC7BH,MAAM,EACN,GAAGD,KAAK,IAAIE,YAAY,EAAE,EAC1B,EACF,CAAW;EACX,IAAIC,mBAAmB,EAAE;IACvB,OAAOA,mBAAmB;EAC5B;EACA,OAAOH,KAAK;AACd,CAAC;AAEM,MAAMK,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IAAAE,iBAAU,EAAC,CAACC,KAAgB,EAAEC,GAAQ,KAAK;EAC7D,MAAM;IACJC,KAAK;IACLV,KAAK;IACLW,KAAK;IACLC,IAAI,GAAG,IAAI;IACXC,IAAI,GAAG,KAAK;IACZC,SAAS,GAAG,KAAK;IACjBC,QAAQ,GAAG,KAAK;IAChBC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACL,GAAGC;EACL,CAAC,GAAGX,KAAK;EAET,MAAM;IACJY,UAAU;IACVC,cAAc;IACdC,kBAAkB;IAClBrB,MAAM;IACNC,YAAY;IACZqB,SAAS;IACTC;EACF,CAAC,GAAG,IAAAC,uBAAQ,EAAC,CAAC;EAEd,oBACE,IAAA3B,WAAA,CAAA4B,GAAA,EAAC7B,YAAA,CAAAQ,IAAW;IACVI,GAAG,EAAEA,GAAI;IACTC,KAAK,EAAE,CACL;MACEU,UAAU,EAAEL,QAAQ,GAChBO,kBAAkB,GAClBT,IAAI,GACFQ,cAAc,GACdP,SAAS,GACP,WAAW,GACXM,UAAU;MAClBO,UAAU,EAAEV,MAAM,KAAKJ,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;MAC5CG,QAAQ,EAAEA,QAAQ,GAAGA,QAAQ,GAAG,IAAAZ,aAAG,EAACmB,SAAS,EAAEX,IAAI,EAAE,EAAE,CAAC;MACxDZ,KAAK,EAAEW,KAAK,GACR,OAAO,GACPX,KAAK,GACHD,WAAW,CAACC,KAAK,EAAEC,MAAM,EAAEC,YAAY,CAAC,GACxCsB,KAAK,CAACI,IAAI;MAChB,IAAIV,KAAK,GAAG;QAAEW,SAAS,EAAEX;MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC,EACDR,KAAK,CACL;IAAA,GACES;EAAU,CACf,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextInput = 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("../Text/index.js");
|
|
11
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
12
|
+
var _index3 = require("../../theme/index.js");
|
|
13
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
14
|
+
var _index4 = require("../Input/index.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
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); }
|
|
17
|
+
const useStyles = (0, _index3.createStyles)((theme, {
|
|
18
|
+
radius,
|
|
19
|
+
invalid,
|
|
20
|
+
withIcon,
|
|
21
|
+
withRightSection,
|
|
22
|
+
rightSectionWidth
|
|
23
|
+
}, {
|
|
24
|
+
variant,
|
|
25
|
+
size
|
|
26
|
+
}) => {
|
|
27
|
+
const getVariantStyles = () => {
|
|
28
|
+
if (variant === 'filled') {
|
|
29
|
+
return {
|
|
30
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
31
|
+
borderWidth: 1,
|
|
32
|
+
borderColor: 'transparent'
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (variant === 'unstyled') {
|
|
36
|
+
return {
|
|
37
|
+
backgroundColor: 'transparent',
|
|
38
|
+
borderWidth: 0,
|
|
39
|
+
paddingHorizontal: 0
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// default variant
|
|
44
|
+
return {
|
|
45
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
46
|
+
borderWidth: 1,
|
|
47
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4]
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const sizeValue = _index4.INPUT_SIZES[size] || _index4.INPUT_SIZES.md;
|
|
51
|
+
return {
|
|
52
|
+
wrapper: {
|
|
53
|
+
width: '100%'
|
|
54
|
+
},
|
|
55
|
+
label: {
|
|
56
|
+
fontSize: theme.fontSizes.sm,
|
|
57
|
+
fontWeight: '500',
|
|
58
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
59
|
+
marginBottom: theme.spacing.xs / 2
|
|
60
|
+
},
|
|
61
|
+
required: {
|
|
62
|
+
color: (theme.colors.red || [])[6]
|
|
63
|
+
},
|
|
64
|
+
description: {
|
|
65
|
+
fontSize: theme.fontSizes.xs,
|
|
66
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
67
|
+
marginTop: theme.spacing.xs / 2,
|
|
68
|
+
marginBottom: theme.spacing.xs / 2
|
|
69
|
+
},
|
|
70
|
+
error: {
|
|
71
|
+
fontSize: theme.fontSizes.xs,
|
|
72
|
+
color: (theme.colors.red || [])[6],
|
|
73
|
+
marginTop: theme.spacing.xs / 2
|
|
74
|
+
},
|
|
75
|
+
inputWrapper: {
|
|
76
|
+
position: 'relative'
|
|
77
|
+
},
|
|
78
|
+
input: {
|
|
79
|
+
...theme.fn.fontStyles(),
|
|
80
|
+
height: sizeValue,
|
|
81
|
+
fontSize: (0, _index3.getSize)({
|
|
82
|
+
size,
|
|
83
|
+
sizes: theme.fontSizes
|
|
84
|
+
}),
|
|
85
|
+
paddingHorizontal: variant === 'unstyled' ? 0 : (0, _rem.rem)(12),
|
|
86
|
+
paddingLeft: withIcon ? sizeValue : variant === 'unstyled' ? 0 : (0, _rem.rem)(12),
|
|
87
|
+
paddingRight: withRightSection ? (0, _rem.rem)(rightSectionWidth || sizeValue) : variant === 'unstyled' ? 0 : (0, _rem.rem)(12),
|
|
88
|
+
borderRadius: theme.fn.radius(radius),
|
|
89
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
90
|
+
...getVariantStyles(),
|
|
91
|
+
...(invalid && {
|
|
92
|
+
borderColor: (theme.colors.red || [])[6],
|
|
93
|
+
color: (theme.colors.red || [])[6]
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
icon: {
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
left: 0,
|
|
99
|
+
top: 0,
|
|
100
|
+
bottom: 0,
|
|
101
|
+
width: sizeValue,
|
|
102
|
+
justifyContent: 'center',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
zIndex: 1
|
|
105
|
+
},
|
|
106
|
+
rightSectionContainer: {
|
|
107
|
+
position: 'absolute',
|
|
108
|
+
right: 0,
|
|
109
|
+
top: 0,
|
|
110
|
+
bottom: 0,
|
|
111
|
+
width: (0, _rem.rem)(rightSectionWidth || sizeValue),
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
alignItems: 'center'
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
const defaultProps = {
|
|
118
|
+
size: 'sm',
|
|
119
|
+
radius: 'sm',
|
|
120
|
+
variant: 'default',
|
|
121
|
+
required: false
|
|
122
|
+
};
|
|
123
|
+
const TextInput = exports.TextInput = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
124
|
+
const {
|
|
125
|
+
label,
|
|
126
|
+
description,
|
|
127
|
+
error,
|
|
128
|
+
size,
|
|
129
|
+
radius,
|
|
130
|
+
icon,
|
|
131
|
+
rightSection,
|
|
132
|
+
rightSectionWidth,
|
|
133
|
+
required,
|
|
134
|
+
variant,
|
|
135
|
+
style,
|
|
136
|
+
wrapperStyle,
|
|
137
|
+
...others
|
|
138
|
+
} = (0, _themeProvider.useComponentDefaultProps)('TextInput', defaultProps, props);
|
|
139
|
+
const {
|
|
140
|
+
styles,
|
|
141
|
+
sx
|
|
142
|
+
} = useStyles({
|
|
143
|
+
radius,
|
|
144
|
+
invalid: !!error,
|
|
145
|
+
withIcon: !!icon,
|
|
146
|
+
withRightSection: !!rightSection,
|
|
147
|
+
rightSectionWidth
|
|
148
|
+
}, {
|
|
149
|
+
name: 'TextInput',
|
|
150
|
+
variant,
|
|
151
|
+
size
|
|
152
|
+
});
|
|
153
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
154
|
+
style: sx(styles.wrapper, wrapperStyle),
|
|
155
|
+
children: [label && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.Text, {
|
|
156
|
+
style: styles.label,
|
|
157
|
+
children: [label, required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
158
|
+
style: styles.required,
|
|
159
|
+
children: " *"
|
|
160
|
+
})]
|
|
161
|
+
}), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
162
|
+
style: styles.description,
|
|
163
|
+
children: description
|
|
164
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
165
|
+
style: styles.inputWrapper,
|
|
166
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
167
|
+
style: styles.icon,
|
|
168
|
+
children: icon
|
|
169
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
170
|
+
ref: ref,
|
|
171
|
+
style: sx(styles.input, style),
|
|
172
|
+
...others
|
|
173
|
+
}), rightSection && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
174
|
+
style: styles.rightSectionContainer,
|
|
175
|
+
children: rightSection
|
|
176
|
+
})]
|
|
177
|
+
}), error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
178
|
+
style: styles.error,
|
|
179
|
+
children: error
|
|
180
|
+
})]
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
TextInput.displayName = 'TextInput';
|
|
184
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_index3","_rem","_index4","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useStyles","createStyles","theme","radius","invalid","withIcon","withRightSection","rightSectionWidth","variant","size","getVariantStyles","backgroundColor","colorScheme","colors","dark","gray","borderWidth","borderColor","paddingHorizontal","white","sizeValue","INPUT_SIZES","md","wrapper","width","label","fontSize","fontSizes","sm","fontWeight","color","black","marginBottom","spacing","xs","required","red","description","marginTop","error","inputWrapper","position","input","fn","fontStyles","height","getSize","sizes","rem","paddingLeft","paddingRight","borderRadius","icon","left","top","bottom","justifyContent","alignItems","zIndex","rightSectionContainer","right","defaultProps","TextInput","exports","forwardRef","props","ref","rightSection","style","wrapperStyle","others","useComponentDefaultProps","styles","sx","name","jsxs","BoxView","children","Text","jsx","displayName"],"sourceRoot":"../../../../src","sources":["components/TextInput/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;AAMA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAAuC,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,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,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,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C3BE;MAAM,CACX,CAAC,EAEDH,YAAY,iBACX,IAAAvF,WAAA,CAAAmG,GAAA,EAACzG,MAAA,CAAAsG,OAAO;QAACR,KAAK,EAAEI,MAAM,CAACb,qBAAsB;QAAAkB,QAAA,EAAEV;MAAY,CAAU,CACtE;IAAA,CACM,CAAC,EAET5B,KAAK,iBAAI,IAAA3D,WAAA,CAAAmG,GAAA,EAACxG,OAAA,CAAAuG,IAAI;MAACV,KAAK,EAAEI,MAAM,CAACjC,KAAM;MAAAsC,QAAA,EAAEtC;IAAK,CAAO,CAAC;EAAA,CAC5C,CAAC;AAEd,CAAC,CAAC;AAEFuB,SAAS,CAACkB,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Textarea = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _index = require("../TextInput/index.js");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
const defaultProps = {
|
|
11
|
+
minRows: 3,
|
|
12
|
+
autosize: false
|
|
13
|
+
};
|
|
14
|
+
const Textarea = exports.Textarea = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
|
+
const {
|
|
16
|
+
minRows,
|
|
17
|
+
maxRows,
|
|
18
|
+
autosize,
|
|
19
|
+
style,
|
|
20
|
+
...others
|
|
21
|
+
} = {
|
|
22
|
+
...defaultProps,
|
|
23
|
+
...props
|
|
24
|
+
};
|
|
25
|
+
const [contentHeight, setContentHeight] = (0, _react.useState)(undefined);
|
|
26
|
+
const handleContentSizeChange = event => {
|
|
27
|
+
if (autosize) {
|
|
28
|
+
const height = event.nativeEvent.contentSize.height;
|
|
29
|
+
setContentHeight(height);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// Calculate height based on rows
|
|
34
|
+
const lineHeight = 20; // approximate line height
|
|
35
|
+
const paddingVertical = 12;
|
|
36
|
+
const minHeight = minRows ? minRows * lineHeight + paddingVertical * 2 : undefined;
|
|
37
|
+
const maxHeight = maxRows ? maxRows * lineHeight + paddingVertical * 2 : undefined;
|
|
38
|
+
const textareaStyle = {
|
|
39
|
+
height: autosize ? contentHeight : minHeight,
|
|
40
|
+
minHeight: minHeight,
|
|
41
|
+
maxHeight: maxHeight,
|
|
42
|
+
textAlignVertical: 'top'
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TextInput, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
multiline: true,
|
|
47
|
+
numberOfLines: minRows,
|
|
48
|
+
onContentSizeChange: handleContentSizeChange,
|
|
49
|
+
style: [textareaStyle, style],
|
|
50
|
+
...others
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
Textarea.displayName = 'Textarea';
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_index","_jsxRuntime","defaultProps","minRows","autosize","Textarea","exports","forwardRef","props","ref","maxRows","style","others","contentHeight","setContentHeight","useState","undefined","handleContentSizeChange","event","height","nativeEvent","contentSize","lineHeight","paddingVertical","minHeight","maxHeight","textareaStyle","textAlignVertical","jsx","TextInput","multiline","numberOfLines","onContentSizeChange","displayName"],"sourceRoot":"../../../../src","sources":["components/Textarea/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAA8D,IAAAE,WAAA,GAAAF,OAAA;AAa9D,MAAMG,YAAoC,GAAG;EAC3CC,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE;AACZ,CAAC;AAEM,MAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,gBAAG,IAAAE,iBAAU,EAA6B,CAACC,KAAK,EAAEC,GAAG,KAAK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