@ludo.ninja/components 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CreationCard/{CardHead.js → CardHead.jsx} +22 -15
- package/dist/components/CreationCard/{index.js → index.jsx} +19 -24
- package/dist/components/addWalletsRedirectPage/{index.js → index.jsx} +18 -11
- package/dist/components/banner/{index.js → index.jsx} +23 -17
- package/dist/components/base/Meta/index.jsx +64 -0
- package/dist/components/base/NoSSR/{index.js → index.jsx} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.js → index.jsx} +9 -5
- package/dist/components/deleteDialog/{index.js → index.jsx} +19 -14
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.js → index.jsx} +4 -2
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.js → index.jsx} +3 -1
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.js → index.jsx} +4 -2
- package/dist/components/filters/applyResetBtns/{index.js → index.jsx} +8 -5
- package/dist/components/filters/galleriesFiltersForm/{index.js → index.jsx} +14 -5
- package/dist/components/filters/{index.js → index.jsx} +35 -27
- package/dist/components/filters/mobileFilters/{index.js → index.jsx} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.js → index.jsx} +11 -4
- package/dist/components/forms/form/{index.js → index.jsx} +45 -35
- package/dist/components/forms/formsNavigation/{index.js → index.jsx} +14 -6
- package/dist/components/forms/formsTemplate/{index.js → index.jsx} +4 -3
- package/dist/components/gallery/add/addAssetToGallery/{index.js → index.jsx} +4 -2
- package/dist/components/gallery/add/addCreationToGallery/{index.js → index.jsx} +8 -7
- package/dist/components/gradientLabel/{index.js → index.jsx} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.js → index.jsx} +3 -2
- package/dist/components/headers/components/headerUserPic/{index.js → index.jsx} +3 -2
- package/dist/components/headers/header/{index.js → index.jsx} +6 -6
- package/dist/components/headers/headerSearch/{index.js → index.jsx} +7 -7
- package/dist/components/headers/headerSimple/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.js → index.jsx} +27 -17
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.js → index.jsx} +22 -11
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.js → index.jsx} +4 -3
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.js → index.jsx} +7 -6
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.js → index.jsx} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.js → index.jsx} +9 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.js → index.jsx} +3 -1
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.js → index.jsx} +27 -17
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +18 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.js → index.jsx} +9 -6
- package/dist/components/linkTabs/{index.js → index.jsx} +3 -1
- package/dist/components/linkTabs/linkTab/{index.js → index.jsx} +6 -4
- package/dist/components/myWallets/{index.js → index.jsx} +5 -4
- package/dist/components/myWallets/myWalletItem/{index.js → index.jsx} +29 -22
- package/dist/components/navigation/{index.js → index.jsx} +29 -11
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.js → MultiversXAudit.jsx} +15 -10
- package/dist/components/profile/{ProfileTabs.js → ProfileTabs.jsx} +22 -20
- package/dist/components/profile/aboutText/{index.js → index.jsx} +25 -16
- package/dist/components/profile/addToGalleryBtns/{index.js → index.jsx} +9 -6
- package/dist/components/profile/followersSocial/followers/{index.js → index.jsx} +4 -3
- package/dist/components/profile/followersSocial/{index.js → index.jsx} +7 -6
- package/dist/components/profile/followersSocial/social/{index.js → index.jsx} +9 -7
- package/dist/components/profile/info/{index.js → index.jsx} +11 -8
- package/dist/components/profile/interests/{index.js → index.jsx} +29 -14
- package/dist/components/profile/pageHead/index.jsx +52 -0
- package/dist/components/profile/profileSkeleton/{index.js → index.jsx} +15 -9
- package/dist/components/profile/profileUserCards/{index.js → index.jsx} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.js → index.jsx} +26 -21
- package/dist/components/profile/rank/{index.js → index.jsx} +15 -7
- package/dist/components/profile/stats/{index.js → index.jsx} +12 -4
- package/dist/components/profile/wallets/{index.js → index.jsx} +28 -20
- package/dist/components/profile/wrapper/{index.js → index.jsx} +12 -4
- package/dist/components/registrationPage/registrationSelectBox/{index.js → index.jsx} +3 -2
- package/dist/components/registrationPage/registrationSelection/{index.js → index.jsx} +29 -15
- package/dist/components/rewards/FAQ/{index.js → index.jsx} +20 -12
- package/dist/components/rewards/clarifications/{index.js → index.jsx} +25 -15
- package/dist/components/rewards/logoBottom/{index.js → index.jsx} +6 -5
- package/dist/components/rewards/prograssBar/{index.js → index.jsx} +5 -3
- package/dist/components/rewards/seasonBanner/{index.js → index.jsx} +3 -2
- package/dist/components/rewards/taskExpTab/{index.js → index.jsx} +31 -19
- package/dist/components/rewards/tasksGrid/{index.js → index.jsx} +6 -3
- package/dist/components/rewards/userExp/{index.js → index.jsx} +29 -23
- package/dist/components/search/{SearchInputContainer.js → SearchInputContainer.jsx} +98 -96
- package/dist/components/search/{index.js → index.jsx} +12 -10
- package/dist/components/search/searchCategories/{index.js → index.jsx} +10 -6
- package/dist/components/search/searchCloseMoreButtons/{index.js → index.jsx} +15 -12
- package/dist/components/search/searchResultCaption/{index.js → index.jsx} +6 -3
- package/dist/components/search/searchSelectsGalleries/{index.js → index.jsx} +30 -14
- package/dist/components/search/searchSelectsSets/{index.js → index.jsx} +27 -14
- package/dist/components/search/searchSimpleInput/{index.js → index.jsx} +11 -9
- package/dist/components/search/searchSuggestions/index.jsx +124 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.js → index.jsx} +4 -3
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.js → index.jsx} +7 -6
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.js → index.jsx} +18 -11
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.js → index.jsx} +14 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.js → index.jsx} +3 -5
- package/dist/components/shareDialog/index.jsx +91 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.js → index.jsx} +6 -4
- package/dist/components/sidebar/{data.js → data.jsx} +8 -8
- package/dist/components/sidebar/{index.js → index.jsx} +23 -16
- package/dist/components/sidebar/{initializer.js → initializer.jsx} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.js → index.jsx} +9 -6
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.js → index.jsx} +4 -3
- package/dist/components/socialButtons/{data.js → data.jsx} +6 -6
- package/dist/components/socialButtons/icons/discord.jsx +8 -0
- package/dist/components/socialButtons/icons/facebook.jsx +9 -0
- package/dist/components/socialButtons/icons/instagram.jsx +10 -0
- package/dist/components/socialButtons/icons/medium.jsx +8 -0
- package/dist/components/socialButtons/icons/telegram.jsx +8 -0
- package/dist/components/socialButtons/icons/twitter.jsx +8 -0
- package/dist/components/socialButtons/{index.js → index.jsx} +8 -5
- package/dist/components/tabs/icons/bell.jsx +10 -0
- package/dist/components/tabs/icons/profile.jsx +10 -0
- package/dist/components/tabs/icons/secure.jsx +9 -0
- package/dist/components/tabs/{index.js → index.jsx} +13 -10
- package/dist/components/toTopBtn/{index.js → index.jsx} +7 -5
- package/dist/dto/AssetEntity/views/AssetAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.js → index.jsx} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/Media/Audio/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Image/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Object/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Other/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Video/{index.js → index.jsx} +3 -3
- package/dist/fonts/{FontsInitializeLayout.js → FontsInitializeLayout.jsx} +4 -1
- package/dist/hooks/searchFiltersConnector/{index.js → index.jsx} +35 -33
- package/dist/hooks/useToGalleryAsset/{index.js → index.jsx} +1 -1
- package/dist/layouts/{GlobalLayout.js → GlobalLayout.jsx} +16 -15
- package/dist/layouts/base/LWithRegularHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSearchHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSimpleHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithoutHeader/{index.js → index.jsx} +4 -3
- package/dist/layouts/custom/accountLayout/{index.js → index.jsx} +11 -6
- package/dist/layouts/custom/formsLayout/{index.js → index.jsx} +5 -3
- package/dist/layouts/custom/mainLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/custom/searchLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/custom/simpleLayout/{index.js → index.jsx} +8 -5
- package/dist/layouts/pageTransitionLayout.jsx +27 -0
- package/dist/modules/notifications/{CreatorNotifications.js → CreatorNotifications.jsx} +3 -1
- package/dist/modules/user/profileData/{profileDataInitialization.js → profileDataInitialization.jsx} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.js → VirtuosoPageBuilder.jsx} +23 -18
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.js → VirtuosoToTopBtn.jsx} +1 -1
- package/dist/pages/index.jsx +18 -0
- package/dist/system/ActiveLink/{index.js → index.jsx} +5 -14
- package/dist/system/Alert/{index.js → index.jsx} +1 -1
- package/dist/system/BasicOverlay/{index.js → index.jsx} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.js → index.jsx} +6 -4
- package/dist/system/Cards/CardContent/CardCategory/{index.js → index.jsx} +5 -3
- package/dist/system/Cards/CardContent/CardLikes/{index.js → index.jsx} +11 -7
- package/dist/system/Cards/CardContent/CardShowMore/{index.js → index.jsx} +8 -5
- package/dist/system/Cards/CardContent/{index.js → index.jsx} +30 -16
- package/dist/system/Cards/CardHeadIcons/{index.js → index.jsx} +22 -15
- package/dist/system/Cards/CardMedia/CardAudio/{index.js → index.jsx} +5 -4
- package/dist/system/Cards/CardMedia/CardImage/{index.js → index.jsx} +5 -4
- package/dist/system/Cards/CardMedia/CardVideo/{index.js → index.jsx} +11 -9
- package/dist/system/Cards/CardRank/{index.js → index.jsx} +12 -6
- package/dist/system/Cards/CardsGrid/{index.js → index.jsx} +13 -8
- package/dist/system/Cards/HideLink/index.jsx +22 -0
- package/dist/system/Cards/MultiMediaCard/{index.js → index.jsx} +17 -11
- package/dist/system/Cards/RegularCard/{index.js → index.jsx} +17 -11
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.js → index.jsx} +6 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.js → index.jsx} +4 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.js → index.jsx} +15 -9
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.js → index.jsx} +8 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.js → index.jsx} +3 -2
- package/dist/system/CardsHolderWithSkeleton/{index.js → index.jsx} +6 -3
- package/dist/system/DropDown/{DropDown.test.js → DropDown.test.jsx} +11 -7
- package/dist/system/DropDown/{index.js → index.jsx} +13 -10
- package/dist/system/Forms/Checkbox/{Checkbox.test.js → Checkbox.test.jsx} +2 -13
- package/dist/system/Forms/Checkbox/{index.js → index.jsx} +15 -23
- package/dist/system/Forms/DatePicker/{index.js → index.jsx} +7 -6
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.js → ErrorLabel.test.jsx} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.js → index.jsx} +1 -1
- package/dist/system/Forms/Input/{Input.test.js → Input.test.jsx} +2 -2
- package/dist/system/Forms/Input/{index.js → index.jsx} +5 -15
- package/dist/system/Forms/RadioInput/{index.js → index.jsx} +6 -16
- package/dist/system/Forms/Selects/DesktopSelect/{index.js → index.jsx} +11 -21
- package/dist/system/Forms/Selects/MobileSelect/{index.js → index.jsx} +3 -1
- package/dist/system/Forms/TextArea/{index.js → index.jsx} +5 -15
- package/dist/system/Img/ExternalImage/{index.js → index.jsx} +1 -12
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.js → ImageInterceptor.test.jsx} +14 -10
- package/dist/system/Img/ImageInterceptor/{index.js → index.jsx} +5 -4
- package/dist/system/Img/Profilepic/{index.js → index.jsx} +9 -8
- package/dist/system/Img/Userpic/{UserPic.test.js → UserPic.test.jsx} +8 -6
- package/dist/system/Img/Userpic/{index.js → index.jsx} +13 -10
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.js → ExperienceLabel.test.jsx} +6 -16
- package/dist/system/Labels/ExperienceLabel/{index.js → index.jsx} +5 -6
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.js → InviteLabel.test.jsx} +5 -15
- package/dist/system/Labels/InviteLabel/{index.js → index.jsx} +4 -3
- package/dist/system/Modals/Modal/{Modal.test.js → Modal.test.jsx} +2 -2
- package/dist/system/Modals/Modal/{index.js → index.jsx} +4 -3
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.js → CreatorModalSidebarPortal.jsx} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.js → ModalSidebar.test.jsx} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.js → ModalSidebarPortal.jsx} +6 -4
- package/dist/system/Modals/ModalSidebar/{index.js → index.jsx} +4 -3
- package/dist/system/Overlay/{Overlay.test.js → Overlay.test.jsx} +3 -2
- package/dist/system/Overlay/{index.js → index.jsx} +3 -2
- package/dist/system/{ShareIconResize.js → ShareIconResize.jsx} +6 -5
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.js → TabNavLink.test.jsx} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.js → index.jsx} +3 -1
- package/dist/system/Tabs/TabsNav/{TabsNav.test.js → TabsNav.test.jsx} +4 -4
- package/dist/system/Tabs/TabsNav/{index.js → index.jsx} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.js → TabsPanel.test.jsx} +12 -8
- package/dist/system/Tabs/TabsPanel/{index.js → index.jsx} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.js → index.jsx} +7 -4
- package/package.json +2 -2
- package/dist/components/base/Meta/index.js +0 -60
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +0 -17
- package/dist/components/profile/pageHead/index.js +0 -51
- package/dist/components/search/searchSuggestions/index.js +0 -117
- package/dist/components/shareDialog/index.js +0 -73
- package/dist/components/socialButtons/icons/discord.js +0 -7
- package/dist/components/socialButtons/icons/facebook.js +0 -8
- package/dist/components/socialButtons/icons/instagram.js +0 -9
- package/dist/components/socialButtons/icons/medium.js +0 -7
- package/dist/components/socialButtons/icons/telegram.js +0 -7
- package/dist/components/socialButtons/icons/twitter.js +0 -7
- package/dist/components/tabs/icons/bell.js +0 -9
- package/dist/components/tabs/icons/profile.js +0 -9
- package/dist/components/tabs/icons/secure.js +0 -8
- package/dist/layouts/pageTransitionLayout.js +0 -24
- package/dist/pages/index.js +0 -16
- package/dist/system/Cards/HideLink/index.js +0 -27
- /package/dist/components/headers/components/MobileToggle/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.js → index.jsx} +0 -0
- /package/dist/components/profile/jsonLd/{index.js → index.jsx} +0 -0
- /package/dist/components/registrationPage/{index.js → index.jsx} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/ItemType/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/Media/{index.js → index.jsx} +0 -0
- /package/dist/hooks/apollo/{index.js → index.jsx} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.js → index.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.js → useFindCollectionsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.js → useFindCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.js → useGetCollectionInfoAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.js → useGetCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.js → useGetCreationsAndLikesByType.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.js → useGetMixedLikesFavoriteList.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.js → useGetTableLikes.jsx} +0 -0
- /package/dist/modules/notifications/{index.js → index.jsx} +0 -0
- /package/dist/modules/user/{store.js → store.jsx} +0 -0
- /package/dist/styles/animations/{index.js → index.jsx} +0 -0
- /package/dist/styles/{globalStyles.js → globalStyles.jsx} +0 -0
- /package/dist/styles/mixins/{boxShadow.js → boxShadow.jsx} +0 -0
- /package/dist/styles/mixins/{boxTransform.js → boxTransform.jsx} +0 -0
- /package/dist/styles/mixins/{z-indexes.js → z-indexes.jsx} +0 -0
- /package/dist/styles/typography/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/MainButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Flex/{index.js → index.jsx} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.js → index.jsx} +0 -0
- /package/dist/system/PageLoader/{index.js → index.jsx} +0 -0
- /package/dist/system/Palete/{index.js → index.jsx} +0 -0
- /package/dist/system/Text/{index.js → index.jsx} +0 -0
- /package/dist/utils/extractItemIds/{index.js → index.jsx} +0 -0
- /package/dist/utils/imageProportionsSize/{index.js → index.jsx} +0 -0
- /package/dist/utils/ui/{index.js → index.jsx} +0 -0
|
@@ -76,11 +76,11 @@ var CardHeadIcons = function (_a) {
|
|
|
76
76
|
return [3 /*break*/, 8];
|
|
77
77
|
case 1:
|
|
78
78
|
if (!(type === 'fav-list')) return [3 /*break*/, 2];
|
|
79
|
-
openModalSidebarPortal(
|
|
79
|
+
openModalSidebarPortal(<addCreationToFavoriteList_1.default ids={[
|
|
80
80
|
creation instanceof CollectionCreationEntity_1.default
|
|
81
81
|
? "".concat(creation.getItemType() + '.' + creation.getCreationId())
|
|
82
82
|
: creation.getCreationId(),
|
|
83
|
-
]
|
|
83
|
+
]}/>);
|
|
84
84
|
return [3 /*break*/, 8];
|
|
85
85
|
case 2:
|
|
86
86
|
if (!(type === 'likes')) return [3 /*break*/, 7];
|
|
@@ -111,24 +111,31 @@ var CardHeadIcons = function (_a) {
|
|
|
111
111
|
}); };
|
|
112
112
|
var renderLikeButton = function () {
|
|
113
113
|
if (creation.getItemType() === ItemType_1.LabelKeys.asset || ItemType_1.LabelKeys.collection) {
|
|
114
|
-
return (
|
|
115
|
-
|
|
114
|
+
return (<div className={"icon like ".concat(isLicked ? 'liked' : '')} onClick={function (e) { return handleClick(e, 'likes'); }}>
|
|
115
|
+
<heart_svg_1.default />
|
|
116
|
+
</div>);
|
|
116
117
|
}
|
|
117
118
|
};
|
|
118
|
-
return (
|
|
119
|
+
return (<Headicons_1.default isMobile={isMobile} style={isDisabled
|
|
119
120
|
? {
|
|
120
121
|
pointerEvents: 'none',
|
|
121
122
|
}
|
|
122
|
-
: {}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
: {}}>
|
|
124
|
+
<div className={'rank'}>
|
|
125
|
+
<CardRank_1.default rank={creation.getRank()}/>
|
|
126
|
+
</div>
|
|
127
|
+
{/* // Todo cardHeadIcons */}
|
|
128
|
+
{!(0, env_1.isProd)({ ENV: isProdENV }) && (<div className="icons">
|
|
129
|
+
<div className="icon" onClick={function (e) {
|
|
130
|
+
return handleClick(e, isRegularCard || !isUserProfile || isGallery
|
|
131
|
+
? 'fav-list'
|
|
132
|
+
: 'gallery');
|
|
133
|
+
}}>
|
|
134
|
+
{isRegularCard || !isUserProfile || isGallery ? (<addToFavListIcon_svg_1.default />) : (<addToGalleryIcon_svg_1.default />)}
|
|
135
|
+
</div>
|
|
136
|
+
{renderLikeButton()}
|
|
137
|
+
</div>)}
|
|
138
|
+
</Headicons_1.default>);
|
|
132
139
|
};
|
|
133
140
|
// Export
|
|
134
141
|
exports.default = CardHeadIcons;
|
|
@@ -83,11 +83,12 @@ var CardAudio = function (_a) {
|
|
|
83
83
|
playAudioTrack(lAudioSrc);
|
|
84
84
|
};
|
|
85
85
|
var renderPlayPauseIcon = function () {
|
|
86
|
-
return isPauseIcon ? (
|
|
86
|
+
return isPauseIcon ? (<pause_svg_1.default className={'pauseIcon'} onClick={function (e) { return handlePause(e); }}/>) : (<play_svg_1.default className={'playIcon'} onClick={function (e) { return handlePlay(e); }}/>);
|
|
87
87
|
};
|
|
88
|
-
return lImgSrc.length ? (
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
return lImgSrc.length ? (<>
|
|
89
|
+
<Styles_1.StyledImg src={imgSrc} alt={alt} isLoading={lAudioSrc}/>
|
|
90
|
+
{(lAudioSrc === null || lAudioSrc === void 0 ? void 0 : lAudioSrc.length) && renderPlayPauseIcon()}
|
|
91
|
+
</>) : (<react_loading_skeleton_1.default height={'100%'} width={'100%'} style={{ lineHeight: 'normal' }}/>);
|
|
91
92
|
};
|
|
92
93
|
// Export
|
|
93
94
|
exports.default = CardAudio;
|
|
@@ -33,12 +33,13 @@ var Image_1 = __importDefault(require("@/system/Cards/Styles/Image"));
|
|
|
33
33
|
var CardImage = function (_a) {
|
|
34
34
|
var imgSrc = _a.imgSrc, errorImg = _a.errorImg, alt = _a.alt;
|
|
35
35
|
var _b = (0, react_1.useState)(true), loading = _b[0], setLoading = _b[1];
|
|
36
|
-
return (
|
|
37
|
-
|
|
36
|
+
return (<>
|
|
37
|
+
{loading && (<react_loading_skeleton_1.default height={'100%'} width={'100%'} style={{
|
|
38
38
|
lineHeight: 'normal',
|
|
39
39
|
visibility: "".concat(loading ? 'hidden' : 'visible'),
|
|
40
|
-
}
|
|
41
|
-
|
|
40
|
+
}}/>)}
|
|
41
|
+
<Image_1.default isLoading={loading} src={imgSrc} alt={alt} onError={function (e) { return (e.target.src = errorImg); }} onLoad={function () { return setLoading(false); }}/>
|
|
42
|
+
</>);
|
|
42
43
|
};
|
|
43
44
|
// Export
|
|
44
45
|
exports.default = CardImage;
|
|
@@ -61,23 +61,25 @@ var CardVideo = function (_a) {
|
|
|
61
61
|
video.current && ((_a = video.current) === null || _a === void 0 ? void 0 : _a.pause());
|
|
62
62
|
setPlayIcon(true);
|
|
63
63
|
};
|
|
64
|
-
var renderImage = function () { return (
|
|
64
|
+
var renderImage = function () { return (<Image_1.default isLoading={false} src={errorImg} alt={alt}/>); };
|
|
65
65
|
if (!videoSrc)
|
|
66
66
|
return renderImage();
|
|
67
|
-
return lVideoSrc ? (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
return lVideoSrc ? (<>
|
|
68
|
+
<Video_1.default ref={video} muted loop playsInline preload={'false'}>
|
|
69
|
+
<source type="video/mp4" src={lVideoSrc}/>
|
|
70
|
+
<p>{alt}</p>
|
|
71
|
+
</Video_1.default>
|
|
72
|
+
{lVideoSrc.length &&
|
|
73
|
+
(isPlayIcon ? (<play_svg_1.default className={'playIcon'} onClick={function (e) {
|
|
73
74
|
e.preventDefault();
|
|
74
75
|
e.stopPropagation();
|
|
75
76
|
playVideo();
|
|
76
|
-
}
|
|
77
|
+
}}/>) : (<pause_svg_1.default className={'pauseIcon'} onClick={function (e) {
|
|
77
78
|
e.preventDefault();
|
|
78
79
|
e.stopPropagation();
|
|
79
80
|
pauseVideo();
|
|
80
|
-
}
|
|
81
|
+
}}/>))}
|
|
82
|
+
</>) : (<react_loading_skeleton_1.default height={'100%'} width={'100%'} style={{ lineHeight: 'normal' }}/>);
|
|
81
83
|
};
|
|
82
84
|
// Export
|
|
83
85
|
exports.default = CardVideo;
|
|
@@ -21,12 +21,18 @@ var RangeValue = styled_components_1.default.div(templateObject_3 || (templateOb
|
|
|
21
21
|
// Component
|
|
22
22
|
var CardRank = function (_a) {
|
|
23
23
|
var rank = _a.rank;
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
return (<StyledCardRank>
|
|
25
|
+
<_system_1.Flex alignItems={'center'} height={'100%'}>
|
|
26
|
+
<_system_1.Box>
|
|
27
|
+
<p className={"rankText ".concat(!rank && 'smallText')}>
|
|
28
|
+
{rank ? rank : 'unknown'}
|
|
29
|
+
</p>
|
|
30
|
+
</_system_1.Box>
|
|
31
|
+
{Boolean(rank) && (<SBox>
|
|
32
|
+
<RangeValue rankValue={rank}/>
|
|
33
|
+
</SBox>)}
|
|
34
|
+
</_system_1.Flex>
|
|
35
|
+
</StyledCardRank>);
|
|
30
36
|
};
|
|
31
37
|
// Export
|
|
32
38
|
exports.default = CardRank;
|
|
@@ -66,14 +66,19 @@ var CardsGrid = function (_a) {
|
|
|
66
66
|
setShowOrganizeBtn(false);
|
|
67
67
|
addMethod && addMethod();
|
|
68
68
|
};
|
|
69
|
-
return (
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
return (<StyledCardsGrid isTwoColumnLayout={isTwoColumnLayout} isEmptyGallery={isEmptyGallery} isForVirtualize={isForVirtualize}>
|
|
70
|
+
<div className="content">{children}</div>
|
|
71
|
+
{tabsSlot}
|
|
72
|
+
{isTwoColumnLayout && (<div className="sidebar">
|
|
73
|
+
{/*{isNeedShowNetWorth && <ProfileNetWorth />}*/}
|
|
74
|
+
{/* // Todo ProfileInterests */}
|
|
75
|
+
{!(0, env_1.isProd)({ ENV: isProdENV }) && <profile_1.ProfileInterests />}
|
|
76
|
+
<profile_1.ProfileWallets />
|
|
77
|
+
{isNeedShowOrganizeBtn && (<div className="sidebarOrganizeBtn">
|
|
78
|
+
<MainButton_1.default onClick={handleClick} variant="float" text={'Organize'}/>
|
|
79
|
+
</div>)}
|
|
80
|
+
</div>)}
|
|
81
|
+
</StyledCardsGrid>);
|
|
77
82
|
};
|
|
78
83
|
// Export
|
|
79
84
|
exports.default = CardsGrid;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var link_1 = __importDefault(require("next/link"));
|
|
8
|
+
var env_1 = require("@/utils/env");
|
|
9
|
+
var HideLink = function (_a) {
|
|
10
|
+
var children = _a.children, className = _a.className, href = _a.href, isProdENV = _a.isProdENV, onClick = _a.onClick;
|
|
11
|
+
// Todo cardLink
|
|
12
|
+
var isHide = (0, env_1.isProd)({ ENV: isProdENV });
|
|
13
|
+
var Component = isHide ? react_1.default.Fragment : link_1.default;
|
|
14
|
+
return (<Component {...(!isHide && { href: href })} {...(isHide && { className: className })}>
|
|
15
|
+
{isHide ? (<span className={className} onClick={onClick}>
|
|
16
|
+
{children}
|
|
17
|
+
</span>) : (<a className={className} onClick={onClick}>
|
|
18
|
+
{children}
|
|
19
|
+
</a>)}
|
|
20
|
+
</Component>);
|
|
21
|
+
};
|
|
22
|
+
exports.default = HideLink;
|
|
@@ -26,9 +26,11 @@ var MultiMediaCard = function (_a) {
|
|
|
26
26
|
var gallery = _a.gallery, assets = _a.assets, collections = _a.collections;
|
|
27
27
|
var mediaTemplate = function (mediaKey, media) {
|
|
28
28
|
var _a, _b;
|
|
29
|
-
return (
|
|
29
|
+
return (<div key={mediaKey} className={((_a = media.type) === null || _a === void 0 ? void 0 : _a.name) === 'CardVideo' || ((_b = media.type) === null || _b === void 0 ? void 0 : _b.name) === 'CardAudio'
|
|
30
30
|
? 'media digital'
|
|
31
|
-
: 'media'
|
|
31
|
+
: 'media'}>
|
|
32
|
+
{media}
|
|
33
|
+
</div>);
|
|
32
34
|
};
|
|
33
35
|
var renderMedia = function () {
|
|
34
36
|
var _a, _b;
|
|
@@ -52,10 +54,10 @@ var MultiMediaCard = function (_a) {
|
|
|
52
54
|
cardsMedia.push(mediaTemplate(i, asset.detectMediaType().displaySingleMedia()));
|
|
53
55
|
}
|
|
54
56
|
else if (collection) {
|
|
55
|
-
cardsMedia.push(mediaTemplate(i,
|
|
57
|
+
cardsMedia.push(mediaTemplate(i, <CardImage_1.default alt={"".concat(collection.getName(), " ").concat(collection.getAddress() || '')} imgSrc={(_b = (_a = collection.getOriginalUrls()) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : ''} errorImg={'/noContent/noContent.svg'}/>));
|
|
56
58
|
}
|
|
57
59
|
else {
|
|
58
|
-
cardsMedia.push(mediaTemplate(i,
|
|
60
|
+
cardsMedia.push(mediaTemplate(i, <defaultImage_svg_1.default />));
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
63
|
for (var i = 0; i < 4; i++) {
|
|
@@ -65,13 +67,17 @@ var MultiMediaCard = function (_a) {
|
|
|
65
67
|
};
|
|
66
68
|
var secondName = gallery.getGalleryUsername() !== '' ? gallery.getGalleryUsername() : '';
|
|
67
69
|
// const userCreationAddresses = gallery?.getGalleryCreations()[0]?.getOwnersAddresses();
|
|
68
|
-
return (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
return (<StyledMultiCard>
|
|
71
|
+
<link_1.default href={gallery.getCreationLink()}>
|
|
72
|
+
<MultiHead_1.default>{renderMedia()}</MultiHead_1.default>
|
|
73
|
+
<CardContent_1.default firstName={gallery.getGalleryName()} secondName={secondName} wallets={gallery.getGalleryUserWallets()} isNeedShowMoreButton={false} itemId={gallery.getGalleryId()}>
|
|
74
|
+
<_system_1.Flex alignItems="flex-end" justifyContent={'space-between'}>
|
|
75
|
+
<CardCategory_1.default label={gallery.getLabel()}/>
|
|
76
|
+
<CardLikes_1.default isLiked={false} likes={0}/>
|
|
77
|
+
</_system_1.Flex>
|
|
78
|
+
</CardContent_1.default>
|
|
79
|
+
</link_1.default>
|
|
80
|
+
</StyledMultiCard>);
|
|
75
81
|
};
|
|
76
82
|
// Export
|
|
77
83
|
exports.default = MultiMediaCard;
|
|
@@ -36,17 +36,23 @@ var RegularCard = function (_a) {
|
|
|
36
36
|
removeOnDislike: toolsForRemove,
|
|
37
37
|
}), likes = _b.likes, addLike = _b.addLike, deleteLike = _b.deleteLike;
|
|
38
38
|
//show asset page
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
return (<StyledRegularCard isNeedHeight={isNeedHeight}>
|
|
40
|
+
<HideLink_1.default className="linkRegularCard" isProdENV={isProdENV} href={creation.getCreationLink()} onClick={function () {
|
|
41
|
+
return (0, utils_1.handleSetScrollPosition)(scrollKeys.pageOffsetKey, scrollKeys.itemsCountKey, String(cardsCount));
|
|
42
|
+
}}>
|
|
43
|
+
<Head_1.default>
|
|
44
|
+
{creation.detectMediaType().displaySingleMedia()}
|
|
45
|
+
<CardHeadIcons_1.default isRegularCard={true} isIconLiked={likes.isLiked} creation={creation} addLikeToCard={addLike} deleteLikeFromCard={deleteLike} isUserProfile={false} itemId={creation.getItemId()} isProdENV={isProdENV}/>
|
|
46
|
+
</Head_1.default>
|
|
47
|
+
<CardContent_1.default creationName={creationName} firstName={creation.getCreatorAddress()} secondName={creation.getName()} cuttedSecondName={creation.getCuttedSecondName(!isMobile)} isNeedShowMoreButton={false} itemId={creation.getItemId()}>
|
|
48
|
+
<_system_1.Flex alignItems="end" justifyContent={'space-between'}>
|
|
49
|
+
<CardCategory_1.default label={creation.getLabel()}/>
|
|
50
|
+
{/* // Todo cardLikes */}
|
|
51
|
+
{!(0, env_1.isProd)({ ENV: isProdENV }) && (<CardLikes_1.default isLiked={likes.isLiked} likes={likes.likesCount}/>)}
|
|
52
|
+
</_system_1.Flex>
|
|
53
|
+
</CardContent_1.default>
|
|
54
|
+
</HideLink_1.default>
|
|
55
|
+
</StyledRegularCard>);
|
|
50
56
|
};
|
|
51
57
|
// Export
|
|
52
58
|
exports.default = RegularCard;
|
|
@@ -91,9 +91,12 @@ var CardsError = function (_a) {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
}); };
|
|
94
|
-
return (
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
return (<StyledCardsError>
|
|
95
|
+
<refresh_svg_1.default className={'icon'} onClick={handleAnimation}/>
|
|
96
|
+
{!isAnimated && (<h2 className={'text'}>
|
|
97
|
+
Whoops! Something went wrong. Let's try to refresh it!
|
|
98
|
+
</h2>)}
|
|
99
|
+
</StyledCardsError>);
|
|
97
100
|
};
|
|
98
101
|
// Export
|
|
99
102
|
exports.default = CardsError;
|
package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.js → index.jsx}
RENAMED
|
@@ -17,9 +17,10 @@ var StyledNoResults = styled_components_1.default.div(templateObject_1 || (templ
|
|
|
17
17
|
// Component
|
|
18
18
|
var CardsNoResults = function (_a) {
|
|
19
19
|
var noFoundText = _a.noFoundText;
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
return (<StyledNoResults>
|
|
21
|
+
<no_found_svg_1.default className={'icon'}/>
|
|
22
|
+
<p className={'text'}>{noFoundText}</p>
|
|
23
|
+
</StyledNoResults>);
|
|
23
24
|
};
|
|
24
25
|
// Export
|
|
25
26
|
exports.default = CardsNoResults;
|
package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.js → index.jsx}
RENAMED
|
@@ -19,18 +19,24 @@ var StyledCardSkeleton = styled_components_1.default.div(templateObject_1 || (te
|
|
|
19
19
|
var CardsSkeleton = function (_a) {
|
|
20
20
|
var cardCount = _a.cardCount;
|
|
21
21
|
var arr = Array.from(Array(cardCount).keys());
|
|
22
|
-
return (
|
|
22
|
+
return (<>
|
|
23
|
+
{arr.map(function () { return (<exports.CardSkeleton key={Math.random()}/>); })}
|
|
24
|
+
</>);
|
|
23
25
|
};
|
|
24
26
|
// Component
|
|
25
27
|
var CardSkeleton = function () {
|
|
26
|
-
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
return (<StyledCardSkeleton>
|
|
29
|
+
<system_1.StyledCardHead>
|
|
30
|
+
<react_loading_skeleton_1.default height={'100%'} width={'100%'}/>
|
|
31
|
+
</system_1.StyledCardHead>
|
|
32
|
+
<div className={'content'}>
|
|
33
|
+
<react_loading_skeleton_1.default height={'18px'} width={'70%'}/>
|
|
34
|
+
<div className={'footer'}>
|
|
35
|
+
<react_loading_skeleton_1.default height={'18px'} width={'120px'}/>
|
|
36
|
+
<react_loading_skeleton_1.default height={'18px'} width={'30px'}/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</StyledCardSkeleton>);
|
|
34
40
|
};
|
|
35
41
|
exports.CardSkeleton = CardSkeleton;
|
|
36
42
|
// Export
|
|
@@ -23,15 +23,19 @@ var StyledCardsHolder = styled_components_1.default.div(templateObject_1 || (tem
|
|
|
23
23
|
var CardsHolder = function (_a) {
|
|
24
24
|
var loading = _a.loading, error = _a.error, items = _a.items, refetchQuery = _a.refetchQuery, children = _a.children, notFoundText = _a.notFoundText, isOneColumn = _a.isOneColumn, isTwoColumnLayout = _a.isTwoColumnLayout, isNeedShowNetWorth = _a.isNeedShowNetWorth, isForVirtualize = _a.isForVirtualize, likesArray = _a.likesArray, tabsSlot = _a.tabsSlot;
|
|
25
25
|
var renderCardsWithGrid = function (component, isEmptyGallery, forVirtualize) {
|
|
26
|
-
return (
|
|
26
|
+
return (<CardsGrid_1.default isTwoColumnLayout={isTwoColumnLayout} isNeedShowNetWorth={isNeedShowNetWorth} isEmptyGallery={isEmptyGallery} isForVirtualize={forVirtualize} tabsSlot={tabsSlot} isProdENV={isProdENV}>
|
|
27
|
+
{component}
|
|
28
|
+
</CardsGrid_1.default>);
|
|
27
29
|
};
|
|
28
30
|
if (loading && (!likesArray || (likesArray === null || likesArray === void 0 ? void 0 : likesArray.length) === 0))
|
|
29
31
|
return null;
|
|
30
32
|
if (error)
|
|
31
|
-
return renderCardsWithGrid(
|
|
33
|
+
return renderCardsWithGrid(<CardsError_1.default refetch={refetchQuery}/>, true);
|
|
32
34
|
if (!items.length)
|
|
33
|
-
return renderCardsWithGrid(
|
|
34
|
-
return (
|
|
35
|
+
return renderCardsWithGrid(<CardsNoResults_1.default noFoundText={notFoundText}/>, true, isForVirtualize);
|
|
36
|
+
return (<StyledCardsHolder isOneColumn={isOneColumn} isForVirtualize={isForVirtualize}>
|
|
37
|
+
{renderCardsWithGrid(children, false, isForVirtualize)}
|
|
38
|
+
</StyledCardsHolder>);
|
|
35
39
|
};
|
|
36
40
|
// Export
|
|
37
41
|
exports.default = CardsHolder;
|
|
@@ -18,8 +18,9 @@ var StyledCardsHolderLoader = styled_components_1.default.div(templateObject_1 |
|
|
|
18
18
|
// Component
|
|
19
19
|
var CardsHolderLoader = function () {
|
|
20
20
|
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
21
|
-
return (
|
|
22
|
-
|
|
21
|
+
return (<StyledCardsHolderLoader style={(0, utils_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 })}>
|
|
22
|
+
<loader_svg_1.default className={'loader'}/>
|
|
23
|
+
</StyledCardsHolderLoader>);
|
|
23
24
|
};
|
|
24
25
|
// Export
|
|
25
26
|
exports.default = CardsHolderLoader;
|
|
@@ -11,9 +11,12 @@ var CardsSkeleton_1 = __importDefault(require("@/system/CardsHolderWithSkeleton/
|
|
|
11
11
|
var CardsHolderWithSkeleton = function (_a) {
|
|
12
12
|
var loading = _a.loading, error = _a.error, items = _a.items, refetchQuery = _a.refetchQuery, children = _a.children, notFoundText = _a.notFoundText, isOneColumn = _a.isOneColumn, isTwoColumnLayout = _a.isTwoColumnLayout, isNeedShowNetWorth = _a.isNeedShowNetWorth, isForVirtualize = _a.isForVirtualize, likesArray = _a.likesArray, tabsSlot = _a.tabsSlot, isProdENV = _a.isProdENV;
|
|
13
13
|
if (loading && (!likesArray || (likesArray === null || likesArray === void 0 ? void 0 : likesArray.length) === 0))
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
return (<CardsGrid_1.default isTwoColumnLayout={isTwoColumnLayout} isNeedShowNetWorth={isNeedShowNetWorth} isEmptyGallery={false} tabsSlot={tabsSlot} isProdENV={isProdENV}>
|
|
15
|
+
<CardsSkeleton_1.default cardCount={40}/>
|
|
16
|
+
</CardsGrid_1.default>);
|
|
17
|
+
return (<CardsHolder_1.default items={items} refetchQuery={refetchQuery} error={error} loading={loading} notFoundText={notFoundText} isOneColumn={isOneColumn} isTwoColumnLayout={isTwoColumnLayout} isNeedShowNetWorth={isNeedShowNetWorth} isForVirtualize={isForVirtualize} likesArray={likesArray} tabsSlot={tabsSlot} isProdENV={isProdENV}>
|
|
18
|
+
{children}
|
|
19
|
+
</CardsHolder_1.default>);
|
|
17
20
|
};
|
|
18
21
|
// Export
|
|
19
22
|
exports.default = CardsHolderWithSkeleton;
|
|
@@ -12,9 +12,11 @@ describe('DropDown Component', function () {
|
|
|
12
12
|
test('renders with caption and closed by default', function () {
|
|
13
13
|
var _a;
|
|
14
14
|
var mockFallback = jest.fn();
|
|
15
|
-
(0, react_2.render)(
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
(0, react_2.render)(<div data-testid={'test_container'}>
|
|
16
|
+
<DropDown_1.default caption="Test Dropdown" fallBackOnClose={mockFallback}>
|
|
17
|
+
<div>Dropdown Content</div>
|
|
18
|
+
</DropDown_1.default>
|
|
19
|
+
</div>);
|
|
18
20
|
var captionElement = react_2.screen.getByText('Test Dropdown');
|
|
19
21
|
expect(captionElement).toBeInTheDocument();
|
|
20
22
|
var contentElement = (_a = react_2.screen
|
|
@@ -25,8 +27,9 @@ describe('DropDown Component', function () {
|
|
|
25
27
|
});
|
|
26
28
|
test('calls fallback function when closed', function () {
|
|
27
29
|
var mockFallback = jest.fn();
|
|
28
|
-
(0, react_2.render)(
|
|
29
|
-
|
|
30
|
+
(0, react_2.render)(<DropDown_1.default caption="Test Dropdown" fallBackOnClose={mockFallback}>
|
|
31
|
+
<div>Dropdown Content</div>
|
|
32
|
+
</DropDown_1.default>);
|
|
30
33
|
var captionElement = react_2.screen.getByText('Test Dropdown');
|
|
31
34
|
react_2.fireEvent.click(captionElement);
|
|
32
35
|
react_2.fireEvent.click(captionElement);
|
|
@@ -34,8 +37,9 @@ describe('DropDown Component', function () {
|
|
|
34
37
|
});
|
|
35
38
|
test('renders with active prop', function () {
|
|
36
39
|
var mockFallback = jest.fn();
|
|
37
|
-
(0, react_2.render)(
|
|
38
|
-
|
|
40
|
+
(0, react_2.render)(<DropDown_1.default caption="Test Dropdown" fallBackOnClose={mockFallback} active>
|
|
41
|
+
<div>Dropdown Content</div>
|
|
42
|
+
</DropDown_1.default>);
|
|
39
43
|
var openedContentElement = react_2.screen.getByText('Dropdown Content');
|
|
40
44
|
expect(openedContentElement).toBeInTheDocument();
|
|
41
45
|
});
|
|
@@ -47,16 +47,19 @@ var DropDown = function (_a) {
|
|
|
47
47
|
setActive(true);
|
|
48
48
|
}
|
|
49
49
|
}, []);
|
|
50
|
-
return (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
return (<StyledDropDown isActive={isActive}>
|
|
51
|
+
<div className={'dropDownTab'} onClick={function () {
|
|
52
|
+
setActive(!isActive);
|
|
53
|
+
if (!isActive)
|
|
54
|
+
fallBackOnClose(null);
|
|
55
|
+
}}>
|
|
56
|
+
<span className={'dropDownTabCaption'}>{caption}</span>
|
|
57
|
+
<arrow_down_svg_1.default className={'dropDownTabIcon'}/>
|
|
58
|
+
</div>
|
|
59
|
+
<div className={'dropDownContent'}>
|
|
60
|
+
<div className={'gridDown'}>{children}</div>
|
|
61
|
+
</div>
|
|
62
|
+
</StyledDropDown>);
|
|
60
63
|
};
|
|
61
64
|
// Export
|
|
62
65
|
exports.default = DropDown;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
@@ -22,7 +11,7 @@ jest.mock('../ErrorLabel', function () { return ({
|
|
|
22
11
|
__esModule: true,
|
|
23
12
|
default: function (_a) {
|
|
24
13
|
var children = _a.children;
|
|
25
|
-
return (
|
|
14
|
+
return (<div data-testid="error-label">{children}</div>);
|
|
26
15
|
},
|
|
27
16
|
}); });
|
|
28
17
|
var mockRegister = {
|
|
@@ -38,7 +27,7 @@ var mockInnerTextInputRef = {
|
|
|
38
27
|
ref: jest.fn(),
|
|
39
28
|
};
|
|
40
29
|
var renderComponent = function (props) {
|
|
41
|
-
return (0, react_2.render)(
|
|
30
|
+
return (0, react_2.render)(<Checkbox_1.default {...props}/>);
|
|
42
31
|
};
|
|
43
32
|
describe('CheckboxInput Component', function () {
|
|
44
33
|
test('renders correctly with provided props', function () {
|
|
@@ -3,17 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
7
|
if (k2 === undefined) k2 = k;
|
|
19
8
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -52,20 +41,23 @@ var CheckboxInput = function (_a) {
|
|
|
52
41
|
var _b = (0, react_1.useState)(true), textInputDisabled = _b[0], setTextInputDisables = _b[1];
|
|
53
42
|
var renderError = function () {
|
|
54
43
|
if (error === null || error === void 0 ? void 0 : error.isNeedShowError) {
|
|
55
|
-
return
|
|
44
|
+
return <ErrorLabel_1.default>{error === null || error === void 0 ? void 0 : error.message}</ErrorLabel_1.default>;
|
|
56
45
|
}
|
|
57
46
|
};
|
|
58
|
-
return (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
return (<>
|
|
48
|
+
<>
|
|
49
|
+
<BasicCheckbox className={className} status={error === null || error === void 0 ? void 0 : error.isNeedShowError}>
|
|
50
|
+
<input {...register} onChange={function (e) {
|
|
51
|
+
setTextInputDisables(!e.target.checked);
|
|
52
|
+
register.onChange(e);
|
|
53
|
+
}} className="input" type="checkbox" name={data.name} value={value}/>
|
|
54
|
+
<p className="checkmark"/>
|
|
55
|
+
{label}
|
|
56
|
+
{withInput && (<Input_1.StyledInput status={false} {...innerTextInputRef} disabled={textInputDisabled}/>)}
|
|
57
|
+
</BasicCheckbox>
|
|
58
|
+
</>
|
|
59
|
+
{renderError()}
|
|
60
|
+
</>);
|
|
69
61
|
};
|
|
70
62
|
exports.default = CheckboxInput;
|
|
71
63
|
var templateObject_1;
|