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,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
|
+
import { UnstyledButton } from "../UnstyledButton/index.js";
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const useStyles = createStyles((theme, {
|
|
12
|
+
color,
|
|
13
|
+
active,
|
|
14
|
+
disabled
|
|
15
|
+
}, {
|
|
16
|
+
variant
|
|
17
|
+
}) => {
|
|
18
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
19
|
+
const getVariantStyles = () => {
|
|
20
|
+
if (disabled) {
|
|
21
|
+
return {
|
|
22
|
+
backgroundColor: 'transparent',
|
|
23
|
+
color: (theme.colors.gray || [])[5]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (!active) {
|
|
27
|
+
return {
|
|
28
|
+
backgroundColor: 'transparent',
|
|
29
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
switch (variant) {
|
|
33
|
+
case 'filled':
|
|
34
|
+
return {
|
|
35
|
+
backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
|
|
36
|
+
color: theme.white
|
|
37
|
+
};
|
|
38
|
+
case 'light':
|
|
39
|
+
return {
|
|
40
|
+
backgroundColor: colors?.[0] || colors?.[1] || (theme.colors.gray || [])[0],
|
|
41
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
42
|
+
};
|
|
43
|
+
case 'subtle':
|
|
44
|
+
return {
|
|
45
|
+
backgroundColor: theme.colorScheme === 'dark' ? 'rgba(255, 255, 255, 0.05)' : 'rgba(0, 0, 0, 0.05)',
|
|
46
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
47
|
+
};
|
|
48
|
+
default:
|
|
49
|
+
return {
|
|
50
|
+
backgroundColor: colors?.[0] || colors?.[1] || (theme.colors.gray || [])[0],
|
|
51
|
+
color: colors?.[6] || colors?.[5] || theme.primaryBgColor
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const variantStyles = getVariantStyles();
|
|
56
|
+
return {
|
|
57
|
+
root: {
|
|
58
|
+
flexDirection: 'row',
|
|
59
|
+
alignItems: 'center',
|
|
60
|
+
padding: theme.spacing.sm,
|
|
61
|
+
borderRadius: theme.radius.sm,
|
|
62
|
+
backgroundColor: variantStyles.backgroundColor,
|
|
63
|
+
opacity: disabled ? 0.6 : 1
|
|
64
|
+
},
|
|
65
|
+
icon: {
|
|
66
|
+
marginRight: theme.spacing.sm,
|
|
67
|
+
color: variantStyles.color
|
|
68
|
+
},
|
|
69
|
+
body: {
|
|
70
|
+
flex: 1
|
|
71
|
+
},
|
|
72
|
+
label: {
|
|
73
|
+
fontSize: rem(14),
|
|
74
|
+
fontWeight: '500',
|
|
75
|
+
color: variantStyles.color
|
|
76
|
+
},
|
|
77
|
+
description: {
|
|
78
|
+
fontSize: rem(12),
|
|
79
|
+
marginTop: rem(2),
|
|
80
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6]
|
|
81
|
+
},
|
|
82
|
+
rightSection: {
|
|
83
|
+
marginLeft: theme.spacing.sm,
|
|
84
|
+
color: variantStyles.color
|
|
85
|
+
},
|
|
86
|
+
children: {
|
|
87
|
+
marginTop: theme.spacing.xs,
|
|
88
|
+
marginLeft: theme.spacing.md
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
const defaultProps = {
|
|
93
|
+
color: 'blue',
|
|
94
|
+
variant: 'light',
|
|
95
|
+
active: false,
|
|
96
|
+
disabled: false,
|
|
97
|
+
disableIfNoPress: true
|
|
98
|
+
};
|
|
99
|
+
export const NavLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
100
|
+
const {
|
|
101
|
+
label,
|
|
102
|
+
description,
|
|
103
|
+
icon,
|
|
104
|
+
rightSection,
|
|
105
|
+
color,
|
|
106
|
+
variant,
|
|
107
|
+
active,
|
|
108
|
+
disabled,
|
|
109
|
+
children,
|
|
110
|
+
onPress,
|
|
111
|
+
style,
|
|
112
|
+
disableIfNoPress,
|
|
113
|
+
...others
|
|
114
|
+
} = useComponentDefaultProps('NavLink', defaultProps, props);
|
|
115
|
+
const {
|
|
116
|
+
styles,
|
|
117
|
+
sx
|
|
118
|
+
} = useStyles({
|
|
119
|
+
color,
|
|
120
|
+
active,
|
|
121
|
+
disabled
|
|
122
|
+
}, {
|
|
123
|
+
name: 'NavLink',
|
|
124
|
+
variant
|
|
125
|
+
});
|
|
126
|
+
const isDisabled = disabled || disableIfNoPress && !onPress;
|
|
127
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
128
|
+
children: [/*#__PURE__*/_jsxs(UnstyledButton, {
|
|
129
|
+
ref: ref,
|
|
130
|
+
onPress: isDisabled ? undefined : onPress,
|
|
131
|
+
style: sx(styles.root, isDisabled && {
|
|
132
|
+
opacity: 0.6
|
|
133
|
+
}, style),
|
|
134
|
+
...others,
|
|
135
|
+
children: [icon && /*#__PURE__*/_jsx(BoxView, {
|
|
136
|
+
style: styles.icon,
|
|
137
|
+
children: icon
|
|
138
|
+
}), /*#__PURE__*/_jsxs(BoxView, {
|
|
139
|
+
style: styles.body,
|
|
140
|
+
children: [label && /*#__PURE__*/_jsx(Text, {
|
|
141
|
+
style: styles.label,
|
|
142
|
+
children: label
|
|
143
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
144
|
+
style: styles.description,
|
|
145
|
+
children: description
|
|
146
|
+
})]
|
|
147
|
+
}), rightSection && /*#__PURE__*/_jsx(BoxView, {
|
|
148
|
+
style: styles.rightSection,
|
|
149
|
+
children: rightSection
|
|
150
|
+
})]
|
|
151
|
+
}), children && /*#__PURE__*/_jsx(BoxView, {
|
|
152
|
+
style: styles.children,
|
|
153
|
+
children: children
|
|
154
|
+
})]
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
NavLink.displayName = 'NavLink';
|
|
158
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","UnstyledButton","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","useStyles","theme","color","active","disabled","variant","colors","primaryColor","getVariantStyles","backgroundColor","gray","colorScheme","dark","black","primaryBgColor","white","variantStyles","root","flexDirection","alignItems","padding","spacing","sm","borderRadius","radius","opacity","icon","marginRight","body","flex","label","fontSize","fontWeight","description","marginTop","rightSection","marginLeft","children","xs","md","defaultProps","disableIfNoPress","NavLink","props","ref","onPress","style","others","styles","sx","name","isDisabled","undefined","displayName"],"sourceRoot":"../../../../src","sources":["components/NavLink/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,4B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AO,CAACW,WAAW,GAAG,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
|
+
import { TouchableOpacity } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const useStyles = createStyles((theme, {
|
|
12
|
+
color,
|
|
13
|
+
radius,
|
|
14
|
+
withBorder
|
|
15
|
+
}) => {
|
|
16
|
+
const colors = theme.colors[color] || theme.colors[theme.primaryColor];
|
|
17
|
+
const borderColor = colors?.[6] || colors?.[5] || theme.primaryBgColor;
|
|
18
|
+
return {
|
|
19
|
+
root: {
|
|
20
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
21
|
+
borderRadius: theme.fn.radius(radius),
|
|
22
|
+
padding: theme.spacing.md,
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
alignItems: 'flex-start',
|
|
25
|
+
...(withBorder && {
|
|
26
|
+
borderWidth: 1,
|
|
27
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3],
|
|
28
|
+
borderLeftWidth: rem(4),
|
|
29
|
+
borderLeftColor: borderColor
|
|
30
|
+
}),
|
|
31
|
+
// Shadow for elevation
|
|
32
|
+
shadowColor: '#000',
|
|
33
|
+
shadowOffset: {
|
|
34
|
+
width: 0,
|
|
35
|
+
height: 2
|
|
36
|
+
},
|
|
37
|
+
shadowOpacity: 0.1,
|
|
38
|
+
shadowRadius: 3,
|
|
39
|
+
elevation: 3
|
|
40
|
+
},
|
|
41
|
+
icon: {
|
|
42
|
+
marginRight: theme.spacing.md,
|
|
43
|
+
paddingTop: rem(2)
|
|
44
|
+
},
|
|
45
|
+
body: {
|
|
46
|
+
flex: 1
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
fontSize: theme.fontSizes.sm,
|
|
50
|
+
fontWeight: '600',
|
|
51
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
52
|
+
marginBottom: theme.spacing.xs
|
|
53
|
+
},
|
|
54
|
+
message: {
|
|
55
|
+
fontSize: theme.fontSizes.sm,
|
|
56
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
57
|
+
lineHeight: theme.fontSizes.sm * 1.5
|
|
58
|
+
},
|
|
59
|
+
closeButton: {
|
|
60
|
+
width: rem(24),
|
|
61
|
+
height: rem(24),
|
|
62
|
+
borderRadius: rem(12),
|
|
63
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
64
|
+
justifyContent: 'center',
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
marginLeft: theme.spacing.sm
|
|
67
|
+
},
|
|
68
|
+
closeButtonText: {
|
|
69
|
+
fontSize: rem(16),
|
|
70
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black
|
|
71
|
+
},
|
|
72
|
+
loader: {
|
|
73
|
+
marginRight: theme.spacing.md
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
const defaultProps = {
|
|
78
|
+
color: 'blue',
|
|
79
|
+
radius: 'sm',
|
|
80
|
+
withCloseButton: true,
|
|
81
|
+
withBorder: true,
|
|
82
|
+
loading: false
|
|
83
|
+
};
|
|
84
|
+
export const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
85
|
+
const {
|
|
86
|
+
title,
|
|
87
|
+
message,
|
|
88
|
+
color,
|
|
89
|
+
radius,
|
|
90
|
+
icon,
|
|
91
|
+
withCloseButton,
|
|
92
|
+
onClose,
|
|
93
|
+
loading,
|
|
94
|
+
withBorder,
|
|
95
|
+
style,
|
|
96
|
+
...others
|
|
97
|
+
} = useComponentDefaultProps('Notification', defaultProps, props);
|
|
98
|
+
const {
|
|
99
|
+
styles,
|
|
100
|
+
sx
|
|
101
|
+
} = useStyles({
|
|
102
|
+
color,
|
|
103
|
+
radius,
|
|
104
|
+
withBorder,
|
|
105
|
+
withIcon: !!icon
|
|
106
|
+
}, {
|
|
107
|
+
name: 'Notification'
|
|
108
|
+
});
|
|
109
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
110
|
+
ref: ref,
|
|
111
|
+
style: sx(styles.root, style),
|
|
112
|
+
...others,
|
|
113
|
+
children: [icon && /*#__PURE__*/_jsx(BoxView, {
|
|
114
|
+
style: styles.icon,
|
|
115
|
+
children: icon
|
|
116
|
+
}), /*#__PURE__*/_jsxs(BoxView, {
|
|
117
|
+
style: styles.body,
|
|
118
|
+
children: [title && /*#__PURE__*/_jsx(Text, {
|
|
119
|
+
style: styles.title,
|
|
120
|
+
children: typeof title === 'string' ? title : title
|
|
121
|
+
}), message && /*#__PURE__*/_jsx(Text, {
|
|
122
|
+
style: styles.message,
|
|
123
|
+
children: typeof message === 'string' ? message : message
|
|
124
|
+
})]
|
|
125
|
+
}), withCloseButton && onClose && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
126
|
+
style: styles.closeButton,
|
|
127
|
+
onPress: onClose,
|
|
128
|
+
activeOpacity: 0.7,
|
|
129
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
130
|
+
style: styles.closeButtonText,
|
|
131
|
+
children: "\xD7"
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
Notification.displayName = 'Notification';
|
|
137
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","TouchableOpacity","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","useStyles","theme","color","radius","withBorder","colors","primaryColor","borderColor","primaryBgColor","root","backgroundColor","colorScheme","dark","white","borderRadius","fn","padding","spacing","md","flexDirection","alignItems","borderWidth","gray","borderLeftWidth","borderLeftColor","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","icon","marginRight","paddingTop","body","flex","title","fontSize","fontSizes","sm","fontWeight","black","marginBottom","xs","message","lineHeight","closeButton","justifyContent","marginLeft","closeButtonText","loader","defaultProps","withCloseButton","loading","Notification","props","ref","onClose","style","others","styles","sx","withIcon","name","children","onPress","activeOpacity","displayName"],"sourceRoot":"../../../../src","sources":["components/Notification/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqC5C,MAAMC,SAAS,GAAGN,YAAY,CAC5B,CACEO,KAAK,EACL;EACEC,KAAK;EACLC,MAAM;EACNC;AAMF,CAAC,KACE;EACH,MAAMC,MAAM,GAAGJ,KAAK,CAACI,MAAM,CAACH,KAAK,CAAC,IAAID,KAAK,CAACI,MAAM,CAACJ,KAAK,CAACK,YAAY,CAAC;EACtE,MAAMC,WAAW,GAAGF,MAAM,GAAG,CAAC,CAAC,IAAIA,MAAM,GAAG,CAAC,CAAC,IAAIJ,KAAK,CAACO,cAAc;EAEtE,OAAO;IACLC,IAAI,EAAE;MACJC,eAAe,EAAET,KAAK,CAACU,WAAW,KAAK,MAAM,GAAG,CAACV,KAAK,CAACI,MAAM,CAACO,IAAI,IAAI,EA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AACP,gBAAgB;MAACqE,KAAK,EAAEE,MAAM,CAACd,WAAY;MAACmB,OAAO,EAAER,OAAQ;MAACS,aAAa,EAAE,GAAI;MAAAF,QAAA,eAChFpE,IAAA,CAACL,IAAI;QAACmE,KAAK,EAAEE,MAAM,CAACX,eAAgB;QAAAe,QAAA,EAAC;MAAC,CAAM;IAAC,CAC7B,CACnB;EAAA,CACM,CAAC;AAEd,CAAC,CAAC;AAEFV,YAAY,CAACa,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useState } from 'react';
|
|
4
|
+
import { TextInput, TouchableOpacity } from 'react-native';
|
|
5
|
+
import { BoxView } from "../BoxView/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useComponentDefaultProps, useTheme } from "../../theme/theme-provider.js";
|
|
8
|
+
import { createStyles, getSize } from "../../theme/index.js";
|
|
9
|
+
import { rem } from "../../theme/utils/rem.js";
|
|
10
|
+
import { INPUT_SIZES } from "../Input/index.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const useStyles = createStyles((theme, {
|
|
13
|
+
size,
|
|
14
|
+
radius,
|
|
15
|
+
variant,
|
|
16
|
+
fullWidth,
|
|
17
|
+
error,
|
|
18
|
+
disabled,
|
|
19
|
+
withIcon
|
|
20
|
+
}) => {
|
|
21
|
+
const getVariantStyles = () => {
|
|
22
|
+
switch (variant) {
|
|
23
|
+
case 'filled':
|
|
24
|
+
return {
|
|
25
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
|
|
26
|
+
borderWidth: 1,
|
|
27
|
+
borderColor: 'transparent'
|
|
28
|
+
};
|
|
29
|
+
case 'unstyled':
|
|
30
|
+
return {
|
|
31
|
+
backgroundColor: 'transparent',
|
|
32
|
+
borderWidth: 0
|
|
33
|
+
};
|
|
34
|
+
default:
|
|
35
|
+
return {
|
|
36
|
+
backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
|
|
37
|
+
borderWidth: 1,
|
|
38
|
+
borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
wrapper: {
|
|
44
|
+
width: fullWidth ? '100%' : undefined
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
fontSize: theme.fontSizes.sm,
|
|
48
|
+
fontWeight: '500',
|
|
49
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
50
|
+
marginBottom: theme.spacing.xs
|
|
51
|
+
},
|
|
52
|
+
description: {
|
|
53
|
+
fontSize: theme.fontSizes.xs,
|
|
54
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
|
|
55
|
+
marginTop: theme.spacing.xs
|
|
56
|
+
},
|
|
57
|
+
error: {
|
|
58
|
+
fontSize: theme.fontSizes.xs,
|
|
59
|
+
color: (theme.colors.red || [])[6],
|
|
60
|
+
marginTop: theme.spacing.xs
|
|
61
|
+
},
|
|
62
|
+
inputWrapper: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
height: getSize({
|
|
66
|
+
size,
|
|
67
|
+
sizes: INPUT_SIZES
|
|
68
|
+
}),
|
|
69
|
+
borderRadius: theme.fn.radius(radius),
|
|
70
|
+
...getVariantStyles(),
|
|
71
|
+
...(error && {
|
|
72
|
+
borderColor: (theme.colors.red || [])[6]
|
|
73
|
+
}),
|
|
74
|
+
...(disabled && {
|
|
75
|
+
opacity: 0.6
|
|
76
|
+
})
|
|
77
|
+
},
|
|
78
|
+
icon: {
|
|
79
|
+
paddingLeft: theme.spacing.sm,
|
|
80
|
+
paddingRight: theme.spacing.xs
|
|
81
|
+
},
|
|
82
|
+
input: {
|
|
83
|
+
flex: 1,
|
|
84
|
+
height: '100%',
|
|
85
|
+
fontSize: getSize({
|
|
86
|
+
size,
|
|
87
|
+
sizes: theme.fontSizes
|
|
88
|
+
}),
|
|
89
|
+
color: theme.colorScheme === 'dark' ? theme.white : theme.black,
|
|
90
|
+
paddingHorizontal: theme.spacing.sm,
|
|
91
|
+
...(withIcon && {
|
|
92
|
+
paddingLeft: 0
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
controls: {
|
|
96
|
+
flexDirection: 'row',
|
|
97
|
+
height: '100%'
|
|
98
|
+
},
|
|
99
|
+
control: {
|
|
100
|
+
width: rem(32),
|
|
101
|
+
height: '100%',
|
|
102
|
+
justifyContent: 'center',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
borderLeftWidth: 1,
|
|
105
|
+
borderLeftColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4]
|
|
106
|
+
},
|
|
107
|
+
controlText: {
|
|
108
|
+
fontSize: rem(18),
|
|
109
|
+
fontWeight: '600',
|
|
110
|
+
color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : (theme.colors.gray || [])[7]
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
const defaultProps = {
|
|
115
|
+
size: 'sm',
|
|
116
|
+
radius: 'sm',
|
|
117
|
+
variant: 'default',
|
|
118
|
+
fullWidth: false,
|
|
119
|
+
step: 1,
|
|
120
|
+
precision: 0,
|
|
121
|
+
hideControls: false,
|
|
122
|
+
disabled: false
|
|
123
|
+
};
|
|
124
|
+
export const NumberInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
125
|
+
const {
|
|
126
|
+
label,
|
|
127
|
+
description,
|
|
128
|
+
error,
|
|
129
|
+
size,
|
|
130
|
+
radius,
|
|
131
|
+
variant,
|
|
132
|
+
fullWidth,
|
|
133
|
+
min,
|
|
134
|
+
max,
|
|
135
|
+
step,
|
|
136
|
+
precision,
|
|
137
|
+
hideControls,
|
|
138
|
+
value: controlledValue,
|
|
139
|
+
defaultValue,
|
|
140
|
+
onChange,
|
|
141
|
+
disabled,
|
|
142
|
+
placeholder,
|
|
143
|
+
icon,
|
|
144
|
+
style,
|
|
145
|
+
wrapperStyle,
|
|
146
|
+
...others
|
|
147
|
+
} = useComponentDefaultProps('NumberInput', defaultProps, props);
|
|
148
|
+
const theme = useTheme();
|
|
149
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? '');
|
|
150
|
+
const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
|
|
151
|
+
const {
|
|
152
|
+
styles,
|
|
153
|
+
sx
|
|
154
|
+
} = useStyles({
|
|
155
|
+
size,
|
|
156
|
+
radius,
|
|
157
|
+
variant,
|
|
158
|
+
fullWidth,
|
|
159
|
+
error: !!error,
|
|
160
|
+
disabled,
|
|
161
|
+
withIcon: !!icon
|
|
162
|
+
}, {
|
|
163
|
+
name: 'NumberInput'
|
|
164
|
+
});
|
|
165
|
+
const formatValue = val => {
|
|
166
|
+
if (precision !== undefined && precision > 0) {
|
|
167
|
+
return parseFloat(val.toFixed(precision));
|
|
168
|
+
}
|
|
169
|
+
return Math.round(val);
|
|
170
|
+
};
|
|
171
|
+
const clampValue = val => {
|
|
172
|
+
let clamped = val;
|
|
173
|
+
if (min !== undefined && clamped < min) clamped = min;
|
|
174
|
+
if (max !== undefined && clamped > max) clamped = max;
|
|
175
|
+
return formatValue(clamped);
|
|
176
|
+
};
|
|
177
|
+
const handleChange = text => {
|
|
178
|
+
if (text === '' || text === '-') {
|
|
179
|
+
if (controlledValue === undefined) {
|
|
180
|
+
setUncontrolledValue('');
|
|
181
|
+
}
|
|
182
|
+
onChange?.('');
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const parsed = parseFloat(text);
|
|
186
|
+
if (!isNaN(parsed)) {
|
|
187
|
+
const clamped = clampValue(parsed);
|
|
188
|
+
if (controlledValue === undefined) {
|
|
189
|
+
setUncontrolledValue(clamped);
|
|
190
|
+
}
|
|
191
|
+
onChange?.(clamped);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const handleIncrement = () => {
|
|
195
|
+
const currentValue = typeof value === 'number' ? value : 0;
|
|
196
|
+
const newValue = clampValue(currentValue + (step || 1));
|
|
197
|
+
if (controlledValue === undefined) {
|
|
198
|
+
setUncontrolledValue(newValue);
|
|
199
|
+
}
|
|
200
|
+
onChange?.(newValue);
|
|
201
|
+
};
|
|
202
|
+
const handleDecrement = () => {
|
|
203
|
+
const currentValue = typeof value === 'number' ? value : 0;
|
|
204
|
+
const newValue = clampValue(currentValue - (step || 1));
|
|
205
|
+
if (controlledValue === undefined) {
|
|
206
|
+
setUncontrolledValue(newValue);
|
|
207
|
+
}
|
|
208
|
+
onChange?.(newValue);
|
|
209
|
+
};
|
|
210
|
+
return /*#__PURE__*/_jsxs(BoxView, {
|
|
211
|
+
style: sx(styles.wrapper, wrapperStyle),
|
|
212
|
+
children: [label && /*#__PURE__*/_jsx(Text, {
|
|
213
|
+
style: styles.label,
|
|
214
|
+
children: typeof label === 'string' ? label : label
|
|
215
|
+
}), /*#__PURE__*/_jsxs(BoxView, {
|
|
216
|
+
style: sx(styles.inputWrapper, style),
|
|
217
|
+
children: [icon && /*#__PURE__*/_jsx(BoxView, {
|
|
218
|
+
style: styles.icon,
|
|
219
|
+
children: icon
|
|
220
|
+
}), /*#__PURE__*/_jsx(TextInput, {
|
|
221
|
+
ref: ref,
|
|
222
|
+
value: value === '' ? '' : String(value),
|
|
223
|
+
onChangeText: handleChange,
|
|
224
|
+
placeholder: placeholder,
|
|
225
|
+
placeholderTextColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[3] : (theme.colors.gray || [])[5],
|
|
226
|
+
keyboardType: "numeric",
|
|
227
|
+
editable: !disabled,
|
|
228
|
+
style: styles.input,
|
|
229
|
+
...others
|
|
230
|
+
}), !hideControls && /*#__PURE__*/_jsxs(BoxView, {
|
|
231
|
+
style: styles.controls,
|
|
232
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
233
|
+
style: styles.control,
|
|
234
|
+
onPress: handleDecrement,
|
|
235
|
+
disabled: disabled || min !== undefined && typeof value === 'number' && value <= min,
|
|
236
|
+
activeOpacity: 0.7,
|
|
237
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
238
|
+
style: styles.controlText,
|
|
239
|
+
children: "\u2212"
|
|
240
|
+
})
|
|
241
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
242
|
+
style: styles.control,
|
|
243
|
+
onPress: handleIncrement,
|
|
244
|
+
disabled: disabled || max !== undefined && typeof value === 'number' && value >= max,
|
|
245
|
+
activeOpacity: 0.7,
|
|
246
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
247
|
+
style: styles.controlText,
|
|
248
|
+
children: "+"
|
|
249
|
+
})
|
|
250
|
+
})]
|
|
251
|
+
})]
|
|
252
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
253
|
+
style: styles.description,
|
|
254
|
+
children: typeof description === 'string' ? description : description
|
|
255
|
+
}), error && /*#__PURE__*/_jsx(Text, {
|
|
256
|
+
style: styles.error,
|
|
257
|
+
children: typeof error === 'string' ? error : error
|
|
258
|
+
})]
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
NumberInput.displayName = 'NumberInput';
|
|
262
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","TextInput","TouchableOpacity","BoxView","Text","useComponentDefaultProps","useTheme","createStyles","getSize","rem","INPUT_SIZES","jsx","_jsx","jsxs","_jsxs","useStyles","theme","size","radius","variant","fullWidth","error","disabled","withIcon","getVariantStyles","backgroundColor","colorScheme","colors","dark","gray","borderWidth","borderColor","white","wrapper","width","undefined","label","fontSize","fontSizes","sm","fontWeight","color","black","marginBottom","spacing","xs","description","marginTop","red","inputWrapper","flexDirection","alignItems","height","sizes","borderRadius","fn","opacity","icon","paddingLeft","paddingRight","input","flex","paddingHorizontal","controls","control","justifyContent","borderLeftWidth","borderLeftColor","controlText","defaultProps","step","precision","hideControls","NumberInput","props","ref","min","max","value","controlledValue","defaultValue","onChange","placeholder","style","wrapperStyle","others","uncontrolledValue","setUncontrolledValue","styles","sx","name","formatValue","val","parseFloat","toFixed","Math","round","clampValue","clamped","handleChange","text","parsed","isNaN","handleIncrement","currentValue","newValue","handleDecrement","children","String","onChangeText","placeholderTextColor","keyboardType","editable","onPress","activeOpacity","displayName"],"sourceRoot":"../../../../src","sources":["components/NumberInput/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,SAAS,EAAEC,gBAAgB,QAA6B,cAAc;AAC/E,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAO9B,SAASC,wBAAwB,EAAEC,QAAQ,QAAQ,+BAA4B;AAC/E,SAASC,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AACnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgEvC,MAAMC,SAAS,GAAGR,YAAY,CAC5B,CACES,KAAK,EACL;EACEC,IAAI;EACJC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC;AASF,CAAC,KACE;EACH,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;IAC7B,QAAQL,OAAO;MACb,KAAK,QAAQ;QACX,OAAO;UACLM,eAAe,EACbT,KAAK,CAACU,WAAW,KAAK,MAAM,GAAG,CAACV,KAAK,CAACW,MAAM,CAACC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,CAACZ,KAAK,CAACW,MAAM,CAACE,IAAI,I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 'react-native';
|
|
5
|
+
import { useComponentDefaultProps } from "../../theme/theme-provider.js";
|
|
6
|
+
import { createStyles } from "../../theme/index.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const useStyles = createStyles((theme, {
|
|
9
|
+
opacity,
|
|
10
|
+
color,
|
|
11
|
+
zIndex,
|
|
12
|
+
radius,
|
|
13
|
+
fixed
|
|
14
|
+
}) => ({
|
|
15
|
+
root: {
|
|
16
|
+
...StyleSheet.absoluteFillObject,
|
|
17
|
+
backgroundColor: color,
|
|
18
|
+
opacity,
|
|
19
|
+
zIndex,
|
|
20
|
+
borderRadius: theme.fn.radius(radius),
|
|
21
|
+
...(fixed && {
|
|
22
|
+
position: 'absolute'
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
const defaultProps = {
|
|
27
|
+
opacity: 0.6,
|
|
28
|
+
color: '#000',
|
|
29
|
+
zIndex: 1000,
|
|
30
|
+
radius: 0,
|
|
31
|
+
fixed: false
|
|
32
|
+
};
|
|
33
|
+
export const Overlay = /*#__PURE__*/forwardRef((props, ref) => {
|
|
34
|
+
const {
|
|
35
|
+
opacity,
|
|
36
|
+
color,
|
|
37
|
+
zIndex,
|
|
38
|
+
radius,
|
|
39
|
+
children,
|
|
40
|
+
onPress,
|
|
41
|
+
style,
|
|
42
|
+
fixed,
|
|
43
|
+
...others
|
|
44
|
+
} = useComponentDefaultProps('Overlay', defaultProps, props);
|
|
45
|
+
const {
|
|
46
|
+
styles,
|
|
47
|
+
sx
|
|
48
|
+
} = useStyles({
|
|
49
|
+
opacity,
|
|
50
|
+
color,
|
|
51
|
+
zIndex,
|
|
52
|
+
radius,
|
|
53
|
+
fixed
|
|
54
|
+
}, {
|
|
55
|
+
name: 'Overlay'
|
|
56
|
+
});
|
|
57
|
+
const content = /*#__PURE__*/_jsx(Animated.View, {
|
|
58
|
+
ref: ref,
|
|
59
|
+
style: sx(styles.root, style),
|
|
60
|
+
...others,
|
|
61
|
+
children: children
|
|
62
|
+
});
|
|
63
|
+
if (onPress) {
|
|
64
|
+
return /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
65
|
+
onPress: onPress,
|
|
66
|
+
children: content
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return content;
|
|
70
|
+
});
|
|
71
|
+
Overlay.displayName = 'Overlay';
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","TouchableWithoutFeedback","Animated","StyleSheet","useComponentDefaultProps","createStyles","jsx","_jsx","useStyles","theme","opacity","color","zIndex","radius","fixed","root","absoluteFillObject","backgroundColor","borderRadius","fn","position","defaultProps","Overlay","props","ref","children","onPress","style","others","styles","sx","name","content","View","displayName"],"sourceRoot":"../../../../src","sources":["components/Overlay/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,wBAAwB,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAE7E,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA+B3C,MAAMC,SAAS,GAAGH,YAAY,CAC5B,CACEI,KAAK,EACL;EACEC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC;AAOF,CAAC,MACG;EACJC,IAAI,EAAE;IACJ,GAAGZ,UAAU,CAACa,kBAAkB;IAChCC,eAAe,EAAEN,KAAK;IACtBD,OAAO;IACPE,MAAM;IACNM,YAAY,EAAET,KAAK,CAACU,EAAE,CAACN,MAAM,CAACA,MAAM,CAAC;IACrC,IAAIC,KAAK,IAAI;MACXM,QAAQ,EAAE;IACZ,CAAC;EACH;AACF,CAAC,CACH,CAAC;AAED,MAAMC,YAAmC,GAAG;EAC1CX,OAAO,EAAE,GAAG;EACZC,KAAK,EAAE,MAAM;EACbC,MAAM,E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