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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Layout = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const width = _reactNative.Dimensions.get('window').width;
|
|
9
|
+
const height = _reactNative.Dimensions.get('window').height;
|
|
10
|
+
const deviceWidth = _reactNative.Dimensions.get('screen').width;
|
|
11
|
+
const deviceHeight = _reactNative.Dimensions.get('screen').height;
|
|
12
|
+
const bottomNavBarHeight = deviceHeight - height;
|
|
13
|
+
const Layout = exports.Layout = {
|
|
14
|
+
window: {
|
|
15
|
+
width,
|
|
16
|
+
height
|
|
17
|
+
},
|
|
18
|
+
screen: {
|
|
19
|
+
width: deviceWidth,
|
|
20
|
+
height: deviceHeight
|
|
21
|
+
},
|
|
22
|
+
bottomNavBarHeight: bottomNavBarHeight ? bottomNavBarHeight : 0,
|
|
23
|
+
isSmallDevice: width <= 375
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","width","Dimensions","get","height","deviceWidth","deviceHeight","bottomNavBarHeight","Layout","exports","window","screen","isSmallDevice"],"sourceRoot":"../../../src","sources":["theme/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,KAAK,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACF,KAAK;AAC5C,MAAMG,MAAM,GAAGF,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AAC9C,MAAMC,WAAW,GAAGH,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACF,KAAK;AAClD,MAAMK,YAAY,GAAGJ,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AACpD,MAAMG,kBAAkB,GAAGD,YAAY,GAAGF,MAAM;AAEzC,MAAMI,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBE,MAAM,EAAE;IACNT,KAAK;IACLG;EACF,CAAC;EACDO,MAAM,EAAE;IACNV,KAAK,EAAEI,WAAW;IAClBD,MAAM,EAAEE;EACV,CAAC;EACDC,kBAAkB,EAAEA,kBAAkB,GAAGA,kBAAkB,GAAG,CAAC;EAC/DK,aAAa,EAAEX,KAAK,IAAI;AAC1B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createStyles = createStyles;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _themeProvider = require("./theme-provider.js");
|
|
9
|
+
function createStyles(input) {
|
|
10
|
+
const getStyleObject = typeof input === 'function' ? input : () => input;
|
|
11
|
+
function useStyles(params) {
|
|
12
|
+
const theme = (0, _themeProvider.useTheme)();
|
|
13
|
+
const styleObject = getStyleObject(theme, params);
|
|
14
|
+
const sx = (...args) => {
|
|
15
|
+
return args;
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
styles: _reactNative.StyleSheet.create(styleObject),
|
|
19
|
+
theme,
|
|
20
|
+
sx
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return useStyles;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=create-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_themeProvider","createStyles","input","getStyleObject","useStyles","params","theme","useTheme","styleObject","sx","args","styles","StyleSheet","create"],"sourceRoot":"../../../src","sources":["theme/create-styles.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAQO,SAASE,YAAYA,CAC1BC,KAAqD,EACrD;EACA,MAAMC,cAAc,GAAG,OAAOD,KAAK,KAAK,UAAU,GAAGA,KAAK,GAAG,MAAMA,KAAK;EACxE,SAASE,SAASA,CAACC,MAAY,EAAE;IAC/B,MAAMC,KAAK,GAAG,IAAAC,uBAAQ,EAAC,CAAC;IACxB,MAAMC,WAAW,GAAGL,cAAc,CAACG,KAAK,EAAED,MAAM,CAAC;IACjD,MAAMI,EAAE,GAAGA,CAAC,GAAGC,IAAS,KAAK;MAC3B,OAAOA,IAAI;IACb,CAAC;IACD,OAAO;MACLC,MAAM,EAAEC,uBAAU,CAACC,MAAM,CAACL,WAAW,CAAC;MACtCF,KAAK;MACLG;IACF,CAAC;EACH;EAEA,OAAOL,SAAS;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports._DEFAULT_THEME = exports.DEFAULT_THEME = exports.DEFAULT_COLORS = void 0;
|
|
7
|
+
var _attachFunctions = require("./functions/attach-functions.js");
|
|
8
|
+
const DEFAULT_COLORS = exports.DEFAULT_COLORS = {
|
|
9
|
+
dark: ['#2E2E2E', '#2A2A2A', '#262626', '#232323', '#1F1F1F', '#1D1D1D', '#1A1A1A', '#171717', '#151515', '#131313'],
|
|
10
|
+
gray: ['#F6F6F6', '#E0E0E0', '#CCCCCC', '#B9B9B9', '#A8A8A8', '#999999', '#8A8A8A', '#7C7C7C', '#707070', '#646464'],
|
|
11
|
+
gray2: ['#A3A3A3', '#949494', '#878787', '#7A7A7A', '#6F6F6F', '#656565', '#5C5C5C', '#535353', '#4B4B4B', '#434343'],
|
|
12
|
+
red: ['#ffeaea', '#fcd4d4', '#f3a8a8', '#eb7877', '#e4504f', '#e13735', '#e02928', '#c71c1c', '#b21518', '#9c0711'],
|
|
13
|
+
pink: ['#fff0f6', '#ffdeeb', '#fcc2d7', '#faa2c1', '#f783ac', '#f06595', '#e64980', '#d6336c', '#c2255c', '#a61e4d'],
|
|
14
|
+
grape: ['#f8f0fc', '#f3d9fa', '#eebefa', '#e599f7', '#da77f2', '#cc5de8', '#be4bdb', '#ae3ec9', '#9c36b5', '#862e9c'],
|
|
15
|
+
violet: ['#f3f0ff', '#e5dbff', '#d0bfff', '#b197fc', '#9775fa', '#845ef7', '#7950f2', '#7048e8', '#6741d9', '#5f3dc4'],
|
|
16
|
+
indigo: ['#edf2ff', '#dbe4ff', '#bac8ff', '#91a7ff', '#748ffc', '#5c7cfa', '#4c6ef5', '#4263eb', '#3b5bdb', '#364fc7'],
|
|
17
|
+
blue: ['#e7f5ff', '#d0ebff', '#a5d8ff', '#74c0fc', '#4dabf7', '#339af0', '#228be6', '#1c7ed6', '#1971c2', '#1864ab'],
|
|
18
|
+
cyan: ['#e3fafc', '#c5f6fa', '#99e9f2', '#66d9e8', '#3bc9db', '#22b8cf', '#15aabf', '#1098ad', '#0c8599', '#0b7285'],
|
|
19
|
+
teal: ['#e6fcf5', '#c3fae8', '#96f2d7', '#63e6be', '#38d9a9', '#20c997', '#12b886', '#0ca678', '#099268', '#087f5b'],
|
|
20
|
+
green: ['#f4ffeb', '#e7fdd5', '#cbfca5', '#aefb71', '#95f948', '#86f933', '#7ef928', '#6bdd1e', '#5dc416', '#4daa04'],
|
|
21
|
+
lime: ['#f4fce3', '#e9fac8', '#d8f5a2', '#c0eb75', '#a9e34b', '#94d82d', '#82c91e', '#74b816', '#66a80f', '#5c940d'],
|
|
22
|
+
yellow: ['#fff9db', '#fff3bf', '#ffec99', '#ffe066', '#ffd43b', '#fcc419', '#fab005', '#f59f00', '#f08c00', '#e67700'],
|
|
23
|
+
orange: ['#fff6e2', '#feecce', '#fbd8a0', '#f7c26d', '#f4b042', '#f3a426', '#f29f16', '#d78a07', '#c07900', '#a76800'],
|
|
24
|
+
secondary: ['#f4f4f5', '#e7e7e7', '#cccccc', '#afafaf', '#989898', '#898989', '#818181', '#6f6f6f', '#616164', '#545459']
|
|
25
|
+
};
|
|
26
|
+
const tintColorLight = '#2f95dc';
|
|
27
|
+
const tintColorDark = '#fff';
|
|
28
|
+
const _DEFAULT_THEME = exports._DEFAULT_THEME = {
|
|
29
|
+
fontFamily: 'System font',
|
|
30
|
+
fontFamilyBold: 'System font',
|
|
31
|
+
fontFamilySemiBold: 'System font',
|
|
32
|
+
fontFamilyInput: 'System font',
|
|
33
|
+
localColor: '#1F2863',
|
|
34
|
+
primaryShade: 6,
|
|
35
|
+
colors: DEFAULT_COLORS,
|
|
36
|
+
primaryColor: 'blue',
|
|
37
|
+
secondaryColor: 'black',
|
|
38
|
+
secondaryBgColor: 'white',
|
|
39
|
+
light: {
|
|
40
|
+
text: '#000',
|
|
41
|
+
background: '#fdfdfd',
|
|
42
|
+
backgroundSecondary: '#fff',
|
|
43
|
+
backgroundThird: '#EFEFEF',
|
|
44
|
+
tint: tintColorLight,
|
|
45
|
+
tabIconDefault: '#ccc',
|
|
46
|
+
tabIconSelected: tintColorLight
|
|
47
|
+
},
|
|
48
|
+
dark: {
|
|
49
|
+
text: '#fff',
|
|
50
|
+
background: '#272727',
|
|
51
|
+
backgroundSecondary: '#464F61',
|
|
52
|
+
backgroundThird: '#272727',
|
|
53
|
+
tint: tintColorDark,
|
|
54
|
+
tabIconDefault: '#ccc',
|
|
55
|
+
tabIconSelected: tintColorDark
|
|
56
|
+
},
|
|
57
|
+
components: {},
|
|
58
|
+
other: {},
|
|
59
|
+
shadows: {
|
|
60
|
+
xs: '0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)',
|
|
61
|
+
sm: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px',
|
|
62
|
+
md: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px',
|
|
63
|
+
lg: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px',
|
|
64
|
+
xl: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px'
|
|
65
|
+
},
|
|
66
|
+
fontSizes: {
|
|
67
|
+
xs: 12,
|
|
68
|
+
sm: 14,
|
|
69
|
+
md: 16,
|
|
70
|
+
lg: 18,
|
|
71
|
+
xl: 20
|
|
72
|
+
},
|
|
73
|
+
defaultRadius: 8,
|
|
74
|
+
radius: {
|
|
75
|
+
xs: 2,
|
|
76
|
+
sm: 4,
|
|
77
|
+
md: 8,
|
|
78
|
+
lg: 16,
|
|
79
|
+
xl: 32
|
|
80
|
+
},
|
|
81
|
+
spacing: {
|
|
82
|
+
xs: 10,
|
|
83
|
+
sm: 12,
|
|
84
|
+
md: 16,
|
|
85
|
+
lg: 20,
|
|
86
|
+
xl: 24
|
|
87
|
+
},
|
|
88
|
+
headings: {
|
|
89
|
+
fontFamily: 'System font',
|
|
90
|
+
fontWeight: 700,
|
|
91
|
+
sizes: {
|
|
92
|
+
h1: {
|
|
93
|
+
fontSize: 34,
|
|
94
|
+
lineHeight: 1.3,
|
|
95
|
+
fontWeight: undefined
|
|
96
|
+
},
|
|
97
|
+
h2: {
|
|
98
|
+
fontSize: 26,
|
|
99
|
+
lineHeight: 1.35,
|
|
100
|
+
fontWeight: undefined
|
|
101
|
+
},
|
|
102
|
+
h3: {
|
|
103
|
+
fontSize: 22,
|
|
104
|
+
lineHeight: 1.4,
|
|
105
|
+
fontWeight: undefined
|
|
106
|
+
},
|
|
107
|
+
h4: {
|
|
108
|
+
fontSize: 18,
|
|
109
|
+
lineHeight: 1.45,
|
|
110
|
+
fontWeight: undefined
|
|
111
|
+
},
|
|
112
|
+
h5: {
|
|
113
|
+
fontSize: 16,
|
|
114
|
+
lineHeight: 1.5,
|
|
115
|
+
fontWeight: undefined
|
|
116
|
+
},
|
|
117
|
+
h6: {
|
|
118
|
+
fontSize: 14,
|
|
119
|
+
lineHeight: 1.5,
|
|
120
|
+
fontWeight: undefined
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
window: {
|
|
125
|
+
width: 375,
|
|
126
|
+
height: 800
|
|
127
|
+
},
|
|
128
|
+
primaryBgColor: 'white',
|
|
129
|
+
primaryTextColor: 'black'
|
|
130
|
+
};
|
|
131
|
+
const DEFAULT_THEME = exports.DEFAULT_THEME = (0, _attachFunctions.attachFunctions)(_DEFAULT_THEME);
|
|
132
|
+
//# sourceMappingURL=default-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_attachFunctions","require","DEFAULT_COLORS","exports","dark","gray","gray2","red","pink","grape","violet","indigo","blue","cyan","teal","green","lime","yellow","orange","secondary","tintColorLight","tintColorDark","_DEFAULT_THEME","fontFamily","fontFamilyBold","fontFamilySemiBold","fontFamilyInput","localColor","primaryShade","colors","primaryColor","secondaryColor","secondaryBgColor","light","text","background","backgroundSecondary","backgroundThird","tint","tabIconDefault","tabIconSelected","components","other","shadows","xs","sm","md","lg","xl","fontSizes","defaultRadius","radius","spacing","headings","fontWeight","sizes","h1","fontSize","lineHeight","undefined","h2","h3","h4","h5","h6","window","width","height","primaryBgColor","primaryTextColor","DEFAULT_THEME","attachFunctions"],"sourceRoot":"../../../src","sources":["theme/default-theme.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAGO,MAAMC,cA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,UAAU,EAAE,GAAG;IACfC,KAAK,EAAE;MACLC,EAAE,EAAE;QAAEC,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,GAAG;QAAEJ,UAAU,EAAEK;MAAU,CAAC;MAC5DC,EAAE,EAAE;QAAEH,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,IAAI;QAAEJ,UAAU,EAAEK;MAAU,CAAC;MAC7DE,EAAE,EAAE;QAAEJ,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,GAAG;QAAEJ,UAAU,EAAEK;MAAU,CAAC;MAC5DG,EAAE,EAAE;QAAEL,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,IAAI;QAAEJ,UAAU,EAAEK;MAAU,CAAC;MAC7DI,EAAE,EAAE;QAAEN,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,GAAG;QAAEJ,UAAU,EAAEK;MAAU,CAAC;MAC5DK,EAAE,EAAE;QAAEP,QAAQ,EAAE,EAAE;QAAEC,UAAU,EAAE,GAAG;QAAEJ,UAAU,EAAEK;MAAU;IAC7D;EACF,CAAC;EACDM,MAAM,EAAE;IACNC,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV,CAAC;EACDC,cAAc,EAAE,OAAO;EACvBC,gBAAgB,EAAE;AACpB,CAAC;AAEM,MAAMC,aAAa,GAAAnE,OAAA,CAAAmE,aAAA,GAAG,IAAAC,gCAAe,EAACjD,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.filterProps = filterProps;
|
|
7
|
+
function filterProps(props) {
|
|
8
|
+
return Object.keys(props).reduce((acc, key) => {
|
|
9
|
+
if (props[key] !== undefined) {
|
|
10
|
+
acc[key] = props[key];
|
|
11
|
+
}
|
|
12
|
+
return acc;
|
|
13
|
+
}, {});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=filter-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["filterProps","props","Object","keys","reduce","acc","key","undefined"],"sourceRoot":"../../../src","sources":["theme/filter-props.ts"],"mappings":";;;;;;AAIO,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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.attachFunctions = attachFunctions;
|
|
7
|
+
var _index = require("./fns/index.js");
|
|
8
|
+
function attachFunctions(themeBase) {
|
|
9
|
+
return {
|
|
10
|
+
...themeBase,
|
|
11
|
+
fn: {
|
|
12
|
+
radius: _index.fns.radius(themeBase),
|
|
13
|
+
variant: _index.fns.variant(themeBase),
|
|
14
|
+
themeColor: _index.fns.themeColor(themeBase)
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=attach-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","attachFunctions","themeBase","fn","radius","fns","variant","themeColor"],"sourceRoot":"../../../../src","sources":["theme/functions/attach-functions.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,eAAeA,CAACC,SAAc,EAAO;EACnD,OAAO;IACL,GAAGA,SAAS;IACZC,EAAE,EAAE;MACFC,MAAM,EAAEC,UAAG,CAACD,MAAM,CAACF,SAAS,CAAC;MAC7BI,OAAO,EAAED,UAAG,CAACC,OAAO,CAACJ,SAAS,CAAC;MAC/BK,UAAU,EAAEF,UAAG,CAACE,UAAU,CAACL,SAAS;IACtC;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fns = void 0;
|
|
7
|
+
var _radius = require("./radius.js");
|
|
8
|
+
var _themeColor = require("./theme-color/theme-color.js");
|
|
9
|
+
var _variant = require("./variant.js");
|
|
10
|
+
const fns = exports.fns = {
|
|
11
|
+
radius: _radius.radius,
|
|
12
|
+
variant: _variant.variant,
|
|
13
|
+
themeColor: _themeColor.themeColor
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_radius","require","_themeColor","_variant","fns","exports","radius","variant","themeColor"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/index.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEO,MAAMG,GAAG,GAAAC,OAAA,CAAAD,GAAA,GAAG;EACjBE,MAAM,EAANA,cAAM;EACNC,OAAO,EAAPA,gBAAO;EACPC,UAAU,EAAVA;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.radius = radius;
|
|
7
|
+
function radius(theme) {
|
|
8
|
+
return size => {
|
|
9
|
+
if (!size) {
|
|
10
|
+
return theme.defaultRadius;
|
|
11
|
+
}
|
|
12
|
+
const defaultRadius = typeof theme.defaultRadius === 'number' ? theme.defaultRadius : theme.radius[theme.defaultRadius] || theme.defaultRadius;
|
|
13
|
+
return theme.radius[size] || size || defaultRadius;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=radius.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["radius","theme","size","defaultRadius"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/radius.ts"],"mappings":";;;;;;AAEO,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":";;;;;;AACO,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","exports"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/variant.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAIC,MAAW,IAAMC,QAAgB,IAAK;EAC5D,OAAO,CAAC,CAAC;AACX,CAAC;AAAAC,OAAA,CAAAH,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.generateTheme = void 0;
|
|
7
|
+
var _defaultTheme = require("./default-theme.js");
|
|
8
|
+
const generateTheme = theme => {
|
|
9
|
+
const {
|
|
10
|
+
primaryShade = 7,
|
|
11
|
+
other = {}
|
|
12
|
+
} = theme || {};
|
|
13
|
+
return {
|
|
14
|
+
..._defaultTheme.DEFAULT_THEME,
|
|
15
|
+
primaryShade: primaryShade,
|
|
16
|
+
other: other,
|
|
17
|
+
fontFamily: 'Nunito',
|
|
18
|
+
fontFamilyBold: 'Nunito Bold',
|
|
19
|
+
fontFamilySemiBold: 'Nunito SemiBold',
|
|
20
|
+
fontFamilyInput: 'Nunito',
|
|
21
|
+
primaryColor: 'blue',
|
|
22
|
+
secondaryColor: 'cyan',
|
|
23
|
+
headings: {
|
|
24
|
+
fontFamily: 'Nunito'
|
|
25
|
+
},
|
|
26
|
+
colors: _defaultTheme.DEFAULT_COLORS
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.generateTheme = generateTheme;
|
|
30
|
+
//# sourceMappingURL=generate-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_defaultTheme","require","generateTheme","theme","primaryShade","other","DEFAULT_THEME","fontFamily","fontFamilyBold","fontFamilySemiBold","fontFamilyInput","primaryColor","secondaryColor","headings","colors","DEFAULT_COLORS","exports"],"sourceRoot":"../../../src","sources":["theme/generate-theme.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEO,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,GAAGG,2BAAa;IAChBF,YAAY,EAAEA,YAAY;IAC1BC,KAAK,EAAEA,KAAK;IACZE,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,EAAEC;EACV,CAAC;AACH,CAAC;AAACC,OAAA,CAAAd,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSize = getSize;
|
|
7
|
+
function getSize({
|
|
8
|
+
size,
|
|
9
|
+
sizes
|
|
10
|
+
}) {
|
|
11
|
+
if (size in sizes) {
|
|
12
|
+
return sizes[size];
|
|
13
|
+
}
|
|
14
|
+
return size || sizes.md;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getSize","size","sizes","md"],"sourceRoot":"../../../../src","sources":["theme/get-size/index.ts"],"mappings":";;;;;;AAEO,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,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Theme", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _themeProvider.Theme;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _themeProvider.ThemeProvider;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "createStyles", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _createStyles.createStyles;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "filterProps", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _filterProps.filterProps;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "getSize", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _index.getSize;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useTheme", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _themeProvider.useTheme;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _themeProvider = require("./theme-provider.js");
|
|
43
|
+
var _createStyles = require("./create-styles.js");
|
|
44
|
+
var _filterProps = require("./filter-props.js");
|
|
45
|
+
var _index = require("./get-size/index.js");
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_themeProvider","require","_createStyles","_filterProps","_index"],"sourceRoot":"../../../src","sources":["theme/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ThemeProvider = exports.ThemeContext = exports.Theme = void 0;
|
|
7
|
+
exports.useComponentDefaultProps = useComponentDefaultProps;
|
|
8
|
+
exports.useTheme = void 0;
|
|
9
|
+
var _lodashEs = require("lodash-es");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _reactNative = require("react-native");
|
|
12
|
+
var _constants = require("./constants.js");
|
|
13
|
+
var _generateTheme = require("./generate-theme.js");
|
|
14
|
+
var _filterProps = require("./filter-props.js");
|
|
15
|
+
var _useCachedResources = _interopRequireDefault(require("../hooks/useCachedResources.js"));
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
const ThemeContext = exports.ThemeContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
21
|
+
const ThemeProvider = ({
|
|
22
|
+
children,
|
|
23
|
+
theme,
|
|
24
|
+
forceMode
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
colors,
|
|
28
|
+
primaryShade,
|
|
29
|
+
primaryColor,
|
|
30
|
+
secondaryColor
|
|
31
|
+
} = theme;
|
|
32
|
+
const systemDarkMode = _reactNative.Appearance.getColorScheme();
|
|
33
|
+
const [currentMode, setCurrentMode] = (0, _react.useState)(forceMode || systemDarkMode || 'light');
|
|
34
|
+
const toggleMode = () => {
|
|
35
|
+
setCurrentMode(currentMode === 'light' ? 'dark' : 'light');
|
|
36
|
+
};
|
|
37
|
+
const forceModeDevice = mode => {
|
|
38
|
+
try {
|
|
39
|
+
_reactNative.Appearance.setColorScheme(mode);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
console.log('failed set scheme');
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
(0, _react.useEffect)(() => {
|
|
45
|
+
forceModeDevice(currentMode);
|
|
46
|
+
}, [currentMode]);
|
|
47
|
+
const memoValue = (0, _react.useMemo)(() => {
|
|
48
|
+
const darkTheme = {
|
|
49
|
+
light: theme.dark,
|
|
50
|
+
dark: theme.light
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
...theme,
|
|
54
|
+
primaryTextColor: (0, _lodashEs.get)(colors, `${primaryColor}.${primaryShade}`, 'black'),
|
|
55
|
+
primaryBgColor: (0, _lodashEs.get)(colors, `${primaryColor}.${primaryShade}`),
|
|
56
|
+
secondaryBgColor: (0, _lodashEs.get)(colors, `${secondaryColor}.0`),
|
|
57
|
+
...(currentMode === 'dark' ? darkTheme : {}),
|
|
58
|
+
window: _constants.Layout.window,
|
|
59
|
+
isSmallDevice: _constants.Layout.isSmallDevice,
|
|
60
|
+
screen: _constants.Layout.screen,
|
|
61
|
+
bottomNavBarHeight: _constants.Layout.bottomNavBarHeight,
|
|
62
|
+
isIOS: _reactNative.Platform.OS === 'ios',
|
|
63
|
+
OSVersion: _reactNative.Platform.Version ? parseInt(_reactNative.Platform.Version, 10) : 0,
|
|
64
|
+
currentMode,
|
|
65
|
+
toggleMode,
|
|
66
|
+
setCurrentMode
|
|
67
|
+
};
|
|
68
|
+
}, [currentMode, theme]);
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ThemeContext.Provider, {
|
|
70
|
+
value: memoValue,
|
|
71
|
+
children: children
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
exports.ThemeProvider = ThemeProvider;
|
|
75
|
+
const useTheme = () => (0, _react.useContext)(ThemeContext);
|
|
76
|
+
exports.useTheme = useTheme;
|
|
77
|
+
const Theme = ({
|
|
78
|
+
children,
|
|
79
|
+
theme: themeOverwrite,
|
|
80
|
+
forceMode
|
|
81
|
+
}) => {
|
|
82
|
+
const loaded = (0, _useCachedResources.default)();
|
|
83
|
+
const theme = (0, _react.useMemo)(() => {
|
|
84
|
+
return (0, _generateTheme.generateTheme)(themeOverwrite);
|
|
85
|
+
}, [themeOverwrite]);
|
|
86
|
+
if (!loaded) {
|
|
87
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {});
|
|
88
|
+
}
|
|
89
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ThemeProvider, {
|
|
90
|
+
theme: theme,
|
|
91
|
+
forceMode: forceMode,
|
|
92
|
+
children: children
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
exports.Theme = Theme;
|
|
96
|
+
function useComponentDefaultProps(component, defaultProps, props) {
|
|
97
|
+
const theme = useTheme();
|
|
98
|
+
const contextPropsPayload = theme.components[component]?.defaultProps;
|
|
99
|
+
const contextProps = typeof contextPropsPayload === 'function' ? contextPropsPayload(theme) : contextPropsPayload;
|
|
100
|
+
return {
|
|
101
|
+
...defaultProps,
|
|
102
|
+
...contextProps,
|
|
103
|
+
...(0, _filterProps.filterProps)(props)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=theme-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_lodashEs","require","_react","_interopRequireWildcard","_reactNative","_constants","_generateTheme","_filterProps","_useCachedResources","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ThemeContext","exports","createContext","ThemeProvider","children","theme","forceMode","colors","primaryShade","primaryColor","secondaryColor","systemDarkMode","Appearance","getColorScheme","currentMode","setCurrentMode","useState","toggleMode","forceModeDevice","mode","setColorScheme","console","log","useEffect","memoValue","useMemo","darkTheme","light","dark","primaryTextColor","primaryBgColor","secondaryBgColor","window","Layout","isSmallDevice","screen","bottomNavBarHeight","isIOS","Platform","OS","OSVersion","Version","parseInt","jsx","Provider","value","useTheme","useContext","Theme","themeOverwrite","loaded","useCachedResources","generateTheme","ActivityIndicator","useComponentDefaultProps","component","defaultProps","props","contextPropsPayload","components","contextProps","filterProps"],"sourceRoot":"../../../src","sources":["theme/theme-provider.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAOA,IAAAG,YAAA,GAAAH,OAAA;AAMA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAEA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAC,sBAAA,CAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAQ,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,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,CAACJ,SAAS,CAAC,EAAEC,YAAY;EACrE,MAAMI,YAAY,GAChB,OAAOF,mBAAmB,KAAK,UAAU,GACrCA,mBAAmB,CAACrD,KAAK,CAAC,GAC1BqD,mBAAmB;EAEzB,OAAO;IAAE,GAAGF,YAAY;IAAE,GAAGI,YAAY;IAAE,GAAG,IAAAC,wBAAW,EAACJ,KAAK;EAAE,CAAC;AACpE","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":[]}
|