decentraland-ui2 0.0.2 → 0.0.3-9876817458.commit-16eac00
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AddressField/utils.d.ts +3 -0
- package/dist/components/AddressField/utils.js +8 -0
- package/dist/components/AddressField/utils.js.map +1 -0
- package/dist/components/AddressField/utils.spec.d.ts +1 -0
- package/dist/components/AddressField/utils.spec.js +21 -0
- package/dist/components/AddressField/utils.spec.js.map +1 -0
- package/dist/components/Atlas/Atlas.d.ts +3 -42
- package/dist/components/Atlas/Atlas.js +3 -21
- package/dist/components/Atlas/Atlas.js.map +1 -1
- package/dist/components/Atlas/Atlas.stories.d.ts +9 -8
- package/dist/components/Atlas/Atlas.stories.js +11 -9
- package/dist/components/Atlas/Atlas.stories.js.map +1 -1
- package/dist/components/Atlas/Atlas.types.d.ts +41 -0
- package/dist/components/Atlas/Atlas.types.js +20 -0
- package/dist/components/Atlas/Atlas.types.js.map +1 -0
- package/dist/components/Atlas/index.d.ts +4 -0
- package/dist/components/Atlas/index.js +3 -0
- package/dist/components/Atlas/index.js.map +1 -0
- package/dist/components/Atlas/util.d.ts +4 -3
- package/dist/components/Atlas/util.js +5 -4
- package/dist/components/Atlas/util.js.map +1 -1
- package/dist/components/AvatarFace/AvatarFace.d.ts +4 -0
- package/dist/components/AvatarFace/AvatarFace.js +13 -0
- package/dist/components/AvatarFace/AvatarFace.js.map +1 -0
- package/dist/components/AvatarFace/AvatarFace.stories.d.ts +10 -0
- package/dist/components/AvatarFace/AvatarFace.stories.js +47 -0
- package/dist/components/AvatarFace/AvatarFace.stories.js.map +1 -0
- package/dist/components/AvatarFace/AvatarFace.styled.d.ts +11 -0
- package/dist/components/AvatarFace/AvatarFace.styled.js +49 -0
- package/dist/components/AvatarFace/AvatarFace.styled.js.map +1 -0
- package/dist/components/AvatarFace/AvatarFace.types.d.ts +7 -0
- package/dist/components/AvatarFace/AvatarFace.types.js +2 -0
- package/dist/components/AvatarFace/AvatarFace.types.js.map +1 -0
- package/dist/components/AvatarFace/index.d.ts +2 -0
- package/dist/components/AvatarFace/index.js +3 -0
- package/dist/components/AvatarFace/index.js.map +1 -0
- package/dist/components/Icon/Emotes/MuteIcon.d.ts +4 -0
- package/dist/components/Icon/Emotes/MuteIcon.js +8 -0
- package/dist/components/Icon/Emotes/MuteIcon.js.map +1 -0
- package/dist/components/Icon/Emotes/PropsIcon.d.ts +4 -0
- package/dist/components/Icon/Emotes/PropsIcon.js +8 -0
- package/dist/components/Icon/Emotes/PropsIcon.js.map +1 -0
- package/dist/components/Icon/Emotes/SoundIcon.d.ts +4 -0
- package/dist/components/Icon/Emotes/SoundIcon.js +8 -0
- package/dist/components/Icon/Emotes/SoundIcon.js.map +1 -0
- package/dist/components/Icon/Emotes/VolumeIcon.d.ts +4 -0
- package/dist/components/Icon/Emotes/VolumeIcon.js +8 -0
- package/dist/components/Icon/Emotes/VolumeIcon.js.map +1 -0
- package/dist/components/Icon/ManaEthIcon.d.ts +4 -0
- package/dist/components/Icon/ManaEthIcon.js +8 -0
- package/dist/components/Icon/ManaEthIcon.js.map +1 -0
- package/dist/components/Icon/ManaMaticIcon.d.ts +4 -0
- package/dist/components/Icon/ManaMaticIcon.js +8 -0
- package/dist/components/Icon/ManaMaticIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/AccessRestoredIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/AccessRestoredIcon.js +8 -0
- package/dist/components/Icon/Notifications/AccessRestoredIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/AccessRestrictedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/AccessRestrictedIcon.js +8 -0
- package/dist/components/Icon/Notifications/AccessRestrictedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/BidAcceptedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/BidAcceptedIcon.js +8 -0
- package/dist/components/Icon/Notifications/BidAcceptedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/BidReceivedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/BidReceivedIcon.js +8 -0
- package/dist/components/Icon/Notifications/BidReceivedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/CoauthorIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/CoauthorIcon.js +8 -0
- package/dist/components/Icon/Notifications/CoauthorIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/EmptyInboxIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/EmptyInboxIcon.js +8 -0
- package/dist/components/Icon/Notifications/EmptyInboxIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/EventCancelledIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/EventCancelledIcon.js +8 -0
- package/dist/components/Icon/Notifications/EventCancelledIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/EventStartedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/EventStartedIcon.js +8 -0
- package/dist/components/Icon/Notifications/EventStartedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/EventStartsSoonIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/EventStartsSoonIcon.js +8 -0
- package/dist/components/Icon/Notifications/EventStartsSoonIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/GovernanceIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/GovernanceIcon.js +8 -0
- package/dist/components/Icon/Notifications/GovernanceIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/HistoryIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/HistoryIcon.js +8 -0
- package/dist/components/Icon/Notifications/HistoryIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ItemAirdroppedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ItemAirdroppedIcon.js +8 -0
- package/dist/components/Icon/Notifications/ItemAirdroppedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ItemSoldIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ItemSoldIcon.js +8 -0
- package/dist/components/Icon/Notifications/ItemSoldIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/LandRentedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/LandRentedIcon.js +8 -0
- package/dist/components/Icon/Notifications/LandRentedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ManaMainnetIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ManaMainnetIcon.js +8 -0
- package/dist/components/Icon/Notifications/ManaMainnetIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ManaPolygonIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ManaPolygonIcon.js +8 -0
- package/dist/components/Icon/Notifications/ManaPolygonIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/MissingResourcesIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/MissingResourcesIcon.js +8 -0
- package/dist/components/Icon/Notifications/MissingResourcesIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/NewCommentIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/NewCommentIcon.js +8 -0
- package/dist/components/Icon/Notifications/NewCommentIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/NewNotificationIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/NewNotificationIcon.js +8 -0
- package/dist/components/Icon/Notifications/NewNotificationIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/NotificationBellActiveIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/NotificationBellActiveIcon.js +10 -0
- package/dist/components/Icon/Notifications/NotificationBellActiveIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/NotificationBellIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/NotificationBellIcon.js +10 -0
- package/dist/components/Icon/Notifications/NotificationBellIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/PermissionGrantedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/PermissionGrantedIcon.js +8 -0
- package/dist/components/Icon/Notifications/PermissionGrantedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/PermissionRevokedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/PermissionRevokedIcon.js +8 -0
- package/dist/components/Icon/Notifications/PermissionRevokedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/PitchIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/PitchIcon.js +8 -0
- package/dist/components/Icon/Notifications/PitchIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ProjectEnactedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ProjectEnactedIcon.js +8 -0
- package/dist/components/Icon/Notifications/ProjectEnactedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/ProposalFinishedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/ProposalFinishedIcon.js +8 -0
- package/dist/components/Icon/Notifications/ProposalFinishedIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/RentPeriodEndingIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/RentPeriodEndingIcon.js +8 -0
- package/dist/components/Icon/Notifications/RentPeriodEndingIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/RewardIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/RewardIcon.js +8 -0
- package/dist/components/Icon/Notifications/RewardIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/TenderIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/TenderIcon.js +8 -0
- package/dist/components/Icon/Notifications/TenderIcon.js.map +1 -0
- package/dist/components/Icon/Notifications/VotingEndedIcon.d.ts +4 -0
- package/dist/components/Icon/Notifications/VotingEndedIcon.js +8 -0
- package/dist/components/Icon/Notifications/VotingEndedIcon.js.map +1 -0
- package/dist/components/Icon/PlacesIcon.d.ts +4 -0
- package/dist/components/Icon/PlacesIcon.js +8 -0
- package/dist/components/Icon/PlacesIcon.js.map +1 -0
- package/dist/components/Icon/SparklesIcon.d.ts +4 -0
- package/dist/components/Icon/SparklesIcon.js +8 -0
- package/dist/components/Icon/SparklesIcon.js.map +1 -0
- package/dist/components/Icon/UtilityIcon.d.ts +4 -0
- package/dist/components/Icon/UtilityIcon.js +8 -0
- package/dist/components/Icon/UtilityIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/BaseFemaleIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/BaseFemaleIcon.js +8 -0
- package/dist/components/Icon/Wearables/BaseFemaleIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/BaseMaleIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/BaseMaleIcon.js +8 -0
- package/dist/components/Icon/Wearables/BaseMaleIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/BodyShapeIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/BodyShapeIcon.js +8 -0
- package/dist/components/Icon/Wearables/BodyShapeIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/EarringIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/EarringIcon.js +8 -0
- package/dist/components/Icon/Wearables/EarringIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/EyebrowsIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/EyebrowsIcon.js +8 -0
- package/dist/components/Icon/Wearables/EyebrowsIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/EyesIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/EyesIcon.js +8 -0
- package/dist/components/Icon/Wearables/EyesIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/EyewearIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/EyewearIcon.js +8 -0
- package/dist/components/Icon/Wearables/EyewearIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/FacialHairIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/FacialHairIcon.js +8 -0
- package/dist/components/Icon/Wearables/FacialHairIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/FeetIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/FeetIcon.js +8 -0
- package/dist/components/Icon/Wearables/FeetIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/HairIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/HairIcon.js +8 -0
- package/dist/components/Icon/Wearables/HairIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/HandsWearIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/HandsWearIcon.js +8 -0
- package/dist/components/Icon/Wearables/HandsWearIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/HatIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/HatIcon.js +8 -0
- package/dist/components/Icon/Wearables/HatIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/HelmetIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/HelmetIcon.js +8 -0
- package/dist/components/Icon/Wearables/HelmetIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/LowerBodyIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/LowerBodyIcon.js +8 -0
- package/dist/components/Icon/Wearables/LowerBodyIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/MaskIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/MaskIcon.js +8 -0
- package/dist/components/Icon/Wearables/MaskIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/MouthIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/MouthIcon.js +8 -0
- package/dist/components/Icon/Wearables/MouthIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/SkinIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/SkinIcon.js +8 -0
- package/dist/components/Icon/Wearables/SkinIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/SmartWearableIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/SmartWearableIcon.js +8 -0
- package/dist/components/Icon/Wearables/SmartWearableIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/TiaraIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/TiaraIcon.js +8 -0
- package/dist/components/Icon/Wearables/TiaraIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/TopHeadIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/TopHeadIcon.js +8 -0
- package/dist/components/Icon/Wearables/TopHeadIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/UnisexIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/UnisexIcon.js +8 -0
- package/dist/components/Icon/Wearables/UnisexIcon.js.map +1 -0
- package/dist/components/Icon/Wearables/UpperBodyIcon.d.ts +4 -0
- package/dist/components/Icon/Wearables/UpperBodyIcon.js +8 -0
- package/dist/components/Icon/Wearables/UpperBodyIcon.js.map +1 -0
- package/dist/components/Icon/index.d.ts +62 -0
- package/dist/components/Icon/index.js +63 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/IconBadge/IconBadge.d.ts +4 -0
- package/dist/components/IconBadge/IconBadge.js +81 -0
- package/dist/components/IconBadge/IconBadge.js.map +1 -0
- package/dist/components/IconBadge/IconBadge.stories.d.ts +10 -0
- package/dist/components/IconBadge/IconBadge.stories.js +52 -0
- package/dist/components/IconBadge/IconBadge.stories.js.map +1 -0
- package/dist/components/IconBadge/IconBadge.styled.d.ts +16 -0
- package/dist/components/IconBadge/IconBadge.styled.js +38 -0
- package/dist/components/IconBadge/IconBadge.styled.js.map +1 -0
- package/dist/components/IconBadge/IconBadge.types.d.ts +40 -0
- package/dist/components/IconBadge/IconBadge.types.js +34 -0
- package/dist/components/IconBadge/IconBadge.types.js.map +1 -0
- package/dist/components/IconBadge/index.d.ts +2 -0
- package/dist/components/IconBadge/index.js +3 -0
- package/dist/components/IconBadge/index.js.map +1 -0
- package/dist/components/Mana/Mana.d.ts +4 -0
- package/dist/components/Mana/Mana.js +17 -0
- package/dist/components/Mana/Mana.js.map +1 -0
- package/dist/components/Mana/Mana.stories.d.ts +15 -0
- package/dist/components/Mana/Mana.stories.js +90 -0
- package/dist/components/Mana/Mana.stories.js.map +1 -0
- package/dist/components/Mana/Mana.styled.d.ts +16 -0
- package/dist/components/Mana/Mana.styled.js +44 -0
- package/dist/components/Mana/Mana.styled.js.map +1 -0
- package/dist/components/Mana/Mana.types.d.ts +13 -0
- package/dist/components/Mana/Mana.types.js +2 -0
- package/dist/components/Mana/Mana.types.js.map +1 -0
- package/dist/components/Mana/index.d.ts +2 -0
- package/dist/components/Mana/index.js +3 -0
- package/dist/components/Mana/index.js.map +1 -0
- package/dist/components/Media/Media.d.ts +55 -0
- package/dist/components/Media/Media.js +62 -0
- package/dist/components/Media/Media.js.map +1 -0
- package/dist/components/Media/index.d.ts +1 -0
- package/dist/components/Media/index.js +2 -0
- package/dist/components/Media/index.js.map +1 -0
- package/dist/components/Modal/Modal.d.ts +5 -0
- package/dist/components/Modal/Modal.js +16 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.stories.d.ts +28 -0
- package/dist/components/Modal/Modal.stories.js +103 -0
- package/dist/components/Modal/Modal.stories.js.map +1 -0
- package/dist/components/Modal/Modal.styled.d.ts +22 -0
- package/dist/components/Modal/Modal.styled.js +51 -0
- package/dist/components/Modal/Modal.styled.js.map +1 -0
- package/dist/components/Modal/Modal.types.d.ts +12 -0
- package/dist/components/Modal/Modal.types.js +2 -0
- package/dist/components/Modal/Modal.types.js.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Notifications/NotificationItem.d.ts +4 -0
- package/dist/components/Notifications/NotificationItem.js +14 -0
- package/dist/components/Notifications/NotificationItem.js.map +1 -0
- package/dist/components/Notifications/NotificationItem.styled.d.ts +36 -0
- package/dist/components/Notifications/NotificationItem.styled.js +63 -0
- package/dist/components/Notifications/NotificationItem.styled.js.map +1 -0
- package/dist/components/Notifications/NotificationItem.types.d.ts +8 -0
- package/dist/components/Notifications/NotificationItem.types.js +2 -0
- package/dist/components/Notifications/NotificationItem.types.js.map +1 -0
- package/dist/components/Notifications/NotificationItemImage.d.ts +4 -0
- package/dist/components/Notifications/NotificationItemImage.js +12 -0
- package/dist/components/Notifications/NotificationItemImage.js.map +1 -0
- package/dist/components/Notifications/NotificationItemImage.styled.d.ts +12 -0
- package/dist/components/Notifications/NotificationItemImage.styled.js +26 -0
- package/dist/components/Notifications/NotificationItemImage.styled.js.map +1 -0
- package/dist/components/Notifications/NotificationItemImage.types.d.ts +7 -0
- package/dist/components/Notifications/NotificationItemImage.types.js +2 -0
- package/dist/components/Notifications/NotificationItemImage.types.js.map +1 -0
- package/dist/components/Notifications/NotificationItemNFTLink.d.ts +4 -0
- package/dist/components/Notifications/NotificationItemNFTLink.js +9 -0
- package/dist/components/Notifications/NotificationItemNFTLink.js.map +1 -0
- package/dist/components/Notifications/NotificationItemNFTLink.styled.d.ts +9 -0
- package/dist/components/Notifications/NotificationItemNFTLink.styled.js +11 -0
- package/dist/components/Notifications/NotificationItemNFTLink.styled.js.map +1 -0
- package/dist/components/Notifications/NotificationItemNFTLink.types.d.ts +7 -0
- package/dist/components/Notifications/NotificationItemNFTLink.types.js +2 -0
- package/dist/components/Notifications/NotificationItemNFTLink.types.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Events/Countdown.d.ts +5 -0
- package/dist/components/Notifications/NotificationTypes/Events/Countdown.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Events/Countdown.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.i18n.d.ts +42 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.i18n.js +43 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.js +14 -0
- package/dist/components/Notifications/NotificationTypes/Events/EventStartsSoonNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAnnouncementNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAnnouncementNotification.js +11 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAnnouncementNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceAuthoredProposalFinishedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceCoauthorRequestedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProjectUpdateNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceNewCommentOnProposalNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.i18n.d.ts +33 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.i18n.js +34 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernancePitchPassedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.i18n.d.ts +27 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.i18n.js +28 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceProposalEnactedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.i18n.d.ts +33 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.i18n.js +34 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceTenderPassedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Governance/GovernanceVotingEndedVoterNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentalEndedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.js +16 -0
- package/dist/components/Notifications/NotificationTypes/Land/LandRentedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.js +20 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidAcceptedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.js +20 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/BidReceivedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.i18n.d.ts +15 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.i18n.js +7 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.js +14 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/ItemSoldNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.js +20 -0
- package/dist/components/Notifications/NotificationTypes/Marketplace/RoyaltiesEarnedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.js +15 -0
- package/dist/components/Notifications/NotificationTypes/Reward/RewardAssignedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.i18n.d.ts +15 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.i18n.js +16 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.js +12 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestoredNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsAccessRestrictedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.i18n.d.ts +27 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.i18n.js +28 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.js +13 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsMissingResourcesNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.js +27 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.d.ts +4 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.i18n.js +25 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.js +20 -0
- package/dist/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.js.map +1 -0
- package/dist/components/Notifications/NotificationTypes/index.d.ts +24 -0
- package/dist/components/Notifications/NotificationTypes/index.js +25 -0
- package/dist/components/Notifications/NotificationTypes/index.js.map +1 -0
- package/dist/components/Notifications/Notifications.d.ts +4 -0
- package/dist/components/Notifications/Notifications.js +26 -0
- package/dist/components/Notifications/Notifications.js.map +1 -0
- package/dist/components/Notifications/Notifications.stories.d.ts +19 -0
- package/dist/components/Notifications/Notifications.stories.js +139 -0
- package/dist/components/Notifications/Notifications.stories.js.map +1 -0
- package/dist/components/Notifications/Notifications.styled.d.ts +8 -0
- package/dist/components/Notifications/Notifications.styled.js +57 -0
- package/dist/components/Notifications/Notifications.styled.js.map +1 -0
- package/dist/components/Notifications/Notifications.types.d.ts +16 -0
- package/dist/components/Notifications/Notifications.types.js +2 -0
- package/dist/components/Notifications/Notifications.types.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeed.d.ts +4 -0
- package/dist/components/Notifications/NotificationsFeed.i18n.d.ts +24 -0
- package/dist/components/Notifications/NotificationsFeed.i18n.js +25 -0
- package/dist/components/Notifications/NotificationsFeed.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeed.js +50 -0
- package/dist/components/Notifications/NotificationsFeed.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeed.styled.d.ts +36 -0
- package/dist/components/Notifications/NotificationsFeed.styled.js +52 -0
- package/dist/components/Notifications/NotificationsFeed.styled.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeed.types.d.ts +16 -0
- package/dist/components/Notifications/NotificationsFeed.types.js +2 -0
- package/dist/components/Notifications/NotificationsFeed.types.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeedTabs.d.ts +4 -0
- package/dist/components/Notifications/NotificationsFeedTabs.i18n.d.ts +57 -0
- package/dist/components/Notifications/NotificationsFeedTabs.i18n.js +58 -0
- package/dist/components/Notifications/NotificationsFeedTabs.i18n.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeedTabs.js +25 -0
- package/dist/components/Notifications/NotificationsFeedTabs.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeedTabs.styled.d.ts +33 -0
- package/dist/components/Notifications/NotificationsFeedTabs.styled.js +56 -0
- package/dist/components/Notifications/NotificationsFeedTabs.styled.js.map +1 -0
- package/dist/components/Notifications/NotificationsFeedTabs.types.d.ts +13 -0
- package/dist/components/Notifications/NotificationsFeedTabs.types.js +2 -0
- package/dist/components/Notifications/NotificationsFeedTabs.types.js.map +1 -0
- package/dist/components/Notifications/index.d.ts +3 -0
- package/dist/components/Notifications/index.js +3 -0
- package/dist/components/Notifications/index.js.map +1 -0
- package/dist/components/Notifications/types.d.ts +118 -0
- package/dist/components/Notifications/types.js +7 -0
- package/dist/components/Notifications/types.js.map +1 -0
- package/dist/components/Notifications/utils.d.ts +13 -0
- package/dist/components/Notifications/utils.js +51 -0
- package/dist/components/Notifications/utils.js.map +1 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.d.ts +4 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.js +14 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.js.map +1 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.stories.d.ts +6 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.stories.js +28 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.stories.js.map +1 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.styled.d.ts +5 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.styled.js +13 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.styled.js.map +1 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.types.d.ts +7 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.types.js +2 -0
- package/dist/components/UserMenu/ManaBalances/ManaBalances.types.js.map +1 -0
- package/dist/components/UserMenu/ManaBalances/index.d.ts +2 -0
- package/dist/components/UserMenu/ManaBalances/index.js +2 -0
- package/dist/components/UserMenu/ManaBalances/index.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.d.ts +4 -0
- package/dist/components/UserMenu/UserMenu.i18n.d.ts +3 -0
- package/dist/components/UserMenu/UserMenu.i18n.js +15 -0
- package/dist/components/UserMenu/UserMenu.i18n.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.js +82 -0
- package/dist/components/UserMenu/UserMenu.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.stories.d.ts +12 -0
- package/dist/components/UserMenu/UserMenu.stories.js +82 -0
- package/dist/components/UserMenu/UserMenu.stories.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.styled.d.ts +21 -0
- package/dist/components/UserMenu/UserMenu.styled.js +27 -0
- package/dist/components/UserMenu/UserMenu.styled.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.types.d.ts +26 -0
- package/dist/components/UserMenu/UserMenu.types.js +15 -0
- package/dist/components/UserMenu/UserMenu.types.js.map +1 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuActions.stories.d.ts +9 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuActions.stories.js +39 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuActions.stories.js.map +1 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.d.ts +5 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.js +111 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.js.map +1 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.stories.d.ts +8 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.stories.js +65 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.stories.js.map +1 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.d.ts +74 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.js +167 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.styled.js.map +1 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.types.d.ts +28 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.types.js +2 -0
- package/dist/components/UserMenu/UserMenuSignedIn/UserMenuSignedIn.types.js.map +1 -0
- package/dist/components/UserMenu/index.d.ts +4 -0
- package/dist/components/UserMenu/index.js +3 -0
- package/dist/components/UserMenu/index.js.map +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/data/avatar.d.ts +3 -0
- package/dist/data/avatar.js +98 -0
- package/dist/data/avatar.js.map +1 -0
- package/dist/data/notifications.d.ts +27 -0
- package/dist/data/notifications.js +426 -0
- package/dist/data/notifications.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/network.d.ts +8 -0
- package/dist/lib/network.js +17 -0
- package/dist/lib/network.js.map +1 -0
- package/dist/theme/colorSchemes.d.ts +10 -0
- package/dist/theme/colorSchemes.js +362 -0
- package/dist/theme/colorSchemes.js.map +1 -0
- package/dist/{colors.d.ts → theme/colors.d.ts} +19 -18
- package/dist/{colors.js → theme/colors.js} +19 -18
- package/dist/theme/colors.js.map +1 -0
- package/dist/theme/components.d.ts +2 -0
- package/dist/theme/components.js +53 -0
- package/dist/theme/components.js.map +1 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.js +19 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/typography.d.ts +44 -0
- package/dist/theme/typography.js +45 -0
- package/dist/theme/typography.js.map +1 -0
- package/package.json +37 -35
- package/dist/colors.js.map +0 -1
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -73
- package/dist/theme.js.map +0 -1
@@ -0,0 +1,51 @@
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { NotificationType, Rarity } from "@dcl/schemas";
|
3
|
+
import { BidAcceptedNotification, BidReceivedNotification, EventsStartedNotification, EventsStartsSoonNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceNewCommentOnProposalNotification, GovernancePitchPassedNotification, GovernanceProposalEnactedNotification, GovernanceTenderPassedNotification, GovernanceVotingEndedVoterNotification, ItemSoldNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, RoyaltiesEarnedNotification, WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, } from "./NotificationTypes";
|
4
|
+
const MAXIMUM_FRACTION_DIGITS = 2;
|
5
|
+
function formatMana(mana, maximumFractionDigits = MAXIMUM_FRACTION_DIGITS) {
|
6
|
+
return (Number(mana) / 1e18).toFixed(maximumFractionDigits).toLocaleString();
|
7
|
+
}
|
8
|
+
function getBGColorByRarity(rarity) {
|
9
|
+
return Rarity.getGradient(rarity).join();
|
10
|
+
}
|
11
|
+
const NotificationComponentByType = {
|
12
|
+
[NotificationType.ROYALTIES_EARNED]: RoyaltiesEarnedNotification,
|
13
|
+
[NotificationType.ITEM_SOLD]: ItemSoldNotification,
|
14
|
+
[NotificationType.BID_ACCEPTED]: BidAcceptedNotification,
|
15
|
+
[NotificationType.BID_RECEIVED]: BidReceivedNotification,
|
16
|
+
[NotificationType.GOVERNANCE_ANNOUNCEMENT]: GovernanceAnnouncementNotification,
|
17
|
+
[NotificationType.GOVERNANCE_COAUTHOR_REQUESTED]: GovernanceCoauthorRequestedNotification,
|
18
|
+
[NotificationType.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED]: GovernanceAuthoredProposalFinishedNotification,
|
19
|
+
[NotificationType.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL]: GovernanceNewCommentOnProposalNotification,
|
20
|
+
[NotificationType.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE]: GovernanceNewCommentOnProjectUpdateNotification,
|
21
|
+
[NotificationType.GOVERNANCE_PROPOSAL_ENACTED]: GovernanceProposalEnactedNotification,
|
22
|
+
[NotificationType.GOVERNANCE_VOTING_ENDED_VOTER]: GovernanceVotingEndedVoterNotification,
|
23
|
+
[NotificationType.GOVERNANCE_PITCH_PASSED]: GovernancePitchPassedNotification,
|
24
|
+
[NotificationType.GOVERNANCE_TENDER_PASSED]: GovernanceTenderPassedNotification,
|
25
|
+
[NotificationType.WORLDS_MISSING_RESOURCES]: WorldsMissingResourcesNotification,
|
26
|
+
[NotificationType.WORLDS_ACCESS_RESTORED]: WorldsAccessRestoredNotification,
|
27
|
+
[NotificationType.WORLDS_ACCESS_RESTRICTED]: WorldsAccessRestrictedNotification,
|
28
|
+
[NotificationType.LAND_RENTED]: LandRentedNotification,
|
29
|
+
[NotificationType.LAND_RENTAL_ENDED]: LandRentalEndedNotification,
|
30
|
+
[NotificationType.REWARD_ASSIGNED]: RewardAssignedNotification,
|
31
|
+
[NotificationType.EVENTS_STARTS_SOON]: EventsStartsSoonNotification,
|
32
|
+
[NotificationType.EVENTS_STARTED]: EventsStartedNotification,
|
33
|
+
[NotificationType.WORLDS_PERMISSION_GRANTED]: WorldsPermissionGrantedNotification,
|
34
|
+
[NotificationType.WORLDS_PERMISSION_REVOKED]: WorldsPermissionRevokedNotification,
|
35
|
+
};
|
36
|
+
const CURRENT_AVAILABLE_NOTIFICATIONS = Object.values(NotificationType);
|
37
|
+
const replaceWithValues = (str, values) => {
|
38
|
+
const parts = str.split(/{|}/);
|
39
|
+
const jsxElements = parts.map((part, index) => {
|
40
|
+
if (index % 2 === 0) {
|
41
|
+
return part;
|
42
|
+
}
|
43
|
+
else {
|
44
|
+
const value = values[part.trim()];
|
45
|
+
return value !== undefined ? value : `{${part}}`;
|
46
|
+
}
|
47
|
+
});
|
48
|
+
return _jsx(_Fragment, { children: jsxElements });
|
49
|
+
};
|
50
|
+
export { MAXIMUM_FRACTION_DIGITS, formatMana, getBGColorByRarity, NotificationComponentByType, CURRENT_AVAILABLE_NOTIFICATIONS, replaceWithValues, };
|
51
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/Notifications/utils.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,kCAAkC,EAClC,8CAA8C,EAC9C,uCAAuC,EACvC,+CAA+C,EAC/C,0CAA0C,EAC1C,iCAAiC,EACjC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,qBAAqB,CAAA;AAG5B,MAAM,uBAAuB,GAAG,CAAC,CAAA;AAEjC,SAAS,UAAU,CACjB,IAAY,EACZ,qBAAqB,GAAG,uBAAuB;IAE/C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,cAAc,EAAE,CAAA;AAC9E,CAAC;AAED,SAAS,kBAAkB,CAAC,MAAc;IACxC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EA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BAAyB,CAAC,EAC1C,mCAAmC;IACrC,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,EAC1C,mCAAmC;CACtC,CAAA;AAEH,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;AAEvE,MAAM,iBAAiB,GAAG,CACxB,GAAW,EACX,MAA4C,EACtB,EAAE;IACxB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAC9B,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC5C,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACpB,OAAO,IAAI,CAAA;QACb,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;YACjC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAA;QAClD,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,4BAAG,WAAW,GAAI,CAAA;AAC3B,CAAC,CAAA;AAED,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAElB,2BAA2B,EAC3B,+BAA+B,EAC/B,iBAAiB,GAClB,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { Network } from "@dcl/schemas";
|
4
|
+
import { Typography } from "@mui/material";
|
5
|
+
import { config } from "../../../config";
|
6
|
+
import { Mana } from "../../Mana";
|
7
|
+
import { ManaBalancesWrapper } from "./ManaBalances.styled";
|
8
|
+
const ManaBalances = React.memo((props) => {
|
9
|
+
const { manaBalances, onClickBalance } = props;
|
10
|
+
return (_jsx(ManaBalancesWrapper, { children: manaBalances &&
|
11
|
+
Object.keys(manaBalances).map((network) => (_jsx(Mana, { network: network, href: config.get("ACCOUNT_URL"), onClick: onClickBalance, primary: network === Network.ETHEREUM, children: _jsx(Typography, { variant: "subtitle2", children: Number(manaBalances[network].toFixed(2)).toLocaleString() }) }, network))) }));
|
12
|
+
});
|
13
|
+
export { ManaBalances };
|
14
|
+
//# sourceMappingURL=ManaBalances.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ManaBalances.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/ManaBalances/ManaBalances.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAwB,EAAE,EAAE;IAC3D,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,KAAK,CAAA;IAE9C,OAAO,CACL,KAAC,mBAAmB,cACjB,YAAY;YACX,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACzC,KAAC,IAAI,IAEH,OAAO,EAAE,OAAkB,EAC3B,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAC/B,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,YAErC,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,YAC5B,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,GAC/C,IARR,OAAO,CASP,CACR,CAAC,GACgB,CACvB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Network } from "@dcl/schemas";
|
3
|
+
import { ManaBalances } from "./ManaBalances";
|
4
|
+
const balance = {
|
5
|
+
[Network.ETHEREUM]: 8888.88,
|
6
|
+
[Network.MATIC]: 8888.88,
|
7
|
+
};
|
8
|
+
const meta = {
|
9
|
+
component: ManaBalances,
|
10
|
+
title: "Decentraland UI/ManaBalances",
|
11
|
+
tags: ["autodocs"],
|
12
|
+
argTypes: {
|
13
|
+
manaBalances: {
|
14
|
+
description: "Balance of MANA in different networks",
|
15
|
+
control: {
|
16
|
+
type: "object",
|
17
|
+
},
|
18
|
+
options: [balance],
|
19
|
+
},
|
20
|
+
},
|
21
|
+
render: (args) => _jsx(ManaBalances, { manaBalances: balance, ...args }),
|
22
|
+
};
|
23
|
+
// eslint-disable-next-line import/no-default-export
|
24
|
+
export default meta;
|
25
|
+
export const Simple = {
|
26
|
+
args: {},
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=ManaBalances.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ManaBalances.stories.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/ManaBalances/ManaBalances.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAI7C,MAAM,OAAO,GAAG;IACd,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO;IAC3B,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO;CACzB,CAAA;AAED,MAAM,IAAI,GAA4B;IACpC,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,8BAA8B;IACrC,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE,CAAC,OAAO,CAAC;SACnB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,YAAY,IAAC,YAAY,EAAE,OAAO,KAAM,IAAI,GAAI;CACpE,CAAA;AAID,oDAAoD;AACpD,eAAe,IAAI,CAAA;AAEnB,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE;CACT,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const ManaBalancesWrapper: import("@emotion/styled").StyledComponent<{
|
2
|
+
theme?: import("@emotion/react").Theme;
|
3
|
+
as?: import("react").ElementType;
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
5
|
+
export { ManaBalancesWrapper };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import styled from "@emotion/styled";
|
2
|
+
import { useTheme } from "@mui/material";
|
3
|
+
const ManaBalancesWrapper = styled("div")(() => {
|
4
|
+
const theme = useTheme();
|
5
|
+
return {
|
6
|
+
display: "flex",
|
7
|
+
"& svg": {
|
8
|
+
fontSize: theme.typography.subtitle2.fontSize,
|
9
|
+
},
|
10
|
+
};
|
11
|
+
});
|
12
|
+
export { ManaBalancesWrapper };
|
13
|
+
//# sourceMappingURL=ManaBalances.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ManaBalances.styled.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/ManaBalances/ManaBalances.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE;IAC7C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO;QACL,OAAO,EAAE,MAAM;QACf,OAAO,EAAE;YACP,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ;SAC9C;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { Network } from "@dcl/schemas/dist/dapps/network";
|
3
|
+
type ManaBalancesProps = {
|
4
|
+
manaBalances?: Partial<Record<Network, number>>;
|
5
|
+
onClickBalance?: React.MouseEventHandler<HTMLButtonElement> & ((event: React.MouseEvent<HTMLAnchorElement, MouseEvent>, network: Network) => void);
|
6
|
+
};
|
7
|
+
export { ManaBalancesProps };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ManaBalances.types.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/ManaBalances/ManaBalances.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/ManaBalances/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
const i18n = {
|
2
|
+
account: "Account Settings",
|
3
|
+
activity: "Activity",
|
4
|
+
guest: "Guest",
|
5
|
+
jumpIn: "Jump In",
|
6
|
+
marketplaceAuthorizations: "Marketplace Authorizations",
|
7
|
+
myAssets: "My Assets",
|
8
|
+
myLists: "My Lists",
|
9
|
+
profile: "Profile",
|
10
|
+
signIn: "Sign In",
|
11
|
+
signOut: "Log Out",
|
12
|
+
viewProfile: "View Profile",
|
13
|
+
};
|
14
|
+
export { i18n };
|
15
|
+
//# sourceMappingURL=UserMenu.i18n.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.i18n.js","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.i18n.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,SAAS;IACjB,yBAAyB,EAAE,4BAA4B;IACvD,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;CACZ,CAAA;AAEjB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React, { useCallback, useState } from "react";
|
3
|
+
import { v4 as uuidv4 } from "uuid";
|
4
|
+
import { CircularProgress } from "@mui/material";
|
5
|
+
import { i18n as i18nUserMenu } from "./UserMenu.i18n";
|
6
|
+
import { UserMenuSignedIn } from "./UserMenuSignedIn/UserMenuSignedIn";
|
7
|
+
import { config } from "../../config";
|
8
|
+
import { useTabletAndBelowMediaQuery } from "../Media";
|
9
|
+
import { UserMenuEventId } from "./UserMenu.types";
|
10
|
+
import { JumpInLink, SignInButton, UserMenuContainer, UserMenuLoaderContainer, } from "./UserMenu.styled";
|
11
|
+
const UserMenu = React.memo((props) => {
|
12
|
+
const { isSignedIn, isSigningIn, isDisconnecting, manaBalances, i18n = i18nUserMenu, onClickSignIn, onClickBalance, onClickOpen, onClickJumpIn, onClickUserMenuItem, ...signInProps } = props;
|
13
|
+
const isTabletAndBelow = useTabletAndBelowMediaQuery();
|
14
|
+
const [isOpen, setIsOpen] = useState(false);
|
15
|
+
const [trackingId, setTrackingId] = useState(undefined);
|
16
|
+
const handleToggle = useCallback((event) => {
|
17
|
+
const trackId = uuidv4();
|
18
|
+
setIsOpen((prev) => {
|
19
|
+
if (!prev) {
|
20
|
+
setTrackingId(trackId);
|
21
|
+
}
|
22
|
+
if (!prev && onClickOpen) {
|
23
|
+
onClickOpen(event, trackId);
|
24
|
+
}
|
25
|
+
if (isTabletAndBelow && !prev) {
|
26
|
+
window.addEventListener("scroll", noScroll);
|
27
|
+
}
|
28
|
+
if (isTabletAndBelow && prev) {
|
29
|
+
window.removeEventListener("scroll", noScroll);
|
30
|
+
}
|
31
|
+
return !prev;
|
32
|
+
});
|
33
|
+
}, [setIsOpen, onClickOpen]);
|
34
|
+
const handleClose = useCallback(() => {
|
35
|
+
setIsOpen(false);
|
36
|
+
if (isTabletAndBelow) {
|
37
|
+
window.removeEventListener("scroll", noScroll);
|
38
|
+
}
|
39
|
+
}, [setIsOpen]);
|
40
|
+
const handleClickJumpIn = useCallback((event) => {
|
41
|
+
event.preventDefault();
|
42
|
+
onClickUserMenuItem &&
|
43
|
+
onClickUserMenuItem(event, {
|
44
|
+
type: UserMenuEventId.JUMP_IN,
|
45
|
+
track_uuid: trackingId || undefined,
|
46
|
+
url: config.get("EXPLORER_URL"),
|
47
|
+
});
|
48
|
+
setTimeout(() => {
|
49
|
+
onClickJumpIn
|
50
|
+
? onClickJumpIn(event)
|
51
|
+
: window.open(config.get("EXPLORER_URL"), "_blank", "noopener");
|
52
|
+
}, onClickUserMenuItem ? 300 : 0);
|
53
|
+
}, [onClickJumpIn, onClickUserMenuItem, trackingId]);
|
54
|
+
const handleClickSignIn = useCallback((event) => {
|
55
|
+
event.preventDefault();
|
56
|
+
onClickUserMenuItem &&
|
57
|
+
onClickUserMenuItem(event, {
|
58
|
+
type: UserMenuEventId.SIGN_IN,
|
59
|
+
track_uuid: trackingId || undefined,
|
60
|
+
url: config.get("MARKETPLACE_URL"),
|
61
|
+
});
|
62
|
+
onClickSignIn && onClickSignIn(event);
|
63
|
+
}, [onClickSignIn, onClickUserMenuItem, trackingId]);
|
64
|
+
const handleClickBalance = useCallback((event, network) => {
|
65
|
+
event.preventDefault();
|
66
|
+
onClickUserMenuItem &&
|
67
|
+
onClickUserMenuItem(event, {
|
68
|
+
type: UserMenuEventId.BALANCE,
|
69
|
+
});
|
70
|
+
setTimeout(() => {
|
71
|
+
onClickBalance
|
72
|
+
? onClickBalance(event, network)
|
73
|
+
: window.open(config.get("ACCOUNT_URL"), "_blank", "noopener");
|
74
|
+
}, onClickUserMenuItem ? 300 : 0);
|
75
|
+
}, [onClickBalance, onClickUserMenuItem, trackingId]);
|
76
|
+
return (_jsx(UserMenuContainer, { children: isDisconnecting ? (_jsx(UserMenuLoaderContainer, { children: _jsx(CircularProgress, { size: 20 }) })) : (_jsxs(_Fragment, { children: [isSignedIn && (_jsx(UserMenuSignedIn, { ...signInProps, manaBalances: manaBalances, trackingId: trackingId, isOpen: isOpen, i18n: i18n, onClickToggle: handleToggle, onClickClose: handleClose, onClickUserMenuItem: onClickUserMenuItem, onClickBalance: handleClickBalance })), !isSignedIn ? (_jsx(SignInButton, { variant: "outlined", disabled: isSigningIn, onClick: handleClickSignIn, children: isSigningIn ? (_jsx(CircularProgress, { size: 20, color: "inherit" })) : (i18n.signIn) })) : null, isSignedIn && (_jsx(JumpInLink, { variant: "contained", onClick: handleClickJumpIn, href: config.get("EXPLORER_URL"), children: i18n.jumpIn }))] })) }));
|
77
|
+
});
|
78
|
+
function noScroll() {
|
79
|
+
window.scrollTo(0, 0);
|
80
|
+
}
|
81
|
+
export { UserMenu };
|
82
|
+
//# sourceMappingURL=UserMenu.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.js","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,IAAI,IAAI,Y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I,EACV,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,WAAW,EACzB,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,EAAE,kBAAkB,GAClC,CACH,EACA,CAAC,UAAU,CAAC,CAAC,CAAC,CACb,KAAC,YAAY,IACX,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,iBAAiB,YAEzB,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,gBAAgB,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,SAAS,GAAG,CAC/C,CAAC,CAAC,CAAC,CACF,IAAI,CAAC,MAAM,CACZ,GACY,CAChB,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,IAAI,CACb,KAAC,UAAU,IACT,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,YAE/B,IAAI,CAAC,MAAM,GACD,CACd,IACA,CACJ,GACiB,CACrB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,SAAS,QAAQ;IACf,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACvB,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { UserMenuProps } from "./UserMenu.types";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta<UserMenuProps>;
|
4
|
+
type Story = StoryObj<UserMenuProps>;
|
5
|
+
declare const SignedOut: Story;
|
6
|
+
declare const SignedIn: Story;
|
7
|
+
declare const SigningIn: Story;
|
8
|
+
declare const Disconnecting: Story;
|
9
|
+
declare const Guest: Story;
|
10
|
+
declare const Complete: Story;
|
11
|
+
export default meta;
|
12
|
+
export { SignedOut, SignedIn, SigningIn, Disconnecting, Guest, Complete };
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useState } from "react";
|
3
|
+
import { Network } from "@dcl/schemas";
|
4
|
+
import { Box } from "@mui/material";
|
5
|
+
import { UserMenu } from "./UserMenu";
|
6
|
+
import { i18n } from "./UserMenu.i18n";
|
7
|
+
import { avatar } from "../../data/avatar";
|
8
|
+
import { itemSoldNotificationPropsData } from "../../data/notifications";
|
9
|
+
import { NotificationActiveTab } from "../Notifications";
|
10
|
+
const meta = {
|
11
|
+
component: UserMenu,
|
12
|
+
title: "Decentraland UI/UserMenu",
|
13
|
+
argTypes: {},
|
14
|
+
args: {
|
15
|
+
i18n: i18n,
|
16
|
+
},
|
17
|
+
render: (args) => {
|
18
|
+
return _jsx(UserMenu, { ...args });
|
19
|
+
},
|
20
|
+
};
|
21
|
+
const SignedOut = {
|
22
|
+
name: "Signed Out",
|
23
|
+
};
|
24
|
+
const SignedIn = {
|
25
|
+
name: "Signed In",
|
26
|
+
args: {
|
27
|
+
avatar: avatar,
|
28
|
+
isSignedIn: true,
|
29
|
+
},
|
30
|
+
};
|
31
|
+
const SigningIn = {
|
32
|
+
name: "Signing In",
|
33
|
+
args: {
|
34
|
+
avatar: avatar,
|
35
|
+
isSigningIn: true,
|
36
|
+
},
|
37
|
+
};
|
38
|
+
const Disconnecting = {
|
39
|
+
name: "Disconnecting",
|
40
|
+
args: {
|
41
|
+
isDisconnecting: true,
|
42
|
+
},
|
43
|
+
};
|
44
|
+
const Guest = {
|
45
|
+
name: "Guest",
|
46
|
+
args: {
|
47
|
+
avatar: { ...avatar, hasClaimedName: false },
|
48
|
+
isSignedIn: true,
|
49
|
+
},
|
50
|
+
};
|
51
|
+
const Complete = {
|
52
|
+
name: "Complete",
|
53
|
+
args: {
|
54
|
+
avatar: avatar,
|
55
|
+
manaBalances: { [Network.ETHEREUM]: 1000, [Network.MATIC]: 2500 },
|
56
|
+
hasActivity: true,
|
57
|
+
isSignedIn: true,
|
58
|
+
},
|
59
|
+
render: (args) => {
|
60
|
+
const [openNotification, setOpenNotification] = useState(false);
|
61
|
+
const [tab, setTab] = useState(NotificationActiveTab.NEWEST);
|
62
|
+
return (_jsx(Box, { sx: {
|
63
|
+
width: "500px",
|
64
|
+
height: "90vh",
|
65
|
+
}, children: _jsx(UserMenu, { ...args, notifications: {
|
66
|
+
isOnboarding: false,
|
67
|
+
isOpen: openNotification,
|
68
|
+
isLoading: false,
|
69
|
+
items: [itemSoldNotificationPropsData],
|
70
|
+
locale: "en",
|
71
|
+
activeTab: tab,
|
72
|
+
onBegin: console.log,
|
73
|
+
onChangeTab: (_e, tab) => setTab(tab),
|
74
|
+
onClick: () => setOpenNotification(true),
|
75
|
+
onClose: () => setOpenNotification(false),
|
76
|
+
} }) }));
|
77
|
+
},
|
78
|
+
};
|
79
|
+
// eslint-disable-next-line import/no-default-export
|
80
|
+
export default meta;
|
81
|
+
export { SignedOut, SignedIn, SigningIn, Disconnecting, Guest, Complete };
|
82
|
+
//# sourceMappingURL=UserMenu.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.stories.js","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAIxD,MAAM,IAAI,GAAwB;IAChC,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,0BAA0B;IACjC,QAAQ,EAAE,EAAE;IACZ,IAAI,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5D,OAAO,CACL,KAAC,GAAG,IACF,EAAE,EAAE;gBACF,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,MAAM;aACf,YAED,KAAC,QAAQ,OACH,IAAI,EACR,aAAa,EAAE;oBACb,YAAY,EAAE,KAAK;oBACnB,MAAM,EAAE,gBAAgB;oBACxB,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,CAAC,6BAA6B,CAAC;oBACtC,MAAM,EAAE,IAAI;oBACZ,SAAS,EAAE,GAAG;oBACd,OAAO,EAAE,OAAO,CAAC,GAAG;oBACpB,WAAW,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;oBACrC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;oBACxC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;iBAC1C,GACD,GACE,CACP,CAAA;IACH,CAAC;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
declare const UserMenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
3
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
4
|
+
theme?: import("@emotion/react").Theme;
|
5
|
+
}, {}, {}>;
|
6
|
+
declare const UserMenuLoaderContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
|
9
|
+
theme?: import("@emotion/react").Theme;
|
10
|
+
}, {}, {}>;
|
11
|
+
declare const SignInButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
12
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
13
|
+
}, "className" | "size" | "children" | "color" | "style" | "tabIndex" | "classes" | "sx" | "variant" | "href" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon"> & {
|
14
|
+
theme?: import("@emotion/react").Theme;
|
15
|
+
}, {}, {}>;
|
16
|
+
declare const JumpInLink: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
17
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
18
|
+
}, "className" | "size" | "children" | "color" | "style" | "tabIndex" | "classes" | "sx" | "variant" | "href" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon"> & {
|
19
|
+
theme?: import("@emotion/react").Theme;
|
20
|
+
}, {}, {}>;
|
21
|
+
export { UserMenuContainer, UserMenuLoaderContainer, SignInButton, JumpInLink };
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import styled from "@emotion/styled";
|
2
|
+
import { Box, Button } from "@mui/material";
|
3
|
+
const UserMenuContainer = styled(Box)({
|
4
|
+
display: "flex",
|
5
|
+
position: "relative",
|
6
|
+
textAlign: "left",
|
7
|
+
outline: "none",
|
8
|
+
alignItems: "center",
|
9
|
+
});
|
10
|
+
const UserMenuLoaderContainer = styled(Box)({
|
11
|
+
display: "flex",
|
12
|
+
alignItems: "center",
|
13
|
+
height: "100%",
|
14
|
+
});
|
15
|
+
const SignInButton = styled(Button)({
|
16
|
+
height: "46px",
|
17
|
+
minWidth: "90px",
|
18
|
+
});
|
19
|
+
const JumpInLink = styled(Button)({
|
20
|
+
height: "46px",
|
21
|
+
marginLeft: "24px",
|
22
|
+
"@media (max-width: 991px)": {
|
23
|
+
display: "none",
|
24
|
+
},
|
25
|
+
});
|
26
|
+
export { UserMenuContainer, UserMenuLoaderContainer, SignInButton, JumpInLink };
|
27
|
+
//# sourceMappingURL=UserMenu.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.styled.js","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAA;AAEF,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,MAAM;CACf,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;IAClB,2BAA2B,EAAE;QAC3B,OAAO,EAAE,MAAM;KAChB;CACF,CAAC,CAAA;AAEF,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,YAAY,EAAE,UAAU,EAAE,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { UserMenuSignedInProps } from "./UserMenuSignedIn/UserMenuSignedIn.types";
|
3
|
+
type UserMenuProps = Omit<UserMenuSignedInProps, "isOpen" | "isClickable" | "trackingId" | "onClickToggle"> & {
|
4
|
+
isSignedIn?: boolean;
|
5
|
+
isSigningIn?: boolean;
|
6
|
+
isDisconnecting?: boolean;
|
7
|
+
isActivity?: boolean;
|
8
|
+
i18n?: UserMenuI18N;
|
9
|
+
onClickSignIn?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
10
|
+
onClickOpen?: (event: React.MouseEvent<HTMLElement, MouseEvent>, trackingId: string) => void;
|
11
|
+
onClickJumpIn?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
12
|
+
};
|
13
|
+
type UserMenuI18N = Record<"myAssets" | "account" | "viewProfile" | "signIn" | "signOut" | "guest" | "marketplaceAuthorizations" | "jumpIn", string>;
|
14
|
+
declare enum UserMenuEventId {
|
15
|
+
ACTIVITY = "activity",
|
16
|
+
ACCOUNT = "account",
|
17
|
+
MY_ASSETS = "my_assets",
|
18
|
+
PROFILE = "profile",
|
19
|
+
SIGN_IN = "sign_in",
|
20
|
+
SIGN_OUT = "sign_out",
|
21
|
+
GUEST = "guest",
|
22
|
+
MARKETPLACE_AUTHORIZATIONS = "marketplace_authorizations",
|
23
|
+
JUMP_IN = "jump_in",
|
24
|
+
BALANCE = "balance"
|
25
|
+
}
|
26
|
+
export { UserMenuProps, UserMenuI18N, UserMenuEventId };
|
@@ -0,0 +1,15 @@
|
|
1
|
+
var UserMenuEventId;
|
2
|
+
(function (UserMenuEventId) {
|
3
|
+
UserMenuEventId["ACTIVITY"] = "activity";
|
4
|
+
UserMenuEventId["ACCOUNT"] = "account";
|
5
|
+
UserMenuEventId["MY_ASSETS"] = "my_assets";
|
6
|
+
UserMenuEventId["PROFILE"] = "profile";
|
7
|
+
UserMenuEventId["SIGN_IN"] = "sign_in";
|
8
|
+
UserMenuEventId["SIGN_OUT"] = "sign_out";
|
9
|
+
UserMenuEventId["GUEST"] = "guest";
|
10
|
+
UserMenuEventId["MARKETPLACE_AUTHORIZATIONS"] = "marketplace_authorizations";
|
11
|
+
UserMenuEventId["JUMP_IN"] = "jump_in";
|
12
|
+
UserMenuEventId["BALANCE"] = "balance";
|
13
|
+
})(UserMenuEventId || (UserMenuEventId = {}));
|
14
|
+
export { UserMenuEventId };
|
15
|
+
//# sourceMappingURL=UserMenu.types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.types.js","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.types.ts"],"names":[],"mappings":"AAgCA,IAAK,eAWJ;AAXD,WAAK,eAAe;IAClB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,4EAAyD,CAAA;IACzD,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACrB,CAAC,EAXI,eAAe,KAAf,eAAe,QAWnB;AAED,OAAO,EAA+B,eAAe,EAAE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { UserMenuActionsProps } from "./UserMenuSignedIn.types";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta<UserMenuActionsProps>;
|
4
|
+
type Story = StoryObj<UserMenuActionsProps>;
|
5
|
+
declare const Sample: Story;
|
6
|
+
declare const Guest: Story;
|
7
|
+
declare const WithoutProfile: Story;
|
8
|
+
export default meta;
|
9
|
+
export { Sample, Guest, WithoutProfile };
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { UserMenuActions } from "./UserMenuSignedIn";
|
3
|
+
import { avatar } from "../../../data/avatar";
|
4
|
+
import { i18n } from "../UserMenu.i18n";
|
5
|
+
const meta = {
|
6
|
+
component: UserMenuActions,
|
7
|
+
title: "Decentraland UI/User Menu Actions",
|
8
|
+
tags: ["autodocs"],
|
9
|
+
argTypes: {},
|
10
|
+
args: {
|
11
|
+
onClickMarketplaceAuthorization: () => console.log,
|
12
|
+
onClickMyAssets: () => console.log,
|
13
|
+
onClickProfile: () => console.log,
|
14
|
+
onClickSignOut: () => console.log,
|
15
|
+
onClickAccount: () => console.log,
|
16
|
+
trackingId: "",
|
17
|
+
i18n: i18n,
|
18
|
+
},
|
19
|
+
render: (args) => _jsx(UserMenuActions, { ...args }),
|
20
|
+
};
|
21
|
+
const Sample = {
|
22
|
+
args: {
|
23
|
+
avatar: avatar,
|
24
|
+
},
|
25
|
+
};
|
26
|
+
const Guest = {
|
27
|
+
args: {
|
28
|
+
avatar: { ...avatar, hasClaimedName: false },
|
29
|
+
},
|
30
|
+
};
|
31
|
+
const WithoutProfile = {
|
32
|
+
args: {
|
33
|
+
address: avatar.ethAddress,
|
34
|
+
},
|
35
|
+
};
|
36
|
+
// eslint-disable-next-line import/no-default-export
|
37
|
+
export default meta;
|
38
|
+
export { Sample, Guest, WithoutProfile };
|
39
|
+
//# sourceMappingURL=UserMenuActions.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenuActions.stories.js","sourceRoot":"","sources":["../../../../src/components/UserMenu/UserMenuSignedIn/UserMenuActions.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAIvC,MAAM,IAAI,GAA+B;IACvC,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,mCAAmC;IAC1C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE;QACJ,+BAA+B,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;QAClD,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;QAClC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;QACjC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;QACjC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;QACjC,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,IAAI;KACX;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,eAAe,OAAK,IAAI,GAAI;CAChD,CAAA;AAID,MAAM,MAAM,GAAU;IACpB,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;KACf;CACF,CAAA;AAED,MAAM,KAAK,GAAU;IACnB,IAAI,EAAE;QACJ,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE;KAC7C;CACF,CAAA;AAED,MAAM,cAAc,GAAU;IAC5B,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC,UAAU;KAC3B;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { UserMenuActionsProps, UserMenuSignedInProps } from "./UserMenuSignedIn.types";
|
3
|
+
declare const UserMenuActions: (props: UserMenuActionsProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
declare const UserMenuSignedIn: React.MemoExoticComponent<(props: UserMenuSignedInProps) => import("react/jsx-runtime").JSX.Element>;
|
5
|
+
export { UserMenuSignedIn, UserMenuActions };
|