@metamask/design-system-react-native 0.6.0 → 0.7.0
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/CHANGELOG.md +34 -1
- package/dist/components/AvatarBase/AvatarBase.cjs +9 -11
- package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.mjs +9 -11
- package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.cts +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.mts +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.cjs +4 -5
- package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.mjs +4 -5
- package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.cjs +5 -6
- package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.mjs +5 -6
- package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.cts +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.mts +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
- package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.cts +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.mts +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
- package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.cjs +5 -10
- package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.mjs +5 -10
- package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.cjs +5 -10
- package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.mjs +5 -10
- package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.cjs +5 -5
- package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.mjs +5 -5
- package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.cjs +3 -3
- package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.mjs +3 -3
- package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +51 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs +7 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts +3 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts +3 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs +4 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts +4 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts +4 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +31 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs +3 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +20 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +20 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs +2 -0
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs.map +1 -0
- package/dist/components/BottomSheetOverlay/index.cjs +6 -0
- package/dist/components/BottomSheetOverlay/index.cjs.map +1 -0
- package/dist/components/BottomSheetOverlay/index.d.cts +3 -0
- package/dist/components/BottomSheetOverlay/index.d.cts.map +1 -0
- package/dist/components/BottomSheetOverlay/index.d.mts +3 -0
- package/dist/components/BottomSheetOverlay/index.d.mts.map +1 -0
- package/dist/components/BottomSheetOverlay/index.mjs +2 -0
- package/dist/components/BottomSheetOverlay/index.mjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.cjs +35 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.cts +4 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.cts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.mts +4 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.mts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.mjs +35 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.cjs +12 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.cjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.cts +41 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.mts +41 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.mjs +9 -0
- package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.mjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.cjs +8 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.cjs.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.d.cts +4 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.d.cts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.d.mts +4 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.d.mts.map +1 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.mjs +3 -0
- package/dist/components/BottomSheets/BottomSheetFooter/index.mjs.map +1 -0
- package/dist/components/Box/Box.cjs +12 -27
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.d.cts.map +1 -1
- package/dist/components/Box/Box.d.mts.map +1 -1
- package/dist/components/Box/Box.mjs +12 -27
- package/dist/components/Box/Box.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +50 -41
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +50 -41
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.cjs +5 -10
- package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.mjs +5 -10
- package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
- package/dist/components/Card/Card.cjs +26 -0
- package/dist/components/Card/Card.cjs.map +1 -0
- package/dist/components/Card/Card.d.cts +4 -0
- package/dist/components/Card/Card.d.cts.map +1 -0
- package/dist/components/Card/Card.d.mts +4 -0
- package/dist/components/Card/Card.d.mts.map +1 -0
- package/dist/components/Card/Card.mjs +26 -0
- package/dist/components/Card/Card.mjs.map +1 -0
- package/dist/components/Card/Card.types.cjs +3 -0
- package/dist/components/Card/Card.types.cjs.map +1 -0
- package/dist/components/Card/Card.types.d.cts +25 -0
- package/dist/components/Card/Card.types.d.cts.map +1 -0
- package/dist/components/Card/Card.types.d.mts +25 -0
- package/dist/components/Card/Card.types.d.mts.map +1 -0
- package/dist/components/Card/Card.types.mjs +2 -0
- package/dist/components/Card/Card.types.mjs.map +1 -0
- package/dist/components/Card/index.cjs +6 -0
- package/dist/components/Card/index.cjs.map +1 -0
- package/dist/components/Card/index.d.cts +3 -0
- package/dist/components/Card/index.d.cts.map +1 -0
- package/dist/components/Card/index.d.mts +3 -0
- package/dist/components/Card/index.d.mts.map +1 -0
- package/dist/components/Card/index.mjs +2 -0
- package/dist/components/Card/index.mjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +4 -4
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +4 -4
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/HeaderBase/HeaderBase.cjs +123 -0
- package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.d.cts +4 -0
- package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.d.mts +4 -0
- package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.mjs +103 -0
- package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.types.cjs +3 -0
- package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.types.d.cts +71 -0
- package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.types.d.mts +71 -0
- package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -0
- package/dist/components/HeaderBase/HeaderBase.types.mjs +2 -0
- package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -0
- package/dist/components/HeaderBase/index.cjs +6 -0
- package/dist/components/HeaderBase/index.cjs.map +1 -0
- package/dist/components/HeaderBase/index.d.cts +3 -0
- package/dist/components/HeaderBase/index.d.cts.map +1 -0
- package/dist/components/HeaderBase/index.d.mts +3 -0
- package/dist/components/HeaderBase/index.d.mts.map +1 -0
- package/dist/components/HeaderBase/index.mjs +2 -0
- package/dist/components/HeaderBase/index.mjs.map +1 -0
- package/dist/components/Icon/Icon.assets.cjs +2 -0
- package/dist/components/Icon/Icon.assets.cjs.map +1 -1
- package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
- package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
- package/dist/components/Icon/Icon.assets.mjs +2 -0
- package/dist/components/Icon/Icon.assets.mjs.map +1 -1
- package/dist/components/Icon/Icon.cjs +4 -32
- package/dist/components/Icon/Icon.cjs.map +1 -1
- package/dist/components/Icon/Icon.d.cts.map +1 -1
- package/dist/components/Icon/Icon.d.mts.map +1 -1
- package/dist/components/Icon/Icon.mjs +2 -10
- package/dist/components/Icon/Icon.mjs.map +1 -1
- package/dist/components/Icon/assets/corporate-fare.svg +1 -0
- package/dist/components/Input/Input.cjs +53 -0
- package/dist/components/Input/Input.cjs.map +1 -0
- package/dist/components/Input/Input.d.cts +10 -0
- package/dist/components/Input/Input.d.cts.map +1 -0
- package/dist/components/Input/Input.d.mts +10 -0
- package/dist/components/Input/Input.d.mts.map +1 -0
- package/dist/components/Input/Input.mjs +50 -0
- package/dist/components/Input/Input.mjs.map +1 -0
- package/dist/components/Input/Input.types.cjs +3 -0
- package/dist/components/Input/Input.types.cjs.map +1 -0
- package/dist/components/Input/Input.types.d.cts +33 -0
- package/dist/components/Input/Input.types.d.cts.map +1 -0
- package/dist/components/Input/Input.types.d.mts +33 -0
- package/dist/components/Input/Input.types.d.mts.map +1 -0
- package/dist/components/Input/Input.types.mjs +2 -0
- package/dist/components/Input/Input.types.mjs.map +1 -0
- package/dist/components/Input/index.cjs +6 -0
- package/dist/components/Input/index.cjs.map +1 -0
- package/dist/components/Input/index.d.cts +3 -0
- package/dist/components/Input/index.d.cts.map +1 -0
- package/dist/components/Input/index.d.mts +3 -0
- package/dist/components/Input/index.d.mts.map +1 -0
- package/dist/components/Input/index.mjs +2 -0
- package/dist/components/Input/index.mjs.map +1 -0
- package/dist/components/Label/Label.cjs +11 -0
- package/dist/components/Label/Label.cjs.map +1 -0
- package/dist/components/Label/Label.d.cts +4 -0
- package/dist/components/Label/Label.d.cts.map +1 -0
- package/dist/components/Label/Label.d.mts +4 -0
- package/dist/components/Label/Label.d.mts.map +1 -0
- package/dist/components/Label/Label.mjs +11 -0
- package/dist/components/Label/Label.mjs.map +1 -0
- package/dist/components/Label/Label.types.cjs +3 -0
- package/dist/components/Label/Label.types.cjs.map +1 -0
- package/dist/components/Label/Label.types.d.cts +9 -0
- package/dist/components/Label/Label.types.d.cts.map +1 -0
- package/dist/components/Label/Label.types.d.mts +9 -0
- package/dist/components/Label/Label.types.d.mts.map +1 -0
- package/dist/components/Label/Label.types.mjs +2 -0
- package/dist/components/Label/Label.types.mjs.map +1 -0
- package/dist/components/Label/index.cjs +6 -0
- package/dist/components/Label/index.cjs.map +1 -0
- package/dist/components/Label/index.d.cts +3 -0
- package/dist/components/Label/index.d.cts.map +1 -0
- package/dist/components/Label/index.d.mts +3 -0
- package/dist/components/Label/index.d.mts.map +1 -0
- package/dist/components/Label/index.mjs +2 -0
- package/dist/components/Label/index.mjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.cjs +86 -0
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.cts +5 -0
- package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.mts +5 -0
- package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.mjs +68 -0
- package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.types.cjs +3 -0
- package/dist/components/Skeleton/Skeleton.types.cjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.types.d.cts +51 -0
- package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.types.d.mts +51 -0
- package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.types.mjs +2 -0
- package/dist/components/Skeleton/Skeleton.types.mjs.map +1 -0
- package/dist/components/Skeleton/index.cjs +9 -0
- package/dist/components/Skeleton/index.cjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +3 -0
- package/dist/components/Skeleton/index.d.cts.map +1 -0
- package/dist/components/Skeleton/index.d.mts +3 -0
- package/dist/components/Skeleton/index.d.mts.map +1 -0
- package/dist/components/Skeleton/index.mjs +2 -0
- package/dist/components/Skeleton/index.mjs.map +1 -0
- package/dist/components/Text/Text.cjs +9 -14
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts.map +1 -1
- package/dist/components/Text/Text.mjs +10 -15
- package/dist/components/Text/Text.mjs.map +1 -1
- package/dist/components/Toast/Toast.cjs +174 -0
- package/dist/components/Toast/Toast.cjs.map +1 -0
- package/dist/components/Toast/Toast.constants.cjs +12 -0
- package/dist/components/Toast/Toast.constants.cjs.map +1 -0
- package/dist/components/Toast/Toast.constants.d.cts +8 -0
- package/dist/components/Toast/Toast.constants.d.cts.map +1 -0
- package/dist/components/Toast/Toast.constants.d.mts +8 -0
- package/dist/components/Toast/Toast.constants.d.mts.map +1 -0
- package/dist/components/Toast/Toast.constants.mjs +9 -0
- package/dist/components/Toast/Toast.constants.mjs.map +1 -0
- package/dist/components/Toast/Toast.context.cjs +40 -0
- package/dist/components/Toast/Toast.context.cjs.map +1 -0
- package/dist/components/Toast/Toast.context.d.cts +7 -0
- package/dist/components/Toast/Toast.context.d.cts.map +1 -0
- package/dist/components/Toast/Toast.context.d.mts +7 -0
- package/dist/components/Toast/Toast.context.d.mts.map +1 -0
- package/dist/components/Toast/Toast.context.mjs +20 -0
- package/dist/components/Toast/Toast.context.mjs.map +1 -0
- package/dist/components/Toast/Toast.d.cts +8 -0
- package/dist/components/Toast/Toast.d.cts.map +1 -0
- package/dist/components/Toast/Toast.d.mts +8 -0
- package/dist/components/Toast/Toast.d.mts.map +1 -0
- package/dist/components/Toast/Toast.mjs +156 -0
- package/dist/components/Toast/Toast.mjs.map +1 -0
- package/dist/components/Toast/Toast.types.cjs +19 -0
- package/dist/components/Toast/Toast.types.cjs.map +1 -0
- package/dist/components/Toast/Toast.types.d.cts +123 -0
- package/dist/components/Toast/Toast.types.d.cts.map +1 -0
- package/dist/components/Toast/Toast.types.d.mts +123 -0
- package/dist/components/Toast/Toast.types.d.mts.map +1 -0
- package/dist/components/Toast/Toast.types.mjs +16 -0
- package/dist/components/Toast/Toast.types.mjs.map +1 -0
- package/dist/components/Toast/index.cjs +19 -0
- package/dist/components/Toast/index.cjs.map +1 -0
- package/dist/components/Toast/index.d.cts +6 -0
- package/dist/components/Toast/index.d.cts.map +1 -0
- package/dist/components/Toast/index.d.mts +6 -0
- package/dist/components/Toast/index.d.mts.map +1 -0
- package/dist/components/Toast/index.mjs +5 -0
- package/dist/components/Toast/index.mjs.map +1 -0
- package/dist/components/index.cjs +21 -2
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +16 -0
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +16 -0
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +8 -0
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +17 -9
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +17 -6
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
- package/dist/components/temp-components/Spinner/Spinner.cjs +2 -2
- package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
- package/dist/components/temp-components/Spinner/Spinner.d.cts.map +1 -1
- package/dist/components/temp-components/Spinner/Spinner.d.mts.map +1 -1
- package/dist/components/temp-components/Spinner/Spinner.mjs +2 -2
- package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
- package/dist/types/index.cjs +18 -17
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +18 -17
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +18 -17
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +18 -17
- package/dist/types/index.mjs.map +1 -1
- package/package.json +13 -9
- package/dist/components/Icon/Icon.utilities.cjs +0 -31
- package/dist/components/Icon/Icon.utilities.cjs.map +0 -1
- package/dist/components/Icon/Icon.utilities.d.cts +0 -22
- package/dist/components/Icon/Icon.utilities.d.cts.map +0 -1
- package/dist/components/Icon/Icon.utilities.d.mts +0 -22
- package/dist/components/Icon/Icon.utilities.d.mts.map +0 -1
- package/dist/components/Icon/Icon.utilities.mjs +0 -27
- package/dist/components/Icon/Icon.utilities.mjs.map +0 -1
- package/dist/components/Text/Text.utilities.cjs +0 -46
- package/dist/components/Text/Text.utilities.cjs.map +0 -1
- package/dist/components/Text/Text.utilities.d.cts +0 -32
- package/dist/components/Text/Text.utilities.d.cts.map +0 -1
- package/dist/components/Text/Text.utilities.d.mts +0 -32
- package/dist/components/Text/Text.utilities.d.mts.map +0 -1
- package/dist/components/Text/Text.utilities.mjs +0 -42
- package/dist/components/Text/Text.utilities.mjs.map +0 -1
|
@@ -22,10 +22,16 @@ export { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from "./BadgeStatus/i
|
|
|
22
22
|
export type { BadgeStatusProps } from "./BadgeStatus/index.mjs";
|
|
23
23
|
export { BadgeWrapper, BadgeWrapperPosition, BadgeWrapperPositionAnchorShape, } from "./BadgeWrapper/index.mjs";
|
|
24
24
|
export type { BadgeWrapperProps, BadgeWrapperCustomPosition, } from "./BadgeWrapper/index.mjs";
|
|
25
|
+
export { BottomSheetFooter, ButtonsAlignment, } from "./BottomSheets/BottomSheetFooter/index.mjs";
|
|
26
|
+
export type { BottomSheetFooterProps, BottomSheetFooterButtonProps, } from "./BottomSheets/BottomSheetFooter/index.mjs";
|
|
27
|
+
export { BottomSheetOverlay } from "./BottomSheetOverlay/index.mjs";
|
|
28
|
+
export type { BottomSheetOverlayProps } from "./BottomSheetOverlay/index.mjs";
|
|
25
29
|
export { Blockies } from "./temp-components/Blockies/index.mjs";
|
|
26
30
|
export type { BlockiesProps } from "./temp-components/Blockies/index.mjs";
|
|
27
31
|
export { Box, BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, } from "./Box/index.mjs";
|
|
28
32
|
export type { BoxProps, BoxSpacing } from "./Box/index.mjs";
|
|
33
|
+
export { Card } from "./Card/index.mjs";
|
|
34
|
+
export type { CardProps } from "./Card/index.mjs";
|
|
29
35
|
export { ButtonAnimated } from "./temp-components/ButtonAnimated/index.mjs";
|
|
30
36
|
export type { ButtonAnimatedProps } from "./temp-components/ButtonAnimated/index.mjs";
|
|
31
37
|
export { ButtonBase, ButtonBaseSize } from "./ButtonBase/index.mjs";
|
|
@@ -36,16 +42,26 @@ export { ButtonIcon, ButtonIconSize } from "./ButtonIcon/index.mjs";
|
|
|
36
42
|
export type { ButtonIconProps } from "./ButtonIcon/index.mjs";
|
|
37
43
|
export { Checkbox } from "./Checkbox/index.mjs";
|
|
38
44
|
export type { CheckboxProps } from "./Checkbox/index.mjs";
|
|
45
|
+
export { HeaderBase } from "./HeaderBase/index.mjs";
|
|
46
|
+
export type { HeaderBaseProps } from "./HeaderBase/index.mjs";
|
|
39
47
|
export { Icon, IconColor, IconName, IconSize } from "./Icon/index.mjs";
|
|
40
48
|
export type { IconProps } from "./Icon/index.mjs";
|
|
49
|
+
export { Input } from "./Input/index.mjs";
|
|
50
|
+
export type { InputProps } from "./Input/index.mjs";
|
|
51
|
+
export { Label } from "./Label/index.mjs";
|
|
52
|
+
export type { LabelProps } from "./Label/index.mjs";
|
|
41
53
|
export { Jazzicon } from "./temp-components/Jazzicon/index.mjs";
|
|
42
54
|
export type { JazziconProps } from "./temp-components/Jazzicon/index.mjs";
|
|
43
55
|
export { Maskicon } from "./temp-components/Maskicon/index.mjs";
|
|
44
56
|
export type { MaskiconProps } from "./temp-components/Maskicon/index.mjs";
|
|
57
|
+
export { Skeleton } from "./Skeleton/index.mjs";
|
|
58
|
+
export type { SkeletonProps } from "./Skeleton/index.mjs";
|
|
45
59
|
export { TextButton, TextButtonSize } from "./TextButton/index.mjs";
|
|
46
60
|
export type { TextButtonProps } from "./TextButton/index.mjs";
|
|
47
61
|
export { Text, FontWeight, FontFamily, FontStyle, TextColor, TextVariant, } from "./Text/index.mjs";
|
|
48
62
|
export type { TextProps } from "./Text/index.mjs";
|
|
49
63
|
export { TextOrChildren } from "./temp-components/TextOrChildren/index.mjs";
|
|
50
64
|
export type { TextOrChildrenProps } from "./temp-components/TextOrChildren/index.mjs";
|
|
65
|
+
export { Toast, ToastVariant, ToastContext } from "./Toast/index.mjs";
|
|
66
|
+
export type { ToastOptions, ToastRef, ToastContextParams, ToastLabelOptions, ToastDescriptionOptions, ToastLinkButtonOptions, ToastCloseButtonOptions, } from "./Toast/index.mjs";
|
|
51
67
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,kCAAwB;AACzB,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,+BAAqB;AAC3E,YAAY,EAAE,eAAe,EAAE,+BAAqB;AAEpD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AACnE,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,gCAAsB;AACvB,YAAY,EAAE,gBAAgB,EAAE,gCAAsB;AAEtD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAAqB;AAC9E,YAAY,EAAE,eAAe,EAAE,+BAAqB;AAEpD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AACnE,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gCAAsB;AAC7D,YAAY,EAAE,gBAAgB,EAAE,gCAAsB;AAEtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;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AAuB,EACvB,sBAAsB,EACtB,uBAAuB,GACxB,0BAAgB"}
|
|
@@ -10,17 +10,25 @@ export { BadgeIcon } from "./BadgeIcon/index.mjs";
|
|
|
10
10
|
export { BadgeNetwork } from "./BadgeNetwork/index.mjs";
|
|
11
11
|
export { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from "./BadgeStatus/index.mjs";
|
|
12
12
|
export { BadgeWrapper, BadgeWrapperPosition, BadgeWrapperPositionAnchorShape } from "./BadgeWrapper/index.mjs";
|
|
13
|
+
export { BottomSheetFooter, ButtonsAlignment } from "./BottomSheets/BottomSheetFooter/index.mjs";
|
|
14
|
+
export { BottomSheetOverlay } from "./BottomSheetOverlay/index.mjs";
|
|
13
15
|
export { Blockies } from "./temp-components/Blockies/index.mjs";
|
|
14
16
|
export { Box, BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "./Box/index.mjs";
|
|
17
|
+
export { Card } from "./Card/index.mjs";
|
|
15
18
|
export { ButtonAnimated } from "./temp-components/ButtonAnimated/index.mjs";
|
|
16
19
|
export { ButtonBase, ButtonBaseSize } from "./ButtonBase/index.mjs";
|
|
17
20
|
export { Button, ButtonSize, ButtonVariant } from "./Button/index.mjs";
|
|
18
21
|
export { ButtonIcon, ButtonIconSize } from "./ButtonIcon/index.mjs";
|
|
19
22
|
export { Checkbox } from "./Checkbox/index.mjs";
|
|
23
|
+
export { HeaderBase } from "./HeaderBase/index.mjs";
|
|
20
24
|
export { Icon, IconColor, IconName, IconSize } from "./Icon/index.mjs";
|
|
25
|
+
export { Input } from "./Input/index.mjs";
|
|
26
|
+
export { Label } from "./Label/index.mjs";
|
|
21
27
|
export { Jazzicon } from "./temp-components/Jazzicon/index.mjs";
|
|
22
28
|
export { Maskicon } from "./temp-components/Maskicon/index.mjs";
|
|
29
|
+
export { Skeleton } from "./Skeleton/index.mjs";
|
|
23
30
|
export { TextButton, TextButtonSize } from "./TextButton/index.mjs";
|
|
24
31
|
export { Text, FontWeight, FontFamily, FontStyle, TextColor, TextVariant } from "./Text/index.mjs";
|
|
25
32
|
export { TextOrChildren } from "./temp-components/TextOrChildren/index.mjs";
|
|
33
|
+
export { Toast, ToastVariant, ToastContext } from "./Toast/index.mjs";
|
|
26
34
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EAClB,kCAAwB;AAGzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,+BAAqB;AAG3E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EACnB,gCAAsB;AAGvB,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAAqB;AAG9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gCAAsB;AAG7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,SAAS,EAAE,8BAAoB;AAGxC,OAAO,EAAE,YAAY,EAAE,iCAAuB;AAG9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,gCAAsB;AAGhF,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,+BAA+B,EAChC,iCAAuB;AAMxB,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,wBAAc;AAGf,OAAO,EAAE,cAAc,EAAE,mDAAyC;AAGlE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,2BAAiB;AAG7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,yBAAe;AAG7D,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,yBAAe;AAGhB,OAAO,EAAE,cAAc,EAAE,mDAAyC","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } 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 {\n Box,\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from './Box';\nexport type { BoxProps, BoxSpacing } from './Box';\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, TextButtonSize } 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"]}
|
|
1
|
+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+BAAqB;AAG1D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EAAE,UAAU,EAAE,+BAAqB;AAG1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,yBAAe;AAG7D,OAAO,EAAE,KAAK,EAAE,0BAAgB;AAGhC,OAAO,EAAE,KAAK,EAAE,0BAAgB;AAGhC,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,yBAAe;AAGhB,OAAO,EAAE,cAAc,EAAE,mDAAyC;AAGlE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,0BAAgB","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } 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 {\n BottomSheetFooter,\n ButtonsAlignment,\n} from './BottomSheets/BottomSheetFooter';\nexport type {\n BottomSheetFooterProps,\n BottomSheetFooterButtonProps,\n} from './BottomSheets/BottomSheetFooter';\n\nexport { BottomSheetOverlay } from './BottomSheetOverlay';\nexport type { BottomSheetOverlayProps } from './BottomSheetOverlay';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport {\n Box,\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from './Box';\nexport type { BoxProps, BoxSpacing } from './Box';\n\nexport { Card } from './Card';\nexport type { CardProps } from './Card';\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 { HeaderBase } from './HeaderBase';\nexport type { HeaderBaseProps } from './HeaderBase';\n\nexport { Icon, IconColor, IconName, IconSize } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Input } from './Input';\nexport type { InputProps } from './Input';\n\nexport { Label } from './Label';\nexport type { LabelProps } from './Label';\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 { Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton';\n\nexport { TextButton, TextButtonSize } 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\nexport { Toast, ToastVariant, ToastContext } from './Toast';\nexport type {\n ToastOptions,\n ToastRef,\n ToastContextParams,\n ToastLabelOptions,\n ToastDescriptionOptions,\n ToastLinkButtonOptions,\n ToastCloseButtonOptions,\n} from './Toast';\n"]}
|
|
@@ -22,22 +22,22 @@ 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.ButtonAnimated = void 0;
|
|
30
|
-
const react_1 =
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
31
28
|
const react_native_1 = require("react-native/index.js");
|
|
32
29
|
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
33
|
-
const
|
|
30
|
+
const AnimatedPressable = react_native_reanimated_1.default.createAnimatedComponent(react_native_1.Pressable);
|
|
31
|
+
const ButtonAnimated = ({ onPressIn, onPressOut, disabled, style, children, ...props }) => {
|
|
32
|
+
const [isPressed, setIsPressed] = (0, react_1.useState)(false);
|
|
34
33
|
const animation = (0, react_native_reanimated_1.useSharedValue)(1);
|
|
35
|
-
const
|
|
34
|
+
const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
|
|
36
35
|
return {
|
|
37
36
|
transform: [{ scale: animation.value }],
|
|
38
37
|
};
|
|
39
38
|
});
|
|
40
39
|
const onPressInHandler = (event) => {
|
|
40
|
+
setIsPressed(true);
|
|
41
41
|
animation.value = (0, react_native_reanimated_1.withTiming)(0.97, {
|
|
42
42
|
duration: 100,
|
|
43
43
|
easing: react_native_reanimated_1.Easing.bezier(0.3, 0.8, 0.3, 1),
|
|
@@ -45,15 +45,23 @@ const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) => {
|
|
|
45
45
|
onPressIn?.(event);
|
|
46
46
|
};
|
|
47
47
|
const onPressOutHandler = (event) => {
|
|
48
|
+
setIsPressed(false);
|
|
48
49
|
animation.value = (0, react_native_reanimated_1.withTiming)(1, {
|
|
49
50
|
duration: 100,
|
|
50
51
|
easing: react_native_reanimated_1.Easing.bezier(0.3, 0.8, 0.3, 1),
|
|
51
52
|
});
|
|
52
53
|
onPressOut?.(event);
|
|
53
54
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
// Evaluate style function if needed
|
|
56
|
+
const evaluatedStyle = typeof style === 'function' ? style({ pressed: isPressed }) : style;
|
|
57
|
+
return (<AnimatedPressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} style={[
|
|
58
|
+
...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),
|
|
59
|
+
animatedStyle,
|
|
60
|
+
]} {...props}>
|
|
61
|
+
{typeof children === 'function'
|
|
62
|
+
? children({ pressed: isPressed })
|
|
63
|
+
: children}
|
|
64
|
+
</AnimatedPressable>);
|
|
57
65
|
};
|
|
58
66
|
exports.ButtonAnimated = ButtonAnimated;
|
|
59
67
|
//# sourceMappingURL=ButtonAnimated.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAnimated.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonAnimated.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,wDAAyC;AACzC,mFAKiC;AAIjC,MAAM,iBAAiB,GAAG,iCAAQ,CAAC,uBAAuB,CAAC,wBAAS,CAAC,CAAC;AAE/D,MAAM,cAAc,GAAG,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAEpC,MAAM,aAAa,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE;QAC1C,OAAO;YACL,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC;SACxC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,CAAC,KAAK,GAAG,IAAA,oCAAU,EAAC,IAAI,EAAE;YACjC,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,gCAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;SACxC,CAAC,CAAC;QACH,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,SAAS,CAAC,KAAK,GAAG,IAAA,oCAAU,EAAC,CAAC,EAAE;YAC9B,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,gCAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;SACxC,CAAC,CAAC;QACH,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,oCAAoC;IACpC,MAAM,cAAc,GAClB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEtE,OAAO,CACL,CAAC,iBAAiB,CAChB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,KAAK,CAAC,CAAC;YACL,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;YACtE,aAAa;SACd,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,OAAO,QAAQ,KAAK,UAAU;YAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAClC,CAAC,CAAC,QAAQ,CACd;IAAA,EAAE,iBAAiB,CAAC,CACrB,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,cAAc,kBAuDzB","sourcesContent":["import React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { Pressable } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n style,\n children,\n ...props\n}: ButtonAnimatedProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const animation = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n // Evaluate style function if needed\n const evaluatedStyle =\n typeof style === 'function' ? style({ pressed: isPressed }) : style;\n\n return (\n <AnimatedPressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n style={[\n ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),\n animatedStyle,\n ]}\n {...props}\n >\n {typeof children === 'function'\n ? children({ pressed: isPressed })\n : children}\n </AnimatedPressable>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ButtonAnimatedProps } from "./ButtonAnimated.types.cjs";
|
|
3
|
-
export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, ...props }: ButtonAnimatedProps) => React.JSX.Element;
|
|
3
|
+
export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, style, children, ...props }: ButtonAnimatedProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=ButtonAnimated.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAnimated.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ButtonAnimated.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAUxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAIlE,eAAO,MAAM,cAAc,mEAOxB,mBAAmB,sBAgDrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ButtonAnimatedProps } from "./ButtonAnimated.types.mjs";
|
|
3
|
-
export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, ...props }: ButtonAnimatedProps) => React.JSX.Element;
|
|
3
|
+
export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, style, children, ...props }: ButtonAnimatedProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=ButtonAnimated.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAnimated.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ButtonAnimated.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAUxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAIlE,eAAO,MAAM,cAAc,mEAOxB,mBAAmB,sBAgDrB,CAAC"}
|
|
@@ -4,18 +4,21 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
-
import $React from "react";
|
|
7
|
+
import $React, { useState } from "react";
|
|
8
8
|
const React = $importDefault($React);
|
|
9
9
|
import { Pressable } from "react-native/index.js";
|
|
10
10
|
import Animated, { useSharedValue, useAnimatedStyle, withTiming, Easing } from "react-native-reanimated";
|
|
11
|
-
|
|
11
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
12
|
+
export const ButtonAnimated = ({ onPressIn, onPressOut, disabled, style, children, ...props }) => {
|
|
13
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
12
14
|
const animation = useSharedValue(1);
|
|
13
|
-
const
|
|
15
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
14
16
|
return {
|
|
15
17
|
transform: [{ scale: animation.value }],
|
|
16
18
|
};
|
|
17
19
|
});
|
|
18
20
|
const onPressInHandler = (event) => {
|
|
21
|
+
setIsPressed(true);
|
|
19
22
|
animation.value = withTiming(0.97, {
|
|
20
23
|
duration: 100,
|
|
21
24
|
easing: Easing.bezier(0.3, 0.8, 0.3, 1),
|
|
@@ -23,14 +26,22 @@ export const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) =>
|
|
|
23
26
|
onPressIn?.(event);
|
|
24
27
|
};
|
|
25
28
|
const onPressOutHandler = (event) => {
|
|
29
|
+
setIsPressed(false);
|
|
26
30
|
animation.value = withTiming(1, {
|
|
27
31
|
duration: 100,
|
|
28
32
|
easing: Easing.bezier(0.3, 0.8, 0.3, 1),
|
|
29
33
|
});
|
|
30
34
|
onPressOut?.(event);
|
|
31
35
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
// Evaluate style function if needed
|
|
37
|
+
const evaluatedStyle = typeof style === 'function' ? style({ pressed: isPressed }) : style;
|
|
38
|
+
return (<AnimatedPressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} style={[
|
|
39
|
+
...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),
|
|
40
|
+
animatedStyle,
|
|
41
|
+
]} {...props}>
|
|
42
|
+
{typeof children === 'function'
|
|
43
|
+
? children({ pressed: isPressed })
|
|
44
|
+
: children}
|
|
45
|
+
</AnimatedPressable>);
|
|
35
46
|
};
|
|
36
47
|
//# sourceMappingURL=ButtonAnimated.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAnimated.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ButtonAnimated.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAExC,OAAO,EAAE,SAAS,EAAE,8BAAqB;AACzC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,MAAM,EACP,gCAAgC;AAIjC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAEpC,MAAM,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QAC1C,OAAO;YACL,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC;SACxC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE;YACjC,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;SACxC,CAAC,CAAC;QACH,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,EAAE;YAC9B,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;SACxC,CAAC,CAAC;QACH,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,oCAAoC;IACpC,MAAM,cAAc,GAClB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEtE,OAAO,CACL,CAAC,iBAAiB,CAChB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,KAAK,CAAC,CAAC;YACL,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;YACtE,aAAa;SACd,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,OAAO,QAAQ,KAAK,UAAU;YAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAClC,CAAC,CAAC,QAAQ,CACd;IAAA,EAAE,iBAAiB,CAAC,CACrB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { Pressable } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n style,\n children,\n ...props\n}: ButtonAnimatedProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const animation = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n // Evaluate style function if needed\n const evaluatedStyle =\n typeof style === 'function' ? style({ pressed: isPressed }) : style;\n\n return (\n <AnimatedPressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n style={[\n ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),\n animatedStyle,\n ]}\n {...props}\n >\n {typeof children === 'function'\n ? children({ pressed: isPressed })\n : children}\n </AnimatedPressable>\n );\n};\n"]}
|
|
@@ -30,7 +30,7 @@ const react_native_1 = require("react-native/index.js");
|
|
|
30
30
|
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
31
31
|
const Icon_1 = require("../../Icon/index.cjs");
|
|
32
32
|
const Text_1 = require("../../Text/index.cjs");
|
|
33
|
-
const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName
|
|
33
|
+
const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName, style, ...props }) => {
|
|
34
34
|
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
35
35
|
// Create a shared value for rotation
|
|
36
36
|
const rotation = (0, react_native_reanimated_1.useSharedValue)(0);
|
|
@@ -57,7 +57,7 @@ const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadi
|
|
|
57
57
|
testID: 'spinner-text',
|
|
58
58
|
...loadingTextProps,
|
|
59
59
|
};
|
|
60
|
-
return (<react_native_1.View style={[tw
|
|
60
|
+
return (<react_native_1.View {...props} style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}>
|
|
61
61
|
<react_native_reanimated_1.default.View style={[animatedStyle]} testID="spinner-animated-view">
|
|
62
62
|
<Icon_1.Icon {...finalSpinnerIconProps}/>
|
|
63
63
|
</react_native_reanimated_1.default.View>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAyC;AACzC,wDAAoC;AACpC,mFAMiC;AAGjC,+CAAiE;AAEjE,+CAA0D;AAInD,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,gBAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,
|
|
1
|
+
{"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAyC;AACzC,wDAAoC;AACpC,mFAMiC;AAGjC,+CAAiE;AAEjE,+CAA0D;AAInD,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,gBAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KA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a,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,WAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,OAAO,WAsDlB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,
|
|
1
|
+
{"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA8Cd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,
|
|
1
|
+
{"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA8Cd,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { View } from "react-native/index.js";
|
|
|
11
11
|
import Animated, { useSharedValue, useAnimatedStyle, withRepeat, withTiming, Easing } from "react-native-reanimated";
|
|
12
12
|
import { Icon, IconColor, IconName, IconSize } from "../../Icon/index.mjs";
|
|
13
13
|
import { Text, TextVariant, TextColor } from "../../Text/index.mjs";
|
|
14
|
-
export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName
|
|
14
|
+
export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName, style, ...props }) => {
|
|
15
15
|
const tw = useTailwind();
|
|
16
16
|
// Create a shared value for rotation
|
|
17
17
|
const rotation = useSharedValue(0);
|
|
@@ -38,7 +38,7 @@ export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadi
|
|
|
38
38
|
testID: 'spinner-text',
|
|
39
39
|
...loadingTextProps,
|
|
40
40
|
};
|
|
41
|
-
return (<View style={[tw
|
|
41
|
+
return (<View {...props} style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}>
|
|
42
42
|
<Animated.View style={[animatedStyle]} testID="spinner-animated-view">
|
|
43
43
|
<Icon {...finalSpinnerIconProps}/>
|
|
44
44
|
</Animated.View>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EAAE,SAAS,EAAE,cAAc;;AACzC,OAAO,EAAE,IAAI,EAAE,8BAAqB;AACpC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,MAAM,EACP,gCAAgC;AAGjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,6BAAmB;AAEjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,6BAAmB;AAI1D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAA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,KAAK,EAAE,CAAC;KACtD,CAAC,CAAC,CAAC;IAEJ,MAAM,qBAAqB,GAAc;QACvC,IAAI,EAAE,QAAQ,CAAC,EAAE;QACjB,IAAI,EAAE,QAAQ,CAAC,OAAO;QACtB,MAAM,EAAE,cAAc;QACtB,KAAK;QACL,GAAG,gBAAgB;KACpB,CAAC;IAEF,MAAM,qBAAqB,GAAuB;QAChD,OAAO,EAAE,WAAW,CAAC,MAAM;QAC3B,KAAK,EAAE,SAAS,CAAC,WAAW;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAEvE;MAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,QAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
|
package/dist/types/index.cjs
CHANGED
|
@@ -55,10 +55,10 @@ var AvatarAccountVariant;
|
|
|
55
55
|
*/
|
|
56
56
|
var AvatarGroupVariant;
|
|
57
57
|
(function (AvatarGroupVariant) {
|
|
58
|
-
AvatarGroupVariant["Account"] = "
|
|
59
|
-
AvatarGroupVariant["Favicon"] = "
|
|
60
|
-
AvatarGroupVariant["Network"] = "
|
|
61
|
-
AvatarGroupVariant["Token"] = "
|
|
58
|
+
AvatarGroupVariant["Account"] = "account";
|
|
59
|
+
AvatarGroupVariant["Favicon"] = "favicon";
|
|
60
|
+
AvatarGroupVariant["Network"] = "network";
|
|
61
|
+
AvatarGroupVariant["Token"] = "token";
|
|
62
62
|
})(AvatarGroupVariant || (exports.AvatarGroupVariant = AvatarGroupVariant = {}));
|
|
63
63
|
/**
|
|
64
64
|
* AvatarIcon - severity
|
|
@@ -80,11 +80,11 @@ var BadgeCountSize;
|
|
|
80
80
|
/**
|
|
81
81
|
* Represents a medium badge count (14px height).
|
|
82
82
|
*/
|
|
83
|
-
BadgeCountSize["Md"] = "
|
|
83
|
+
BadgeCountSize["Md"] = "md";
|
|
84
84
|
/**
|
|
85
85
|
* Represents a large badge count (20px height).
|
|
86
86
|
*/
|
|
87
|
-
BadgeCountSize["Lg"] = "
|
|
87
|
+
BadgeCountSize["Lg"] = "lg";
|
|
88
88
|
})(BadgeCountSize || (exports.BadgeCountSize = BadgeCountSize = {}));
|
|
89
89
|
/**
|
|
90
90
|
* BadgeStatus - status
|
|
@@ -105,29 +105,29 @@ var BadgeStatusSize;
|
|
|
105
105
|
/**
|
|
106
106
|
* Represents a medium badge status size (8px).
|
|
107
107
|
*/
|
|
108
|
-
BadgeStatusSize["Md"] = "
|
|
108
|
+
BadgeStatusSize["Md"] = "md";
|
|
109
109
|
/**
|
|
110
110
|
* Represents a large avatar size (10px).
|
|
111
111
|
*/
|
|
112
|
-
BadgeStatusSize["Lg"] = "
|
|
112
|
+
BadgeStatusSize["Lg"] = "lg";
|
|
113
113
|
})(BadgeStatusSize || (exports.BadgeStatusSize = BadgeStatusSize = {}));
|
|
114
114
|
/**
|
|
115
115
|
* BadgeWrapper - positionAnchorShape
|
|
116
116
|
*/
|
|
117
117
|
var BadgeWrapperPositionAnchorShape;
|
|
118
118
|
(function (BadgeWrapperPositionAnchorShape) {
|
|
119
|
-
BadgeWrapperPositionAnchorShape["Rectangular"] = "
|
|
120
|
-
BadgeWrapperPositionAnchorShape["Circular"] = "
|
|
119
|
+
BadgeWrapperPositionAnchorShape["Rectangular"] = "rectangular";
|
|
120
|
+
BadgeWrapperPositionAnchorShape["Circular"] = "circular";
|
|
121
121
|
})(BadgeWrapperPositionAnchorShape || (exports.BadgeWrapperPositionAnchorShape = BadgeWrapperPositionAnchorShape = {}));
|
|
122
122
|
/**
|
|
123
123
|
* BadgeWrapper - position.
|
|
124
124
|
*/
|
|
125
125
|
var BadgeWrapperPosition;
|
|
126
126
|
(function (BadgeWrapperPosition) {
|
|
127
|
-
BadgeWrapperPosition["TopRight"] = "
|
|
128
|
-
BadgeWrapperPosition["BottomRight"] = "
|
|
129
|
-
BadgeWrapperPosition["BottomLeft"] = "
|
|
130
|
-
BadgeWrapperPosition["TopLeft"] = "
|
|
127
|
+
BadgeWrapperPosition["TopRight"] = "top-right";
|
|
128
|
+
BadgeWrapperPosition["BottomRight"] = "bottom-right";
|
|
129
|
+
BadgeWrapperPosition["BottomLeft"] = "bottom-left";
|
|
130
|
+
BadgeWrapperPosition["TopLeft"] = "top-left";
|
|
131
131
|
})(BadgeWrapperPosition || (exports.BadgeWrapperPosition = BadgeWrapperPosition = {}));
|
|
132
132
|
/**
|
|
133
133
|
* Box - flexDirection
|
|
@@ -324,9 +324,9 @@ var ButtonBaseSize;
|
|
|
324
324
|
*/
|
|
325
325
|
var ButtonVariant;
|
|
326
326
|
(function (ButtonVariant) {
|
|
327
|
-
ButtonVariant["Primary"] = "
|
|
328
|
-
ButtonVariant["Secondary"] = "
|
|
329
|
-
ButtonVariant["Tertiary"] = "
|
|
327
|
+
ButtonVariant["Primary"] = "primary";
|
|
328
|
+
ButtonVariant["Secondary"] = "secondary";
|
|
329
|
+
ButtonVariant["Tertiary"] = "tertiary";
|
|
330
330
|
})(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
|
|
331
331
|
/**
|
|
332
332
|
* ButtonIcon - size
|
|
@@ -603,6 +603,7 @@ var IconName;
|
|
|
603
603
|
IconName["Connect"] = "Connect";
|
|
604
604
|
IconName["CopySuccess"] = "CopySuccess";
|
|
605
605
|
IconName["Copy"] = "Copy";
|
|
606
|
+
IconName["CorporateFare"] = "CorporateFare";
|
|
606
607
|
IconName["CreditCheck"] = "CreditCheck";
|
|
607
608
|
IconName["CurrencyFranc"] = "CurrencyFranc";
|
|
608
609
|
IconName["CurrencyLira"] = "CurrencyLira";
|