@ludo.ninja/components 2.0.9 → 2.0.11
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/build/api/graphql/index.js +3 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
- package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
- package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
- package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
- package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
- package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
- package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
- package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
- package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
- package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
- package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
- package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
- package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
- package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
- package/build/api/server-search/queries/useFindCreations/index.js +20 -28
- package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
- package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
- package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
- package/build/components/assetPage/assetLikes/index.js +25 -30
- package/build/components/assetPage/assetNft/index.js +14 -21
- package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
- package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
- package/build/components/assetPage/category/index.js +18 -25
- package/build/components/assetPage/description/index.js +17 -24
- package/build/components/assetPage/index.js +11 -25
- package/build/components/assetPage/information/index.js +43 -50
- package/build/components/assetPage/marketPlaces/index.js +26 -33
- package/build/components/assetPage/media/AssetImage/index.js +52 -80
- package/build/components/assetPage/moreDropDown/index.js +47 -77
- package/build/components/assetPage/participants/index.js +64 -71
- package/build/components/assetPage/priceRank/index.js +38 -45
- package/build/components/assetPage/properties/index.js +19 -26
- package/build/components/assetPage/slider/index.js +44 -51
- package/build/components/assetPage/slider/slideItem.js +14 -21
- package/build/components/assetPage/slider/store.js +2 -5
- package/build/components/assetPage/tittle/index.js +32 -39
- package/build/components/assetPage/viewer3D/index.js +50 -58
- package/build/components/base/Meta/index.js +6 -11
- package/build/components/base/NoSSR/index.js +4 -9
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
- package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
- package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
- package/build/components/headers/components/headerUserPic/index.js +11 -16
- package/build/components/headers/header/index.js +17 -22
- package/build/components/headers/headerSearch/index.js +21 -26
- package/build/components/headers/headerSimple/index.js +14 -19
- package/build/components/linkTabs/index.js +14 -19
- package/build/components/linkTabs/linkTab/index.js +22 -27
- package/build/components/profile/profileSkeleton/index.js +10 -18
- package/build/components/search/SearchInputContainer.js +61 -91
- package/build/components/search/searchCloseMoreButtons/index.js +20 -25
- package/build/components/search/searchSimpleInput/index.js +37 -65
- package/build/components/search/searchSuggestions/index.js +32 -37
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
- package/build/components/searchFiltersConnector/filters/index.js +38 -43
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
- package/build/components/searchFiltersConnector/index.js +12 -19
- package/build/components/sidebar/data.js +18 -26
- package/build/components/sidebar/index.js +59 -87
- package/build/components/sidebar/initializer.js +4 -34
- package/build/components/sidebar/sidebarFilters/index.js +8 -13
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
- package/build/components/toTopBtn/index.js +32 -39
- package/build/dto/AssetEntity/index.js +19 -24
- package/build/dto/AssetEntity/interface.js +1 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
- package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
- package/build/dto/AssetEntity/views/index.js +6 -16
- package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
- package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
- package/build/dto/Collection/CollectionEntity/index.js +5 -7
- package/build/dto/Collection/CollectionEntity/interface.js +1 -2
- package/build/dto/CreationEntity/index.js +19 -24
- package/build/dto/CreationEntity/interface.js +1 -2
- package/build/dto/GalleryEntityV2/index.js +5 -10
- package/build/dto/GalleryEntityV2/interface.js +1 -2
- package/build/dto/Theme/interface.js +1 -5
- package/build/dto/common/ItemType/data.js +26 -28
- package/build/dto/common/ItemType/index.js +5 -7
- package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
- package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
- package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
- package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
- package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
- package/build/dto/common/Media/Audio/index.js +9 -14
- package/build/dto/common/Media/Image/index.js +10 -15
- package/build/dto/common/Media/Object/index.js +9 -14
- package/build/dto/common/Media/Other/index.js +14 -19
- package/build/dto/common/Media/Screenshot/index.js +10 -15
- package/build/dto/common/Media/Urls/index.js +23 -38
- package/build/dto/common/Media/Video/index.js +9 -14
- package/build/dto/common/Media/index.js +3 -5
- package/build/dto/common/Media/interface.js +1 -2
- package/build/entities/user/type.js +1 -2
- package/build/fonts/FontsInitializeLayout.js +13 -16
- package/build/fonts/vars.js +1 -6
- package/build/hooks/apollo/index.js +8 -11
- package/build/hooks/audio/useMultiAudio/index.js +10 -12
- package/build/hooks/extension/useExtension/index.js +8 -10
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
- package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
- package/build/hooks/likes/index.js +27 -32
- package/build/hooks/likes/useGetLikesAsset.js +20 -24
- package/build/layouts/GlobalLayout.js +24 -31
- package/build/layouts/base/LWithRegularHeader/index.js +7 -12
- package/build/layouts/base/LWithRegularHeader/type.js +1 -2
- package/build/layouts/base/LWithSearchHeader/index.js +5 -10
- package/build/layouts/base/LWithSearchHeader/type.js +1 -2
- package/build/layouts/custom/mainLayout/index.js +8 -13
- package/build/layouts/custom/styles.js +15 -21
- package/build/layouts/pageTransitionLayout.js +6 -8
- package/build/layouts/pageWithLayout.js +1 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
- package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
- package/build/modules/gallery/store.js +10 -16
- package/build/modules/gallery/ui/AllResults.js +7 -11
- package/build/modules/gallery/ui/Description.js +24 -31
- package/build/modules/gallery/ui/EditGallery.js +15 -22
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
- package/build/modules/gallery/ui/STopSections.js +10 -16
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
- package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
- package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
- package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
- package/build/modules/gallery/useToGalleryAsset.js +15 -23
- package/build/modules/notifications/CreatorNotifications.js +10 -40
- package/build/modules/notifications/index.js +3 -6
- package/build/modules/opportunity/OpportunityCard.js +81 -88
- package/build/modules/opportunity/OpportunityDropDown.js +11 -18
- package/build/modules/opportunity/ShareIcon.js +2 -6
- package/build/modules/opportunity/encodeQuery.js +4 -10
- package/build/modules/opportunity/popup/CopyIcon.js +3 -5
- package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
- package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
- package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
- package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
- package/build/modules/opportunity/type.js +1 -2
- package/build/modules/sessionScroll/globalTabs.js +1 -4
- package/build/modules/sessionScroll/index.js +16 -23
- package/build/modules/sessionScroll/type.js +1 -2
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
- package/build/modules/user/auth/useAuthVerification.js +10 -37
- package/build/modules/user/auth/useSignIn.js +7 -11
- package/build/modules/user/auth/useSignOut.js +11 -18
- package/build/modules/user/profileData/profileDataInitialization.js +14 -18
- package/build/modules/user/store.js +9 -12
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
- package/build/modules/virtuoso/types.js +1 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
- package/build/modules/virtuoso/useVirtuosoData.js +6 -10
- package/build/store/env/index.js +4 -7
- package/build/store/index.js +4 -7
- package/build/store/media/index.js +4 -7
- package/build/store/media/types.js +1 -2
- package/build/store/ui/index.js +21 -24
- package/build/store/ui/types.js +1 -2
- package/build/store/ui/utils.js +4 -8
- package/build/styles/ScreenWidth.js +3 -6
- package/build/styles/animations/index.js +3 -6
- package/build/styles/colors/index.js +1 -38
- package/build/styles/globalStyles.js +5 -7
- package/build/styles/mixins/boxShadow.js +3 -5
- package/build/styles/mixins/boxTransform.js +3 -5
- package/build/styles/mixins/z-indexes.js +10 -13
- package/build/styles/typography/index.js +1 -13
- package/build/system/ActiveLink/ActiveLink.test.js +14 -19
- package/build/system/ActiveLink/index.js +10 -38
- package/build/system/Alert/index.js +6 -11
- package/build/system/Alert/type.js +1 -8
- package/build/system/BasicOverlay/index.js +5 -10
- package/build/system/Buttons/IconButton/index.js +2 -7
- package/build/system/Buttons/IconWithButton/index.js +2 -7
- package/build/system/Buttons/MainButton/index.js +2 -7
- package/build/system/Buttons/SecondaryButton/index.js +2 -7
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
- package/build/system/Cards/CardCheckbox/index.js +19 -24
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
- package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
- package/build/system/Cards/CardContent/CardContent.test.js +31 -36
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
- package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
- package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
- package/build/system/Cards/CardContent/index.js +32 -37
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
- package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
- package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
- package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
- package/build/system/Cards/CardRank/index.js +32 -37
- package/build/system/Cards/CreationCard/CardHead.js +35 -42
- package/build/system/Cards/CreationCard/index.js +45 -76
- package/build/system/Cards/MultiMediaCard/index.js +30 -35
- package/build/system/Cards/Styles/Content.js +9 -14
- package/build/system/Cards/Styles/Head.js +8 -13
- package/build/system/Cards/Styles/Headicons.js +23 -28
- package/build/system/Cards/Styles/Image.js +8 -13
- package/build/system/Cards/Styles/Likes.js +14 -19
- package/build/system/Cards/Styles/MultiHead.js +11 -16
- package/build/system/Cards/Styles/Video.js +3 -8
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
- package/build/system/DropDown/DropDown.test.js +14 -19
- package/build/system/DropDown/index.js +12 -17
- package/build/system/Filters/helpers.js +1 -5
- package/build/system/Filters/type.js +2 -5
- package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
- package/build/system/Forms/Checkbox/index.js +16 -21
- package/build/system/Forms/DatePicker/index.js +46 -51
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
- package/build/system/Forms/ErrorLabel/index.js +10 -15
- package/build/system/Forms/Input/Input.test.js +13 -18
- package/build/system/Forms/Input/index.js +29 -35
- package/build/system/Forms/Input/type.js +1 -2
- package/build/system/Forms/Messages/index.js +1 -3
- package/build/system/Forms/RadioInput/index.js +12 -17
- package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
- package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
- package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
- package/build/system/Forms/TextArea/TextArea.test.js +13 -18
- package/build/system/Forms/TextArea/index.js +26 -31
- package/build/system/Forms/index.js +5 -14
- package/build/system/Img/ExternalImage/index.js +11 -17
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
- package/build/system/Img/ImageInterceptor/index.js +10 -40
- package/build/system/Img/Profilepic/index.js +12 -19
- package/build/system/Img/Userpic/UserPic.test.js +15 -20
- package/build/system/Img/Userpic/index.js +28 -33
- package/build/system/Img/index.js +3 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
- package/build/system/Labels/ExperienceLabel/index.js +27 -32
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
- package/build/system/Labels/InviteLabel/index.js +14 -19
- package/build/system/Labels/SkeletonLabel/index.js +2 -7
- package/build/system/Modals/Modal/Modal.test.js +11 -16
- package/build/system/Modals/Modal/index.js +24 -29
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
- package/build/system/Modals/ModalSidebar/index.js +23 -29
- package/build/system/Overlay/Overlay.test.js +11 -16
- package/build/system/Overlay/index.js +11 -16
- package/build/system/PageLoader/index.js +2 -7
- package/build/system/Palete/index.js +2 -7
- package/build/system/ShareIconResize.js +14 -21
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
- package/build/system/Tabs/TabNavLink/index.js +17 -23
- package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
- package/build/system/Tabs/TabsNav/index.js +7 -13
- package/build/system/Tabs/TabsNav/type.js +1 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
- package/build/system/Tabs/TabsPanel/index.js +5 -10
- package/build/system/index.js +6 -22
- package/build/system/theme.js +1 -7
- package/build/utils/3d.js +1 -5
- package/build/utils/adaptive/check4k.js +5 -9
- package/build/utils/adaptive/scale.js +5 -9
- package/build/utils/auth/index.js +3 -7
- package/build/utils/copyBtn/index.js +23 -30
- package/build/utils/env/index.js +1 -5
- package/build/utils/extractItemIds.js +3 -9
- package/build/utils/getDimensionsImage.js +1 -5
- package/build/utils/getPageSizeAssets.js +4 -8
- package/build/utils/imageProportionsSize/index.js +1 -5
- package/build/utils/screen/index.js +24 -30
- package/build/utils/seacrhTabs.js +1 -4
- package/build/utils/ssrFunctions/index.js +9 -15
- package/build/utils/ui/index.js +1 -5
- package/package.json +2 -3
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const Headicons_1 = __importDefault(require("../Styles/Headicons"));
|
|
18
|
-
const auth_1 = require("../../../utils/auth");
|
|
19
|
-
const screen_1 = require("../../../utils/screen");
|
|
20
|
-
const addToFavListIcon_svg_1 = __importDefault(require("../../../public/cards/addToFavListIcon"));
|
|
21
|
-
const addToGalleryIcon_svg_1 = __importDefault(require("../../../public/cards/addToGalleryIcon"));
|
|
22
|
-
const heart_svg_1 = __importDefault(require("../../../public/cards/heart"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRouter } from 'next/router';
|
|
3
|
+
import AddCreationToFavoriteList from "../../../components/favoriteList/add/addCreationToFavoriteList";
|
|
4
|
+
import CollectionCreationEntity from "../../../dto/Collection/CollectionCreationEntity";
|
|
5
|
+
import { LabelKeys } from "../../../dto/common/ItemType";
|
|
6
|
+
import { useUserStore } from "../../../modules/user/store";
|
|
7
|
+
import { useEnvStore } from "../../../store/env";
|
|
8
|
+
import { useUiStore } from "../../../store/ui";
|
|
9
|
+
import { ScreenWidth } from "../../../styles/ScreenWidth";
|
|
10
|
+
import CardRank from "../CardRank";
|
|
11
|
+
import StyledHeadIcons from "../Styles/Headicons";
|
|
12
|
+
import { useRedirectToLoginWindow } from "../../../utils/auth";
|
|
13
|
+
import { useWindowDimensionsWithServerInitial } from "../../../utils/screen";
|
|
14
|
+
import AddToFavListIcon from "../../../public/cards/addToFavListIcon";
|
|
15
|
+
import AddToGalleryIcon from "../../../public/cards/addToGalleryIcon";
|
|
16
|
+
import AddToLikesIcon from "../../../public/cards/heart";
|
|
23
17
|
// Component
|
|
24
|
-
const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }) => {
|
|
25
|
-
const redirectToLoginWindow =
|
|
26
|
-
const isProd =
|
|
27
|
-
const openModalSidebarPortal =
|
|
28
|
-
const isSignedIn =
|
|
18
|
+
export const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }) => {
|
|
19
|
+
const redirectToLoginWindow = useRedirectToLoginWindow();
|
|
20
|
+
const isProd = useEnvStore((state) => state.isProd);
|
|
21
|
+
const openModalSidebarPortal = useUiStore((state) => state.openModalSidebarPortal);
|
|
22
|
+
const isSignedIn = useUserStore((state) => state.isSignedIn);
|
|
29
23
|
const isLicked = isIconLiked && isSignedIn;
|
|
30
|
-
const { windowDimensions } =
|
|
24
|
+
const { windowDimensions } = useWindowDimensionsWithServerInitial();
|
|
31
25
|
const isMobile = !!(windowDimensions?.windowWidth &&
|
|
32
|
-
windowDimensions.windowWidth <=
|
|
33
|
-
const router =
|
|
26
|
+
windowDimensions.windowWidth <= ScreenWidth.DESKTOP);
|
|
27
|
+
const router = useRouter();
|
|
34
28
|
const isGallery = router.pathname.includes('gallery');
|
|
35
29
|
const handleClick = async (e, type) => {
|
|
36
30
|
e.preventDefault();
|
|
@@ -39,38 +33,37 @@ const CardHead = ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteL
|
|
|
39
33
|
redirectToLoginWindow();
|
|
40
34
|
}
|
|
41
35
|
else if (type === 'fav-list') {
|
|
42
|
-
openModalSidebarPortal((
|
|
43
|
-
creation instanceof
|
|
36
|
+
openModalSidebarPortal(_jsx(AddCreationToFavoriteList, { ids: [
|
|
37
|
+
creation instanceof CollectionCreationEntity
|
|
44
38
|
? `${creation.getItemType() + '.' + creation.getCreationId()}`
|
|
45
39
|
: creation.getCreationId(),
|
|
46
40
|
], currentMyGalleryId: currentMyGalleryId }));
|
|
47
41
|
}
|
|
48
42
|
else if (type === 'likes') {
|
|
49
43
|
if (!isLicked) {
|
|
50
|
-
await addLikeToCard(creation instanceof
|
|
51
|
-
creation.getItemType() !==
|
|
44
|
+
await addLikeToCard(creation instanceof CollectionCreationEntity &&
|
|
45
|
+
creation.getItemType() !== LabelKeys.collection
|
|
52
46
|
? creation.getCollectionCreationId()
|
|
53
47
|
: creation.getItemId());
|
|
54
48
|
}
|
|
55
49
|
else {
|
|
56
|
-
await deleteLikeFromCard(creation instanceof
|
|
57
|
-
creation.getItemType() !==
|
|
50
|
+
await deleteLikeFromCard(creation instanceof CollectionCreationEntity &&
|
|
51
|
+
creation.getItemType() !== LabelKeys.collection
|
|
58
52
|
? creation.getCollectionCreationId()
|
|
59
53
|
: creation.getItemId());
|
|
60
54
|
}
|
|
61
55
|
}
|
|
62
56
|
};
|
|
63
57
|
const renderLikeButton = () => {
|
|
64
|
-
if ([
|
|
65
|
-
return ((
|
|
58
|
+
if ([LabelKeys.asset, LabelKeys.collection].includes(creation.getItemType())) {
|
|
59
|
+
return (_jsx("div", { className: `icon like ${isLicked ? 'liked' : ''}`, onClick: (e) => handleClick(e, 'likes'), children: _jsx(AddToLikesIcon, {}) }));
|
|
66
60
|
}
|
|
67
61
|
};
|
|
68
|
-
return ((
|
|
62
|
+
return (_jsxs(StyledHeadIcons, { isMobile: isMobile, style: isDisabled
|
|
69
63
|
? {
|
|
70
64
|
pointerEvents: 'none',
|
|
71
65
|
}
|
|
72
|
-
: {}, children: [(
|
|
66
|
+
: {}, children: [_jsx("div", { className: 'rank', children: _jsx(CardRank, { rank: creation.getRank() }) }), !isProd() && !isShowCheckbox && (_jsxs("div", { className: "icons", children: [_jsx("div", { className: "icon", onClick: (e) => handleClick(e, isRegularCard || !isUserProfile || isGallery
|
|
73
67
|
? 'fav-list'
|
|
74
|
-
: 'gallery'), children: isRegularCard || !isUserProfile || isGallery ? ((
|
|
68
|
+
: 'gallery'), children: isRegularCard || !isUserProfile || isGallery ? (_jsx(AddToFavListIcon, {})) : (_jsx(AddToGalleryIcon, {})) }), renderLikeButton()] }))] }));
|
|
75
69
|
};
|
|
76
|
-
exports.CardHead = CardHead;
|
|
@@ -1,73 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.CreationCard = exports.CreationCardWithCheckboxState = void 0;
|
|
30
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
-
const react_1 = __importDefault(require("react"));
|
|
32
|
-
const link_1 = __importDefault(require("next/link"));
|
|
33
|
-
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
34
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
35
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
36
|
-
const env_1 = require("../../../store/env");
|
|
37
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
38
|
-
const colors_1 = require("../../../styles/colors");
|
|
39
|
-
const boxShadow_1 = __importDefault(require("../../../styles/mixins/boxShadow"));
|
|
40
|
-
const boxTransform_1 = __importDefault(require("../../../styles/mixins/boxTransform"));
|
|
41
|
-
const index_1 = require("../../index");
|
|
42
|
-
const CardCheckbox_1 = __importDefault(require("../CardCheckbox"));
|
|
43
|
-
const CardContent_1 = __importDefault(require("../CardContent"));
|
|
44
|
-
const CardCategory_1 = __importDefault(require("../CardContent/CardCategory"));
|
|
45
|
-
const CardLikes_1 = __importDefault(require("../CardContent/CardLikes"));
|
|
46
|
-
const CardHead_1 = require("./CardHead");
|
|
47
|
-
const Head_1 = __importDefault(require("../Styles/Head"));
|
|
48
|
-
const Headicons_1 = __importDefault(require("../Styles/Headicons"));
|
|
49
|
-
const likes_1 = __importDefault(require("../../../hooks/likes"));
|
|
50
|
-
const useToGalleryAsset_1 = require("../../../modules/gallery/useToGalleryAsset");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import Skeleton from 'react-loading-skeleton';
|
|
5
|
+
import styled, { css } from 'styled-components';
|
|
6
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
7
|
+
import { useEnvStore } from "../../../store/env";
|
|
8
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
9
|
+
import { WhiteColor } from "../../../styles/colors";
|
|
10
|
+
import BoxShadow from "../../../styles/mixins/boxShadow";
|
|
11
|
+
import BoxTransform from "../../../styles/mixins/boxTransform";
|
|
12
|
+
import { Flex } from "../../index";
|
|
13
|
+
import CardCheckBox from "../CardCheckbox";
|
|
14
|
+
import CardContent from "../CardContent";
|
|
15
|
+
import CardCategory from "../CardContent/CardCategory";
|
|
16
|
+
import CardLikes from "../CardContent/CardLikes";
|
|
17
|
+
import { CardHead } from "./CardHead";
|
|
18
|
+
import StyledCardHead from "../Styles/Head";
|
|
19
|
+
import StyledHeadIcons from "../Styles/Headicons";
|
|
20
|
+
import useLikes from "../../../hooks/likes";
|
|
21
|
+
import { getIsActiveCreation, useToGalleryStore, } from "../../../modules/gallery/useToGalleryAsset";
|
|
51
22
|
// Styles
|
|
52
|
-
const StyledRegularCard =
|
|
23
|
+
const StyledRegularCard = styled.div `
|
|
53
24
|
position: relative;
|
|
54
|
-
background-color: ${
|
|
25
|
+
background-color: ${WhiteColor};
|
|
55
26
|
border-radius: 6px;
|
|
56
|
-
${
|
|
57
|
-
${
|
|
58
|
-
// ${(props) => (props.isNeedTransform ? null :
|
|
27
|
+
${BoxShadow};
|
|
28
|
+
${BoxTransform};
|
|
29
|
+
// ${(props) => (props.isNeedTransform ? null : BoxTransform)}
|
|
59
30
|
|
|
60
31
|
min-height: ${(props) => (props.isNeedHeight ? '346px' : '')};
|
|
61
32
|
|
|
62
33
|
${(props) => props.isShowCheckbox
|
|
63
|
-
?
|
|
64
|
-
${
|
|
34
|
+
? css `
|
|
35
|
+
${StyledHeadIcons} {
|
|
65
36
|
transition: 0.2s opacity ease-in;
|
|
66
37
|
opacity: 1 !important;
|
|
67
38
|
}
|
|
68
39
|
`
|
|
69
|
-
:
|
|
70
|
-
&:hover ${
|
|
40
|
+
: css `
|
|
41
|
+
&:hover ${StyledHeadIcons} {
|
|
71
42
|
transition: 0.2s opacity ease-in;
|
|
72
43
|
opacity: 1 !important;
|
|
73
44
|
}
|
|
@@ -78,35 +49,34 @@ const StyledRegularCard = styled_components_1.default.div `
|
|
|
78
49
|
flex-direction: column;
|
|
79
50
|
}
|
|
80
51
|
|
|
81
|
-
${
|
|
52
|
+
${mediaQuery.maxWidthTablet} {
|
|
82
53
|
width: 164px;
|
|
83
54
|
min-height: ${(props) => (props.isNeedHeight ? '258px' : '')};
|
|
84
55
|
}
|
|
85
56
|
|
|
86
|
-
${
|
|
57
|
+
${mediaQuery.mobile} {
|
|
87
58
|
width: 154px;
|
|
88
59
|
min-height: ${(props) => (props.isNeedHeight ? '244px' : '')};
|
|
89
60
|
}
|
|
90
61
|
|
|
91
|
-
${
|
|
92
|
-
border-radius: ${
|
|
62
|
+
${mediaQuery.minWidthFourK} {
|
|
63
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
93
64
|
|
|
94
|
-
min-height: ${(props) => props.isNeedHeight ?
|
|
65
|
+
min-height: ${(props) => props.isNeedHeight ? adaptiveValueCalc(346) : ''};
|
|
95
66
|
}
|
|
96
67
|
`;
|
|
97
68
|
// Component
|
|
98
|
-
const CreationCardWithCheckboxState = (props) => {
|
|
99
|
-
const { toggleCreationToGallery, isActiveGalleryMode, creationsToGallery } =
|
|
69
|
+
export const CreationCardWithCheckboxState = (props) => {
|
|
70
|
+
const { toggleCreationToGallery, isActiveGalleryMode, creationsToGallery } = useToGalleryStore((state) => ({
|
|
100
71
|
toggleCreationToGallery: state.toggleCreationToGallery,
|
|
101
72
|
isActiveGalleryMode: state.isActiveGalleryMode,
|
|
102
73
|
creationsToGallery: state.creationsToGallery,
|
|
103
74
|
}));
|
|
104
|
-
return ((
|
|
75
|
+
return (_jsx(CreationCard, { ...props, isShowCheckbox: isActiveGalleryMode, isActiveCheckbox: getIsActiveCreation(creationsToGallery, props.creation), toggleCreationToGallery: toggleCreationToGallery }));
|
|
105
76
|
};
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const { likes, addLike, deleteLike } = (0, likes_1.default)({
|
|
77
|
+
export const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard = true, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId, }) => {
|
|
78
|
+
const isProd = useEnvStore((state) => state.isProd);
|
|
79
|
+
const { likes, addLike, deleteLike } = useLikes({
|
|
110
80
|
defaultLikesCount: likesDynamicInfo?.likesNum || creation.getLikes(),
|
|
111
81
|
defaultIsLiked: likesDynamicInfo?.isLikedByUser || creation.getIsLiked(),
|
|
112
82
|
itemType: creation.getItemType(),
|
|
@@ -115,10 +85,9 @@ const CreationCard = ({ creationName, creation, isNeedHeight, likesDynamicInfo,
|
|
|
115
85
|
});
|
|
116
86
|
// Todo cardLink
|
|
117
87
|
const isHide = isProd();
|
|
118
|
-
const HideLink = isHide ?
|
|
119
|
-
return ((
|
|
88
|
+
const HideLink = isHide ? React.Fragment : Link;
|
|
89
|
+
return (_jsxs(StyledRegularCard, { isNeedHeight: isNeedHeight, isNeedTransform: isNeedShowMoreButton, isShowCheckbox: isShowCheckbox, children: [isShowCheckbox && (_jsx(CardCheckBox, { isActiveCheckbox: !!isActiveCheckbox, onChange: () => {
|
|
120
90
|
toggleCreationToGallery?.(creation);
|
|
121
|
-
} })), (
|
|
122
|
-
(isLoadingLikes ? ((
|
|
91
|
+
} })), _jsxs(HideLink, { className: "linkRegularCard", href: creation.getCreationLink(), children: [_jsxs(StyledCardHead, { children: [creation.detectMediaType().displaySingleMedia(), _jsx(CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })] }), _jsx(CardContent, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton: isNeedShowMoreButton || false, href: creation.getCreationLink(), children: _jsxs(Flex, { alignItems: "end", justifyContent: 'space-between', children: [_jsx(CardCategory, { label: creation.getLabel() }), !isProd() &&
|
|
92
|
+
(isLoadingLikes ? (_jsx(Skeleton, { style: { borderRadius: '3px' }, height: "100%", width: "30px" })) : (_jsx(CardLikes, { isLiked: likes.isLiked, likes: likes.likesCount })))] }) })] })] }));
|
|
123
93
|
};
|
|
124
|
-
exports.CreationCard = CreationCard;
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const MultiHead_1 = __importDefault(require("../Styles/MultiHead"));
|
|
17
|
-
const index_1 = require("../../index");
|
|
18
|
-
const defaultImage_svg_1 = __importDefault(require("../../../public/gallery/defaultImage"));
|
|
19
|
-
const CardCategory_1 = __importDefault(require("../CardContent/CardCategory"));
|
|
20
|
-
const CardImage_1 = __importDefault(require("../CardMedia/CardImage"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
5
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
6
|
+
import { WhiteColor } from "../../../styles/colors";
|
|
7
|
+
import BoxShadow from "../../../styles/mixins/boxShadow";
|
|
8
|
+
import BoxTransform from "../../../styles/mixins/boxTransform";
|
|
9
|
+
import CardContent from "../CardContent";
|
|
10
|
+
import CardLikes from "../CardContent/CardLikes";
|
|
11
|
+
import StyledMultiHead from "../Styles/MultiHead";
|
|
12
|
+
import { Flex } from "../../index";
|
|
13
|
+
import DefaultGalleryIcon from "../../../public/gallery/defaultImage";
|
|
14
|
+
import CardCategory from '../CardContent/CardCategory';
|
|
15
|
+
import CardImage from '../CardMedia/CardImage';
|
|
21
16
|
// Styles
|
|
22
|
-
const StyledMultiCard =
|
|
17
|
+
const StyledMultiCard = styled.div `
|
|
23
18
|
position: relative;
|
|
24
|
-
background-color: ${
|
|
19
|
+
background-color: ${WhiteColor};
|
|
25
20
|
border-radius: 6px;
|
|
26
|
-
${
|
|
27
|
-
${
|
|
21
|
+
${BoxShadow};
|
|
22
|
+
${BoxTransform};
|
|
28
23
|
@media (max-width: 1200px) {
|
|
29
24
|
height: max-content;
|
|
30
25
|
}
|
|
@@ -69,21 +64,21 @@ const StyledMultiCard = styled_components_1.default.div `
|
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
|
|
72
|
-
${
|
|
73
|
-
border-radius: ${
|
|
67
|
+
${mediaQuery.minWidthFourK} {
|
|
68
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
74
69
|
.media {
|
|
75
70
|
& img {
|
|
76
|
-
border-radius: ${
|
|
71
|
+
border-radius: ${adaptiveValueCalc(3)};
|
|
77
72
|
}
|
|
78
73
|
& video {
|
|
79
|
-
border-radius: ${
|
|
74
|
+
border-radius: ${adaptiveValueCalc(3)};
|
|
80
75
|
}
|
|
81
76
|
}
|
|
82
77
|
|
|
83
78
|
.media.digital {
|
|
84
79
|
& svg {
|
|
85
|
-
width: ${
|
|
86
|
-
height: ${
|
|
80
|
+
width: ${adaptiveValueCalc(20)};
|
|
81
|
+
height: ${adaptiveValueCalc(20)};
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
84
|
}
|
|
@@ -91,7 +86,7 @@ const StyledMultiCard = styled_components_1.default.div `
|
|
|
91
86
|
// Component
|
|
92
87
|
const MultiMediaCard = ({ gallery, assets, collections, }) => {
|
|
93
88
|
const mediaTemplate = (mediaKey, media) => {
|
|
94
|
-
return ((
|
|
89
|
+
return (_jsx("div", { className: media.type?.name === 'CardVideo' || media.type?.name === 'CardAudio'
|
|
95
90
|
? 'media digital'
|
|
96
91
|
: 'media', children: media }, mediaKey));
|
|
97
92
|
};
|
|
@@ -114,17 +109,17 @@ const MultiMediaCard = ({ gallery, assets, collections, }) => {
|
|
|
114
109
|
cardsMedia.push(mediaTemplate(i, asset.detectMediaType().displaySingleMedia()));
|
|
115
110
|
}
|
|
116
111
|
else if (collection) {
|
|
117
|
-
cardsMedia.push(mediaTemplate(i, (
|
|
112
|
+
cardsMedia.push(mediaTemplate(i, _jsx(CardImage, { alt: `${collection.getName()} ${collection.getAddress() || ''}`, imgSrc: collection.getOriginalUrls()?.[0] ?? '', errorImg: '/noContent/noContent.svg' })));
|
|
118
113
|
}
|
|
119
114
|
else {
|
|
120
|
-
cardsMedia.push(mediaTemplate(i, (
|
|
115
|
+
cardsMedia.push(mediaTemplate(i, _jsx(DefaultGalleryIcon, {})));
|
|
121
116
|
}
|
|
122
117
|
}
|
|
123
118
|
return cardsMedia;
|
|
124
119
|
};
|
|
125
120
|
const secondName = gallery.getGalleryUsername() !== '' ? gallery.getGalleryUsername() : '';
|
|
126
121
|
// const userCreationAddresses = gallery?.getGalleryCreations()[0]?.getOwnersAddresses();
|
|
127
|
-
return ((
|
|
122
|
+
return (_jsx(StyledMultiCard, { children: _jsxs(Link, { href: gallery.getCreationLink(), children: [_jsx(StyledMultiHead, { children: renderMedia() }), _jsx(CardContent, { firstName: gallery.getGalleryName(), secondName: secondName, wallets: gallery.getGalleryUserWallets(), isNeedShowMoreButton: false, itemId: gallery.getGalleryId(), children: _jsxs(Flex, { alignItems: "flex-end", justifyContent: 'space-between', children: [_jsx(CardCategory, { label: gallery.getLabel() }), _jsx(CardLikes, { isLiked: false, likes: 0 })] }) })] }) }));
|
|
128
123
|
};
|
|
129
124
|
// Export
|
|
130
|
-
|
|
125
|
+
export default MultiMediaCard;
|
|
@@ -1,13 +1,8 @@
|
|
|
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
1
|
// Styles
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const StyledContentCard =
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { BlackColor, TextGrayColor } from "../../../styles/colors";
|
|
4
|
+
import { MainText, TextSmall } from "../../../styles/typography";
|
|
5
|
+
const StyledContentCard = styled.div `
|
|
11
6
|
display: flex;
|
|
12
7
|
flex-direction: column;
|
|
13
8
|
padding: 12px 16px;
|
|
@@ -19,13 +14,13 @@ const StyledContentCard = styled_components_1.default.div `
|
|
|
19
14
|
|
|
20
15
|
&Artist {
|
|
21
16
|
.artist_name {
|
|
22
|
-
${
|
|
23
|
-
color: ${
|
|
17
|
+
${TextSmall};
|
|
18
|
+
color: ${TextGrayColor};
|
|
24
19
|
line-height: 1.39em;
|
|
25
20
|
}
|
|
26
21
|
.art_name {
|
|
27
|
-
${
|
|
28
|
-
color: ${
|
|
22
|
+
${MainText};
|
|
23
|
+
color: ${BlackColor};
|
|
29
24
|
line-height: 1.47em;
|
|
30
25
|
margin-bottom: 0;
|
|
31
26
|
}
|
|
@@ -37,4 +32,4 @@ const StyledContentCard = styled_components_1.default.div `
|
|
|
37
32
|
padding: 12px;
|
|
38
33
|
}
|
|
39
34
|
`;
|
|
40
|
-
|
|
35
|
+
export default StyledContentCard;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
8
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
3
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
9
4
|
// Styles
|
|
10
|
-
const StyledCardHead =
|
|
5
|
+
const StyledCardHead = styled.div `
|
|
11
6
|
position: relative;
|
|
12
7
|
height: 252px;
|
|
13
8
|
width: 252px;
|
|
@@ -37,9 +32,9 @@ const StyledCardHead = styled_components_1.default.div `
|
|
|
37
32
|
width: 154px;
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
${
|
|
41
|
-
height: ${
|
|
42
|
-
width: ${
|
|
35
|
+
${mediaQuery.minWidthFourK} {
|
|
36
|
+
height: ${adaptiveValueCalc(252)};
|
|
37
|
+
width: ${adaptiveValueCalc(252)};
|
|
43
38
|
}
|
|
44
39
|
`;
|
|
45
|
-
|
|
40
|
+
export default StyledCardHead;
|
|
@@ -1,14 +1,9 @@
|
|
|
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
1
|
// Styles
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const StyledHeadIcons =
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
4
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
5
|
+
import { BlackColor, TextDarkGrayColor, WhiteColor } from "../../../styles/colors";
|
|
6
|
+
const StyledHeadIcons = styled.div `
|
|
12
7
|
transition: 0.2s opacity ease-out;
|
|
13
8
|
opacity: 0;
|
|
14
9
|
|
|
@@ -42,7 +37,7 @@ const StyledHeadIcons = styled_components_1.default.div `
|
|
|
42
37
|
display: flex;
|
|
43
38
|
align-items: center;
|
|
44
39
|
justify-content: center;
|
|
45
|
-
background: ${
|
|
40
|
+
background: ${WhiteColor};
|
|
46
41
|
border-radius: 6px;
|
|
47
42
|
width: ${(props) => (props.isMobile ? '24px' : '36px')};
|
|
48
43
|
height: ${(props) => (props.isMobile ? '24px' : '36px')};
|
|
@@ -56,7 +51,7 @@ const StyledHeadIcons = styled_components_1.default.div `
|
|
|
56
51
|
height: ${(props) => (props.isMobile ? '12px' : '18px')};
|
|
57
52
|
|
|
58
53
|
path {
|
|
59
|
-
fill: ${
|
|
54
|
+
fill: ${TextDarkGrayColor};
|
|
60
55
|
transition: fill 0.2s;
|
|
61
56
|
}
|
|
62
57
|
}
|
|
@@ -66,7 +61,7 @@ const StyledHeadIcons = styled_components_1.default.div `
|
|
|
66
61
|
transition: transform 0.2s;
|
|
67
62
|
|
|
68
63
|
path {
|
|
69
|
-
fill: ${
|
|
64
|
+
fill: ${BlackColor};
|
|
70
65
|
transition: fill 0.2s;
|
|
71
66
|
}
|
|
72
67
|
}
|
|
@@ -82,40 +77,40 @@ const StyledHeadIcons = styled_components_1.default.div `
|
|
|
82
77
|
}
|
|
83
78
|
}
|
|
84
79
|
|
|
85
|
-
${
|
|
80
|
+
${mediaQuery.minWidthFourK} {
|
|
86
81
|
&:before {
|
|
87
|
-
height: ${
|
|
88
|
-
border-top-left-radius: ${
|
|
89
|
-
border-top-right-radius: ${
|
|
82
|
+
height: ${adaptiveValueCalc(100)};
|
|
83
|
+
border-top-left-radius: ${adaptiveValueCalc(6)};
|
|
84
|
+
border-top-right-radius: ${adaptiveValueCalc(6)};
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
.rank {
|
|
93
|
-
top: ${
|
|
94
|
-
left: ${
|
|
88
|
+
top: ${adaptiveValueCalc(16)};
|
|
89
|
+
left: ${adaptiveValueCalc(16)};
|
|
95
90
|
}
|
|
96
91
|
|
|
97
92
|
.icons {
|
|
98
|
-
top: ${
|
|
99
|
-
right: ${
|
|
93
|
+
top: ${adaptiveValueCalc(16)};
|
|
94
|
+
right: ${adaptiveValueCalc(7)};
|
|
100
95
|
}
|
|
101
96
|
|
|
102
97
|
.icon {
|
|
103
|
-
border-radius: ${
|
|
104
|
-
width: ${(props) => (props.isMobile ? '24px' :
|
|
105
|
-
height: ${(props) => (props.isMobile ? '24px' :
|
|
98
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
99
|
+
width: ${(props) => (props.isMobile ? '24px' : adaptiveValueCalc(36))};
|
|
100
|
+
height: ${(props) => (props.isMobile ? '24px' : adaptiveValueCalc(36))};
|
|
106
101
|
|
|
107
102
|
svg {
|
|
108
|
-
width: ${(props) => (props.isMobile ? '13px' :
|
|
109
|
-
height: ${(props) => (props.isMobile ? '12px' :
|
|
103
|
+
width: ${(props) => (props.isMobile ? '13px' : adaptiveValueCalc(20))};
|
|
104
|
+
height: ${(props) => (props.isMobile ? '12px' : adaptiveValueCalc(18))};
|
|
110
105
|
}
|
|
111
106
|
}
|
|
112
107
|
|
|
113
108
|
.icon.like {
|
|
114
|
-
margin-left: ${
|
|
109
|
+
margin-left: ${adaptiveValueCalc(12)};
|
|
115
110
|
}
|
|
116
111
|
}
|
|
117
112
|
`;
|
|
118
113
|
StyledHeadIcons.defaultProps = {
|
|
119
114
|
isMobile: false,
|
|
120
115
|
};
|
|
121
|
-
|
|
116
|
+
export default StyledHeadIcons;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
8
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
9
|
-
const StyledImg = styled_components_1.default.img `
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
3
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
4
|
+
const StyledImg = styled.img `
|
|
10
5
|
display: block;
|
|
11
6
|
width: 100%;
|
|
12
7
|
height: 100%;
|
|
@@ -16,9 +11,9 @@ const StyledImg = styled_components_1.default.img `
|
|
|
16
11
|
opacity: ${(props) => (props.isLoading ? '0' : '1')};
|
|
17
12
|
transition: opacity ease-in 0.3s;
|
|
18
13
|
|
|
19
|
-
${
|
|
20
|
-
border-top-left-radius: ${
|
|
21
|
-
border-top-right-radius: ${
|
|
14
|
+
${mediaQuery.minWidthFourK} {
|
|
15
|
+
border-top-left-radius: ${adaptiveValueCalc(6)};
|
|
16
|
+
border-top-right-radius: ${adaptiveValueCalc(6)};
|
|
22
17
|
}
|
|
23
18
|
`;
|
|
24
|
-
|
|
19
|
+
export default StyledImg;
|