react-native-mantine 0.1.13 → 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 @@
|
|
|
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","rem","sm","md","lg","xl","useStyles","createStyles","theme","orientation","color","size","variant","labelPosition","lineColor","colors","colorScheme","dark","gray","lineSize","getBorderStyle","isHorizontal","root","flexDirection","alignItems","width","height","line","borderBottomWidth","borderBottomColor","borderStyle","borderLeftWidth","borderLeftColor","withLabel","flex","labelContainer","paddingHorizontal","spacing","paddingVertical","label","fontSize","fontSizes","lineLeft","lineRight","defaultProps","Divider","exports","forwardRef","props","ref","style","others","useComponentDefaultProps","styles","sx","name","jsx","BoxView","jsxs","children","Text","displayName"],"sourceRoot":"../../../../src","sources":["components/Divider/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK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CAAC,eACpE,IAAAhE,WAAA,CAAA8E,GAAA,EAACnF,MAAA,CAAAoF,OAAO;MAACP,KAAK,EAAEG,MAAM,CAAClB,cAAe;MAAAwB,QAAA,EACnC,OAAOpB,KAAK,KAAK,QAAQ,gBAAG,IAAA7D,WAAA,CAAA8E,GAAA,EAAClF,OAAA,CAAAsF,IAAI;QAACV,KAAK,EAAEG,MAAM,CAACd,KAAM;QAAAoB,QAAA,EAAEpB;MAAK,CAAO,CAAC,GAAGA;IAAK,CACvE,CAAC,eACV,IAAA7D,WAAA,CAAA8E,GAAA,EAACnF,MAAA,CAAAoF,OAAO;MAACP,KAAK,EAAE,CAACG,MAAM,CAAC1B,IAAI,EAAE0B,MAAM,CAACpB,SAAS,EAAEoB,MAAM,CAACV,SAAS;IAAE,CAAE,CAAC;EAAA,CAC9D,CAAC;AAEd,CAAC,CAAC;AAEFE,OAAO,CAACgB,WAAW,GAAG,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Drawer = 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 _index3 = require("../Overlay/index.js");
|
|
12
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
13
|
+
var _index4 = require("../../theme/index.js");
|
|
14
|
+
var _rem = require("../../theme/utils/rem.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
const sizes = {
|
|
19
|
+
xs: 180,
|
|
20
|
+
sm: 240,
|
|
21
|
+
md: 320,
|
|
22
|
+
lg: 420,
|
|
23
|
+
xl: 560
|
|
24
|
+
};
|
|
25
|
+
const useStyles = (0, _index4.createStyles)((theme, {
|
|
26
|
+
size,
|
|
27
|
+
padding,
|
|
28
|
+
position
|
|
29
|
+
}) => {
|
|
30
|
+
const getPadding = () => {
|
|
31
|
+
if (padding === undefined) return theme.spacing.md;
|
|
32
|
+
if (typeof padding === 'number') return (0, _rem.rem)(padding);
|
|
33
|
+
return theme.spacing[padding] || theme.spacing.md;
|
|
34
|
+
};
|
|
35
|
+
const getSize = () => {
|
|
36
|
+
if (typeof size === 'number') return (0, _rem.rem)(size);
|
|
37
|
+
return (0, _rem.rem)(sizes[size] || sizes.md);
|
|
38
|
+
};
|
|
39
|
+
const isHorizontal = position === 'left' || position === 'right';
|
|
40
|
+
const dimensionKey = isHorizontal ? 'width' : 'height';
|
|
41
|
+
return {
|
|
42
|
+
overlay: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
backgroundColor: 'rgba(0, 0, 0, 0.001)',
|
|
45
|
+
justifyContent: position === 'bottom' ? 'flex-end' : position === 'top' ? 'flex-start' : 'center',
|
|
46
|
+
alignItems: position === 'right' ? 'flex-end' : position === 'left' ? 'flex-start' : 'stretch'
|
|
47
|
+
},
|
|
48
|
+
container: {
|
|
49
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
|
|
50
|
+
[dimensionKey]: getSize(),
|
|
51
|
+
maxHeight: '100%',
|
|
52
|
+
maxWidth: '100%',
|
|
53
|
+
...(position === 'left' && {
|
|
54
|
+
borderTopRightRadius: theme.fn.radius('md'),
|
|
55
|
+
borderBottomRightRadius: theme.fn.radius('md')
|
|
56
|
+
}),
|
|
57
|
+
...(position === 'right' && {
|
|
58
|
+
borderTopLeftRadius: theme.fn.radius('md'),
|
|
59
|
+
borderBottomLeftRadius: theme.fn.radius('md')
|
|
60
|
+
}),
|
|
61
|
+
...(position === 'top' && {
|
|
62
|
+
borderBottomLeftRadius: theme.fn.radius('md'),
|
|
63
|
+
borderBottomRightRadius: theme.fn.radius('md')
|
|
64
|
+
}),
|
|
65
|
+
...(position === 'bottom' && {
|
|
66
|
+
borderTopLeftRadius: theme.fn.radius('md'),
|
|
67
|
+
borderTopRightRadius: theme.fn.radius('md')
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
header: {
|
|
71
|
+
padding: getPadding(),
|
|
72
|
+
borderBottomWidth: 1,
|
|
73
|
+
borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[2],
|
|
74
|
+
flexDirection: 'row',
|
|
75
|
+
justifyContent: 'space-between',
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
},
|
|
78
|
+
title: {
|
|
79
|
+
fontSize: theme.fontSizes.lg,
|
|
80
|
+
fontWeight: '600',
|
|
81
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
82
|
+
flex: 1
|
|
83
|
+
},
|
|
84
|
+
closeButton: {
|
|
85
|
+
width: (0, _rem.rem)(32),
|
|
86
|
+
height: (0, _rem.rem)(32),
|
|
87
|
+
borderRadius: (0, _rem.rem)(16),
|
|
88
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
marginLeft: theme.spacing.md
|
|
92
|
+
},
|
|
93
|
+
closeButtonText: {
|
|
94
|
+
fontSize: (0, _rem.rem)(20),
|
|
95
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black
|
|
96
|
+
},
|
|
97
|
+
body: {
|
|
98
|
+
padding: getPadding(),
|
|
99
|
+
flex: 1
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
const defaultProps = {
|
|
104
|
+
size: 'md',
|
|
105
|
+
padding: 'md',
|
|
106
|
+
position: 'left',
|
|
107
|
+
closeOnClickOutside: true,
|
|
108
|
+
withOverlay: true,
|
|
109
|
+
overlayOpacity: 0.6,
|
|
110
|
+
overlayColor: '#000',
|
|
111
|
+
withCloseButton: true,
|
|
112
|
+
transitionDuration: 250,
|
|
113
|
+
zIndex: 1000
|
|
114
|
+
};
|
|
115
|
+
const Drawer = exports.Drawer = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
116
|
+
const {
|
|
117
|
+
opened,
|
|
118
|
+
onClose,
|
|
119
|
+
title,
|
|
120
|
+
children,
|
|
121
|
+
size,
|
|
122
|
+
padding,
|
|
123
|
+
position,
|
|
124
|
+
closeOnClickOutside,
|
|
125
|
+
withOverlay,
|
|
126
|
+
overlayOpacity,
|
|
127
|
+
overlayColor,
|
|
128
|
+
withCloseButton,
|
|
129
|
+
style,
|
|
130
|
+
transitionDuration,
|
|
131
|
+
...others
|
|
132
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Drawer', defaultProps, props);
|
|
133
|
+
const {
|
|
134
|
+
styles,
|
|
135
|
+
sx
|
|
136
|
+
} = useStyles({
|
|
137
|
+
size: size,
|
|
138
|
+
padding: padding,
|
|
139
|
+
position: position
|
|
140
|
+
}, {
|
|
141
|
+
name: 'Drawer'
|
|
142
|
+
});
|
|
143
|
+
const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
144
|
+
const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
145
|
+
const getSlideValue = () => {
|
|
146
|
+
const screenWidth = _reactNative.Dimensions.get('window').width;
|
|
147
|
+
const screenHeight = _reactNative.Dimensions.get('window').height;
|
|
148
|
+
switch (position) {
|
|
149
|
+
case 'left':
|
|
150
|
+
return -screenWidth;
|
|
151
|
+
case 'right':
|
|
152
|
+
return screenWidth;
|
|
153
|
+
case 'top':
|
|
154
|
+
return -screenHeight;
|
|
155
|
+
case 'bottom':
|
|
156
|
+
return screenHeight;
|
|
157
|
+
default:
|
|
158
|
+
return -screenWidth;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
(0, _react.useEffect)(() => {
|
|
162
|
+
if (opened) {
|
|
163
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
164
|
+
toValue: 1,
|
|
165
|
+
duration: transitionDuration,
|
|
166
|
+
useNativeDriver: true
|
|
167
|
+
}), _reactNative.Animated.spring(slideAnim, {
|
|
168
|
+
toValue: 0,
|
|
169
|
+
useNativeDriver: true,
|
|
170
|
+
friction: 8
|
|
171
|
+
})]).start();
|
|
172
|
+
} else {
|
|
173
|
+
slideAnim.setValue(getSlideValue());
|
|
174
|
+
fadeAnim.setValue(0);
|
|
175
|
+
}
|
|
176
|
+
}, [opened, fadeAnim, slideAnim, transitionDuration]);
|
|
177
|
+
const handleOverlayPress = () => {
|
|
178
|
+
if (closeOnClickOutside) {
|
|
179
|
+
onClose();
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
const getTransform = () => {
|
|
183
|
+
switch (position) {
|
|
184
|
+
case 'left':
|
|
185
|
+
case 'right':
|
|
186
|
+
return [{
|
|
187
|
+
translateX: slideAnim
|
|
188
|
+
}];
|
|
189
|
+
case 'top':
|
|
190
|
+
case 'bottom':
|
|
191
|
+
return [{
|
|
192
|
+
translateY: slideAnim
|
|
193
|
+
}];
|
|
194
|
+
default:
|
|
195
|
+
return [{
|
|
196
|
+
translateX: slideAnim
|
|
197
|
+
}];
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Modal, {
|
|
201
|
+
visible: opened,
|
|
202
|
+
transparent: true,
|
|
203
|
+
animationType: "none",
|
|
204
|
+
onRequestClose: onClose,
|
|
205
|
+
statusBarTranslucent: true,
|
|
206
|
+
children: [withOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
207
|
+
style: {
|
|
208
|
+
flex: 1,
|
|
209
|
+
opacity: fadeAnim
|
|
210
|
+
},
|
|
211
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Overlay, {
|
|
212
|
+
opacity: overlayOpacity,
|
|
213
|
+
color: overlayColor,
|
|
214
|
+
onPress: handleOverlayPress,
|
|
215
|
+
style: {
|
|
216
|
+
position: 'absolute'
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
220
|
+
style: styles.overlay,
|
|
221
|
+
pointerEvents: "box-none",
|
|
222
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
223
|
+
ref: ref,
|
|
224
|
+
style: [sx(styles.container, style), {
|
|
225
|
+
opacity: fadeAnim,
|
|
226
|
+
transform: getTransform()
|
|
227
|
+
}],
|
|
228
|
+
...others,
|
|
229
|
+
children: [(title || withCloseButton) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
|
|
230
|
+
style: styles.header,
|
|
231
|
+
children: [typeof title === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
232
|
+
style: styles.title,
|
|
233
|
+
children: title
|
|
234
|
+
}) : title, withCloseButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
235
|
+
style: styles.closeButton,
|
|
236
|
+
onPress: onClose,
|
|
237
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
238
|
+
style: styles.closeButtonText,
|
|
239
|
+
children: "\xD7"
|
|
240
|
+
})
|
|
241
|
+
})]
|
|
242
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
243
|
+
style: styles.body,
|
|
244
|
+
showsVerticalScrollIndicator: false,
|
|
245
|
+
children: children
|
|
246
|
+
})]
|
|
247
|
+
})
|
|
248
|
+
})]
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
Drawer.displayName = 'Drawer';
|
|
252
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_index3","_themeProvider","_index4","_rem","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","sizes","xs","sm","md","lg","xl","useStyles","createStyles","theme","size","padding","position","getPadding","undefined","spacing","rem","getSize","isHorizontal","dimensionKey","overlay","flex","backgroundColor","justifyContent","alignItems","container","colorScheme","colors","dark","white","maxHeight","maxWidth","borderTopRightRadius","fn","radius","borderBottomRightRadius","borderTopLeftRadius","borderBottomLeftRadius","header","borderBottomWidth","borderBottomColor","gray","flexDirection","title","fontSize","fontSizes","fontWeight","color","black","closeButton","width","height","borderRadius","marginLeft","closeButtonText","body","defaultProps","closeOnClickOutside","withOverlay","overlayOpacity","overlayColor","withCloseButton","transitionDuration","zIndex","Drawer","exports","forwardRef","props","ref","opened","onClose","children","style","others","useComponentDefaultProps","styles","sx","name","fadeAnim","useRef","Animated","Value","current","slideAnim","getSlideValue","screenWidth","Dimensions","screenHeight","useEffect","parallel","timing","toValue","duration","useNativeDriver","spring","friction","start","setValue","handleOverlayPress","getTransform","translateX","translateY","jsxs","Modal","visible","transparent","animationType","onRequestClose","statusBarTranslucent","jsx","View","opacity","Overlay","onPress","BoxView","pointerEvents","transform","Text","TouchableOpacity","ScrollView","showsVerticalScrollIndicator","displayName"],"sourceRoot":"../../../../src","sources":["components/Drawer/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AAA4C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAA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ports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Flex = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _index = require("../BoxView/index.js");
|
|
9
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
/**
|
|
14
|
+
* Flex component provides flexible box layout
|
|
15
|
+
*/
|
|
16
|
+
const Flex = exports.Flex = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
17
|
+
const {
|
|
18
|
+
children,
|
|
19
|
+
style,
|
|
20
|
+
direction = 'row',
|
|
21
|
+
wrap = 'nowrap',
|
|
22
|
+
align,
|
|
23
|
+
justify,
|
|
24
|
+
gap,
|
|
25
|
+
columnGap,
|
|
26
|
+
rowGap,
|
|
27
|
+
...others
|
|
28
|
+
} = props;
|
|
29
|
+
const theme = (0, _themeProvider.useTheme)();
|
|
30
|
+
|
|
31
|
+
// Get spacing value from theme or use number directly
|
|
32
|
+
const getSpacing = value => {
|
|
33
|
+
if (value === undefined) return undefined;
|
|
34
|
+
if (typeof value === 'number') return value;
|
|
35
|
+
return theme.spacing[value] || 0;
|
|
36
|
+
};
|
|
37
|
+
const gapValue = getSpacing(gap);
|
|
38
|
+
const columnGapValue = getSpacing(columnGap);
|
|
39
|
+
const rowGapValue = getSpacing(rowGap);
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
style: [{
|
|
43
|
+
display: 'flex',
|
|
44
|
+
flexDirection: direction,
|
|
45
|
+
flexWrap: wrap,
|
|
46
|
+
alignItems: align,
|
|
47
|
+
justifyContent: justify,
|
|
48
|
+
...(gapValue !== undefined && {
|
|
49
|
+
gap: gapValue
|
|
50
|
+
}),
|
|
51
|
+
...(columnGapValue !== undefined && {
|
|
52
|
+
columnGap: columnGapValue
|
|
53
|
+
}),
|
|
54
|
+
...(rowGapValue !== undefined && {
|
|
55
|
+
rowGap: rowGapValue
|
|
56
|
+
})
|
|
57
|
+
}, style],
|
|
58
|
+
...others,
|
|
59
|
+
children: children
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
Flex.displayName = 'Flex';
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_index","_themeProvider","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Flex","exports","forwardRef","props","ref","children","style","direction","wrap","align","justify","gap","columnGap","rowGap","others","theme","useTheme","getSpacing","value","undefined","spacing","gapValue","columnGapValue","rowGapValue","jsx","BoxView","display","flexDirection","flexWrap","alignItems","justifyContent","displayName"],"sourceRoot":"../../../../src","sources":["components/Flex/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AAAsD,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAI,yBAAAC,CAAA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
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Grid = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _index = require("../BoxView/index.js");
|
|
9
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
10
|
+
var _index2 = 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 useGridStyles = (0, _index2.createStyles)((theme, {
|
|
15
|
+
gutter,
|
|
16
|
+
align,
|
|
17
|
+
justify
|
|
18
|
+
}) => ({
|
|
19
|
+
root: {
|
|
20
|
+
flexDirection: 'row',
|
|
21
|
+
flexWrap: 'wrap',
|
|
22
|
+
alignItems: align,
|
|
23
|
+
justifyContent: justify,
|
|
24
|
+
margin: -theme.fn.size({
|
|
25
|
+
size: gutter,
|
|
26
|
+
sizes: theme.spacing
|
|
27
|
+
}) / 2
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
const useColStyles = (0, _index2.createStyles)((theme, {
|
|
31
|
+
span,
|
|
32
|
+
offset,
|
|
33
|
+
order,
|
|
34
|
+
columns,
|
|
35
|
+
gutter,
|
|
36
|
+
grow
|
|
37
|
+
}) => {
|
|
38
|
+
const gutterSize = theme.fn.size({
|
|
39
|
+
size: gutter,
|
|
40
|
+
sizes: theme.spacing
|
|
41
|
+
});
|
|
42
|
+
const colSpan = span || columns;
|
|
43
|
+
const percentage = colSpan / columns * 100;
|
|
44
|
+
const offsetPercentage = offset ? offset / columns * 100 : 0;
|
|
45
|
+
return {
|
|
46
|
+
col: {
|
|
47
|
+
flexBasis: grow ? 0 : `${percentage}%`,
|
|
48
|
+
flexGrow: grow ? colSpan : 0,
|
|
49
|
+
flexShrink: 0,
|
|
50
|
+
padding: gutterSize / 2,
|
|
51
|
+
marginLeft: offsetPercentage ? `${offsetPercentage}%` : 0,
|
|
52
|
+
...(order && {
|
|
53
|
+
order
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
const defaultGridProps = {
|
|
59
|
+
columns: 12,
|
|
60
|
+
gutter: 'md',
|
|
61
|
+
grow: false,
|
|
62
|
+
align: 'stretch',
|
|
63
|
+
justify: 'flex-start'
|
|
64
|
+
};
|
|
65
|
+
const defaultColProps = {
|
|
66
|
+
span: 12,
|
|
67
|
+
offset: 0,
|
|
68
|
+
order: 0
|
|
69
|
+
};
|
|
70
|
+
const Grid = exports.Grid = Object.assign(/*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
71
|
+
const {
|
|
72
|
+
columns,
|
|
73
|
+
gutter,
|
|
74
|
+
grow,
|
|
75
|
+
align,
|
|
76
|
+
justify,
|
|
77
|
+
children,
|
|
78
|
+
style,
|
|
79
|
+
...others
|
|
80
|
+
} = (0, _themeProvider.useComponentDefaultProps)('Grid', defaultGridProps, props);
|
|
81
|
+
const {
|
|
82
|
+
styles,
|
|
83
|
+
sx
|
|
84
|
+
} = useGridStyles({
|
|
85
|
+
gutter,
|
|
86
|
+
align,
|
|
87
|
+
justify
|
|
88
|
+
}, {
|
|
89
|
+
name: 'Grid'
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// Pass columns and gutter to children via context or clone
|
|
93
|
+
const childrenWithProps = _react.Children.map(children, child => {
|
|
94
|
+
if (/*#__PURE__*/_react.default.isValidElement(child)) {
|
|
95
|
+
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
96
|
+
columns,
|
|
97
|
+
gutter,
|
|
98
|
+
grow
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return child;
|
|
102
|
+
});
|
|
103
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
104
|
+
ref: ref,
|
|
105
|
+
style: sx(styles.root, style),
|
|
106
|
+
...others,
|
|
107
|
+
children: childrenWithProps
|
|
108
|
+
});
|
|
109
|
+
}), {
|
|
110
|
+
Col: /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
111
|
+
const {
|
|
112
|
+
span,
|
|
113
|
+
offset,
|
|
114
|
+
order,
|
|
115
|
+
columns = 12,
|
|
116
|
+
gutter = 'md',
|
|
117
|
+
grow = false,
|
|
118
|
+
children,
|
|
119
|
+
style,
|
|
120
|
+
...others
|
|
121
|
+
} = (0, _themeProvider.useComponentDefaultProps)('GridCol', defaultColProps, props);
|
|
122
|
+
const {
|
|
123
|
+
styles,
|
|
124
|
+
sx
|
|
125
|
+
} = useColStyles({
|
|
126
|
+
span,
|
|
127
|
+
offset,
|
|
128
|
+
order,
|
|
129
|
+
columns,
|
|
130
|
+
gutter,
|
|
131
|
+
grow
|
|
132
|
+
}, {
|
|
133
|
+
name: 'GridCol'
|
|
134
|
+
});
|
|
135
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
136
|
+
ref: ref,
|
|
137
|
+
style: sx(styles.col, style),
|
|
138
|
+
...others,
|
|
139
|
+
children: children
|
|
140
|
+
});
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
Grid.displayName = 'Grid';
|
|
144
|
+
Grid.Col.displayName = 'Grid.Col';
|
|
145
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_index","_themeProvider","_index2","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useGridStyles","createStyles","theme","gutter","align","justify","root","flexDirection","flexWrap","alignItems","justifyContent","margin","fn","size","sizes","spacing","useColStyles","span","offset","order","columns","grow","gutterSize","colSpan","percentage","offsetPercentage","col","flexBasis","flexGrow","flexShrink","padding","marginLeft","defaultGridProps","defaultColProps","Grid","exports","assign","forwardRef","props","ref","children","style","others","useComponentDefaultProps","styles","sx","name","childrenWithProps","Children","map","child","React","isValidElement","cloneElement","jsx","BoxView","Col","displayName"],"sourceRoot":"../../../../src","sources":["components/Grid/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAA2C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,C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EAAC9E,MAAA,CAAA+E,OAAO;MAAChB,GAAG,EAAEA,GAAI;MAACE,KAAK,EAAEI,EAAE,CAACD,MAAM,CAAClB,GAAG,EAAEe,KAAK,CAAE;MAAA,GAAKC,MAAM;MAAAF,QAAA,EACxDA;IAAQ,CACF,CAAC;EAEd,CACF;AACF,CACF,CAAC;AAEDN,IAAI,CAACuB,WAAW,GAAG,MAAM;AACzBvB,IAAI,CAACsB,GAAG,CAACC,WAAW,GAAG,UAAU","ignoreList":[]}
|
|
@@ -10,19 +10,40 @@ const Group = ({
|
|
|
10
10
|
children,
|
|
11
11
|
position,
|
|
12
12
|
style,
|
|
13
|
+
align,
|
|
13
14
|
alignCenter = true,
|
|
14
15
|
alignBottom = false,
|
|
15
16
|
noWrap = false,
|
|
16
17
|
spacing = 5,
|
|
17
18
|
...rest
|
|
18
19
|
}) => {
|
|
20
|
+
// Map align values to flexbox alignItems
|
|
21
|
+
const getAlignItems = () => {
|
|
22
|
+
if (align) {
|
|
23
|
+
switch (align) {
|
|
24
|
+
case 'start':
|
|
25
|
+
return 'flex-start';
|
|
26
|
+
case 'center':
|
|
27
|
+
return 'center';
|
|
28
|
+
case 'end':
|
|
29
|
+
return 'flex-end';
|
|
30
|
+
case 'baseline':
|
|
31
|
+
return 'baseline';
|
|
32
|
+
case 'stretch':
|
|
33
|
+
return 'stretch';
|
|
34
|
+
default:
|
|
35
|
+
return 'center';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return alignCenter ? 'center' : alignBottom ? 'flex-end' : 'flex-start';
|
|
39
|
+
};
|
|
19
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
|
|
20
41
|
style: {
|
|
21
42
|
gap: spacing,
|
|
22
43
|
flexDirection: 'row',
|
|
23
44
|
justifyContent: position === 'apart' ? 'space-between' : position === 'center' ? 'center' : position === 'right' ? 'flex-end' : 'flex-start',
|
|
24
45
|
flexWrap: noWrap ? 'nowrap' : 'wrap',
|
|
25
|
-
alignItems:
|
|
46
|
+
alignItems: getAlignItems(),
|
|
26
47
|
...style
|
|
27
48
|
},
|
|
28
49
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","_jsxRuntime","Group","children","position","style","alignCenter","alignBottom","noWrap","spacing","rest","jsx","BoxView","gap","flexDirection","justifyContent","flexWrap","alignItems","exports"],"sourceRoot":"../../../../src","sources":["components/Group/index.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAAqC,IAAAC,WAAA,GAAAD,OAAA;AAG9B,MAAME,KAAK,GAAGA,CAAC;EACpBC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,WAAW,GAAG,IAAI;EAClBC,WAAW,GAAG,KAAK;EACnBC,MAAM,GAAG,KAAK;EACdC,OAAO,GAAG,CAAC;EACX,GAAGC;
|
|
1
|
+
{"version":3,"names":["_index","require","_jsxRuntime","Group","children","position","style","align","alignCenter","alignBottom","noWrap","spacing","rest","getAlignItems","jsx","BoxView","gap","flexDirection","justifyContent","flexWrap","alignItems","exports"],"sourceRoot":"../../../../src","sources":["components/Group/index.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAAqC,IAAAC,WAAA,GAAAD,OAAA;AAG9B,MAAME,KAAK,GAAGA,CAAC;EACpBC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,KAAK;EACLC,WAAW,GAAG,IAAI;EAClBC,WAAW,GAAG,KAAK;EACnBC,MAAM,GAAG,KAAK;EACdC,OAAO,GAAG,CAAC;EACX,GAAGC;AAQL,CAAC,KAAyB;EACxB;EACA,MAAMC,aAAa,GAAGA,CAAA,KAAM;IAC1B,IAAIN,KAAK,EAAE;MACT,QAAQA,KAAK;QACX,KAAK,OAAO;UACV,OAAO,YAAY;QACrB,KAAK,QAAQ;UACX,OAAO,QAAQ;QACjB,KAAK,KAAK;UACR,OAAO,UAAU;QACnB,KAAK,UAAU;UACb,OAAO,UAAU;QACnB,KAAK,SAAS;UACZ,OAAO,SAAS;QAClB;UACE,OAAO,QAAQ;MACnB;IACF;IACA,OAAOC,WAAW,GAAG,QAAQ,GAAGC,WAAW,GAAG,UAAU,GAAG,YAAY;EACzE,CAAC;EAED,oBACE,IAAAP,WAAA,CAAAY,GAAA,EAACd,MAAA,CAAAe,OAAO;IACNT,KAAK,EAAE;MACLU,GAAG,EAAEL,OAAO;MACZM,aAAa,EAAE,KAAK;MACpBC,cAAc,EACZb,QAAQ,KAAK,OAAO,GAChB,eAAe,GACfA,QAAQ,KAAK,QAAQ,GACnB,QAAQ,GACRA,QAAQ,KAAK,OAAO,GAClB,UAAU,GACV,YAAY;MACtBc,QAAQ,EAAET,MAAM,GAAG,QAAQ,GAAG,MAAM;MACpCU,UAAU,EAAEP,aAAa,CAAC,CAAC;MAC3B,GAAIP;IACN,CAAE;IAAA,GACEM,IAAI;IAAAR,QAAA,EAEPA;EAAQ,CACF,CAAC;AAEd,CAAC;AAACiB,OAAA,CAAAlB,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Highlight = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _index = require("../Text/index.js");
|
|
9
|
+
var _themeProvider = require("../../theme/theme-provider.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
/**
|
|
12
|
+
* Highlight component highlights specified substrings within text
|
|
13
|
+
*/
|
|
14
|
+
const Highlight = exports.Highlight = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
|
+
const {
|
|
16
|
+
children,
|
|
17
|
+
highlight,
|
|
18
|
+
highlightColor = 'yellow',
|
|
19
|
+
highlightStyles,
|
|
20
|
+
style,
|
|
21
|
+
...others
|
|
22
|
+
} = props;
|
|
23
|
+
const theme = (0, _themeProvider.useTheme)();
|
|
24
|
+
|
|
25
|
+
// Convert highlight to array for uniform processing
|
|
26
|
+
const highlights = Array.isArray(highlight) ? highlight : [highlight];
|
|
27
|
+
|
|
28
|
+
// Get default highlight background color
|
|
29
|
+
const defaultHighlightBg = theme.colors[highlightColor]?.[2] || theme.colors.yellow?.[2] || '#ffec99';
|
|
30
|
+
const defaultStyles = {
|
|
31
|
+
backgroundColor: defaultHighlightBg,
|
|
32
|
+
...highlightStyles
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// Function to split text and identify highlighted parts
|
|
36
|
+
const getHighlightedText = () => {
|
|
37
|
+
if (!children || highlights.length === 0 || highlights.every(h => !h)) {
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
39
|
+
style: style,
|
|
40
|
+
children: children
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Create regex pattern for all highlight strings (case insensitive)
|
|
45
|
+
const pattern = highlights.filter(h => h && h.length > 0).map(h => h.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')) // Escape special chars
|
|
46
|
+
.join('|');
|
|
47
|
+
if (!pattern) {
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
49
|
+
style: style,
|
|
50
|
+
children: children
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const regex = new RegExp(`(${pattern})`, 'gi');
|
|
54
|
+
const parts = children.split(regex);
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
56
|
+
ref: ref,
|
|
57
|
+
style: style,
|
|
58
|
+
...others,
|
|
59
|
+
children: parts.map((part, index) => {
|
|
60
|
+
const isHighlighted = highlights.some(h => h && part.toLowerCase() === h.toLowerCase());
|
|
61
|
+
if (isHighlighted) {
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
63
|
+
style: defaultStyles,
|
|
64
|
+
children: part
|
|
65
|
+
}, index);
|
|
66
|
+
}
|
|
67
|
+
return part;
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
return getHighlightedText();
|
|
72
|
+
});
|
|
73
|
+
Highlight.displayName = 'Highlight';
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_index","_themeProvider","_jsxRuntime","Highlight","exports","forwardRef","props","ref","children","highlight","highlightColor","highlightStyles","style","others","theme","useTheme","highlights","Array","isArray","defaultHighlightBg","colors","yellow","defaultStyles","backgroundColor","getHighlightedText","length","every","h","jsx","Text","pattern","filter","map","replace","join","regex","RegExp","parts","split","part","index","isHighlighted","some","toLowerCase","displayName"],"sourceRoot":"../../../../src","sources":["components/Highlight/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AAAsD,IAAAG,WAAA,GAAAH,OAAA;AAmBtD;AACA;AACA;AACO,MAAMI,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAG,IAAAE,iBAAU,EAAsB,CAACC,KAAK,EAAEC,GAAG,KAAK;EACvE,MAAM;IACJC,QAAQ;IACRC,SAAS;IACTC,cAAc,GAAG,QAAQ;IACzBC,eAAe;IACfC,KAAK;IACL,GAAGC;EACL,CAAC,GAAGP,KAAK;EAET,MAAMQ,KAAK,GAAG,IAAAC,uBAAQ,EAAC,CAAC;;EAExB;EACA,MAAMC,UAAU,GAAGC,KAAK,CAACC,OAAO,CAACT,SAAS,CAAC,GAAGA,SAAS,GAAG,CAACA,SAAS,CAAC;;EAErE;EACA,MAAMU,kBAAkB,GACtBL,KAAK,CAACM,MAAM,CAACV,cAAc,CAAC,GAAG,CAAC,CAAC,IAAII,KAAK,CAACM,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,IAAI,SAA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