@aic-kits/react-native 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth/components/SocialAuthButton/constants.d.ts +7 -0
- package/lib/auth/components/SocialAuthButton/constants.d.ts.map +1 -0
- package/lib/auth/components/SocialAuthButton/constants.js +14 -0
- package/lib/auth/components/SocialAuthButton/index.d.ts +22 -0
- package/lib/auth/components/SocialAuthButton/index.d.ts.map +1 -0
- package/lib/auth/components/SocialAuthButton/index.js +37 -0
- package/lib/auth/components/SocialSignIn/constants.d.ts +3 -0
- package/lib/auth/components/SocialSignIn/constants.d.ts.map +1 -0
- package/lib/auth/components/SocialSignIn/constants.js +1 -0
- package/lib/auth/components/SocialSignIn/index.d.ts +16 -0
- package/lib/auth/components/SocialSignIn/index.d.ts.map +1 -0
- package/lib/auth/components/SocialSignIn/index.js +11 -0
- package/lib/auth/components/index.d.ts +3 -0
- package/lib/auth/components/index.d.ts.map +1 -0
- package/lib/auth/components/index.js +2 -0
- package/lib/auth/hooks/index.d.ts +2 -0
- package/lib/auth/hooks/index.d.ts.map +1 -0
- package/lib/auth/hooks/index.js +1 -0
- package/lib/auth/hooks/useAuthListener.d.ts +6 -0
- package/lib/auth/hooks/useAuthListener.d.ts.map +1 -0
- package/lib/auth/hooks/useAuthListener.js +40 -0
- package/lib/auth/index.d.ts +7 -0
- package/lib/auth/index.d.ts.map +1 -0
- package/lib/auth/index.js +6 -0
- package/lib/auth/types.d.ts +26 -0
- package/lib/auth/types.d.ts.map +1 -0
- package/lib/auth/types.js +1 -0
- package/lib/auth/utils/apple.d.ts +4 -0
- package/lib/auth/utils/apple.d.ts.map +1 -0
- package/lib/auth/utils/apple.js +90 -0
- package/lib/auth/utils/email.d.ts +11 -0
- package/lib/auth/utils/email.d.ts.map +1 -0
- package/lib/auth/utils/email.js +33 -0
- package/lib/auth/utils/facebook.d.ts +4 -0
- package/lib/auth/utils/facebook.d.ts.map +1 -0
- package/lib/auth/utils/facebook.js +59 -0
- package/lib/auth/utils/google.d.ts +3 -0
- package/lib/auth/utils/google.d.ts.map +1 -0
- package/lib/auth/utils/google.js +33 -0
- package/lib/auth/utils/index.d.ts +8 -0
- package/lib/auth/utils/index.d.ts.map +1 -0
- package/lib/auth/utils/index.js +55 -0
- package/lib/components/Art/BrandArt.d.ts +3 -0
- package/lib/components/Art/BrandArt.d.ts.map +1 -0
- package/lib/components/Art/BrandArt.js +6 -0
- package/lib/components/Art/EmojiArt.d.ts +3 -0
- package/lib/components/Art/EmojiArt.d.ts.map +1 -0
- package/lib/components/Art/EmojiArt.js +25 -0
- package/lib/components/Art/IconArt.d.ts +3 -0
- package/lib/components/Art/IconArt.d.ts.map +1 -0
- package/lib/components/Art/IconArt.js +26 -0
- package/lib/components/Art/ImageArt.d.ts +3 -0
- package/lib/components/Art/ImageArt.d.ts.map +1 -0
- package/lib/components/Art/ImageArt.js +24 -0
- package/lib/components/Art/SvgArt.d.ts +3 -0
- package/lib/components/Art/SvgArt.d.ts.map +1 -0
- package/lib/components/Art/SvgArt.js +51 -0
- package/lib/components/Art/constants.d.ts +5 -0
- package/lib/components/Art/constants.d.ts.map +1 -0
- package/lib/components/Art/constants.js +6 -0
- package/lib/components/Art/hooks.d.ts +3 -0
- package/lib/components/Art/hooks.d.ts.map +1 -0
- package/lib/components/Art/hooks.js +8 -0
- package/lib/components/Art/index.d.ts +10 -0
- package/lib/components/Art/index.d.ts.map +1 -0
- package/lib/components/Art/index.js +29 -0
- package/lib/components/Art/types.d.ts +157 -0
- package/lib/components/Art/types.d.ts.map +1 -0
- package/lib/components/Art/types.js +1 -0
- package/lib/components/Art/utils.d.ts +40 -0
- package/lib/components/Art/utils.d.ts.map +1 -0
- package/lib/components/Art/utils.js +68 -0
- package/lib/components/Avatar/Wrapper.d.ts +11 -0
- package/lib/components/Avatar/Wrapper.d.ts.map +1 -0
- package/lib/components/Avatar/Wrapper.js +67 -0
- package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.d.ts +14 -0
- package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.d.ts.map +1 -0
- package/lib/components/Avatar/apiCalls/useUploadCloudinaryImageApi.js +24 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/Avatar/index.js +37 -0
- package/lib/components/Avatar/types.d.ts +51 -0
- package/lib/components/Avatar/types.d.ts.map +1 -0
- package/lib/components/Avatar/types.js +1 -0
- package/lib/components/Avatar/utils.d.ts +6 -0
- package/lib/components/Avatar/utils.d.ts.map +1 -0
- package/lib/components/Avatar/utils.js +9 -0
- package/lib/components/Base/BaseFooter.d.ts +8 -0
- package/lib/components/Base/BaseFooter.d.ts.map +1 -0
- package/lib/components/Base/BaseFooter.js +18 -0
- package/lib/components/Base/index.d.ts +4 -0
- package/lib/components/Base/index.d.ts.map +1 -0
- package/lib/components/Base/index.js +49 -0
- package/lib/components/Base/types.d.ts +83 -0
- package/lib/components/Base/types.d.ts.map +1 -0
- package/lib/components/Base/types.js +1 -0
- package/lib/components/Box/StyledBox.d.ts +254 -0
- package/lib/components/Box/StyledBox.d.ts.map +1 -0
- package/lib/components/Box/StyledBox.js +53 -0
- package/lib/components/Box/config.d.ts +359 -0
- package/lib/components/Box/config.d.ts.map +1 -0
- package/lib/components/Box/config.js +227 -0
- package/lib/components/Box/index.d.ts +11 -0
- package/lib/components/Box/index.d.ts.map +1 -0
- package/lib/components/Box/index.js +14 -0
- package/lib/components/Box/types.d.ts +53 -0
- package/lib/components/Box/types.d.ts.map +1 -0
- package/lib/components/Box/types.js +1 -0
- package/lib/components/Bubble/index.d.ts +8 -0
- package/lib/components/Bubble/index.d.ts.map +1 -0
- package/lib/components/Bubble/index.js +20 -0
- package/lib/components/Bubble/type.d.ts +18 -0
- package/lib/components/Bubble/type.d.ts.map +1 -0
- package/lib/components/Bubble/type.js +1 -0
- package/lib/components/Bubble/utils.d.ts +12 -0
- package/lib/components/Bubble/utils.d.ts.map +1 -0
- package/lib/components/Bubble/utils.js +33 -0
- package/lib/components/Button/StyledButton.d.ts +34 -0
- package/lib/components/Button/StyledButton.d.ts.map +1 -0
- package/lib/components/Button/StyledButton.js +49 -0
- package/lib/components/Button/index.d.ts +64 -0
- package/lib/components/Button/index.d.ts.map +1 -0
- package/lib/components/Button/index.js +20 -0
- package/lib/components/Button/utils.d.ts +4 -0
- package/lib/components/Button/utils.d.ts.map +1 -0
- package/lib/components/Button/utils.js +10 -0
- package/lib/components/Card/StyledCard.d.ts +226 -0
- package/lib/components/Card/StyledCard.d.ts.map +1 -0
- package/lib/components/Card/StyledCard.js +17 -0
- package/lib/components/Card/index.d.ts +27 -0
- package/lib/components/Card/index.d.ts.map +1 -0
- package/lib/components/Card/index.js +44 -0
- package/lib/components/Chart/LineChart.d.ts +3 -0
- package/lib/components/Chart/LineChart.d.ts.map +1 -0
- package/lib/components/Chart/LineChart.js +27 -0
- package/lib/components/Chart/constants.d.ts +2 -0
- package/lib/components/Chart/constants.d.ts.map +1 -0
- package/lib/components/Chart/constants.js +47 -0
- package/lib/components/Chart/index.d.ts +3 -0
- package/lib/components/Chart/index.d.ts.map +1 -0
- package/lib/components/Chart/index.js +10 -0
- package/lib/components/Chart/types.d.ts +32 -0
- package/lib/components/Chart/types.d.ts.map +1 -0
- package/lib/components/Chart/types.js +1 -0
- package/lib/components/Chart/utils.d.ts +6 -0
- package/lib/components/Chart/utils.d.ts.map +1 -0
- package/lib/components/Chart/utils.js +8 -0
- package/lib/components/Chat/ImageChat.d.ts +8 -0
- package/lib/components/Chat/ImageChat.d.ts.map +1 -0
- package/lib/components/Chat/ImageChat.js +24 -0
- package/lib/components/Chat/TextChat.d.ts +8 -0
- package/lib/components/Chat/TextChat.d.ts.map +1 -0
- package/lib/components/Chat/TextChat.js +37 -0
- package/lib/components/Chat/VideoChat.d.ts +6 -0
- package/lib/components/Chat/VideoChat.d.ts.map +1 -0
- package/lib/components/Chat/VideoChat.js +56 -0
- package/lib/components/Chat/index.d.ts +4 -0
- package/lib/components/Chat/index.d.ts.map +1 -0
- package/lib/components/Chat/index.js +26 -0
- package/lib/components/Chat/type.d.ts +95 -0
- package/lib/components/Chat/type.d.ts.map +1 -0
- package/lib/components/Chat/type.js +1 -0
- package/lib/components/ChatCluster/index.d.ts +4 -0
- package/lib/components/ChatCluster/index.d.ts.map +1 -0
- package/lib/components/ChatCluster/index.js +22 -0
- package/lib/components/ChatCluster/types.d.ts +11 -0
- package/lib/components/ChatCluster/types.d.ts.map +1 -0
- package/lib/components/ChatCluster/types.js +1 -0
- package/lib/components/ChatCluster/utils.d.ts +5 -0
- package/lib/components/ChatCluster/utils.d.ts.map +1 -0
- package/lib/components/ChatCluster/utils.js +15 -0
- package/lib/components/Chip/index.d.ts +3 -0
- package/lib/components/Chip/index.d.ts.map +1 -0
- package/lib/components/Chip/index.js +16 -0
- package/lib/components/Chip/types.d.ts +50 -0
- package/lib/components/Chip/types.d.ts.map +1 -0
- package/lib/components/Chip/types.js +1 -0
- package/lib/components/Divider/StyledDivider.d.ts +12 -0
- package/lib/components/Divider/StyledDivider.d.ts.map +1 -0
- package/lib/components/Divider/StyledDivider.js +17 -0
- package/lib/components/Divider/index.d.ts +15 -0
- package/lib/components/Divider/index.d.ts.map +1 -0
- package/lib/components/Divider/index.js +4 -0
- package/lib/components/FastList/index.d.ts +25 -0
- package/lib/components/FastList/index.d.ts.map +1 -0
- package/lib/components/FastList/index.js +13 -0
- package/lib/components/Filter/index.d.ts +40 -0
- package/lib/components/Filter/index.d.ts.map +1 -0
- package/lib/components/Filter/index.js +23 -0
- package/lib/components/Gradient/index.d.ts +11 -0
- package/lib/components/Gradient/index.d.ts.map +1 -0
- package/lib/components/Gradient/index.js +10 -0
- package/lib/components/Header/BackButton.d.ts +5 -0
- package/lib/components/Header/BackButton.d.ts.map +1 -0
- package/lib/components/Header/BackButton.js +22 -0
- package/lib/components/Header/DefaultHeader.d.ts +8 -0
- package/lib/components/Header/DefaultHeader.d.ts.map +1 -0
- package/lib/components/Header/DefaultHeader.js +13 -0
- package/lib/components/Header/HeaderContent.d.ts +6 -0
- package/lib/components/Header/HeaderContent.d.ts.map +1 -0
- package/lib/components/Header/HeaderContent.js +18 -0
- package/lib/components/Header/IconButton.d.ts +13 -0
- package/lib/components/Header/IconButton.d.ts.map +1 -0
- package/lib/components/Header/IconButton.js +6 -0
- package/lib/components/Header/ProgressHeader.d.ts +7 -0
- package/lib/components/Header/ProgressHeader.d.ts.map +1 -0
- package/lib/components/Header/ProgressHeader.js +18 -0
- package/lib/components/Header/RightButton.d.ts +3 -0
- package/lib/components/Header/RightButton.d.ts.map +1 -0
- package/lib/components/Header/RightButton.js +15 -0
- package/lib/components/Header/index.d.ts +4 -0
- package/lib/components/Header/index.d.ts.map +1 -0
- package/lib/components/Header/index.js +12 -0
- package/lib/components/Header/types.d.ts +86 -0
- package/lib/components/Header/types.d.ts.map +1 -0
- package/lib/components/Header/types.js +1 -0
- package/lib/components/Header/utils.d.ts +10 -0
- package/lib/components/Header/utils.d.ts.map +1 -0
- package/lib/components/Header/utils.js +3 -0
- package/lib/components/Icon/AnimatedIcon.d.ts +6 -0
- package/lib/components/Icon/AnimatedIcon.d.ts.map +1 -0
- package/lib/components/Icon/AnimatedIcon.js +34 -0
- package/lib/components/Icon/PlainIcon.d.ts +16 -0
- package/lib/components/Icon/PlainIcon.d.ts.map +1 -0
- package/lib/components/Icon/PlainIcon.js +13 -0
- package/lib/components/Icon/constants.d.ts +703 -0
- package/lib/components/Icon/constants.d.ts.map +1 -0
- package/lib/components/Icon/constants.js +702 -0
- package/lib/components/Icon/index.d.ts +34 -0
- package/lib/components/Icon/index.d.ts.map +1 -0
- package/lib/components/Icon/index.js +24 -0
- package/lib/components/Icon/utils.d.ts +3 -0
- package/lib/components/Icon/utils.d.ts.map +1 -0
- package/lib/components/Icon/utils.js +2 -0
- package/lib/components/Image/ImageDetail.d.ts +11 -0
- package/lib/components/Image/ImageDetail.d.ts.map +1 -0
- package/lib/components/Image/ImageDetail.js +33 -0
- package/lib/components/Image/index.d.ts +11 -0
- package/lib/components/Image/index.d.ts.map +1 -0
- package/lib/components/Image/index.js +5 -0
- package/lib/components/Image/utils.d.ts +6 -0
- package/lib/components/Image/utils.d.ts.map +1 -0
- package/lib/components/Image/utils.js +12 -0
- package/lib/components/InfoCard/BasicInfoCard.d.ts +19 -0
- package/lib/components/InfoCard/BasicInfoCard.d.ts.map +1 -0
- package/lib/components/InfoCard/BasicInfoCard.js +18 -0
- package/lib/components/InfoCard/NewsInfoCard.d.ts +22 -0
- package/lib/components/InfoCard/NewsInfoCard.d.ts.map +1 -0
- package/lib/components/InfoCard/NewsInfoCard.js +15 -0
- package/lib/components/InfoCard/ThumbnailInfoCard.d.ts +33 -0
- package/lib/components/InfoCard/ThumbnailInfoCard.d.ts.map +1 -0
- package/lib/components/InfoCard/ThumbnailInfoCard.js +24 -0
- package/lib/components/InfoCard/index.d.ts +15 -0
- package/lib/components/InfoCard/index.d.ts.map +1 -0
- package/lib/components/InfoCard/index.js +16 -0
- package/lib/components/Input/StyledInput.d.ts +13 -0
- package/lib/components/Input/StyledInput.d.ts.map +1 -0
- package/lib/components/Input/StyledInput.js +14 -0
- package/lib/components/Input/index.d.ts +34 -0
- package/lib/components/Input/index.d.ts.map +1 -0
- package/lib/components/Input/index.js +15 -0
- package/lib/components/LevelStep/CircularProgress.d.ts +12 -0
- package/lib/components/LevelStep/CircularProgress.d.ts.map +1 -0
- package/lib/components/LevelStep/CircularProgress.js +27 -0
- package/lib/components/LevelStep/TransformedSvg.d.ts +13 -0
- package/lib/components/LevelStep/TransformedSvg.d.ts.map +1 -0
- package/lib/components/LevelStep/TransformedSvg.js +9 -0
- package/lib/components/LevelStep/constants.d.ts +8 -0
- package/lib/components/LevelStep/constants.d.ts.map +1 -0
- package/lib/components/LevelStep/constants.js +17 -0
- package/lib/components/LevelStep/index.d.ts +3 -0
- package/lib/components/LevelStep/index.d.ts.map +1 -0
- package/lib/components/LevelStep/index.js +78 -0
- package/lib/components/LevelStep/types.d.ts +7 -0
- package/lib/components/LevelStep/types.d.ts.map +1 -0
- package/lib/components/LevelStep/types.js +1 -0
- package/lib/components/List/index.d.ts +13 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +13 -0
- package/lib/components/Loading/Loading.d.ts +3 -0
- package/lib/components/Loading/Loading.d.ts.map +1 -0
- package/lib/components/Loading/Loading.js +61 -0
- package/lib/components/Loading/StyledLoading.d.ts +14 -0
- package/lib/components/Loading/StyledLoading.d.ts.map +1 -0
- package/lib/components/Loading/StyledLoading.js +18 -0
- package/lib/components/Loading/index.d.ts +3 -0
- package/lib/components/Loading/index.d.ts.map +1 -0
- package/lib/components/Loading/index.js +26 -0
- package/lib/components/Loading/types.d.ts +25 -0
- package/lib/components/Loading/types.d.ts.map +1 -0
- package/lib/components/Loading/types.js +1 -0
- package/lib/components/Notification/Notification.d.ts +6 -0
- package/lib/components/Notification/Notification.d.ts.map +1 -0
- package/lib/components/Notification/Notification.js +13 -0
- package/lib/components/Notification/NotificationProvider.d.ts +4 -0
- package/lib/components/Notification/NotificationProvider.d.ts.map +1 -0
- package/lib/components/Notification/NotificationProvider.js +13 -0
- package/lib/components/Notification/Toast.d.ts +8 -0
- package/lib/components/Notification/Toast.d.ts.map +1 -0
- package/lib/components/Notification/Toast.js +32 -0
- package/lib/components/Notification/context.d.ts +7 -0
- package/lib/components/Notification/context.d.ts.map +1 -0
- package/lib/components/Notification/context.js +9 -0
- package/lib/components/Notification/index.d.ts +3 -0
- package/lib/components/Notification/index.d.ts.map +1 -0
- package/lib/components/Notification/index.js +2 -0
- package/lib/components/PlaySwitch/index.d.ts +4 -0
- package/lib/components/PlaySwitch/index.d.ts.map +1 -0
- package/lib/components/PlaySwitch/index.js +62 -0
- package/lib/components/PlaySwitch/types.d.ts +23 -0
- package/lib/components/PlaySwitch/types.d.ts.map +1 -0
- package/lib/components/PlaySwitch/types.js +1 -0
- package/lib/components/Progress/StyledProgress.d.ts +225 -0
- package/lib/components/Progress/StyledProgress.d.ts.map +1 -0
- package/lib/components/Progress/StyledProgress.js +22 -0
- package/lib/components/Progress/index.d.ts +25 -0
- package/lib/components/Progress/index.d.ts.map +1 -0
- package/lib/components/Progress/index.js +33 -0
- package/lib/components/Scrollable/StyledScrollable.d.ts +33 -0
- package/lib/components/Scrollable/StyledScrollable.d.ts.map +1 -0
- package/lib/components/Scrollable/StyledScrollable.js +56 -0
- package/lib/components/Scrollable/index.d.ts +6 -0
- package/lib/components/Scrollable/index.d.ts.map +1 -0
- package/lib/components/Scrollable/index.js +15 -0
- package/lib/components/Scrollable/types.d.ts +5 -0
- package/lib/components/Scrollable/types.d.ts.map +1 -0
- package/lib/components/Scrollable/types.js +1 -0
- package/lib/components/Sectional/Item.d.ts +13 -0
- package/lib/components/Sectional/Item.d.ts.map +1 -0
- package/lib/components/Sectional/Item.js +21 -0
- package/lib/components/Sectional/index.d.ts +9 -0
- package/lib/components/Sectional/index.d.ts.map +1 -0
- package/lib/components/Sectional/index.js +25 -0
- package/lib/components/Sectional/types.d.ts +33 -0
- package/lib/components/Sectional/types.d.ts.map +1 -0
- package/lib/components/Sectional/types.js +1 -0
- package/lib/components/Sectional/utils.d.ts +11 -0
- package/lib/components/Sectional/utils.d.ts.map +1 -0
- package/lib/components/Sectional/utils.js +37 -0
- package/lib/components/Selection/index.d.ts +17 -0
- package/lib/components/Selection/index.d.ts.map +1 -0
- package/lib/components/Selection/index.js +24 -0
- package/lib/components/Skeleton/SkeletonBackground.d.ts +6 -0
- package/lib/components/Skeleton/SkeletonBackground.d.ts.map +1 -0
- package/lib/components/Skeleton/SkeletonBackground.js +23 -0
- package/lib/components/Skeleton/SkeletonWrapper.d.ts +8 -0
- package/lib/components/Skeleton/SkeletonWrapper.d.ts.map +1 -0
- package/lib/components/Skeleton/SkeletonWrapper.js +50 -0
- package/lib/components/Skeleton/index.d.ts +4 -0
- package/lib/components/Skeleton/index.d.ts.map +1 -0
- package/lib/components/Skeleton/index.js +16 -0
- package/lib/components/Skeleton/types.d.ts +16 -0
- package/lib/components/Skeleton/types.d.ts.map +1 -0
- package/lib/components/Skeleton/types.js +1 -0
- package/lib/components/Slides/index.d.ts +14 -0
- package/lib/components/Slides/index.d.ts.map +1 -0
- package/lib/components/Slides/index.js +46 -0
- package/lib/components/Squircle/index.d.ts +35 -0
- package/lib/components/Squircle/index.d.ts.map +1 -0
- package/lib/components/Squircle/index.js +21 -0
- package/lib/components/Squircle/types.d.ts +20 -0
- package/lib/components/Squircle/types.d.ts.map +1 -0
- package/lib/components/Squircle/types.js +1 -0
- package/lib/components/Squircle/utils.d.ts +4 -0
- package/lib/components/Squircle/utils.d.ts.map +1 -0
- package/lib/components/Squircle/utils.js +86 -0
- package/lib/components/Text/StyledText.d.ts +18 -0
- package/lib/components/Text/StyledText.d.ts.map +1 -0
- package/lib/components/Text/StyledText.js +19 -0
- package/lib/components/Text/constants.d.ts +3 -0
- package/lib/components/Text/constants.d.ts.map +1 -0
- package/lib/components/Text/constants.js +6 -0
- package/lib/components/Text/index.d.ts +6 -0
- package/lib/components/Text/index.d.ts.map +1 -0
- package/lib/components/Text/index.js +7 -0
- package/lib/components/Text/types.d.ts +55 -0
- package/lib/components/Text/types.d.ts.map +1 -0
- package/lib/components/Text/types.js +1 -0
- package/lib/components/Text/withRichText.d.ts +6 -0
- package/lib/components/Text/withRichText.d.ts.map +1 -0
- package/lib/components/Text/withRichText.js +38 -0
- package/lib/components/Touchable/index.d.ts +5 -0
- package/lib/components/Touchable/index.d.ts.map +1 -0
- package/lib/components/Touchable/index.js +56 -0
- package/lib/components/Touchable/types.d.ts +22 -0
- package/lib/components/Touchable/types.d.ts.map +1 -0
- package/lib/components/Touchable/types.js +1 -0
- package/lib/components/Video/StyledVideoControlManager.d.ts +49 -0
- package/lib/components/Video/StyledVideoControlManager.d.ts.map +1 -0
- package/lib/components/Video/StyledVideoControlManager.js +64 -0
- package/lib/components/Video/StyledVideoDetail.d.ts +16 -0
- package/lib/components/Video/StyledVideoDetail.d.ts.map +1 -0
- package/lib/components/Video/StyledVideoDetail.js +23 -0
- package/lib/components/Video/VideoControlManager.d.ts +10 -0
- package/lib/components/Video/VideoControlManager.d.ts.map +1 -0
- package/lib/components/Video/VideoControlManager.js +67 -0
- package/lib/components/Video/VideoDetail.d.ts +11 -0
- package/lib/components/Video/VideoDetail.d.ts.map +1 -0
- package/lib/components/Video/VideoDetail.js +102 -0
- package/lib/components/Video/index.d.ts +25 -0
- package/lib/components/Video/index.d.ts.map +1 -0
- package/lib/components/Video/index.js +49 -0
- package/lib/components/Vimeo/Player.d.ts +4 -0
- package/lib/components/Vimeo/Player.d.ts.map +1 -0
- package/lib/components/Vimeo/Player.js +30 -0
- package/lib/components/Vimeo/constants.d.ts +2 -0
- package/lib/components/Vimeo/constants.d.ts.map +1 -0
- package/lib/components/Vimeo/constants.js +23 -0
- package/lib/components/Vimeo/index.d.ts +10 -0
- package/lib/components/Vimeo/index.d.ts.map +1 -0
- package/lib/components/Vimeo/index.js +35 -0
- package/lib/components/Vimeo/types.d.ts +74 -0
- package/lib/components/Vimeo/types.d.ts.map +1 -0
- package/lib/components/Vimeo/types.js +1 -0
- package/lib/components/Vimeo/utils.d.ts +4 -0
- package/lib/components/Vimeo/utils.d.ts.map +1 -0
- package/lib/components/Vimeo/utils.js +126 -0
- package/lib/components/index.d.ts +33 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +32 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useKeyboard.d.ts +10 -0
- package/lib/hooks/useKeyboard.d.ts.map +1 -0
- package/lib/hooks/useKeyboard.js +54 -0
- package/lib/hooks/usePrevious.d.ts +3 -0
- package/lib/hooks/usePrevious.d.ts.map +1 -0
- package/lib/hooks/usePrevious.js +9 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/services/base/BaseResponse.d.ts +12 -0
- package/lib/services/base/BaseResponse.d.ts.map +1 -0
- package/lib/services/base/BaseResponse.js +9 -0
- package/lib/services/base/BaseService.d.ts +8 -0
- package/lib/services/base/BaseService.d.ts.map +1 -0
- package/lib/services/base/BaseService.js +61 -0
- package/lib/services/base/index.d.ts +3 -0
- package/lib/services/base/index.d.ts.map +1 -0
- package/lib/services/base/index.js +2 -0
- package/lib/services/hooks/index.d.ts +2 -0
- package/lib/services/hooks/index.d.ts.map +1 -0
- package/lib/services/hooks/index.js +1 -0
- package/lib/services/hooks/useRequest.d.ts +14 -0
- package/lib/services/hooks/useRequest.d.ts.map +1 -0
- package/lib/services/hooks/useRequest.js +30 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +2 -0
- package/lib/theme/ThemeProvider.d.ts +13 -0
- package/lib/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/theme/ThemeProvider.js +5 -0
- package/lib/theme/ThemeSwitcher.d.ts +9 -0
- package/lib/theme/ThemeSwitcher.d.ts.map +1 -0
- package/lib/theme/ThemeSwitcher.js +19 -0
- package/lib/theme/common/borders.d.ts +9 -0
- package/lib/theme/common/borders.d.ts.map +1 -0
- package/lib/theme/common/borders.js +27 -0
- package/lib/theme/common/colors.d.ts +74 -0
- package/lib/theme/common/colors.d.ts.map +1 -0
- package/lib/theme/common/colors.js +73 -0
- package/lib/theme/common/gradient.d.ts +13 -0
- package/lib/theme/common/gradient.d.ts.map +1 -0
- package/lib/theme/common/gradient.js +12 -0
- package/lib/theme/common/index.d.ts +50 -0
- package/lib/theme/common/index.d.ts.map +1 -0
- package/lib/theme/common/index.js +37 -0
- package/lib/theme/common/scale.d.ts +12 -0
- package/lib/theme/common/scale.d.ts.map +1 -0
- package/lib/theme/common/scale.js +16 -0
- package/lib/theme/common/shadows.d.ts +17 -0
- package/lib/theme/common/shadows.d.ts.map +1 -0
- package/lib/theme/common/shadows.js +13 -0
- package/lib/theme/common/sizes.d.ts +6 -0
- package/lib/theme/common/sizes.d.ts.map +1 -0
- package/lib/theme/common/sizes.js +26 -0
- package/lib/theme/common/spaces.d.ts +5 -0
- package/lib/theme/common/spaces.d.ts.map +1 -0
- package/lib/theme/common/spaces.js +31 -0
- package/lib/theme/common/text.d.ts +14 -0
- package/lib/theme/common/text.d.ts.map +1 -0
- package/lib/theme/common/text.js +70 -0
- package/lib/theme/components/art.d.ts +17 -0
- package/lib/theme/components/art.d.ts.map +1 -0
- package/lib/theme/components/art.js +15 -0
- package/lib/theme/components/avatar.d.ts +11 -0
- package/lib/theme/components/avatar.d.ts.map +1 -0
- package/lib/theme/components/avatar.js +20 -0
- package/lib/theme/components/base.d.ts +14 -0
- package/lib/theme/components/base.d.ts.map +1 -0
- package/lib/theme/components/base.js +17 -0
- package/lib/theme/components/bubble.d.ts +6 -0
- package/lib/theme/components/bubble.d.ts.map +1 -0
- package/lib/theme/components/bubble.js +10 -0
- package/lib/theme/components/button.d.ts +12 -0
- package/lib/theme/components/button.d.ts.map +1 -0
- package/lib/theme/components/button.js +22 -0
- package/lib/theme/components/card.d.ts +8 -0
- package/lib/theme/components/card.d.ts.map +1 -0
- package/lib/theme/components/card.js +16 -0
- package/lib/theme/components/chart.d.ts +16 -0
- package/lib/theme/components/chart.d.ts.map +1 -0
- package/lib/theme/components/chart.js +22 -0
- package/lib/theme/components/chat.d.ts +11 -0
- package/lib/theme/components/chat.d.ts.map +1 -0
- package/lib/theme/components/chat.js +20 -0
- package/lib/theme/components/chip.d.ts +18 -0
- package/lib/theme/components/chip.d.ts.map +1 -0
- package/lib/theme/components/chip.js +43 -0
- package/lib/theme/components/divider.d.ts +12 -0
- package/lib/theme/components/divider.d.ts.map +1 -0
- package/lib/theme/components/divider.js +16 -0
- package/lib/theme/components/filter.d.ts +5 -0
- package/lib/theme/components/filter.d.ts.map +1 -0
- package/lib/theme/components/filter.js +8 -0
- package/lib/theme/components/header.d.ts +30 -0
- package/lib/theme/components/header.d.ts.map +1 -0
- package/lib/theme/components/header.js +36 -0
- package/lib/theme/components/image.d.ts +4 -0
- package/lib/theme/components/image.d.ts.map +1 -0
- package/lib/theme/components/image.js +6 -0
- package/lib/theme/components/index.d.ts +27 -0
- package/lib/theme/components/index.d.ts.map +1 -0
- package/lib/theme/components/index.js +26 -0
- package/lib/theme/components/infoCard.d.ts +25 -0
- package/lib/theme/components/infoCard.d.ts.map +1 -0
- package/lib/theme/components/infoCard.js +32 -0
- package/lib/theme/components/input.d.ts +21 -0
- package/lib/theme/components/input.d.ts.map +1 -0
- package/lib/theme/components/input.js +34 -0
- package/lib/theme/components/levelStep.d.ts +48 -0
- package/lib/theme/components/levelStep.d.ts.map +1 -0
- package/lib/theme/components/levelStep.js +56 -0
- package/lib/theme/components/loading.d.ts +16 -0
- package/lib/theme/components/loading.d.ts.map +1 -0
- package/lib/theme/components/loading.js +27 -0
- package/lib/theme/components/notification.d.ts +23 -0
- package/lib/theme/components/notification.d.ts.map +1 -0
- package/lib/theme/components/notification.js +38 -0
- package/lib/theme/components/playSwitch.d.ts +10 -0
- package/lib/theme/components/playSwitch.d.ts.map +1 -0
- package/lib/theme/components/playSwitch.js +14 -0
- package/lib/theme/components/progress.d.ts +10 -0
- package/lib/theme/components/progress.d.ts.map +1 -0
- package/lib/theme/components/progress.js +14 -0
- package/lib/theme/components/selection.d.ts +9 -0
- package/lib/theme/components/selection.d.ts.map +1 -0
- package/lib/theme/components/selection.js +21 -0
- package/lib/theme/components/skeleton.d.ts +11 -0
- package/lib/theme/components/skeleton.d.ts.map +1 -0
- package/lib/theme/components/skeleton.js +18 -0
- package/lib/theme/components/slides.d.ts +7 -0
- package/lib/theme/components/slides.d.ts.map +1 -0
- package/lib/theme/components/slides.js +10 -0
- package/lib/theme/components/text.d.ts +21 -0
- package/lib/theme/components/text.d.ts.map +1 -0
- package/lib/theme/components/text.js +22 -0
- package/lib/theme/components/touchable.d.ts +15 -0
- package/lib/theme/components/touchable.d.ts.map +1 -0
- package/lib/theme/components/touchable.js +41 -0
- package/lib/theme/components/video.d.ts +18 -0
- package/lib/theme/components/video.d.ts.map +1 -0
- package/lib/theme/components/video.js +47 -0
- package/lib/theme/getTheme.d.ts +34 -0
- package/lib/theme/getTheme.d.ts.map +1 -0
- package/lib/theme/getTheme.js +36 -0
- package/lib/theme/index.d.ts +10 -0
- package/lib/theme/index.d.ts.map +1 -0
- package/lib/theme/index.js +7 -0
- package/lib/utils/api/index.d.ts +3 -0
- package/lib/utils/api/index.d.ts.map +1 -0
- package/lib/utils/api/index.js +2 -0
- package/lib/utils/api/keys.d.ts +3 -0
- package/lib/utils/api/keys.d.ts.map +1 -0
- package/lib/utils/api/keys.js +11 -0
- package/lib/utils/api/urls.d.ts +3 -0
- package/lib/utils/api/urls.d.ts.map +1 -0
- package/lib/utils/api/urls.js +8 -0
- package/lib/utils/format/index.d.ts +3 -0
- package/lib/utils/format/index.d.ts.map +1 -0
- package/lib/utils/format/index.js +2 -0
- package/lib/utils/format/text.d.ts +4 -0
- package/lib/utils/format/text.d.ts.map +1 -0
- package/lib/utils/format/text.js +13 -0
- package/lib/utils/haptic/index.d.ts +4 -0
- package/lib/utils/haptic/index.d.ts.map +1 -0
- package/lib/utils/haptic/index.js +3 -0
- package/lib/utils/haptic/types.d.ts +25 -0
- package/lib/utils/haptic/types.d.ts.map +1 -0
- package/lib/utils/haptic/types.js +25 -0
- package/lib/utils/haptic/utils.d.ts +3 -0
- package/lib/utils/haptic/utils.d.ts.map +1 -0
- package/lib/utils/haptic/utils.js +8 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +8 -0
- package/lib/utils/intl/IntlProvider.d.ts +7 -0
- package/lib/utils/intl/IntlProvider.d.ts.map +1 -0
- package/lib/utils/intl/IntlProvider.js +16 -0
- package/lib/utils/intl/context.d.ts +15 -0
- package/lib/utils/intl/context.d.ts.map +1 -0
- package/lib/utils/intl/context.js +9 -0
- package/lib/utils/intl/global.d.ts +7 -0
- package/lib/utils/intl/global.d.ts.map +1 -0
- package/lib/utils/intl/global.js +1 -0
- package/lib/utils/intl/hooks.d.ts +7 -0
- package/lib/utils/intl/hooks.d.ts.map +1 -0
- package/lib/utils/intl/hooks.js +10 -0
- package/lib/utils/intl/index.d.ts +5 -0
- package/lib/utils/intl/index.d.ts.map +1 -0
- package/lib/utils/intl/index.js +4 -0
- package/lib/utils/intl/state.d.ts +12 -0
- package/lib/utils/intl/state.d.ts.map +1 -0
- package/lib/utils/intl/state.js +14 -0
- package/lib/utils/intl/utils.d.ts +6 -0
- package/lib/utils/intl/utils.d.ts.map +1 -0
- package/lib/utils/intl/utils.js +7 -0
- package/lib/utils/notification/index.d.ts +2 -0
- package/lib/utils/notification/index.d.ts.map +1 -0
- package/lib/utils/notification/index.js +1 -0
- package/lib/utils/notification/toast/constants.d.ts +4 -0
- package/lib/utils/notification/toast/constants.d.ts.map +1 -0
- package/lib/utils/notification/toast/constants.js +7 -0
- package/lib/utils/notification/toast/index.d.ts +3 -0
- package/lib/utils/notification/toast/index.d.ts.map +1 -0
- package/lib/utils/notification/toast/index.js +2 -0
- package/lib/utils/notification/toast/types.d.ts +2 -0
- package/lib/utils/notification/toast/types.d.ts.map +1 -0
- package/lib/utils/notification/toast/types.js +1 -0
- package/lib/utils/notification/toast/utils.d.ts +6 -0
- package/lib/utils/notification/toast/utils.d.ts.map +1 -0
- package/lib/utils/notification/toast/utils.js +23 -0
- package/lib/utils/routes/index.d.ts +4 -0
- package/lib/utils/routes/index.d.ts.map +1 -0
- package/lib/utils/routes/index.js +3 -0
- package/lib/utils/routes/types.d.ts +10 -0
- package/lib/utils/routes/types.d.ts.map +1 -0
- package/lib/utils/routes/types.js +1 -0
- package/lib/utils/routes/utils.d.ts +5 -0
- package/lib/utils/routes/utils.d.ts.map +1 -0
- package/lib/utils/routes/utils.js +3 -0
- package/lib/utils/scale.d.ts +4 -0
- package/lib/utils/scale.d.ts.map +1 -0
- package/lib/utils/scale.js +15 -0
- package/lib/utils/ui/color/index.d.ts +3 -0
- package/lib/utils/ui/color/index.d.ts.map +1 -0
- package/lib/utils/ui/color/index.js +2 -0
- package/lib/utils/ui/color/utils.d.ts +2 -0
- package/lib/utils/ui/color/utils.d.ts.map +1 -0
- package/lib/utils/ui/color/utils.js +9 -0
- package/lib/utils/ui/index.d.ts +2 -0
- package/lib/utils/ui/index.d.ts.map +1 -0
- package/lib/utils/ui/index.js +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AccessibilityProps, StyleProp, TextStyle } from 'react-native';
|
|
2
|
+
import type { Color, Size } from '../../theme';
|
|
3
|
+
import { IconList, type IconName } from './PlainIcon';
|
|
4
|
+
import { isSimpledAIIcon } from './utils';
|
|
5
|
+
export type { IconName };
|
|
6
|
+
export { IconList, isSimpledAIIcon };
|
|
7
|
+
export interface IconProps extends AccessibilityProps {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the Icon.
|
|
10
|
+
*/
|
|
11
|
+
icon: IconName;
|
|
12
|
+
/**
|
|
13
|
+
* Color of the Icon.
|
|
14
|
+
*/
|
|
15
|
+
color?: Color;
|
|
16
|
+
/**
|
|
17
|
+
* Size of the Icon.
|
|
18
|
+
*/
|
|
19
|
+
size?: Size | number;
|
|
20
|
+
/**
|
|
21
|
+
* Rotate icon with animation.
|
|
22
|
+
*/
|
|
23
|
+
spin?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Additional style.
|
|
26
|
+
*/
|
|
27
|
+
style?: StyleProp<TextStyle> | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Testing id of the component.
|
|
30
|
+
*/
|
|
31
|
+
testID?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const Icon: React.FC<IconProps>;
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,KAAK,QAAQ,EAAa,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAErC,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8CpC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatedIcon } from './AnimatedIcon';
|
|
3
|
+
import { IconList, PlainIcon } from './PlainIcon';
|
|
4
|
+
import { isSimpledAIIcon } from './utils';
|
|
5
|
+
export { IconList, isSimpledAIIcon };
|
|
6
|
+
export const Icon = ({ icon, style, size = 'medium', color = 'grey900', testID, spin = false, accessibilityLabel, accessibilityHint, accessibilityRole, accessibilityState, accessibilityValue, accessibilityLiveRegion, accessibilityElementsHidden, accessible, accessibilityIgnoresInvertColors, accessibilityViewIsModal, accessibilityActions, }) => {
|
|
7
|
+
const accessibilityProps = {
|
|
8
|
+
accessibilityLabel,
|
|
9
|
+
accessibilityHint,
|
|
10
|
+
accessibilityRole,
|
|
11
|
+
accessibilityState,
|
|
12
|
+
accessibilityValue,
|
|
13
|
+
accessibilityLiveRegion,
|
|
14
|
+
accessibilityElementsHidden,
|
|
15
|
+
accessible,
|
|
16
|
+
accessibilityIgnoresInvertColors,
|
|
17
|
+
accessibilityViewIsModal,
|
|
18
|
+
accessibilityActions,
|
|
19
|
+
};
|
|
20
|
+
const IconWrapper = spin ? AnimatedIcon : PlainIcon;
|
|
21
|
+
return (_jsx(IconWrapper, { name: icon, themeColor: color, themeSize: size,
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
style: style, testID: testID, ...accessibilityProps }));
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,eAAe,MAAO,GAAG,KAAG,CAAC,IAAI,QAAgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SkImage } from '@shopify/react-native-skia';
|
|
2
|
+
import type { DimensionValue } from 'react-native';
|
|
3
|
+
interface ImageDetailProps {
|
|
4
|
+
image: SkImage | null;
|
|
5
|
+
width?: DimensionValue;
|
|
6
|
+
height?: DimensionValue;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ImageDetail: ({ image, width, height, onBack, }: ImageDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ImageDetail;
|
|
11
|
+
//# sourceMappingURL=ImageDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageDetail.d.ts","sourceRoot":"","sources":["../../../src/components/Image/ImageDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,OAAO,EAEb,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,cAAc,CAAC;AAMtE,UAAU,gBAAgB;IACxB,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtB,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAMD,QAAA,MAAM,WAAW,sCAKd,gBAAgB,4CA6DlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/native';
|
|
3
|
+
import { useTheme } from '@emotion/react';
|
|
4
|
+
import { Canvas, Group, Image, rect, rrect, } from '@shopify/react-native-skia';
|
|
5
|
+
import { isNumber } from 'lodash';
|
|
6
|
+
import { useCallback, useState } from 'react';
|
|
7
|
+
import { Base, Box, Icon, Touchable } from '../../components';
|
|
8
|
+
import { calculateCanvasSize } from './utils';
|
|
9
|
+
const StyledCanvas = styled(Canvas) `
|
|
10
|
+
flex: 1;
|
|
11
|
+
`;
|
|
12
|
+
const ImageDetail = ({ image, width, height, onBack, }) => {
|
|
13
|
+
const theme = useTheme();
|
|
14
|
+
const themeImage = theme.__hd__.image;
|
|
15
|
+
const [boxWidth, setBoxWidth] = useState(0);
|
|
16
|
+
const [boxHeight, setBoxHeight] = useState(0);
|
|
17
|
+
const [roundedRect, setRoundedRect] = useState(null);
|
|
18
|
+
const onLayout = useCallback((event) => {
|
|
19
|
+
const { width: sWidth, height: sHeight } = event.nativeEvent.layout;
|
|
20
|
+
if ((sWidth !== boxWidth || sHeight !== boxHeight)) {
|
|
21
|
+
setBoxWidth(sWidth);
|
|
22
|
+
setBoxHeight(sHeight);
|
|
23
|
+
const { width: scaledWidth, height: scaledHeight, } = calculateCanvasSize(width, height, sWidth, 1, sWidth / sHeight);
|
|
24
|
+
if (isNumber(scaledWidth) && isNumber(scaledHeight)) {
|
|
25
|
+
const rectSize = rrect(rect((sWidth - scaledWidth) / 2, (sHeight - scaledHeight) / 2, scaledWidth, scaledHeight), theme.radii.xxxlarge, theme.radii.xxxlarge);
|
|
26
|
+
setRoundedRect(rectSize);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, [boxHeight, boxWidth, height, theme.radii.xxxlarge, width]);
|
|
30
|
+
return (_jsxs(Base, { flex: 1, padding: "large", marginBottom: "large", children: [_jsx(Box, { height: themeImage.defaultDetailPageHeaderHeight, children: _jsx(Touchable, { onPress: onBack, children: _jsx(Icon, { art: "arrow-left-light", size: themeImage.defaultDetailPageHeaderHeight }) }) }), _jsx(Box, { flex: 1, children: _jsx(StyledCanvas, { onLayout: onLayout, children: roundedRect &&
|
|
31
|
+
_jsx(Group, { clip: roundedRect, children: _jsx(Image, { image: image, x: roundedRect.rect.x, y: roundedRect.rect.y, width: roundedRect.rect.width, height: roundedRect.rect.height, fit: "scaleDown" }) }) }) })] }));
|
|
32
|
+
};
|
|
33
|
+
export default ImageDetail;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SkImage } from '@shopify/react-native-skia';
|
|
2
|
+
interface ImageProps {
|
|
3
|
+
image: SkImage | null;
|
|
4
|
+
canvasSize: {
|
|
5
|
+
width: number | undefined;
|
|
6
|
+
height: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const Image: ({ image, canvasSize, ...otherProps }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Image/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAsB,MAAM,4BAA4B,CAAC;AAKtF,UAAU,UAAU;IAClB,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;CACtE;AAED,eAAO,MAAM,KAAK,yCAIf,UAAU,4CAaZ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Canvas, Image as RNSkImage } from '@shopify/react-native-skia';
|
|
3
|
+
import { isNil } from 'lodash';
|
|
4
|
+
import { Skeleton } from '../Skeleton';
|
|
5
|
+
export const Image = ({ image, canvasSize, ...otherProps }) => (_jsx(Skeleton, { style: canvasSize, loading: isNil(image), ...otherProps, children: _jsx(Canvas, { style: canvasSize, children: _jsx(RNSkImage, { image: image, x: 0, y: 0, width: canvasSize.width, height: canvasSize.height }) }) }));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DimensionValue } from 'react-native';
|
|
2
|
+
export declare const calculateCanvasSize: (mediaWidth?: DimensionValue, mediaHeight?: DimensionValue, maxWidth?: DimensionValue, scaleRatio?: number, boxAspectRatio?: number) => {
|
|
3
|
+
width: number | undefined;
|
|
4
|
+
height: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Image/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,eAAO,MAAM,mBAAmB,gBACjB,cAAc,gBACb,cAAc,aACjB,cAAc,eACb,MAAM,mBACF,MAAM,KACrB;IAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAYzD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isNumber } from 'lodash';
|
|
2
|
+
export const calculateCanvasSize = (mediaWidth, mediaHeight, maxWidth, scaleRatio = 1, boxAspectRatio = 3 / 4) => {
|
|
3
|
+
if (!isNumber(mediaWidth) || !isNumber(mediaHeight) || !isNumber(maxWidth)) {
|
|
4
|
+
return { width: undefined, height: undefined };
|
|
5
|
+
}
|
|
6
|
+
const scaleDown = (mediaWidth / mediaHeight) / boxAspectRatio;
|
|
7
|
+
const scaledWidth = Math.min(1, scaleDown) * maxWidth * scaleRatio;
|
|
8
|
+
return {
|
|
9
|
+
width: scaledWidth,
|
|
10
|
+
height: scaledWidth / mediaWidth * mediaHeight,
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ArtProps } from '../Art';
|
|
2
|
+
import { type BoxProps } from '../Box';
|
|
3
|
+
import { type CardProps } from '../Card';
|
|
4
|
+
import { type TextProps } from '../Text';
|
|
5
|
+
export type InfoItem = {
|
|
6
|
+
title: TextProps;
|
|
7
|
+
subtitle: TextProps;
|
|
8
|
+
icon?: ArtProps;
|
|
9
|
+
verticalContainer?: BoxProps;
|
|
10
|
+
horizontalContainer?: BoxProps;
|
|
11
|
+
};
|
|
12
|
+
export interface BasicInfoCardProps extends CardProps {
|
|
13
|
+
/**
|
|
14
|
+
* List of items to display.
|
|
15
|
+
*/
|
|
16
|
+
infoItems: InfoItem[];
|
|
17
|
+
}
|
|
18
|
+
export declare const BasicInfoCard: ({ infoItems, ...otherProps }: BasicInfoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=BasicInfoCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicInfoCard.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/BasicInfoCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,mBAAmB,CAAC,EAAE,QAAQ,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD;;OAEG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAmCD,eAAO,MAAM,aAAa,iCAGvB,kBAAkB,4CAoBpB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createElement as _createElement } from "react";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { isNil } from 'lodash';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useTheme } from '../../theme';
|
|
6
|
+
import { Art } from '../Art';
|
|
7
|
+
import { Box } from '../Box';
|
|
8
|
+
import { Card } from '../Card';
|
|
9
|
+
import { Divider } from '../Divider';
|
|
10
|
+
import { Text } from '../Text';
|
|
11
|
+
const InfoCardItem = ({ title, subtitle, icon, isFirst, verticalContainer, horizontalContainer, }) => {
|
|
12
|
+
return (_jsxs(_Fragment, { children: [!isFirst && _jsx(Divider, { marginVertical: "medium" }), _jsxs(Box, { flexDirection: "row", gap: "large", ...horizontalContainer, children: [!isNil(icon) && (_jsx(Box, { flexDirection: "column", justifyContent: "flex-start", children: _jsx(Art, { ...icon }) })), _jsxs(Box, { flexDirection: "column", flex: 1, gap: "small", ...verticalContainer, children: [_jsx(Text, { fontSize: "h4", fontWeight: "bold", ...title }), _jsx(Text, { fontSize: "xlarge", fontWeight: "medium", color: "grey700", ...subtitle })] })] })] }));
|
|
13
|
+
};
|
|
14
|
+
export const BasicInfoCard = ({ infoItems, ...otherProps }) => {
|
|
15
|
+
const theme = useTheme();
|
|
16
|
+
const themeInfoCard = useMemo(() => theme.__hd__.infoCard, [theme]);
|
|
17
|
+
return (_jsx(Card, { backgroundColor: themeInfoCard.defaultBackgroundColor, borderRadius: themeInfoCard.defaultBorderRadius, borderColor: themeInfoCard.defaultBorderColor, borderWidth: themeInfoCard.defaultBorderWidth, padding: "large", ...otherProps, children: infoItems.map((item, index) => (_createElement(InfoCardItem, { ...item, key: `info-card-item-${index}`, isFirst: index === 0 }))) }));
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DataSource } from '@shopify/react-native-skia';
|
|
2
|
+
import { type CardProps } from '../Card';
|
|
3
|
+
export interface NewsInfoCardProps extends CardProps {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the news.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Subtitle of the news.
|
|
10
|
+
*/
|
|
11
|
+
subtitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* Image of the news.
|
|
14
|
+
*/
|
|
15
|
+
image: DataSource;
|
|
16
|
+
/**
|
|
17
|
+
* On press of the news.
|
|
18
|
+
*/
|
|
19
|
+
onPress?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const NewsInfoCard: (props: NewsInfoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=NewsInfoCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewsInfoCard.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/NewsInfoCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAM7D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAI/C,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAgDpD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { useTheme } from '../../theme';
|
|
4
|
+
import { Art } from '../Art';
|
|
5
|
+
import { Box } from '../Box';
|
|
6
|
+
import { Card } from '../Card';
|
|
7
|
+
import { Text } from '../Text';
|
|
8
|
+
import { Touchable } from '../Touchable';
|
|
9
|
+
export const NewsInfoCard = (props) => {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
const themeInfoCard = useMemo(() => theme.__hd__.infoCard, [theme]);
|
|
12
|
+
const themeNewsInfoCard = useMemo(() => themeInfoCard.newsInfoCard, [themeInfoCard]);
|
|
13
|
+
const { title, subtitle, image, onPress, ...otherProps } = props;
|
|
14
|
+
return (_jsx(Touchable, { onPress: onPress, children: _jsx(Card, { backgroundColor: themeInfoCard.defaultBackgroundColor, borderRadius: themeInfoCard.defaultBorderRadius, borderColor: themeInfoCard.defaultBorderColor, borderWidth: themeInfoCard.defaultBorderWidth, overflow: "hidden", ...otherProps, children: _jsxs(Box, { flexDirection: "row", children: [_jsx(Art, { art: image, type: "image", width: themeNewsInfoCard.imageSize, height: themeNewsInfoCard.imageSize, fit: "cover" }), _jsxs(Box, { flexDirection: "column", padding: "large", flex: 1, children: [_jsx(Box, { marginBottom: "medium", children: _jsx(Text, { fontSize: "h5", fontWeight: "bold", numberOfLines: themeNewsInfoCard.defaultTitleLines, children: title }) }), _jsx(Text, { fontSize: "large", fontWeight: "medium", color: "grey700", numberOfLines: themeNewsInfoCard.defaultSubtitleLines, children: subtitle })] })] }) }) }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { DataSource } from '@shopify/react-native-skia';
|
|
2
|
+
import { type CardProps } from '../Card';
|
|
3
|
+
export interface ThumbnailInfoCardProps extends CardProps {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the thumbnail.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Subtitle of the thumbnail.
|
|
10
|
+
*/
|
|
11
|
+
subtitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* Image of the thumbnail.
|
|
14
|
+
*/
|
|
15
|
+
image: DataSource;
|
|
16
|
+
/**
|
|
17
|
+
* Shared transition tag of the thumbnail, applicable for shared-element transition of react-navigation.
|
|
18
|
+
* @tutorial
|
|
19
|
+
* https://reactnavigation.org/docs/shared-element-transitions/
|
|
20
|
+
*/
|
|
21
|
+
imageSharedTransitionTag?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Ratio of the thumbnail.
|
|
24
|
+
* @default 1
|
|
25
|
+
*/
|
|
26
|
+
ratio?: number;
|
|
27
|
+
/**
|
|
28
|
+
* On press of the thumbnail.
|
|
29
|
+
*/
|
|
30
|
+
onPress?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const ThumbnailInfoCard: (props: ThumbnailInfoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=ThumbnailInfoCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbnailInfoCard.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/ThumbnailInfoCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAO7D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAK/C,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACJ,KAAK,EAAE,UAAU,CAAC;IAEjB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,4CAiF9D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { useWindowDimensions } from 'react-native';
|
|
4
|
+
import { useTheme } from '../../theme';
|
|
5
|
+
import { Art } from '../Art';
|
|
6
|
+
import { Box } from '../Box';
|
|
7
|
+
import { Card } from '../Card';
|
|
8
|
+
import { Icon } from '../Icon';
|
|
9
|
+
import { Text } from '../Text';
|
|
10
|
+
import { Touchable } from '../Touchable';
|
|
11
|
+
export const ThumbnailInfoCard = (props) => {
|
|
12
|
+
const theme = useTheme();
|
|
13
|
+
const themeInfoCard = useMemo(() => theme.__hd__.infoCard, [theme]);
|
|
14
|
+
const themeThumbnailInfoCard = useMemo(() => themeInfoCard.thumbnailInfoCard, [themeInfoCard]);
|
|
15
|
+
const { title, subtitle, image, onPress, ratio = themeThumbnailInfoCard.defaultImageRatio, imageSharedTransitionTag, ...otherProps } = props;
|
|
16
|
+
const { width: screenWidth } = useWindowDimensions();
|
|
17
|
+
const thumbnailWidth = useMemo(() => {
|
|
18
|
+
return screenWidth - theme.spaces.large * 2;
|
|
19
|
+
}, [screenWidth, theme.spaces.large]);
|
|
20
|
+
const thumbnailHeight = useMemo(() => {
|
|
21
|
+
return thumbnailWidth / ratio;
|
|
22
|
+
}, [thumbnailWidth, ratio]);
|
|
23
|
+
return (_jsx(Card, { backgroundColor: themeInfoCard.defaultBackgroundColor, borderRadius: themeInfoCard.defaultBorderRadius, borderColor: themeInfoCard.defaultBorderColor, borderWidth: themeInfoCard.defaultBorderWidth, overflow: "hidden", ...otherProps, children: _jsxs(Box, { flexDirection: "column", children: [_jsx(Art, { art: image, type: "image", width: thumbnailWidth, height: thumbnailHeight, fit: "cover", sharedTransitionTag: imageSharedTransitionTag }), _jsxs(Box, { padding: "large", children: [_jsxs(Box, { marginBottom: "medium", flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [_jsx(Text, { fontSize: "h5", fontWeight: "bold", numberOfLines: themeThumbnailInfoCard.defaultTitleLines, children: title }), _jsx(Touchable, { onPress: onPress, hitSlop: themeThumbnailInfoCard.rightButton.hitSlop, hapticFeedback: themeThumbnailInfoCard.rightButton.hapticFeedback, children: _jsx(Icon, { icon: themeThumbnailInfoCard.rightButton.icon, color: themeThumbnailInfoCard.rightButton.color, size: themeThumbnailInfoCard.rightButton.size }) })] }), _jsx(Text, { fontSize: "large", fontWeight: "medium", color: "grey700", numberOfLines: themeThumbnailInfoCard.defaultSubtitleLines, children: subtitle })] })] }) }));
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BasicInfoCardProps } from './BasicInfoCard';
|
|
2
|
+
import { type NewsInfoCardProps } from './NewsInfoCard';
|
|
3
|
+
import { type ThumbnailInfoCardProps } from './ThumbnailInfoCard';
|
|
4
|
+
export type InfoCardType = 'basic' | 'thumbnail' | 'news';
|
|
5
|
+
export type InfoCardProps = ({
|
|
6
|
+
type: 'basic';
|
|
7
|
+
} & BasicInfoCardProps) | ({
|
|
8
|
+
type: 'thumbnail';
|
|
9
|
+
} & ThumbnailInfoCardProps) | ({
|
|
10
|
+
type: 'news';
|
|
11
|
+
} & NewsInfoCardProps);
|
|
12
|
+
export declare const InfoCard: (props: InfoCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export type { InfoItem } from './BasicInfoCard';
|
|
14
|
+
export type { BasicInfoCardProps, NewsInfoCardProps, ThumbnailInfoCardProps };
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAErF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,aAAa,GACrB,CAAC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,kBAAkB,CAAC,GACxC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,sBAAsB,CAAC,GAChD,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,aAAa,mDAW5C,CAAC;AAEF,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BasicInfoCard } from './BasicInfoCard';
|
|
3
|
+
import { NewsInfoCard } from './NewsInfoCard';
|
|
4
|
+
import { ThumbnailInfoCard } from './ThumbnailInfoCard';
|
|
5
|
+
export const InfoCard = (props) => {
|
|
6
|
+
switch (props.type) {
|
|
7
|
+
case 'basic':
|
|
8
|
+
return _jsx(BasicInfoCard, { ...props });
|
|
9
|
+
case 'thumbnail':
|
|
10
|
+
return _jsx(ThumbnailInfoCard, { ...props });
|
|
11
|
+
case 'news':
|
|
12
|
+
return _jsx(NewsInfoCard, { ...props });
|
|
13
|
+
default:
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextInput } from 'react-native';
|
|
2
|
+
import type { InputType } from '../../theme';
|
|
3
|
+
declare const StyledInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
} & {
|
|
7
|
+
type: InputType;
|
|
8
|
+
textAlign?: "left" | "right" | "center" | undefined;
|
|
9
|
+
}, {}, {
|
|
10
|
+
ref?: import("react").Ref<TextInput> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export { StyledInput };
|
|
13
|
+
//# sourceMappingURL=StyledInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyledInput.d.ts","sourceRoot":"","sources":["../../../src/components/Input/StyledInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,QAAA,MAAM,WAAW;;SAkB00I,MAAO,WAAW;;UAjBr2I,SAAS;gBACH,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS;;;EAanD,CAAC;AAEH,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
const StyledInput = styled(TextInput)(({ theme, type, textAlign }) => {
|
|
4
|
+
const inputConfig = theme.__hd__.input.inputConfigs[type];
|
|
5
|
+
return {
|
|
6
|
+
fontFamily: theme.__hd__.text.fonts[inputConfig.typeface][inputConfig.fontWeight],
|
|
7
|
+
fontSize: theme.fontSizes[inputConfig.fontSize],
|
|
8
|
+
lineHeight: theme.lineHeights[inputConfig.fontSize],
|
|
9
|
+
letterSpacing: theme.letterSpacings[inputConfig.fontSize],
|
|
10
|
+
color: theme.colors[inputConfig.color],
|
|
11
|
+
textAlign,
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export { StyledInput };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ForwardedRef } from 'react';
|
|
2
|
+
import type { StyleProp, TextInputProps as NativeTextInputProps, ViewStyle, TextInput } from 'react-native';
|
|
3
|
+
import { type InputType } from '../../theme';
|
|
4
|
+
export interface InputProps extends NativeTextInputProps {
|
|
5
|
+
/**
|
|
6
|
+
* Additional style.
|
|
7
|
+
*/
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the alignment of the text.
|
|
11
|
+
*/
|
|
12
|
+
textAlign?: 'left' | 'right' | 'center' | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Testing id of the component.
|
|
15
|
+
*/
|
|
16
|
+
testID?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The type of input.
|
|
19
|
+
* - `default`: The default input type.
|
|
20
|
+
* - `underlined`: The underlined input type.
|
|
21
|
+
* @default 'default'
|
|
22
|
+
*/
|
|
23
|
+
type?: InputType;
|
|
24
|
+
/**
|
|
25
|
+
* The label of the input.
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
}
|
|
29
|
+
declare function PlainInput(props: InputProps, ref: ForwardedRef<TextInput>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const Input: (props: InputProps & {
|
|
31
|
+
ref?: ForwardedRef<TextInput>;
|
|
32
|
+
}) => ReturnType<typeof PlainInput>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,IAAI,oBAAoB,EACtC,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,aAAa,CAAC;AAOvD,MAAM,WAAW,UAAW,SAAQ,oBAAoB;IACtD;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACJ,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,CAAC,SAAS,CAAC,2CA0ClE;AAED,eAAO,MAAM,KAAK,EAA6B,CAC7C,KAAK,EAAE,UAAU,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAA;CAAE,KAClD,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useMemo } from 'react';
|
|
3
|
+
import { useTheme } from '../../theme';
|
|
4
|
+
import { Box } from '../Box';
|
|
5
|
+
import { Card } from '../Card';
|
|
6
|
+
import { Text } from '../Text';
|
|
7
|
+
import { StyledInput } from './StyledInput';
|
|
8
|
+
function PlainInput(props, ref) {
|
|
9
|
+
const theme = useTheme();
|
|
10
|
+
const themeInput = useMemo(() => theme.__hd__.input, [theme.__hd__.input]);
|
|
11
|
+
const { textAlign, label, type = themeInput.defaultInputType, ...nativeProps } = props;
|
|
12
|
+
const inputConfig = useMemo(() => themeInput.inputConfigs[type], [themeInput, type]);
|
|
13
|
+
return (_jsxs(Card, { backgroundColor: inputConfig.backgroundColor, borderRadius: inputConfig.borderRadius, paddingHorizontal: inputConfig.paddingHorizontal, paddingVertical: inputConfig.paddingVertical, borderBottomWidth: inputConfig.borderBottomWidth, borderBottomColor: inputConfig.borderBottomColor, children: [label && (_jsx(Box, { marginBottom: "small", children: _jsx(Text, { fontSize: themeInput.labelFontSize, fontWeight: themeInput.labelFontWeight, children: label }) })), _jsx(StyledInput, { ref: ref, type: type, textAlign: textAlign, placeholderTextColor: theme.colors[inputConfig.placeholderTextColor], ...nativeProps })] }));
|
|
14
|
+
}
|
|
15
|
+
export const Input = forwardRef(PlainInput);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
export interface CircularProgressProps {
|
|
3
|
+
progress: SharedValue<number>;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
foregroundColor: string;
|
|
8
|
+
strokeWidth: number;
|
|
9
|
+
springMass: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const CircularProgress: ({ progress, width, height, backgroundColor, foregroundColor, strokeWidth, }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=CircularProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../src/components/LevelStep/CircularProgress.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,yBAAyB,CAAC;AAE5E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,gFAO1B,qBAAqB,4CAqDvB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Group, Path, Skia } from '@shopify/react-native-skia';
|
|
3
|
+
import { useDerivedValue } from 'react-native-reanimated';
|
|
4
|
+
export const CircularProgress = ({ progress, width, height, backgroundColor, foregroundColor, strokeWidth, }) => {
|
|
5
|
+
const sweepAngle = useDerivedValue(() => progress.value * 360);
|
|
6
|
+
const backgroundPathValue = useDerivedValue(() => {
|
|
7
|
+
const path = Skia.Path.Make();
|
|
8
|
+
path.addArc({
|
|
9
|
+
x: strokeWidth / 2,
|
|
10
|
+
y: strokeWidth / 2,
|
|
11
|
+
width: width - strokeWidth,
|
|
12
|
+
height: height - strokeWidth,
|
|
13
|
+
}, 0, 360);
|
|
14
|
+
return path;
|
|
15
|
+
});
|
|
16
|
+
const foregroundPathValue = useDerivedValue(() => {
|
|
17
|
+
const path = Skia.Path.Make();
|
|
18
|
+
path.addArc({
|
|
19
|
+
x: strokeWidth / 2,
|
|
20
|
+
y: strokeWidth / 2,
|
|
21
|
+
width: width - strokeWidth,
|
|
22
|
+
height: height - strokeWidth,
|
|
23
|
+
}, -90, sweepAngle.value);
|
|
24
|
+
return path;
|
|
25
|
+
});
|
|
26
|
+
return (_jsxs(Group, { children: [_jsx(Path, { path: backgroundPathValue, antiAlias: true, style: "stroke", color: backgroundColor, strokeWidth: strokeWidth, strokeCap: "round" }), _jsx(Path, { path: foregroundPathValue, antiAlias: true, style: "stroke", color: foregroundColor, strokeWidth: strokeWidth, strokeCap: "round" })] }));
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DataSourceParam } from '@shopify/react-native-skia';
|
|
2
|
+
import { type DerivedValue } from 'react-native-reanimated';
|
|
3
|
+
export interface TransformedSvgProps {
|
|
4
|
+
source: DataSourceParam;
|
|
5
|
+
box: DerivedValue<{
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare const TransformedSvg: (props: TransformedSvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=TransformedSvg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransformedSvg.d.ts","sourceRoot":"","sources":["../../../src/components/LevelStep/TransformedSvg.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,yBAAyB,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,GAAG,EAAE,YAAY,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5E;AAED,eAAO,MAAM,cAAc,UAAW,mBAAmB,4CAkBxD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { fitbox, Group, ImageSVG, rect, useSVG, } from '@shopify/react-native-skia';
|
|
3
|
+
import { useDerivedValue } from 'react-native-reanimated';
|
|
4
|
+
export const TransformedSvg = (props) => {
|
|
5
|
+
const { source, box } = props;
|
|
6
|
+
const svg = useSVG(source);
|
|
7
|
+
const svgTransform = useDerivedValue(() => fitbox('contain', rect(0, 0, svg?.width() || 0, svg?.height() || 0), rect(box.value.x, box.value.y, box.value.width, box.value.height)));
|
|
8
|
+
return (_jsx(Group, { transform: svgTransform, children: _jsx(ImageSVG, { svg: svg }) }));
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DataSourceParam } from '@shopify/react-native-skia';
|
|
2
|
+
import type { Color, LevelStepType } from '../../theme';
|
|
3
|
+
export declare const LEVEL_STEP_ASSETS: Record<LevelStepType, {
|
|
4
|
+
top: DataSourceParam;
|
|
5
|
+
bottom: DataSourceParam;
|
|
6
|
+
color: Color;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/LevelStep/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAExD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,aAAa,EACb;IAAE,GAAG,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAiBhE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const LEVEL_STEP_ASSETS = {
|
|
2
|
+
active: {
|
|
3
|
+
top: require('../../assets/svg/level-step/active/top.svg'),
|
|
4
|
+
bottom: require('../../assets/svg/level-step/active/bottom.svg'),
|
|
5
|
+
color: 'primary',
|
|
6
|
+
},
|
|
7
|
+
locked: {
|
|
8
|
+
top: require('../../assets/svg/level-step/locked/top.svg'),
|
|
9
|
+
bottom: require('../../assets/svg/level-step/locked/bottom.svg'),
|
|
10
|
+
color: 'disabled',
|
|
11
|
+
},
|
|
12
|
+
passed: {
|
|
13
|
+
top: require('../../assets/svg/level-step/passed/top.svg'),
|
|
14
|
+
bottom: require('../../assets/svg/level-step/passed/bottom.svg'),
|
|
15
|
+
color: 'secondary',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LevelStep/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,UAAW,cAAc,4CAqH9C,CAAC"}
|