@metamask-previews/design-system-react-native 0.0.0-preview.1c1a94d → 0.0.0-preview.3774cae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AvatarAccount/AvatarAccount.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 +1 -2
- package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.js +14 -12
- package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +18 -26
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js +0 -16
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -1
- package/dist/components/BadgeWrapper/index.d.ts +3 -2
- package/dist/components/BadgeWrapper/index.d.ts.map +1 -1
- package/dist/components/BadgeWrapper/index.js +5 -8
- package/dist/components/BadgeWrapper/index.js.map +1 -1
- package/dist/components/Box/Box.constants.d.ts +17 -0
- package/dist/components/Box/Box.constants.d.ts.map +1 -0
- package/dist/components/Box/Box.constants.js +229 -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 +45 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Box/Box.types.d.ts +116 -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 +4 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/index.js +6 -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 +56 -50
- 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 -4
- package/dist/components/Text/Text.constants.d.ts.map +1 -1
- package/dist/components/Text/Text.constants.js +18 -10
- 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 +7 -5
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.types.d.ts +9 -89
- package/dist/components/Text/Text.types.d.ts.map +1 -1
- package/dist/components/Text/Text.types.js +0 -92
- package/dist/components/Text/Text.types.js.map +1 -1
- package/dist/components/Text/Text.utilities.d.ts.map +1 -1
- package/dist/components/Text/Text.utilities.js +4 -4
- 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 -11
- 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 +49 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +80 -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 -136
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -85
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +721 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +737 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +9 -3
- 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
|
@@ -22,166 +22,47 @@ 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.TextButton = void 0;
|
|
30
27
|
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
31
28
|
const react_1 = __importStar(require("react"));
|
|
32
29
|
const react_native_1 = require("react-native");
|
|
33
|
-
const
|
|
34
|
-
const Icon_1 =
|
|
35
|
-
const Text_1 =
|
|
30
|
+
const types_1 = require("../../types");
|
|
31
|
+
const Icon_1 = require("../Icon");
|
|
32
|
+
const Text_1 = require("../Text");
|
|
36
33
|
const TextButton_constants_1 = require("./TextButton.constants");
|
|
37
|
-
const
|
|
38
|
-
const TextButton = ({ children, textProps, isLoading = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isLoading, loadingText, spinnerProps, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, isDisabled = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isDisabled, isInverse = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isInverse, onPress, onPressIn, onPressOut, onLongPress, twClassName, accessibilityRole, accessibilityLabel, style, ...props }) => {
|
|
39
|
-
const [isPressed, setIsPressed] = (0, react_1.useState)(false);
|
|
34
|
+
const TextButton = ({ children, size = types_1.TextButtonSize.BodyMd, textProps, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, isDisabled = false, isInverse = false, twClassName = '', accessibilityRole, accessibilityLabel, style, ...props }) => {
|
|
40
35
|
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
41
|
-
// Styling calculation for state changes
|
|
42
|
-
const twContainerClassNames = (0, react_1.useMemo)(() => {
|
|
43
|
-
return (0, TextButton_utilities_1.generateTextButtonContainerClassNames)({
|
|
44
|
-
isPressed,
|
|
45
|
-
isLoading,
|
|
46
|
-
isDisabled,
|
|
47
|
-
twClassName,
|
|
48
|
-
});
|
|
49
|
-
}, [isPressed, isLoading, isDisabled, twClassName]);
|
|
50
|
-
const twTextClassNames = (0, react_1.useMemo)(() => {
|
|
51
|
-
return (0, TextButton_utilities_1.generateTextButtonTextClassNames)({
|
|
52
|
-
isPressed,
|
|
53
|
-
isInverse,
|
|
54
|
-
isLoading,
|
|
55
|
-
});
|
|
56
|
-
}, [isPressed, isInverse, isLoading]);
|
|
57
|
-
// Merging default settings for Icons with passed in props
|
|
58
|
-
const finalStartIconProps = {
|
|
59
|
-
...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.startIconProps,
|
|
60
|
-
...startIconProps,
|
|
61
|
-
twClassName: `${twTextClassNames} ${startIconProps?.twClassName ?? ''}`,
|
|
62
|
-
};
|
|
63
|
-
const finalStartIconName = startIconName ?? startIconProps?.name;
|
|
64
|
-
const finalEndIconProps = {
|
|
65
|
-
...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.endIconProps,
|
|
66
|
-
...endIconProps,
|
|
67
|
-
twClassName: `${twTextClassNames} ${endIconProps?.twClassName ?? ''}`,
|
|
68
|
-
};
|
|
69
|
-
const finalEndIconName = endIconName ?? endIconProps?.name;
|
|
70
|
-
const finalTextProps = {
|
|
71
|
-
...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.textProps,
|
|
72
|
-
...textProps,
|
|
73
|
-
twClassName: `${twTextClassNames} ${textProps?.twClassName ?? ''}`,
|
|
74
|
-
};
|
|
75
|
-
// Merging spinner settings for Icons with passed in props
|
|
76
|
-
const finalSpinnerProps = {
|
|
77
|
-
...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.spinnerProps,
|
|
78
|
-
loadingText,
|
|
79
|
-
color: twTextClassNames,
|
|
80
|
-
loadingTextProps: {
|
|
81
|
-
twClassName: `${twTextClassNames} mt-[2.5px]`,
|
|
82
|
-
},
|
|
83
|
-
...spinnerProps,
|
|
84
|
-
};
|
|
85
|
-
const onPressHandler = (event) => {
|
|
86
|
-
if (!isDisabled && !isLoading) {
|
|
87
|
-
onPress?.(event);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const onPressInHandler = (event) => {
|
|
91
|
-
if (!isDisabled && !isLoading) {
|
|
92
|
-
setIsPressed(true);
|
|
93
|
-
onPressIn?.(event);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const onPressOutHandler = (event) => {
|
|
97
|
-
if (!isDisabled && !isLoading) {
|
|
98
|
-
setIsPressed(false);
|
|
99
|
-
onPressOut?.(event);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const onLongPressHandler = (event) => {
|
|
103
|
-
if (!isDisabled && !isLoading) {
|
|
104
|
-
onLongPress?.(event);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Design Requirements
|
|
109
|
-
* TextButton needs to be able to be placed inline with other Texts along with
|
|
110
|
-
* accompanying icons.
|
|
111
|
-
*
|
|
112
|
-
* Limitations
|
|
113
|
-
* React Native renders Texts and components nested inside Texts very differently.
|
|
114
|
-
* In order to fulfil design requirements
|
|
115
|
-
* - TextButton needs to be built using Text wrapping the component to ensure
|
|
116
|
-
* when placed in line with other Texts, it can be properly displayed inline
|
|
117
|
-
* with other Texts.
|
|
118
|
-
* - Due to React Native Texts calculating the layout of nested components
|
|
119
|
-
* differently, there needs to be a few styling hacks applied below
|
|
120
|
-
*/
|
|
121
|
-
// Get the line height of the text, which is also the height of the component
|
|
122
|
-
const finalVariant = finalTextProps.variant;
|
|
123
|
-
const { lineHeight } = tw `text-${finalVariant}`;
|
|
124
|
-
const componentHeight = Number(lineHeight);
|
|
125
|
-
// Due to React Native rendering Views slightly above Texts, any non-texts
|
|
126
|
-
// need to be moved down
|
|
127
|
-
const nonTextOffSet = 2.5;
|
|
128
|
-
// Get the final sizes of Icons to help with manual alignments
|
|
129
|
-
const finalStartIconSize = finalStartIconProps.size;
|
|
130
|
-
const finalEndIconSize = finalEndIconProps.size;
|
|
131
|
-
// Offsets to vertically center the Icon
|
|
132
|
-
const finalStartIconOffset = (Number(lineHeight) - Number(finalStartIconSize)) / 2;
|
|
133
|
-
const finalEndIconOffset = (Number(lineHeight) - Number(finalEndIconSize)) / 2;
|
|
134
36
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* additional margins/paddings. However, this causes the Text component to
|
|
138
|
-
* somehow not include the Icons as part of the calculation for displaying
|
|
139
|
-
* a change in background color onPress. Because of that, we need to mimic
|
|
140
|
-
* the behavior on the Icon wrappers by baking the margins into the Icon
|
|
141
|
-
* wrappers in order to display the background change properly
|
|
37
|
+
* Calculating the baselineOffset. This baselineOffset is needed to make sure
|
|
38
|
+
* the TextButton aligns perfectly when placed within Text elements
|
|
142
39
|
*/
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
</react_native_1.View>) : (startAccessory)}
|
|
167
|
-
<Text_1.default {...finalTextProps}>{children}</Text_1.default>
|
|
168
|
-
{finalEndIconName ? (
|
|
169
|
-
// This additional View is needed, otherwise things are rendered
|
|
170
|
-
// VERY funkily
|
|
171
|
-
<react_native_1.View style={tw `h-[${componentHeight}px]`}>
|
|
172
|
-
<react_native_1.View style={tw `
|
|
173
|
-
${twContainerClassNames}
|
|
174
|
-
items-end
|
|
175
|
-
mt-[${nonTextOffSet}px]
|
|
176
|
-
pt-[${finalEndIconOffset}px]
|
|
177
|
-
h-[${componentHeight}px] w-[${endIconWrapperWidth}px]`}>
|
|
178
|
-
<Icon_1.default name={finalEndIconName} {...finalEndIconProps}/>
|
|
179
|
-
</react_native_1.View>
|
|
180
|
-
</react_native_1.View>) : (endAccessory)}
|
|
40
|
+
const { fontSize, lineHeight } = tw `text-${TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}`;
|
|
41
|
+
const baselineOffset = (lineHeight - fontSize) / 2;
|
|
42
|
+
const getTextColor = (0, react_1.useCallback)((pressed) => {
|
|
43
|
+
if (isInverse) {
|
|
44
|
+
return 'text-primary-inverse';
|
|
45
|
+
}
|
|
46
|
+
return pressed ? 'text-primary-defaultPressed' : 'text-primary-default';
|
|
47
|
+
}, [isInverse]);
|
|
48
|
+
const getTextDecoration = (0, react_1.useCallback)((pressed) => isInverse || pressed ? 'underline' : 'no-underline', [isInverse]);
|
|
49
|
+
return (<Text_1.Text>
|
|
50
|
+
<react_native_1.Pressable accessibilityRole={accessibilityRole ?? 'button'} accessibilityLabel={accessibilityLabel} disabled={isDisabled} style={({ pressed }) => [
|
|
51
|
+
{ transform: [{ translateY: baselineOffset }] },
|
|
52
|
+
tw `flex-row items-center ${pressed ? 'bg-background-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,
|
|
53
|
+
style,
|
|
54
|
+
]} {...props}>
|
|
55
|
+
{({ pressed }) => (<>
|
|
56
|
+
{startIconName ? (<Icon_1.Icon name={startIconName} size={Icon_1.IconSize.Sm} testID="start-icon" twClassName={`${getTextColor(pressed)} mr-1`} {...startIconProps}/>) : (startAccessory)}
|
|
57
|
+
|
|
58
|
+
<Text_1.Text variant={TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]} fontWeight={Text_1.FontWeight.Medium} {...textProps} twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}>
|
|
59
|
+
{children}
|
|
60
|
+
</Text_1.Text>
|
|
61
|
+
|
|
62
|
+
{endIconName ? (<Icon_1.Icon name={endIconName} size={Icon_1.IconSize.Sm} testID="end-icon" twClassName={`${getTextColor(pressed)} ml-1`} {...endIconProps}/>) : (endAccessory)}
|
|
181
63
|
</>)}
|
|
182
|
-
</
|
|
183
|
-
|
|
184
|
-
</Text_1.default>);
|
|
64
|
+
</react_native_1.Pressable>
|
|
65
|
+
</Text_1.Text>);
|
|
185
66
|
};
|
|
186
|
-
exports.
|
|
67
|
+
exports.TextButton = TextButton;
|
|
187
68
|
//# sourceMappingURL=TextButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAiE;AACjE,8FAA4E;AAC5E,+CAAiD;AAEjD,+CAAoC;AAGpC,4EAAoD;AAEpD,mDAA2B;AAC3B,wDAAgC;AAEhC,iEAAkE;AAElE,iEAGgC;AAEhC,MAAM,UAAU,GAAG,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,SAAS,GAAG,+CAAwB,CAAC,SAAS,EAC9C,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,GAAG,+CAAwB,CAAC,UAAU,EAChD,SAAS,GAAG,+CAAwB,CAAC,SAAS,EAC9C,OAAO,EACP,SAAS,EACT,UAAU,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,wCAAwC;IACxC,MAAM,qBAAqB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACzC,OAAO,IAAA,4DAAqC,EAAC;YAC3C,S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coalescing */\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo, useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { View } from 'react-native';\n\nimport type { SpinnerProps } from '../../temp-components/Spinner';\nimport Spinner from '../../temp-components/Spinner';\nimport type { IconProps, IconColor } from '../Icon';\nimport Icon from '../Icon';\nimport Text from '../Text/Text';\nimport type { TextProps } from '../Text/Text.types';\nimport { DEFAULT_TEXTBUTTON_PROPS } from './TextButton.constants';\nimport type { TextButtonProps } from './TextButton.types';\nimport {\n generateTextButtonContainerClassNames,\n generateTextButtonTextClassNames,\n} from './TextButton.utilities';\n\nconst TextButton = ({\n children,\n textProps,\n isLoading = DEFAULT_TEXTBUTTON_PROPS.isLoading,\n loadingText,\n spinnerProps,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n isDisabled = DEFAULT_TEXTBUTTON_PROPS.isDisabled,\n isInverse = DEFAULT_TEXTBUTTON_PROPS.isInverse,\n onPress,\n onPressIn,\n onPressOut,\n onLongPress,\n twClassName,\n accessibilityRole,\n accessibilityLabel,\n style,\n ...props\n}: TextButtonProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n // Styling calculation for state changes\n const twContainerClassNames = useMemo(() => {\n return generateTextButtonContainerClassNames({\n isPressed,\n isLoading,\n isDisabled,\n twClassName,\n });\n }, [isPressed, isLoading, isDisabled, twClassName]);\n\n const twTextClassNames = useMemo(() => {\n return generateTextButtonTextClassNames({\n isPressed,\n isInverse,\n isLoading,\n });\n }, [isPressed, isInverse, isLoading]);\n\n // Merging default settings for Icons with passed in props\n const finalStartIconProps: Partial<IconProps> = {\n ...DEFAULT_TEXTBUTTON_PROPS.startIconProps,\n ...startIconProps,\n twClassName: `${twTextClassNames} ${startIconProps?.twClassName ?? ''}`,\n };\n const finalStartIconName = startIconName ?? startIconProps?.name;\n\n const finalEndIconProps: Partial<IconProps> = {\n ...DEFAULT_TEXTBUTTON_PROPS.endIconProps,\n ...endIconProps,\n twClassName: `${twTextClassNames} ${endIconProps?.twClassName ?? ''}`,\n };\n const finalEndIconName = endIconName ?? endIconProps?.name;\n\n const finalTextProps: Omit<Partial<TextProps>, 'children'> = {\n ...DEFAULT_TEXTBUTTON_PROPS.textProps,\n ...textProps,\n twClassName: `${twTextClassNames} ${textProps?.twClassName ?? ''}`,\n };\n\n // Merging spinner settings for Icons with passed in props\n const finalSpinnerProps: SpinnerProps = {\n ...DEFAULT_TEXTBUTTON_PROPS.spinnerProps,\n loadingText,\n color: twTextClassNames as IconColor,\n loadingTextProps: {\n twClassName: `${twTextClassNames} mt-[2.5px]`,\n },\n ...spinnerProps,\n };\n const onPressHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n onPress?.(event);\n }\n };\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n setIsPressed(true);\n onPressIn?.(event);\n }\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n setIsPressed(false);\n onPressOut?.(event);\n }\n };\n\n const onLongPressHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n onLongPress?.(event);\n }\n };\n\n /**\n * Design Requirements\n * TextButton needs to be able to be placed inline with other Texts along with\n * accompanying icons.\n *\n * Limitations\n * React Native renders Texts and components nested inside Texts very differently.\n * In order to fulfil design requirements\n * - TextButton needs to be built using Text wrapping the component to ensure\n * when placed in line with other Texts, it can be properly displayed inline\n * with other Texts.\n * - Due to React Native Texts calculating the layout of nested components\n * differently, there needs to be a few styling hacks applied below\n */\n\n // Get the line height of the text, which is also the height of the component\n const finalVariant = finalTextProps.variant;\n const { lineHeight } = tw`text-${finalVariant as string}`;\n const componentHeight = Number(lineHeight);\n\n // Due to React Native rendering Views slightly above Texts, any non-texts\n // need to be moved down\n const nonTextOffSet = 2.5;\n\n // Get the final sizes of Icons to help with manual alignments\n const finalStartIconSize = finalStartIconProps.size;\n const finalEndIconSize = finalEndIconProps.size;\n\n // Offsets to vertically center the Icon\n const finalStartIconOffset =\n (Number(lineHeight) - Number(finalStartIconSize)) / 2;\n const finalEndIconOffset =\n (Number(lineHeight) - Number(finalEndIconSize)) / 2;\n\n /**\n * Due to Texts restricting nested components to manipulating layout with\n * margins/paddings, we needed to add Nested Views in order to properly add\n * additional margins/paddings. However, this causes the Text component to\n * somehow not include the Icons as part of the calculation for displaying\n * a change in background color onPress. Because of that, we need to mimic\n * the behavior on the Icon wrappers by baking the margins into the Icon\n * wrappers in order to display the background change properly\n */\n const marginsBetweenIconAndText = 4;\n const startIconWrapperWidth =\n Number(finalStartIconSize) + marginsBetweenIconAndText;\n const endIconWrapperWidth =\n Number(finalEndIconSize) + marginsBetweenIconAndText;\n\n return (\n <Text>\n {finalStartIconName && <Text style={tw`hidden`}> </Text>}\n {isLoading && (\n <View style={tw`${twContainerClassNames}`}>\n <Spinner {...finalSpinnerProps} />\n </View>\n )}\n <Text\n onPress={onPressHandler}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n onLongPress={onLongPressHandler}\n accessible\n accessibilityRole=\"button\"\n accessibilityLabel={accessibilityLabel}\n style={[tw`${twContainerClassNames}`, style]}\n testID=\"text-button\"\n suppressHighlighting\n {...props}\n >\n {!isLoading && (\n <>\n {finalStartIconName ? (\n // This additional View is needed, otherwise things are rendered\n // VERY funkily\n <View style={tw`h-[${componentHeight}px]`}>\n <View\n style={tw`\n ${twContainerClassNames} \n items-start mt-[${nonTextOffSet}px] \n pt-[${finalStartIconOffset}px] \n h-[${componentHeight}px] \n w-[${startIconWrapperWidth}px]\n `}\n >\n <Icon name={finalStartIconName} {...finalStartIconProps} />\n </View>\n </View>\n ) : (\n startAccessory\n )}\n <Text {...finalTextProps}>{children}</Text>\n {finalEndIconName ? (\n // This additional View is needed, otherwise things are rendered\n // VERY funkily\n <View style={tw`h-[${componentHeight}px]`}>\n <View\n style={tw`\n ${twContainerClassNames} \n items-end \n mt-[${nonTextOffSet}px] \n pt-[${finalEndIconOffset}px] \n h-[${componentHeight}px] w-[${endIconWrapperWidth}px]`}\n >\n <Icon name={finalEndIconName} {...finalEndIconProps} />\n </View>\n </View>\n ) : (\n endAccessory\n )}\n </>\n )}\n </Text>\n {finalEndIconName && <Text style={tw`hidden`}> </Text>}\n </Text>\n );\n};\n\nexport default TextButton;\n"]}
|
|
1
|
+
{"version":3,"file":"TextButton.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAA2C;AAC3C,+CAAyC;AAEzC,uCAA6C;AAC7C,kCAAyC;AACzC,kCAA2C;AAE3C,iEAAyE;AAGlE,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,IAAI,GAAG,sBAAc,CAAC,MAAM,EAC5B,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB;;;OAGG;IACH,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAA,QACjC,sDAA+B,CAAC,IAAI,CACtC,EAGC,CAAC;IACF,MAAM,cAAc,GAAG,CAAC,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEnD,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,OAAgB,EAAU,EAAE;QAC3B,IAAI,SAAS,EAAE;YACb,OAAO,sBAAsB,CAAC;SAC/B;QACD,OAAO,OAAO,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC1E,CAA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CAAC,MAAM,CAAC,CAC9B,IAAI,SAAS,CAAC,CACd,WAAW,CAAC,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,WAAW,IAAI,EAAE,GAAG,CAAC,CAExG;cAAA,CAAC,QAAQ,CACX;YAAA,EAAE,WAAI,CAEN;;YAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,WAAW,CAAC,CAClB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,MAAM,CAAC,UAAU,CACjB,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAC7C,IAAI,YAAY,CAAC,EACjB,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CACH;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,wBAAS,CACb;IAAA,EAAE,WAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAnGW,QAAA,UAAU,cAmGrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { Pressable } from 'react-native';\n\nimport { TextButtonSize } from '../../types';\nimport { Icon, IconSize } from '../Icon';\nimport { Text, FontWeight } from '../Text';\n\nimport { MAP_TEXTBUTTON_SIZE_TEXTVARIANT } from './TextButton.constants';\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton: React.FC<TextButtonProps> = ({\n children,\n size = TextButtonSize.BodyMd,\n textProps,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n isDisabled = false,\n isInverse = false,\n twClassName = '',\n accessibilityRole,\n accessibilityLabel,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n /**\n * Calculating the baselineOffset. This baselineOffset is needed to make sure\n * the TextButton aligns perfectly when placed within Text elements\n */\n const { fontSize, lineHeight } = tw`text-${\n MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size] as string\n }` as {\n fontSize: number;\n lineHeight: number;\n };\n const baselineOffset = (lineHeight - fontSize) / 2;\n\n const getTextColor = useCallback(\n (pressed: boolean): string => {\n if (isInverse) {\n return 'text-primary-inverse';\n }\n return pressed ? 'text-primary-defaultPressed' : 'text-primary-default';\n },\n [isInverse],\n );\n\n const getTextDecoration = useCallback(\n (pressed: boolean): string =>\n isInverse || pressed ? 'underline' : 'no-underline',\n [isInverse],\n );\n\n return (\n <Text>\n <Pressable\n accessibilityRole={accessibilityRole ?? 'button'}\n accessibilityLabel={accessibilityLabel}\n disabled={isDisabled}\n style={({ pressed }) => [\n { transform: [{ translateY: baselineOffset }] },\n tw`flex-row items-center ${pressed ? 'bg-background-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,\n style,\n ]}\n {...props}\n >\n {({ pressed }) => (\n <>\n {startIconName ? (\n <Icon\n name={startIconName}\n size={IconSize.Sm}\n testID=\"start-icon\"\n twClassName={`${getTextColor(pressed)} mr-1`}\n {...startIconProps}\n />\n ) : (\n startAccessory\n )}\n\n <Text\n variant={MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}\n fontWeight={FontWeight.Medium}\n {...textProps}\n twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}\n >\n {children}\n </Text>\n\n {endIconName ? (\n <Icon\n name={endIconName}\n size={IconSize.Sm}\n testID=\"end-icon\"\n twClassName={`${getTextColor(pressed)} ml-1`}\n {...endIconProps}\n />\n ) : (\n endAccessory\n )}\n </>\n )}\n </Pressable>\n </Text>\n );\n};\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import type {
|
|
3
|
-
import type { SpinnerProps } from '../../temp-components/Spinner';
|
|
3
|
+
import type { TextButtonSize } from '../../types';
|
|
4
4
|
import type { IconProps, IconName } from '../Icon';
|
|
5
|
+
import type { TextProps } from '../Text';
|
|
5
6
|
/**
|
|
6
7
|
* TextButton component props.
|
|
7
8
|
*/
|
|
@@ -11,22 +12,15 @@ export type TextButtonProps = {
|
|
|
11
12
|
*/
|
|
12
13
|
children: string;
|
|
13
14
|
/**
|
|
14
|
-
* Optional
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Optional prop that when true, shows a loading spinner
|
|
19
|
-
* @default false
|
|
15
|
+
* Optional prop to control the size of the TextButton
|
|
16
|
+
*
|
|
17
|
+
* @default TextButtonSize.BodyMd
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
size?: TextButtonSize;
|
|
22
20
|
/**
|
|
23
|
-
* Optional
|
|
24
|
-
*/
|
|
25
|
-
loadingText?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional prop to pass additional properties to the end icon
|
|
21
|
+
* Optional props to be passed to the Text component when children is a string
|
|
28
22
|
*/
|
|
29
|
-
|
|
23
|
+
textProps?: Omit<Partial<TextProps>, 'children'>;
|
|
30
24
|
/**
|
|
31
25
|
* Optional prop to specify an icon to show at the start of the button
|
|
32
26
|
*/
|
|
@@ -53,11 +47,13 @@ export type TextButtonProps = {
|
|
|
53
47
|
endAccessory?: React.ReactNode;
|
|
54
48
|
/**
|
|
55
49
|
* Optional prop that when true, disables the button
|
|
50
|
+
*
|
|
56
51
|
* @default false
|
|
57
52
|
*/
|
|
58
53
|
isDisabled?: boolean;
|
|
59
54
|
/**
|
|
60
55
|
* Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.
|
|
56
|
+
*
|
|
61
57
|
* @default false
|
|
62
58
|
*/
|
|
63
59
|
isInverse?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"TextButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;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,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.types.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, StyleProp, ViewStyle } from 'react-native';\nimport type {
|
|
1
|
+
{"version":3,"file":"TextButton.types.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextButtonSize } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * TextButton component props.\n */\nexport type TextButtonProps = {\n /**\n * Required prop for the content to be rendered within the TextButton\n */\n children: string;\n /**\n * Optional prop to control the size of the TextButton\n *\n * @default TextButtonSize.BodyMd\n */\n size?: TextButtonSize;\n /**\n * Optional props to be passed to the Text component when children is a string\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop to specify an icon to show at the start of the button\n */\n startIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the start icon\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the start of the button\n */\n startAccessory?: React.ReactNode;\n /**\n * Optional prop to specify an icon to show at the end of the button\n */\n endIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the end icon\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the end of the button\n */\n endAccessory?: React.ReactNode;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.\n *\n * @default false\n */\n isInverse?: 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} & Omit<PressableProps, 'disabled'>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,9 +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.TextButton = exports.TextButtonSize = void 0;
|
|
4
|
+
var types_1 = require("../../types");
|
|
5
|
+
Object.defineProperty(exports, "TextButtonSize", { enumerable: true, get: function () { return types_1.TextButtonSize; } });
|
|
7
6
|
var TextButton_1 = require("./TextButton");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6C;AAApC,uGAAA,cAAc,OAAA;AACvB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { TextButtonSize } from '../../types';\nexport { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton.types';\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export { AvatarAccount, AvatarAccountVariant, AvatarAccountSize, } from './AvatarAccount';
|
|
2
|
+
export type { AvatarAccountProps } from './AvatarAccount';
|
|
3
|
+
export { AvatarBase, AvatarBaseSize } from './AvatarBase';
|
|
4
|
+
export type { AvatarBaseProps } from './AvatarBase';
|
|
5
|
+
export { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';
|
|
6
|
+
export type { AvatarFaviconProps } from './AvatarFavicon';
|
|
7
|
+
export { AvatarGroup, AvatarGroupSize, AvatarGroupVariant, } from './AvatarGroup';
|
|
8
|
+
export type { AvatarGroupProps } from './AvatarGroup';
|
|
9
|
+
export { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';
|
|
10
|
+
export type { AvatarIconProps } from './AvatarIcon';
|
|
11
|
+
export { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';
|
|
12
|
+
export type { AvatarNetworkProps } from './AvatarNetwork';
|
|
13
|
+
export { AvatarToken, AvatarTokenSize } from './AvatarToken';
|
|
14
|
+
export type { AvatarTokenProps } from './AvatarToken';
|
|
15
|
+
export { BadgeCount, BadgeCountSize } from './BadgeCount';
|
|
16
|
+
export type { BadgeCountProps } from './BadgeCount';
|
|
17
|
+
export { BadgeIcon } from './BadgeIcon';
|
|
18
|
+
export type { BadgeIconProps } from './BadgeIcon';
|
|
19
|
+
export { BadgeNetwork } from './BadgeNetwork';
|
|
20
|
+
export type { BadgeNetworkProps } from './BadgeNetwork';
|
|
21
|
+
export { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';
|
|
22
|
+
export type { BadgeStatusProps } from './BadgeStatus';
|
|
23
|
+
export { BadgeWrapper, BadgeWrapperPosition, BadgeWrapperPositionAnchorShape, } from './BadgeWrapper';
|
|
24
|
+
export type { BadgeWrapperProps, BadgeWrapperCustomPosition, } from './BadgeWrapper';
|
|
25
|
+
export { Blockies } from './temp-components/Blockies';
|
|
26
|
+
export type { BlockiesProps } from './temp-components/Blockies';
|
|
27
|
+
export { ButtonAnimated } from './temp-components/ButtonAnimated';
|
|
28
|
+
export type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';
|
|
29
|
+
export { ButtonBase, ButtonBaseSize } from './ButtonBase';
|
|
30
|
+
export type { ButtonBaseProps } from './ButtonBase';
|
|
31
|
+
export { Button, ButtonSize, ButtonVariant } from './Button';
|
|
32
|
+
export type { ButtonProps } from './Button';
|
|
33
|
+
export { ButtonIcon, ButtonIconSize } from './ButtonIcon';
|
|
34
|
+
export type { ButtonIconProps } from './ButtonIcon';
|
|
35
|
+
export { Checkbox } from './Checkbox';
|
|
36
|
+
export type { CheckboxProps } from './Checkbox';
|
|
37
|
+
export { Icon, IconColor, IconName, IconSize } from './Icon';
|
|
38
|
+
export type { IconProps } from './Icon';
|
|
39
|
+
export { Jazzicon } from './temp-components/Jazzicon';
|
|
40
|
+
export type { JazziconProps } from './temp-components/Jazzicon';
|
|
41
|
+
export { Maskicon } from './temp-components/Maskicon';
|
|
42
|
+
export type { MaskiconProps } from './temp-components/Maskicon';
|
|
43
|
+
export { TextButton } from './TextButton';
|
|
44
|
+
export type { TextButtonProps } from './TextButton';
|
|
45
|
+
export { Text, FontWeight, FontFamily, FontStyle, TextColor, TextVariant, } from './Text';
|
|
46
|
+
export type { TextProps } from './Text';
|
|
47
|
+
export { TextOrChildren } from './temp-components/TextOrChildren';
|
|
48
|
+
export type { TextOrChildrenProps } from './temp-components/TextOrChildren';
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,c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S,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextVariant = exports.TextColor = exports.FontStyle = exports.FontFamily = exports.FontWeight = exports.Text = exports.TextButton = exports.Maskicon = exports.Jazzicon = exports.IconSize = exports.IconName = exports.IconColor = exports.Icon = exports.Checkbox = exports.ButtonIconSize = exports.ButtonIcon = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonBaseSize = exports.ButtonBase = exports.ButtonAnimated = exports.Blockies = exports.BadgeWrapperPositionAnchorShape = exports.BadgeWrapperPosition = exports.BadgeWrapper = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeStatus = exports.BadgeNetwork = exports.BadgeIcon = exports.BadgeCountSize = exports.BadgeCount = exports.AvatarTokenSize = exports.AvatarToken = exports.AvatarNetworkSize = exports.AvatarNetwork = exports.AvatarIconSize = exports.AvatarIconSeverity = exports.AvatarIcon = exports.AvatarGroupVariant = exports.AvatarGroupSize = exports.AvatarGroup = exports.AvatarFaviconSize = exports.AvatarFavicon = exports.AvatarBaseSize = exports.AvatarBase = exports.AvatarAccountSize = exports.AvatarAccountVariant = exports.AvatarAccount = void 0;
|
|
4
|
+
exports.TextOrChildren = void 0;
|
|
5
|
+
var AvatarAccount_1 = require("./AvatarAccount");
|
|
6
|
+
Object.defineProperty(exports, "AvatarAccount", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccount; } });
|
|
7
|
+
Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountVariant; } });
|
|
8
|
+
Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountSize; } });
|
|
9
|
+
var AvatarBase_1 = require("./AvatarBase");
|
|
10
|
+
Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return AvatarBase_1.AvatarBase; } });
|
|
11
|
+
Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseSize; } });
|
|
12
|
+
var AvatarFavicon_1 = require("./AvatarFavicon");
|
|
13
|
+
Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFavicon; } });
|
|
14
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFaviconSize; } });
|
|
15
|
+
var AvatarGroup_1 = require("./AvatarGroup");
|
|
16
|
+
Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroup; } });
|
|
17
|
+
Object.defineProperty(exports, "AvatarGroupSize", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroupSize; } });
|
|
18
|
+
Object.defineProperty(exports, "AvatarGroupVariant", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroupVariant; } });
|
|
19
|
+
var AvatarIcon_1 = require("./AvatarIcon");
|
|
20
|
+
Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIcon; } });
|
|
21
|
+
Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIconSeverity; } });
|
|
22
|
+
Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIconSize; } });
|
|
23
|
+
var AvatarNetwork_1 = require("./AvatarNetwork");
|
|
24
|
+
Object.defineProperty(exports, "AvatarNetwork", { enumerable: true, get: function () { return AvatarNetwork_1.AvatarNetwork; } });
|
|
25
|
+
Object.defineProperty(exports, "AvatarNetworkSize", { enumerable: true, get: function () { return AvatarNetwork_1.AvatarNetworkSize; } });
|
|
26
|
+
var AvatarToken_1 = require("./AvatarToken");
|
|
27
|
+
Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return AvatarToken_1.AvatarToken; } });
|
|
28
|
+
Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return AvatarToken_1.AvatarTokenSize; } });
|
|
29
|
+
var BadgeCount_1 = require("./BadgeCount");
|
|
30
|
+
Object.defineProperty(exports, "BadgeCount", { enumerable: true, get: function () { return BadgeCount_1.BadgeCount; } });
|
|
31
|
+
Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return BadgeCount_1.BadgeCountSize; } });
|
|
32
|
+
var BadgeIcon_1 = require("./BadgeIcon");
|
|
33
|
+
Object.defineProperty(exports, "BadgeIcon", { enumerable: true, get: function () { return BadgeIcon_1.BadgeIcon; } });
|
|
34
|
+
var BadgeNetwork_1 = require("./BadgeNetwork");
|
|
35
|
+
Object.defineProperty(exports, "BadgeNetwork", { enumerable: true, get: function () { return BadgeNetwork_1.BadgeNetwork; } });
|
|
36
|
+
var BadgeStatus_1 = require("./BadgeStatus");
|
|
37
|
+
Object.defineProperty(exports, "BadgeStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatus; } });
|
|
38
|
+
Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusStatus; } });
|
|
39
|
+
Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusSize; } });
|
|
40
|
+
var BadgeWrapper_1 = require("./BadgeWrapper");
|
|
41
|
+
Object.defineProperty(exports, "BadgeWrapper", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapper; } });
|
|
42
|
+
Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPosition; } });
|
|
43
|
+
Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPositionAnchorShape; } });
|
|
44
|
+
var Blockies_1 = require("./temp-components/Blockies");
|
|
45
|
+
Object.defineProperty(exports, "Blockies", { enumerable: true, get: function () { return Blockies_1.Blockies; } });
|
|
46
|
+
var ButtonAnimated_1 = require("./temp-components/ButtonAnimated");
|
|
47
|
+
Object.defineProperty(exports, "ButtonAnimated", { enumerable: true, get: function () { return ButtonAnimated_1.ButtonAnimated; } });
|
|
48
|
+
var ButtonBase_1 = require("./ButtonBase");
|
|
49
|
+
Object.defineProperty(exports, "ButtonBase", { enumerable: true, get: function () { return ButtonBase_1.ButtonBase; } });
|
|
50
|
+
Object.defineProperty(exports, "ButtonBaseSize", { enumerable: true, get: function () { return ButtonBase_1.ButtonBaseSize; } });
|
|
51
|
+
var Button_1 = require("./Button");
|
|
52
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
53
|
+
Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return Button_1.ButtonSize; } });
|
|
54
|
+
Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return Button_1.ButtonVariant; } });
|
|
55
|
+
var ButtonIcon_1 = require("./ButtonIcon");
|
|
56
|
+
Object.defineProperty(exports, "ButtonIcon", { enumerable: true, get: function () { return ButtonIcon_1.ButtonIcon; } });
|
|
57
|
+
Object.defineProperty(exports, "ButtonIconSize", { enumerable: true, get: function () { return ButtonIcon_1.ButtonIconSize; } });
|
|
58
|
+
var Checkbox_1 = require("./Checkbox");
|
|
59
|
+
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
60
|
+
var Icon_1 = require("./Icon");
|
|
61
|
+
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
|
|
62
|
+
Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return Icon_1.IconColor; } });
|
|
63
|
+
Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return Icon_1.IconName; } });
|
|
64
|
+
Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return Icon_1.IconSize; } });
|
|
65
|
+
var Jazzicon_1 = require("./temp-components/Jazzicon");
|
|
66
|
+
Object.defineProperty(exports, "Jazzicon", { enumerable: true, get: function () { return Jazzicon_1.Jazzicon; } });
|
|
67
|
+
var Maskicon_1 = require("./temp-components/Maskicon");
|
|
68
|
+
Object.defineProperty(exports, "Maskicon", { enumerable: true, get: function () { return Maskicon_1.Maskicon; } });
|
|
69
|
+
var TextButton_1 = require("./TextButton");
|
|
70
|
+
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
|
|
71
|
+
var Text_1 = require("./Text");
|
|
72
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
73
|
+
Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_1.FontWeight; } });
|
|
74
|
+
Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_1.FontFamily; } });
|
|
75
|
+
Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_1.FontStyle; } });
|
|
76
|
+
Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_1.TextColor; } });
|
|
77
|
+
Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return Text_1.TextVariant; } });
|
|
78
|
+
var TextOrChildren_1 = require("./temp-components/TextOrChildren");
|
|
79
|
+
Object.defineProperty(exports, "TextOrChildren", { enumerable: true, get: function () { return TextOrChildren_1.TextOrChildren; } });
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iDAIyB;AAHvB,8GAAA,aAAa,OAAA;AACb,qHAAA,oBAAoB,OAAA;AACpB,kHAAA,iBAAiB,OAAA;AAInB,2CAA0D;AAAjD,wGAAA,UAAU,OAAA;AAAE,4GAAA,cAAc,OAAA;AAGnC,iDAAm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,OAAA;AAGjB,uDAAsD;AAA7C,oGAAA,QAAQ,OAAA;AAGjB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAGnB,+BAOgB;AANd,4FAAA,IAAI,OAAA;AACJ,kGAAA,UAAU,OAAA;AACV,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,iGAAA,SAAS,OAAA;AACT,mGAAA,WAAW,OAAA;AAIb,mEAAkE;AAAzD,gHAAA,cAAc,OAAA","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon';\n\nexport {\n AvatarGroup,\n AvatarGroupSize,\n AvatarGroupVariant,\n} from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork';\n\nexport { AvatarToken, AvatarTokenSize } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken';\n\nexport { BadgeCount, BadgeCountSize } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount';\n\nexport { BadgeIcon } from './BadgeIcon';\nexport type { BadgeIconProps } from './BadgeIcon';\n\nexport { BadgeNetwork } from './BadgeNetwork';\nexport type { BadgeNetworkProps } from './BadgeNetwork';\n\nexport { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus';\n\nexport {\n BadgeWrapper,\n BadgeWrapperPosition,\n BadgeWrapperPositionAnchorShape,\n} from './BadgeWrapper';\nexport type {\n BadgeWrapperProps,\n BadgeWrapperCustomPosition,\n} from './BadgeWrapper';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport { ButtonAnimated } from './temp-components/ButtonAnimated';\nexport type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';\n\nexport { ButtonBase, ButtonBaseSize } from './ButtonBase';\nexport type { ButtonBaseProps } from './ButtonBase';\n\nexport { Button, ButtonSize, ButtonVariant } from './Button';\nexport type { ButtonProps } from './Button';\n\nexport { ButtonIcon, ButtonIconSize } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon';\n\nexport { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox';\n\nexport { Icon, IconColor, IconName, IconSize } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Jazzicon } from './temp-components/Jazzicon';\nexport type { JazziconProps } from './temp-components/Jazzicon';\n\nexport { Maskicon } from './temp-components/Maskicon';\nexport type { MaskiconProps } from './temp-components/Maskicon';\n\nexport { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton';\n\nexport {\n Text,\n FontWeight,\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from './Text';\nexport type { TextProps } from './Text';\n\nexport { TextOrChildren } from './temp-components/TextOrChildren';\nexport type { TextOrChildrenProps } from './temp-components/TextOrChildren';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,gCAAsC,aAAa,sBASvE,CAAC"}
|
|
@@ -3,13 +3,12 @@ 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.Blockies = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const react_native_1 = require("react-native");
|
|
9
|
-
// @ts-ignore
|
|
10
9
|
const Blockies_utilities_1 = require("./Blockies.utilities");
|
|
11
10
|
const Blockies = ({ address, size = 32, ...props }) => {
|
|
12
11
|
return (<react_native_1.Image source={{ uri: (0, Blockies_utilities_1.toDataUrl)(address) }} width={size} height={size} {...props}/>);
|
|
13
12
|
};
|
|
14
|
-
exports.
|
|
13
|
+
exports.Blockies = Blockies;
|
|
15
14
|
//# sourceMappingURL=Blockies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAqC;AAIrC,6DAAiD;AAE1C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,IAAA,8BAAS,EAAC,OAAO,CAAC,EAAE,CAAC,CACpC,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,MAAM,CAAC,CAAC,IAAI,CAAC,CACb,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB","sourcesContent":["import React from 'react';\nimport { Image } from 'react-native';\n\n// @ts-ignore\nimport type { BlockiesProps } from './Blockies.types';\nimport { toDataUrl } from './Blockies.utilities';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n return (\n <Image\n source={{ uri: toDataUrl(address) }}\n width={size}\n height={size}\n {...props}\n />\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImageProps } from 'react-native';\n\n/**\n * Blockies component props.\n */\nexport type BlockiesProps = {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n} & Omit<ImageProps, 'source' | 'width' | 'height'>;\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A handy class to calculate color values and generate PNG images.
|
|
3
|
+
*
|
|
4
|
+
* @version 1.0.0
|
|
5
|
+
* @author Robert Eisele <robert@xarg.org>
|
|
6
|
+
* @copyright Copyright (c) 2010, Robert Eisele
|
|
7
|
+
* @see {@link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/}
|
|
8
|
+
* @license BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Utility class with the single responsibility
|
|
12
|
+
* of caching Blockies Data URIs
|
|
13
|
+
*/
|
|
14
|
+
export declare class Blockies {
|
|
15
|
+
static cache: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Generate a Blockies data URL for a given address
|
|
19
|
+
*
|
|
20
|
+
* @param address The address to generate a Blockies for
|
|
21
|
+
* @returns A data URL string containing the Blockies image
|
|
22
|
+
*/
|
|
23
|
+
export declare function toDataUrl(address: string): string;
|
|
24
|
+
//# sourceMappingURL=Blockies.utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAqjBH;;;GAGG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;CAC3C;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAuCjD"}
|