@metamask-previews/design-system-react-native 0.0.0-preview.6fee845 → 0.0.0-preview.7df341a
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/dist/components/AvatarAccount/AvatarAccount.constants.d.ts +2 -0
- package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts.map +1 -0
- package/dist/components/AvatarAccount/AvatarAccount.constants.js +19 -0
- package/dist/components/AvatarAccount/AvatarAccount.constants.js.map +1 -0
- package/dist/components/AvatarAccount/AvatarAccount.d.ts +5 -0
- package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -0
- package/dist/components/AvatarAccount/AvatarAccount.js +29 -0
- package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -0
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +20 -0
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -0
- package/dist/components/AvatarAccount/AvatarAccount.types.js +9 -0
- package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -0
- package/dist/components/AvatarAccount/index.d.ts +5 -0
- package/dist/components/AvatarAccount/index.d.ts.map +1 -0
- package/dist/components/AvatarAccount/index.js +13 -0
- package/dist/components/AvatarAccount/index.js.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +2 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +14 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +5 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.js +53 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.types.js +3 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -0
- package/dist/components/AvatarFavicon/index.d.ts +4 -0
- package/dist/components/AvatarFavicon/index.d.ts.map +1 -0
- package/dist/components/AvatarFavicon/index.js +11 -0
- package/dist/components/AvatarFavicon/index.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +13 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.js +168 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +5 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +80 -0
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +70 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.js +14 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts +48 -0
- package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.utilities.js +72 -0
- package/dist/components/AvatarGroup/AvatarGroup.utilities.js.map +1 -0
- package/dist/components/AvatarGroup/index.d.ts +5 -0
- package/dist/components/AvatarGroup/index.d.ts.map +1 -0
- package/dist/components/AvatarGroup/index.js +13 -0
- package/dist/components/AvatarGroup/index.js.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +7 -0
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.constants.js +29 -0
- package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.d.ts +5 -0
- package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.js +51 -0
- package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +28 -0
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.types.js +12 -0
- package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +24 -0
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js +31 -0
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +1 -0
- package/dist/components/AvatarIcon/index.d.ts +5 -0
- package/dist/components/AvatarIcon/index.d.ts.map +1 -0
- package/dist/components/AvatarIcon/index.js +13 -0
- package/dist/components/AvatarIcon/index.js.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +2 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +14 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +5 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.js +53 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.types.js +3 -0
- package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -0
- package/dist/components/AvatarNetwork/index.d.ts +4 -0
- package/dist/components/AvatarNetwork/index.d.ts.map +1 -0
- package/dist/components/AvatarNetwork/index.js +11 -0
- package/dist/components/AvatarNetwork/index.js.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts +2 -0
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.constants.js +14 -0
- package/dist/components/AvatarToken/AvatarToken.constants.js.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.d.ts +5 -0
- package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.js +53 -0
- package/dist/components/AvatarToken/AvatarToken.js.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -0
- package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -0
- package/dist/components/AvatarToken/AvatarToken.types.js +3 -0
- package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -0
- package/dist/components/AvatarToken/index.d.ts +4 -0
- package/dist/components/AvatarToken/index.d.ts.map +1 -0
- package/dist/components/AvatarToken/index.js +11 -0
- package/dist/components/AvatarToken/index.js.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts +6 -0
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.constants.js +19 -0
- package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.d.ts +5 -0
- package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.js +53 -0
- package/dist/components/BadgeCount/BadgeCount.js.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.types.d.ts +46 -0
- package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.types.js +15 -0
- package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -0
- package/dist/components/BadgeCount/index.d.ts +4 -0
- package/dist/components/BadgeCount/index.d.ts.map +1 -0
- package/dist/components/BadgeCount/index.js +11 -0
- package/dist/components/BadgeCount/index.js.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.d.ts +5 -0
- package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.js +49 -0
- package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +20 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.js +3 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -0
- package/dist/components/BadgeIcon/index.d.ts +3 -0
- package/dist/components/BadgeIcon/index.d.ts.map +1 -0
- package/dist/components/BadgeIcon/index.js +9 -0
- package/dist/components/BadgeIcon/index.js.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +5 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.js +34 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +3 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.js +3 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -0
- package/dist/components/BadgeNetwork/index.d.ts +3 -0
- package/dist/components/BadgeNetwork/index.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/index.js +9 -0
- package/dist/components/BadgeNetwork/index.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +4 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.js +17 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.d.ts +5 -0
- package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.js +34 -0
- package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +57 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.js +29 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -0
- package/dist/components/BadgeStatus/index.d.ts +4 -0
- package/dist/components/BadgeStatus/index.d.ts.map +1 -0
- package/dist/components/BadgeStatus/index.js +12 -0
- package/dist/components/BadgeStatus/index.js.map +1 -0
- package/dist/components/Button/Button.constants.d.ts +2 -0
- package/dist/components/Button/Button.constants.d.ts.map +1 -0
- package/dist/components/Button/Button.constants.js +7 -0
- package/dist/components/Button/Button.constants.js.map +1 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +25 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.types.d.ts +23 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/Button.types.js +15 -0
- package/dist/components/Button/Button.types.js.map +1 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +12 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +97 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js +3 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +78 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +122 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonPrimary/index.js +11 -0
- package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +90 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js +3 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +90 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +145 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonSecondary/index.js +11 -0
- package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +3 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +29 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +5 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +90 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +17 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js +3 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +88 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +147 -0
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts +4 -0
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -0
- package/dist/components/Button/variants/ButtonTertiary/index.js +11 -0
- package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +6 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.js +20 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.d.ts +5 -0
- package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.js +72 -0
- package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +60 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.js +19 -0
- package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +55 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js +73 -0
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +1 -0
- package/dist/components/ButtonIcon/index.d.ts +4 -0
- package/dist/components/ButtonIcon/index.d.ts.map +1 -0
- package/dist/components/ButtonIcon/index.js +11 -0
- package/dist/components/ButtonIcon/index.js.map +1 -0
- package/dist/components/Icon/Icon.assets.d.ts +6 -0
- package/dist/components/Icon/Icon.assets.d.ts.map +1 -0
- package/dist/components/Icon/Icon.assets.js +328 -0
- package/dist/components/Icon/Icon.assets.js.map +1 -0
- package/dist/components/Icon/Icon.constants.d.ts +7 -0
- package/dist/components/Icon/Icon.constants.d.ts.map +1 -0
- package/dist/components/Icon/Icon.constants.js +15 -0
- package/dist/components/Icon/Icon.constants.js.map +1 -0
- package/dist/components/Icon/Icon.d.ts +5 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +45 -0
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Icon/Icon.types.d.ts +256 -0
- package/dist/components/Icon/Icon.types.d.ts.map +1 -0
- package/dist/components/Icon/Icon.types.js +231 -0
- package/dist/components/Icon/Icon.types.js.map +1 -0
- package/dist/components/Icon/Icon.utilities.d.ts +22 -0
- package/dist/components/Icon/Icon.utilities.d.ts.map +1 -0
- package/dist/components/Icon/Icon.utilities.js +31 -0
- package/dist/components/Icon/Icon.utilities.js.map +1 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +13 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Text/Text.constants.d.ts +7 -0
- package/dist/components/Text/Text.constants.d.ts.map +1 -0
- package/dist/components/Text/Text.constants.js +15 -0
- package/dist/components/Text/Text.constants.js.map +1 -0
- package/dist/components/Text/Text.d.ts +5 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +49 -0
- package/dist/components/Text/Text.js.map +1 -0
- package/dist/components/Text/Text.types.d.ts +125 -0
- package/dist/components/Text/Text.types.d.ts.map +1 -0
- package/dist/components/Text/Text.types.js +95 -0
- package/dist/components/Text/Text.types.js.map +1 -0
- package/dist/components/Text/Text.utilities.d.ts +32 -0
- package/dist/components/Text/Text.utilities.d.ts.map +1 -0
- package/dist/components/Text/Text.utilities.js +46 -0
- package/dist/components/Text/Text.utilities.js.map +1 -0
- package/dist/components/Text/index.d.ts +4 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/index.js +15 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/TextButton/TextButton.constants.d.ts +3 -0
- package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.constants.js +29 -0
- package/dist/components/TextButton/TextButton.constants.js.map +1 -0
- package/dist/components/TextButton/TextButton.d.ts +5 -0
- package/dist/components/TextButton/TextButton.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.js +187 -0
- package/dist/components/TextButton/TextButton.js.map +1 -0
- package/dist/components/TextButton/TextButton.types.d.ts +73 -0
- package/dist/components/TextButton/TextButton.types.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.types.js +3 -0
- package/dist/components/TextButton/TextButton.types.js.map +1 -0
- package/dist/components/TextButton/TextButton.utilities.d.ts +55 -0
- package/dist/components/TextButton/TextButton.utilities.d.ts.map +1 -0
- package/dist/components/TextButton/TextButton.utilities.js +77 -0
- package/dist/components/TextButton/TextButton.utilities.js.map +1 -0
- package/dist/components/TextButton/index.d.ts +3 -0
- package/dist/components/TextButton/index.d.ts.map +1 -0
- package/dist/components/TextButton/index.js +9 -0
- package/dist/components/TextButton/index.js.map +1 -0
- package/dist/index.d.ts +137 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -1
- package/dist/index.js.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +6 -0
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.constants.js +34 -0
- package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.d.ts +5 -0
- package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.js +55 -0
- package/dist/primitives/AvatarBase/AvatarBase.js.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.types.d.ts +61 -0
- package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.types.js +3 -0
- package/dist/primitives/AvatarBase/AvatarBase.types.js.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +30 -0
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +1 -0
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js +60 -0
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +1 -0
- package/dist/primitives/AvatarBase/index.d.ts +4 -0
- package/dist/primitives/AvatarBase/index.d.ts.map +1 -0
- package/dist/primitives/AvatarBase/index.js +11 -0
- package/dist/primitives/AvatarBase/index.js.map +1 -0
- package/dist/primitives/Blockies/Blockies.d.ts +5 -0
- package/dist/primitives/Blockies/Blockies.d.ts.map +1 -0
- package/dist/primitives/Blockies/Blockies.js +15 -0
- package/dist/primitives/Blockies/Blockies.js.map +1 -0
- package/dist/primitives/Blockies/Blockies.types.d.ts +15 -0
- package/dist/primitives/Blockies/Blockies.types.d.ts.map +1 -0
- package/dist/primitives/Blockies/Blockies.types.js +3 -0
- package/dist/primitives/Blockies/Blockies.types.js.map +1 -0
- package/dist/primitives/Blockies/index.d.ts +3 -0
- package/dist/primitives/Blockies/index.d.ts.map +1 -0
- package/dist/primitives/Blockies/index.js +9 -0
- package/dist/primitives/Blockies/index.js.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +5 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js +58 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts +6 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js +3 -0
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
- package/dist/primitives/ButtonAnimated/index.d.ts +3 -0
- package/dist/primitives/ButtonAnimated/index.d.ts.map +1 -0
- package/dist/primitives/ButtonAnimated/index.js +9 -0
- package/dist/primitives/ButtonAnimated/index.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +3 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.js +32 -0
- package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.d.ts +5 -0
- package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.js +84 -0
- package/dist/primitives/ButtonBase/ButtonBase.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts +93 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.js +19 -0
- package/dist/primitives/ButtonBase/ButtonBase.types.js.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +28 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js +41 -0
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +1 -0
- package/dist/primitives/ButtonBase/index.d.ts +4 -0
- package/dist/primitives/ButtonBase/index.d.ts.map +1 -0
- package/dist/primitives/ButtonBase/index.js +11 -0
- package/dist/primitives/ButtonBase/index.js.map +1 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +5 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.js +76 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +1 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts +64 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js +3 -0
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
- package/dist/primitives/ImageOrSvg/index.d.ts +3 -0
- package/dist/primitives/ImageOrSvg/index.d.ts.map +1 -0
- package/dist/primitives/ImageOrSvg/index.js +9 -0
- package/dist/primitives/ImageOrSvg/index.js.map +1 -0
- package/dist/primitives/Jazzicon/Jazzicon.d.ts +5 -0
- package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +1 -0
- package/dist/primitives/Jazzicon/Jazzicon.js +14 -0
- package/dist/primitives/Jazzicon/Jazzicon.js.map +1 -0
- package/dist/primitives/Jazzicon/Jazzicon.types.d.ts +11 -0
- package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +1 -0
- package/dist/primitives/Jazzicon/Jazzicon.types.js +3 -0
- package/dist/primitives/Jazzicon/Jazzicon.types.js.map +1 -0
- package/dist/primitives/Jazzicon/index.d.ts +3 -0
- package/dist/primitives/Jazzicon/index.d.ts.map +1 -0
- package/dist/primitives/Jazzicon/index.js +9 -0
- package/dist/primitives/Jazzicon/index.js.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +5 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.js +15 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.js.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts +15 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js +3 -0
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +1 -0
- package/dist/primitives/TextOrChildren/index.d.ts +3 -0
- package/dist/primitives/TextOrChildren/index.d.ts.map +1 -0
- package/dist/primitives/TextOrChildren/index.js +9 -0
- package/dist/primitives/TextOrChildren/index.js.map +1 -0
- package/dist/shared/enums.d.ts +47 -0
- package/dist/shared/enums.d.ts.map +1 -0
- package/dist/shared/enums.js +44 -0
- package/dist/shared/enums.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.constants.d.ts +3 -0
- package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.constants.js +21 -0
- package/dist/temp-components/Spinner/Spinner.constants.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.d.ts +5 -0
- package/dist/temp-components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.js +68 -0
- package/dist/temp-components/Spinner/Spinner.js.map +1 -0
- package/dist/temp-components/Spinner/Spinner.types.d.ts +30 -0
- package/dist/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/temp-components/Spinner/Spinner.types.js +3 -0
- package/dist/temp-components/Spinner/Spinner.types.js.map +1 -0
- package/dist/temp-components/Spinner/index.d.ts +3 -0
- package/dist/temp-components/Spinner/index.d.ts.map +1 -0
- package/dist/temp-components/Spinner/index.js +9 -0
- package/dist/temp-components/Spinner/index.js.map +1 -0
- package/package.json +29 -14
- package/dist/components/Button.d.ts +0 -6
- package/dist/components/Button.js +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageOrSvg.types.js","sourceRoot":"","sources":["../../../src/primitives/ImageOrSvg/ImageOrSvg.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n ImageErrorEventData,\n ImageLoadEventData,\n NativeSyntheticEvent,\n StyleProp,\n ImageStyle,\n ImageProps,\n} from 'react-native';\nimport { SvgProps } from 'react-native-svg';\n\n/**\n * Base props common to all variations.\n */\ninterface ImageOrSvgBaseProps {\n /**\n * Optional prop to set the width of the image/SVG.\n * Accepts numbers (pixels) or string values (like percentages).\n */\n width?: number | string;\n /**\n * Optional prop to set the height of the image/SVG.\n * Accepts numbers (pixels) or string values (like percentages).\n */\n height?: number | string;\n /**\n * Optional prop to set callback triggered when the image has loaded successfully.\n */\n onImageLoad?: (event: NativeSyntheticEvent<ImageLoadEventData>) => void;\n /**\n * Optional prop to set callback triggered when there is an error rendering the image.\n */\n onImageError?: (\n errorEvent: NativeSyntheticEvent<ImageErrorEventData>,\n ) => void;\n /**\n * Optional prop to set callback triggered when there is an error rendering the SVG.\n */\n onSvgError?: (error: Error) => void;\n /**\n * Optional prop for style overrides for the image/SVG container.\n */\n style?: StyleProp<ImageStyle>;\n /**\n * Additional props to pass to the Image component, excluding\n * the 'source' prop (which is handled separately).\n */\n imageProps?: Omit<ImageProps, 'source'>;\n /**\n * Additional props to pass to the Svg component, excluding\n * the 'uri' prop (which is handled separately).\n */\n svgProps?: Omit<SvgProps, 'uri'>;\n}\n\n/**\n * Defines the source type for an image or SVG.\n *\n * The source can be one of the following:\n * - A number representing a locally imported image resource.\n * - A React component (with SvgProps) representing a locally imported SVG.\n * - An object with an optional `uri` property for remote images or SVGs.\n */\nexport type ImageOrSvgSrc =\n | number // For local imported image\n | React.ComponentType<SvgProps> // For local imported svg\n | { uri?: string }; // For remote image or SVG (with a uri property)\n\nexport interface ImageOrSvgProps extends ImageOrSvgBaseProps {\n /**\n * Required prop for the source of the image or SVG.\n * This prop determines whether a local image, a local SVG component,\n * or a remote image/SVG (via URI) is rendered.\n */\n src: ImageOrSvgSrc;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/ImageOrSvg/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var ImageOrSvg_1 = require("./ImageOrSvg");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ImageOrSvg_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/ImageOrSvg/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAuC;AAA9B,sHAAA,OAAO,OAAA","sourcesContent":["export { default } from './ImageOrSvg';\nexport { ImageOrSvgProps, ImageOrSvgSrc } from './ImageOrSvg.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.d.ts","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,QAAA,MAAM,QAAQ,yBAA0B,aAAa,sBAIpD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const react_native_jazzicon_1 = __importDefault(require("react-native-jazzicon"));
|
|
10
|
+
const Jazzicon = ({ testID, ...props }) => (<react_native_1.View testID={testID}>
|
|
11
|
+
<react_native_jazzicon_1.default {...props}/>
|
|
12
|
+
</react_native_1.View>);
|
|
13
|
+
exports.default = Jazzicon;
|
|
14
|
+
//# sourceMappingURL=Jazzicon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.js","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":";;;;;AAAA,iEAAiE;AACjE,kDAA0B;AAC1B,+CAAoC;AACpC,kFAA+C;AAI/C,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE,CAAC,CACxD,CAAC,mBAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnB;IAAA,CAAC,+BAAU,CAAC,IAAI,KAAK,CAAC,EACxB;EAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AAEF,kBAAe,QAAQ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nimport React from 'react';\nimport { View } from 'react-native';\nimport RNJazzicon from 'react-native-jazzicon';\n\nimport type { JazziconProps } from './Jazzicon.types';\n\nconst Jazzicon = ({ testID, ...props }: JazziconProps) => (\n <View testID={testID}>\n <RNJazzicon {...props} />\n </View>\n);\n\nexport default Jazzicon;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IJazziconProps } from 'react-native-jazzicon';
|
|
2
|
+
/**
|
|
3
|
+
* Jazzicon component props.
|
|
4
|
+
*/
|
|
5
|
+
export type JazziconProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional prop used to locate this view in end-to-end tests.
|
|
8
|
+
*/
|
|
9
|
+
testID?: string | undefined;
|
|
10
|
+
} & IJazziconProps;
|
|
11
|
+
//# sourceMappingURL=Jazzicon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.types.d.ts","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/Jazzicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.types.js","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/Jazzicon.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IJazziconProps } from 'react-native-jazzicon';\n\n/**\n * Jazzicon component props.\n */\nexport type JazziconProps = {\n /**\n * Optional prop used to locate this view in end-to-end tests.\n */\n testID?: string | undefined;\n} & IJazziconProps;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Jazzicon_1 = require("./Jazzicon");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Jazzicon_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/Jazzicon/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAqC;AAA5B,oHAAA,OAAO,OAAA","sourcesContent":["export { default } from './Jazzicon';\nexport type { JazziconProps } from './Jazzicon.types';\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TextOrChildrenProps } from './TextOrChildren.types';
|
|
3
|
+
declare const TextOrChildren: ({ children, textProps }: TextOrChildrenProps) => React.JSX.Element;
|
|
4
|
+
export default TextOrChildren;
|
|
5
|
+
//# sourceMappingURL=TextOrChildren.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextOrChildren.d.ts","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/TextOrChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,QAAA,MAAM,cAAc,4BAA6B,mBAAmB,sBAKnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Text_1 = __importDefault(require("../../components/Text"));
|
|
8
|
+
const TextOrChildren = ({ children, textProps }) => {
|
|
9
|
+
if (typeof children === 'string') {
|
|
10
|
+
return <Text_1.default {...textProps}>{children}</Text_1.default>;
|
|
11
|
+
}
|
|
12
|
+
return <>{children}</>;
|
|
13
|
+
};
|
|
14
|
+
exports.default = TextOrChildren;
|
|
15
|
+
//# sourceMappingURL=TextOrChildren.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextOrChildren.js","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/TextOrChildren.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,iEAAyC;AAGzC,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAuB,EAAE,EAAE;IACtE,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,OAAO,CAAC,cAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAI,CAAC,CAAC;KAC/C;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;AACzB,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC","sourcesContent":["import React from 'react';\n\nimport Text from '../../components/Text';\nimport type { TextOrChildrenProps } from './TextOrChildren.types';\n\nconst TextOrChildren = ({ children, textProps }: TextOrChildrenProps) => {\n if (typeof children === 'string') {\n return <Text {...textProps}>{children}</Text>;\n }\n return <>{children}</>;\n};\n\nexport default TextOrChildren;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TextProps } from '../../components/Text/Text.types';
|
|
2
|
+
/**
|
|
3
|
+
* TextOrChildren component props.
|
|
4
|
+
*/
|
|
5
|
+
export type TextOrChildrenProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Required prop for the content to be rendered
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode | string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional props to be passed to the Text component when children is a string
|
|
12
|
+
*/
|
|
13
|
+
textProps?: Omit<Partial<TextProps>, 'children'>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=TextOrChildren.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextOrChildren.types.d.ts","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/TextOrChildren.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextOrChildren.types.js","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/TextOrChildren.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextProps } from '../../components/Text/Text.types';\n\n/**\n * TextOrChildren component props.\n */\nexport type TextOrChildrenProps = {\n /**\n * Required prop for the content to be rendered\n */\n children: React.ReactNode | string;\n /**\n * Optional props to be passed to the Text component when children is a string\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var TextOrChildren_1 = require("./TextOrChildren");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(TextOrChildren_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/TextOrChildren/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAA2C;AAAlC,0HAAA,OAAO,OAAA","sourcesContent":["export { default } from './TextOrChildren';\nexport type { TextOrChildrenProps } from './TextOrChildren.types';\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The size of all Avatars
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AvatarSize {
|
|
5
|
+
/**
|
|
6
|
+
* Represents an extra small avatar size (16px).
|
|
7
|
+
*/
|
|
8
|
+
Xs = "16",
|
|
9
|
+
/**
|
|
10
|
+
* Represents a small avatar size (24px).
|
|
11
|
+
*/
|
|
12
|
+
Sm = "24",
|
|
13
|
+
/**
|
|
14
|
+
* Represents a medium avatar size (32px).
|
|
15
|
+
*/
|
|
16
|
+
Md = "32",
|
|
17
|
+
/**
|
|
18
|
+
* Represents a large avatar size (40px).
|
|
19
|
+
*/
|
|
20
|
+
Lg = "40",
|
|
21
|
+
/**
|
|
22
|
+
* Represents an extra large avatar size (48px).
|
|
23
|
+
*/
|
|
24
|
+
Xl = "48"
|
|
25
|
+
}
|
|
26
|
+
export { AvatarSize as AvatarAccountSize };
|
|
27
|
+
export { AvatarSize as AvatarBaseSize };
|
|
28
|
+
export { AvatarSize as AvatarFaviconSize };
|
|
29
|
+
export { AvatarSize as AvatarGroupSize };
|
|
30
|
+
export { AvatarSize as AvatarIconSize };
|
|
31
|
+
export { AvatarSize as AvatarNetworkSize };
|
|
32
|
+
export { AvatarSize as AvatarTokenSize };
|
|
33
|
+
/**
|
|
34
|
+
* The shape of all Avatars
|
|
35
|
+
*/
|
|
36
|
+
export declare enum AvatarShape {
|
|
37
|
+
/**
|
|
38
|
+
* Represents a circular Avatar.
|
|
39
|
+
*/
|
|
40
|
+
Circle = "circle",
|
|
41
|
+
/**
|
|
42
|
+
* Represents a squared Avatar
|
|
43
|
+
*/
|
|
44
|
+
Square = "square"
|
|
45
|
+
}
|
|
46
|
+
export { AvatarShape as AvatarBaseShape };
|
|
47
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/shared/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;CACV;AACD,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,CAAC;AAC3C,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,CAAC;AACxC,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,CAAC;AAC3C,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,CAAC;AACzC,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,CAAC;AACxC,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,CAAC;AAC3C,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,CAAC;AAEzC;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,MAAM,WAAW;CAClB;AACD,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarBaseShape = exports.AvatarShape = exports.AvatarTokenSize = exports.AvatarNetworkSize = exports.AvatarIconSize = exports.AvatarGroupSize = exports.AvatarFaviconSize = exports.AvatarBaseSize = exports.AvatarAccountSize = exports.AvatarSize = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The size of all Avatars
|
|
6
|
+
*/
|
|
7
|
+
var AvatarSize;
|
|
8
|
+
(function (AvatarSize) {
|
|
9
|
+
/**
|
|
10
|
+
* Represents an extra small avatar size (16px).
|
|
11
|
+
*/
|
|
12
|
+
AvatarSize["Xs"] = "16";
|
|
13
|
+
/**
|
|
14
|
+
* Represents a small avatar size (24px).
|
|
15
|
+
*/
|
|
16
|
+
AvatarSize["Sm"] = "24";
|
|
17
|
+
/**
|
|
18
|
+
* Represents a medium avatar size (32px).
|
|
19
|
+
*/
|
|
20
|
+
AvatarSize["Md"] = "32";
|
|
21
|
+
/**
|
|
22
|
+
* Represents a large avatar size (40px).
|
|
23
|
+
*/
|
|
24
|
+
AvatarSize["Lg"] = "40";
|
|
25
|
+
/**
|
|
26
|
+
* Represents an extra large avatar size (48px).
|
|
27
|
+
*/
|
|
28
|
+
AvatarSize["Xl"] = "48";
|
|
29
|
+
})(AvatarSize || (exports.AvatarTokenSize = exports.AvatarNetworkSize = exports.AvatarIconSize = exports.AvatarGroupSize = exports.AvatarFaviconSize = exports.AvatarBaseSize = exports.AvatarAccountSize = exports.AvatarSize = AvatarSize = {}));
|
|
30
|
+
/**
|
|
31
|
+
* The shape of all Avatars
|
|
32
|
+
*/
|
|
33
|
+
var AvatarShape;
|
|
34
|
+
(function (AvatarShape) {
|
|
35
|
+
/**
|
|
36
|
+
* Represents a circular Avatar.
|
|
37
|
+
*/
|
|
38
|
+
AvatarShape["Circle"] = "circle";
|
|
39
|
+
/**
|
|
40
|
+
* Represents a squared Avatar
|
|
41
|
+
*/
|
|
42
|
+
AvatarShape["Square"] = "square";
|
|
43
|
+
})(AvatarShape || (exports.AvatarBaseShape = exports.AvatarShape = AvatarShape = {}));
|
|
44
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/shared/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAqBX;AArBD,WAAY,UAAU;IACpB;;OAEG;IACH,uBAAS,CAAA;IACT;;OAEG;IACH,uBAAS,CAAA;IACT;;OAEG;IACH,uBAAS,CAAA;IACT;;OAEG;IACH,uBAAS,CAAA;IACT;;OAEG;IACH,uBAAS,CAAA;AACX,CAAC,EArBW,UAAU,oNAAV,UAAU,QAqBrB;AASD;;GAEG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB;;OAEG;IACH,gCAAiB,CAAA;IACjB;;OAEG;IACH,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,qDAAX,WAAW,QAStB","sourcesContent":["/**\n * The size of all Avatars\n */\nexport enum AvatarSize {\n /**\n * Represents an extra small avatar size (16px).\n */\n Xs = '16',\n /**\n * Represents a small avatar size (24px).\n */\n Sm = '24',\n /**\n * Represents a medium avatar size (32px).\n */\n Md = '32',\n /**\n * Represents a large avatar size (40px).\n */\n Lg = '40',\n /**\n * Represents an extra large avatar size (48px).\n */\n Xl = '48',\n}\nexport { AvatarSize as AvatarAccountSize };\nexport { AvatarSize as AvatarBaseSize };\nexport { AvatarSize as AvatarFaviconSize };\nexport { AvatarSize as AvatarGroupSize };\nexport { AvatarSize as AvatarIconSize };\nexport { AvatarSize as AvatarNetworkSize };\nexport { AvatarSize as AvatarTokenSize };\n\n/**\n * The shape of all Avatars\n */\nexport enum AvatarShape {\n /**\n * Represents a circular Avatar.\n */\n Circle = 'circle',\n /**\n * Represents a squared Avatar\n */\n Square = 'square',\n}\nexport { AvatarShape as AvatarBaseShape };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.constants.d.ts","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,YAAY,CAavD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_SPINNER_PROPS = void 0;
|
|
4
|
+
const Icon_1 = require("../../components/Icon");
|
|
5
|
+
const Text_1 = require("../../components/Text");
|
|
6
|
+
// Defaults
|
|
7
|
+
exports.DEFAULT_SPINNER_PROPS = {
|
|
8
|
+
color: Icon_1.IconColor.IconDefault,
|
|
9
|
+
spinnerIconProps: {
|
|
10
|
+
size: Icon_1.IconSize.Md,
|
|
11
|
+
testID: 'spinner-icon',
|
|
12
|
+
},
|
|
13
|
+
loadingText: 'Loading',
|
|
14
|
+
loadingTextProps: {
|
|
15
|
+
variant: Text_1.TextVariant.BodyMd,
|
|
16
|
+
color: Text_1.TextColor.TextDefault,
|
|
17
|
+
testID: 'spinner-text',
|
|
18
|
+
},
|
|
19
|
+
twClassName: '',
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Spinner.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.constants.js","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.constants.ts"],"names":[],"mappings":";;;AAAA,gDAA4D;AAC5D,gDAA+D;AAG/D,WAAW;AACE,QAAA,qBAAqB,GAA0B;IAC1D,KAAK,EAAE,gBAAS,CAAC,WAAW;IAC5B,gBAAgB,EAAE;QAChB,IAAI,EAAE,eAAQ,CAAC,EAAE;QACjB,MAAM,EAAE,cAAc;KACvB;IACD,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAW,CAAC,MAAM;QAC3B,KAAK,EAAE,gBAAS,CAAC,WAAW;QAC5B,MAAM,EAAE,cAAc;KACvB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC","sourcesContent":["import { IconColor, IconSize } from '../../components/Icon';\nimport { TextVariant, TextColor } from '../../components/Text';\nimport type { SpinnerProps } from './Spinner.types';\n\n// Defaults\nexport const DEFAULT_SPINNER_PROPS: Partial<SpinnerProps> = {\n color: IconColor.IconDefault,\n spinnerIconProps: {\n size: IconSize.Md,\n testID: 'spinner-icon',\n },\n loadingText: 'Loading',\n loadingTextProps: {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n },\n twClassName: '',\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpinnerProps } from './Spinner.types';
|
|
3
|
+
declare const Spinner: ({ color, spinnerIconProps, loadingText, loadingTextProps, twClassName, ...props }: SpinnerProps) => React.JSX.Element;
|
|
4
|
+
export default Spinner;
|
|
5
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,QAAA,MAAM,OAAO,sFAOV,YAAY,sBA4Cd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
31
|
+
const react_native_1 = require("react-native");
|
|
32
|
+
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
33
|
+
const Icon_1 = __importStar(require("../../components/Icon"));
|
|
34
|
+
const Text_1 = __importDefault(require("../../components/Text"));
|
|
35
|
+
const Spinner_constants_1 = require("./Spinner.constants");
|
|
36
|
+
const Spinner = ({ color = Spinner_constants_1.DEFAULT_SPINNER_PROPS.color, spinnerIconProps, loadingText, loadingTextProps, twClassName = '', ...props }) => {
|
|
37
|
+
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
38
|
+
// Create a shared value for rotation
|
|
39
|
+
const rotation = (0, react_native_reanimated_1.useSharedValue)(0);
|
|
40
|
+
// Start the animation when the component mounts
|
|
41
|
+
(0, react_1.useEffect)(() => {
|
|
42
|
+
rotation.value = (0, react_native_reanimated_1.withRepeat)((0, react_native_reanimated_1.withTiming)(360, { duration: 1000, easing: react_native_reanimated_1.Easing.linear }), // Complete a full spin in 1 second
|
|
43
|
+
-1, // Infinite repetitions
|
|
44
|
+
false);
|
|
45
|
+
}, []);
|
|
46
|
+
// Define the animated style
|
|
47
|
+
const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({
|
|
48
|
+
transform: [{ rotate: `${rotation.value % 360}deg` }],
|
|
49
|
+
}));
|
|
50
|
+
const finalSpinnerIconProps = {
|
|
51
|
+
...Spinner_constants_1.DEFAULT_SPINNER_PROPS.spinnerIconProps,
|
|
52
|
+
name: Icon_1.IconName.Loading,
|
|
53
|
+
color,
|
|
54
|
+
...spinnerIconProps,
|
|
55
|
+
};
|
|
56
|
+
const finalLoadingTextProps = {
|
|
57
|
+
...Spinner_constants_1.DEFAULT_SPINNER_PROPS.loadingTextProps,
|
|
58
|
+
...loadingTextProps,
|
|
59
|
+
};
|
|
60
|
+
return (<react_native_1.View style={tw `flex-row gap-x-2 items-center ${twClassName}`} testID="spinner" {...props}>
|
|
61
|
+
<react_native_reanimated_1.default.View style={[animatedStyle]} testID="spinner-animated-view">
|
|
62
|
+
<Icon_1.default {...finalSpinnerIconProps}/>
|
|
63
|
+
</react_native_reanimated_1.default.View>
|
|
64
|
+
{loadingText && <Text_1.default {...finalLoadingTextProps}>{loadingText}</Text_1.default>}
|
|
65
|
+
</react_native_1.View>);
|
|
66
|
+
};
|
|
67
|
+
exports.default = Spinner;
|
|
68
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAyC;AACzC,+CAAoC;AACpC,mFAMiC;AAGjC,8DAAuD;AAEvD,iEAAyC;AACzC,2DAA4D;AAG5D,MAAM,OAAO,GAAG,CAAC,EACf,KAAK,GAAG,yCAAqB,CAAC,KAAK,EACnC,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACK,EAAE,EAAE;IACjB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,qCAAqC;IACrC,MAAM,QAAQ,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAEnC,gDAAgD;IAChD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,GAAG,IAAA,oCAAU,EACzB,IAAA,oCAAU,EAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,gCAAM,CAAC,MAAM,EAAE,CAAC,EAAE,mCAAmC;QAC/F,CAAC,CAAC,EAAE,uBAAuB;QAC3B,KAAK,CACN,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,4BAA4B;IAC5B,MAAM,aAAa,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,GAAG,GAAG,KAAK,EAAE,CAAC;KACtD,CAAC,CAAC,CAAC;IAEJ,MAAM,qBAAqB,GAAc;QACvC,GAAG,yCAAqB,CAAC,gBAAgB;QACzC,IAAI,EAAE,eAAQ,CAAC,OAAO;QACtB,KAAK;QACL,GAAG,gBAAgB;KACpB,CAAC;IAEF,MAAM,qBAAqB,GAAuB;QAChD,GAAG,yCAAqB,CAAC,gBAAgB;QACzC,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC,EAAE,CAAA,iCAAiC,WAAW,EAAE,CAAC,CACxD,MAAM,CAAC,SAAS,CAChB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,iCAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,cAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,cAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,cAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../components/Icon';\nimport Icon, { IconName } from '../../components/Icon';\nimport type { TextProps } from '../../components/Text';\nimport Text from '../../components/Text';\nimport { DEFAULT_SPINNER_PROPS } from './Spinner.constants';\nimport type { SpinnerProps } from './Spinner.types';\n\nconst Spinner = ({\n color = DEFAULT_SPINNER_PROPS.color,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName = '',\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n ...DEFAULT_SPINNER_PROPS.spinnerIconProps,\n name: IconName.Loading,\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n ...DEFAULT_SPINNER_PROPS.loadingTextProps,\n ...loadingTextProps,\n };\n\n return (\n <View\n style={tw`flex-row gap-x-2 items-center ${twClassName}`}\n testID=\"spinner\"\n {...props}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n\nexport default Spinner;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { IconProps, IconColor } from '../../components/Icon';
|
|
3
|
+
import type { TextProps } from '../../components/Text/Text.types';
|
|
4
|
+
/**
|
|
5
|
+
* Spinner component props.
|
|
6
|
+
*/
|
|
7
|
+
export type SpinnerProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Optional prop that sets the color of the spinner icon using predefined theme colors
|
|
10
|
+
* @default IconColor.IconDefault
|
|
11
|
+
*/
|
|
12
|
+
color?: IconColor;
|
|
13
|
+
/**
|
|
14
|
+
* Optional props to be passed to the loadingText element
|
|
15
|
+
*/
|
|
16
|
+
spinnerIconProps?: Partial<IconProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Optional text to display on the right of the spinner, providing additional context or information about the loading state.
|
|
19
|
+
*/
|
|
20
|
+
loadingText?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional props to be passed to the loadingText element
|
|
23
|
+
*/
|
|
24
|
+
loadingTextProps?: Omit<Partial<TextProps>, 'children'>;
|
|
25
|
+
/**
|
|
26
|
+
* Optional prop to add twrnc overriding classNames.
|
|
27
|
+
*/
|
|
28
|
+
twClassName?: string;
|
|
29
|
+
} & ViewProps;
|
|
30
|
+
//# sourceMappingURL=Spinner.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.types.d.ts","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.types.js","sourceRoot":"","sources":["../../../src/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type { IconProps, IconColor } from '../../components/Icon';\nimport type { TextProps } from '../../components/Text/Text.types';\n\n/**\n * Spinner component props.\n */\nexport type SpinnerProps = {\n /**\n * Optional prop that sets the color of the spinner icon using predefined theme colors\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional props to be passed to the loadingText element\n */\n spinnerIconProps?: Partial<IconProps>;\n /**\n * Optional text to display on the right of the spinner, providing additional context or information about the loading state.\n */\n loadingText?: string;\n /**\n * Optional props to be passed to the loadingText element\n */\n loadingTextProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/temp-components/Spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Spinner_1 = require("./Spinner");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Spinner_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/temp-components/Spinner/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAoC;AAA3B,mHAAA,OAAO,OAAA","sourcesContent":["export { default } from './Spinner';\nexport type { SpinnerProps } from './Spinner.types';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/design-system-react-native",
|
|
3
|
-
"version": "0.0.0-preview.
|
|
3
|
+
"version": "0.0.0-preview.7df341a",
|
|
4
4
|
"description": "Design System React Native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dist/"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "
|
|
35
|
-
"build:docs": "typedoc",
|
|
34
|
+
"build": "node scripts/build.js",
|
|
36
35
|
"changelog:update": "../../scripts/update-changelog.sh @metamask/design-system-react-native",
|
|
37
36
|
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/design-system-react-native",
|
|
37
|
+
"generate-icons": "ts-node scripts/generate-icons.ts",
|
|
38
38
|
"publish:preview": "yarn npm publish --tag preview",
|
|
39
39
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
40
40
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
|
|
@@ -42,22 +42,37 @@
|
|
|
42
42
|
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
|
|
43
43
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
44
44
|
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@metamask-previews/design-system-twrnc-preset": "0.0.0-preview.7df341a",
|
|
47
|
+
"react": "^18.2.0",
|
|
48
|
+
"react-native": "^0.72.15",
|
|
49
|
+
"react-native-jazzicon": "^0.1.2",
|
|
50
|
+
"react-native-reanimated": "3.3.0"
|
|
51
|
+
},
|
|
45
52
|
"devDependencies": {
|
|
46
|
-
"@
|
|
53
|
+
"@babel/core": "^7.23.5",
|
|
54
|
+
"@babel/preset-env": "^7.26.0",
|
|
55
|
+
"@babel/preset-react": "^7.25.9",
|
|
56
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
57
|
+
"@metamask/auto-changelog": "^4.1.0",
|
|
58
|
+
"@storybook/react-native": "6.5",
|
|
59
|
+
"@testing-library/react-native": "^12.8.1",
|
|
60
|
+
"@types/babel__preset-env": "^7",
|
|
47
61
|
"@types/jest": "^27.4.1",
|
|
48
|
-
"@types/
|
|
62
|
+
"@types/node": "^16.18.54",
|
|
63
|
+
"@types/react": "^18.2.0",
|
|
64
|
+
"@types/react-test-renderer": "^18",
|
|
65
|
+
"babel-jest": "^29.7.0",
|
|
49
66
|
"deepmerge": "^4.2.2",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
67
|
+
"jest": "^29.7.0",
|
|
68
|
+
"metro-react-native-babel-preset": "^0.77.0",
|
|
69
|
+
"react-native-svg": "^15.10.1",
|
|
70
|
+
"react-native-svg-transformer": "^1.5.0",
|
|
71
|
+
"react-test-renderer": "^18.3.1",
|
|
72
|
+
"ts-jest": "^29.2.5",
|
|
73
|
+
"ts-node": "^10.9.1",
|
|
55
74
|
"typescript": "~5.2.2"
|
|
56
75
|
},
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"react": "^18.2.0",
|
|
59
|
-
"react-native": "0.72.15"
|
|
60
|
-
},
|
|
61
76
|
"engines": {
|
|
62
77
|
"node": "^18.18 || >=20"
|
|
63
78
|
},
|