@ludo.ninja/components 2.0.1 → 2.0.2
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.d.ts +4 -0
- package/build/api/graphql/index.js +11 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +32 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.d.ts +7 -0
- package/build/api/server-assets/mutations/useLikeAsset/index.js +33 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.d.ts +14 -0
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +48 -0
- package/build/api/server-assets/queries/useFetchAssets/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchAssets/index.js +31 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.d.ts +8 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +35 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.d.ts +7 -0
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +30 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +31 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.d.ts +7 -0
- package/build/api/server-collection/mutations/useLikeCollection/index.js +31 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +2 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +84 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.d.ts +31 -0
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +49 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +36 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.d.ts +4 -0
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +30 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +35 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +43 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +25 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.d.ts +6 -0
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +25 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.d.ts +8 -0
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +42 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +39 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.d.ts +5 -0
- package/build/api/server-galleries/mutations/useEditGallery/index.js +23 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +49 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.d.ts +7 -0
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +44 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.d.ts +16 -0
- package/build/api/server-galleries/queries/useFetchGallery/index.js +46 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +18 -0
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +86 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +70 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +72 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +9 -0
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +69 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.d.ts +11 -0
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +68 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.d.ts +12 -0
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +39 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +35 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.d.ts +5 -0
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +35 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useFollowProfile/index.js +40 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +31 -0
- package/build/api/server-identities/mutations/useInviteCode/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useInviteCode/index.js +34 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +37 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.d.ts +4 -0
- package/build/api/server-identities/mutations/useRevokeToken/index.js +21 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +34 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.d.ts +7 -0
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +39 -0
- package/build/api/server-identities/queries/useFetchProfile/index.d.ts +16 -0
- package/build/api/server-identities/queries/useFetchProfile/index.js +80 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +7 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +19 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.d.ts +6 -0
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +20 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.d.ts +4 -0
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +27 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.d.ts +12 -0
- package/build/api/server-medias/queries/useFetchUserPic/index.js +39 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.d.ts +4 -0
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +29 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.d.ts +5 -0
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +28 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.d.ts +4 -0
- package/build/api/server-opportunities/queries/useGetOpportunities.js +26 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.d.ts +28 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +33 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +14 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +37 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +32 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.js +94 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +33 -0
- package/build/api/server-search/queries/useFetchCollection/index.d.ts +19 -0
- package/build/api/server-search/queries/useFetchCollection/index.js +59 -0
- package/build/api/server-search/queries/useFetchCollections/index.d.ts +23 -0
- package/build/api/server-search/queries/useFetchCollections/index.js +101 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +126 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +47 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +59 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.d.ts +7 -0
- package/build/api/server-search/queries/useFetchNetWorth/index.js +23 -0
- package/build/api/server-search/queries/useFindCreations/index.d.ts +34 -0
- package/build/api/server-search/queries/useFindCreations/index.js +107 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.d.ts +32 -0
- package/build/api/server-search/queries/useFindProfilesByName/index.js +59 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +42 -0
- package/build/api/server-search/queries/useFindUserCreations/index.d.ts +16 -0
- package/build/api/server-search/queries/useFindUserCreations/index.js +95 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.d.ts +2 -0
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +40 -0
- package/build/api/subscriptions/SubscriberInviteNotification.d.ts +1 -0
- package/build/api/subscriptions/SubscriberInviteNotification.js +44 -0
- package/build/components/assetPage/assetLikes/index.d.ts +6 -0
- package/build/components/assetPage/assetLikes/index.js +58 -0
- package/build/components/assetPage/assetNft/index.d.ts +4 -0
- package/build/components/assetPage/assetNft/index.js +37 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.d.ts +5 -0
- package/build/components/assetPage/audioVideoPlayer/Duration.js +22 -0
- package/build/components/assetPage/audioVideoPlayer/index.d.ts +96 -0
- package/build/components/assetPage/audioVideoPlayer/index.js +308 -0
- package/build/components/assetPage/category/index.d.ts +6 -0
- package/build/components/assetPage/category/index.js +55 -0
- package/build/components/assetPage/description/index.d.ts +4 -0
- package/build/components/assetPage/description/index.js +43 -0
- package/build/components/assetPage/index.d.ts +11 -0
- package/build/components/assetPage/index.js +25 -0
- package/build/components/assetPage/information/index.d.ts +6 -0
- package/build/components/assetPage/information/index.js +117 -0
- package/build/components/assetPage/marketPlaces/index.d.ts +4 -0
- package/build/components/assetPage/marketPlaces/index.js +57 -0
- package/build/components/assetPage/media/AssetImage/index.d.ts +8 -0
- package/build/components/assetPage/media/AssetImage/index.js +187 -0
- package/build/components/assetPage/moreDropDown/index.d.ts +10 -0
- package/build/components/assetPage/moreDropDown/index.js +152 -0
- package/build/components/assetPage/participants/index.d.ts +9 -0
- package/build/components/assetPage/participants/index.js +178 -0
- package/build/components/assetPage/priceRank/index.d.ts +9 -0
- package/build/components/assetPage/priceRank/index.js +112 -0
- package/build/components/assetPage/properties/index.d.ts +4 -0
- package/build/components/assetPage/properties/index.js +42 -0
- package/build/components/assetPage/slider/index.d.ts +5 -0
- package/build/components/assetPage/slider/index.js +178 -0
- package/build/components/assetPage/slider/slideItem.d.ts +5 -0
- package/build/components/assetPage/slider/slideItem.js +53 -0
- package/build/components/assetPage/slider/store.d.ts +8 -0
- package/build/components/assetPage/slider/store.js +16 -0
- package/build/components/assetPage/tittle/index.d.ts +9 -0
- package/build/components/assetPage/tittle/index.js +89 -0
- package/build/components/assetPage/viewer3D/index.d.ts +7 -0
- package/build/components/assetPage/viewer3D/index.js +123 -0
- package/build/components/base/Meta/index.d.ts +2 -0
- package/build/components/base/Meta/index.js +39 -0
- package/build/components/base/NoSSR/index.d.ts +5 -0
- package/build/components/base/NoSSR/index.js +11 -0
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.d.ts +7 -0
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +28 -0
- package/build/components/gallery/add/addCreationToGallery/index.d.ts +2 -0
- package/build/components/gallery/add/addCreationToGallery/index.js +48 -0
- package/build/components/headers/components/MobileToggle/index.d.ts +0 -0
- package/build/components/headers/components/MobileToggle/index.js +1 -0
- package/build/components/headers/components/headerExperienceLabel/index.d.ts +4 -0
- package/build/components/headers/components/headerExperienceLabel/index.js +31 -0
- package/build/components/headers/components/headerUserPic/index.d.ts +4 -0
- package/build/components/headers/components/headerUserPic/index.js +29 -0
- package/build/components/headers/header/index.d.ts +2 -0
- package/build/components/headers/header/index.js +30 -0
- package/build/components/headers/headerSearch/index.d.ts +2 -0
- package/build/components/headers/headerSearch/index.js +37 -0
- package/build/components/headers/headerSimple/index.d.ts +2 -0
- package/build/components/headers/headerSimple/index.js +76 -0
- package/build/components/linkTabs/index.d.ts +7 -0
- package/build/components/linkTabs/index.js +51 -0
- package/build/components/linkTabs/linkTab/index.d.ts +8 -0
- package/build/components/linkTabs/linkTab/index.js +74 -0
- package/build/components/profile/profileSkeleton/index.d.ts +4 -0
- package/build/components/profile/profileSkeleton/index.js +75 -0
- package/build/components/search/SearchInputContainer.d.ts +26 -0
- package/build/components/search/SearchInputContainer.js +226 -0
- package/build/components/search/searchCloseMoreButtons/index.d.ts +14 -0
- package/build/components/search/searchCloseMoreButtons/index.js +58 -0
- package/build/components/search/searchSimpleInput/index.d.ts +4 -0
- package/build/components/search/searchSimpleInput/index.js +139 -0
- package/build/components/search/searchSuggestions/index.d.ts +14 -0
- package/build/components/search/searchSuggestions/index.js +145 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.d.ts +7 -0
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +45 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +2 -0
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +52 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.d.ts +11 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +117 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +3 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +116 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +4 -0
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +46 -0
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +55 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +60 -0
- package/build/components/searchFiltersConnector/filters/index.d.ts +11 -0
- package/build/components/searchFiltersConnector/filters/index.js +158 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.d.ts +5 -0
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +25 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.d.ts +9 -0
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +53 -0
- package/build/components/searchFiltersConnector/index.d.ts +10 -0
- package/build/components/searchFiltersConnector/index.js +121 -0
- package/build/components/sidebar/data.d.ts +19 -0
- package/build/components/sidebar/data.js +80 -0
- package/build/components/sidebar/index.d.ts +2 -0
- package/build/components/sidebar/index.js +160 -0
- package/build/components/sidebar/initializer.d.ts +1 -0
- package/build/components/sidebar/initializer.js +36 -0
- package/build/components/sidebar/sidebarFilters/index.d.ts +7 -0
- package/build/components/sidebar/sidebarFilters/index.js +51 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.d.ts +2 -0
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +38 -0
- package/build/components/toTopBtn/index.d.ts +5 -0
- package/build/components/toTopBtn/index.js +95 -0
- package/build/dto/AssetEntity/index.d.ts +63 -0
- package/build/dto/AssetEntity/index.js +223 -0
- package/build/dto/AssetEntity/interface.d.ts +39 -0
- package/build/dto/AssetEntity/interface.js +2 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.d.ts +9 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.js +27 -0
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetImage/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetObject/index.js +59 -0
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetOther/index.js +43 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +10 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +38 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +9 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.js +27 -0
- package/build/dto/AssetEntity/views/index.d.ts +6 -0
- package/build/dto/AssetEntity/views/index.js +16 -0
- package/build/dto/Collection/CollectionCreationEntity/index.d.ts +45 -0
- package/build/dto/Collection/CollectionCreationEntity/index.js +173 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.d.ts +24 -0
- package/build/dto/Collection/CollectionCreationEntity/interface.js +2 -0
- package/build/dto/Collection/CollectionEntity/index.d.ts +32 -0
- package/build/dto/Collection/CollectionEntity/index.js +82 -0
- package/build/dto/Collection/CollectionEntity/interface.d.ts +16 -0
- package/build/dto/Collection/CollectionEntity/interface.js +2 -0
- package/build/dto/CreationEntity/index.d.ts +49 -0
- package/build/dto/CreationEntity/index.js +178 -0
- package/build/dto/CreationEntity/interface.d.ts +30 -0
- package/build/dto/CreationEntity/interface.js +2 -0
- package/build/dto/GalleryEntityV2/index.d.ts +32 -0
- package/build/dto/GalleryEntityV2/index.js +82 -0
- package/build/dto/GalleryEntityV2/interface.d.ts +16 -0
- package/build/dto/GalleryEntityV2/interface.js +2 -0
- package/build/dto/Theme/interface.d.ts +2 -0
- package/build/dto/Theme/interface.js +5 -0
- package/build/dto/common/ItemType/data.d.ts +3 -0
- package/build/dto/common/ItemType/data.js +36 -0
- package/build/dto/common/ItemType/index.d.ts +45 -0
- package/build/dto/common/ItemType/index.js +42 -0
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationAudio/index.js +27 -0
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +10 -0
- package/build/dto/common/ItemViews/CreationImage/index.js +38 -0
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationOther/index.js +27 -0
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationVideo/index.js +27 -0
- package/build/dto/common/Media/Audio/index.d.ts +13 -0
- package/build/dto/common/Media/Audio/index.js +37 -0
- package/build/dto/common/Media/Image/index.d.ts +13 -0
- package/build/dto/common/Media/Image/index.js +45 -0
- package/build/dto/common/Media/Object/index.d.ts +13 -0
- package/build/dto/common/Media/Object/index.js +46 -0
- package/build/dto/common/Media/Other/index.d.ts +13 -0
- package/build/dto/common/Media/Other/index.js +65 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +13 -0
- package/build/dto/common/Media/Screenshot/index.js +45 -0
- package/build/dto/common/Media/Urls/index.d.ts +31 -0
- package/build/dto/common/Media/Urls/index.js +124 -0
- package/build/dto/common/Media/Video/index.d.ts +13 -0
- package/build/dto/common/Media/Video/index.js +37 -0
- package/build/dto/common/Media/index.d.ts +26 -0
- package/build/dto/common/Media/index.js +45 -0
- package/build/dto/common/Media/interface.d.ts +28 -0
- package/build/dto/common/Media/interface.js +2 -0
- package/build/entities/user/type.d.ts +5 -0
- package/build/entities/user/type.js +2 -0
- package/build/fonts/FontsInitializeLayout.d.ts +6 -0
- package/build/fonts/FontsInitializeLayout.js +160 -0
- package/build/fonts/vars.d.ts +1 -0
- package/build/fonts/vars.js +6 -0
- package/build/hooks/apollo/index.d.ts +2 -0
- package/build/hooks/apollo/index.js +13 -0
- package/build/hooks/audio/useMultiAudio/index.d.ts +2 -0
- package/build/hooks/audio/useMultiAudio/index.js +47 -0
- package/build/hooks/extension/useExtension/index.d.ts +7 -0
- package/build/hooks/extension/useExtension/index.js +32 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.d.ts +23 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +132 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +24 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +188 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +24 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +177 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +150 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +125 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +135 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +18 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +139 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.d.ts +16 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +151 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.d.ts +19 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +49 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +15 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.js +117 -0
- package/build/hooks/likes/index.d.ts +19 -0
- package/build/hooks/likes/index.js +113 -0
- package/build/hooks/likes/useGetLikesAsset.d.ts +20 -0
- package/build/hooks/likes/useGetLikesAsset.js +97 -0
- package/build/index.d.ts +0 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +221 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.d.ts +6 -0
- package/build/modules/gallery/api/useGetFavoriteGallery.js +40 -0
- package/build/modules/gallery/store.d.ts +26 -0
- package/build/modules/gallery/store.js +101 -0
- package/build/modules/gallery/ui/AllResults.d.ts +3 -0
- package/build/modules/gallery/ui/AllResults.js +12 -0
- package/build/modules/gallery/ui/Description.d.ts +4 -0
- package/build/modules/gallery/ui/Description.js +101 -0
- package/build/modules/gallery/ui/EditGallery.d.ts +9 -0
- package/build/modules/gallery/ui/EditGallery.js +51 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.d.ts +4 -0
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +28 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -0
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +71 -0
- package/build/modules/gallery/ui/STopSections.d.ts +2 -0
- package/build/modules/gallery/ui/STopSections.js +31 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +7 -0
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +92 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +161 -0
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +13 -0
- package/build/modules/gallery/ui/createGalleryForm/index.js +140 -0
- package/build/modules/gallery/ui/editGalleryForm/index.d.ts +8 -0
- package/build/modules/gallery/ui/editGalleryForm/index.js +192 -0
- package/build/modules/gallery/ui/itemsPreview/index.d.ts +20 -0
- package/build/modules/gallery/ui/itemsPreview/index.js +279 -0
- package/build/modules/gallery/useToGalleryAsset.d.ts +18 -0
- package/build/modules/gallery/useToGalleryAsset.js +88 -0
- package/build/modules/notifications/CreatorNotifications.d.ts +1 -0
- package/build/modules/notifications/CreatorNotifications.js +41 -0
- package/build/modules/notifications/index.d.ts +22 -0
- package/build/modules/notifications/index.js +6 -0
- package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
- package/build/modules/opportunity/OpportunityCard.js +235 -0
- package/build/modules/opportunity/OpportunityDropDown.d.ts +5 -0
- package/build/modules/opportunity/OpportunityDropDown.js +42 -0
- package/build/modules/opportunity/ShareIcon.d.ts +1 -0
- package/build/modules/opportunity/ShareIcon.js +6 -0
- package/build/modules/opportunity/encodeQuery.d.ts +14 -0
- package/build/modules/opportunity/encodeQuery.js +31 -0
- package/build/modules/opportunity/popup/CopyIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/CopyIcon.js +7 -0
- package/build/modules/opportunity/popup/FacebookIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/FacebookIcon.js +7 -0
- package/build/modules/opportunity/popup/LinkedInIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LinkedInIcon.js +7 -0
- package/build/modules/opportunity/popup/LogoXIcon.d.ts +8 -0
- package/build/modules/opportunity/popup/LogoXIcon.js +7 -0
- package/build/modules/opportunity/popup/OpportunityMenu.d.ts +8 -0
- package/build/modules/opportunity/popup/OpportunityMenu.js +201 -0
- package/build/modules/opportunity/type.d.ts +2 -0
- package/build/modules/opportunity/type.js +2 -0
- package/build/modules/sessionScroll/globalTabs.d.ts +12 -0
- package/build/modules/sessionScroll/globalTabs.js +50 -0
- package/build/modules/sessionScroll/index.d.ts +14 -0
- package/build/modules/sessionScroll/index.js +61 -0
- package/build/modules/sessionScroll/type.d.ts +7 -0
- package/build/modules/sessionScroll/type.js +2 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +12 -0
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +59 -0
- package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
- package/build/modules/user/auth/useAuthVerification.js +74 -0
- package/build/modules/user/auth/useSignIn.d.ts +2 -0
- package/build/modules/user/auth/useSignIn.js +23 -0
- package/build/modules/user/auth/useSignOut.d.ts +1 -0
- package/build/modules/user/auth/useSignOut.js +37 -0
- package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
- package/build/modules/user/profileData/profileDataInitialization.js +59 -0
- package/build/modules/user/store.d.ts +33 -0
- package/build/modules/user/store.js +73 -0
- package/build/modules/virtuoso/VirtuosoPageBuilder.d.ts +19 -0
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +135 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.d.ts +9 -0
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +38 -0
- package/build/modules/virtuoso/types.d.ts +7 -0
- package/build/modules/virtuoso/types.js +2 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +3 -0
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +27 -0
- package/build/modules/virtuoso/useVirtuosoData.d.ts +12 -0
- package/build/modules/virtuoso/useVirtuosoData.js +49 -0
- package/build/store/env/index.d.ts +22 -0
- package/build/store/env/index.js +37 -0
- package/build/store/index.d.ts +10 -0
- package/build/store/index.js +12 -0
- package/build/store/media/index.d.ts +2 -0
- package/build/store/media/index.js +59 -0
- package/build/store/media/types.d.ts +11 -0
- package/build/store/media/types.js +2 -0
- package/build/store/ui/index.d.ts +2 -0
- package/build/store/ui/index.js +116 -0
- package/build/store/ui/types.d.ts +34 -0
- package/build/store/ui/types.js +2 -0
- package/build/store/ui/utils.d.ts +7 -0
- package/build/store/ui/utils.js +25 -0
- package/build/styles/ScreenWidth.d.ts +22 -0
- package/build/styles/ScreenWidth.js +26 -0
- package/build/styles/animations/index.d.ts +2 -0
- package/build/styles/animations/index.js +20 -0
- package/build/styles/colors/index.d.ts +1 -0
- package/build/styles/colors/index.js +38 -0
- package/build/styles/globalStyles.d.ts +3 -0
- package/build/styles/globalStyles.js +86 -0
- package/build/styles/mixins/boxShadow.d.ts +2 -0
- package/build/styles/mixins/boxShadow.js +13 -0
- package/build/styles/mixins/boxTransform.d.ts +2 -0
- package/build/styles/mixins/boxTransform.js +12 -0
- package/build/styles/mixins/z-indexes.d.ts +10 -0
- package/build/styles/mixins/z-indexes.js +13 -0
- package/build/styles/typography/index.d.ts +1 -0
- package/build/styles/typography/index.js +13 -0
- package/build/system/ActiveLink/ActiveLink.test.d.ts +1 -0
- package/build/system/ActiveLink/ActiveLink.test.js +48 -0
- package/build/system/ActiveLink/index.d.ts +9 -0
- package/build/system/ActiveLink/index.js +49 -0
- package/build/system/Alert/index.d.ts +2 -0
- package/build/system/Alert/index.js +21 -0
- package/build/system/Alert/type.d.ts +2 -0
- package/build/system/Alert/type.js +8 -0
- package/build/system/BasicOverlay/index.d.ts +2 -0
- package/build/system/BasicOverlay/index.js +27 -0
- package/build/system/Buttons/IconButton/index.d.ts +2 -0
- package/build/system/Buttons/IconButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/index.d.ts +2 -0
- package/build/system/Buttons/IconWithButton/index.js +7 -0
- package/build/system/Buttons/IconWithButton/themes.d.ts +0 -0
- package/build/system/Buttons/IconWithButton/themes.js +1 -0
- package/build/system/Buttons/MainButton/index.d.ts +2 -0
- package/build/system/Buttons/MainButton/index.js +7 -0
- package/build/system/Buttons/MainButton/themes.d.ts +0 -0
- package/build/system/Buttons/MainButton/themes.js +1 -0
- package/build/system/Buttons/SecondaryButton/index.d.ts +2 -0
- package/build/system/Buttons/SecondaryButton/index.js +7 -0
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.d.ts +1 -0
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +35 -0
- package/build/system/Cards/CardCheckbox/index.d.ts +5 -0
- package/build/system/Cards/CardCheckbox/index.js +92 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +28 -0
- package/build/system/Cards/CardContent/CardCategory/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardCategory/index.js +54 -0
- package/build/system/Cards/CardContent/CardContent.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardContent.test.js +103 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +37 -0
- package/build/system/Cards/CardContent/CardLikes/index.d.ts +5 -0
- package/build/system/Cards/CardContent/CardLikes/index.js +29 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.d.ts +1 -0
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +46 -0
- package/build/system/Cards/CardContent/CardShowMore/index.d.ts +7 -0
- package/build/system/Cards/CardContent/CardShowMore/index.js +121 -0
- package/build/system/Cards/CardContent/index.d.ts +17 -0
- package/build/system/Cards/CardContent/index.js +97 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +92 -0
- package/build/system/Cards/CardMedia/CardAudio/index.d.ts +7 -0
- package/build/system/Cards/CardMedia/CardAudio/index.js +66 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.d.ts +1 -0
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +34 -0
- package/build/system/Cards/CardMedia/CardImage/index.d.ts +6 -0
- package/build/system/Cards/CardMedia/CardImage/index.js +19 -0
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +6 -0
- package/build/system/Cards/CardMedia/CardVideo/index.js +54 -0
- package/build/system/Cards/CardRank/index.d.ts +4 -0
- package/build/system/Cards/CardRank/index.js +82 -0
- package/build/system/Cards/CreationCard/CardHead.d.ts +13 -0
- package/build/system/Cards/CreationCard/CardHead.js +76 -0
- package/build/system/Cards/CreationCard/index.d.ts +28 -0
- package/build/system/Cards/CreationCard/index.js +124 -0
- package/build/system/Cards/MultiMediaCard/index.d.ts +9 -0
- package/build/system/Cards/MultiMediaCard/index.js +130 -0
- package/build/system/Cards/Styles/Content.d.ts +3 -0
- package/build/system/Cards/Styles/Content.js +40 -0
- package/build/system/Cards/Styles/Head.d.ts +3 -0
- package/build/system/Cards/Styles/Head.js +45 -0
- package/build/system/Cards/Styles/Headicons.d.ts +5 -0
- package/build/system/Cards/Styles/Headicons.js +121 -0
- package/build/system/Cards/Styles/Image.d.ts +5 -0
- package/build/system/Cards/Styles/Image.js +24 -0
- package/build/system/Cards/Styles/Likes.d.ts +5 -0
- package/build/system/Cards/Styles/Likes.js +53 -0
- package/build/system/Cards/Styles/MultiHead.d.ts +3 -0
- package/build/system/Cards/Styles/MultiHead.js +44 -0
- package/build/system/Cards/Styles/Video.d.ts +3 -0
- package/build/system/Cards/Styles/Video.js +15 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +48 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +4 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +34 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +5 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +57 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +2 -0
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +42 -0
- package/build/system/DropDown/DropDown.test.d.ts +1 -0
- package/build/system/DropDown/DropDown.test.js +38 -0
- package/build/system/DropDown/index.d.ts +8 -0
- package/build/system/DropDown/index.js +65 -0
- package/build/system/Filters/helpers.d.ts +6 -0
- package/build/system/Filters/helpers.js +8 -0
- package/build/system/Filters/type.d.ts +16 -0
- package/build/system/Filters/type.js +11 -0
- package/build/system/Flex/index.d.ts +0 -0
- package/build/system/Flex/index.js +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.d.ts +1 -0
- package/build/system/Forms/Checkbox/Checkbox.test.js +76 -0
- package/build/system/Forms/Checkbox/index.d.ts +22 -0
- package/build/system/Forms/Checkbox/index.js +64 -0
- package/build/system/Forms/DatePicker/index.d.ts +16 -0
- package/build/system/Forms/DatePicker/index.js +137 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.d.ts +1 -0
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +28 -0
- package/build/system/Forms/ErrorLabel/index.d.ts +7 -0
- package/build/system/Forms/ErrorLabel/index.js +25 -0
- package/build/system/Forms/Input/Input.test.d.ts +1 -0
- package/build/system/Forms/Input/Input.test.js +54 -0
- package/build/system/Forms/Input/index.d.ts +16 -0
- package/build/system/Forms/Input/index.js +72 -0
- package/build/system/Forms/Input/type.d.ts +5 -0
- package/build/system/Forms/Input/type.js +2 -0
- package/build/system/Forms/Messages/index.d.ts +67 -0
- package/build/system/Forms/Messages/index.js +69 -0
- package/build/system/Forms/RadioInput/index.d.ts +12 -0
- package/build/system/Forms/RadioInput/index.js +73 -0
- package/build/system/Forms/Selects/DesktopSelect/index.d.ts +12 -0
- package/build/system/Forms/Selects/DesktopSelect/index.js +184 -0
- package/build/system/Forms/Selects/DesktopSelect/type.d.ts +5 -0
- package/build/system/Forms/Selects/DesktopSelect/type.js +2 -0
- package/build/system/Forms/Selects/MobileSelect/index.d.ts +14 -0
- package/build/system/Forms/Selects/MobileSelect/index.js +31 -0
- package/build/system/Forms/TextArea/TextArea.test.d.ts +1 -0
- package/build/system/Forms/TextArea/TextArea.test.js +54 -0
- package/build/system/Forms/TextArea/index.d.ts +14 -0
- package/build/system/Forms/TextArea/index.js +70 -0
- package/build/system/Forms/index.d.ts +5 -0
- package/build/system/Forms/index.js +14 -0
- package/build/system/Img/ExternalImage/index.d.ts +6 -0
- package/build/system/Img/ExternalImage/index.js +22 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.d.ts +1 -0
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +45 -0
- package/build/system/Img/ImageInterceptor/index.d.ts +17 -0
- package/build/system/Img/ImageInterceptor/index.js +60 -0
- package/build/system/Img/Profilepic/index.d.ts +10 -0
- package/build/system/Img/Profilepic/index.js +34 -0
- package/build/system/Img/Userpic/UserPic.test.d.ts +2 -0
- package/build/system/Img/Userpic/UserPic.test.js +65 -0
- package/build/system/Img/Userpic/index.d.ts +9 -0
- package/build/system/Img/Userpic/index.js +84 -0
- package/build/system/Img/index.d.ts +3 -0
- package/build/system/Img/index.js +19 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.d.ts +1 -0
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +52 -0
- package/build/system/Labels/ExperienceLabel/index.d.ts +6 -0
- package/build/system/Labels/ExperienceLabel/index.js +65 -0
- package/build/system/Labels/InviteLabel/InviteLabel.test.d.ts +1 -0
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +44 -0
- package/build/system/Labels/InviteLabel/index.d.ts +6 -0
- package/build/system/Labels/InviteLabel/index.js +44 -0
- package/build/system/Labels/SkeletonLabel/index.d.ts +2 -0
- package/build/system/Labels/SkeletonLabel/index.js +7 -0
- package/build/system/Modals/Modal/Modal.test.d.ts +1 -0
- package/build/system/Modals/Modal/Modal.test.js +36 -0
- package/build/system/Modals/Modal/index.d.ts +2 -0
- package/build/system/Modals/Modal/index.js +82 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +47 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.d.ts +1 -0
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +35 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +5 -0
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +10 -0
- package/build/system/Modals/ModalSidebar/index.d.ts +4 -0
- package/build/system/Modals/ModalSidebar/index.js +78 -0
- package/build/system/Overlay/Overlay.test.d.ts +1 -0
- package/build/system/Overlay/Overlay.test.js +44 -0
- package/build/system/Overlay/index.d.ts +2 -0
- package/build/system/Overlay/index.js +41 -0
- package/build/system/PageLoader/index.d.ts +2 -0
- package/build/system/PageLoader/index.js +7 -0
- package/build/system/Palete/index.d.ts +2 -0
- package/build/system/Palete/index.js +7 -0
- package/build/system/ShareIconResize.d.ts +1 -0
- package/build/system/ShareIconResize.js +31 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.d.ts +2 -0
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +40 -0
- package/build/system/Tabs/TabNavLink/index.d.ts +12 -0
- package/build/system/Tabs/TabNavLink/index.js +58 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.d.ts +2 -0
- package/build/system/Tabs/TabsNav/TabsNav.test.js +43 -0
- package/build/system/Tabs/TabsNav/index.d.ts +10 -0
- package/build/system/Tabs/TabsNav/index.js +31 -0
- package/build/system/Tabs/TabsNav/type.d.ts +6 -0
- package/build/system/Tabs/TabsNav/type.js +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.d.ts +2 -0
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +32 -0
- package/build/system/Tabs/TabsPanel/index.d.ts +7 -0
- package/build/system/Tabs/TabsPanel/index.js +17 -0
- package/build/system/Text/index.d.ts +0 -0
- package/build/system/Text/index.js +1 -0
- package/build/system/index.d.ts +6 -0
- package/build/system/index.js +22 -0
- package/build/system/theme.d.ts +1 -0
- package/build/system/theme.js +7 -0
- package/build/utils/3d.d.ts +5 -0
- package/build/utils/3d.js +44 -0
- package/build/utils/adaptive/check4k.d.ts +5 -0
- package/build/utils/adaptive/check4k.js +16 -0
- package/build/utils/adaptive/scale.d.ts +9 -0
- package/build/utils/adaptive/scale.js +18 -0
- package/build/utils/auth/index.d.ts +1 -0
- package/build/utils/auth/index.js +9 -0
- package/build/utils/copyBtn/index.d.ts +5 -0
- package/build/utils/copyBtn/index.js +46 -0
- package/build/utils/env/index.d.ts +1 -0
- package/build/utils/env/index.js +5 -0
- package/build/utils/extractItemIds.d.ts +2 -0
- package/build/utils/extractItemIds.js +13 -0
- package/build/utils/getDimensionsImage.d.ts +4 -0
- package/build/utils/getDimensionsImage.js +38 -0
- package/build/utils/getPageSizeAssets.d.ts +5 -0
- package/build/utils/getPageSizeAssets.js +17 -0
- package/build/utils/imageProportionsSize/index.d.ts +5 -0
- package/build/utils/imageProportionsSize/index.js +23 -0
- package/build/utils/screen/index.d.ts +18 -0
- package/build/utils/screen/index.js +87 -0
- package/build/utils/seacrhTabs.d.ts +4 -0
- package/build/utils/seacrhTabs.js +17 -0
- package/build/utils/ssrFunctions/index.d.ts +17 -0
- package/build/utils/ssrFunctions/index.js +33 -0
- package/build/utils/ui/index.d.ts +8 -0
- package/build/utils/ui/index.js +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
10
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
11
|
+
const colors_1 = require("@/styles/colors");
|
|
12
|
+
// Styles
|
|
13
|
+
const StyledCardCheckBox = styled_components_1.default.div `
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 16px;
|
|
16
|
+
right: 16px;
|
|
17
|
+
z-index: 1;
|
|
18
|
+
|
|
19
|
+
.cardCheckboxLabel {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
-webkit-tap-highlight-color: transparent;
|
|
22
|
+
|
|
23
|
+
.cardCheckboxInput {
|
|
24
|
+
margin: 0;
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
|
|
27
|
+
&:checked + span {
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:checked + span:after {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cardCustomCheckbox {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
width: 32px;
|
|
39
|
+
height: 32px;
|
|
40
|
+
border: 2px solid ${colors_1.WhiteColor};
|
|
41
|
+
background-color: #12183a33;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
position: relative;
|
|
45
|
+
|
|
46
|
+
&::after {
|
|
47
|
+
content: '';
|
|
48
|
+
display: block;
|
|
49
|
+
background-image: url('/forms/checkbox/checked.svg');
|
|
50
|
+
background-size: cover;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
width: 32px;
|
|
53
|
+
height: 32px;
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transition: opacity 0.2s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (max-width: 767px) {
|
|
59
|
+
width: 24px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
|
|
62
|
+
&::after {
|
|
63
|
+
width: 24px;
|
|
64
|
+
height: 24px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
71
|
+
top: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
72
|
+
right: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
73
|
+
.cardCheckboxLabel {
|
|
74
|
+
.cardCustomCheckbox {
|
|
75
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(32)};
|
|
76
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(32)};
|
|
77
|
+
border-width: ${(0, _4k_1.adaptiveValueCalc)(2)};
|
|
78
|
+
&::after {
|
|
79
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(32)};
|
|
80
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(32)};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
// Component
|
|
87
|
+
const CardCheckBox = ({ isActiveCheckbox, onChange, }) => {
|
|
88
|
+
const id = (0, react_1.useId)();
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)(StyledCardCheckBox, { children: (0, jsx_runtime_1.jsxs)("label", { htmlFor: id, className: "cardCheckboxLabel", children: [(0, jsx_runtime_1.jsx)("input", { className: "cardCheckboxInput", type: "checkbox", name: 'checkbox', id: id, onChange: onChange, checked: isActiveCheckbox }), (0, jsx_runtime_1.jsx)("span", { className: "cardCustomCheckbox" })] }) }));
|
|
90
|
+
};
|
|
91
|
+
// Export
|
|
92
|
+
exports.default = CardCheckBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
8
|
+
const react_1 = require("@testing-library/react");
|
|
9
|
+
const ItemType_1 = require("@/dto/common/ItemType");
|
|
10
|
+
const index_1 = __importDefault(require("./index"));
|
|
11
|
+
describe('CardCategory Component', () => {
|
|
12
|
+
const labelMock = {
|
|
13
|
+
text: ItemType_1.LabelText.opportunity,
|
|
14
|
+
backgroundColor: ItemType_1.LabelBackground.opportunity,
|
|
15
|
+
color: ItemType_1.LabelColor.opportunity,
|
|
16
|
+
};
|
|
17
|
+
test('renders the component with the provided label', () => {
|
|
18
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { label: labelMock }));
|
|
19
|
+
const labelElement = react_1.screen.getByText(ItemType_1.LabelText.opportunity);
|
|
20
|
+
expect(labelElement).toBeInTheDocument();
|
|
21
|
+
expect(labelElement).toHaveStyle(`background: ${labelMock.backgroundColor}`);
|
|
22
|
+
expect(labelElement).toHaveStyle(`color: ${labelMock.color}`);
|
|
23
|
+
});
|
|
24
|
+
test('does not render the component when no label is provided', () => {
|
|
25
|
+
const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { label: undefined }));
|
|
26
|
+
expect(container.firstChild).toBeNull();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
9
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
10
|
+
const typography_1 = require("@/styles/typography");
|
|
11
|
+
// Styles
|
|
12
|
+
const StyledCardCategory = styled_components_1.default.div `
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
margin-top: 8px;
|
|
17
|
+
|
|
18
|
+
.category {
|
|
19
|
+
.label {
|
|
20
|
+
${typography_1.FH6};
|
|
21
|
+
display: inline-block;
|
|
22
|
+
background: ${(props) => props.background};
|
|
23
|
+
padding: 1px 5px;
|
|
24
|
+
line-height: 1.35em;
|
|
25
|
+
color: ${(props) => props.color};
|
|
26
|
+
user-select: none;
|
|
27
|
+
border-radius: 2px;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (max-width: 1040px) {
|
|
33
|
+
margin-top: 6px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
37
|
+
margin-top: ${(0, _4k_1.adaptiveValueCalc)(8)};
|
|
38
|
+
|
|
39
|
+
.category {
|
|
40
|
+
.label {
|
|
41
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(1)} ${(0, _4k_1.adaptiveValueCalc)(5)};
|
|
42
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(2)};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
// Component
|
|
48
|
+
const CardCategory = ({ label }) => {
|
|
49
|
+
if (!label)
|
|
50
|
+
return null;
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)(StyledCardCategory, { background: label.backgroundColor, color: label.color, children: (0, jsx_runtime_1.jsx)("div", { className: 'category', children: (0, jsx_runtime_1.jsx)("span", { className: 'label', children: label.text }) }) }));
|
|
52
|
+
};
|
|
53
|
+
// Export
|
|
54
|
+
exports.default = CardCategory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const router_1 = require("next/router");
|
|
8
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
9
|
+
const react_1 = require("@testing-library/react");
|
|
10
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
11
|
+
const index_1 = __importDefault(require("./index"));
|
|
12
|
+
jest.mock('next/router', () => ({
|
|
13
|
+
useRouter: jest.fn(),
|
|
14
|
+
}));
|
|
15
|
+
jest.mock('@/system/Cards/CardContent/CardShowMore', () => {
|
|
16
|
+
return function ShowMore() {
|
|
17
|
+
return (0, jsx_runtime_1.jsx)("div", { "data-testid": "card-show-more", children: "Show More" });
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
describe('CardContent Component', () => {
|
|
21
|
+
beforeEach(() => {
|
|
22
|
+
jest.clearAllMocks();
|
|
23
|
+
});
|
|
24
|
+
test('renders correctly with all props', () => {
|
|
25
|
+
const props = {
|
|
26
|
+
href: '/test-link',
|
|
27
|
+
creationName: 'Creation Name',
|
|
28
|
+
firstName: 'First Name',
|
|
29
|
+
secondName: 'Second Name',
|
|
30
|
+
cuttedSecondName: 'Cutted Second Name',
|
|
31
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Child Component" }),
|
|
32
|
+
isNeedShowMoreButton: true,
|
|
33
|
+
itemId: '123',
|
|
34
|
+
// wallets: [{ address: 'wallet-address' }],
|
|
35
|
+
creatorName: 'Creator Name',
|
|
36
|
+
};
|
|
37
|
+
router_1.useRouter.mockReturnValue({
|
|
38
|
+
pathname: '/some-path',
|
|
39
|
+
});
|
|
40
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { ...props }));
|
|
41
|
+
expect(react_1.screen.getByText(props.creatorName)).toBeInTheDocument();
|
|
42
|
+
expect(react_1.screen.getByText(props.cuttedSecondName)).toBeInTheDocument();
|
|
43
|
+
expect(react_1.screen.getByText('Child Component')).toBeInTheDocument();
|
|
44
|
+
expect(react_1.screen.getByTestId('card-show-more')).toBeInTheDocument();
|
|
45
|
+
});
|
|
46
|
+
test('renders shortened firstName and cuttedSecondName if they exceed length', () => {
|
|
47
|
+
const props = {
|
|
48
|
+
firstName: 'A very long first name that exceeds twenty characters',
|
|
49
|
+
cuttedSecondName: 'A very long second name that exceeds twenty characters',
|
|
50
|
+
isNeedShowMoreButton: false,
|
|
51
|
+
itemId: '123',
|
|
52
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Child Component" }),
|
|
53
|
+
};
|
|
54
|
+
router_1.useRouter.mockReturnValue({
|
|
55
|
+
pathname: '/some-path',
|
|
56
|
+
});
|
|
57
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { ...props, children: props.children }));
|
|
58
|
+
expect(react_1.screen.getByText((0, utils_1.shortenedText)(props.firstName))).toBeInTheDocument();
|
|
59
|
+
expect(react_1.screen.getByText(props.cuttedSecondName)).toBeInTheDocument();
|
|
60
|
+
});
|
|
61
|
+
test('shows creatorName if provided', () => {
|
|
62
|
+
const props = {
|
|
63
|
+
creatorName: 'Creator Name',
|
|
64
|
+
isNeedShowMoreButton: false,
|
|
65
|
+
itemId: '123',
|
|
66
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Child Component" }),
|
|
67
|
+
};
|
|
68
|
+
router_1.useRouter.mockReturnValue({
|
|
69
|
+
pathname: '/some-path',
|
|
70
|
+
});
|
|
71
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { ...props }));
|
|
72
|
+
expect(react_1.screen.getByText('Creator Name')).toBeInTheDocument();
|
|
73
|
+
});
|
|
74
|
+
test('renders correctly when isGalleryAndFavPage is true', () => {
|
|
75
|
+
const props = {
|
|
76
|
+
firstName: 'First Name',
|
|
77
|
+
cuttedSecondName: 'Cutted Second Name',
|
|
78
|
+
// wallets: [{ address: 'wallet-address' }],
|
|
79
|
+
isNeedShowMoreButton: false,
|
|
80
|
+
itemId: '123',
|
|
81
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Child Component" }),
|
|
82
|
+
};
|
|
83
|
+
router_1.useRouter.mockReturnValue({
|
|
84
|
+
pathname: '/galleries',
|
|
85
|
+
});
|
|
86
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { ...props }));
|
|
87
|
+
expect(react_1.screen.getByText('First Name')).toBeInTheDocument();
|
|
88
|
+
});
|
|
89
|
+
test('does not render "Show More" button if isNeedShowMoreButton is false', () => {
|
|
90
|
+
const props = {
|
|
91
|
+
firstName: 'First Name',
|
|
92
|
+
cuttedSecondName: 'Cutted Second Name',
|
|
93
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Child Component" }),
|
|
94
|
+
isNeedShowMoreButton: false,
|
|
95
|
+
itemId: '123',
|
|
96
|
+
};
|
|
97
|
+
router_1.useRouter.mockReturnValue({
|
|
98
|
+
pathname: '/some-path',
|
|
99
|
+
});
|
|
100
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { ...props }));
|
|
101
|
+
expect(react_1.screen.queryByTestId('card-show-more')).not.toBeInTheDocument();
|
|
102
|
+
});
|
|
103
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
8
|
+
const react_1 = require("@testing-library/react");
|
|
9
|
+
const index_1 = __importDefault(require("./index"));
|
|
10
|
+
jest.mock('@/utils/screen', () => ({
|
|
11
|
+
useWindowDimensionsWithServerInitial: () => ({
|
|
12
|
+
windowDimensions: { width: 800, height: 600 },
|
|
13
|
+
}),
|
|
14
|
+
}));
|
|
15
|
+
// Mock the HeartIcon
|
|
16
|
+
jest.mock('@/public/showCaseIcons/heart.svg', () => function SVG() {
|
|
17
|
+
return (0, jsx_runtime_1.jsx)("svg", { "data-testid": "heart-icon" });
|
|
18
|
+
});
|
|
19
|
+
// Mock the StyledLikes component
|
|
20
|
+
jest.mock('@/system/Cards/Styles/Likes', () => function Like({ children, isLiked }) {
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("div", { "data-testid": `likes-${isLiked ? 'liked' : 'not-liked'}`, children: children }));
|
|
22
|
+
});
|
|
23
|
+
describe('CardLikes Component', () => {
|
|
24
|
+
test('renders correctly with likes and liked status', () => {
|
|
25
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { likes: 10, isLiked: true }));
|
|
26
|
+
const likesElement = react_1.screen.getByTestId('likes-liked');
|
|
27
|
+
const heartIcon = react_1.screen.getByTestId('heart-icon');
|
|
28
|
+
const counter = react_1.screen.getByText('10');
|
|
29
|
+
expect(likesElement).toBeInTheDocument();
|
|
30
|
+
expect(heartIcon).toBeInTheDocument();
|
|
31
|
+
expect(counter).toBeInTheDocument();
|
|
32
|
+
});
|
|
33
|
+
test('does not render when likes is 0', () => {
|
|
34
|
+
const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { likes: 0, isLiked: false }));
|
|
35
|
+
expect(container.firstChild).toBeNull();
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const scale_1 = require("@/utils/adaptive/scale");
|
|
8
|
+
const screen_1 = require("@/utils/screen");
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const Likes_1 = __importDefault(require("@/system/Cards/Styles/Likes"));
|
|
11
|
+
const heart_svg_1 = __importDefault(require("@/public/showCaseIcons/heart.svg"));
|
|
12
|
+
// Styles
|
|
13
|
+
const StyledCardLikes = styled_components_1.default.div `
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
align-items: end;
|
|
17
|
+
`;
|
|
18
|
+
// Component
|
|
19
|
+
const CardLikes = ({ likes, isLiked }) => {
|
|
20
|
+
const { windowDimensions } = (0, screen_1.useWindowDimensionsWithServerInitial)();
|
|
21
|
+
if (!likes)
|
|
22
|
+
return null;
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(StyledCardLikes, { children: Boolean(likes) && ((0, jsx_runtime_1.jsxs)(Likes_1.default, { isLiked: isLiked, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(heart_svg_1.default, { style: (0, scale_1.getAdaptiveScale)({
|
|
24
|
+
windowDimensions,
|
|
25
|
+
currentSize: 1,
|
|
26
|
+
}) }) }), (0, jsx_runtime_1.jsx)("span", { className: 'counter', children: likes })] })) }));
|
|
27
|
+
};
|
|
28
|
+
// Export
|
|
29
|
+
exports.default = CardLikes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
require("@testing-library/jest-dom/extend-expect");
|
|
8
|
+
const react_1 = require("@testing-library/react");
|
|
9
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
10
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
11
|
+
const ui_1 = require("@/store/ui");
|
|
12
|
+
const index_1 = __importDefault(require("./index"));
|
|
13
|
+
jest.mock('@ludo.ninja/utils', () => ({
|
|
14
|
+
copyToClipboard: jest.fn(),
|
|
15
|
+
}));
|
|
16
|
+
jest.mock('@/store/ui', () => ({
|
|
17
|
+
useUiStore: jest.fn(),
|
|
18
|
+
}));
|
|
19
|
+
jest.mock('@/public/creation/card/moreBtnVertical.svg', () => function SVG() {
|
|
20
|
+
return (0, jsx_runtime_1.jsx)("svg", { "data-testid": "more-btn-icon" });
|
|
21
|
+
});
|
|
22
|
+
describe('CardShowMore Component', () => {
|
|
23
|
+
const mockOpenAlert = jest.fn();
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
jest.clearAllMocks();
|
|
26
|
+
ui_1.useUiStore.mockReturnValue(mockOpenAlert);
|
|
27
|
+
});
|
|
28
|
+
test('renders correctly and shows MoreButtonIcon', () => {
|
|
29
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { itemId: "123", href: "/some-path" }));
|
|
30
|
+
expect(react_1.screen.getByTestId('more-btn-icon')).toBeInTheDocument();
|
|
31
|
+
});
|
|
32
|
+
test('copies link to clipboard and opens alert on click', () => {
|
|
33
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { itemId: "123", href: "/some-path" }));
|
|
34
|
+
const dropDownItem = react_1.screen.getByText('Copy link');
|
|
35
|
+
react_1.fireEvent.click(dropDownItem);
|
|
36
|
+
expect(utils_1.copyToClipboard).toHaveBeenCalledWith(`${window.location.origin}/some-path`);
|
|
37
|
+
expect(mockOpenAlert).toHaveBeenCalledWith({ type: type_1.alertVariants.copied });
|
|
38
|
+
});
|
|
39
|
+
test('dropdown is displayed on hover', () => {
|
|
40
|
+
(0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { itemId: "123", href: "/some-path" }));
|
|
41
|
+
const moreButton = react_1.screen.getByTestId('more-btn-icon');
|
|
42
|
+
react_1.fireEvent.mouseOver(moreButton);
|
|
43
|
+
const dropDownItem = react_1.screen.getByText('Copy link');
|
|
44
|
+
expect(dropDownItem).toBeVisible();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StyledCardShowMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const CardShowMore: ({ itemId, href }: {
|
|
4
|
+
itemId: string;
|
|
5
|
+
href: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CardShowMore;
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
exports.StyledCardShowMore = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
10
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
11
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
12
|
+
const ui_1 = require("@/store/ui");
|
|
13
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
14
|
+
const colors_1 = require("@/styles/colors");
|
|
15
|
+
const typography_1 = require("@/styles/typography");
|
|
16
|
+
const vars_1 = require("@/fonts/vars");
|
|
17
|
+
const moreBtnVertical_svg_1 = __importDefault(require("@/public/creation/card/moreBtnVertical.svg"));
|
|
18
|
+
// Styles
|
|
19
|
+
exports.StyledCardShowMore = styled_components_1.default.div `
|
|
20
|
+
.cardShowMore {
|
|
21
|
+
position: relative;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
z-index: 100;
|
|
24
|
+
|
|
25
|
+
&:before {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
left: 50%;
|
|
30
|
+
transform: translate(-50%, -50%);
|
|
31
|
+
width: 40px;
|
|
32
|
+
height: 40px;
|
|
33
|
+
z-index: -1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (max-width: 1200px) {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&DropDown {
|
|
41
|
+
font-family: ${vars_1.dmsansFontVarCss.css};
|
|
42
|
+
display: none;
|
|
43
|
+
position: absolute;
|
|
44
|
+
background-color: white;
|
|
45
|
+
top: 20px;
|
|
46
|
+
left: -170px;
|
|
47
|
+
width: 184px;
|
|
48
|
+
box-shadow: 0px 0px 10px 5px rgba(33, 21, 95, 0.1);
|
|
49
|
+
border-radius: 6px;
|
|
50
|
+
padding: 8px;;
|
|
51
|
+
|
|
52
|
+
&:before {
|
|
53
|
+
content: '';
|
|
54
|
+
display: block;
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: -15px;
|
|
57
|
+
height: 15px;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&Item {
|
|
62
|
+
${typography_1.TextSmall};
|
|
63
|
+
display: block;
|
|
64
|
+
padding: 6px 0 6px 8px;
|
|
65
|
+
color: #696f91;
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
color: ${colors_1.BlackColor};
|
|
70
|
+
background-color: ${colors_1.BackgroundColorLight};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover > div {
|
|
76
|
+
display: block;
|
|
77
|
+
z-index: 100000;
|
|
78
|
+
}
|
|
79
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
80
|
+
&:before {
|
|
81
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(40)};
|
|
82
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(40)};
|
|
83
|
+
}
|
|
84
|
+
&DropDown {
|
|
85
|
+
top: ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
86
|
+
left:${(0, _4k_1.adaptiveValueCalc)(-170)};
|
|
87
|
+
width: ${(0, _4k_1.adaptiveValueCalc)(184)};
|
|
88
|
+
box-shadow: 0px 0px ${(0, _4k_1.adaptiveValueCalc)(10)} ${(0, _4k_1.adaptiveValueCalc)(5)} rgba(33, 21, 95, 0.1);
|
|
89
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
|
|
90
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(8)};
|
|
91
|
+
|
|
92
|
+
&:before {
|
|
93
|
+
top: ${(0, _4k_1.adaptiveValueCalc)(-15)};
|
|
94
|
+
height: ${(0, _4k_1.adaptiveValueCalc)(15)};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&Item {
|
|
98
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(6)} 0 ${(0, _4k_1.adaptiveValueCalc)(6)} ${(0, _4k_1.adaptiveValueCalc)(8)};
|
|
99
|
+
&:hover {
|
|
100
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(4)};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
// Component
|
|
109
|
+
const CardShowMore = ({ itemId, href }) => {
|
|
110
|
+
const openAlert = (0, ui_1.useUiStore)((state) => state.openAlert);
|
|
111
|
+
const copyAssetLinkToClipboard = (e) => {
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
(0, utils_1.copyToClipboard)(`${window.location.origin}${href}`);
|
|
114
|
+
openAlert({
|
|
115
|
+
type: type_1.alertVariants.copied,
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return ((0, jsx_runtime_1.jsx)(exports.StyledCardShowMore, { children: (0, jsx_runtime_1.jsxs)("div", { className: "cardShowMore", children: [(0, jsx_runtime_1.jsx)(moreBtnVertical_svg_1.default, {}), (0, jsx_runtime_1.jsx)("div", { className: `cardShowMoreDropDown`, id: itemId, onClick: copyAssetLinkToClipboard, children: (0, jsx_runtime_1.jsx)("span", { className: 'cardShowMoreDropDownItem', children: "Copy link" }) })] }) }));
|
|
119
|
+
};
|
|
120
|
+
// Export
|
|
121
|
+
exports.default = CardShowMore;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IWallet } from '@ludo.ninja/api/build/graphql_tools/__generated__/galleriesHost/schema';
|
|
3
|
+
declare const CardContent: ({ firstName, creationName, cuttedSecondName: cuttedShowcaseName, children, isNeedShowMoreButton, itemId, wallets, creatorName, href, }: {
|
|
4
|
+
href?: string | undefined;
|
|
5
|
+
creationName?: string | undefined;
|
|
6
|
+
firstName?: string | null | undefined;
|
|
7
|
+
secondName?: string | null | undefined;
|
|
8
|
+
cuttedSecondName?: string | null | undefined;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
userCreationAddresses?: string | undefined;
|
|
11
|
+
wallets?: IWallet[] | undefined;
|
|
12
|
+
isNeedShowMoreButton: boolean;
|
|
13
|
+
actionIsNeedRenderCheckbox?: ((isNeedToShow: boolean, itemId?: string) => void) | undefined;
|
|
14
|
+
itemId: string;
|
|
15
|
+
creatorName?: string | undefined;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default CardContent;
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const router_1 = require("next/router");
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
10
|
+
const utils_1 = require("@ludo.ninja/utils");
|
|
11
|
+
const ScreenWidth_1 = require("@/styles/ScreenWidth");
|
|
12
|
+
const colors_1 = require("@/styles/colors");
|
|
13
|
+
const typography_1 = require("@/styles/typography");
|
|
14
|
+
const CardShowMore_1 = __importDefault(require("@/system/Cards/CardContent/CardShowMore"));
|
|
15
|
+
const vars_1 = require("@/fonts/vars");
|
|
16
|
+
// Styles
|
|
17
|
+
const StyledCardContent = styled_components_1.default.div `
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
padding: 12px 16px;
|
|
21
|
+
min-height: 94px;
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
justify-content: end;
|
|
24
|
+
|
|
25
|
+
.cardContent {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
|
|
29
|
+
.cardContentWrapper {
|
|
30
|
+
.mainName {
|
|
31
|
+
font-family: ${vars_1.dmsansFontVarCss.css};
|
|
32
|
+
${typography_1.TextSmall};
|
|
33
|
+
color: ${colors_1.TextGrayColor};
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.secondName {
|
|
39
|
+
font-family: ${vars_1.poppinsFontVarCss.css};
|
|
40
|
+
${typography_1.FH5};
|
|
41
|
+
color: ${colors_1.BlackColor};
|
|
42
|
+
font-size: 15px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.creatorName {
|
|
48
|
+
${typography_1.TextSmall};
|
|
49
|
+
color: ${colors_1.TextGrayColor};
|
|
50
|
+
line-height: 1.39em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (max-width: 1040px) {
|
|
54
|
+
height: auto;
|
|
55
|
+
padding: 12px;
|
|
56
|
+
}
|
|
57
|
+
@media (max-width: 767px) {
|
|
58
|
+
min-height: 84px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
62
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(12)} ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
63
|
+
min-height: ${(0, _4k_1.adaptiveValueCalc)(94)};
|
|
64
|
+
|
|
65
|
+
.cardContent {
|
|
66
|
+
.cardContentWrapper {
|
|
67
|
+
.mainName {
|
|
68
|
+
font-size: ${(0, _4k_1.adaptiveValueCalc)(13)};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.secondName {
|
|
72
|
+
font-size: ${(0, _4k_1.adaptiveValueCalc)(15)};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
78
|
+
// Component
|
|
79
|
+
const CardContent = ({ firstName, creationName, cuttedSecondName: cuttedShowcaseName, children, isNeedShowMoreButton, itemId, wallets, creatorName, href, }) => {
|
|
80
|
+
const router = (0, router_1.useRouter)();
|
|
81
|
+
const isGalleryAndFavPage = router.pathname.includes('galleries') ||
|
|
82
|
+
router.pathname.includes('favorite-lists');
|
|
83
|
+
const wallet = wallets && wallets[0]?.address;
|
|
84
|
+
return ((0, jsx_runtime_1.jsxs)(StyledCardContent, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContent", children: [(0, jsx_runtime_1.jsx)("div", { className: "cardContentWrapper", children: isGalleryAndFavPage ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [firstName && ((0, jsx_runtime_1.jsx)("p", { className: `secondName`, children: firstName.length > 20 ? (0, utils_1.shortenedText)(firstName) : firstName })), (0, jsx_runtime_1.jsx)("h3", { className: `mainName`, children: cuttedShowcaseName
|
|
85
|
+
? cuttedShowcaseName.length > 20
|
|
86
|
+
? (0, utils_1.shortenedText)(cuttedShowcaseName)
|
|
87
|
+
: cuttedShowcaseName
|
|
88
|
+
: (0, utils_1.shortenedText)(wallet) })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [creatorName ? ((0, jsx_runtime_1.jsx)("p", { className: "creatorName", children: creatorName })) : (firstName && ((0, jsx_runtime_1.jsx)("p", { className: `mainName`, children: creationName
|
|
89
|
+
? creationName
|
|
90
|
+
: firstName.length > 20
|
|
91
|
+
? (0, utils_1.shortenedText)(firstName)
|
|
92
|
+
: firstName }))), (0, jsx_runtime_1.jsx)("h3", { className: `secondName`, children: cuttedShowcaseName && (0, utils_1.isContainChinese)(cuttedShowcaseName)
|
|
93
|
+
? cuttedShowcaseName.substring(0, 9)
|
|
94
|
+
: cuttedShowcaseName })] })) }), isNeedShowMoreButton && ((0, jsx_runtime_1.jsx)(CardShowMore_1.default, { href: href, itemId: itemId }))] }), children] }));
|
|
95
|
+
};
|
|
96
|
+
// Export
|
|
97
|
+
exports.default = CardContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|