@ludo.ninja/components 2.0.10 → 2.0.12
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 +5 -4
- /package/build/public/404/{404.js → 404.cjs} +0 -0
- /package/build/public/500/{500.js → 500.cjs} +0 -0
- /package/build/public/MobileSearchBtn/{close.js → close.cjs} +0 -0
- /package/build/public/{search/search.js → MobileSearchBtn/search.cjs} +0 -0
- /package/build/public/MobileSearchBtn/test/{pirate.js → pirate.cjs} +0 -0
- /package/build/public/MobileSearchBtn/test/{squircle.js → squircle.cjs} +0 -0
- /package/build/public/alerts/{close.js → close.cjs} +0 -0
- /package/build/public/alerts/{errorIcon.js → errorIcon.cjs} +0 -0
- /package/build/public/alerts/{successIcon.js → successIcon.cjs} +0 -0
- /package/build/public/alerts/{warningIcon.js → warningIcon.cjs} +0 -0
- /package/build/public/assetPage/{arrow.js → arrow.cjs} +0 -0
- /package/build/public/assetPage/{audioPlaceholder.js → audioPlaceholder.cjs} +0 -0
- /package/build/public/assetPage/{details.js → details.cjs} +0 -0
- /package/build/public/assetPage/{favorite.js → favorite.cjs} +0 -0
- /package/build/public/assetPage/{favorite_hover.js → favorite_hover.cjs} +0 -0
- /package/build/public/assetPage/{flag.js → flag.cjs} +0 -0
- /package/build/public/assetPage/{fullScreen.js → fullScreen.cjs} +0 -0
- /package/build/public/assetPage/{owners.js → owners.cjs} +0 -0
- /package/build/public/assetPage/{pause.js → pause.cjs} +0 -0
- /package/build/public/assetPage/{play.js → play.cjs} +0 -0
- /package/build/public/assetPage/{share.js → share.cjs} +0 -0
- /package/build/public/assetPage/{share2.js → share2.cjs} +0 -0
- /package/build/public/assetPage/{share2_hover.js → share2_hover.cjs} +0 -0
- /package/build/public/assetPage/{shareWithDots.js → shareWithDots.cjs} +0 -0
- /package/build/public/assetPage/{shareWithDots_hover.js → shareWithDots_hover.cjs} +0 -0
- /package/build/public/assetPage/{share_hover.js → share_hover.cjs} +0 -0
- /package/build/public/assetPage/{soundOf.js → soundOf.cjs} +0 -0
- /package/build/public/assetPage/{soundOn.js → soundOn.cjs} +0 -0
- /package/build/public/banner/{banner_img.js → banner_img.cjs} +0 -0
- /package/build/public/banner/{banner_stroke.js → banner_stroke.cjs} +0 -0
- /package/build/public/button_skin/{accept.js → accept.cjs} +0 -0
- /package/build/public/button_skin/{decline.js → decline.cjs} +0 -0
- /package/build/public/{calendar.js → calendar.cjs} +0 -0
- /package/build/public/cards/{addToFavListIcon.js → addToFavListIcon.cjs} +0 -0
- /package/build/public/cards/{addToGalleryIcon.js → addToGalleryIcon.cjs} +0 -0
- /package/build/public/cards/{heart.js → heart.cjs} +0 -0
- /package/build/public/cardsHolderLoader/{loader.js → loader.cjs} +0 -0
- /package/build/public/{checkbox-on.js → checkbox-on.cjs} +0 -0
- /package/build/public/{checkboxArrow.js → checkboxArrow.cjs} +0 -0
- /package/build/public/{close.js → close.cjs} +0 -0
- /package/build/public/{close20.js → close20.cjs} +0 -0
- /package/build/public/collectionPage/{export.js → export.cjs} +0 -0
- /package/build/public/{copied.js → copied.cjs} +0 -0
- /package/build/public/{copy-icon-new.js → copy-icon-new.cjs} +0 -0
- /package/build/public/creation/card/{moreBtn.js → moreBtn.cjs} +0 -0
- /package/build/public/creation/card/{moreBtnVertical.js → moreBtnVertical.cjs} +0 -0
- /package/build/public/creation/card/{moreBtn_hover.js → moreBtn_hover.cjs} +0 -0
- /package/build/public/defaultUserpics/{0.js → 0.cjs} +0 -0
- /package/build/public/defaultUserpics/{1.js → 1.cjs} +0 -0
- /package/build/public/defaultUserpics/{10.js → 10.cjs} +0 -0
- /package/build/public/defaultUserpics/{11.js → 11.cjs} +0 -0
- /package/build/public/defaultUserpics/{12.js → 12.cjs} +0 -0
- /package/build/public/defaultUserpics/{13.js → 13.cjs} +0 -0
- /package/build/public/defaultUserpics/{14.js → 14.cjs} +0 -0
- /package/build/public/defaultUserpics/{15.js → 15.cjs} +0 -0
- /package/build/public/defaultUserpics/{16.js → 16.cjs} +0 -0
- /package/build/public/defaultUserpics/{17.js → 17.cjs} +0 -0
- /package/build/public/defaultUserpics/{18.js → 18.cjs} +0 -0
- /package/build/public/defaultUserpics/{19.js → 19.cjs} +0 -0
- /package/build/public/defaultUserpics/{2.js → 2.cjs} +0 -0
- /package/build/public/defaultUserpics/{20.js → 20.cjs} +0 -0
- /package/build/public/defaultUserpics/{3.js → 3.cjs} +0 -0
- /package/build/public/defaultUserpics/{4.js → 4.cjs} +0 -0
- /package/build/public/defaultUserpics/{5.js → 5.cjs} +0 -0
- /package/build/public/defaultUserpics/{6.js → 6.cjs} +0 -0
- /package/build/public/defaultUserpics/{7.js → 7.cjs} +0 -0
- /package/build/public/defaultUserpics/{8.js → 8.cjs} +0 -0
- /package/build/public/defaultUserpics/{9.js → 9.cjs} +0 -0
- /package/build/public/defaultUserpics/{defaultUserpic.js → defaultUserpic.cjs} +0 -0
- /package/build/public/dropDown/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/{dropdown-arrow-down.js → dropdown-arrow-down.cjs} +0 -0
- /package/build/public/{dropdown-arrow-up.js → dropdown-arrow-up.cjs} +0 -0
- /package/build/public/error/{refresh.js → refresh.cjs} +0 -0
- /package/build/public/{follower.js → follower.cjs} +0 -0
- /package/build/public/forms/checkbox/{checked.js → checked.cjs} +0 -0
- /package/build/public/gallery/{defaultImage.js → defaultImage.cjs} +0 -0
- /package/build/public/gallery/{delete.js → delete.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/arrows/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/arrows/{arrow_up.js → arrow_up.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{campaigns.js → campaigns.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{add_new_campaign.js → add_new_campaign.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_galleries.js → my_galleries.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_profile.js → my_profile.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_wallets.js → my_wallets.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{notifications.js → notifications.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_campaigns.js → top_campaigns.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_creations.js → top_creations.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_creators.js → top_creators.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_galleries.js → top_galleries.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/top_/321/{201ollectors.js" → 201ollectors.cjs"} +0 -0
- /package/build/public/header/mobile_menu_icons/{experiences.js → experiences.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{settings.js → settings.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{sign_out.js → sign_out.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{submit_nft.js → submit_nft.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{top.js → top.cjs} +0 -0
- /package/build/public/header/mobile_toggle/{close.js → close.cjs} +0 -0
- /package/build/public/header/mobile_toggle/{regular.js → regular.cjs} +0 -0
- /package/build/public/iconButton/{share.js → share.cjs} +0 -0
- /package/build/public/iconButton/{trash.js → trash.cjs} +0 -0
- /package/build/public/iconButton/{trash_open.js → trash_open.cjs} +0 -0
- /package/build/public/{like-icon-active.js → like-icon-active.cjs} +0 -0
- /package/build/public/{like-icon.js → like-icon.cjs} +0 -0
- /package/build/public/logOut/{logOutBtn.js → logOutBtn.cjs} +0 -0
- /package/build/public/logo/{main_logo.js → main_logo.cjs} +0 -0
- /package/build/public/logo/{main_logo_dark.js → main_logo_dark.cjs} +0 -0
- /package/build/public/logo/{mobile_logo.js → mobile_logo.cjs} +0 -0
- /package/build/public/logo/{mobile_logo_dark.js → mobile_logo_dark.cjs} +0 -0
- /package/build/public/{ludo-logo-small.js → ludo-logo-small.cjs} +0 -0
- /package/build/public/{ludo-logo-square.js → ludo-logo-square.cjs} +0 -0
- /package/build/public/{sidebar/close.js → modal/close.cjs} +0 -0
- /package/build/public/noContent/{noContent.js → noContent.cjs} +0 -0
- /package/build/public/noContent/{noContentAudio.js → noContentAudio.cjs} +0 -0
- /package/build/public/noContent/{noContentObject.js → noContentObject.cjs} +0 -0
- /package/build/public/{no_image placeholder.js → no_image placeholder.cjs} +0 -0
- /package/build/public/{no_media_placeholder.js → no_media_placeholder.cjs} +0 -0
- /package/build/public/{report.js → report.cjs} +0 -0
- /package/build/public/rewardsPage/{XP_logo.js → XP_logo.cjs} +0 -0
- /package/build/public/rewardsPage/{arrow_up_light.js → arrow_up_light.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards.js → banner_rewards.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards_mobile.js → banner_rewards_mobile.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards_tablet.js → banner_rewards_tablet.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_seasons.js → banner_seasons.cjs} +0 -0
- /package/build/public/rewardsPage/{defaultUserPic.js → defaultUserPic.cjs} +0 -0
- /package/build/public/rewardsPage/{ludo_logo_white.js → ludo_logo_white.cjs} +0 -0
- /package/build/public/search/{arrow_up.js → arrow_up.cjs} +0 -0
- /package/build/public/search/{back.js → back.cjs} +0 -0
- /package/build/public/search/{close.js → close.cjs} +0 -0
- /package/build/public/search/{no_found.js → no_found.cjs} +0 -0
- /package/build/public/{MobileSearchBtn/search.js → search/search.cjs} +0 -0
- /package/build/public/{search-icon.js → search-icon.cjs} +0 -0
- /package/build/public/selects/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/services/{opensea.js → opensea.cjs} +0 -0
- /package/build/public/services/{other.js → other.cjs} +0 -0
- /package/build/public/services/{rarible.js → rarible.cjs} +0 -0
- /package/build/public/settings_page/{back.js → back.cjs} +0 -0
- /package/build/public/settings_page/{burger_menu.js → burger_menu.cjs} +0 -0
- /package/build/public/settings_page/{notifications.js → notifications.cjs} +0 -0
- /package/build/public/settings_page/{notifications_active.js → notifications_active.cjs} +0 -0
- /package/build/public/settings_page/{privacy.js → privacy.cjs} +0 -0
- /package/build/public/settings_page/{privacy_active.js → privacy_active.cjs} +0 -0
- /package/build/public/settings_page/{settings.js → settings.cjs} +0 -0
- /package/build/public/settings_page/{settings_active.js → settings_active.cjs} +0 -0
- /package/build/public/settings_page/{upload.js → upload.cjs} +0 -0
- /package/build/public/share/{copy-link-btn.js → copy-link-btn.cjs} +0 -0
- /package/build/public/share/{email-btn.js → email-btn.cjs} +0 -0
- /package/build/public/share/{facebook-btn.js → facebook-btn.cjs} +0 -0
- /package/build/public/share/{insta-btn.js → insta-btn.cjs} +0 -0
- /package/build/public/share/{reddit-btn.js → reddit-btn.cjs} +0 -0
- /package/build/public/share/{telegram-btn.js → telegram-btn.cjs} +0 -0
- /package/build/public/share/{twitter-btn.js → twitter-btn.cjs} +0 -0
- /package/build/public/share/{whatsapp-btn.js → whatsapp-btn.cjs} +0 -0
- /package/build/public/{share-icon.js → share-icon.cjs} +0 -0
- /package/build/public/showCaseIcons/{heart.js → heart.cjs} +0 -0
- /package/build/public/sidebar/{aboutLudo.js → aboutLudo.cjs} +0 -0
- /package/build/public/sidebar/{aboutLudoDark.js → aboutLudoDark.cjs} +0 -0
- /package/build/public/sidebar/{api.js → api.cjs} +0 -0
- /package/build/public/{modal/close.js → sidebar/close.cjs} +0 -0
- /package/build/public/sidebar/{disconnect.js → disconnect.cjs} +0 -0
- /package/build/public/sidebar/{explore.js → explore.cjs} +0 -0
- /package/build/public/sidebar/{ludoX.js → ludoX.cjs} +0 -0
- /package/build/public/sidebar/{my-invites.js → my-invites.cjs} +0 -0
- /package/build/public/sidebar/{rewards.js → rewards.cjs} +0 -0
- /package/build/public/sidebar/{submitNft.js → submitNft.cjs} +0 -0
- /package/build/public/socials/{facebook.js → facebook.cjs} +0 -0
- /package/build/public/socials/{instagram.js → instagram.cjs} +0 -0
- /package/build/public/socials/{twitter.js → twitter.cjs} +0 -0
- /package/build/public/socials/{website.js → website.cjs} +0 -0
- /package/build/public/tabs/{arrow_right.js → arrow_right.cjs} +0 -0
- /package/build/public/tabs/{arrow_right_dark.js → arrow_right_dark.cjs} +0 -0
- /package/build/public/tests/{test_1.js → test_1.cjs} +0 -0
- /package/build/public/toTopBtn/{toTopBtn.js → toTopBtn.cjs} +0 -0
- /package/build/public/{upload-userpic.js → upload-userpic.cjs} +0 -0
- /package/build/public/userpics/{placeholder-lg-1.js → placeholder-lg-1.cjs} +0 -0
- /package/build/public/userpics/{placeholder-sm-1.js → placeholder-sm-1.cjs} +0 -0
- /package/build/public/video/{pause.js → pause.cjs} +0 -0
- /package/build/public/video/{play.js → play.cjs} +0 -0
- /package/build/public/wallets/{arkane-btn.js → arkane-btn.cjs} +0 -0
- /package/build/public/wallets/{bitski-btn.js → bitski-btn.cjs} +0 -0
- /package/build/public/wallets/{elrond-btn.js → elrond-btn.cjs} +0 -0
- /package/build/public/wallets/{elrond-icon-sm.js → elrond-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{elrond.js → elrond.cjs} +0 -0
- /package/build/public/wallets/{ethereum-icon-sm.js → ethereum-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{flow-btn.js → flow-btn.cjs} +0 -0
- /package/build/public/wallets/{flow-icon-sm.js → flow-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{formatic-btn.js → formatic-btn.cjs} +0 -0
- /package/build/public/wallets/{formatic-icon-sm.js → formatic-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{maiar-btn.js → maiar-btn.cjs} +0 -0
- /package/build/public/wallets/{maiar-icon-sm.js → maiar-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{metamask-btn.js → metamask-btn.cjs} +0 -0
- /package/build/public/wallets/{metamask-icon-sm.js → metamask-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{phantom.js → phantom.cjs} +0 -0
- /package/build/public/wallets/{plus.js → plus.cjs} +0 -0
- /package/build/public/wallets/{solana-btn.js → solana-btn.cjs} +0 -0
- /package/build/public/wallets/{solana-icon-sm.js → solana-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{terra-btn.js → terra-btn.cjs} +0 -0
- /package/build/public/wallets/{terra-icon-sm.js → terra-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{tezos-btn.js → tezos-btn.cjs} +0 -0
- /package/build/public/wallets/{tezos-icon-sm.js → tezos-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{wallet_connect.js → wallet_connect.cjs} +0 -0
- /package/build/public/wallets/{walletconnect-btn.js → walletconnect-btn.cjs} +0 -0
- /package/build/public/wallets/{walletlink-btn.js → walletlink-btn.cjs} +0 -0
- /package/build/public/wallets/{walletlink-icon-sm.js → walletlink-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{xdefi-btn.js → xdefi-btn.cjs} +0 -0
- /package/build/public/wallets/{xdefi-icon-sm.js → xdefi-icon-sm.cjs} +0 -0
- /package/build/public/{warning.js → warning.cjs} +0 -0
|
@@ -1,57 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
12
|
-
const env_1 = require("../../../store/env");
|
|
13
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
14
|
-
const boxShadow_1 = __importDefault(require("../../../styles/mixins/boxShadow"));
|
|
15
|
-
const boxTransform_1 = __importDefault(require("../../../styles/mixins/boxTransform"));
|
|
16
|
-
const Container = styled_components_1.default.div `
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
6
|
+
import { useEnvStore } from "../../../store/env";
|
|
7
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
8
|
+
import BoxShadow from "../../../styles/mixins/boxShadow";
|
|
9
|
+
import BoxTransform from "../../../styles/mixins/boxTransform";
|
|
10
|
+
const Container = styled.div `
|
|
17
11
|
margin: 30px 0 0 0;
|
|
18
12
|
display: flex;
|
|
19
13
|
align-items: center;
|
|
20
14
|
flex-wrap: wrap;
|
|
21
15
|
|
|
22
|
-
${
|
|
16
|
+
${mediaQuery.tablet} {
|
|
23
17
|
margin: 20px 0 0;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
${
|
|
27
|
-
margin: ${
|
|
20
|
+
${mediaQuery.minWidthFourK} {
|
|
21
|
+
margin: ${adaptiveValueCalc(30)} 0 0 0;
|
|
28
22
|
}
|
|
29
23
|
`;
|
|
30
|
-
const StyledImage = (
|
|
31
|
-
${
|
|
32
|
-
${
|
|
24
|
+
const StyledImage = styled(Image) `
|
|
25
|
+
${BoxShadow};
|
|
26
|
+
${BoxTransform};
|
|
33
27
|
border-radius: 6px;
|
|
34
28
|
margin: 0 7px 6px 0;
|
|
35
29
|
width: 40px;
|
|
36
30
|
height: 40px;
|
|
37
31
|
|
|
38
|
-
${
|
|
39
|
-
border-radius: ${
|
|
40
|
-
margin: 0 ${
|
|
41
|
-
width: ${
|
|
42
|
-
height: ${
|
|
32
|
+
${mediaQuery.minWidthFourK} {
|
|
33
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
34
|
+
margin: 0 ${adaptiveValueCalc(7)} ${adaptiveValueCalc(6)} 0;
|
|
35
|
+
width: ${adaptiveValueCalc(40)};
|
|
36
|
+
height: ${adaptiveValueCalc(40)};
|
|
43
37
|
}
|
|
44
38
|
`;
|
|
45
39
|
const MarketLinkWrapper = ({ market, children, }) => {
|
|
46
40
|
if (market.getMarketPlaceUrl()) {
|
|
47
|
-
return ((
|
|
41
|
+
return (_jsx(Link, { target: "_blank", title: market.getMarketPlaceName(), href: market.getMarketPlaceUrl(), children: children }));
|
|
48
42
|
}
|
|
49
|
-
return (
|
|
43
|
+
return _jsx(_Fragment, { children: children });
|
|
50
44
|
};
|
|
51
|
-
const MarketPlaces = ({ markets }) => {
|
|
52
|
-
const getStaticENVDomain =
|
|
53
|
-
return ((
|
|
45
|
+
export const MarketPlaces = ({ markets }) => {
|
|
46
|
+
const getStaticENVDomain = useEnvStore((state) => state.getStaticDomain);
|
|
47
|
+
return (_jsx(Container, { children: markets?.map((market) => (_jsx(MarketLinkWrapper, { market: market, children: _jsx(StyledImage, { width: 40, height: 40, src: market.getMarketPlaceIconRegular({
|
|
54
48
|
domain: getStaticENVDomain(),
|
|
55
49
|
}), alt: market.getMarketPlaceName() }) }, market.getMarketPlaceId()))) }));
|
|
56
50
|
};
|
|
57
|
-
exports.MarketPlaces = MarketPlaces;
|
|
@@ -1,49 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
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
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
const react_1 = __importStar(require("react"));
|
|
31
|
-
const link_1 = __importDefault(require("next/link"));
|
|
32
|
-
const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
|
|
33
|
-
const imageProportionsSize_1 = require("../../../../utils/imageProportionsSize");
|
|
34
|
-
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
35
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
36
|
-
const colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
37
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
38
|
-
const vars_1 = require("../../../../fonts/vars");
|
|
39
|
-
const SScreenshotContainer = styled_components_1.default.div `
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { mediaQuery } from "../../../../styles/ScreenWidth";
|
|
5
|
+
import { defineImgProportion } from "../../../../utils/imageProportionsSize";
|
|
6
|
+
import Skeleton from 'react-loading-skeleton';
|
|
7
|
+
import styled, { css } from 'styled-components';
|
|
8
|
+
import { AccentColor, InactiveButtonColor, WhiteColor, } from '@ludo.ninja/ui/build/styles/colors';
|
|
9
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
10
|
+
import { poppinsFontVarCss } from "../../../../fonts/vars";
|
|
11
|
+
const SScreenshotContainer = styled.div `
|
|
40
12
|
border-radius: 16px;
|
|
41
13
|
overflow: hidden;
|
|
42
|
-
background-color: ${
|
|
14
|
+
background-color: ${WhiteColor};
|
|
43
15
|
transition: background-color 150ms;
|
|
44
16
|
|
|
45
17
|
&:hover {
|
|
46
|
-
background-color: ${
|
|
18
|
+
background-color: ${InactiveButtonColor};
|
|
47
19
|
}
|
|
48
20
|
|
|
49
21
|
.link {
|
|
@@ -53,14 +25,14 @@ const SScreenshotContainer = styled_components_1.default.div `
|
|
|
53
25
|
width: 100%;
|
|
54
26
|
height: 48px;
|
|
55
27
|
|
|
56
|
-
${
|
|
28
|
+
${mediaQuery.desktop} {
|
|
57
29
|
height: 42px;
|
|
58
30
|
}
|
|
59
31
|
|
|
60
32
|
span {
|
|
61
33
|
text-align: center;
|
|
62
|
-
color: ${
|
|
63
|
-
font-family: ${
|
|
34
|
+
color: ${AccentColor};
|
|
35
|
+
font-family: ${poppinsFontVarCss.css};
|
|
64
36
|
font-size: 15px;
|
|
65
37
|
font-weight: 500;
|
|
66
38
|
line-height: 22px;
|
|
@@ -70,21 +42,21 @@ const SScreenshotContainer = styled_components_1.default.div `
|
|
|
70
42
|
}
|
|
71
43
|
}
|
|
72
44
|
|
|
73
|
-
${
|
|
74
|
-
border-radius: ${
|
|
45
|
+
${mediaQuery.minWidthFourK} {
|
|
46
|
+
border-radius: ${adaptiveValueCalc(16)};
|
|
75
47
|
|
|
76
48
|
.link {
|
|
77
|
-
padding: ${
|
|
78
|
-
height: ${
|
|
49
|
+
padding: ${adaptiveValueCalc(10)};
|
|
50
|
+
height: ${adaptiveValueCalc(48)};
|
|
79
51
|
|
|
80
52
|
span {
|
|
81
|
-
font-size: ${
|
|
82
|
-
line-height: ${
|
|
53
|
+
font-size: ${adaptiveValueCalc(15)};
|
|
54
|
+
line-height: ${adaptiveValueCalc(22)};
|
|
83
55
|
}
|
|
84
56
|
}
|
|
85
57
|
}
|
|
86
58
|
`;
|
|
87
|
-
const ImageContainer =
|
|
59
|
+
const ImageContainer = styled.div `
|
|
88
60
|
display: flex;
|
|
89
61
|
position: relative;
|
|
90
62
|
align-self: center;
|
|
@@ -102,76 +74,76 @@ const ImageContainer = styled_components_1.default.div `
|
|
|
102
74
|
}
|
|
103
75
|
|
|
104
76
|
${(props) => props.isScreenshot
|
|
105
|
-
?
|
|
77
|
+
? css `
|
|
106
78
|
width: 508px;
|
|
107
79
|
height: 244px;
|
|
108
80
|
|
|
109
|
-
${
|
|
81
|
+
${mediaQuery.desktop} {
|
|
110
82
|
width: 336px;
|
|
111
83
|
height: 164px;
|
|
112
84
|
}
|
|
113
85
|
|
|
114
|
-
${
|
|
86
|
+
${mediaQuery.mobile} {
|
|
115
87
|
width: 320px;
|
|
116
88
|
height: 154px;
|
|
117
89
|
}
|
|
118
90
|
`
|
|
119
|
-
:
|
|
91
|
+
: css `
|
|
120
92
|
border-radius: 16px;
|
|
121
93
|
width: 510px;
|
|
122
94
|
height: 510px;
|
|
123
95
|
|
|
124
|
-
${
|
|
96
|
+
${mediaQuery.desktop} {
|
|
125
97
|
width: 335px;
|
|
126
98
|
height: 335px;
|
|
127
99
|
}
|
|
128
100
|
|
|
129
|
-
${
|
|
101
|
+
${mediaQuery.mobile} {
|
|
130
102
|
width: 320px;
|
|
131
103
|
height: 320px;
|
|
132
104
|
}
|
|
133
105
|
`}
|
|
134
|
-
${
|
|
106
|
+
${mediaQuery.minWidthFourK} {
|
|
135
107
|
& img {
|
|
136
|
-
border-radius: ${
|
|
137
|
-
max-height: ${
|
|
138
|
-
max-width: ${
|
|
108
|
+
border-radius: ${adaptiveValueCalc(16)};
|
|
109
|
+
max-height: ${adaptiveValueCalc(510)};
|
|
110
|
+
max-width: ${adaptiveValueCalc(510)};
|
|
139
111
|
}
|
|
140
112
|
|
|
141
113
|
${(props) => props.isScreenshot
|
|
142
|
-
?
|
|
143
|
-
width: ${
|
|
144
|
-
height: ${
|
|
114
|
+
? css `
|
|
115
|
+
width: ${adaptiveValueCalc(508)};
|
|
116
|
+
height: ${adaptiveValueCalc(244)};
|
|
145
117
|
`
|
|
146
|
-
:
|
|
147
|
-
border-radius: ${
|
|
148
|
-
width: ${
|
|
149
|
-
height: ${
|
|
118
|
+
: css `
|
|
119
|
+
border-radius: ${adaptiveValueCalc(16)};
|
|
120
|
+
width: ${adaptiveValueCalc(510)};
|
|
121
|
+
height: ${adaptiveValueCalc(510)};
|
|
150
122
|
`}
|
|
151
123
|
}
|
|
152
124
|
`;
|
|
153
125
|
const AssetImage = ({ imageUrl, errorImg, originalUrl, alt, isScreenshot, }) => {
|
|
154
|
-
const [size, setSize] =
|
|
155
|
-
const [loading, setLoading] =
|
|
156
|
-
const ref =
|
|
157
|
-
|
|
158
|
-
const { width, height } =
|
|
126
|
+
const [size, setSize] = useState({});
|
|
127
|
+
const [loading, setLoading] = useState(true);
|
|
128
|
+
const ref = useRef(null);
|
|
129
|
+
useLayoutEffect(() => {
|
|
130
|
+
const { width, height } = defineImgProportion(ref, 80);
|
|
159
131
|
if (imageUrl && parseFloat(height) && parseFloat(width)) {
|
|
160
|
-
|
|
132
|
+
defineImgProportion(ref, 80);
|
|
161
133
|
setSize({ width, height });
|
|
162
134
|
}
|
|
163
135
|
}, [imageUrl]);
|
|
164
|
-
const LinkComponent = originalUrl ?
|
|
136
|
+
const LinkComponent = originalUrl ? Link : React.Fragment;
|
|
165
137
|
const ScreenShotContainer = isScreenshot
|
|
166
138
|
? SScreenshotContainer
|
|
167
|
-
:
|
|
168
|
-
return ((
|
|
139
|
+
: React.Fragment;
|
|
140
|
+
return (_jsx(LinkComponent, { href: `${originalUrl}`, target: "_blank", children: _jsxs(ScreenShotContainer, { children: [_jsxs(ImageContainer, { isScreenshot: isScreenshot, children: [loading && (_jsx(Skeleton, { height: '100%', width: '100%', style: {
|
|
169
141
|
lineHeight: 'normal',
|
|
170
142
|
position: 'absolute',
|
|
171
143
|
top: 0,
|
|
172
144
|
left: 0,
|
|
173
145
|
visibility: `${loading ? 'hidden' : 'visible'}`,
|
|
174
|
-
} })), (
|
|
146
|
+
} })), _jsx("img", { alt: alt, ref: ref, src: imageUrl, onError: (e) => {
|
|
175
147
|
e.target.src = errorImg;
|
|
176
148
|
setSize({ width: '100%', height: '100%' });
|
|
177
149
|
}, onLoad: () => setLoading(false), style: {
|
|
@@ -182,6 +154,6 @@ const AssetImage = ({ imageUrl, errorImg, originalUrl, alt, isScreenshot, }) =>
|
|
|
182
154
|
maxWidth: '100%',
|
|
183
155
|
}
|
|
184
156
|
: size),
|
|
185
|
-
} })] }), isScreenshot && originalUrl && ((
|
|
157
|
+
} })] }), isScreenshot && originalUrl && (_jsx("div", { className: "link", title: originalUrl, children: _jsx("span", { children: originalUrl }) }))] }) }));
|
|
186
158
|
};
|
|
187
|
-
|
|
159
|
+
export default AssetImage;
|
|
@@ -1,58 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
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.MoreDropDown = void 0;
|
|
30
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
-
const react_1 = require("react");
|
|
32
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
33
|
-
const colors_1 = require("../../../styles/colors");
|
|
34
|
-
const scale_1 = require("../../../utils/adaptive/scale");
|
|
35
|
-
const screen_1 = require("../../../utils/screen");
|
|
36
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
37
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
38
|
-
const utils_1 = require("@ludo.ninja/utils");
|
|
39
|
-
const IconWithButton_1 = __importDefault(require("../../../system/Buttons/IconWithButton"));
|
|
40
|
-
const vars_1 = require("../../../fonts/vars");
|
|
41
|
-
const moreBtn_svg_1 = __importDefault(require("../../../public/creation/card/moreBtn"));
|
|
42
|
-
const SContainer = styled_components_1.default.div `
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
4
|
+
import { BackgroundColorLight, BlackColor, TextGrayColor, WhiteColor, } from "../../../styles/colors";
|
|
5
|
+
import { getAdaptiveScale } from "../../../utils/adaptive/scale";
|
|
6
|
+
import { useWindowDimensionsWithServerInitial } from "../../../utils/screen";
|
|
7
|
+
import styled, { css } from 'styled-components';
|
|
8
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
9
|
+
import { ClickAwayListener } from '@ludo.ninja/utils';
|
|
10
|
+
import IconWithButton from "../../../system/Buttons/IconWithButton";
|
|
11
|
+
import { dmsansFontVarCss } from "../../../fonts/vars";
|
|
12
|
+
import MoreIcon from "../../../public/creation/card/moreBtn";
|
|
13
|
+
const SContainer = styled.div `
|
|
43
14
|
position: relative;
|
|
44
15
|
|
|
45
16
|
& > *:first-child {
|
|
46
17
|
width: 24px;
|
|
47
18
|
height: 24px;
|
|
48
19
|
|
|
49
|
-
${
|
|
50
|
-
width: ${
|
|
51
|
-
height: ${
|
|
20
|
+
${mediaQuery.minWidthFourK} {
|
|
21
|
+
width: ${adaptiveValueCalc(24)};
|
|
22
|
+
height: ${adaptiveValueCalc(24)};
|
|
52
23
|
}
|
|
53
24
|
}
|
|
54
25
|
`;
|
|
55
|
-
const SContent =
|
|
26
|
+
const SContent = styled.div `
|
|
56
27
|
position: absolute;
|
|
57
28
|
padding: 8px;
|
|
58
29
|
top: calc(100% + 8px);
|
|
@@ -66,32 +37,32 @@ const SContent = styled_components_1.default.div `
|
|
|
66
37
|
opacity: ${(props) => (props.isOpen ? '1' : '0')};
|
|
67
38
|
|
|
68
39
|
border-radius: 6px;
|
|
69
|
-
background: ${
|
|
40
|
+
background: ${WhiteColor};
|
|
70
41
|
box-shadow: 0px 8px 16px -16px rgba(33, 21, 95, 0.1);
|
|
71
42
|
width: 184px;
|
|
72
43
|
|
|
73
|
-
${
|
|
74
|
-
padding: ${
|
|
75
|
-
top: calc(100% + ${
|
|
76
|
-
border-radius: ${
|
|
77
|
-
box-shadow: 0 ${
|
|
78
|
-
${
|
|
79
|
-
width: ${
|
|
44
|
+
${mediaQuery.minWidthFourK} {
|
|
45
|
+
padding: ${adaptiveValueCalc(8)};
|
|
46
|
+
top: calc(100% + ${adaptiveValueCalc(8)});
|
|
47
|
+
border-radius: ${adaptiveValueCalc(6)};
|
|
48
|
+
box-shadow: 0 ${adaptiveValueCalc(8)} ${adaptiveValueCalc(16)}
|
|
49
|
+
${adaptiveValueCalc(-16)} rgba(33, 21, 95, 0.1);
|
|
50
|
+
width: ${adaptiveValueCalc(184)};
|
|
80
51
|
}
|
|
81
52
|
`;
|
|
82
|
-
const hover =
|
|
83
|
-
color: ${
|
|
53
|
+
const hover = css `
|
|
54
|
+
color: ${BlackColor};
|
|
84
55
|
border-radius: 4px;
|
|
85
|
-
background: ${
|
|
56
|
+
background: ${BackgroundColorLight};
|
|
86
57
|
|
|
87
|
-
${
|
|
88
|
-
border-radius: ${
|
|
58
|
+
${mediaQuery.minWidthFourK} {
|
|
59
|
+
border-radius: ${adaptiveValueCalc(4)};
|
|
89
60
|
}
|
|
90
61
|
`;
|
|
91
|
-
const SButton =
|
|
92
|
-
font-family: ${
|
|
62
|
+
const SButton = styled.button `
|
|
63
|
+
font-family: ${dmsansFontVarCss.css};
|
|
93
64
|
padding: 6px 8px;
|
|
94
|
-
color: ${
|
|
65
|
+
color: ${TextGrayColor};
|
|
95
66
|
font-size: 13px;
|
|
96
67
|
font-weight: 400;
|
|
97
68
|
line-height: 18px;
|
|
@@ -111,31 +82,31 @@ const SButton = styled_components_1.default.button `
|
|
|
111
82
|
}
|
|
112
83
|
}
|
|
113
84
|
|
|
114
|
-
${
|
|
115
|
-
padding: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
line-height: ${
|
|
85
|
+
${mediaQuery.minWidthFourK} {
|
|
86
|
+
padding: ${adaptiveValueCalc(6)} ${adaptiveValueCalc(8)};
|
|
87
|
+
font-size: ${adaptiveValueCalc(13)};
|
|
88
|
+
line-height: ${adaptiveValueCalc(18)};
|
|
118
89
|
}
|
|
119
90
|
`;
|
|
120
|
-
const SIcon =
|
|
91
|
+
const SIcon = styled.div `
|
|
121
92
|
display: flex;
|
|
122
93
|
align-items: center;
|
|
123
94
|
justify-content: center;
|
|
124
95
|
|
|
125
|
-
${
|
|
126
|
-
width: ${
|
|
127
|
-
height: ${
|
|
96
|
+
${mediaQuery.minWidthFourK} {
|
|
97
|
+
width: ${adaptiveValueCalc(17)};
|
|
98
|
+
height: ${adaptiveValueCalc(4)};
|
|
128
99
|
}
|
|
129
100
|
`;
|
|
130
101
|
const IconResize = () => {
|
|
131
|
-
const { windowDimensions } =
|
|
132
|
-
return ((
|
|
102
|
+
const { windowDimensions } = useWindowDimensionsWithServerInitial();
|
|
103
|
+
return (_jsx(SIcon, { children: _jsx(MoreIcon, { style: getAdaptiveScale({
|
|
133
104
|
windowDimensions,
|
|
134
105
|
currentSize: 1,
|
|
135
106
|
}) }) }));
|
|
136
107
|
};
|
|
137
|
-
const MoreDropDown = ({ items }) => {
|
|
138
|
-
const [isOpen, setIsOpen] =
|
|
108
|
+
export const MoreDropDown = ({ items }) => {
|
|
109
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
139
110
|
const handle = {
|
|
140
111
|
close() {
|
|
141
112
|
setIsOpen(false);
|
|
@@ -144,9 +115,8 @@ const MoreDropDown = ({ items }) => {
|
|
|
144
115
|
setIsOpen((prev) => !prev);
|
|
145
116
|
},
|
|
146
117
|
};
|
|
147
|
-
return ((
|
|
118
|
+
return (_jsx(ClickAwayListener, { onClickAway: handle.close, children: _jsxs(SContainer, { children: [_jsx(IconWithButton, { variant: 'dots', onClick: handle.toggle, children: _jsx(IconResize, {}) }), _jsx(SContent, { isOpen: isOpen, children: items.map(({ title, onClick, id }) => (_jsx(SButton, { onClick: () => {
|
|
148
119
|
onClick?.();
|
|
149
120
|
handle.close();
|
|
150
|
-
}, children: (
|
|
121
|
+
}, children: _jsx("span", { children: title }) }, id))) })] }) }));
|
|
151
122
|
};
|
|
152
|
-
exports.MoreDropDown = MoreDropDown;
|