react-native-mantine 0.1.11
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/LICENSE +20 -0
- package/README.md +28 -0
- package/lib/commonjs/components/ActionIcon/ActionIcon.js +71 -0
- package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -0
- package/lib/commonjs/components/ActionIcon/index.js +13 -0
- package/lib/commonjs/components/ActionIcon/index.js.map +1 -0
- package/lib/commonjs/components/BoxView/index.js +30 -0
- package/lib/commonjs/components/BoxView/index.js.map +1 -0
- package/lib/commonjs/components/Group/index.js +33 -0
- package/lib/commonjs/components/Group/index.js.map +1 -0
- package/lib/commonjs/components/Loader/Loader.js +42 -0
- package/lib/commonjs/components/Loader/Loader.js.map +1 -0
- package/lib/commonjs/components/Loader/index.js +13 -0
- package/lib/commonjs/components/Loader/index.js.map +1 -0
- package/lib/commonjs/components/Stack/index.js +30 -0
- package/lib/commonjs/components/Stack/index.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +51 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.js +42 -0
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.js.map +1 -0
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js +24 -0
- package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js.map +1 -0
- package/lib/commonjs/components/UnstyledButton/index.js +13 -0
- package/lib/commonjs/components/UnstyledButton/index.js.map +1 -0
- package/lib/commonjs/components/index.js +72 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/fonts/Nunito-Bold.ttf +0 -0
- package/lib/commonjs/fonts/Nunito-Regular.ttf +0 -0
- package/lib/commonjs/fonts/Nunito-SemiBold.ttf +0 -0
- package/lib/commonjs/hooks/useCachedResources.js +36 -0
- package/lib/commonjs/hooks/useCachedResources.js.map +1 -0
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/theme/constants.js +25 -0
- package/lib/commonjs/theme/constants.js.map +1 -0
- package/lib/commonjs/theme/create-styles.js +25 -0
- package/lib/commonjs/theme/create-styles.js.map +1 -0
- package/lib/commonjs/theme/default-theme.js +132 -0
- package/lib/commonjs/theme/default-theme.js.map +1 -0
- package/lib/commonjs/theme/filter-props.js +15 -0
- package/lib/commonjs/theme/filter-props.js.map +1 -0
- package/lib/commonjs/theme/functions/attach-functions.js +18 -0
- package/lib/commonjs/theme/functions/attach-functions.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/index.js +15 -0
- package/lib/commonjs/theme/functions/fns/index.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/radius.js +16 -0
- package/lib/commonjs/theme/functions/fns/radius.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +12 -0
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/variant.js +11 -0
- package/lib/commonjs/theme/functions/fns/variant.js.map +1 -0
- package/lib/commonjs/theme/generate-theme.js +30 -0
- package/lib/commonjs/theme/generate-theme.js.map +1 -0
- package/lib/commonjs/theme/get-size/index.js +16 -0
- package/lib/commonjs/theme/get-size/index.js.map +1 -0
- package/lib/commonjs/theme/index.js +46 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/theme-provider.js +106 -0
- package/lib/commonjs/theme/theme-provider.js.map +1 -0
- package/lib/commonjs/theme/theme.d.js +2 -0
- package/lib/commonjs/theme/theme.d.js.map +1 -0
- package/lib/commonjs/theme/types/ColorScheme.js +2 -0
- package/lib/commonjs/theme/types/ColorScheme.js.map +1 -0
- package/lib/commonjs/theme/types/DefaultProps.js +2 -0
- package/lib/commonjs/theme/types/DefaultProps.js.map +1 -0
- package/lib/commonjs/theme/types/MantineColor.js +6 -0
- package/lib/commonjs/theme/types/MantineColor.js.map +1 -0
- package/lib/commonjs/theme/types/MantineSize.js +2 -0
- package/lib/commonjs/theme/types/MantineSize.js.map +1 -0
- package/lib/commonjs/theme/types/MantineStyleSystem.js +6 -0
- package/lib/commonjs/theme/types/MantineStyleSystem.js.map +1 -0
- package/lib/commonjs/theme/types/Tuple.js +2 -0
- package/lib/commonjs/theme/types/Tuple.js.map +1 -0
- package/lib/commonjs/theme/types/Variants.js +2 -0
- package/lib/commonjs/theme/types/Variants.js.map +1 -0
- package/lib/commonjs/theme/types/index.js +2 -0
- package/lib/commonjs/theme/types/index.js.map +1 -0
- package/lib/module/components/ActionIcon/ActionIcon.js +66 -0
- package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -0
- package/lib/module/components/ActionIcon/index.js +4 -0
- package/lib/module/components/ActionIcon/index.js.map +1 -0
- package/lib/module/components/BoxView/index.js +26 -0
- package/lib/module/components/BoxView/index.js.map +1 -0
- package/lib/module/components/Group/index.js +28 -0
- package/lib/module/components/Group/index.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +38 -0
- package/lib/module/components/Loader/Loader.js.map +1 -0
- package/lib/module/components/Loader/index.js +4 -0
- package/lib/module/components/Loader/index.js.map +1 -0
- package/lib/module/components/Stack/index.js +25 -0
- package/lib/module/components/Stack/index.js.map +1 -0
- package/lib/module/components/Text/index.js +47 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/UnstyledButton/UnstyledButton.js +35 -0
- package/lib/module/components/UnstyledButton/UnstyledButton.js.map +1 -0
- package/lib/module/components/UnstyledButton/UnstyledButton.styles.js +20 -0
- package/lib/module/components/UnstyledButton/UnstyledButton.styles.js.map +1 -0
- package/lib/module/components/UnstyledButton/index.js +4 -0
- package/lib/module/components/UnstyledButton/index.js.map +1 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/fonts/Nunito-Bold.ttf +0 -0
- package/lib/module/fonts/Nunito-Regular.ttf +0 -0
- package/lib/module/fonts/Nunito-SemiBold.ttf +0 -0
- package/lib/module/hooks/useCachedResources.js +30 -0
- package/lib/module/hooks/useCachedResources.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/theme/constants.js +21 -0
- package/lib/module/theme/constants.js.map +1 -0
- package/lib/module/theme/create-styles.js +21 -0
- package/lib/module/theme/create-styles.js.map +1 -0
- package/lib/module/theme/default-theme.js +128 -0
- package/lib/module/theme/default-theme.js.map +1 -0
- package/lib/module/theme/filter-props.js +11 -0
- package/lib/module/theme/filter-props.js.map +1 -0
- package/lib/module/theme/functions/attach-functions.js +14 -0
- package/lib/module/theme/functions/attach-functions.js.map +1 -0
- package/lib/module/theme/functions/fns/index.js +11 -0
- package/lib/module/theme/functions/fns/index.js.map +1 -0
- package/lib/module/theme/functions/fns/radius.js +12 -0
- package/lib/module/theme/functions/fns/radius.js.map +1 -0
- package/lib/module/theme/functions/fns/theme-color/theme-color.js +8 -0
- package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -0
- package/lib/module/theme/functions/fns/variant.js +6 -0
- package/lib/module/theme/functions/fns/variant.js.map +1 -0
- package/lib/module/theme/generate-theme.js +25 -0
- package/lib/module/theme/generate-theme.js.map +1 -0
- package/lib/module/theme/get-size/index.js +12 -0
- package/lib/module/theme/get-size/index.js.map +1 -0
- package/lib/module/theme/index.js +7 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/theme-provider.js +94 -0
- package/lib/module/theme/theme-provider.js.map +1 -0
- package/lib/module/theme/theme.d.js +2 -0
- package/lib/module/theme/theme.d.js.map +1 -0
- package/lib/module/theme/types/ColorScheme.js +2 -0
- package/lib/module/theme/types/ColorScheme.js.map +1 -0
- package/lib/module/theme/types/DefaultProps.js +2 -0
- package/lib/module/theme/types/DefaultProps.js.map +1 -0
- package/lib/module/theme/types/MantineColor.js +4 -0
- package/lib/module/theme/types/MantineColor.js.map +1 -0
- package/lib/module/theme/types/MantineSize.js +2 -0
- package/lib/module/theme/types/MantineSize.js.map +1 -0
- package/lib/module/theme/types/MantineStyleSystem.js +4 -0
- package/lib/module/theme/types/MantineStyleSystem.js.map +1 -0
- package/lib/module/theme/types/Tuple.js +2 -0
- package/lib/module/theme/types/Tuple.js.map +1 -0
- package/lib/module/theme/types/Variants.js +2 -0
- package/lib/module/theme/types/Variants.js.map +1 -0
- package/lib/module/theme/types/index.js +2 -0
- package/lib/module/theme/types/index.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ActionIcon/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/ActionIcon/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/BoxView/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/BoxView/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Group/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Loader/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/Loader/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Stack/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Text/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.d.ts +10 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/UnstyledButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useCachedResources.d.ts +2 -0
- package/lib/typescript/commonjs/src/hooks/useCachedResources.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/constants.d.ts +13 -0
- package/lib/typescript/commonjs/src/theme/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/create-styles.d.ts +12 -0
- package/lib/typescript/commonjs/src/theme/create-styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts +58 -0
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/filter-props.d.ts +6 -0
- package/lib/typescript/commonjs/src/theme/filter-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts +2 -0
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts +3 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +2 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +2 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/generate-theme.d.ts +3 -0
- package/lib/typescript/commonjs/src/theme/generate-theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/get-size/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/theme/get-size/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts +21 -0
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/ColorScheme.d.ts +2 -0
- package/lib/typescript/commonjs/src/theme/types/ColorScheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/MantineColor.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/types/MantineColor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/MantineSize.d.ts +4 -0
- package/lib/typescript/commonjs/src/theme/types/MantineSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/MantineStyleSystem.d.ts +5 -0
- package/lib/typescript/commonjs/src/theme/types/MantineStyleSystem.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/Tuple.d.ts +4 -0
- package/lib/typescript/commonjs/src/theme/types/Tuple.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/Variants.d.ts +2 -0
- package/lib/typescript/commonjs/src/theme/types/Variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/types/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/types/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts +17 -0
- package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ActionIcon/index.d.ts +3 -0
- package/lib/typescript/module/src/components/ActionIcon/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/BoxView/index.d.ts +17 -0
- package/lib/typescript/module/src/components/BoxView/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Group/index.d.ts +9 -0
- package/lib/typescript/module/src/components/Group/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Loader/Loader.d.ts +14 -0
- package/lib/typescript/module/src/components/Loader/Loader.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Loader/index.d.ts +3 -0
- package/lib/typescript/module/src/components/Loader/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Stack/index.d.ts +6 -0
- package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Text/index.d.ts +20 -0
- package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.d.ts +10 -0
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts +9 -0
- package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/UnstyledButton/index.d.ts +3 -0
- package/lib/typescript/module/src/components/UnstyledButton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/index.d.ts +7 -0
- package/lib/typescript/module/src/components/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useCachedResources.d.ts +2 -0
- package/lib/typescript/module/src/hooks/useCachedResources.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +5 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/constants.d.ts +13 -0
- package/lib/typescript/module/src/theme/constants.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/create-styles.d.ts +12 -0
- package/lib/typescript/module/src/theme/create-styles.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/default-theme.d.ts +58 -0
- package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/filter-props.d.ts +6 -0
- package/lib/typescript/module/src/theme/filter-props.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts +2 -0
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts +8 -0
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/radius.d.ts +3 -0
- package/lib/typescript/module/src/theme/functions/fns/radius.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +2 -0
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +2 -0
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/generate-theme.d.ts +3 -0
- package/lib/typescript/module/src/theme/generate-theme.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/get-size/index.d.ts +6 -0
- package/lib/typescript/module/src/theme/get-size/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/index.d.ts +5 -0
- package/lib/typescript/module/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/theme-provider.d.ts +21 -0
- package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/ColorScheme.d.ts +2 -0
- package/lib/typescript/module/src/theme/types/ColorScheme.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/DefaultProps.d.ts +8 -0
- package/lib/typescript/module/src/theme/types/DefaultProps.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/MantineColor.d.ts +8 -0
- package/lib/typescript/module/src/theme/types/MantineColor.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/MantineSize.d.ts +4 -0
- package/lib/typescript/module/src/theme/types/MantineSize.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/MantineStyleSystem.d.ts +5 -0
- package/lib/typescript/module/src/theme/types/MantineStyleSystem.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/Tuple.d.ts +4 -0
- package/lib/typescript/module/src/theme/types/Tuple.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/Variants.d.ts +2 -0
- package/lib/typescript/module/src/theme/types/Variants.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/types/index.d.ts +8 -0
- package/lib/typescript/module/src/theme/types/index.d.ts.map +1 -0
- package/package.json +194 -0
- package/src/components/ActionIcon/ActionIcon.tsx +64 -0
- package/src/components/ActionIcon/index.ts +3 -0
- package/src/components/BoxView/index.tsx +30 -0
- package/src/components/Group/index.tsx +48 -0
- package/src/components/Loader/Loader.tsx +50 -0
- package/src/components/Loader/index.ts +2 -0
- package/src/components/Stack/index.tsx +29 -0
- package/src/components/Text/index.tsx +81 -0
- package/src/components/UnstyledButton/UnstyledButton.styles.ts +16 -0
- package/src/components/UnstyledButton/UnstyledButton.tsx +34 -0
- package/src/components/UnstyledButton/index.ts +2 -0
- package/src/components/index.tsx +6 -0
- package/src/fonts/Nunito-Bold.ttf +0 -0
- package/src/fonts/Nunito-Regular.ttf +0 -0
- package/src/fonts/Nunito-SemiBold.ttf +0 -0
- package/src/hooks/useCachedResources.ts +30 -0
- package/src/index.tsx +4 -0
- package/src/theme/constants.ts +20 -0
- package/src/theme/create-styles.ts +31 -0
- package/src/theme/default-theme.ts +359 -0
- package/src/theme/filter-props.ts +12 -0
- package/src/theme/functions/attach-functions.ts +12 -0
- package/src/theme/functions/fns/index.ts +9 -0
- package/src/theme/functions/fns/radius.ts +16 -0
- package/src/theme/functions/fns/theme-color/theme-color.ts +6 -0
- package/src/theme/functions/fns/variant.ts +3 -0
- package/src/theme/generate-theme.ts +20 -0
- package/src/theme/get-size/index.ts +18 -0
- package/src/theme/index.tsx +4 -0
- package/src/theme/theme-provider.tsx +131 -0
- package/src/theme/theme.d.ts +13 -0
- package/src/theme/types/ColorScheme.ts +1 -0
- package/src/theme/types/DefaultProps.ts +13 -0
- package/src/theme/types/MantineColor.ts +28 -0
- package/src/theme/types/MantineSize.ts +3 -0
- package/src/theme/types/MantineStyleSystem.ts +62 -0
- package/src/theme/types/Tuple.ts +9 -0
- package/src/theme/types/Variants.ts +1 -0
- package/src/theme/types/index.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["filterProps","props","Object","keys","reduce","acc","key","undefined"],"sourceRoot":"../../../src","sources":["theme/filter-props.ts"],"mappings":";;AAIA,OAAO,SAASA,WAAWA,CAAgCC,KAAQ,EAAE;EACnE,OAAOC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,MAAM,CAAoB,CAACC,GAAG,EAAEC,GAAY,KAAK;IACzE,IAAIL,KAAK,CAACK,GAAG,CAAC,KAAKC,SAAS,EAAE;MAC5BF,GAAG,CAACC,GAAG,CAAC,GAAGL,KAAK,CAACK,GAAG,CAAC;IACvB;IACA,OAAOD,GAAG;EACZ,CAAC,EAAE,CAAC,CAAsB,CAAC;AAC7B","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { fns } from "./fns/index.js";
|
|
4
|
+
export function attachFunctions(themeBase) {
|
|
5
|
+
return {
|
|
6
|
+
...themeBase,
|
|
7
|
+
fn: {
|
|
8
|
+
radius: fns.radius(themeBase),
|
|
9
|
+
variant: fns.variant(themeBase),
|
|
10
|
+
themeColor: fns.themeColor(themeBase)
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=attach-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fns","attachFunctions","themeBase","fn","radius","variant","themeColor"],"sourceRoot":"../../../../src","sources":["theme/functions/attach-functions.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,gBAAO;AAE3B,OAAO,SAASC,eAAeA,CAACC,SAAc,EAAO;EACnD,OAAO;IACL,GAAGA,SAAS;IACZC,EAAE,EAAE;MACFC,MAAM,EAAEJ,GAAG,CAACI,MAAM,CAACF,SAAS,CAAC;MAC7BG,OAAO,EAAEL,GAAG,CAACK,OAAO,CAACH,SAAS,CAAC;MAC/BI,UAAU,EAAEN,GAAG,CAACM,UAAU,CAACJ,SAAS;IACtC;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["radius","themeColor","variant","fns"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,aAAU;AACjC,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,OAAO,QAAQ,cAAW;AAEnC,OAAO,MAAMC,GAAG,GAAG;EACjBH,MAAM;EACNE,OAAO;EACPD;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function radius(theme) {
|
|
4
|
+
return size => {
|
|
5
|
+
if (!size) {
|
|
6
|
+
return theme.defaultRadius;
|
|
7
|
+
}
|
|
8
|
+
const defaultRadius = typeof theme.defaultRadius === 'number' ? theme.defaultRadius : theme.radius[theme.defaultRadius] || theme.defaultRadius;
|
|
9
|
+
return theme.radius[size] || size || defaultRadius;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=radius.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["radius","theme","size","defaultRadius"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/radius.ts"],"mappings":";;AAEA,OAAO,SAASA,MAAMA,CAACC,KAAU,EAAE;EACjC,OAAQC,IAAwB,IAAsB;IACpD,IAAI,CAACA,IAAI,EAAE;MACT,OAAOD,KAAK,CAACE,aAAa;IAC5B;IAEA,MAAMA,aAAa,GACjB,OAAOF,KAAK,CAACE,aAAa,KAAK,QAAQ,GACnCF,KAAK,CAACE,aAAa,GACnBF,KAAK,CAACD,MAAM,CAACC,KAAK,CAACE,aAAa,CAAC,IAAIF,KAAK,CAACE,aAAa;IAE9D,OAAOF,KAAK,CAACD,MAAM,CAACE,IAAI,CAAC,IAAIA,IAAI,IAAIC,aAAa;EACpD,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["themeColor","_theme"],"sourceRoot":"../../../../../../src","sources":["theme/functions/fns/theme-color/theme-color.ts"],"mappings":";;AACA,OAAO,SAASA,UAAUA,CAACC,MAAW,EAAE;EACtC,OAAQA,MAAW,IAAK;IACtB,OAAO,CAAC,CAAC;EACX,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["variant","_theme","_variant"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/variant.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAIC,MAAW,IAAMC,QAAgB,IAAK;EAC5D,OAAO,CAAC,CAAC;AACX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { DEFAULT_COLORS, DEFAULT_THEME } from "./default-theme.js";
|
|
4
|
+
export const generateTheme = theme => {
|
|
5
|
+
const {
|
|
6
|
+
primaryShade = 7,
|
|
7
|
+
other = {}
|
|
8
|
+
} = theme || {};
|
|
9
|
+
return {
|
|
10
|
+
...DEFAULT_THEME,
|
|
11
|
+
primaryShade: primaryShade,
|
|
12
|
+
other: other,
|
|
13
|
+
fontFamily: 'Nunito',
|
|
14
|
+
fontFamilyBold: 'Nunito Bold',
|
|
15
|
+
fontFamilySemiBold: 'Nunito SemiBold',
|
|
16
|
+
fontFamilyInput: 'Nunito',
|
|
17
|
+
primaryColor: 'blue',
|
|
18
|
+
secondaryColor: 'cyan',
|
|
19
|
+
headings: {
|
|
20
|
+
fontFamily: 'Nunito'
|
|
21
|
+
},
|
|
22
|
+
colors: DEFAULT_COLORS
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=generate-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_COLORS","DEFAULT_THEME","generateTheme","theme","primaryShade","other","fontFamily","fontFamilyBold","fontFamilySemiBold","fontFamilyInput","primaryColor","secondaryColor","headings","colors"],"sourceRoot":"../../../src","sources":["theme/generate-theme.ts"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,aAAa,QAAQ,oBAAiB;AAE/D,OAAO,MAAMC,aAAa,GAAIC,KAAuB,IAAa;EAChE,MAAM;IAAEC,YAAY,GAAG,CAAC;IAAEC,KAAK,GAAG,CAAC;EAAE,CAAC,GAAGF,KAAK,IAAI,CAAC,CAAC;EACpD,OAAO;IACL,GAAGF,aAAa;IAChBG,YAAY,EAAEA,YAAY;IAC1BC,KAAK,EAAEA,KAAK;IACZC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,aAAa;IAC7BC,kBAAkB,EAAE,iBAAiB;IACrCC,eAAe,EAAE,QAAQ;IACzBC,YAAY,EAAE,MAAM;IACpBC,cAAc,EAAE,MAAM;IACtBC,QAAQ,EAAE;MACRN,UAAU,EAAE;IACd,CAAC;IACDO,MAAM,EAAEb;EACV,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getSize","size","sizes","md"],"sourceRoot":"../../../../src","sources":["theme/get-size/index.ts"],"mappings":";;AAEA,OAAO,SAASA,OAAOA,CAIrB;EACAC,IAAI;EACJC;AAIF,CAAC,EAAwE;EACvE,IAAID,IAAI,IAAIC,KAAK,EAAE;IACjB,OAAOA,KAAK,CAACD,IAAI,CAAQ;EAC3B;EACA,OAAQA,IAAI,IAAYC,KAAK,CAACC,EAAE;AAClC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { ThemeProvider, useTheme, Theme } from "./theme-provider.js";
|
|
4
|
+
export { createStyles } from "./create-styles.js";
|
|
5
|
+
export { filterProps } from "./filter-props.js";
|
|
6
|
+
export { getSize } from "./get-size/index.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ThemeProvider","useTheme","Theme","createStyles","filterProps","getSize"],"sourceRoot":"../../../src","sources":["theme/index.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,qBAAkB;AACjE,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,SAASC,OAAO,QAAQ,qBAAY","ignoreList":[]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { get } from 'lodash-es';
|
|
4
|
+
import React, { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
|
5
|
+
import { ActivityIndicator, Appearance, Platform } from 'react-native';
|
|
6
|
+
import { Layout } from "./constants.js";
|
|
7
|
+
import { generateTheme } from "./generate-theme.js";
|
|
8
|
+
import { filterProps } from "./filter-props.js";
|
|
9
|
+
import useCachedResources from "../hooks/useCachedResources.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
export const ThemeContext = /*#__PURE__*/createContext(null);
|
|
12
|
+
export const ThemeProvider = ({
|
|
13
|
+
children,
|
|
14
|
+
theme,
|
|
15
|
+
forceMode
|
|
16
|
+
}) => {
|
|
17
|
+
const {
|
|
18
|
+
colors,
|
|
19
|
+
primaryShade,
|
|
20
|
+
primaryColor,
|
|
21
|
+
secondaryColor
|
|
22
|
+
} = theme;
|
|
23
|
+
const systemDarkMode = Appearance.getColorScheme();
|
|
24
|
+
const [currentMode, setCurrentMode] = useState(forceMode || systemDarkMode || 'light');
|
|
25
|
+
const toggleMode = () => {
|
|
26
|
+
setCurrentMode(currentMode === 'light' ? 'dark' : 'light');
|
|
27
|
+
};
|
|
28
|
+
const forceModeDevice = mode => {
|
|
29
|
+
try {
|
|
30
|
+
Appearance.setColorScheme(mode);
|
|
31
|
+
} catch (e) {
|
|
32
|
+
console.log('failed set scheme');
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
forceModeDevice(currentMode);
|
|
37
|
+
}, [currentMode]);
|
|
38
|
+
const memoValue = useMemo(() => {
|
|
39
|
+
const darkTheme = {
|
|
40
|
+
light: theme.dark,
|
|
41
|
+
dark: theme.light
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
...theme,
|
|
45
|
+
primaryTextColor: get(colors, `${primaryColor}.${primaryShade}`, 'black'),
|
|
46
|
+
primaryBgColor: get(colors, `${primaryColor}.${primaryShade}`),
|
|
47
|
+
secondaryBgColor: get(colors, `${secondaryColor}.0`),
|
|
48
|
+
...(currentMode === 'dark' ? darkTheme : {}),
|
|
49
|
+
window: Layout.window,
|
|
50
|
+
isSmallDevice: Layout.isSmallDevice,
|
|
51
|
+
screen: Layout.screen,
|
|
52
|
+
bottomNavBarHeight: Layout.bottomNavBarHeight,
|
|
53
|
+
isIOS: Platform.OS === 'ios',
|
|
54
|
+
OSVersion: Platform.Version ? parseInt(Platform.Version, 10) : 0,
|
|
55
|
+
currentMode,
|
|
56
|
+
toggleMode,
|
|
57
|
+
setCurrentMode
|
|
58
|
+
};
|
|
59
|
+
}, [currentMode, theme]);
|
|
60
|
+
return /*#__PURE__*/_jsx(ThemeContext.Provider, {
|
|
61
|
+
value: memoValue,
|
|
62
|
+
children: children
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
export const useTheme = () => useContext(ThemeContext);
|
|
66
|
+
export const Theme = ({
|
|
67
|
+
children,
|
|
68
|
+
theme: themeOverwrite,
|
|
69
|
+
forceMode
|
|
70
|
+
}) => {
|
|
71
|
+
const loaded = useCachedResources();
|
|
72
|
+
const theme = useMemo(() => {
|
|
73
|
+
return generateTheme(themeOverwrite);
|
|
74
|
+
}, [themeOverwrite]);
|
|
75
|
+
if (!loaded) {
|
|
76
|
+
return /*#__PURE__*/_jsx(ActivityIndicator, {});
|
|
77
|
+
}
|
|
78
|
+
return /*#__PURE__*/_jsx(ThemeProvider, {
|
|
79
|
+
theme: theme,
|
|
80
|
+
forceMode: forceMode,
|
|
81
|
+
children: children
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export function useComponentDefaultProps(component, defaultProps, props) {
|
|
85
|
+
const theme = useTheme();
|
|
86
|
+
const contextPropsPayload = theme.components[component]?.defaultProps;
|
|
87
|
+
const contextProps = typeof contextPropsPayload === 'function' ? contextPropsPayload(theme) : contextPropsPayload;
|
|
88
|
+
return {
|
|
89
|
+
...defaultProps,
|
|
90
|
+
...contextProps,
|
|
91
|
+
...filterProps(props)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=theme-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["get","React","createContext","useContext","useEffect","useMemo","useState","ActivityIndicator","Appearance","Platform","Layout","generateTheme","filterProps","useCachedResources","jsx","_jsx","ThemeContext","ThemeProvider","children","theme","forceMode","colors","primaryShade","primaryColor","secondaryColor","systemDarkMode","getColorScheme","currentMode","setCurrentMode","toggleMode","forceModeDevice","mode","setColorScheme","e","console","log","memoValue","darkTheme","light","dark","primaryTextColor","primaryBgColor","secondaryBgColor","window","isSmallDevice","screen","bottomNavBarHeight","isIOS","OS","OSVersion","Version","parseInt","Provider","value","useTheme","Theme","themeOverwrite","loaded","useComponentDefaultProps","component","defaultProps","props","contextPropsPayload","components","contextProps"],"sourceRoot":"../../../src","sources":["theme/theme-provider.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/theme.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/ColorScheme.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/DefaultProps.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineColor.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineSize.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineStyleSystem.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/Tuple.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/Variants.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ActionIconProps = {
|
|
2
|
+
onPress?: (payload: any) => void;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
style?: any;
|
|
7
|
+
size: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const ActionIcon: ({ onPress, children, icon, minWidth, style, size, }: ActionIconProps) => React.ReactElement;
|
|
10
|
+
export declare const sizes: {
|
|
11
|
+
xs: number;
|
|
12
|
+
sm: number;
|
|
13
|
+
md: number;
|
|
14
|
+
lg: number;
|
|
15
|
+
xl: number;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ActionIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionIcon/ActionIcon.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,UAAU,wDAOpB,eAAe,KAAG,KAAK,CAAC,YAa1B,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { View as DefaultView } from 'react-native';
|
|
2
|
+
export type CustomViewStyle = {
|
|
3
|
+
pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only';
|
|
4
|
+
};
|
|
5
|
+
export type ViewProps = DefaultView['props'] & {
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
fullHeight?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
style?: CustomViewStyle;
|
|
10
|
+
};
|
|
11
|
+
export declare const BoxView: import("react").ForwardRefExoticComponent<Readonly<import("react-native").ViewProps> & {
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
fullHeight?: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
style?: CustomViewStyle;
|
|
16
|
+
} & import("react").RefAttributes<unknown>>;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BoxView/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO;gBANN,OAAO;iBACN,OAAO;eACT,KAAK,CAAC,SAAS;YAClB,eAAe;2CAkBvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewProps } from '../BoxView';
|
|
2
|
+
export declare const Group: ({ children, position, style, alignCenter, alignBottom, noWrap, spacing, ...rest }: ViewProps & {
|
|
3
|
+
position?: string;
|
|
4
|
+
alignCenter?: boolean;
|
|
5
|
+
alignBottom?: boolean;
|
|
6
|
+
noWrap?: boolean;
|
|
7
|
+
spacing?: number;
|
|
8
|
+
}) => React.ReactElement;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,sFASf,SAAS,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,KAAK,CAAC,YA2BT,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MantineNumberSize, MantineColor } from '../../theme/types';
|
|
2
|
+
export interface LoaderProps {
|
|
3
|
+
/** Defines width of loader */
|
|
4
|
+
size?: MantineNumberSize;
|
|
5
|
+
/** Loader color from theme */
|
|
6
|
+
color?: MantineColor;
|
|
7
|
+
/** Loader appearance */
|
|
8
|
+
variant?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare function Loader(props: LoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace Loader {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYzE,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC9B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,wBAAwB;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAMD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAmBxC;yBAnBe,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,oDAMf,SAAS,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,KAAK,CAAC,YAcT,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Text as DefaultText } from 'react-native';
|
|
2
|
+
export type TextProps = DefaultText['props'] & {
|
|
3
|
+
size?: string;
|
|
4
|
+
bold?: boolean;
|
|
5
|
+
questrial?: boolean;
|
|
6
|
+
semiBold?: boolean;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
white?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const Text: import("react").ForwardRefExoticComponent<Readonly<import("react-native").TextProps> & {
|
|
12
|
+
size?: string;
|
|
13
|
+
bold?: boolean;
|
|
14
|
+
questrial?: boolean;
|
|
15
|
+
semiBold?: boolean;
|
|
16
|
+
fontSize?: number;
|
|
17
|
+
color?: string;
|
|
18
|
+
white?: boolean;
|
|
19
|
+
} & import("react").RefAttributes<unknown>>;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAkBF,eAAO,MAAM,IAAI;WAzBR,MAAM;WACN,OAAO;gBACF,OAAO;eACR,OAAO;eACP,MAAM;YACT,MAAM;YACN,OAAO;2CAmEf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface UnstyledButtonProps {
|
|
3
|
+
variant?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
onPress?: (payload: any) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const UnstyledButton: React.ForwardRefExoticComponent<UnstyledButtonProps & {
|
|
8
|
+
style?: any;
|
|
9
|
+
} & React.RefAttributes<any>>;
|
|
10
|
+
//# sourceMappingURL=UnstyledButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnstyledButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/UnstyledButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,cAAc;YAEO,GAAG;6BAkBnC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: (params?: any) => {
|
|
2
|
+
styles: {
|
|
3
|
+
root: import("react-native").ViewStyle | import("react-native").TextStyle | import("react-native").ImageStyle;
|
|
4
|
+
};
|
|
5
|
+
theme: import("../../theme/default-theme").TTheme;
|
|
6
|
+
sx: (...args: any) => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=UnstyledButton.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnstyledButton.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/UnstyledButton.styles.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAaI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCachedResources.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useCachedResources.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,OAAO,CA0BpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/theme/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;;;;;CAWlB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { TTheme } from './default-theme';
|
|
3
|
+
type NamedStyles<T> = {
|
|
4
|
+
[P in keyof T]: ViewStyle | TextStyle | ImageStyle;
|
|
5
|
+
};
|
|
6
|
+
export declare function createStyles<T = any>(input: (theme: TTheme, params: any) => NamedStyles<T>): (params?: any) => {
|
|
7
|
+
styles: NamedStyles<T>;
|
|
8
|
+
theme: TTheme;
|
|
9
|
+
sx: (...args: any) => any;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=create-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-styles.d.ts","sourceRoot":"","sources":["../../../../../src/theme/create-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU;CACnD,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAClC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,aAGzB,GAAG;;;kBAGR,GAAG;EAW3B"}
|