react-native-mantine 0.1.15 → 0.2.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/lib/commonjs/components/Accordion/index.js +251 -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 +108 -0
- package/lib/commonjs/components/Anchor/index.js.map +1 -0
- package/lib/commonjs/components/AspectRatio/index.js +66 -0
- package/lib/commonjs/components/AspectRatio/index.js.map +1 -0
- package/lib/commonjs/components/Avatar/index.js +129 -0
- package/lib/commonjs/components/Avatar/index.js.map +1 -0
- package/lib/commonjs/components/BackgroundImage/index.js +56 -0
- package/lib/commonjs/components/BackgroundImage/index.js.map +1 -0
- package/lib/commonjs/components/Badge/index.js +190 -0
- package/lib/commonjs/components/Badge/index.js.map +1 -0
- package/lib/commonjs/components/Blockquote/index.js +98 -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 +58 -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 +2 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Card/index.js +136 -0
- package/lib/commonjs/components/Card/index.js.map +1 -0
- package/lib/commonjs/components/Center/index.js +36 -0
- package/lib/commonjs/components/Center/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +140 -0
- package/lib/commonjs/components/Checkbox/index.js.map +1 -0
- package/lib/commonjs/components/Chip/index.js +269 -0
- package/lib/commonjs/components/Chip/index.js.map +1 -0
- package/lib/commonjs/components/CloseButton/index.js +137 -0
- package/lib/commonjs/components/CloseButton/index.js.map +1 -0
- package/lib/commonjs/components/Code/index.js +68 -0
- package/lib/commonjs/components/Code/index.js.map +1 -0
- package/lib/commonjs/components/Collapse/index.js +83 -0
- package/lib/commonjs/components/Collapse/index.js.map +1 -0
- package/lib/commonjs/components/ColorSwatch/index.js +96 -0
- package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
- package/lib/commonjs/components/Container/index.js +71 -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 +140 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -0
- package/lib/commonjs/components/Divider/index.js +148 -0
- package/lib/commonjs/components/Divider/index.js.map +1 -0
- package/lib/commonjs/components/Drawer/index.js +252 -0
- package/lib/commonjs/components/Drawer/index.js.map +1 -0
- package/lib/commonjs/components/Flex/index.js +63 -0
- package/lib/commonjs/components/Flex/index.js.map +1 -0
- package/lib/commonjs/components/Grid/index.js +145 -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 +133 -0
- package/lib/commonjs/components/Image/index.js.map +1 -0
- package/lib/commonjs/components/Indicator/index.js +199 -0
- package/lib/commonjs/components/Indicator/index.js.map +1 -0
- package/lib/commonjs/components/Kbd/index.js +96 -0
- package/lib/commonjs/components/Kbd/index.js.map +1 -0
- package/lib/commonjs/components/List/index.js +217 -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 +47 -0
- package/lib/commonjs/components/Mark/index.js.map +1 -0
- package/lib/commonjs/components/MediaQuery/index.js +89 -0
- package/lib/commonjs/components/MediaQuery/index.js.map +1 -0
- package/lib/commonjs/components/Menu/index.js +306 -0
- package/lib/commonjs/components/Menu/index.js.map +1 -0
- package/lib/commonjs/components/Modal/index.js +236 -0
- package/lib/commonjs/components/Modal/index.js.map +1 -0
- package/lib/commonjs/components/MultiSelect/index.js +300 -0
- package/lib/commonjs/components/MultiSelect/index.js.map +1 -0
- package/lib/commonjs/components/NativeSelect/index.js +295 -0
- package/lib/commonjs/components/NativeSelect/index.js.map +1 -0
- package/lib/commonjs/components/NavLink/index.js +164 -0
- package/lib/commonjs/components/NavLink/index.js.map +1 -0
- package/lib/commonjs/components/Notification/index.js +143 -0
- package/lib/commonjs/components/Notification/index.js.map +1 -0
- package/lib/commonjs/components/NumberInput/index.js +268 -0
- package/lib/commonjs/components/NumberInput/index.js.map +1 -0
- package/lib/commonjs/components/Overlay/index.js +78 -0
- package/lib/commonjs/components/Overlay/index.js.map +1 -0
- package/lib/commonjs/components/Pagination/index.js +254 -0
- package/lib/commonjs/components/Pagination/index.js.map +1 -0
- package/lib/commonjs/components/Paper/index.js +156 -0
- package/lib/commonjs/components/Paper/index.js.map +1 -0
- package/lib/commonjs/components/PasswordInput/index.js +68 -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 +163 -0
- package/lib/commonjs/components/Popover/index.js.map +1 -0
- package/lib/commonjs/components/Portal/index.js +70 -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 +136 -0
- package/lib/commonjs/components/Radio/index.js.map +1 -0
- package/lib/commonjs/components/Rating/index.js +152 -0
- package/lib/commonjs/components/Rating/index.js.map +1 -0
- package/lib/commonjs/components/RingProgress/index.js +175 -0
- package/lib/commonjs/components/RingProgress/index.js.map +1 -0
- package/lib/commonjs/components/SegmentedControl/index.js +226 -0
- package/lib/commonjs/components/SegmentedControl/index.js.map +1 -0
- package/lib/commonjs/components/Select/index.js +245 -0
- package/lib/commonjs/components/Select/index.js.map +1 -0
- package/lib/commonjs/components/SimpleGrid/index.js +102 -0
- package/lib/commonjs/components/SimpleGrid/index.js.map +1 -0
- package/lib/commonjs/components/Skeleton/index.js +112 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Slider/index.js +276 -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 +110 -0
- package/lib/commonjs/components/Spoiler/index.js.map +1 -0
- package/lib/commonjs/components/Stepper/index.js +276 -0
- package/lib/commonjs/components/Stepper/index.js.map +1 -0
- package/lib/commonjs/components/Switch/index.js +119 -0
- package/lib/commonjs/components/Switch/index.js.map +1 -0
- package/lib/commonjs/components/Table/index.js +314 -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 +185 -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 +145 -0
- package/lib/commonjs/components/ThemeIcon/index.js.map +1 -0
- package/lib/commonjs/components/Timeline/index.js +242 -0
- package/lib/commonjs/components/Timeline/index.js.map +1 -0
- package/lib/commonjs/components/Title/index.js +45 -0
- package/lib/commonjs/components/Title/index.js.map +1 -0
- package/lib/commonjs/components/Tooltip/index.js +187 -0
- package/lib/commonjs/components/Tooltip/index.js.map +1 -0
- package/lib/commonjs/components/TransferList/index.js +293 -0
- package/lib/commonjs/components/TransferList/index.js.map +1 -0
- package/lib/commonjs/components/Transition/index.js +175 -0
- package/lib/commonjs/components/Transition/index.js.map +1 -0
- package/lib/commonjs/components/index.js +759 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/theme/create-theme.js +1 -0
- 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 +5 -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/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/theme/create-theme.js +1 -0
- 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/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/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/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/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/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/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/utils/rem.d.ts +2 -2
- package/lib/typescript/module/src/theme/utils/rem.d.ts.map +1 -1
- package/package.json +3 -1
- 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 +1 -0
- 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/utils/rem.ts +9 -7
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Avatar = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../Text/index.js");
|
|
10
|
+
var _index2 = require("../BoxView/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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
const sizes = {
|
|
18
|
+
xs: (0, _rem.rem)(16),
|
|
19
|
+
sm: (0, _rem.rem)(26),
|
|
20
|
+
md: (0, _rem.rem)(38),
|
|
21
|
+
lg: (0, _rem.rem)(56),
|
|
22
|
+
xl: (0, _rem.rem)(84)
|
|
23
|
+
};
|
|
24
|
+
const useStyles = (0, _index3.createStyles)((theme, {
|
|
25
|
+
color,
|
|
26
|
+
radius,
|
|
27
|
+
size
|
|
28
|
+
}) => {
|
|
29
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
30
|
+
const sizeValue = typeof size === 'number' ? (0, _rem.rem)(size) : sizes[size] || sizes.md;
|
|
31
|
+
return {
|
|
32
|
+
root: {
|
|
33
|
+
width: sizeValue,
|
|
34
|
+
height: sizeValue,
|
|
35
|
+
borderRadius: theme.fn.radius(radius),
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
38
|
+
justifyContent: 'center',
|
|
39
|
+
alignItems: 'center'
|
|
40
|
+
},
|
|
41
|
+
image: {
|
|
42
|
+
width: '100%',
|
|
43
|
+
height: '100%'
|
|
44
|
+
},
|
|
45
|
+
placeholder: {
|
|
46
|
+
justifyContent: 'center',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
width: '100%',
|
|
49
|
+
height: '100%'
|
|
50
|
+
},
|
|
51
|
+
placeholderText: {
|
|
52
|
+
color: theme.white,
|
|
53
|
+
fontSize: typeof size === 'number' ? size / 2.5 : sizeValue / 2.5,
|
|
54
|
+
fontWeight: '700',
|
|
55
|
+
textTransform: 'uppercase'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
const defaultProps = {
|
|
60
|
+
size: 'md',
|
|
61
|
+
radius: 'xl',
|
|
62
|
+
color: 'gray'
|
|
63
|
+
};
|
|
64
|
+
const getInitials = name => {
|
|
65
|
+
const names = name.trim().split(' ');
|
|
66
|
+
if (names.length === 1) {
|
|
67
|
+
return names[0]?.substring(0, 2).toUpperCase() || '';
|
|
68
|
+
}
|
|
69
|
+
return ((names[0]?.[0] || '') + (names[names.length - 1]?.[0] || '')).toUpperCase();
|
|
70
|
+
};
|
|
71
|
+
const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
72
|
+
const {
|
|
73
|
+
src,
|
|
74
|
+
alt,
|
|
75
|
+
size,
|
|
76
|
+
radius,
|
|
77
|
+
color,
|
|
78
|
+
children,
|
|
79
|
+
imageProps,
|
|
80
|
+
style,
|
|
81
|
+
...others
|
|
82
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Avatar', defaultProps, props);
|
|
83
|
+
const [imageError, setImageError] = (0, _react.useState)(false);
|
|
84
|
+
const {
|
|
85
|
+
styles,
|
|
86
|
+
sx
|
|
87
|
+
} = useStyles({
|
|
88
|
+
color,
|
|
89
|
+
radius,
|
|
90
|
+
size
|
|
91
|
+
}, {
|
|
92
|
+
name: 'Avatar'
|
|
93
|
+
});
|
|
94
|
+
const shouldShowImage = src && !imageError;
|
|
95
|
+
const renderPlaceholder = () => {
|
|
96
|
+
if (children) {
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
98
|
+
style: styles.placeholder,
|
|
99
|
+
children: children
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (alt) {
|
|
103
|
+
const initials = getInitials(alt);
|
|
104
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
105
|
+
style: styles.placeholder,
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
107
|
+
style: styles.placeholderText,
|
|
108
|
+
children: initials
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
};
|
|
114
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
115
|
+
ref: ref,
|
|
116
|
+
style: sx(styles.root, style),
|
|
117
|
+
...others,
|
|
118
|
+
children: shouldShowImage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
119
|
+
source: {
|
|
120
|
+
uri: src || ''
|
|
121
|
+
},
|
|
122
|
+
style: styles.image,
|
|
123
|
+
onError: () => setImageError(true),
|
|
124
|
+
...imageProps
|
|
125
|
+
}) : renderPlaceholder()
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
Avatar.displayName = 'Avatar';
|
|
129
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","sizes","xs","rem","sm","md","lg","xl","useStyles","createStyles","theme","color","radius","size","colors","primaryColor","sizeValue","root","width","height","borderRadius","fn","overflow","backgroundColor","primaryBgColor","justifyContent","alignItems","image","placeholder","placeholderText","white","fontSize","fontWeight","textTransform","defaultProps","getInitials","name","names","trim","split","length","substring","toUpperCase","Avatar","exports","forwardRef","props","ref","src","alt","children","imageProps","style","others","useComponentDefaultProps","imageError","setImageError","useState","styles","sx","shouldShowImage","renderPlaceholder","jsx","BoxView","initials","Text","Image","source","uri","onError","displayName"],"sourceRoot":"../../../../src","sources":["components/Avatar/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;AAOA,IAAAI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B,CAAC;EACnB,CACM,CAAC;AAEd,CAAC,CAAC;AAEFlB,MAAM,CAAC2B,WAAW,GAAG,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BackgroundImage = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
10
|
+
var _index = require("../../theme/index.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
const useStyles = (0, _index.createStyles)((theme, {
|
|
15
|
+
radius
|
|
16
|
+
}) => ({
|
|
17
|
+
root: {
|
|
18
|
+
borderRadius: theme.fn.radius(radius),
|
|
19
|
+
overflow: 'hidden'
|
|
20
|
+
},
|
|
21
|
+
imageStyle: {
|
|
22
|
+
borderRadius: theme.fn.radius(radius)
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
const defaultProps = {
|
|
26
|
+
radius: 0,
|
|
27
|
+
resizeMode: 'cover'
|
|
28
|
+
};
|
|
29
|
+
const BackgroundImage = exports.BackgroundImage = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
30
|
+
const {
|
|
31
|
+
source,
|
|
32
|
+
radius,
|
|
33
|
+
children,
|
|
34
|
+
style,
|
|
35
|
+
imageStyle,
|
|
36
|
+
...others
|
|
37
|
+
} = (0, _themeProvider.useComponentDefaultProps)('BackgroundImage', defaultProps, props);
|
|
38
|
+
const {
|
|
39
|
+
styles,
|
|
40
|
+
sx
|
|
41
|
+
} = useStyles({
|
|
42
|
+
radius
|
|
43
|
+
}, {
|
|
44
|
+
name: 'BackgroundImage'
|
|
45
|
+
});
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ImageBackground, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
source: source,
|
|
49
|
+
style: sx(styles.root, style),
|
|
50
|
+
imageStyle: [styles.imageStyle, imageStyle],
|
|
51
|
+
...others,
|
|
52
|
+
children: children
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
BackgroundImage.displayName = 'BackgroundImage';
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_themeProvider","_index","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useStyles","createStyles","theme","radius","root","borderRadius","fn","overflow","imageStyle","defaultProps","resizeMode","BackgroundImage","exports","forwardRef","props","ref","source","children","style","others","useComponentDefaultProps","styles","sx","name","jsx","ImageBackground","displayName"],"sourceRoot":"../../../../src","sources":["components/BackgroundImage/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAA2C,IAA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AACI,EAAE,CAACH,MAAM,CAACA,MAAM,CAAC;IACrCI,QAAQ,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE;IACVH,YAAY,EAAEH,KAAK,CAACI,EAAE,CAACH,MAAM,CAACA,MAAM;EACtC;AACF,CAAC,CACH,CAAC;AAED,MAAMM,YAA2C,GAAG;EAClDN,MAAM,EAAE,CAAC;EACTO,UAAU,EAAE;AACd,CAAC;AAEM,MAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,gBAAG,IAAAE,iBAAU,EAA4B,CAACC,KAAK,EAAEC,GAAG,KAAK;EACnF,MAAM;IACJC,MAAM;IACNb,MAAM;IACNc,QAAQ;IACRC,KAAK;IACLV,UAAU;IACV,GAAGW;EACL,CAAC,GAAG,IAAAC,uCAAwB,EAAC,iBAAiB,EAAEX,YAAY,EAAEK,KAAK,CAAC;EAEpE,MAAM;IAAEO,MAAM;IAAEC;EAAE,CAAC,GAAGtB,SAAS,CAC7B;IAAEG;EAAO,CAAC,EACV;IAAEoB,IAAI,EAAE;EAAkB,CAC5B,CAAQ;EAER,oBACE,IAAA5C,WAAA,CAAA6C,GAAA,EAAChD,YAAA,CAAAiD,eAAe;IACdV,GAAG,EAAEA,GAAI;IACTC,MAAM,EAAEA,MAAO;IACfE,KAAK,EAAEI,EAAE,CAACD,MAAM,CAACjB,IAAI,EAAEc,KAAK,CAAE;IAC9BV,UAAU,EAAE,CAACa,MAAM,CAACb,UAAU,EAAEA,UAAU,CAAE;IAAA,GACxCW,MAAM;IAAAF,QAAA,EAETA;EAAQ,CACM,CAAC;AAEtB,CAAC,CAAC;AAEFN,eAAe,CAACe,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Badge = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _index = require("../Text/index.js");
|
|
9
|
+
var _index2 = require("../BoxView/index.js");
|
|
10
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
11
|
+
var _index3 = require("../../theme/index.js");
|
|
12
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
const sizes = {
|
|
17
|
+
xs: {
|
|
18
|
+
fontSize: (0, _rem.rem)(9),
|
|
19
|
+
height: (0, _rem.rem)(16),
|
|
20
|
+
paddingHorizontal: (0, _rem.rem)(6)
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
fontSize: (0, _rem.rem)(10),
|
|
24
|
+
height: (0, _rem.rem)(18),
|
|
25
|
+
paddingHorizontal: (0, _rem.rem)(8)
|
|
26
|
+
},
|
|
27
|
+
md: {
|
|
28
|
+
fontSize: (0, _rem.rem)(11),
|
|
29
|
+
height: (0, _rem.rem)(20),
|
|
30
|
+
paddingHorizontal: (0, _rem.rem)(10)
|
|
31
|
+
},
|
|
32
|
+
lg: {
|
|
33
|
+
fontSize: (0, _rem.rem)(13),
|
|
34
|
+
height: (0, _rem.rem)(26),
|
|
35
|
+
paddingHorizontal: (0, _rem.rem)(12)
|
|
36
|
+
},
|
|
37
|
+
xl: {
|
|
38
|
+
fontSize: (0, _rem.rem)(16),
|
|
39
|
+
height: (0, _rem.rem)(32),
|
|
40
|
+
paddingHorizontal: (0, _rem.rem)(16)
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const dotSizes = {
|
|
44
|
+
xs: (0, _rem.rem)(4),
|
|
45
|
+
sm: (0, _rem.rem)(4),
|
|
46
|
+
md: (0, _rem.rem)(6),
|
|
47
|
+
lg: (0, _rem.rem)(8),
|
|
48
|
+
xl: (0, _rem.rem)(10)
|
|
49
|
+
};
|
|
50
|
+
const useStyles = (0, _index3.createStyles)((theme, {
|
|
51
|
+
color,
|
|
52
|
+
radius,
|
|
53
|
+
fullWidth
|
|
54
|
+
}, {
|
|
55
|
+
variant,
|
|
56
|
+
size
|
|
57
|
+
}) => {
|
|
58
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
59
|
+
const sizeStyles = sizes[size] || sizes.md;
|
|
60
|
+
const getVariantStyles = () => {
|
|
61
|
+
switch (variant) {
|
|
62
|
+
case 'filled':
|
|
63
|
+
return {
|
|
64
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
65
|
+
color: theme.white
|
|
66
|
+
};
|
|
67
|
+
case 'light':
|
|
68
|
+
return {
|
|
69
|
+
backgroundColor: colors?.[0] || colors?.[1] || (theme.colors.gray || [])[0],
|
|
70
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
71
|
+
};
|
|
72
|
+
case 'outline':
|
|
73
|
+
return {
|
|
74
|
+
backgroundColor: 'transparent',
|
|
75
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
76
|
+
borderWidth: 1,
|
|
77
|
+
borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
78
|
+
};
|
|
79
|
+
case 'dot':
|
|
80
|
+
return {
|
|
81
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : theme.white,
|
|
82
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3]
|
|
85
|
+
};
|
|
86
|
+
default:
|
|
87
|
+
return {
|
|
88
|
+
backgroundColor: colors?.[6] || theme.primaryBgColor,
|
|
89
|
+
color: theme.white
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
root: {
|
|
95
|
+
...sizeStyles,
|
|
96
|
+
...getVariantStyles(),
|
|
97
|
+
borderRadius: theme.fn.radius(radius),
|
|
98
|
+
flexDirection: 'row',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
fontWeight: '700',
|
|
102
|
+
textTransform: 'uppercase',
|
|
103
|
+
overflow: 'hidden',
|
|
104
|
+
...(fullWidth && {
|
|
105
|
+
width: '100%'
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
inner: {
|
|
109
|
+
flexDirection: 'row',
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
overflow: 'hidden'
|
|
113
|
+
},
|
|
114
|
+
leftSection: {
|
|
115
|
+
marginRight: theme.spacing.xs / 2
|
|
116
|
+
},
|
|
117
|
+
rightSection: {
|
|
118
|
+
marginLeft: theme.spacing.xs / 2
|
|
119
|
+
},
|
|
120
|
+
dot: {
|
|
121
|
+
width: dotSizes[size] || dotSizes.md,
|
|
122
|
+
height: dotSizes[size] || dotSizes.md,
|
|
123
|
+
borderRadius: dotSizes[size] || dotSizes.md,
|
|
124
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
125
|
+
marginRight: theme.spacing.xs
|
|
126
|
+
},
|
|
127
|
+
label: {
|
|
128
|
+
fontSize: sizeStyles.fontSize,
|
|
129
|
+
fontWeight: '700',
|
|
130
|
+
textTransform: 'uppercase',
|
|
131
|
+
whiteSpace: 'nowrap',
|
|
132
|
+
overflow: 'hidden'
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
const defaultProps = {
|
|
137
|
+
color: 'blue',
|
|
138
|
+
variant: 'light',
|
|
139
|
+
size: 'md',
|
|
140
|
+
radius: 'xl',
|
|
141
|
+
fullWidth: false
|
|
142
|
+
};
|
|
143
|
+
const Badge = exports.Badge = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
144
|
+
const {
|
|
145
|
+
color,
|
|
146
|
+
variant,
|
|
147
|
+
size,
|
|
148
|
+
radius,
|
|
149
|
+
fullWidth,
|
|
150
|
+
leftSection,
|
|
151
|
+
rightSection,
|
|
152
|
+
children,
|
|
153
|
+
style,
|
|
154
|
+
...others
|
|
155
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Badge', defaultProps, props);
|
|
156
|
+
const {
|
|
157
|
+
styles,
|
|
158
|
+
sx
|
|
159
|
+
} = useStyles({
|
|
160
|
+
color,
|
|
161
|
+
radius,
|
|
162
|
+
fullWidth
|
|
163
|
+
}, {
|
|
164
|
+
name: 'Badge',
|
|
165
|
+
variant,
|
|
166
|
+
size
|
|
167
|
+
});
|
|
168
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
169
|
+
ref: ref,
|
|
170
|
+
style: sx(styles.root, style),
|
|
171
|
+
...others,
|
|
172
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.BoxView, {
|
|
173
|
+
style: styles.inner,
|
|
174
|
+
children: [variant === 'dot' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
175
|
+
style: styles.dot
|
|
176
|
+
}), leftSection && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
177
|
+
style: styles.leftSection,
|
|
178
|
+
children: leftSection
|
|
179
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
180
|
+
style: styles.label,
|
|
181
|
+
children: children
|
|
182
|
+
}), rightSection && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
|
|
183
|
+
style: styles.rightSection,
|
|
184
|
+
children: rightSection
|
|
185
|
+
})]
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
Badge.displayName = 'Badge';
|
|
190
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","sizes","xs","fontSize","rem","height","paddingHorizontal","sm","md","lg","xl","dotSizes","useStyles","createStyles","theme","color","radius","fullWidth","variant","size","colors","primaryColor","sizeStyles","getVariantStyles","backgroundColor","primaryBgColor","white","gray","borderWidth","borderColor","colorScheme","dark","black","root","borderRadius","fn","flexDirection","alignItems","justifyContent","fontWeight","textTransform","overflow","width","inner","leftSection","marginRight","spacing","rightSection","marginLeft","dot","label","whiteSpace","defaultProps","Badge","exports","forwardRef","props","ref","children","style","others","useComponentDefaultProps","styles","sx","name","jsx","BoxView","jsxs","Text","displayName"],"sourceRoot":"../../../../src","sources":["components/Badge/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAQA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA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M,CAAC7B,IAAI,EAAE0B,KAAK,CAAE;IAAA,GAAKC,MAAM;IAAAF,QAAA,eAC1D,IAAA9E,WAAA,CAAAuF,IAAA,EAAC3F,OAAA,CAAA0F,OAAO;MAACP,KAAK,EAAEG,MAAM,CAACnB,KAAM;MAAAe,QAAA,GAC1BxC,OAAO,KAAK,KAAK,iBAAI,IAAAtC,WAAA,CAAAqF,GAAA,EAACzF,OAAA,CAAA0F,OAAO;QAACP,KAAK,EAAEG,MAAM,CAACb;MAAI,CAAE,CAAC,EACnDL,WAAW,iBAAI,IAAAhE,WAAA,CAAAqF,GAAA,EAACzF,OAAA,CAAA0F,OAAO;QAACP,KAAK,EAAEG,MAAM,CAAClB,WAAY;QAAAc,QAAA,EAAEd;MAAW,CAAU,CAAC,eAC3E,IAAAhE,WAAA,CAAAqF,GAAA,EAAC1F,MAAA,CAAA6F,IAAI;QAACT,KAAK,EAAEG,MAAM,CAACZ,KAAM;QAAAQ,QAAA,EAAEA;MAAQ,CAAO,CAAC,EAC3CX,YAAY,iBAAI,IAAAnE,WAAA,CAAAqF,GAAA,EAACzF,OAAA,CAAA0F,OAAO;QAACP,KAAK,EAAEG,MAAM,CAACf,YAAa;QAAAW,QAAA,EAAEX;MAAY,CAAU,CAAC;IAAA,CACvE;EAAC,CACH,CAAC;AAEd,CAAC,CAAC;AAEFM,KAAK,CAACgB,WAAW,GAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Blockquote = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _index = require("../BoxView/index.js");
|
|
9
|
+
var _index2 = require("../Text/index.js");
|
|
10
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
11
|
+
var _index3 = require("../../theme/index.js");
|
|
12
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
const useStyles = (0, _index3.createStyles)((theme, {
|
|
17
|
+
color,
|
|
18
|
+
radius
|
|
19
|
+
}) => {
|
|
20
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
21
|
+
return {
|
|
22
|
+
root: {
|
|
23
|
+
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] || theme.colors.gray?.[8] : theme.colors.gray?.[0] || theme.colors.gray?.[1],
|
|
24
|
+
borderLeftWidth: 4,
|
|
25
|
+
borderLeftColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
26
|
+
borderRadius: theme.fn.radius(radius),
|
|
27
|
+
padding: theme.spacing.md
|
|
28
|
+
},
|
|
29
|
+
inner: {
|
|
30
|
+
flexDirection: 'row'
|
|
31
|
+
},
|
|
32
|
+
icon: {
|
|
33
|
+
marginRight: theme.spacing.md,
|
|
34
|
+
marginTop: (0, _rem.rem)(2)
|
|
35
|
+
},
|
|
36
|
+
body: {
|
|
37
|
+
flex: 1
|
|
38
|
+
},
|
|
39
|
+
content: {
|
|
40
|
+
fontSize: (0, _rem.rem)(16),
|
|
41
|
+
lineHeight: (0, _rem.rem)(24),
|
|
42
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark?.[0] || theme.white : theme.black,
|
|
43
|
+
marginBottom: 0
|
|
44
|
+
},
|
|
45
|
+
cite: {
|
|
46
|
+
fontSize: (0, _rem.rem)(14),
|
|
47
|
+
marginTop: theme.spacing.xs,
|
|
48
|
+
color: theme.colorScheme === 'dark' ? theme.colors.dark?.[2] || theme.colors.gray?.[5] : theme.colors.gray?.[6] || theme.colors.gray?.[7]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
const defaultProps = {
|
|
53
|
+
color: 'blue',
|
|
54
|
+
radius: 'sm'
|
|
55
|
+
};
|
|
56
|
+
const Blockquote = exports.Blockquote = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
57
|
+
const {
|
|
58
|
+
color,
|
|
59
|
+
icon,
|
|
60
|
+
cite,
|
|
61
|
+
radius,
|
|
62
|
+
children,
|
|
63
|
+
style
|
|
64
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Blockquote', defaultProps, props);
|
|
65
|
+
const {
|
|
66
|
+
styles,
|
|
67
|
+
sx,
|
|
68
|
+
...others
|
|
69
|
+
} = useStyles({
|
|
70
|
+
color,
|
|
71
|
+
radius
|
|
72
|
+
}, {
|
|
73
|
+
name: 'Blockquote'
|
|
74
|
+
});
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
76
|
+
ref: ref,
|
|
77
|
+
style: sx(styles.root, style),
|
|
78
|
+
...others,
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
80
|
+
style: styles.inner,
|
|
81
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
82
|
+
style: styles.icon,
|
|
83
|
+
children: icon
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
85
|
+
style: styles.body,
|
|
86
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
87
|
+
style: styles.content,
|
|
88
|
+
children: children
|
|
89
|
+
}), cite && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
90
|
+
style: styles.cite,
|
|
91
|
+
children: cite
|
|
92
|
+
})]
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
Blockquote.displayName = 'Blockquote';
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useStyles","createStyles","theme","color","radius","colors","primaryColor","root","backgroundColor","colorScheme","dark","gray","borderLeftWidth","borderLeftColor","primaryBgColor","borderRadius","fn","padding","spacing","md","inner","flexDirection","icon","marginRight","marginTop","rem","body","flex","content","fontSize","lineHeight","white","black","marginBottom","cite","xs","defaultProps","Blockquote","exports","forwardRef","props","ref","children","style","useComponentDefaultProps","styles","sx","others","name","jsx","BoxView","jsxs","Text","displayName"],"sourceRoot":"../../../../src","sources":["components/Blockquote/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAA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IAAA,EAAC7E,MAAA,CAAA4E,OAAO;QAACP,KAAK,EAAEE,MAAM,CAACnB,IAAK;QAAAgB,QAAA,gBAC1B,IAAA/D,WAAA,CAAAsE,GAAA,EAAC1E,OAAA,CAAA6E,IAAI;UAACT,KAAK,EAAEE,MAAM,CAACjB,OAAQ;UAAAc,QAAA,EAAEA;QAAQ,CAAO,CAAC,EAC7CR,IAAI,iBAAI,IAAAvD,WAAA,CAAAsE,GAAA,EAAC1E,OAAA,CAAA6E,IAAI;UAACT,KAAK,EAAEE,MAAM,CAACX,IAAK;UAAAQ,QAAA,EAAER;QAAI,CAAO,CAAC;MAAA,CACzC,CAAC;IAAA,CACH;EAAC,CACH,CAAC;AAEd,CAAC,CAAC;AAEFG,UAAU,CAACgB,WAAW,GAAG,YAAY","ignoreList":[]}
|
|
@@ -7,22 +7,86 @@ exports.BoxView = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
// Spacing value mapping
|
|
11
|
+
const spacingMap = {
|
|
12
|
+
xs: 4,
|
|
13
|
+
sm: 8,
|
|
14
|
+
md: 12,
|
|
15
|
+
lg: 16,
|
|
16
|
+
xl: 20
|
|
17
|
+
};
|
|
18
|
+
const getSpacingValue = value => {
|
|
19
|
+
if (value === undefined) return undefined;
|
|
20
|
+
if (typeof value === 'number') return value;
|
|
21
|
+
return spacingMap[value] || 0;
|
|
22
|
+
};
|
|
10
23
|
const BoxView = exports.BoxView = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
11
24
|
const {
|
|
12
25
|
style,
|
|
13
26
|
fullWidth,
|
|
14
27
|
fullHeight,
|
|
28
|
+
p,
|
|
29
|
+
px,
|
|
30
|
+
py,
|
|
31
|
+
pt,
|
|
32
|
+
pb,
|
|
33
|
+
pl,
|
|
34
|
+
pr,
|
|
35
|
+
m,
|
|
36
|
+
mx,
|
|
37
|
+
my,
|
|
38
|
+
mt,
|
|
39
|
+
mb,
|
|
40
|
+
ml,
|
|
41
|
+
mr,
|
|
15
42
|
...otherProps
|
|
16
43
|
} = props;
|
|
44
|
+
const spacingStyle = {};
|
|
45
|
+
|
|
46
|
+
// Padding
|
|
47
|
+
if (p !== undefined) {
|
|
48
|
+
const value = getSpacingValue(p);
|
|
49
|
+
spacingStyle.padding = value;
|
|
50
|
+
}
|
|
51
|
+
if (px !== undefined) {
|
|
52
|
+
const value = getSpacingValue(px);
|
|
53
|
+
spacingStyle.paddingHorizontal = value;
|
|
54
|
+
}
|
|
55
|
+
if (py !== undefined) {
|
|
56
|
+
const value = getSpacingValue(py);
|
|
57
|
+
spacingStyle.paddingVertical = value;
|
|
58
|
+
}
|
|
59
|
+
if (pt !== undefined) spacingStyle.paddingTop = getSpacingValue(pt);
|
|
60
|
+
if (pb !== undefined) spacingStyle.paddingBottom = getSpacingValue(pb);
|
|
61
|
+
if (pl !== undefined) spacingStyle.paddingLeft = getSpacingValue(pl);
|
|
62
|
+
if (pr !== undefined) spacingStyle.paddingRight = getSpacingValue(pr);
|
|
63
|
+
|
|
64
|
+
// Margin
|
|
65
|
+
if (m !== undefined) {
|
|
66
|
+
const value = getSpacingValue(m);
|
|
67
|
+
spacingStyle.margin = value;
|
|
68
|
+
}
|
|
69
|
+
if (mx !== undefined) {
|
|
70
|
+
const value = getSpacingValue(mx);
|
|
71
|
+
spacingStyle.marginHorizontal = value;
|
|
72
|
+
}
|
|
73
|
+
if (my !== undefined) {
|
|
74
|
+
const value = getSpacingValue(my);
|
|
75
|
+
spacingStyle.marginVertical = value;
|
|
76
|
+
}
|
|
77
|
+
if (mt !== undefined) spacingStyle.marginTop = getSpacingValue(mt);
|
|
78
|
+
if (mb !== undefined) spacingStyle.marginBottom = getSpacingValue(mb);
|
|
79
|
+
if (ml !== undefined) spacingStyle.marginLeft = getSpacingValue(ml);
|
|
80
|
+
if (mr !== undefined) spacingStyle.marginRight = getSpacingValue(mr);
|
|
17
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
18
|
-
style: [
|
|
82
|
+
style: [{
|
|
19
83
|
...(fullWidth ? {
|
|
20
84
|
width: '100%'
|
|
21
85
|
} : {}),
|
|
22
86
|
...(fullHeight ? {
|
|
23
87
|
height: '100%'
|
|
24
88
|
} : {})
|
|
25
|
-
}],
|
|
89
|
+
}, spacingStyle, style],
|
|
26
90
|
ref: ref,
|
|
27
91
|
...otherProps
|
|
28
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","BoxView","exports","forwardRef","props","ref","style","fullWidth","fullHeight","otherProps","jsx","View","width","height"],"sourceRoot":"../../../../src","sources":["components/BoxView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAmD,IAAAE,WAAA,GAAAF,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","spacingMap","xs","sm","md","lg","xl","getSpacingValue","value","undefined","BoxView","exports","forwardRef","props","ref","style","fullWidth","fullHeight","p","px","py","pt","pb","pl","pr","m","mx","my","mt","mb","ml","mr","otherProps","spacingStyle","padding","paddingHorizontal","paddingVertical","paddingTop","paddingBottom","paddingLeft","paddingRight","margin","marginHorizontal","marginVertical","marginTop","marginBottom","marginLeft","marginRight","jsx","View","width","height"],"sourceRoot":"../../../../src","sources":["components/BoxView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAmD,IAAAE,WAAA,GAAAF,OAAA;AAMnD;AACA,MAAMG,UAAkC,GAAG;EACzCC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,eAAe,GAAIC,KAAkC,I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