@metamask-previews/design-system-react-native 0.0.0-preview.05bbb3e → 0.0.0-preview.0a959b0
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/README.md +18 -0
- package/dist/components/AvatarAccount/AvatarAccount.d.ts +1 -2
- package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.js +17 -14
- package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +18 -5
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.types.js +0 -6
- package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -1
- package/dist/components/AvatarAccount/index.d.ts +2 -3
- package/dist/components/AvatarAccount/index.d.ts.map +1 -1
- package/dist/components/AvatarAccount/index.js +5 -9
- package/dist/components/AvatarAccount/index.js.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.constants.d.ts +6 -0
- package/dist/components/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.constants.js +33 -0
- package/dist/components/AvatarBase/AvatarBase.constants.js.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.d.ts +4 -0
- package/dist/components/AvatarBase/AvatarBase.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.js +31 -0
- package/dist/components/AvatarBase/AvatarBase.js.map +1 -0
- package/dist/{primitives → components}/AvatarBase/AvatarBase.types.d.ts +7 -9
- package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
- package/dist/components/AvatarBase/index.d.ts +4 -0
- package/dist/components/AvatarBase/index.d.ts.map +1 -0
- package/dist/components/AvatarBase/index.js +9 -0
- package/dist/components/AvatarBase/index.js.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +1 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.js +14 -17
- package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -3
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -1
- package/dist/components/AvatarFavicon/index.d.ts +2 -2
- package/dist/components/AvatarFavicon/index.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/index.js +4 -7
- package/dist/components/AvatarFavicon/index.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +2 -10
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.constants.js +13 -160
- package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +2 -3
- package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.js +30 -39
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +13 -15
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.js +0 -11
- package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -1
- package/dist/components/AvatarGroup/index.d.ts +2 -3
- package/dist/components/AvatarGroup/index.d.ts.map +1 -1
- package/dist/components/AvatarGroup/index.js +5 -9
- package/dist/components/AvatarGroup/index.js.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +1 -2
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.js +16 -17
- package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.ts +1 -2
- package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.js +14 -41
- package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +5 -10
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.js +0 -9
- package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -1
- package/dist/components/AvatarIcon/index.d.ts +2 -3
- package/dist/components/AvatarIcon/index.d.ts.map +1 -1
- package/dist/components/AvatarIcon/index.js +5 -9
- package/dist/components/AvatarIcon/index.js.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +1 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.js +14 -17
- package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -3
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -1
- package/dist/components/AvatarNetwork/index.d.ts +2 -2
- package/dist/components/AvatarNetwork/index.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/index.js +4 -7
- package/dist/components/AvatarNetwork/index.js.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.ts +1 -2
- package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.js +14 -17
- package/dist/components/AvatarToken/AvatarToken.js.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -3
- package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -1
- package/dist/components/AvatarToken/index.d.ts +2 -2
- package/dist/components/AvatarToken/index.d.ts.map +1 -1
- package/dist/components/AvatarToken/index.js +4 -7
- package/dist/components/AvatarToken/index.js.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.js +7 -7
- package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.ts +1 -2
- package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.js +7 -30
- package/dist/components/BadgeCount/BadgeCount.js.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.types.d.ts +3 -10
- package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.types.js +0 -12
- package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -1
- package/dist/components/BadgeCount/index.d.ts +2 -2
- package/dist/components/BadgeCount/index.d.ts.map +1 -1
- package/dist/components/BadgeCount/index.js +4 -7
- package/dist/components/BadgeCount/index.js.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.d.ts +1 -2
- package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.js +4 -27
- package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +2 -2
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -1
- package/dist/components/BadgeIcon/index.d.ts +1 -1
- package/dist/components/BadgeIcon/index.d.ts.map +1 -1
- package/dist/components/BadgeIcon/index.js +2 -5
- package/dist/components/BadgeIcon/index.js.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +1 -2
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.js +4 -27
- package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +16 -2
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -1
- package/dist/components/BadgeNetwork/index.d.ts +1 -1
- package/dist/components/BadgeNetwork/index.d.ts.map +1 -1
- package/dist/components/BadgeNetwork/index.js +2 -5
- package/dist/components/BadgeNetwork/index.js.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.js +8 -8
- package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.d.ts +1 -2
- package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.js +6 -16
- package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +7 -27
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.types.js +0 -26
- package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -1
- package/dist/components/BadgeStatus/index.d.ts +2 -2
- package/dist/components/BadgeStatus/index.d.ts.map +1 -1
- package/dist/components/BadgeStatus/index.js +5 -8
- package/dist/components/BadgeStatus/index.js.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
- package/dist/components/BadgeWrapper/index.d.ts +5 -0
- package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/index.js +9 -0
- package/dist/components/BadgeWrapper/index.js.map +1 -0
- package/dist/components/Box/Box.constants.d.ts +3 -0
- package/dist/components/Box/Box.constants.d.ts.map +1 -0
- package/dist/components/Box/Box.constants.js +19 -0
- package/dist/components/Box/Box.constants.js.map +1 -0
- package/dist/components/Box/Box.d.ts +4 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.js +26 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Box/Box.types.d.ts +30 -0
- package/dist/components/Box/Box.types.d.ts.map +1 -0
- package/dist/components/Box/Box.types.js +3 -0
- package/dist/components/Box/Box.types.js.map +1 -0
- package/dist/components/Box/index.d.ts +5 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/index.js +11 -0
- package/dist/components/Box/index.js.map +1 -0
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +13 -12
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.types.d.ts +1 -10
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/Button.types.js +0 -12
- package/dist/components/Button/Button.types.js.map +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +5 -8
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +63 -54
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.js +4 -7
- package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +62 -50
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.js +4 -7
- package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +69 -50
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.js +4 -7
- package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
- package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
- package/dist/components/ButtonBase/ButtonBase.js +48 -0
- package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
- package/dist/{primitives → components}/ButtonBase/ButtonBase.types.d.ts +9 -17
- package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
- package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
- package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
- package/dist/components/ButtonBase/index.d.ts +4 -0
- package/dist/components/ButtonBase/index.d.ts.map +1 -0
- package/dist/components/ButtonBase/index.js +8 -0
- package/dist/components/ButtonBase/index.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +7 -4
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.js +10 -13
- package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.ts +1 -2
- package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.js +17 -32
- package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +8 -16
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.js +0 -16
- package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -1
- package/dist/components/ButtonIcon/index.d.ts +2 -2
- package/dist/components/ButtonIcon/index.d.ts.map +1 -1
- package/dist/components/ButtonIcon/index.js +4 -7
- package/dist/components/ButtonIcon/index.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +17 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +122 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.js +3 -0
- package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox/index.js +6 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Icon/Icon.assets.d.ts.map +1 -1
- package/dist/components/Icon/Icon.assets.js +401 -171
- package/dist/components/Icon/Icon.assets.js.map +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +4 -3
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.types.d.ts +3 -220
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/Icon/Icon.types.js +0 -228
- package/dist/components/Icon/Icon.types.js.map +1 -1
- package/dist/components/Icon/Icon.utilities.d.ts.map +1 -1
- package/dist/components/Icon/Icon.utilities.js +2 -2
- package/dist/components/Icon/Icon.utilities.js.map +1 -1
- package/dist/components/Icon/assets/accessibility.svg +1 -0
- package/dist/components/Icon/assets/activity.svg +1 -0
- package/dist/components/Icon/assets/add-card.svg +1 -0
- package/dist/components/Icon/assets/add-circle.svg +1 -0
- package/dist/components/Icon/assets/add-square.svg +1 -0
- package/dist/components/Icon/assets/add.svg +1 -0
- package/dist/components/Icon/assets/ai.svg +1 -0
- package/dist/components/Icon/assets/alternate-email.svg +1 -0
- package/dist/components/Icon/assets/apps.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
- package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
- package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
- package/dist/components/Icon/assets/arrow-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-up.svg +1 -0
- package/dist/components/Icon/assets/attachment.svg +1 -0
- package/dist/components/Icon/assets/ban.svg +1 -0
- package/dist/components/Icon/assets/bank-assured.svg +1 -0
- package/dist/components/Icon/assets/bank.svg +1 -0
- package/dist/components/Icon/assets/bold.svg +1 -0
- package/dist/components/Icon/assets/book.svg +1 -0
- package/dist/components/Icon/assets/bookmark.svg +1 -0
- package/dist/components/Icon/assets/bridge.svg +1 -0
- package/dist/components/Icon/assets/briefcase.svg +1 -0
- package/dist/components/Icon/assets/bulb.svg +1 -0
- package/dist/components/Icon/assets/buy-sell.svg +1 -0
- package/dist/components/Icon/assets/cake.svg +1 -0
- package/dist/components/Icon/assets/calculator.svg +1 -0
- package/dist/components/Icon/assets/calendar.svg +1 -0
- package/dist/components/Icon/assets/call.svg +1 -0
- package/dist/components/Icon/assets/camera.svg +1 -0
- package/dist/components/Icon/assets/campaign.svg +1 -0
- package/dist/components/Icon/assets/card-pos.svg +1 -0
- package/dist/components/Icon/assets/card.svg +1 -0
- package/dist/components/Icon/assets/cash.svg +1 -0
- package/dist/components/Icon/assets/category.svg +1 -0
- package/dist/components/Icon/assets/chart.svg +1 -0
- package/dist/components/Icon/assets/check-bold.svg +1 -0
- package/dist/components/Icon/assets/check.svg +1 -0
- package/dist/components/Icon/assets/circle-x.svg +1 -0
- package/dist/components/Icon/assets/clock-filled.svg +1 -0
- package/dist/components/Icon/assets/clock.svg +1 -0
- package/dist/components/Icon/assets/close.svg +1 -0
- package/dist/components/Icon/assets/cloud-download.svg +1 -0
- package/dist/components/Icon/assets/cloud-upload.svg +1 -0
- package/dist/components/Icon/assets/cloud.svg +1 -0
- package/dist/components/Icon/assets/code-circle.svg +1 -0
- package/dist/components/Icon/assets/code.svg +1 -0
- package/dist/components/Icon/assets/coin.svg +1 -0
- package/dist/components/Icon/assets/collapse.svg +1 -0
- package/dist/components/Icon/assets/confirmation.svg +1 -0
- package/dist/components/Icon/assets/connect.svg +1 -0
- package/dist/components/Icon/assets/copy-success.svg +1 -0
- package/dist/components/Icon/assets/copy.svg +1 -0
- package/dist/components/Icon/assets/credit-check.svg +1 -0
- package/dist/components/Icon/assets/currency-franc.svg +1 -0
- package/dist/components/Icon/assets/currency-lira.svg +1 -0
- package/dist/components/Icon/assets/currency-pound.svg +1 -0
- package/dist/components/Icon/assets/currency-yuan.svg +3 -0
- package/dist/components/Icon/assets/customize.svg +1 -0
- package/dist/components/Icon/assets/danger.svg +1 -0
- package/dist/components/Icon/assets/dark-filled.svg +1 -0
- package/dist/components/Icon/assets/dark.svg +1 -0
- package/dist/components/Icon/assets/data.svg +1 -0
- package/dist/components/Icon/assets/description.svg +1 -0
- package/dist/components/Icon/assets/details.svg +1 -0
- package/dist/components/Icon/assets/diagram.svg +1 -0
- package/dist/components/Icon/assets/document-code.svg +1 -0
- package/dist/components/Icon/assets/download.svg +1 -0
- package/dist/components/Icon/assets/draft.svg +1 -0
- package/dist/components/Icon/assets/eco-leaf.svg +1 -0
- package/dist/components/Icon/assets/edit-square.svg +1 -0
- package/dist/components/Icon/assets/edit.svg +1 -0
- package/dist/components/Icon/assets/encrypted-add.svg +1 -0
- package/dist/components/Icon/assets/eraser.svg +1 -0
- package/dist/components/Icon/assets/error.svg +1 -0
- package/dist/components/Icon/assets/ethereum.svg +1 -0
- package/dist/components/Icon/assets/exchange.svg +1 -0
- package/dist/components/Icon/assets/expand-vertical.svg +1 -0
- package/dist/components/Icon/assets/expand.svg +1 -0
- package/dist/components/Icon/assets/explore-filled.svg +1 -0
- package/dist/components/Icon/assets/explore.svg +1 -0
- package/dist/components/Icon/assets/export.svg +1 -0
- package/dist/components/Icon/assets/extension.svg +1 -0
- package/dist/components/Icon/assets/eye-slash.svg +1 -0
- package/dist/components/Icon/assets/eye.svg +1 -0
- package/dist/components/Icon/assets/face-id.svg +1 -0
- package/dist/components/Icon/assets/feedback.svg +1 -0
- package/dist/components/Icon/assets/file.svg +1 -0
- package/dist/components/Icon/assets/filter.svg +1 -0
- package/dist/components/Icon/assets/fingerprint.svg +1 -0
- package/dist/components/Icon/assets/fire.svg +1 -0
- package/dist/components/Icon/assets/first-page.svg +1 -0
- package/dist/components/Icon/assets/flag.svg +1 -0
- package/dist/components/Icon/assets/flash-slash.svg +1 -0
- package/dist/components/Icon/assets/flash.svg +1 -0
- package/dist/components/Icon/assets/flask.svg +1 -0
- package/dist/components/Icon/assets/flower.svg +1 -0
- package/dist/components/Icon/assets/folder.svg +1 -0
- package/dist/components/Icon/assets/forest.svg +1 -0
- package/dist/components/Icon/assets/full-circle.svg +1 -0
- package/dist/components/Icon/assets/gas.svg +1 -0
- package/dist/components/Icon/assets/gift.svg +1 -0
- package/dist/components/Icon/assets/global-search.svg +1 -0
- package/dist/components/Icon/assets/global.svg +1 -0
- package/dist/components/Icon/assets/graph.svg +1 -0
- package/dist/components/Icon/assets/hardware.svg +1 -0
- package/dist/components/Icon/assets/hash-tag.svg +1 -0
- package/dist/components/Icon/assets/heart-filled.svg +1 -0
- package/dist/components/Icon/assets/heart.svg +1 -0
- package/dist/components/Icon/assets/hierarchy.svg +1 -0
- package/dist/components/Icon/assets/home-filled.svg +1 -0
- package/dist/components/Icon/assets/home.svg +1 -0
- package/dist/components/Icon/assets/image.svg +1 -0
- package/dist/components/Icon/assets/info.svg +1 -0
- package/dist/components/Icon/assets/inventory.svg +1 -0
- package/dist/components/Icon/assets/joystick.svg +1 -0
- package/dist/components/Icon/assets/keep-filled.svg +1 -0
- package/dist/components/Icon/assets/keep.svg +1 -0
- package/dist/components/Icon/assets/key.svg +1 -0
- package/dist/components/Icon/assets/last-page.svg +1 -0
- package/dist/components/Icon/assets/light-filled.svg +1 -0
- package/dist/components/Icon/assets/light.svg +1 -0
- package/dist/components/Icon/assets/link.svg +1 -0
- package/dist/components/Icon/assets/loading.svg +1 -0
- package/dist/components/Icon/assets/location.svg +1 -0
- package/dist/components/Icon/assets/lock-slash.svg +1 -0
- package/dist/components/Icon/assets/lock.svg +1 -0
- package/dist/components/Icon/assets/locked-filled.svg +1 -0
- package/dist/components/Icon/assets/login.svg +1 -0
- package/dist/components/Icon/assets/logout.svg +1 -0
- package/dist/components/Icon/assets/mail.svg +1 -0
- package/dist/components/Icon/assets/map.svg +1 -0
- package/dist/components/Icon/assets/menu.svg +1 -0
- package/dist/components/Icon/assets/message-question.svg +1 -0
- package/dist/components/Icon/assets/messages.svg +1 -0
- package/dist/components/Icon/assets/mic.svg +1 -0
- package/dist/components/Icon/assets/minus-bold.svg +1 -0
- package/dist/components/Icon/assets/minus-square.svg +1 -0
- package/dist/components/Icon/assets/minus.svg +1 -0
- package/dist/components/Icon/assets/mobile.svg +1 -0
- package/dist/components/Icon/assets/money-bag.svg +1 -0
- package/dist/components/Icon/assets/money.svg +1 -0
- package/dist/components/Icon/assets/monitor.svg +1 -0
- package/dist/components/Icon/assets/more-horizontal.svg +1 -0
- package/dist/components/Icon/assets/more-vertical.svg +1 -0
- package/dist/components/Icon/assets/mountain-flag.svg +1 -0
- package/dist/components/Icon/assets/music-note.svg +1 -0
- package/dist/components/Icon/assets/notification.svg +1 -0
- package/dist/components/Icon/assets/page-info.svg +1 -0
- package/dist/components/Icon/assets/palette.svg +1 -0
- package/dist/components/Icon/assets/password-check.svg +1 -0
- package/dist/components/Icon/assets/pending.svg +1 -0
- package/dist/components/Icon/assets/people.svg +1 -0
- package/dist/components/Icon/assets/person-cancel.svg +1 -0
- package/dist/components/Icon/assets/pin.svg +1 -0
- package/dist/components/Icon/assets/plant.svg +1 -0
- package/dist/components/Icon/assets/plug.svg +1 -0
- package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
- package/dist/components/Icon/assets/policy-alert.svg +1 -0
- package/dist/components/Icon/assets/print.svg +1 -0
- package/dist/components/Icon/assets/priority-high.svg +1 -0
- package/dist/components/Icon/assets/privacy-tip.svg +1 -0
- package/dist/components/Icon/assets/programming-arrows.svg +1 -0
- package/dist/components/Icon/assets/publish.svg +1 -0
- package/dist/components/Icon/assets/qr-code.svg +1 -0
- package/dist/components/Icon/assets/question.svg +1 -0
- package/dist/components/Icon/assets/receive.svg +1 -0
- package/dist/components/Icon/assets/received.svg +1 -0
- package/dist/components/Icon/assets/refresh.svg +1 -0
- package/dist/components/Icon/assets/remove-minus.svg +1 -0
- package/dist/components/Icon/assets/report.svg +1 -0
- package/dist/components/Icon/assets/rocket.svg +1 -0
- package/dist/components/Icon/assets/save-filled.svg +1 -0
- package/dist/components/Icon/assets/save.svg +1 -0
- package/dist/components/Icon/assets/saving.svg +1 -0
- package/dist/components/Icon/assets/scan-barcode.svg +1 -0
- package/dist/components/Icon/assets/scan-focus.svg +1 -0
- package/dist/components/Icon/assets/scan.svg +1 -0
- package/dist/components/Icon/assets/search.svg +1 -0
- package/dist/components/Icon/assets/security-alert.svg +1 -0
- package/dist/components/Icon/assets/security-cross.svg +1 -0
- package/dist/components/Icon/assets/security-key.svg +1 -0
- package/dist/components/Icon/assets/security-search.svg +1 -0
- package/dist/components/Icon/assets/security-slash.svg +1 -0
- package/dist/components/Icon/assets/security-tick.svg +1 -0
- package/dist/components/Icon/assets/security-time.svg +1 -0
- package/dist/components/Icon/assets/security-user.svg +1 -0
- package/dist/components/Icon/assets/security.svg +1 -0
- package/dist/components/Icon/assets/send.svg +1 -0
- package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
- package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
- package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
- package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
- package/dist/components/Icon/assets/setting-filled.svg +1 -0
- package/dist/components/Icon/assets/setting.svg +1 -0
- package/dist/components/Icon/assets/share.svg +1 -0
- package/dist/components/Icon/assets/shield-lock.svg +1 -0
- package/dist/components/Icon/assets/shopping-bag.svg +1 -0
- package/dist/components/Icon/assets/shopping-cart.svg +1 -0
- package/dist/components/Icon/assets/signal-cellular.svg +1 -0
- package/dist/components/Icon/assets/slash.svg +1 -0
- package/dist/components/Icon/assets/sms.svg +1 -0
- package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
- package/dist/components/Icon/assets/snaps-plus.svg +1 -0
- package/dist/components/Icon/assets/snaps-round.svg +1 -0
- package/dist/components/Icon/assets/snaps.svg +1 -0
- package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
- package/dist/components/Icon/assets/sort.svg +1 -0
- package/dist/components/Icon/assets/sparkle.svg +1 -0
- package/dist/components/Icon/assets/speed.svg +1 -0
- package/dist/components/Icon/assets/speedometer.svg +1 -0
- package/dist/components/Icon/assets/square.svg +1 -0
- package/dist/components/Icon/assets/stake.svg +1 -0
- package/dist/components/Icon/assets/star-filled.svg +1 -0
- package/dist/components/Icon/assets/star.svg +1 -0
- package/dist/components/Icon/assets/start.svg +1 -0
- package/dist/components/Icon/assets/storefront.svg +1 -0
- package/dist/components/Icon/assets/student.svg +1 -0
- package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
- package/dist/components/Icon/assets/swap-vertical.svg +3 -0
- package/dist/components/Icon/assets/tab-close.svg +1 -0
- package/dist/components/Icon/assets/table-row.svg +1 -0
- package/dist/components/Icon/assets/tablet.svg +1 -0
- package/dist/components/Icon/assets/tag.svg +1 -0
- package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
- package/dist/components/Icon/assets/thumb-down.svg +1 -0
- package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
- package/dist/components/Icon/assets/thumb-up.svg +1 -0
- package/dist/components/Icon/assets/tint.svg +1 -0
- package/dist/components/Icon/assets/tooltip.svg +1 -0
- package/dist/components/Icon/assets/translate.svg +1 -0
- package/dist/components/Icon/assets/trash.svg +1 -0
- package/dist/components/Icon/assets/trend-down.svg +1 -0
- package/dist/components/Icon/assets/trend-up.svg +1 -0
- package/dist/components/Icon/assets/undo.svg +1 -0
- package/dist/components/Icon/assets/unfold.svg +1 -0
- package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
- package/dist/components/Icon/assets/unpin.svg +1 -0
- package/dist/components/Icon/assets/upload-file.svg +1 -0
- package/dist/components/Icon/assets/upload.svg +1 -0
- package/dist/components/Icon/assets/usb.svg +1 -0
- package/dist/components/Icon/assets/user-check.svg +1 -0
- package/dist/components/Icon/assets/user-circle-add.svg +1 -0
- package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
- package/dist/components/Icon/assets/user-circle.svg +1 -0
- package/dist/components/Icon/assets/user.svg +1 -0
- package/dist/components/Icon/assets/verified-filled.svg +1 -0
- package/dist/components/Icon/assets/verified.svg +1 -0
- package/dist/components/Icon/assets/videocam.svg +1 -0
- package/dist/components/Icon/assets/view-column.svg +1 -0
- package/dist/components/Icon/assets/view-in-ar.svg +1 -0
- package/dist/components/Icon/assets/volume-off.svg +1 -0
- package/dist/components/Icon/assets/volume-up.svg +1 -0
- package/dist/components/Icon/assets/wallet-filled.svg +1 -0
- package/dist/components/Icon/assets/wallet.svg +1 -0
- package/dist/components/Icon/assets/warning.svg +1 -0
- package/dist/components/Icon/assets/web-traffic.svg +1 -0
- package/dist/components/Icon/assets/widgets.svg +1 -0
- package/dist/components/Icon/assets/wifi-off.svg +1 -0
- package/dist/components/Icon/assets/wifi.svg +1 -0
- package/dist/components/Icon/assets/x.svg +1 -0
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +6 -9
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Text/Text.constants.d.ts +5 -6
- package/dist/components/Text/Text.constants.d.ts.map +1 -1
- package/dist/components/Text/Text.constants.js +17 -15
- package/dist/components/Text/Text.constants.js.map +1 -1
- package/dist/components/Text/Text.d.ts +1 -2
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +38 -13
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.types.d.ts +14 -79
- package/dist/components/Text/Text.types.d.ts.map +1 -1
- package/dist/components/Text/Text.types.js +0 -86
- package/dist/components/Text/Text.types.js.map +1 -1
- package/dist/components/Text/Text.utilities.d.ts +5 -3
- package/dist/components/Text/Text.utilities.d.ts.map +1 -1
- package/dist/components/Text/Text.utilities.js +8 -7
- package/dist/components/Text/Text.utilities.js.map +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +8 -10
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/TextButton/TextButton.constants.d.ts +3 -2
- package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.constants.js +7 -24
- package/dist/components/TextButton/TextButton.constants.js.map +1 -1
- package/dist/components/TextButton/TextButton.d.ts +1 -2
- package/dist/components/TextButton/TextButton.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.js +33 -152
- package/dist/components/TextButton/TextButton.js.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.ts +11 -15
- package/dist/components/TextButton/TextButton.types.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.types.js.map +1 -1
- package/dist/components/TextButton/index.d.ts +2 -1
- package/dist/components/TextButton/index.d.ts.map +1 -1
- package/dist/components/TextButton/index.js +4 -5
- package/dist/components/TextButton/index.js.map +1 -1
- package/dist/components/index.d.ts +51 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +87 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
- package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/Blockies/Blockies.js +2 -3
- package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
- package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.d.ts +1 -1
- package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
- package/dist/components/temp-components/Blockies/index.d.ts +3 -0
- package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/index.js +6 -0
- package/dist/components/temp-components/Blockies/index.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.js +2 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
- package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
- package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.js +3 -5
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
- package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.d.ts +7 -7
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
- package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
- package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.js +2 -2
- package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
- package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.d.ts +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
- package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
- package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
- package/dist/components/temp-components/Jazzicon/index.js +6 -0
- package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
- package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
- package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
- package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
- package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/index.js +6 -0
- package/dist/components/temp-components/Maskicon/index.js.map +1 -0
- package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/{temp-components → components/temp-components}/Spinner/Spinner.js +13 -13
- package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
- package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.d.ts +3 -2
- package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
- package/dist/components/temp-components/Spinner/index.d.ts +3 -0
- package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
- package/dist/components/temp-components/Spinner/index.js +6 -0
- package/dist/components/temp-components/Spinner/index.js.map +1 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.js +5 -4
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
- package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.d.ts +2 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
- package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
- package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
- package/dist/components/temp-components/TextOrChildren/index.js +6 -0
- package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
- package/dist/index.d.ts +1 -135
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -84
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +660 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +671 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +24 -7
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +0 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +0 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +0 -14
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +0 -1
- package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts +0 -48
- package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts.map +0 -1
- package/dist/components/AvatarGroup/AvatarGroup.utilities.js +0 -72
- package/dist/components/AvatarGroup/AvatarGroup.utilities.js.map +0 -1
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +0 -24
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +0 -1
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js +0 -31
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +0 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +0 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +0 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +0 -14
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +0 -1
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts +0 -2
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +0 -1
- package/dist/components/AvatarToken/AvatarToken.constants.js +0 -14
- package/dist/components/AvatarToken/AvatarToken.constants.js.map +0 -1
- package/dist/components/Button/Button.constants.d.ts +0 -2
- package/dist/components/Button/Button.constants.d.ts.map +0 -1
- package/dist/components/Button/Button.constants.js +0 -7
- package/dist/components/Button/Button.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +0 -78
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +0 -122
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +0 -90
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +0 -145
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +0 -88
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +0 -147
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +0 -1
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +0 -55
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +0 -1
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js +0 -73
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +0 -1
- package/dist/components/Icon/Icon.constants.d.ts +0 -7
- package/dist/components/Icon/Icon.constants.d.ts.map +0 -1
- package/dist/components/Icon/Icon.constants.js +0 -15
- package/dist/components/Icon/Icon.constants.js.map +0 -1
- package/dist/components/TextButton/TextButton.utilities.d.ts +0 -55
- package/dist/components/TextButton/TextButton.utilities.d.ts.map +0 -1
- package/dist/components/TextButton/TextButton.utilities.js +0 -77
- package/dist/components/TextButton/TextButton.utilities.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +0 -6
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.constants.js +0 -34
- package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.d.ts +0 -5
- package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.js +0 -55
- package/dist/primitives/AvatarBase/AvatarBase.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.types.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +0 -30
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js +0 -60
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +0 -1
- package/dist/primitives/AvatarBase/index.d.ts +0 -4
- package/dist/primitives/AvatarBase/index.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/index.js +0 -11
- package/dist/primitives/AvatarBase/index.js.map +0 -1
- package/dist/primitives/Blockies/Blockies.d.ts +0 -5
- package/dist/primitives/Blockies/Blockies.d.ts.map +0 -1
- package/dist/primitives/Blockies/Blockies.js.map +0 -1
- package/dist/primitives/Blockies/Blockies.types.d.ts.map +0 -1
- package/dist/primitives/Blockies/Blockies.types.js.map +0 -1
- package/dist/primitives/Blockies/index.d.ts +0 -3
- package/dist/primitives/Blockies/index.d.ts.map +0 -1
- package/dist/primitives/Blockies/index.js +0 -9
- package/dist/primitives/Blockies/index.js.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +0 -5
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +0 -1
- package/dist/primitives/ButtonAnimated/index.d.ts +0 -3
- package/dist/primitives/ButtonAnimated/index.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/index.js +0 -9
- package/dist/primitives/ButtonAnimated/index.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +0 -3
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.constants.js +0 -32
- package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.d.ts +0 -5
- package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.js +0 -84
- package/dist/primitives/ButtonBase/ButtonBase.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.types.js +0 -19
- package/dist/primitives/ButtonBase/ButtonBase.types.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +0 -28
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js +0 -41
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +0 -1
- package/dist/primitives/ButtonBase/index.d.ts +0 -4
- package/dist/primitives/ButtonBase/index.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/index.js +0 -11
- package/dist/primitives/ButtonBase/index.js.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +0 -5
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +0 -1
- package/dist/primitives/ImageOrSvg/index.d.ts +0 -3
- package/dist/primitives/ImageOrSvg/index.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/index.js +0 -9
- package/dist/primitives/ImageOrSvg/index.js.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.d.ts +0 -5
- package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.js.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.types.js.map +0 -1
- package/dist/primitives/Jazzicon/index.d.ts +0 -3
- package/dist/primitives/Jazzicon/index.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/index.js +0 -9
- package/dist/primitives/Jazzicon/index.js.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +0 -5
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.js.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +0 -1
- package/dist/primitives/TextOrChildren/index.d.ts +0 -3
- package/dist/primitives/TextOrChildren/index.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/index.js +0 -9
- package/dist/primitives/TextOrChildren/index.js.map +0 -1
- package/dist/shared/enums.d.ts +0 -47
- package/dist/shared/enums.d.ts.map +0 -1
- package/dist/shared/enums.js +0 -44
- package/dist/shared/enums.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.constants.d.ts +0 -3
- package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.constants.js +0 -21
- package/dist/temp-components/Spinner/Spinner.constants.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.d.ts +0 -5
- package/dist/temp-components/Spinner/Spinner.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.types.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.types.js.map +0 -1
- package/dist/temp-components/Spinner/index.d.ts +0 -3
- package/dist/temp-components/Spinner/index.d.ts.map +0 -1
- package/dist/temp-components/Spinner/index.js +0 -9
- package/dist/temp-components/Spinner/index.js.map +0 -1
- /package/dist/{primitives → components}/AvatarBase/AvatarBase.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.d.ts +0 -0
- /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.js +0 -0
- /package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.js +0 -0
package/README.md
CHANGED
|
@@ -4,12 +4,30 @@ Design System React Native
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
First, install the package:
|
|
8
|
+
|
|
7
9
|
`yarn add @metamask/design-system-react-native`
|
|
8
10
|
|
|
9
11
|
or
|
|
10
12
|
|
|
11
13
|
`npm install @metamask/design-system-react-native`
|
|
12
14
|
|
|
15
|
+
### Peer Dependencies
|
|
16
|
+
|
|
17
|
+
This package requires the following peer dependencies to be installed in your project:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add react@>=18.2.0 react-native@>=0.72.0
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
or
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install react@>=18.2.0 react-native@>=0.72.0
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Note:** This package is compatible with React Native 0.72.0 and newer versions, including 0.76.x.
|
|
30
|
+
|
|
13
31
|
## Contributing
|
|
14
32
|
|
|
15
33
|
This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/metamask-design-system#readme).
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AvatarAccountProps } from './AvatarAccount.types';
|
|
3
|
-
declare const AvatarAccount: ({ address, variant, size,
|
|
4
|
-
export default AvatarAccount;
|
|
3
|
+
export declare const AvatarAccount: ({ address, variant, size, blockiesProps, jazziconProps, maskiconProps, ...props }: AvatarAccountProps) => React.JSX.Element;
|
|
5
4
|
//# sourceMappingURL=AvatarAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarAccount.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarAccount.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,sFAQvB,kBAAkB,sBAgCpB,CAAC"}
|
|
@@ -3,27 +3,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
6
|
+
exports.AvatarAccount = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const AvatarAccount = ({ address, variant =
|
|
8
|
+
const types_1 = require("../../types");
|
|
9
|
+
const AvatarBase_1 = require("../AvatarBase");
|
|
10
|
+
const Blockies_1 = require("../temp-components/Blockies");
|
|
11
|
+
const Jazzicon_1 = require("../temp-components/Jazzicon");
|
|
12
|
+
const Maskicon_1 = require("../temp-components/Maskicon");
|
|
13
|
+
const AvatarAccount = ({ address, variant = types_1.AvatarAccountVariant.Jazzicon, size = types_1.AvatarAccountSize.Md, blockiesProps, jazziconProps, maskiconProps, ...props }) => {
|
|
14
14
|
let AvatarArtComponent;
|
|
15
15
|
switch (variant) {
|
|
16
|
-
case
|
|
17
|
-
AvatarArtComponent = (<Blockies_1.
|
|
16
|
+
case types_1.AvatarAccountVariant.Blockies:
|
|
17
|
+
AvatarArtComponent = (<Blockies_1.Blockies address={address} size={Number(size)} {...blockiesProps}/>);
|
|
18
18
|
break;
|
|
19
|
-
case
|
|
19
|
+
case types_1.AvatarAccountVariant.Maskicon:
|
|
20
|
+
AvatarArtComponent = (<Maskicon_1.Maskicon address={address} size={Number(size)} {...maskiconProps}/>);
|
|
21
|
+
break;
|
|
22
|
+
case types_1.AvatarAccountVariant.Jazzicon:
|
|
20
23
|
default:
|
|
21
|
-
AvatarArtComponent = (<Jazzicon_1.
|
|
24
|
+
AvatarArtComponent = (<Jazzicon_1.Jazzicon address={address} size={Number(size)} {...jazziconProps}/>);
|
|
22
25
|
break;
|
|
23
26
|
}
|
|
24
|
-
return (<AvatarBase_1.
|
|
27
|
+
return (<AvatarBase_1.AvatarBase size={size} shape={types_1.AvatarBaseShape.Circle} accessibilityRole="image" {...props}>
|
|
25
28
|
{AvatarArtComponent}
|
|
26
|
-
</AvatarBase_1.
|
|
29
|
+
</AvatarBase_1.AvatarBase>);
|
|
27
30
|
};
|
|
28
|
-
exports.
|
|
31
|
+
exports.AvatarAccount = AvatarAccount;
|
|
29
32
|
//# sourceMappingURL=AvatarAccount.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarAccount.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarAccount.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uCAIqB;AACrB,8CAA2C;AAC3C,0DAAuD;AACvD,0DAAuD;AACvD,0DAAuD;AAIhD,MAAM,aAAa,GAAG,CAAC,EAC5B,OAAO,EACP,OAAO,GAAG,4BAAoB,CAAC,QAAQ,EACvC,IAAI,GAAG,yBAAiB,CAAC,EAAE,EAC3B,aAAa,EACb,aAAa,EACb,aAAa,EACb,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,IAAI,kBAAkB,CAAC;IAEvB,QAAQ,OAAO,EAAE;QACf,KAAK,4BAAoB,CAAC,QAAQ;YAChC,kBAAkB,GAAG,CACnB,CAAC,mBAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,EAAG,CACtE,CAAC;YACF,MAAM;QACR,KAAK,4BAAoB,CAAC,QAAQ;YAChC,kBAAkB,GAAG,CACnB,CAAC,mBAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,EAAG,CACtE,CAAC;YACF,MAAM;QACR,KAAK,4BAAoB,CAAC,QAAQ,CAAC;QACnC;YACE,kBAAkB,GAAG,CACnB,CAAC,mBAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,EAAG,CACtE,CAAC;YACF,MAAM;KACT;IAED,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,uBAAe,CAAC,MAAM,CAAC,CAC9B,iBAAiB,CAAC,OAAO,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,kBAAkB,CACrB;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,aAAa,iBAwCxB","sourcesContent":["import React from 'react';\n\nimport {\n AvatarAccountSize,\n AvatarBaseShape,\n AvatarAccountVariant,\n} from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { Blockies } from '../temp-components/Blockies';\nimport { Jazzicon } from '../temp-components/Jazzicon';\nimport { Maskicon } from '../temp-components/Maskicon';\n\nimport type { AvatarAccountProps } from './AvatarAccount.types';\n\nexport const AvatarAccount = ({\n address,\n variant = AvatarAccountVariant.Jazzicon,\n size = AvatarAccountSize.Md,\n blockiesProps,\n jazziconProps,\n maskiconProps,\n ...props\n}: AvatarAccountProps) => {\n let AvatarArtComponent;\n\n switch (variant) {\n case AvatarAccountVariant.Blockies:\n AvatarArtComponent = (\n <Blockies address={address} size={Number(size)} {...blockiesProps} />\n );\n break;\n case AvatarAccountVariant.Maskicon:\n AvatarArtComponent = (\n <Maskicon address={address} size={Number(size)} {...maskiconProps} />\n );\n break;\n case AvatarAccountVariant.Jazzicon:\n default:\n AvatarArtComponent = (\n <Jazzicon address={address} size={Number(size)} {...jazziconProps} />\n );\n break;\n }\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n accessibilityRole=\"image\"\n {...props}\n >\n {AvatarArtComponent}\n </AvatarBase>\n );\n};\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import type { AvatarAccountVariant } from '../../types';
|
|
2
|
+
import type { AvatarBaseProps } from '../AvatarBase';
|
|
3
|
+
import type { BlockiesProps } from '../temp-components/Blockies';
|
|
4
|
+
import type { JazziconProps } from '../temp-components/Jazzicon';
|
|
5
|
+
import type { MaskiconProps } from '../temp-components/Maskicon';
|
|
6
6
|
/**
|
|
7
7
|
* AvatarAccount component props.
|
|
8
8
|
*/
|
|
@@ -13,8 +13,21 @@ export type AvatarAccountProps = {
|
|
|
13
13
|
address: string;
|
|
14
14
|
/**
|
|
15
15
|
* Optional prop to control the variant of the avatar account
|
|
16
|
+
*
|
|
16
17
|
* @default AvatarAccountVariant.Jazzicon
|
|
17
18
|
*/
|
|
18
19
|
variant?: AvatarAccountVariant;
|
|
20
|
+
/**
|
|
21
|
+
* Optional props to be passed to the Blockies component
|
|
22
|
+
*/
|
|
23
|
+
blockiesProps?: Partial<BlockiesProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Optional props to be passed to the Jazzicon component
|
|
26
|
+
*/
|
|
27
|
+
jazziconProps?: Partial<JazziconProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional props to be passed to the Maskicon component
|
|
30
|
+
*/
|
|
31
|
+
maskiconProps?: Partial<MaskiconProps>;
|
|
19
32
|
} & Omit<AvatarBaseProps, 'children' | 'fallbackText' | 'fallbackTextProps'>;
|
|
20
33
|
//# sourceMappingURL=AvatarAccount.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarAccount.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AvatarAccount.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACxC,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AvatarAccountVariant = void 0;
|
|
4
|
-
var AvatarAccountVariant;
|
|
5
|
-
(function (AvatarAccountVariant) {
|
|
6
|
-
AvatarAccountVariant["Jazzicon"] = "jazzicon";
|
|
7
|
-
AvatarAccountVariant["Blockies"] = "blockies";
|
|
8
|
-
})(AvatarAccountVariant || (exports.AvatarAccountVariant = AvatarAccountVariant = {}));
|
|
9
3
|
//# sourceMappingURL=AvatarAccount.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarAccount.types.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarAccount.types.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/AvatarAccount.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarAccountVariant } from '../../types';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { BlockiesProps } from '../temp-components/Blockies';\nimport type { JazziconProps } from '../temp-components/Jazzicon';\nimport type { MaskiconProps } from '../temp-components/Maskicon';\n\n/**\n * AvatarAccount component props.\n */\nexport type AvatarAccountProps = {\n /**\n * Required address used as a unique identifier to generate the AvatarAccount art.\n */\n address: string;\n /**\n * Optional prop to control the variant of the avatar account\n *\n * @default AvatarAccountVariant.Jazzicon\n */\n variant?: AvatarAccountVariant;\n /**\n * Optional props to be passed to the Blockies component\n */\n blockiesProps?: Partial<BlockiesProps>;\n /**\n * Optional props to be passed to the Jazzicon component\n */\n jazziconProps?: Partial<JazziconProps>;\n /**\n * Optional props to be passed to the Maskicon component\n */\n maskiconProps?: Partial<MaskiconProps>;\n} & Omit<AvatarBaseProps, 'children' | 'fallbackText' | 'fallbackTextProps'>;\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AvatarAccountSize, AvatarAccountVariant } from '../../types';
|
|
2
|
+
export { AvatarAccount } from './AvatarAccount';
|
|
2
3
|
export type { AvatarAccountProps } from './AvatarAccount.types';
|
|
3
|
-
export { AvatarAccountSize } from '../../shared/enums';
|
|
4
|
-
export { AvatarAccountVariant } from './AvatarAccount.types';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
3
|
+
exports.AvatarAccount = exports.AvatarAccountVariant = exports.AvatarAccountSize = void 0;
|
|
4
|
+
var types_1 = require("../../types");
|
|
5
|
+
Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return types_1.AvatarAccountSize; } });
|
|
6
|
+
Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return types_1.AvatarAccountVariant; } });
|
|
7
7
|
var AvatarAccount_1 = require("./AvatarAccount");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
var enums_1 = require("../../shared/enums");
|
|
10
|
-
Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return enums_1.AvatarAccountSize; } });
|
|
11
|
-
var AvatarAccount_types_1 = require("./AvatarAccount.types");
|
|
12
|
-
Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_types_1.AvatarAccountVariant; } });
|
|
8
|
+
Object.defineProperty(exports, "AvatarAccount", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccount; } });
|
|
13
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarAccount/index.ts"],"names":[],"mappings":";;;AAAA,qCAAsE;AAA7D,0GAAA,iBAAiB,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAChD,iDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { AvatarAccountSize, AvatarAccountVariant } from '../../types';\nexport { AvatarAccount } from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount.types';\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AvatarBaseSize } from '../../types';
|
|
2
|
+
export declare const TWCLASSMAP_AVATARBASE_SIZE_DIMENSION: Record<AvatarBaseSize, string>;
|
|
3
|
+
export declare const TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION: Record<AvatarBaseSize, string>;
|
|
4
|
+
export declare const TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE: Record<AvatarBaseSize, string>;
|
|
5
|
+
export declare const TWCLASSMAP_AVATARBASE_SIZE_BORDER: Record<AvatarBaseSize, string>;
|
|
6
|
+
//# sourceMappingURL=AvatarBase.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.constants.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,oCAAoC,EAAE,MAAM,CACvD,cAAc,EACd,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,MAAM,CACjE,cAAc,EACd,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,+CAA+C,EAAE,MAAM,CAClE,cAAc,EACd,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAO1E,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TWCLASSMAP_AVATARBASE_SIZE_BORDER = exports.TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE = exports.TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION = exports.TWCLASSMAP_AVATARBASE_SIZE_DIMENSION = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
exports.TWCLASSMAP_AVATARBASE_SIZE_DIMENSION = {
|
|
6
|
+
[types_1.AvatarBaseSize.Xs]: 'h-4 w-4',
|
|
7
|
+
[types_1.AvatarBaseSize.Sm]: 'h-6 w-6',
|
|
8
|
+
[types_1.AvatarBaseSize.Md]: 'h-8 w-8',
|
|
9
|
+
[types_1.AvatarBaseSize.Lg]: 'h-10 w-10',
|
|
10
|
+
[types_1.AvatarBaseSize.Xl]: 'h-12 w-12', // 48px
|
|
11
|
+
};
|
|
12
|
+
exports.TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION = {
|
|
13
|
+
[types_1.AvatarBaseSize.Xs]: 'h-[18px] w-[18px]',
|
|
14
|
+
[types_1.AvatarBaseSize.Sm]: 'h-[26px] w-[26px]',
|
|
15
|
+
[types_1.AvatarBaseSize.Md]: 'h-[34px] w-[34px]',
|
|
16
|
+
[types_1.AvatarBaseSize.Lg]: 'h-[44px] w-[44px]',
|
|
17
|
+
[types_1.AvatarBaseSize.Xl]: 'h-[52px] w-[52px]', // 48px with 2px border on each side
|
|
18
|
+
};
|
|
19
|
+
exports.TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE = {
|
|
20
|
+
[types_1.AvatarBaseSize.Xs]: 'rounded-sm',
|
|
21
|
+
[types_1.AvatarBaseSize.Sm]: 'rounded-md',
|
|
22
|
+
[types_1.AvatarBaseSize.Md]: 'rounded-lg',
|
|
23
|
+
[types_1.AvatarBaseSize.Lg]: 'rounded-[10px]',
|
|
24
|
+
[types_1.AvatarBaseSize.Xl]: 'rounded-xl', // 12px
|
|
25
|
+
};
|
|
26
|
+
exports.TWCLASSMAP_AVATARBASE_SIZE_BORDER = {
|
|
27
|
+
[types_1.AvatarBaseSize.Xs]: 'border-background-default border',
|
|
28
|
+
[types_1.AvatarBaseSize.Sm]: 'border-background-default border',
|
|
29
|
+
[types_1.AvatarBaseSize.Md]: 'border-background-default border',
|
|
30
|
+
[types_1.AvatarBaseSize.Lg]: 'border-background-default border-2',
|
|
31
|
+
[types_1.AvatarBaseSize.Xl]: 'border-background-default border-2', // 2px border
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AvatarBase.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.constants.js","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.constants.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAEhC,QAAA,oCAAoC,GAG7C;IACF,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,WAAW;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,OAAO;CAC1C,CAAC;AAEW,QAAA,8CAA8C,GAGvD;IACF,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,mBAAmB;IACxC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,mBAAmB;IACxC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,mBAAmB;IACxC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,mBAAmB;IACxC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,mBAAmB,EAAE,oCAAoC;CAC/E,CAAC;AAEW,QAAA,+CAA+C,GAGxD;IACF,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY;IACjC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,gBAAgB;IACrC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,OAAO;CAC3C,CAAC;AAEW,QAAA,iCAAiC,GAC5C;IACE,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,kCAAkC;IACvD,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,kCAAkC;IACvD,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,kCAAkC;IACvD,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,oCAAoC;IACzD,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,oCAAoC,EAAE,aAAa;CACzE,CAAC","sourcesContent":["import { AvatarBaseSize } from '../../types';\n\nexport const TWCLASSMAP_AVATARBASE_SIZE_DIMENSION: Record<\n AvatarBaseSize,\n string\n> = {\n [AvatarBaseSize.Xs]: 'h-4 w-4', // 16px\n [AvatarBaseSize.Sm]: 'h-6 w-6', // 24px\n [AvatarBaseSize.Md]: 'h-8 w-8', // 32px\n [AvatarBaseSize.Lg]: 'h-10 w-10', // 40px\n [AvatarBaseSize.Xl]: 'h-12 w-12', // 48px\n};\n\nexport const TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION: Record<\n AvatarBaseSize,\n string\n> = {\n [AvatarBaseSize.Xs]: 'h-[18px] w-[18px]', // 16px with 1px border on each side\n [AvatarBaseSize.Sm]: 'h-[26px] w-[26px]', // 24px with 1px border on each side\n [AvatarBaseSize.Md]: 'h-[34px] w-[34px]', // 32px with 1px border on each side\n [AvatarBaseSize.Lg]: 'h-[44px] w-[44px]', // 40px with 2px border on each side\n [AvatarBaseSize.Xl]: 'h-[52px] w-[52px]', // 48px with 2px border on each side\n};\n\nexport const TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE: Record<\n AvatarBaseSize,\n string\n> = {\n [AvatarBaseSize.Xs]: 'rounded-sm', // 4px\n [AvatarBaseSize.Sm]: 'rounded-md', // 6px\n [AvatarBaseSize.Md]: 'rounded-lg', // 8px\n [AvatarBaseSize.Lg]: 'rounded-[10px]', // 10px (No tailwind class for this)\n [AvatarBaseSize.Xl]: 'rounded-xl', // 12px\n};\n\nexport const TWCLASSMAP_AVATARBASE_SIZE_BORDER: Record<AvatarBaseSize, string> =\n {\n [AvatarBaseSize.Xs]: 'border-background-default border', // 1px border\n [AvatarBaseSize.Sm]: 'border-background-default border', // 1px border\n [AvatarBaseSize.Md]: 'border-background-default border', // 1px border\n [AvatarBaseSize.Lg]: 'border-background-default border-2', // 2px border\n [AvatarBaseSize.Xl]: 'border-background-default border-2', // 2px border\n };\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AvatarBaseProps } from './AvatarBase.types';
|
|
3
|
+
export declare const AvatarBase: ({ children, size, shape, fallbackText, fallbackTextProps, hasBorder, twClassName, style, ...props }: AvatarBaseProps) => React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=AvatarBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,wGAUpB,eAAe,sBA+BjB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.AvatarBase = void 0;
|
|
7
|
+
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const react_native_1 = require("react-native");
|
|
10
|
+
const types_1 = require("../../types");
|
|
11
|
+
const Text_1 = require("../Text");
|
|
12
|
+
const AvatarBase_constants_1 = require("./AvatarBase.constants");
|
|
13
|
+
const AvatarBase = ({ children, size = types_1.AvatarBaseSize.Md, shape = types_1.AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName = '', style, ...props }) => {
|
|
14
|
+
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
15
|
+
const twContainerClassNames = `
|
|
16
|
+
items-center justify-center overflow-hidden bg-background-section
|
|
17
|
+
${shape === types_1.AvatarBaseShape.Circle
|
|
18
|
+
? 'rounded-full'
|
|
19
|
+
: AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size]}
|
|
20
|
+
${hasBorder ? AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size] : AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size]}
|
|
21
|
+
${hasBorder ? AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDER[size] : ''}
|
|
22
|
+
${twClassName}
|
|
23
|
+
`;
|
|
24
|
+
return (<react_native_1.View style={[tw `${twContainerClassNames}`, style]} {...props}>
|
|
25
|
+
{fallbackText ? (<Text_1.Text color={Text_1.TextColor.TextMuted} variant={Text_1.TextVariant.BodySm} fontWeight={Text_1.FontWeight.Medium} {...fallbackTextProps} twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}>
|
|
26
|
+
{fallbackText}
|
|
27
|
+
</Text_1.Text>) : (children)}
|
|
28
|
+
</react_native_1.View>);
|
|
29
|
+
};
|
|
30
|
+
exports.AvatarBase = AvatarBase;
|
|
31
|
+
//# sourceMappingURL=AvatarBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.js","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,+CAAoC;AAEpC,uCAA8D;AAC9D,kCAAmE;AAEnE,iEAKgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,KAAK,GAAG,uBAAe,CAAC,MAAM,EAC9B,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG;;MAG1B,KAAK,KAAK,uBAAe,CAAC,MAAM;QAC9B,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,sEAA+C,CAAC,IAAI,CAC1D;MACE,SAAS,CAAC,CAAC,CAAC,qEAA8C,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,2DAAoC,CAAC,IAAI,CAAC;MAC7G,SAAS,CAAC,CAAC,CAAC,wDAAiC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;MACxD,WAAW;GACd,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC5D;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,WAAI,CACH,KAAK,CAAC,CAAC,gBAAS,CAAC,SAAS,CAAC,CAC3B,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,iBAAiB,CAAC,CACtB,WAAW,CAAC,CAAC,aAAa,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAE7G;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,UAAU,cAyCrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport { Text, TextColor, TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_AVATARBASE_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE,\n TWCLASSMAP_AVATARBASE_SIZE_BORDER,\n} from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\n\nexport const AvatarBase = ({\n children,\n size = AvatarBaseSize.Md,\n shape = AvatarBaseShape.Circle,\n fallbackText,\n fallbackTextProps,\n hasBorder = false,\n twClassName = '',\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n const twContainerClassNames = `\n items-center justify-center overflow-hidden bg-background-section\n ${\n shape === AvatarBaseShape.Circle\n ? 'rounded-full'\n : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size]\n }\n ${hasBorder ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size] : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size]}\n ${hasBorder ? TWCLASSMAP_AVATARBASE_SIZE_BORDER[size] : ''}\n ${twClassName}\n `;\n\n return (\n <View style={[tw`${twContainerClassNames}`, style]} {...props}>\n {fallbackText ? (\n <Text\n color={TextColor.TextMuted}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n {...fallbackTextProps}\n twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
3
|
+
import type { AvatarBaseSize, AvatarBaseShape } from '../../types';
|
|
4
|
+
import type { TextProps } from '../Text';
|
|
4
5
|
/**
|
|
5
6
|
* AvatarBase component props.
|
|
6
7
|
*/
|
|
@@ -12,11 +13,12 @@ export type AvatarBaseProps = {
|
|
|
12
13
|
/**
|
|
13
14
|
* Optional prop to control the size of the AvatarBase
|
|
14
15
|
* Possible values:
|
|
15
|
-
*
|
|
16
|
+
* AvatarBaseSize.Xs (16px),
|
|
16
17
|
* - AvatarBaseSize.Sm (24px),
|
|
17
18
|
* - AvatarBaseSize.Md (32px).
|
|
18
19
|
* - AvatarBaseSize.Lg (40px),
|
|
19
20
|
* - AvatarBaseSize.Xl (48px),
|
|
21
|
+
*
|
|
20
22
|
* @default AvatarBaseSize.Md
|
|
21
23
|
*/
|
|
22
24
|
size?: AvatarBaseSize;
|
|
@@ -25,6 +27,7 @@ export type AvatarBaseProps = {
|
|
|
25
27
|
* Possible values:
|
|
26
28
|
* - AvatarBaseShape.Circle
|
|
27
29
|
* - AvatarBaseShape.Square
|
|
30
|
+
*
|
|
28
31
|
* @default AvatarBaseShape.Circle
|
|
29
32
|
*/
|
|
30
33
|
shape?: AvatarBaseShape;
|
|
@@ -40,15 +43,10 @@ export type AvatarBaseProps = {
|
|
|
40
43
|
/**
|
|
41
44
|
* Optional prop to include the border with the Avatar.
|
|
42
45
|
* For internal use only
|
|
46
|
+
*
|
|
43
47
|
* @default false
|
|
44
48
|
*/
|
|
45
49
|
hasBorder?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Optional prop to make sure there's no transparency in the background color
|
|
48
|
-
* For internal use only
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
hasSolidBackgroundColor?: boolean;
|
|
52
50
|
/**
|
|
53
51
|
* Optional prop to add twrnc overriding classNames.
|
|
54
52
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.types.js","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport type { TextProps } from '../Text';\n\n/**\n * AvatarBase component props.\n */\nexport type AvatarBaseProps = {\n /**\n * Required prop for the content to be rendered within the AvatarBase\n */\n children?: React.ReactNode;\n /**\n * Optional prop to control the size of the AvatarBase\n * Possible values:\n * AvatarBaseSize.Xs (16px),\n * - AvatarBaseSize.Sm (24px),\n * - AvatarBaseSize.Md (32px).\n * - AvatarBaseSize.Lg (40px),\n * - AvatarBaseSize.Xl (48px),\n *\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional prop to control the shape of the AvatarBase\n * Possible values:\n * - AvatarBaseShape.Circle\n * - AvatarBaseShape.Square\n *\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n /**\n * Optional text to be rendered when the content fails to render\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the fallbackText when the content\n * fails to render\n */\n fallbackTextProps?: Omit<TextProps, 'children'>;\n /**\n * Optional prop to include the border with the Avatar.\n * For internal use only\n *\n * @default false\n */\n hasBorder?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & ViewProps;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarBase = exports.AvatarBaseShape = exports.AvatarBaseSize = void 0;
|
|
4
|
+
var types_1 = require("../../types");
|
|
5
|
+
Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return types_1.AvatarBaseSize; } });
|
|
6
|
+
Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return types_1.AvatarBaseShape; } });
|
|
7
|
+
var AvatarBase_1 = require("./AvatarBase");
|
|
8
|
+
Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return AvatarBase_1.AvatarBase; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":";;;AAAA,qCAA8D;AAArD,uGAAA,cAAc,OAAA;AAAE,wGAAA,eAAe,OAAA;AACxC,2CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { AvatarBaseSize, AvatarBaseShape } from '../../types';\nexport { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AvatarFaviconProps } from './AvatarFavicon.types';
|
|
3
|
-
declare const AvatarFavicon: ({ size,
|
|
4
|
-
export default AvatarFavicon;
|
|
3
|
+
export declare const AvatarFavicon: ({ src, size, name, fallbackText, fallbackTextProps, twClassName, imageOrSvgProps, ...props }: AvatarFaviconProps) => React.JSX.Element;
|
|
5
4
|
//# sourceMappingURL=AvatarFavicon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarFavicon.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,iGASvB,kBAAkB,sBAyCpB,CAAC"}
|
|
@@ -22,32 +22,29 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
26
|
+
exports.AvatarFavicon = void 0;
|
|
30
27
|
const react_1 = __importStar(require("react"));
|
|
31
|
-
const
|
|
32
|
-
const AvatarBase_1 =
|
|
33
|
-
const ImageOrSvg_1 =
|
|
34
|
-
const AvatarFavicon = ({ size =
|
|
28
|
+
const types_1 = require("../../types");
|
|
29
|
+
const AvatarBase_1 = require("../AvatarBase");
|
|
30
|
+
const ImageOrSvg_1 = require("../temp-components/ImageOrSvg");
|
|
31
|
+
const AvatarFavicon = ({ src, size = types_1.AvatarFaviconSize.Md, name, fallbackText, fallbackTextProps, twClassName, imageOrSvgProps, ...props }) => {
|
|
35
32
|
const [finalFallbackText, setFallbackText] = (0, react_1.useState)('');
|
|
36
33
|
const backupFallbackText = fallbackText || name?.[0] || '';
|
|
37
34
|
const onImageErrorHandler = (e) => {
|
|
38
35
|
setFallbackText(backupFallbackText);
|
|
39
|
-
onImageError?.(e);
|
|
36
|
+
imageOrSvgProps?.onImageError?.(e);
|
|
40
37
|
};
|
|
41
38
|
const onSvgErrorHandler = (e) => {
|
|
42
39
|
setFallbackText(backupFallbackText);
|
|
43
|
-
onSvgError?.(e);
|
|
40
|
+
imageOrSvgProps?.onSvgError?.(e);
|
|
44
41
|
};
|
|
45
|
-
return (<AvatarBase_1.
|
|
46
|
-
<ImageOrSvg_1.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</AvatarBase_1.
|
|
42
|
+
return (<AvatarBase_1.AvatarBase size={size} shape={types_1.AvatarBaseShape.Circle} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} twClassName={twClassName} {...props}>
|
|
43
|
+
{src && (<ImageOrSvg_1.ImageOrSvg src={src} width={'100%'} height={'100%'} {...imageOrSvgProps} imageProps={{
|
|
44
|
+
resizeMode: 'contain',
|
|
45
|
+
...imageOrSvgProps?.imageProps,
|
|
46
|
+
}} onImageError={onImageErrorHandler} onSvgError={onSvgErrorHandler}/>)}
|
|
47
|
+
</AvatarBase_1.AvatarBase>);
|
|
51
48
|
};
|
|
52
|
-
exports.
|
|
49
|
+
exports.AvatarFavicon = AvatarFavicon;
|
|
53
50
|
//# sourceMappingURL=AvatarFavicon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarFavicon.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,uCAAiE;AACjE,8CAA2C;AAC3C,8DAA2D;AAIpD,MAAM,aAAa,GAAG,CAAC,EAC5B,GAAG,EACH,IAAI,GAAG,yBAAiB,CAAC,EAAE,EAC3B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IAElE,MAAM,kBAAkB,GAAG,YAAY,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,mBAAmB,GAAG,CAC1B,CAA4C,EAC5C,EAAE;QACF,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE;QACnC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,uBAAe,CAAC,MAAM,CAAC,CAC9B,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,GAAG,IAAI,CACN,CAAC,uBAAU,CACT,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,aAAa,iBAkDxB","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarFaviconSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = ({\n src,\n size = AvatarFaviconSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n twClassName,\n imageOrSvgProps,\n ...props\n}: AvatarFaviconProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: any) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n twClassName={twClassName}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { AvatarBaseProps } from '
|
|
2
|
-
import { ImageOrSvgProps } from '
|
|
1
|
+
import type { AvatarBaseProps } from '../AvatarBase';
|
|
2
|
+
import type { ImageOrSvgProps, ImageOrSvgSrc } from '../temp-components/ImageOrSvg';
|
|
3
3
|
/**
|
|
4
4
|
* AvatarFavicon component props.
|
|
5
5
|
*/
|
|
6
6
|
export type AvatarFaviconProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Optional prop for the source of the image or SVG
|
|
9
|
+
*/
|
|
10
|
+
src?: ImageOrSvgSrc;
|
|
7
11
|
/**
|
|
8
12
|
* Optional props for favicon name, to be used to calculate the fallbackText.
|
|
9
13
|
*/
|
|
10
14
|
name?: string;
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Optional prop to pass to the underlying ImageOrSvg element
|
|
17
|
+
* Useful for overriding the default alt text which is the dapp name
|
|
18
|
+
*/
|
|
19
|
+
imageOrSvgProps?: Partial<ImageOrSvgProps>;
|
|
20
|
+
} & Omit<AvatarBaseProps, 'children'>;
|
|
12
21
|
//# sourceMappingURL=AvatarFavicon.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarFavicon.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5C,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarFavicon.types.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":"","sourcesContent":["import { AvatarBaseProps } from '
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBaseProps } from '../AvatarBase';\nimport type {\n ImageOrSvgProps,\n ImageOrSvgSrc,\n} from '../temp-components/ImageOrSvg';\n\n/**\n * AvatarFavicon component props.\n */\nexport type AvatarFaviconProps = {\n /**\n * Optional prop for the source of the image or SVG\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional props for favicon name, to be used to calculate the fallbackText.\n */\n name?: string;\n /**\n * Optional prop to pass to the underlying ImageOrSvg element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageOrSvgProps?: Partial<ImageOrSvgProps>;\n} & Omit<AvatarBaseProps, 'children'>;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AvatarFaviconSize } from '../../types';
|
|
2
|
+
export { AvatarFavicon } from './AvatarFavicon';
|
|
2
3
|
export type { AvatarFaviconProps } from './AvatarFavicon.types';
|
|
3
|
-
export { AvatarFaviconSize } from '../../shared/enums';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
3
|
+
exports.AvatarFavicon = exports.AvatarFaviconSize = void 0;
|
|
4
|
+
var types_1 = require("../../types");
|
|
5
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return types_1.AvatarFaviconSize; } });
|
|
7
6
|
var AvatarFavicon_1 = require("./AvatarFavicon");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
var enums_1 = require("../../shared/enums");
|
|
10
|
-
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return enums_1.AvatarFaviconSize; } });
|
|
7
|
+
Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFavicon; } });
|
|
11
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAAvC,0GAAA,iBAAiB,OAAA;AAC1B,iDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { AvatarFaviconSize } from '../../types';\nexport { AvatarFavicon } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon.types';\n"]}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { AvatarGroupSize } from '../../
|
|
1
|
+
import { AvatarGroupSize } from '../../types';
|
|
2
2
|
import { TextVariant } from '../Text';
|
|
3
|
-
|
|
4
|
-
import { AvatarFaviconProps } from '../AvatarFavicon';
|
|
5
|
-
import { AvatarNetworkProps } from '../AvatarNetwork';
|
|
6
|
-
import { AvatarTokenProps } from '../AvatarToken';
|
|
7
|
-
export declare const MAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS: Record<AvatarGroupSize, number>;
|
|
3
|
+
export declare const TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS: Record<AvatarGroupSize, string>;
|
|
8
4
|
export declare const MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT: Record<AvatarGroupSize, TextVariant>;
|
|
9
|
-
export declare const SAMPLE_AVATARGROUP_AVATARACCOUNTPROPSARR: AvatarAccountProps[];
|
|
10
|
-
export declare const SAMPLE_AVATARGROUP_AVATARFAVICONPROPSARR: AvatarFaviconProps[];
|
|
11
|
-
export declare const SAMPLE_AVATARGROUP_AVATARNETWORKPROPSARR: AvatarNetworkProps[];
|
|
12
|
-
export declare const SAMPLE_AVATARGROUP_AVATARTOKENPROPSARR: AvatarTokenProps[];
|
|
13
5
|
//# sourceMappingURL=AvatarGroup.constants.d.ts.map
|