decentraland-ui2 0.0.2-9020206964.commit-054087b → 0.0.3-9857431499.commit-4197294
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 +12 -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 +17 -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 +17 -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 +14 -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 +56 -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 +15 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.stories.d.ts +21 -0
- package/dist/components/Modal/Modal.stories.js +91 -0
- package/dist/components/Modal/Modal.stories.js.map +1 -0
- package/dist/components/Modal/Modal.styled.d.ts +23 -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 +13 -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 +37 -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 +13 -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 +10 -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 +9 -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 +17 -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 +37 -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 +34 -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 +119 -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 +6 -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 +22 -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 +75 -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 +29 -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 +7 -5
- 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 @@
|
|
1
|
+
{"version":3,"file":"WorldsPermissionGrantedNotification.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Worlds/WorldsPermissionGrantedNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,uBAAuB,GAAG,GAAG,MAAM,CAAC,GAAG,CAC3C,aAAa,CACd,0BAA0B,CAAA;AAE3B,MAAM,oBAAoB,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,SAAS,CAAA;AAEnE,MAAM,mCAAmC,GAAG,KAAK,CAAC,IAAI,CACpD,CACE,KAAwE,EACxE,EAAE;IACF,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACtC,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA,CAAC,0DAA0D;IAClH,MAAM,oBAAoB,GAAG,UAAU,KAAK,QAAQ,CAAA;IACpD,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAA;IACzC,MAAM,IAAI,GAAG,oBAAoB;QAC/B,CAAC,CAAC,kBAAkB;QACpB,CAAC,CAAC,qBAAqB,CAAA;IACzB,OAAO,CACL,MAAC,gBAAgB,IACf,KAAK,EAAE,KAAC,IAAI,KAAG,EACf,SAAS,EAAE,YAAY,CAAC,SAAS,EACjC,KAAK,EAAE,CAAC,YAAY,CAAC,IAAI,EACzB,MAAM,EAAE,MAAM,aAEd,KAAC,qBAAqB,cACnB,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,GAC/C,EACxB,KAAC,2BAA2B,IAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,MAAM,YAC1D,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,EAAE;oBAC3C,KAAK,EAAE,CACL,KAAC,IAAI,IACH,IAAI,EACF,oBAAoB;4BAClB,CAAC,CAAC,GAAG,oBAAoB,GAAG,KAAK,EAAE;4BACnC,CAAC,CAAC,uBAAuB,EAE7B,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,YAAY,YAEf,KAAK,GACD,CACR;iBACF,CAAC,GAC0B,IACb,CACpB,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,EAAE,mCAAmC,EAAE,CAAA"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { CommonNotificationProps, WorldsPermissionRevokedNotificationProps } from "../../types";
|
3
|
+
declare const WorldsPermissionRevokedNotification: React.MemoExoticComponent<(props: CommonNotificationProps<WorldsPermissionRevokedNotificationProps>) => JSX.Element>;
|
4
|
+
export { WorldsPermissionRevokedNotification };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const i18n: {
|
2
|
+
en: {
|
3
|
+
title: string;
|
4
|
+
accessTitle: string;
|
5
|
+
access: string;
|
6
|
+
deployment: string;
|
7
|
+
streaming: string;
|
8
|
+
};
|
9
|
+
es: {
|
10
|
+
title: string;
|
11
|
+
accessTitle: string;
|
12
|
+
access: string;
|
13
|
+
deployment: string;
|
14
|
+
streaming: string;
|
15
|
+
};
|
16
|
+
zh: {
|
17
|
+
title: string;
|
18
|
+
accessTitle: string;
|
19
|
+
access: string;
|
20
|
+
deployment: string;
|
21
|
+
streaming: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export { i18n };
|
@@ -0,0 +1,25 @@
|
|
1
|
+
const i18n = {
|
2
|
+
en: {
|
3
|
+
title: "World Permission Revoked",
|
4
|
+
accessTitle: "World Access Revoked",
|
5
|
+
access: "You have been revoked the permission to access World {world}",
|
6
|
+
deployment: "The owner of the World {world} has revoked your permission to deploy in their world",
|
7
|
+
streaming: "The owner of the World {world} has revoked your permission to stream in their world",
|
8
|
+
},
|
9
|
+
es: {
|
10
|
+
title: "Permiso para mundo revocado",
|
11
|
+
accessTitle: "Acceso a Mundo revocado",
|
12
|
+
access: "Te han removido el permiso para acceder al mundo {world}",
|
13
|
+
deployment: "El propietario del mundo {world} ha revocado tu permiso para deployar en su mundo",
|
14
|
+
streaming: "El propietario del mundo {world} ha revocado tu permiso para transmitir en su mundo",
|
15
|
+
},
|
16
|
+
zh: {
|
17
|
+
title: "世界许可被撤销",
|
18
|
+
accessTitle: "世界访问被撤销",
|
19
|
+
access: "您已被撤销访问世界{workd}的许可",
|
20
|
+
deployment: "世界所有者{world}已撤销您在其世界中部署的许可",
|
21
|
+
streaming: "世界的所有者{world}已撤销了您在世界上流媒体的允许",
|
22
|
+
},
|
23
|
+
};
|
24
|
+
export { i18n };
|
25
|
+
//# sourceMappingURL=WorldsPermissionRevokedNotification.i18n.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WorldsPermissionRevokedNotification.i18n.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE;QACF,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE,sBAAsB;QACnC,MAAM,EAAE,8DAA8D;QACtE,UAAU,EACR,qFAAqF;QACvF,SAAS,EACP,qFAAqF;KACxF;IACD,EAAE,EAAE;QACF,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,yBAAyB;QACtC,MAAM,EAAE,0DAA0D;QAClE,UAAU,EACR,mFAAmF;QACrF,SAAS,EACP,qFAAqF;KACxF;IACD,EAAE,EAAE;QACF,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,SAAS;QACtB,MAAM,EAAE,qBAAqB;QAC7B,UAAU,EAAE,4BAA4B;QACxC,SAAS,EAAE,8BAA8B;KAC1C;CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { i18n } from "./WorldsPermissionRevokedNotification.i18n";
|
4
|
+
import { AccessRestrictedIcon, PermissionRevokedIcon } from "../../../Icon";
|
5
|
+
import { NotificationItem } from "../../NotificationItem";
|
6
|
+
import { NotificationItemDescription, NotificationItemTitle, } from "../../NotificationItem.styled";
|
7
|
+
import { replaceWithValues } from "../../utils";
|
8
|
+
const WorldsPermissionRevokedNotification = React.memo((props) => {
|
9
|
+
const { notification, locale } = props;
|
10
|
+
const permission = notification.metadata.permissions[0];
|
11
|
+
const isAccessNotification = permission === "access";
|
12
|
+
const Icon = isAccessNotification
|
13
|
+
? AccessRestrictedIcon
|
14
|
+
: PermissionRevokedIcon;
|
15
|
+
return (_jsxs(NotificationItem, { image: _jsx(Icon, {}), timestamp: notification.timestamp, isNew: !notification.read, locale: locale, children: [_jsx(NotificationItemTitle, { children: isAccessNotification ? i18n[locale].accessTitle : i18n[locale].title }), _jsx(NotificationItemDescription, { color: "inherit", underline: "none", children: replaceWithValues(i18n[locale][permission], {
|
16
|
+
world: _jsx("strong", { children: notification.metadata.world }),
|
17
|
+
}) })] }));
|
18
|
+
});
|
19
|
+
export { WorldsPermissionRevokedNotification };
|
20
|
+
//# sourceMappingURL=WorldsPermissionRevokedNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WorldsPermissionRevokedNotification.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Worlds/WorldsPermissionRevokedNotification.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,+BAA+B,CAAA;AAKtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,mCAAmC,GAAG,KAAK,CAAC,IAAI,CACpD,CACE,KAAwE,EACxE,EAAE;IACF,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IACtC,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;IACvD,MAAM,oBAAoB,GAAG,UAAU,KAAK,QAAQ,CAAA;IACpD,MAAM,IAAI,GAAG,oBAAoB;QAC/B,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,qBAAqB,CAAA;IAEzB,OAAO,CACL,MAAC,gBAAgB,IACf,KAAK,EAAE,KAAC,IAAI,KAAG,EACf,SAAS,EAAE,YAAY,CAAC,SAAS,EACjC,KAAK,EAAE,CAAC,YAAY,CAAC,IAAI,EACzB,MAAM,EAAE,MAAM,aAEd,KAAC,qBAAqB,cACnB,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,GAC/C,EACxB,KAAC,2BAA2B,IAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,MAAM,YAC1D,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,EAAE;oBAC3C,KAAK,EAAE,2BAAS,YAAY,CAAC,QAAQ,CAAC,KAAK,GAAU;iBACtD,CAAC,GAC0B,IACb,CACpB,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,EAAE,mCAAmC,EAAE,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { EventsStartedNotification } from "./Events/EventStartedNotification";
|
2
|
+
import { EventsStartsSoonNotification } from "./Events/EventStartsSoonNotification";
|
3
|
+
import { GovernanceAnnouncementNotification } from "./Governance/GovernanceAnnouncementNotification";
|
4
|
+
import { GovernanceAuthoredProposalFinishedNotification } from "./Governance/GovernanceAuthoredProposalFinishedNotification";
|
5
|
+
import { GovernanceCoauthorRequestedNotification } from "./Governance/GovernanceCoauthorRequestedNotification";
|
6
|
+
import { GovernanceNewCommentOnProjectUpdateNotification } from "./Governance/GovernanceNewCommentOnProjectUpdateNotification";
|
7
|
+
import { GovernanceNewCommentOnProposalNotification } from "./Governance/GovernanceNewCommentOnProposalNotification";
|
8
|
+
import { GovernancePitchPassedNotification } from "./Governance/GovernancePitchPassedNotification";
|
9
|
+
import { GovernanceProposalEnactedNotification } from "./Governance/GovernanceProposalEnactedNotification";
|
10
|
+
import { GovernanceTenderPassedNotification } from "./Governance/GovernanceTenderPassedNotification";
|
11
|
+
import { GovernanceVotingEndedVoterNotification } from "./Governance/GovernanceVotingEndedVoterNotification";
|
12
|
+
import { LandRentalEndedNotification } from "./Land/LandRentalEndedNotification";
|
13
|
+
import { LandRentedNotification } from "./Land/LandRentedNotification";
|
14
|
+
import { BidAcceptedNotification } from "./Marketplace/BidAcceptedNotification";
|
15
|
+
import { BidReceivedNotification } from "./Marketplace/BidReceivedNotification";
|
16
|
+
import { ItemSoldNotification } from "./Marketplace/ItemSoldNotification";
|
17
|
+
import { RoyaltiesEarnedNotification } from "./Marketplace/RoyaltiesEarnedNotification";
|
18
|
+
import { RewardAssignedNotification } from "./Reward/RewardAssignedNotification";
|
19
|
+
import { WorldsAccessRestoredNotification } from "./Worlds/WorldsAccessRestoredNotification";
|
20
|
+
import { WorldsAccessRestrictedNotification } from "./Worlds/WorldsAccessRestrictedNotification";
|
21
|
+
import { WorldsMissingResourcesNotification } from "./Worlds/WorldsMissingResourcesNotification";
|
22
|
+
import { WorldsPermissionGrantedNotification } from "./Worlds/WorldsPermissionGrantedNotification";
|
23
|
+
import { WorldsPermissionRevokedNotification } from "./Worlds/WorldsPermissionRevokedNotification";
|
24
|
+
export { WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, BidAcceptedNotification, BidReceivedNotification, ItemSoldNotification, RoyaltiesEarnedNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProposalNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceProposalEnactedNotification, GovernanceVotingEndedVoterNotification, GovernancePitchPassedNotification, GovernanceTenderPassedNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, EventsStartsSoonNotification, EventsStartedNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, };
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { EventsStartedNotification } from "./Events/EventStartedNotification";
|
2
|
+
import { EventsStartsSoonNotification } from "./Events/EventStartsSoonNotification";
|
3
|
+
import { GovernanceAnnouncementNotification } from "./Governance/GovernanceAnnouncementNotification";
|
4
|
+
import { GovernanceAuthoredProposalFinishedNotification } from "./Governance/GovernanceAuthoredProposalFinishedNotification";
|
5
|
+
import { GovernanceCoauthorRequestedNotification } from "./Governance/GovernanceCoauthorRequestedNotification";
|
6
|
+
import { GovernanceNewCommentOnProjectUpdateNotification } from "./Governance/GovernanceNewCommentOnProjectUpdateNotification";
|
7
|
+
import { GovernanceNewCommentOnProposalNotification } from "./Governance/GovernanceNewCommentOnProposalNotification";
|
8
|
+
import { GovernancePitchPassedNotification } from "./Governance/GovernancePitchPassedNotification";
|
9
|
+
import { GovernanceProposalEnactedNotification } from "./Governance/GovernanceProposalEnactedNotification";
|
10
|
+
import { GovernanceTenderPassedNotification } from "./Governance/GovernanceTenderPassedNotification";
|
11
|
+
import { GovernanceVotingEndedVoterNotification } from "./Governance/GovernanceVotingEndedVoterNotification";
|
12
|
+
import { LandRentalEndedNotification } from "./Land/LandRentalEndedNotification";
|
13
|
+
import { LandRentedNotification } from "./Land/LandRentedNotification";
|
14
|
+
import { BidAcceptedNotification } from "./Marketplace/BidAcceptedNotification";
|
15
|
+
import { BidReceivedNotification } from "./Marketplace/BidReceivedNotification";
|
16
|
+
import { ItemSoldNotification } from "./Marketplace/ItemSoldNotification";
|
17
|
+
import { RoyaltiesEarnedNotification } from "./Marketplace/RoyaltiesEarnedNotification";
|
18
|
+
import { RewardAssignedNotification } from "./Reward/RewardAssignedNotification";
|
19
|
+
import { WorldsAccessRestoredNotification } from "./Worlds/WorldsAccessRestoredNotification";
|
20
|
+
import { WorldsAccessRestrictedNotification } from "./Worlds/WorldsAccessRestrictedNotification";
|
21
|
+
import { WorldsMissingResourcesNotification } from "./Worlds/WorldsMissingResourcesNotification";
|
22
|
+
import { WorldsPermissionGrantedNotification } from "./Worlds/WorldsPermissionGrantedNotification";
|
23
|
+
import { WorldsPermissionRevokedNotification } from "./Worlds/WorldsPermissionRevokedNotification";
|
24
|
+
export { WorldsAccessRestoredNotification, WorldsAccessRestrictedNotification, WorldsMissingResourcesNotification, BidAcceptedNotification, BidReceivedNotification, ItemSoldNotification, RoyaltiesEarnedNotification, GovernanceAnnouncementNotification, GovernanceAuthoredProposalFinishedNotification, GovernanceCoauthorRequestedNotification, GovernanceNewCommentOnProposalNotification, GovernanceNewCommentOnProjectUpdateNotification, GovernanceProposalEnactedNotification, GovernanceVotingEndedVoterNotification, GovernancePitchPassedNotification, GovernanceTenderPassedNotification, LandRentalEndedNotification, LandRentedNotification, RewardAssignedNotification, EventsStartsSoonNotification, EventsStartedNotification, WorldsPermissionGrantedNotification, WorldsPermissionRevokedNotification, };
|
25
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Notifications/NotificationTypes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AACnF,OAAO,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAA;AACpG,OAAO,EAAE,8CAA8C,EAAE,MAAM,6DAA6D,CAAA;AAC5H,OAAO,EAAE,uCAAuC,EAAE,MAAM,sDAAsD,CAAA;AAC9G,OAAO,EAAE,+CAA+C,EAAE,MAAM,8DAA8D,CAAA;AAC9H,OAAO,EAAE,0CAA0C,EAAE,MAAM,yDAAyD,CAAA;AACpH,OAAO,EAAE,iCAAiC,EAAE,MAAM,gDAAgD,CAAA;AAClG,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAA;AAC1G,OAAO,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAA;AACpG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAA;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAChF,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAA;AAC5F,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AAChG,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAA;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAA;AAElG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,2BAA2B,EAC3B,kCAAkC,EAClC,8CAA8C,EAC9C,uCAAuC,EACvC,0CAA0C,EAC1C,+CAA+C,EAC/C,qCAAqC,EACrC,sCAAsC,EACtC,iCAAiC,EACjC,kCAAkC,EAClC,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mCAAmC,EACnC,mCAAmC,GACpC,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React, { useCallback, useMemo, useState } from "react";
|
3
|
+
import { NotificationsFeed } from "./NotificationsFeed";
|
4
|
+
import { NotificationBellActiveIcon, NotificationBellIcon } from "../Icon";
|
5
|
+
import { NotificationIconContainer } from "./Notifications.styled";
|
6
|
+
const Notifications = React.memo((props) => {
|
7
|
+
const { isOpen, items, isLoading, locale, isOnboarding, activeTab, renderProfile, onClick, onChangeTab, onBegin, onClose, } = props;
|
8
|
+
const newNotificationsCount = useMemo(() => {
|
9
|
+
return items.filter((notification) => !notification.read).length;
|
10
|
+
}, [items]);
|
11
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
12
|
+
const handleClick = useCallback((event) => {
|
13
|
+
onClick(event);
|
14
|
+
setAnchorEl(event.currentTarget);
|
15
|
+
}, []);
|
16
|
+
const handleClose = useCallback((event) => {
|
17
|
+
onClose(event);
|
18
|
+
setAnchorEl(null);
|
19
|
+
}, []);
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx(NotificationIconContainer, { active: newNotificationsCount > 0, onClick: handleClick, badgeContent: newNotificationsCount, color: "primary", anchorOrigin: {
|
21
|
+
vertical: "top",
|
22
|
+
horizontal: "right",
|
23
|
+
}, invisible: newNotificationsCount === 0, children: !isOpen ? (_jsx(NotificationBellIcon, { fontSize: "large", color: "primary" })) : (_jsx(NotificationBellActiveIcon, { fontSize: "large", color: "primary" })) }), isOpen && (_jsx(NotificationsFeed, { isOpen: isOpen, items: items, isLoading: isLoading, locale: locale, isOnboarding: isOnboarding, activeTab: activeTab, onChangeTab: onChangeTab, onBegin: onBegin, onClose: handleClose, renderProfile: renderProfile, anchorEl: anchorEl }))] }));
|
24
|
+
});
|
25
|
+
export { Notifications };
|
26
|
+
//# sourceMappingURL=Notifications.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAElE,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAyB,EAAE,EAAE;IAC7D,MAAM,EACJ,MAAM,EACN,KAAK,EACL,SAAS,EACT,MAAM,EACN,YAAY,EACZ,SAAS,EACT,aAAa,EACb,OAAO,EACP,WAAW,EACX,OAAO,EACP,OAAO,GACR,GAA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S,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,GAClB,CACH,IACA,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { NotificationsProps } from "./Notifications.types";
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
+
declare const meta: Meta;
|
4
|
+
type Story = StoryObj<NotificationsProps>;
|
5
|
+
declare const WithoutNewNotifications: Story;
|
6
|
+
declare const WithNewNotifications: Story;
|
7
|
+
declare const Onboarding: Story;
|
8
|
+
declare const OpenLoading: Story;
|
9
|
+
declare const OpenNotLoadingButEmpty: Story;
|
10
|
+
declare const EventsNotifications: Story;
|
11
|
+
declare const GovernanceNotifications: Story;
|
12
|
+
declare const LandNotifications: Story;
|
13
|
+
declare const MarketplaceNotifications: Story;
|
14
|
+
declare const RewardsNotifications: Story;
|
15
|
+
declare const WorldsNotifications: Story;
|
16
|
+
declare const OpenNotLoading: Story;
|
17
|
+
declare const OnlySeen: Story;
|
18
|
+
export default meta;
|
19
|
+
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useState } from "react";
|
3
|
+
import { Box } from "@mui/material";
|
4
|
+
import { Notifications } from "./Notifications";
|
5
|
+
import { NotificationActiveTab } from "./types";
|
6
|
+
import { allTypeOfNotifications, bidAcceptedNotificationData, bidReceivedNotificationPropsData, eventStartedNotificationData, eventStartsSoonFutureStartNotificationData, eventStartsSoonPastStartNotificationData, governanceAnnouncementNotificationData, governanceAuthoredProposalFinishedNotificationData, governanceCoauthorRequestedNotificationData, governanceNewCommentOnProjectUpdateNotificationData, governanceNewCommentOnProposalNotificationData, governancePitchPassedNotificationData, governanceProposalEnactedNotificationData, governanceTenderPassedNotificationData, governanceVotingEndedVoterNotificationData, itemSoldNotificationPropsData, landRentalEndedNotificationData, landRentedNotificationData, rewardAssignedNotificationData, royalitesEarnedNotificationPropsData, worldsAccessRestoredNotificationData, worldsAccessRestrictedNotificationData, worldsMissingResourcesNotificationData, worldsPermissionGrantedNotificationPropsData, worldsPermissionRevokedNotificationData, } from "../../data/notifications";
|
7
|
+
import { shorten } from "../AddressField/utils";
|
8
|
+
const meta = {
|
9
|
+
component: Notifications,
|
10
|
+
title: "Decentraland UI/Notifications Toggle",
|
11
|
+
tags: ["autodocs"],
|
12
|
+
argTypes: {},
|
13
|
+
render: (args) => {
|
14
|
+
const [tab, setTab] = useState(NotificationActiveTab.NEWEST);
|
15
|
+
const [open, setOpen] = useState(false);
|
16
|
+
return (_jsx(Box, { sx: {
|
17
|
+
height: "400px",
|
18
|
+
width: "400px",
|
19
|
+
backgroundColor: "lightgray",
|
20
|
+
}, children: _jsx(Notifications, { isOpen: open, isLoading: false, isOnboarding: false, items: [], locale: "en", activeTab: tab, onChangeTab: (_e, newTab) => setTab(newTab), onClick: () => setOpen(!open), onBegin: () => console.log("Begin"), onClose: () => setOpen(open), ...args }) }));
|
21
|
+
},
|
22
|
+
};
|
23
|
+
const WithoutNewNotifications = {
|
24
|
+
name: "Without new notifications",
|
25
|
+
args: {
|
26
|
+
items: [],
|
27
|
+
},
|
28
|
+
};
|
29
|
+
const WithNewNotifications = {
|
30
|
+
name: "With new notifications",
|
31
|
+
args: {
|
32
|
+
items: [itemSoldNotificationPropsData],
|
33
|
+
},
|
34
|
+
};
|
35
|
+
const Onboarding = {
|
36
|
+
name: "Onboarding",
|
37
|
+
args: {
|
38
|
+
isOnboarding: true,
|
39
|
+
items: [eventStartedNotificationData],
|
40
|
+
},
|
41
|
+
};
|
42
|
+
const OpenLoading = {
|
43
|
+
name: "Open but loading",
|
44
|
+
args: {
|
45
|
+
isLoading: true,
|
46
|
+
items: [],
|
47
|
+
},
|
48
|
+
};
|
49
|
+
const OpenNotLoadingButEmpty = {
|
50
|
+
name: "Open not loading but empty",
|
51
|
+
args: {
|
52
|
+
items: [],
|
53
|
+
},
|
54
|
+
};
|
55
|
+
const EventsNotifications = {
|
56
|
+
name: "Events Notifications",
|
57
|
+
args: {
|
58
|
+
items: [
|
59
|
+
eventStartedNotificationData,
|
60
|
+
{ ...eventStartsSoonFutureStartNotificationData, read: false },
|
61
|
+
eventStartsSoonPastStartNotificationData,
|
62
|
+
],
|
63
|
+
},
|
64
|
+
};
|
65
|
+
const GovernanceNotifications = {
|
66
|
+
name: "Governance Notifications",
|
67
|
+
args: {
|
68
|
+
items: [
|
69
|
+
{ ...governanceAnnouncementNotificationData, read: false },
|
70
|
+
governanceAuthoredProposalFinishedNotificationData,
|
71
|
+
governanceCoauthorRequestedNotificationData,
|
72
|
+
governanceNewCommentOnProjectUpdateNotificationData,
|
73
|
+
governanceNewCommentOnProposalNotificationData,
|
74
|
+
governancePitchPassedNotificationData,
|
75
|
+
governanceProposalEnactedNotificationData,
|
76
|
+
governanceTenderPassedNotificationData,
|
77
|
+
governanceVotingEndedVoterNotificationData,
|
78
|
+
],
|
79
|
+
},
|
80
|
+
};
|
81
|
+
const LandNotifications = {
|
82
|
+
name: "Land Notifications",
|
83
|
+
args: {
|
84
|
+
items: [
|
85
|
+
{ ...landRentalEndedNotificationData, read: false },
|
86
|
+
landRentedNotificationData,
|
87
|
+
],
|
88
|
+
renderProfile: (address) => shorten(address),
|
89
|
+
},
|
90
|
+
};
|
91
|
+
const MarketplaceNotifications = {
|
92
|
+
name: "Marketplace Notifications",
|
93
|
+
args: {
|
94
|
+
items: [
|
95
|
+
{ ...bidAcceptedNotificationData, read: false },
|
96
|
+
bidReceivedNotificationPropsData,
|
97
|
+
itemSoldNotificationPropsData,
|
98
|
+
royalitesEarnedNotificationPropsData,
|
99
|
+
],
|
100
|
+
},
|
101
|
+
};
|
102
|
+
const RewardsNotifications = {
|
103
|
+
name: "Rewards Notifications",
|
104
|
+
args: {
|
105
|
+
items: [rewardAssignedNotificationData],
|
106
|
+
},
|
107
|
+
};
|
108
|
+
const WorldsNotifications = {
|
109
|
+
name: "Worlds Notifications",
|
110
|
+
args: {
|
111
|
+
items: [
|
112
|
+
worldsAccessRestoredNotificationData,
|
113
|
+
worldsAccessRestrictedNotificationData,
|
114
|
+
worldsMissingResourcesNotificationData,
|
115
|
+
worldsPermissionGrantedNotificationPropsData,
|
116
|
+
worldsPermissionRevokedNotificationData,
|
117
|
+
],
|
118
|
+
},
|
119
|
+
};
|
120
|
+
const OpenNotLoading = {
|
121
|
+
name: "Open not loading",
|
122
|
+
args: {
|
123
|
+
items: allTypeOfNotifications,
|
124
|
+
},
|
125
|
+
};
|
126
|
+
const OnlySeen = {
|
127
|
+
name: "Only seen",
|
128
|
+
args: {
|
129
|
+
items: allTypeOfNotifications.map((n) => {
|
130
|
+
const pastStartDate = new Date();
|
131
|
+
pastStartDate.setFullYear(pastStartDate.getFullYear() - 1);
|
132
|
+
return { ...n, read: true, timestamp: pastStartDate.getTime() };
|
133
|
+
}),
|
134
|
+
},
|
135
|
+
};
|
136
|
+
// eslint-disable-next-line import/no-default-export
|
137
|
+
export default meta;
|
138
|
+
export { WithoutNewNotifications, WithNewNotifications, Onboarding, OpenLoading, OpenNotLoadingButEmpty, EventsNotifications, GovernanceNotifications, LandNotifications, MarketplaceNotifications, RewardsNotifications, WorldsNotifications, OpenNotLoading, OnlySeen, };
|
139
|
+
//# sourceMappingURL=Notifications.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Notifications.stories.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.stories.tsx"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,IAAI,EAAE;QACJ,KAAK,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,MAAM,aAAa,GAAG,IAAI,IAAI,EAAE,CAAA;YAChC,aAAa,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAA;YAC1D,OAAO,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,CAAC,OAAO,EAAE,EAAE,CAAA;QACjE,CAAC,CAAC;KACH;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,QAAQ,GACT,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const NotificationIconContainer: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
3
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
4
|
+
}, "className" | "children" | "color" | "style" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "max" | "components" | "componentsProps" | "anchorOrigin" | "badgeContent" | "invisible" | "overlap" | "showZero"> & {
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
6
|
+
} & {
|
7
|
+
active: boolean;
|
8
|
+
}, {}, {}>;
|
9
|
+
export { NotificationIconContainer };
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { keyframes } from "@emotion/react";
|
2
|
+
import styled from "@emotion/styled";
|
3
|
+
import { Badge } from "@mui/material";
|
4
|
+
const shake = keyframes `
|
5
|
+
0% {
|
6
|
+
transform: translate(1px, 1px) rotate(0deg);
|
7
|
+
}
|
8
|
+
10% {
|
9
|
+
transform: translate(-1px, -2px) rotate(-1deg);
|
10
|
+
}
|
11
|
+
20% {
|
12
|
+
transform: translate(-2px, 0px) rotate(1deg);
|
13
|
+
}
|
14
|
+
30% {
|
15
|
+
transform: translate(2px, 2px) rotate(0deg);
|
16
|
+
}
|
17
|
+
40% {
|
18
|
+
transform: translate(1px, -1px) rotate(1deg);
|
19
|
+
}
|
20
|
+
50% {
|
21
|
+
transform: translate(-1px, 2px) rotate(-1deg);
|
22
|
+
}
|
23
|
+
60% {
|
24
|
+
transform: translate(-2px, 1px) rotate(0deg);
|
25
|
+
}
|
26
|
+
70% {
|
27
|
+
transform: translate(2px, 1px) rotate(-1deg);
|
28
|
+
}
|
29
|
+
80% {
|
30
|
+
transform: translate(-1px, -1px) rotate(1deg);
|
31
|
+
}
|
32
|
+
90% {
|
33
|
+
transform: translate(1px, 2px) rotate(0deg);
|
34
|
+
}
|
35
|
+
100% {
|
36
|
+
transform: translate(1px, -2px) rotate(-1deg);
|
37
|
+
}`;
|
38
|
+
const NotificationIconContainer = styled(Badge)((props) => {
|
39
|
+
let otherStyles = {};
|
40
|
+
if (props.active) {
|
41
|
+
otherStyles = {
|
42
|
+
animation: `${shake} 0.8s`,
|
43
|
+
animationIterationCount: 4,
|
44
|
+
};
|
45
|
+
}
|
46
|
+
return {
|
47
|
+
...otherStyles,
|
48
|
+
"&:hover": {
|
49
|
+
backgroundColor: "transparent",
|
50
|
+
},
|
51
|
+
"& .MuiBadge-badge": {
|
52
|
+
transform: "scale(0.8) translate(40%, 60%)",
|
53
|
+
},
|
54
|
+
};
|
55
|
+
});
|
56
|
+
export { NotificationIconContainer };
|
57
|
+
//# sourceMappingURL=Notifications.styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Notifications.styled.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErC,MAAM,KAAK,GAAG,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCnB,CAAA;AAEJ,MAAM,yBAAyB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAEhD,EAAE,EAAE;IACH,IAAI,WAAW,GAAG,EAAE,CAAA;IACpB,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,WAAW,GAAG;YACZ,SAAS,EAAE,GAAG,KAAK,OAAO;YAC1B,uBAAuB,EAAE,CAAC;SAC3B,CAAA;KACF;IACD,OAAO;QACL,GAAG,WAAW;QACd,SAAS,EAAE;YACT,eAAe,EAAE,aAAa;SAC/B;QACD,mBAAmB,EAAE;YACnB,SAAS,EAAE,gCAAgC;SAC5C;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ModalProps } from "@mui/material";
|
3
|
+
import { DCLNotificationProps, NotificationActiveTab, NotificationLocale } from "./types";
|
4
|
+
type NotificationsProps = {
|
5
|
+
isOpen: boolean;
|
6
|
+
items: DCLNotificationProps[];
|
7
|
+
isLoading: boolean;
|
8
|
+
locale: NotificationLocale;
|
9
|
+
isOnboarding: boolean;
|
10
|
+
activeTab: NotificationActiveTab;
|
11
|
+
renderProfile?: (address: string) => JSX.Element | string | null;
|
12
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
13
|
+
onChangeTab: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, newActiveTab: NotificationActiveTab) => void;
|
14
|
+
onBegin: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
15
|
+
onClose: (event: React.MouseEvent<HTMLElement> | MouseEvent, data?: ModalProps) => void;
|
16
|
+
};
|
17
|
+
export { NotificationsProps };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Notifications.types.js","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.types.tsx"],"names":[],"mappings":""}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const i18n: {
|
2
|
+
en: {
|
3
|
+
onboarding: {
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
button: string;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
es: {
|
10
|
+
onboarding: {
|
11
|
+
title: string;
|
12
|
+
description: string;
|
13
|
+
button: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
zh: {
|
17
|
+
onboarding: {
|
18
|
+
title: string;
|
19
|
+
description: string;
|
20
|
+
button: string;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export { i18n };
|
@@ -0,0 +1,25 @@
|
|
1
|
+
const i18n = {
|
2
|
+
en: {
|
3
|
+
onboarding: {
|
4
|
+
title: "Welcome to Decentraland Notifications",
|
5
|
+
description: "Never miss a thing! Now, you'll receive a notification each time something relevant happens with your account.",
|
6
|
+
button: "Let's begin",
|
7
|
+
},
|
8
|
+
},
|
9
|
+
es: {
|
10
|
+
onboarding: {
|
11
|
+
title: "Tus Notificaciones de Decentraland",
|
12
|
+
description: "¡No te pierdas nada nunca más! Ahora recibirás una notificación cada vez que ocurra algo relevante en tu cuenta.",
|
13
|
+
button: "Continuar",
|
14
|
+
},
|
15
|
+
},
|
16
|
+
zh: {
|
17
|
+
onboarding: {
|
18
|
+
title: "欢迎访问 Decentraland 通知",
|
19
|
+
description: "不再错过任何信息!现在,每当您的账户发生相关事件,您都会收到通知。",
|
20
|
+
button: "讓我們開始",
|
21
|
+
},
|
22
|
+
},
|
23
|
+
};
|
24
|
+
export { i18n };
|
25
|
+
//# sourceMappingURL=NotificationsFeed.i18n.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotificationsFeed.i18n.js","sourceRoot":"","sources":["../../../src/components/Notifications/NotificationsFeed.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE;QACF,UAAU,EAAE;YACV,KAAK,EAAE,uCAAuC;YAC9C,WAAW,EACT,gHAAgH;YAClH,MAAM,EAAE,aAAa;SACtB;KACF;IACD,EAAE,EAAE;QACF,UAAU,EAAE;YACV,KAAK,EAAE,oCAAoC;YAC3C,WAAW,EACT,kHAAkH;YACpH,MAAM,EAAE,WAAW;SACpB;KACF;IACD,EAAE,EAAE;QACF,UAAU,EAAE;YACV,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,mCAAmC;YACrC,MAAM,EAAE,OAAO;SAChB;KACF;CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
import React, { useEffect, useMemo } from "react";
|
3
|
+
import CircleNotificationsRoundedIcon from "@mui/icons-material/CircleNotificationsRounded";
|
4
|
+
import { differenceInHours } from "date-fns";
|
5
|
+
import { Button, CircularProgress } from "@mui/material";
|
6
|
+
import { i18n } from "./NotificationsFeed.i18n";
|
7
|
+
import { NotificationFeedTabs } from "./NotificationsFeedTabs";
|
8
|
+
import { Mobile, NotMobile, useMobileMediaQuery } from "../Media";
|
9
|
+
import { Modal } from "../Modal";
|
10
|
+
import { EmptyViewDescription, EmptyViewTitle, FeedContainer, LoadingContainer, NotificationFeedContainer, NotificationFeedModalContainer, OnboardingWrapper, } from "./NotificationsFeed.styled";
|
11
|
+
const Onboarding = ({ locale, onBegin, }) => (_jsx(FeedContainer, { children: _jsxs(OnboardingWrapper, { children: [_jsx(CircleNotificationsRoundedIcon, { sx: { fontSize: 120 } }), _jsx(EmptyViewTitle, { color: "text.primary", children: i18n[locale].onboarding.title }), _jsx(EmptyViewDescription, { children: i18n[locale].onboarding.description }), _jsx(Button, { variant: "outlined", size: "small", color: "inherit", onClick: onBegin, children: i18n[locale].onboarding.button })] }) }));
|
12
|
+
const NotificationsFeed = React.memo((props) => {
|
13
|
+
const { items, isLoading, locale, isOnboarding, activeTab, isOpen, anchorEl, renderProfile, onChangeTab, onBegin, onClose, } = props;
|
14
|
+
const isMobile = useMobileMediaQuery();
|
15
|
+
const unreadNotifications = useMemo(() => items.filter((notification) => !notification.read), [items]);
|
16
|
+
const previousNotifications = useMemo(() => items.filter((notification) => {
|
17
|
+
const diff = differenceInHours(notification.timestamp, new Date());
|
18
|
+
return notification.read && diff >= -48 && diff <= 0;
|
19
|
+
}), [items]);
|
20
|
+
const readNotifications = useMemo(() => items.filter((notification) => notification.read &&
|
21
|
+
!previousNotifications.find(({ id }) => id === notification.id)), [items, previousNotifications]);
|
22
|
+
useEffect(() => {
|
23
|
+
function handleClickOutside(event) {
|
24
|
+
const element = document.querySelector(".notifications-feed");
|
25
|
+
if (element && !element.contains(event.target)) {
|
26
|
+
event.preventDefault();
|
27
|
+
event.stopPropagation();
|
28
|
+
onClose(event);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
if (isOpen) {
|
32
|
+
document.addEventListener("mousedown", handleClickOutside);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
36
|
+
}
|
37
|
+
return () => {
|
38
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
39
|
+
};
|
40
|
+
}, [isOpen]);
|
41
|
+
return (_jsxs(_Fragment, { children: [_jsx(Mobile, { children: _jsx(Modal, { open: isMobile && isOpen, onClose: onClose, children: isOnboarding ? (_jsx(Onboarding, { locale: locale, onBegin: onBegin })) : (_jsx(NotificationFeedModalContainer, { children: _jsx(NotificationFeedTabs, { locale: locale, previousNotifications: previousNotifications, readNotifications: readNotifications, unreadNotifications: unreadNotifications, onChangeTab: onChangeTab, activeTab: activeTab, isModal: true, renderProfile: renderProfile }) })) }) }), _jsx(NotMobile, { children: _jsx(NotificationFeedContainer, { anchorEl: anchorEl, open: !!isOpen, onClose: onClose, anchorOrigin: {
|
42
|
+
vertical: "bottom",
|
43
|
+
horizontal: "center",
|
44
|
+
}, transformOrigin: {
|
45
|
+
vertical: "top",
|
46
|
+
horizontal: "center",
|
47
|
+
}, elevation: 24, children: isLoading ? (_jsx(LoadingContainer, { children: _jsx(CircularProgress, { size: 20 }) })) : isOnboarding ? (_jsx(Onboarding, { locale: locale, onBegin: onBegin })) : (_jsx(NotificationFeedTabs, { locale: locale, previousNotifications: previousNotifications, readNotifications: readNotifications, unreadNotifications: unreadNotifications, onChangeTab: onChangeTab, activeTab: activeTab, renderProfile: renderProfile })) }) })] }));
|
48
|
+
});
|
49
|
+
export { NotificationsFeed };
|
50
|
+
//# sourceMappingURL=NotificationsFeed.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotificationsFeed.js","sourceRoot":"","sources":["../../../src/components/Notifications/NotificationsFeed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,8BAA8B,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,yBAAyB,EACzB,8BAA8B,EAC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