@ludo.ninja/components 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/graphql/index.js +4 -4
- package/dist/api/server-assets/mutations/useDislikeAsset/index.js +72 -185
- package/dist/api/server-assets/mutations/useLikeAsset/index.js +73 -182
- package/dist/api/server-assets/queries/useFetchAssetByBlockchain/index.js +73 -200
- package/dist/api/server-assets/queries/useFetchAssets/index.js +22 -34
- package/dist/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +27 -44
- package/dist/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +22 -32
- package/dist/api/server-collection/mutations/useDislikeCollection/index.js +71 -184
- package/dist/api/server-collection/mutations/useLikeCollection/index.js +71 -184
- package/dist/api/server-experiences/queries/useFetchMyTasks/index.js +35 -49
- package/dist/api/server-galleries/mutations/useAddAssetsToGallery/index.js +75 -189
- package/dist/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +60 -167
- package/dist/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +74 -191
- package/dist/api/server-galleries/mutations/useAddCreationsToGallery/index.js +80 -197
- package/dist/api/server-galleries/mutations/useCreateFavorites/index.js +63 -177
- package/dist/api/server-galleries/mutations/useCreateGallery/index.js +63 -177
- package/dist/api/server-galleries/mutations/useDeleteGallery/index.js +79 -188
- package/dist/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +76 -185
- package/dist/api/server-galleries/mutations/useEditGallery/index.js +55 -164
- package/dist/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +86 -199
- package/dist/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +81 -194
- package/dist/api/server-galleries/queries/useFetchGallery/index.js +31 -39
- package/dist/api/server-galleries/queries/useFetchGalleryAssets/index.js +103 -256
- package/dist/api/server-galleries/queries/useFetchMyFavorites/index.js +108 -245
- package/dist/api/server-galleries/queries/useFetchMyGalleries/index.js +112 -250
- package/dist/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +86 -235
- package/dist/api/server-galleries/queries/useFetchUserFavorites/index.js +119 -254
- package/dist/api/server-identities/mutations/useAddWalletElrond/index.js +30 -53
- package/dist/api/server-identities/mutations/useAddWalletFlow/index.js +66 -184
- package/dist/api/server-identities/mutations/useAddWalletMetamask/index.js +76 -219
- package/dist/api/server-identities/mutations/useAddWalletSolana/index.js +71 -193
- package/dist/api/server-identities/mutations/useAddWalletTezos/index.js +66 -184
- package/dist/api/server-identities/mutations/useFollowProfile/index.js +31 -56
- package/dist/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +71 -184
- package/dist/api/server-identities/mutations/useInviteCode/index.js +65 -192
- package/dist/api/server-identities/mutations/useRemoveWallet/index.js +35 -50
- package/dist/api/server-identities/mutations/useRevokeToken/index.js +59 -160
- package/dist/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +65 -193
- package/dist/api/server-identities/mutations/useUnfollowProfile/index.js +30 -58
- package/dist/api/server-identities/queries/useFetchProfile/index.js +61 -85
- package/dist/api/server-identities/queries/useFetchUserWallets/index.js +15 -35
- package/dist/api/server-identities/queries/useGetMyInviteCodes/index.js +27 -43
- package/dist/api/server-medias/mutations/useDeleteUserpic/index.js +13 -28
- package/dist/api/server-medias/mutations/useUploadUserpic/index.js +60 -181
- package/dist/api/server-medias/queries/useFetchUserPic/index.js +31 -43
- package/dist/api/server-opportunities/mutations/useDislikeOpportunity.js +65 -171
- package/dist/api/server-opportunities/mutations/useLikeOpportunity.js +65 -171
- package/dist/api/server-opportunities/mutations/useOpenOpportunity/index.js +65 -171
- package/dist/api/server-opportunities/queries/useGetOpportunities.js +16 -25
- package/dist/api/server-preferences/mutations/useSaveUserExpectations/index.js +86 -0
- package/dist/api/server-preferences/mutations/useSaveUserInterests/index.js +75 -199
- package/dist/api/server-preferences/queries/fetchSearchResultSelections/index.js +19 -26
- package/dist/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +76 -235
- package/dist/api/server-preferences/queries/useFetchExpectations/index.js +14 -20
- package/dist/api/server-preferences/queries/useFetchInterests/index.js +14 -20
- package/dist/api/server-preferences/queries/useFetchUserInterests/index.js +14 -21
- package/dist/api/server-preferences/queries/useSearchResultCategorySelections/index.js +27 -35
- package/dist/api/server-preferences/queries/useSearchResultStatusSelections/index.js +28 -36
- package/dist/api/server-preferences/queries/useSearchResultTypeSelections/index.js +33 -59
- package/dist/api/server-search/queries/useFetchAllCreations/index.js +150 -304
- package/dist/api/server-search/queries/useFetchAssetsCount/index.js +20 -20
- package/dist/api/server-search/queries/useFetchCollection/index.js +42 -56
- package/dist/api/server-search/queries/useFetchCollections/index.js +141 -299
- package/dist/api/server-search/queries/useFetchDynamicCollectionData/index.js +178 -342
- package/dist/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +41 -66
- package/dist/api/server-search/queries/useFetchNetWorth/index.js +16 -23
- package/dist/api/server-search/queries/useFindCreations/index.js +162 -331
- package/dist/api/server-search/queries/useFindProfilesByName/index.js +49 -77
- package/dist/api/server-search/queries/useFindShowcaseItems/index.js +32 -32
- package/dist/api/server-search/queries/useFindUserCreations/index.js +151 -315
- package/dist/api/server-search/queries/useFindUserShowcaseItems/index.js +30 -30
- package/dist/api/subscriptions/SubscriberInviteNotification.js +41 -0
- package/dist/components/CreationCard/CardHead.js +116 -0
- package/dist/components/CreationCard/index.js +70 -0
- package/dist/components/addWalletsRedirectPage/index.js +25 -0
- package/dist/components/assetJSONLD.js +27 -0
- package/dist/components/assetPage/assetLikes/index.js +53 -0
- package/dist/components/assetPage/assetNft/index.js +23 -0
- package/dist/components/assetPage/assetWrapper/index.js +37 -0
- package/dist/components/assetPage/audioVideoPlayer/Duration.js +20 -0
- package/dist/components/assetPage/audioVideoPlayer/index.js +147 -0
- package/dist/components/assetPage/category/index.js +32 -0
- package/dist/components/assetPage/description/index.js +25 -0
- package/dist/components/assetPage/detailsAccordeon/index.js +22 -0
- package/dist/components/assetPage/figCaption/index.js +183 -0
- package/dist/components/assetPage/information/index.js +49 -0
- package/dist/components/assetPage/marketPlaces/index.js +29 -0
- package/dist/components/assetPage/media/AssetImage/index.js +67 -0
- package/dist/components/assetPage/moreDropDown/index.js +48 -0
- package/dist/components/assetPage/participants/index.js +94 -0
- package/dist/components/assetPage/priceRank/index.js +25 -0
- package/dist/components/assetPage/properties/index.js +19 -0
- package/dist/components/assetPage/slider/index.js +76 -0
- package/dist/components/assetPage/slider/slideItem.js +15 -0
- package/dist/components/assetPage/slider/store.js +6 -9
- package/dist/components/assetPage/tittle/index.js +39 -0
- package/dist/components/assetPage/viewer3D/index.js +59 -0
- package/dist/components/banner/index.js +34 -0
- package/dist/components/base/Meta/index.js +33 -0
- package/dist/components/base/NoSSR/index.js +6 -0
- package/dist/components/collectionPage/collectionLike/index.js +33 -0
- package/dist/components/deleteDialog/index.js +97 -0
- package/dist/components/editProfile/Cropper/index.js +82 -0
- package/dist/components/editProfile/UserPicProfile/index.js +228 -0
- package/dist/components/favoriteList/add/addAssetToFavoriteList/index.js +67 -0
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/index.js +65 -0
- package/dist/components/favoriteList/add/addCreationToFavoriteList/index.js +67 -0
- package/dist/components/filters/applyResetBtns/index.js +19 -0
- package/dist/components/filters/galleriesFiltersForm/index.js +59 -0
- package/dist/components/filters/index.js +75 -0
- package/dist/components/filters/mobileFilters/index.js +16 -0
- package/dist/components/filters/setsFiltersForm/index.js +52 -0
- package/dist/components/forms/form/index.js +98 -0
- package/dist/components/forms/formsNavigation/index.js +42 -0
- package/dist/components/forms/formsTemplate/index.js +745 -0
- package/dist/components/forms/types/index.js +7 -7
- package/dist/components/gallery/add/addAssetToGallery/index.js +67 -0
- package/dist/components/gallery/add/addCreationToGallery/index.js +85 -0
- package/dist/components/gradientLabel/index.js +19 -0
- package/dist/components/headers/components/MobileToggle/index.js +1 -0
- package/dist/components/headers/components/headerExperienceLabel/index.js +27 -0
- package/dist/components/headers/components/headerUserPic/index.js +21 -0
- package/dist/components/headers/header/index.js +27 -0
- package/dist/components/headers/headerSearch/index.js +34 -0
- package/dist/components/headers/headerSimple/index.js +26 -0
- package/dist/components/inviteCodesForms/getEarlyAccessForm/index.js +162 -0
- package/dist/components/inviteCodesForms/joinWaitListForm/index.js +111 -0
- package/dist/components/inviteCodesForms/styles/index.js +11 -75
- package/dist/components/inviteCodesPage/components/index.js +5 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/index.js +19 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/index.js +23 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.js +16 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.js +23 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.js +16 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.js +19 -0
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.js +18 -0
- package/dist/components/inviteCodesPage/wrappers/index.js +4 -0
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.js +36 -0
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +8 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/index.js +24 -0
- package/dist/components/inviteCodesPage/wrappers/usedCodes/index.js +28 -0
- package/dist/components/linkTabs/index.js +19 -0
- package/dist/components/linkTabs/linkTab/index.js +22 -0
- package/dist/components/myWallets/index.js +26 -0
- package/dist/components/myWallets/myWalletItem/index.js +97 -0
- package/dist/components/navigation/index.js +38 -0
- package/dist/components/profile/MultiversXAudit/MultiversXAudit.js +125 -0
- package/dist/components/profile/ProfileTabs.js +39 -0
- package/dist/components/profile/aboutText/index.js +68 -0
- package/dist/components/profile/addToGalleryBtns/index.js +36 -0
- package/dist/components/profile/followersSocial/followers/index.js +19 -0
- package/dist/components/profile/followersSocial/index.js +18 -0
- package/dist/components/profile/followersSocial/social/index.js +28 -0
- package/dist/components/profile/info/index.js +31 -0
- package/dist/components/profile/interests/data.js +16 -17
- package/dist/components/profile/interests/index.js +41 -0
- package/dist/components/profile/jsonLd/index.js +5 -0
- package/dist/components/profile/pageHead/index.js +32 -0
- package/dist/components/profile/profileSkeleton/index.js +20 -0
- package/dist/components/profile/profileUserCards/index.js +12 -0
- package/dist/components/profile/profileUserCards/profileUserCard/index.js +118 -0
- package/dist/components/profile/rank/index.js +20 -0
- package/dist/components/profile/stats/index.js +18 -0
- package/dist/components/profile/wallets/index.js +54 -0
- package/dist/components/profile/wrapper/index.js +9 -0
- package/dist/components/registrationPage/index.js +3 -0
- package/dist/components/registrationPage/registrationSelectBox/index.js +18 -0
- package/dist/components/registrationPage/registrationSelection/index.js +27 -0
- package/dist/components/rewards/FAQ/index.js +98 -0
- package/dist/components/rewards/clarifications/index.js +44 -0
- package/dist/components/rewards/logoBottom/index.js +24 -0
- package/dist/components/rewards/prograssBar/index.js +26 -0
- package/dist/components/rewards/rewardsButton/index.js +12 -0
- package/dist/components/rewards/seasonBanner/index.js +24 -0
- package/dist/components/rewards/taskExpTab/index.js +44 -0
- package/dist/components/rewards/tasksGrid/index.js +136 -0
- package/dist/components/rewards/userExp/index.js +46 -0
- package/dist/components/search/SearchInputContainer.js +211 -0
- package/dist/components/search/index.js +53 -0
- package/dist/components/search/searchCategories/index.js +48 -0
- package/dist/components/search/searchCloseMoreButtons/index.js +48 -0
- package/dist/components/search/searchResultCaption/index.js +24 -0
- package/dist/components/search/searchSelectsGalleries/index.js +36 -0
- package/dist/components/search/searchSelectsSets/index.js +35 -0
- package/dist/components/search/searchSimpleInput/index.js +52 -0
- package/dist/components/search/searchSuggestions/index.js +105 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.js +20 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +21 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +20 -0
- package/dist/components/shareDialog/index.js +45 -0
- package/dist/components/showcaseAssets/showcaseSort/data.js +23 -23
- package/dist/components/showcaseAssets/showcaseSort/index.js +20 -0
- package/dist/components/sidebar/data.js +81 -0
- package/dist/components/sidebar/index.js +99 -0
- package/dist/components/sidebar/initializer.js +6 -0
- package/dist/components/sidebar/sidebarFilters/index.js +20 -0
- package/dist/components/sidebar/sidebarInviteCodeLabel/index.js +38 -0
- package/dist/components/socialButtons/data.js +47 -0
- package/dist/components/socialButtons/icons/discord.js +5 -0
- package/dist/components/socialButtons/icons/facebook.js +5 -0
- package/dist/components/socialButtons/icons/instagram.js +5 -0
- package/dist/components/socialButtons/icons/medium.js +5 -0
- package/dist/components/socialButtons/icons/telegram.js +5 -0
- package/dist/components/socialButtons/icons/twitter.js +5 -0
- package/dist/components/socialButtons/index.js +24 -0
- package/dist/components/tabs/icons/bell.js +5 -0
- package/dist/components/tabs/icons/profile.js +5 -0
- package/dist/components/tabs/icons/secure.js +5 -0
- package/dist/components/tabs/index.js +45 -0
- package/dist/components/toTopBtn/index.js +58 -0
- package/dist/dto/AssetEntity/views/AssetAudio/index.js +34 -0
- package/dist/dto/AssetEntity/views/AssetImage/index.js +45 -0
- package/dist/dto/AssetEntity/views/AssetObject/index.js +65 -0
- package/dist/dto/AssetEntity/views/AssetOther/index.js +49 -0
- package/dist/dto/AssetEntity/views/AssetScreenshot/index.js +45 -0
- package/dist/dto/AssetEntity/views/AssetVideo/index.js +34 -0
- package/dist/dto/common/ItemType/index.js +40 -0
- package/dist/dto/common/ItemViews/CreationAudio/index.js +34 -0
- package/dist/dto/common/ItemViews/CreationImage/index.js +45 -0
- package/dist/dto/common/ItemViews/CreationObject/index.js +38 -0
- package/dist/dto/common/ItemViews/CreationOther/index.js +34 -0
- package/dist/dto/common/ItemViews/CreationVideo/index.js +34 -0
- package/dist/dto/common/Media/Audio/index.js +50 -0
- package/dist/dto/common/Media/Image/index.js +58 -0
- package/dist/dto/common/Media/Object/index.js +59 -0
- package/dist/dto/common/Media/Other/index.js +78 -0
- package/dist/dto/common/Media/Screenshot/index.js +58 -0
- package/dist/dto/common/Media/Urls/index.js +71 -110
- package/dist/dto/common/Media/Video/index.js +50 -0
- package/dist/dto/common/Media/index.js +38 -0
- package/dist/fonts/FontsInitializeLayout.js +42 -0
- package/dist/fonts/vars.js +1 -4
- package/dist/hooks/apollo/index.js +10 -0
- package/dist/hooks/audio/useMultiAudio/index.js +54 -0
- package/dist/hooks/extension/useExtension/index.js +62 -182
- package/dist/hooks/favorites/useGetFavoriteGallaryCreations/index.js +172 -346
- package/dist/hooks/favorites/useGetUserFevoritesCreations/index.js +247 -421
- package/dist/hooks/galleries/useGetUserGalleriesCreations/index.js +231 -397
- package/dist/hooks/likes/dynamic/useFindCollectionsAndLikes.js +234 -0
- package/dist/hooks/likes/dynamic/useFindCreationsAndLikes.js +207 -0
- package/dist/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +204 -0
- package/dist/hooks/likes/dynamic/useGetCreationsAndLikes.js +223 -0
- package/dist/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +234 -0
- package/dist/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +48 -0
- package/dist/hooks/likes/dynamic/useGetTableLikes.js +110 -0
- package/dist/hooks/useToGalleryAsset/index.js +96 -0
- package/dist/layouts/GlobalLayout.js +28 -0
- package/dist/layouts/base/LWithRegularHeader/index.js +17 -0
- package/dist/layouts/base/LWithSearchHeader/index.js +10 -0
- package/dist/layouts/base/LWithSimpleHeader/index.js +13 -0
- package/dist/layouts/base/LWithoutHeader/index.js +16 -0
- package/dist/layouts/custom/accountLayout/index.js +13 -0
- package/dist/layouts/custom/formsLayout/index.js +11 -0
- package/dist/layouts/custom/mainLayout/index.js +13 -0
- package/dist/layouts/custom/searchLayout/index.js +17 -0
- package/dist/layouts/custom/simpleLayout/index.js +13 -0
- package/dist/layouts/custom/styles.js +6 -66
- package/dist/layouts/pageTransitionLayout.js +22 -0
- package/dist/modules/gallery/api/useGetFavoriteGallery.js +30 -49
- package/dist/modules/gallery/store.js +106 -231
- package/dist/modules/gallery/ui/AllResults.js +9 -0
- package/dist/modules/gallery/ui/Description.js +36 -0
- package/dist/modules/gallery/ui/EditGallery.js +90 -0
- package/dist/modules/gallery/ui/GalleryDeleteIcon.js +22 -0
- package/dist/modules/gallery/ui/PlaceholderItemsGallery.js +14 -0
- package/dist/modules/gallery/ui/STopSections.js +5 -43
- package/dist/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +26 -0
- package/dist/modules/gallery/ui/chooseGalleryItems/index.js +109 -0
- package/dist/modules/gallery/ui/createGalleryForm/index.js +130 -0
- package/dist/modules/gallery/ui/editGalleryForm/index.js +147 -0
- package/dist/modules/gallery/ui/itemsPreview/index.js +169 -0
- package/dist/modules/notifications/CreatorNotifications.js +13 -0
- package/dist/modules/notifications/index.js +3 -0
- package/dist/modules/sessionScroll/globalTabs.js +45 -45
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.js +50 -76
- package/dist/modules/user/auth/useAuthVerification.js +87 -201
- package/dist/modules/user/auth/useSignIn.js +13 -26
- package/dist/modules/user/auth/useSignOut.js +64 -171
- package/dist/modules/user/profileData/profileDataInitialization.js +56 -0
- package/dist/modules/user/store.js +75 -0
- package/dist/modules/virtuoso/VirtuosoPageBuilder.js +121 -0
- package/dist/modules/virtuoso/VirtuosoToTopBtn.js +35 -0
- package/dist/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +20 -23
- package/dist/modules/virtuoso/useVirtuosoData.js +41 -56
- package/dist/pages/index.js +5 -0
- package/dist/store/media/index.js +51 -75
- package/dist/store/ui/index.js +141 -310
- package/dist/store/ui/utils.js +25 -32
- package/dist/styles/ScreenWidth.js +18 -23
- package/dist/styles/animations/index.js +8 -0
- package/dist/styles/colors/index.js +1 -0
- package/dist/styles/globalStyles.js +21 -0
- package/dist/styles/mixins/boxShadow.js +8 -0
- package/dist/styles/mixins/boxTransform.js +8 -0
- package/dist/styles/mixins/z-indexes.js +10 -0
- package/dist/styles/typography/index.js +1 -0
- package/dist/system/ActiveLink/index.js +44 -0
- package/dist/system/Alert/index.js +16 -0
- package/dist/system/Alert/type.js +1 -6
- package/dist/system/BasicOverlay/index.js +15 -0
- package/dist/system/Buttons/IconButton/index.js +2 -0
- package/dist/system/Buttons/IconWithButton/index.js +2 -0
- package/dist/system/Buttons/IconWithButton/themes.js +1 -1
- package/dist/system/Buttons/MainButton/index.js +2 -0
- package/dist/system/Buttons/MainButton/themes.js +1 -1
- package/dist/system/Buttons/SecondaryButton/index.js +2 -0
- package/dist/system/Cards/CardCheckbox/index.js +21 -0
- package/dist/system/Cards/CardContent/CardCategory/index.js +21 -0
- package/dist/system/Cards/CardContent/CardLikes/index.js +24 -0
- package/dist/system/Cards/CardContent/CardShowMore/index.js +33 -0
- package/dist/system/Cards/CardContent/index.js +39 -0
- package/dist/system/Cards/CardHeadIcons/index.js +123 -0
- package/dist/system/Cards/CardMedia/CardAudio/index.js +64 -0
- package/dist/system/Cards/CardMedia/CardImage/index.js +15 -0
- package/dist/system/Cards/CardMedia/CardVideo/index.js +52 -0
- package/dist/system/Cards/CardRank/index.js +23 -0
- package/dist/system/Cards/CardsGrid/index.js +48 -0
- package/dist/system/Cards/MultiMediaCard/index.js +70 -0
- package/dist/system/Cards/RegularCard/index.js +47 -0
- package/dist/system/Cards/Styles/Head.js +5 -34
- package/dist/system/Cards/Styles/Headicons.js +6 -105
- package/dist/system/Cards/Styles/Image.js +5 -39
- package/dist/system/Cards/Styles/MultiHead.js +5 -43
- package/dist/system/Cards/Styles/Video.js +5 -23
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +71 -0
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +19 -0
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +24 -0
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.js +33 -0
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +22 -0
- package/dist/system/CardsHolderWithSkeleton/index.js +13 -0
- package/dist/system/DropDown/DropDown.test.js +33 -0
- package/dist/system/DropDown/index.js +31 -0
- package/dist/system/Filters/helpers.js +3 -17
- package/dist/system/Flex/index.js +1 -0
- package/dist/system/Forms/Checkbox/Checkbox.test.js +85 -0
- package/dist/system/Forms/Checkbox/index.js +37 -0
- package/dist/system/Forms/DatePicker/index.js +36 -0
- package/dist/system/Forms/ErrorLabel/ErrorLabel.test.js +23 -0
- package/dist/system/Forms/ErrorLabel/index.js +15 -0
- package/dist/system/Forms/Input/Input.test.js +52 -0
- package/dist/system/Forms/Input/index.js +37 -0
- package/dist/system/Forms/Messages/index.js +57 -58
- package/dist/system/Forms/RadioInput/index.js +33 -0
- package/dist/system/Forms/Selects/DesktopSelect/index.js +125 -0
- package/dist/system/Forms/Selects/MobileSelect/index.js +28 -0
- package/dist/system/Forms/TextArea/index.js +37 -0
- package/dist/system/Img/ExternalImage/index.js +25 -0
- package/dist/system/Img/ImageInterceptor/ImageInterceptor.test.js +44 -0
- package/dist/system/Img/ImageInterceptor/index.js +25 -0
- package/dist/system/Img/Profilepic/index.js +31 -0
- package/dist/system/Img/Userpic/UserPic.test.js +60 -0
- package/dist/system/Img/Userpic/index.js +68 -0
- package/dist/system/Labels/ExperienceLabel/ExperienceLabel.test.js +58 -0
- package/dist/system/Labels/ExperienceLabel/index.js +35 -0
- package/dist/system/Labels/InviteLabel/InviteLabel.test.js +50 -0
- package/dist/system/Labels/InviteLabel/index.js +32 -0
- package/dist/system/Labels/SkeletonLabel/index.js +2 -0
- package/dist/system/Modals/Modal/Modal.test.js +31 -0
- package/dist/system/Modals/Modal/index.js +26 -0
- package/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +19 -0
- package/dist/system/Modals/ModalSidebar/ModalSidebar.test.js +30 -0
- package/dist/system/Modals/ModalSidebar/ModalSidebarPortal.js +9 -0
- package/dist/system/Modals/ModalSidebar/index.js +25 -0
- package/dist/system/Overlay/Overlay.test.js +41 -0
- package/dist/system/Overlay/index.js +22 -0
- package/dist/system/PageLoader/index.js +2 -0
- package/dist/system/Palete/index.js +2 -0
- package/dist/system/ShareIconResize.js +20 -0
- package/dist/system/Tabs/TabNavLink/TabNavLink.test.js +35 -0
- package/dist/system/Tabs/TabNavLink/index.js +21 -0
- package/dist/system/Tabs/TabsNav/TabsNav.test.js +38 -0
- package/dist/system/Tabs/TabsNav/index.js +22 -0
- package/dist/system/Tabs/TabsPanel/TabsPanel.test.js +28 -0
- package/dist/system/Tabs/TabsPanel/index.js +16 -0
- package/dist/system/Tabs/index.js +1 -0
- package/dist/system/Text/index.js +1 -0
- package/dist/system/index.js +1 -0
- package/dist/system/theme.js +1 -5
- package/dist/types/api/graphql/index.d.ts +2 -7
- package/dist/types/api/server-assets/mutations/useDislikeAsset/index.d.ts +3 -6
- package/dist/types/api/server-assets/mutations/useLikeAsset/index.d.ts +3 -4
- package/dist/types/api/server-collection/mutations/useDislikeCollection/index.d.ts +3 -6
- package/dist/types/api/server-collection/mutations/useLikeCollection/index.d.ts +3 -6
- package/dist/types/api/server-galleries/mutations/useAddAssetsToGallery/index.d.ts +3 -7
- package/dist/types/api/server-galleries/mutations/useAddCollectionsToGallery/index.d.ts +3 -7
- package/dist/types/api/server-galleries/mutations/useCreateFavorites/index.d.ts +2 -8
- package/dist/types/api/server-galleries/mutations/useCreateGallery/index.d.ts +2 -8
- package/dist/types/api/server-galleries/mutations/useEditGallery/index.d.ts +1 -8
- package/dist/types/api/server-galleries/queries/useFetchGalleryAssets/index.d.ts +15 -18
- package/dist/types/api/server-galleries/queries/useFetchSubscribedGalleries/index.d.ts +7 -10
- package/dist/types/api/server-identities/mutations/useGenerateNewInviteCodes/index.d.ts +3 -6
- package/dist/types/api/server-identities/mutations/useRevokeToken/index.d.ts +1 -1
- package/dist/types/api/server-identities/queries/useGetMyInviteCodes/index.d.ts +4 -5
- package/dist/types/api/server-medias/mutations/useDeleteUserpic/index.d.ts +3 -12
- package/dist/types/api/server-medias/mutations/useUploadUserpic/index.d.ts +1 -3
- package/dist/types/api/server-preferences/queries/fetchSearchResultSelections/queryData.d.ts +7 -16
- package/dist/types/api/server-preferences/queries/useFetchUserInterests/index.d.ts +3 -4
- package/dist/types/api/server-preferences/queries/useSearchResultCategorySelections/index.d.ts +7 -16
- package/dist/types/api/server-preferences/queries/useSearchResultStatusSelections/index.d.ts +8 -17
- package/dist/types/api/server-preferences/queries/useSearchResultTypeSelections/index.d.ts +8 -17
- package/dist/types/api/server-search/queries/useFetchAssetsCount/index.d.ts +4 -4
- package/dist/types/api/server-search/queries/useFetchNetWorth/index.d.ts +3 -4
- package/dist/types/api/subscriptions/SubscriberInviteNotification.d.ts +1 -2
- package/dist/types/components/CreationCard/CardHead.d.ts +1 -2
- package/dist/types/components/CreationCard/index.d.ts +2 -3
- package/dist/types/components/addWalletsRedirectPage/index.d.ts +1 -2
- package/dist/types/components/assetPage/assetLikes/index.d.ts +1 -2
- package/dist/types/components/assetPage/assetNft/index.d.ts +1 -2
- package/dist/types/components/assetPage/assetWrapper/index.d.ts +1 -2
- package/dist/types/components/assetPage/audioVideoPlayer/Duration.d.ts +1 -2
- package/dist/types/components/assetPage/audioVideoPlayer/index.d.ts +2 -2
- package/dist/types/components/assetPage/category/index.d.ts +1 -2
- package/dist/types/components/assetPage/description/index.d.ts +1 -2
- package/dist/types/components/assetPage/detailsAccordeon/index.d.ts +1 -2
- package/dist/types/components/assetPage/figCaption/index.d.ts +1 -2
- package/dist/types/components/assetPage/information/index.d.ts +1 -2
- package/dist/types/components/assetPage/marketPlaces/index.d.ts +1 -2
- package/dist/types/components/assetPage/media/AssetImage/index.d.ts +1 -2
- package/dist/types/components/assetPage/moreDropDown/index.d.ts +1 -2
- package/dist/types/components/assetPage/participants/index.d.ts +1 -2
- package/dist/types/components/assetPage/priceRank/index.d.ts +1 -2
- package/dist/types/components/assetPage/properties/index.d.ts +1 -2
- package/dist/types/components/assetPage/slider/index.d.ts +1 -2
- package/dist/types/components/assetPage/slider/slideItem.d.ts +1 -2
- package/dist/types/components/assetPage/slider/store.d.ts +5 -7
- package/dist/types/components/assetPage/tittle/index.d.ts +1 -2
- package/dist/types/components/assetPage/viewer3D/index.d.ts +2 -3
- package/dist/types/components/banner/index.d.ts +1 -2
- package/dist/types/components/base/Meta/index.d.ts +1 -2
- package/dist/types/components/collectionPage/collectionLike/index.d.ts +1 -2
- package/dist/types/components/deleteDialog/index.d.ts +1 -2
- package/dist/types/components/editProfile/UserPicProfile/index.d.ts +1 -2
- package/dist/types/components/filters/applyResetBtns/index.d.ts +1 -2
- package/dist/types/components/filters/galleriesFiltersForm/index.d.ts +1 -2
- package/dist/types/components/filters/index.d.ts +1 -2
- package/dist/types/components/filters/mobileFilters/index.d.ts +1 -1
- package/dist/types/components/filters/setsFiltersForm/index.d.ts +1 -2
- package/dist/types/components/forms/form/index.d.ts +1 -2
- package/dist/types/components/forms/formsNavigation/index.d.ts +1 -2
- package/dist/types/components/forms/formsTemplate/index.d.ts +1 -2
- package/dist/types/components/forms/types/index.d.ts +22 -34
- package/dist/types/components/gallery/add/addCreationToGallery/index.d.ts +1 -2
- package/dist/types/components/gradientLabel/index.d.ts +1 -2
- package/dist/types/components/headers/components/headerExperienceLabel/index.d.ts +1 -2
- package/dist/types/components/headers/components/headerUserPic/index.d.ts +1 -2
- package/dist/types/components/headers/header/index.d.ts +1 -2
- package/dist/types/components/headers/headerSearch/index.d.ts +1 -2
- package/dist/types/components/headers/headerSimple/index.d.ts +1 -2
- package/dist/types/components/inviteCodesForms/getEarlyAccessForm/index.d.ts +1 -2
- package/dist/types/components/inviteCodesForms/joinWaitListForm/index.d.ts +1 -2
- package/dist/types/components/inviteCodesForms/styles/index.d.ts +5 -55
- package/dist/types/components/inviteCodesPage/components/inviteCodes/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/wrappers/resumeCodes/loader/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/wrappers/unusedCodes/index.d.ts +1 -2
- package/dist/types/components/inviteCodesPage/wrappers/usedCodes/index.d.ts +1 -2
- package/dist/types/components/linkTabs/index.d.ts +1 -1
- package/dist/types/components/linkTabs/linkTab/index.d.ts +1 -2
- package/dist/types/components/myWallets/index.d.ts +1 -2
- package/dist/types/components/myWallets/myWalletItem/index.d.ts +1 -2
- package/dist/types/components/navigation/index.d.ts +1 -2
- package/dist/types/components/profile/MultiversXAudit/MultiversXAudit.d.ts +1 -2
- package/dist/types/components/profile/ProfileTabs.d.ts +1 -1
- package/dist/types/components/profile/aboutText/index.d.ts +1 -2
- package/dist/types/components/profile/addToGalleryBtns/index.d.ts +1 -2
- package/dist/types/components/profile/followersSocial/followers/index.d.ts +1 -2
- package/dist/types/components/profile/followersSocial/index.d.ts +1 -2
- package/dist/types/components/profile/followersSocial/social/index.d.ts +1 -2
- package/dist/types/components/profile/info/index.d.ts +1 -2
- package/dist/types/components/profile/interests/data.d.ts +0 -1
- package/dist/types/components/profile/interests/index.d.ts +1 -2
- package/dist/types/components/profile/interests/type.d.ts +2 -3
- package/dist/types/components/profile/pageHead/index.d.ts +1 -2
- package/dist/types/components/profile/profileSkeleton/index.d.ts +2 -3
- package/dist/types/components/profile/profileUserCards/index.d.ts +1 -1
- package/dist/types/components/profile/profileUserCards/profileUserCard/index.d.ts +1 -2
- package/dist/types/components/profile/rank/index.d.ts +1 -2
- package/dist/types/components/profile/stats/index.d.ts +1 -2
- package/dist/types/components/profile/wallets/index.d.ts +1 -2
- package/dist/types/components/profile/wrapper/index.d.ts +1 -1
- package/dist/types/components/rewards/FAQ/index.d.ts +1 -2
- package/dist/types/components/rewards/clarifications/index.d.ts +1 -2
- package/dist/types/components/rewards/logoBottom/index.d.ts +1 -2
- package/dist/types/components/rewards/prograssBar/index.d.ts +1 -2
- package/dist/types/components/rewards/seasonBanner/index.d.ts +1 -2
- package/dist/types/components/rewards/taskExpTab/index.d.ts +1 -1
- package/dist/types/components/rewards/tasksGrid/index.d.ts +1 -2
- package/dist/types/components/rewards/userExp/index.d.ts +1 -2
- package/dist/types/components/search/SearchInputContainer.d.ts +1 -1
- package/dist/types/components/search/index.d.ts +1 -2
- package/dist/types/components/search/searchCategories/index.d.ts +1 -2
- package/dist/types/components/search/searchCategories/type.d.ts +2 -2
- package/dist/types/components/search/searchCloseMoreButtons/index.d.ts +1 -1
- package/dist/types/components/search/searchResultCaption/index.d.ts +1 -2
- package/dist/types/components/search/searchSelectsGalleries/index.d.ts +1 -2
- package/dist/types/components/search/searchSelectsSets/index.d.ts +1 -2
- package/dist/types/components/search/searchSimpleInput/index.d.ts +1 -2
- package/dist/types/components/search/searchSuggestions/searchSuggestionsFooter/index.d.ts +1 -2
- package/dist/types/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.d.ts +2 -3
- package/dist/types/components/search/searchSuggestions/searchSuggestionsNotFound/index.d.ts +1 -2
- package/dist/types/components/shareDialog/index.d.ts +1 -2
- package/dist/types/components/showcaseAssets/showcaseSort/data.d.ts +0 -1
- package/dist/types/components/showcaseAssets/showcaseSort/index.d.ts +1 -2
- package/dist/types/components/sidebar/data.d.ts +15 -24
- package/dist/types/components/sidebar/index.d.ts +1 -2
- package/dist/types/components/sidebar/initializer.d.ts +1 -2
- package/dist/types/components/sidebar/sidebarFilters/index.d.ts +1 -1
- package/dist/types/components/sidebar/sidebarInviteCodeLabel/index.d.ts +1 -2
- package/dist/types/components/socialButtons/data.d.ts +0 -1
- package/dist/types/components/socialButtons/icons/discord.d.ts +1 -2
- package/dist/types/components/socialButtons/icons/facebook.d.ts +1 -2
- package/dist/types/components/socialButtons/icons/instagram.d.ts +1 -2
- package/dist/types/components/socialButtons/icons/medium.d.ts +1 -2
- package/dist/types/components/socialButtons/icons/telegram.d.ts +1 -2
- package/dist/types/components/socialButtons/icons/twitter.d.ts +1 -2
- package/dist/types/components/socialButtons/index.d.ts +1 -2
- package/dist/types/components/socialButtons/type.d.ts +4 -4
- package/dist/types/components/tabs/icons/bell.d.ts +2 -3
- package/dist/types/components/tabs/icons/profile.d.ts +2 -3
- package/dist/types/components/tabs/icons/secure.d.ts +2 -3
- package/dist/types/components/tabs/index.d.ts +1 -2
- package/dist/types/components/toTopBtn/index.d.ts +2 -3
- package/dist/types/dto/Collection/CollectionEntity/interface.d.ts +13 -18
- package/dist/types/dto/common/Media/Urls/index.d.ts +16 -49
- package/dist/types/entities/user/type.d.ts +3 -8
- package/dist/types/fonts/FontsInitializeLayout.d.ts +5 -8
- package/dist/types/fonts/vars.d.ts +1 -4
- package/dist/types/hooks/extension/useExtension/index.d.ts +4 -4
- package/dist/types/layouts/GlobalLayout.d.ts +2 -2
- package/dist/types/layouts/custom/styles.d.ts +2 -22
- package/dist/types/layouts/pageTransitionLayout.d.ts +1 -2
- package/dist/types/modules/gallery/ui/AllResults.d.ts +1 -2
- package/dist/types/modules/gallery/ui/Description.d.ts +1 -2
- package/dist/types/modules/gallery/ui/EditGallery.d.ts +1 -2
- package/dist/types/modules/gallery/ui/GalleryDeleteIcon.d.ts +1 -2
- package/dist/types/modules/gallery/ui/PlaceholderItemsGallery.d.ts +1 -2
- package/dist/types/modules/gallery/ui/STopSections.d.ts +1 -11
- package/dist/types/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.d.ts +1 -2
- package/dist/types/modules/gallery/ui/chooseGalleryItems/index.d.ts +1 -2
- package/dist/types/modules/gallery/ui/createGalleryForm/index.d.ts +1 -2
- package/dist/types/modules/gallery/ui/editGalleryForm/index.d.ts +1 -2
- package/dist/types/modules/gallery/ui/itemsPreview/index.d.ts +1 -2
- package/dist/types/modules/notifications/CreatorNotifications.d.ts +1 -2
- package/dist/types/modules/sessionScroll/globalTabs.d.ts +9 -10
- package/dist/types/modules/sessionScroll/type.d.ts +5 -5
- package/dist/types/modules/user/auth/useSignIn.d.ts +0 -1
- package/dist/types/modules/user/profileData/profileDataInitialization.d.ts +1 -2
- package/dist/types/modules/user/store.d.ts +22 -38
- package/dist/types/modules/virtuoso/VirtuosoPageBuilder.d.ts +2 -2
- package/dist/types/modules/virtuoso/VirtuosoToTopBtn.d.ts +1 -1
- package/dist/types/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.d.ts +1 -1
- package/dist/types/pages/index.d.ts +1 -2
- package/dist/types/store/media/index.d.ts +1 -4
- package/dist/types/store/media/types.d.ts +7 -7
- package/dist/types/styles/ScreenWidth.d.ts +18 -18
- package/dist/types/styles/colors/index.d.ts +1 -36
- package/dist/types/styles/globalStyles.d.ts +1 -3
- package/dist/types/styles/mixins/boxShadow.d.ts +1 -1
- package/dist/types/styles/mixins/boxTransform.d.ts +1 -1
- package/dist/types/system/ActiveLink/index.d.ts +2 -2
- package/dist/types/system/Alert/index.d.ts +1 -2
- package/dist/types/system/Alert/type.d.ts +2 -10
- package/dist/types/system/BasicOverlay/index.d.ts +1 -2
- package/dist/types/system/Cards/CardCheckbox/index.d.ts +1 -2
- package/dist/types/system/Cards/CardContent/CardCategory/index.d.ts +1 -2
- package/dist/types/system/Cards/CardContent/CardLikes/index.d.ts +1 -2
- package/dist/types/system/Cards/CardContent/CardShowMore/index.d.ts +1 -1
- package/dist/types/system/Cards/CardContent/index.d.ts +1 -1
- package/dist/types/system/Cards/CardHeadIcons/index.d.ts +1 -2
- package/dist/types/system/Cards/CardMedia/CardAudio/index.d.ts +1 -2
- package/dist/types/system/Cards/CardMedia/CardImage/index.d.ts +1 -2
- package/dist/types/system/Cards/CardMedia/CardVideo/index.d.ts +1 -2
- package/dist/types/system/Cards/CardRank/index.d.ts +1 -2
- package/dist/types/system/Cards/CardsGrid/index.d.ts +1 -1
- package/dist/types/system/Cards/MultiMediaCard/index.d.ts +1 -2
- package/dist/types/system/Cards/RegularCard/index.d.ts +1 -2
- package/dist/types/system/Cards/Styles/Head.d.ts +1 -11
- package/dist/types/system/Cards/Styles/Headicons.d.ts +3 -13
- package/dist/types/system/Cards/Styles/Image.d.ts +3 -13
- package/dist/types/system/Cards/Styles/MultiHead.d.ts +1 -11
- package/dist/types/system/Cards/Styles/Video.d.ts +1 -11
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.d.ts +1 -2
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.d.ts +1 -2
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.d.ts +2 -3
- package/dist/types/system/CardsHolderWithSkeleton/CardsHolderLoader/index.d.ts +1 -2
- package/dist/types/system/DropDown/index.d.ts +1 -1
- package/dist/types/system/Filters/helpers.d.ts +4 -14
- package/dist/types/system/Forms/Input/type.d.ts +3 -3
- package/dist/types/system/Forms/Messages/index.d.ts +57 -57
- package/dist/types/system/Forms/RadioInput/index.d.ts +1 -2
- package/dist/types/system/Forms/Selects/DesktopSelect/type.d.ts +3 -3
- package/dist/types/system/Img/ImageInterceptor/index.d.ts +2 -2
- package/dist/types/system/Img/Profilepic/index.d.ts +1 -2
- package/dist/types/system/Img/Userpic/index.d.ts +1 -1
- package/dist/types/system/Labels/ExperienceLabel/index.d.ts +1 -2
- package/dist/types/system/Labels/InviteLabel/index.d.ts +1 -2
- package/dist/types/system/Modals/Modal/index.d.ts +1 -2
- package/dist/types/system/Modals/ModalSidebar/CreatorModalSidebarPortal.d.ts +1 -2
- package/dist/types/system/Modals/ModalSidebar/ModalSidebarPortal.d.ts +2 -2
- package/dist/types/system/Modals/ModalSidebar/index.d.ts +1 -1
- package/dist/types/system/Overlay/index.d.ts +1 -2
- package/dist/types/system/ShareIconResize.d.ts +1 -2
- package/dist/types/system/Tabs/TabsNav/type.d.ts +3 -3
- package/dist/types/system/Tabs/index.d.ts +1 -1
- package/dist/types/system/index.d.ts +1 -0
- package/dist/types/system/theme.d.ts +1 -5
- package/dist/types/utils/3d.d.ts +3 -7
- package/dist/types/utils/copyBtn/index.d.ts +1 -1
- package/dist/types/utils/env/isProd/index.d.ts +3 -1
- package/dist/types/utils/env/type.d.ts +3 -3
- package/dist/types/utils/getDimensionsImage.d.ts +2 -2
- package/dist/types/utils/ssrFunctions/index.d.ts +13 -21
- package/dist/utils/3d.js +13 -17
- package/dist/utils/adaptive/check4k.js +9 -14
- package/dist/utils/adaptive/scale.js +11 -19
- package/dist/utils/auth/index.js +1 -7
- package/dist/utils/copyBtn/index.js +76 -0
- package/dist/utils/env/index.js +13 -28
- package/dist/utils/env/isProd/index.js +2 -3
- package/dist/utils/env/type.js +3 -3
- package/dist/utils/extractItemIds/index.js +8 -0
- package/dist/utils/getDimensionsImage.js +67 -169
- package/dist/utils/getPageSizeAssets.js +10 -19
- package/dist/utils/imageProportionsSize/index.js +20 -0
- package/dist/utils/screen/index.js +67 -95
- package/dist/utils/ssrFunctions/index.js +27 -41
- package/dist/utils/ui/index.js +4 -0
- package/package.json +1 -1
- package/src/system/Tabs/index.ts +1 -1
- package/tsconfig.json +1 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import AboutLudoIcon from '@/public/sidebar/aboutLudo.svg';
|
|
12
|
+
import AboutLudoDarkIcon from '@/public/sidebar/aboutLudoDark.svg';
|
|
13
|
+
import ApiIcon from '@/public/sidebar/api.svg';
|
|
14
|
+
import ExploreIcon from '@/public/sidebar/explore.svg';
|
|
15
|
+
import MyInvitesIcon from '@/public/sidebar/my-invites.svg';
|
|
16
|
+
import RewardsIcon from '@/public/sidebar/rewards.svg';
|
|
17
|
+
import SubmitNftIcon from '@/public/sidebar/submitNft.svg';
|
|
18
|
+
export var sideBarDataForDev = function (_a) {
|
|
19
|
+
var isAuthorized = _a.isAuthorized, isDarkTheme = _a.isDarkTheme, userId = _a.userId;
|
|
20
|
+
return __spreadArray(__spreadArray([
|
|
21
|
+
{
|
|
22
|
+
href: '/',
|
|
23
|
+
title: 'Explore',
|
|
24
|
+
icon: _jsx(ExploreIcon, {}),
|
|
25
|
+
isExternalUrl: false,
|
|
26
|
+
}
|
|
27
|
+
], (isAuthorized
|
|
28
|
+
? [
|
|
29
|
+
{
|
|
30
|
+
href: "/rewards/".concat(userId),
|
|
31
|
+
title: 'Rewards',
|
|
32
|
+
icon: _jsx(RewardsIcon, {}),
|
|
33
|
+
isExternalUrl: false,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
href: '/invite-codes',
|
|
37
|
+
title: 'My invites',
|
|
38
|
+
icon: _jsx(MyInvitesIcon, {}),
|
|
39
|
+
isExternalUrl: false,
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
: []), true), [
|
|
43
|
+
{
|
|
44
|
+
href: 'https://apidocs.ludo.com/',
|
|
45
|
+
title: 'API',
|
|
46
|
+
icon: _jsx(ApiIcon, {}),
|
|
47
|
+
isExternalUrl: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
href: '/',
|
|
51
|
+
title: 'Submit NFT',
|
|
52
|
+
icon: _jsx(SubmitNftIcon, {}),
|
|
53
|
+
isExternalUrl: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
href: '/',
|
|
57
|
+
title: 'About Ludo',
|
|
58
|
+
icon: isDarkTheme ? _jsx(AboutLudoDarkIcon, {}) : _jsx(AboutLudoIcon, {}),
|
|
59
|
+
isExternalUrl: false,
|
|
60
|
+
},
|
|
61
|
+
], false);
|
|
62
|
+
};
|
|
63
|
+
export var sideBarDataForProd = function (_a) {
|
|
64
|
+
var isAuthorized = _a.isAuthorized, userId = _a.userId;
|
|
65
|
+
return __spreadArray([], (isAuthorized
|
|
66
|
+
? [
|
|
67
|
+
{
|
|
68
|
+
href: "/rewards/".concat(userId),
|
|
69
|
+
title: 'Rewards',
|
|
70
|
+
icon: _jsx(RewardsIcon, {}),
|
|
71
|
+
isExternalUrl: false,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
href: '/invite-codes',
|
|
75
|
+
title: 'My invites',
|
|
76
|
+
icon: _jsx(MyInvitesIcon, {}),
|
|
77
|
+
isExternalUrl: false,
|
|
78
|
+
},
|
|
79
|
+
]
|
|
80
|
+
: []), true);
|
|
81
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import Link from 'next/link';
|
|
18
|
+
import styled, { useTheme } from 'styled-components';
|
|
19
|
+
import { Sidebar as SidebarUi } from '@ludo.ninja/ui/build/components/sidebar';
|
|
20
|
+
import { ThemeEnum } from '@ludo.ninja/ui/build/dto/Theme/interface';
|
|
21
|
+
import MainButton from '@ludo.ninja/ui/build/system/Buttons/MainButton';
|
|
22
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
23
|
+
import useExtension from '@/hooks/extension/useExtension';
|
|
24
|
+
import { useSignOut } from '@/modules/user/auth/useSignOut';
|
|
25
|
+
import { useUserStore } from '@/modules/user/store';
|
|
26
|
+
import { useUiStore } from '@/store/ui';
|
|
27
|
+
import { mediaQuery } from '@/styles/ScreenWidth';
|
|
28
|
+
import { sideBarDataForDev, sideBarDataForProd, } from '@/components/sidebar/data';
|
|
29
|
+
import SidebarInviteCodeLabel from '@/components/sidebar/sidebarInviteCodeLabel';
|
|
30
|
+
import UserPic from '@/system/Img/Userpic';
|
|
31
|
+
import { getAdaptiveScale } from '@/utils/adaptive/scale';
|
|
32
|
+
import { redirectToLoginWindow } from '@/utils/auth';
|
|
33
|
+
import { isProd } from '@/utils/env';
|
|
34
|
+
import { useWindowDimensions, useWindowDimensionsWithServerInitial, } from '@/utils/screen';
|
|
35
|
+
var MenuItem = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: 15px;\n font-weight: 500;\n line-height: 22px;\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 4px;\n text-indent: 4px;\n border-radius: 4px;\n cursor: pointer;\n color: ", ";\n\n ", " {\n font-size: 14px;\n line-height: 20px;\n }\n\n transition: background-color 0.3s ease-in-out;\n\n @media (hover: hover) {\n &:hover {\n transition: background-color 0.3s ease-in;\n background-color: ", ";\n }\n }\n\n ", " {\n font-size: ", ";\n line-height: ", ";\n gap: ", ";\n padding: ", " ", ";\n text-indent: ", ";\n border-radius: ", ";\n img {\n width: ", ";\n height: ", ";\n }\n }\n"], ["\n font-size: 15px;\n font-weight: 500;\n line-height: 22px;\n display: flex;\n gap: 8px;\n align-items: center;\n padding: 12px 4px;\n text-indent: 4px;\n border-radius: 4px;\n cursor: pointer;\n color: ", ";\n\n ", " {\n font-size: 14px;\n line-height: 20px;\n }\n\n transition: background-color 0.3s ease-in-out;\n\n @media (hover: hover) {\n &:hover {\n transition: background-color 0.3s ease-in;\n background-color: ", ";\n }\n }\n\n ", " {\n font-size: ", ";\n line-height: ", ";\n gap: ", ";\n padding: ", " ", ";\n text-indent: ", ";\n border-radius: ", ";\n img {\n width: ", ";\n height: ", ";\n }\n }\n"])), function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return theme.colors.secondaryText;
|
|
38
|
+
}, mediaQuery.mobile, function (_a) {
|
|
39
|
+
var theme = _a.theme;
|
|
40
|
+
return theme.colors.secondaryBg;
|
|
41
|
+
}, mediaQuery.minWidthFourK, adaptiveValueCalc(15), adaptiveValueCalc(22), adaptiveValueCalc(8), adaptiveValueCalc(12), adaptiveValueCalc(4), adaptiveValueCalc(4), adaptiveValueCalc(4), adaptiveValueCalc(20), adaptiveValueCalc(20));
|
|
42
|
+
var BeforeMenuContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 12px 0;\n border-bottom: 1px solid ", ";\n\n ", " {\n padding: ", " 0;\n border-bottom: ", " solid\n ", ";\n }\n"], ["\n padding: 12px 0;\n border-bottom: 1px solid ", ";\n\n ", " {\n padding: ", " 0;\n border-bottom: ", " solid\n ", ";\n }\n"])), function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return theme.colors.divider;
|
|
45
|
+
}, mediaQuery.minWidthFourK, adaptiveValueCalc(12), adaptiveValueCalc(1), function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return theme.colors.divider;
|
|
48
|
+
});
|
|
49
|
+
var SLink = styled(Link)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:not(:last-child) svg path {\n fill: ", ";\n }\n .icon-wrapper {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n ", " {\n width: ", ";\n height: ", ";\n svg {\n transform: ", ";\n }\n }\n }\n"], ["\n &:not(:last-child) svg path {\n fill: ", ";\n }\n .icon-wrapper {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n ", " {\n width: ", ";\n height: ", ";\n svg {\n transform: ", ";\n }\n }\n }\n"])), function (_a) {
|
|
50
|
+
var theme = _a.theme;
|
|
51
|
+
return theme.colors.sidebarSvgPathFill;
|
|
52
|
+
}, mediaQuery.minWidthFourK, adaptiveValueCalc(20), adaptiveValueCalc(20), function (props) {
|
|
53
|
+
return 'transform' in props.scale && props.scale.transform;
|
|
54
|
+
});
|
|
55
|
+
// Component
|
|
56
|
+
var Sidebar = function () {
|
|
57
|
+
var _a;
|
|
58
|
+
var closeSidebar = useUiStore(function (state) { return state.closeSidebar; });
|
|
59
|
+
var isSidebarOpen = useUiStore(function (state) { return state.isSidebarOpen; });
|
|
60
|
+
var isAuthorized = useUserStore(function (state) { return state.isSignedIn; });
|
|
61
|
+
var getUser = useUserStore(function (state) { return state.user; });
|
|
62
|
+
var signOut = useSignOut();
|
|
63
|
+
var deviceType = useWindowDimensions().deviceType;
|
|
64
|
+
var _b = useExtension(), isExtensionInstalled = _b.isExtensionInstalled, openExtensionChromeStorePage = _b.openExtensionChromeStorePage, openExtension = _b.openExtension;
|
|
65
|
+
var _c = (_a = getUser) !== null && _a !== void 0 ? _a : [''], wallets = _c.wallets, userId = _c.userId;
|
|
66
|
+
var type = useTheme().type;
|
|
67
|
+
var isDarkTheme = type === ThemeEnum.dark;
|
|
68
|
+
// Todo fav-list
|
|
69
|
+
var sideBarData = isProd()
|
|
70
|
+
? sideBarDataForProd({ userId: userId, isAuthorized: isAuthorized })
|
|
71
|
+
: sideBarDataForDev({ userId: userId, isAuthorized: isAuthorized, isDarkTheme: isDarkTheme });
|
|
72
|
+
var windowDimensions = useWindowDimensionsWithServerInitial().windowDimensions;
|
|
73
|
+
return (_jsx(SidebarUi, { closeSidebar: closeSidebar, isOpen: isSidebarOpen, handle: {
|
|
74
|
+
login: function () {
|
|
75
|
+
closeSidebar();
|
|
76
|
+
redirectToLoginWindow();
|
|
77
|
+
},
|
|
78
|
+
logout: signOut,
|
|
79
|
+
}, isAuthorized: isAuthorized, userWallets: wallets, slots: __assign({ menu: sideBarData.map(function (_a) {
|
|
80
|
+
var title = _a.title, href = _a.href, icon = _a.icon, isExternalUrl = _a.isExternalUrl;
|
|
81
|
+
return (_jsxs(SLink, { href: href, target: isExternalUrl ? '_blank' : '_self', onClick: closeSidebar, passHref: isExternalUrl, scale: getAdaptiveScale({ windowDimensions: windowDimensions, currentSize: 1 }), children: [_jsx("span", { className: "icon-wrapper", children: icon }), title] }, title));
|
|
82
|
+
}), userPicture: function (_a) {
|
|
83
|
+
var children = _a.children, height = _a.height, width = _a.width, isNeedBoxTransform = _a.isNeedBoxTransform;
|
|
84
|
+
return (_jsx(UserPic, { width: width, height: height, userId: userId, isNeedBoxTransform: isNeedBoxTransform, children: children }));
|
|
85
|
+
}, inviteCode: _jsx(SidebarInviteCodeLabel, {}) }, (deviceType == 'isDesktop' && isAuthorized
|
|
86
|
+
? {
|
|
87
|
+
beforeMenu: (_jsx(BeforeMenuContainer, { children: isExtensionInstalled ? (_jsxs(MenuItem, { onClick: function () {
|
|
88
|
+
closeSidebar();
|
|
89
|
+
openExtension();
|
|
90
|
+
}, children: [_jsx("img", { src: "/sidebar/ludoX.svg", alt: "Ludo X", width: 20, height: 20 }), "Open Ludo X"] })) : (_jsx("div", { style: { padding: '12px 0' }, children: _jsx(MainButton, { onClick: function () {
|
|
91
|
+
closeSidebar();
|
|
92
|
+
openExtensionChromeStorePage();
|
|
93
|
+
}, text: 'Install Ludo X now', variant: 'primaryM' }) })) })),
|
|
94
|
+
}
|
|
95
|
+
: {})) }));
|
|
96
|
+
};
|
|
97
|
+
// Export
|
|
98
|
+
export default Sidebar;
|
|
99
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import dynamic from 'next/dynamic';
|
|
3
|
+
var Sidebar = dynamic(function () { return import('../sidebar').then(function (res) { return res.default; }); }, {
|
|
4
|
+
ssr: false,
|
|
5
|
+
});
|
|
6
|
+
export var SidebarInitializer = function () { return _jsx(Sidebar, {}); };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { FH3 } from '@/styles/typography';
|
|
8
|
+
import CloseIcon from '@/public/close20.svg';
|
|
9
|
+
// Styles
|
|
10
|
+
var StyledSidebarFilters = styled.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n background-color: white;\n position: fixed;\n z-index: 1000000;\n transform: ", ";\n transition: transform 0.2s;\n will-change: transform;\n width: 100%;\n height: var(--app-height);\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: 0;\n display: flex;\n flex-direction: column;\n\n .closeIcon {\n position: absolute;\n top: 16px;\n right: 16px;\n display: flex;\n justify-content: flex-end;\n cursor: pointer;\n }\n\n .header {\n padding: 32px 32px 6px 32px;\n\n .caption {\n ", ";\n margin: 0;\n }\n }\n"], ["\n box-sizing: border-box;\n background-color: white;\n position: fixed;\n z-index: 1000000;\n transform: ", ";\n transition: transform 0.2s;\n will-change: transform;\n width: 100%;\n height: var(--app-height);\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: 0;\n display: flex;\n flex-direction: column;\n\n .closeIcon {\n position: absolute;\n top: 16px;\n right: 16px;\n display: flex;\n justify-content: flex-end;\n cursor: pointer;\n }\n\n .header {\n padding: 32px 32px 6px 32px;\n\n .caption {\n ", ";\n margin: 0;\n }\n }\n"])), function (props) {
|
|
11
|
+
return props.isOpen ? 'translateX(0%)' : 'translateX(calc(100% + 16px))';
|
|
12
|
+
}, FH3);
|
|
13
|
+
// Component
|
|
14
|
+
var SidebarFilters = function (_a) {
|
|
15
|
+
var isOpen = _a.isOpen, handleClose = _a.handleClose, children = _a.children;
|
|
16
|
+
return (_jsxs(StyledSidebarFilters, { isOpen: isOpen, children: [_jsx("div", { className: 'closeIcon', onClick: handleClose, children: _jsx(CloseIcon, {}) }), _jsx("div", { className: "header", children: _jsx("h3", { className: 'caption', children: "Filters" }) }), children] }));
|
|
17
|
+
};
|
|
18
|
+
// Export
|
|
19
|
+
export default SidebarFilters;
|
|
20
|
+
var templateObject_1;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect } from 'react';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
9
|
+
import { useUserStore } from '@/modules/user/store';
|
|
10
|
+
import { useUiStore } from '@/store/ui';
|
|
11
|
+
import { useGetMyInviteCodes } from '@/api/server-identities/queries/useGetMyInviteCodes';
|
|
12
|
+
import { mediaQuery } from '@/styles/ScreenWidth';
|
|
13
|
+
import ExperienceLabel from '@/system/Labels/ExperienceLabel';
|
|
14
|
+
import InviteLabel from '@/system/Labels/InviteLabel';
|
|
15
|
+
// Styles
|
|
16
|
+
var StyledSidebarInviteCodeLabel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 16px;\n margin-top: 16px;\n\n ", " {\n gap: ", ";\n margin-top: ", ";\n }\n"], ["\n display: flex;\n gap: 16px;\n margin-top: 16px;\n\n ", " {\n gap: ", ";\n margin-top: ", ";\n }\n"])), mediaQuery.minWidthFourK, adaptiveValueCalc(16), adaptiveValueCalc(16));
|
|
17
|
+
// Component
|
|
18
|
+
var SidebarInviteCodeLabel = function () {
|
|
19
|
+
var _a = useGetMyInviteCodes(), myInviteCodes = _a.myInviteCodes, loadMyInviteCodes = _a.loadMyInviteCodes, errorMyInviteCodes = _a.errorMyInviteCodes, loadingMyInviteCodes = _a.loadingMyInviteCodes;
|
|
20
|
+
var isSidebarOpen = useUiStore(function (state) { return state.isSidebarOpen; });
|
|
21
|
+
var _b = useUserStore(function (state) { return ({
|
|
22
|
+
getUser: state.user,
|
|
23
|
+
userExp: state.userExp,
|
|
24
|
+
isLoadingExp: state.isLoadingExp,
|
|
25
|
+
errorExp: state.errorExp,
|
|
26
|
+
isLoadingProfileData: state.isLoadingProfileData,
|
|
27
|
+
}); }), getUser = _b.getUser, userExp = _b.userExp, isLoadingExp = _b.isLoadingExp, errorExp = _b.errorExp, isLoadingProfileData = _b.isLoadingProfileData;
|
|
28
|
+
useEffect(function () {
|
|
29
|
+
if (isSidebarOpen && !isLoadingProfileData && !(myInviteCodes === null || myInviteCodes === void 0 ? void 0 : myInviteCodes.length)) {
|
|
30
|
+
loadMyInviteCodes();
|
|
31
|
+
}
|
|
32
|
+
}, [isSidebarOpen, isLoadingProfileData]);
|
|
33
|
+
var unUsedInviteCodes = myInviteCodes === null || myInviteCodes === void 0 ? void 0 : myInviteCodes.filter(function (code) { return !code.isUsed; });
|
|
34
|
+
return (_jsxs(StyledSidebarInviteCodeLabel, { children: [_jsx(ExperienceLabel, { value: userExp.xps, link: "/rewards/".concat(getUser === null || getUser === void 0 ? void 0 : getUser.userId), loading: isLoadingExp || !!errorExp }), _jsx(InviteLabel, { value: unUsedInviteCodes === null || unUsedInviteCodes === void 0 ? void 0 : unUsedInviteCodes.length, link: '/invite-codes', loading: loadingMyInviteCodes || errorMyInviteCodes })] }));
|
|
35
|
+
};
|
|
36
|
+
// Export
|
|
37
|
+
export default SidebarInviteCodeLabel;
|
|
38
|
+
var templateObject_1;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import DiscordIcon from './icons/discord';
|
|
3
|
+
// Icons
|
|
4
|
+
import FacebookIcon from './icons/facebook';
|
|
5
|
+
import InstagramIcon from './icons/instagram';
|
|
6
|
+
import MediumIcon from './icons/medium';
|
|
7
|
+
import TelegramIcon from './icons/telegram';
|
|
8
|
+
import TwitterIcon from './icons/twitter';
|
|
9
|
+
var data = [
|
|
10
|
+
{
|
|
11
|
+
id: Math.random(),
|
|
12
|
+
label: 'Facebook',
|
|
13
|
+
onClickHandler: function () { return alert('connect to Facebook'); },
|
|
14
|
+
icon: _jsx(FacebookIcon, {}),
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: Math.random(),
|
|
18
|
+
label: 'Twitter',
|
|
19
|
+
onClickHandler: function () { return alert('connect to Twitter'); },
|
|
20
|
+
icon: _jsx(TwitterIcon, {}),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: Math.random(),
|
|
24
|
+
label: 'Discord',
|
|
25
|
+
onClickHandler: function () { return alert('connect to Discord'); },
|
|
26
|
+
icon: _jsx(DiscordIcon, {}),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: Math.random(),
|
|
30
|
+
label: 'Instagram',
|
|
31
|
+
onClickHandler: function () { return alert('connect to Instagram'); },
|
|
32
|
+
icon: _jsx(InstagramIcon, {}),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: Math.random(),
|
|
36
|
+
label: 'Telegram',
|
|
37
|
+
onClickHandler: function () { return alert('connect to Telegram'); },
|
|
38
|
+
icon: _jsx(TelegramIcon, {}),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: Math.random(),
|
|
42
|
+
label: 'Medium',
|
|
43
|
+
onClickHandler: function () { return alert('connect to Medium'); },
|
|
44
|
+
icon: _jsx(MediumIcon, {}),
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
export default data;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
var DiscordIcon = function () {
|
|
3
|
+
return (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M19.2727 4.875C19.2727 4.875 17.1886 3.19312 14.7273 3L14 4.07317C13.3944 3.98624 12.7334 3.9375 12 3.9375C11.2666 3.9375 10.6056 3.98624 10 4.07317L9.27273 3C6.69045 3.25172 4.72727 4.875 4.72727 4.875C4.72727 4.875 2.39955 8.35547 2 15.1875C4.34636 17.978 7.90909 18 7.90909 18L8.65409 16.9758C7.38955 16.5225 5.96136 15.713 4.72727 14.25C6.19909 15.3984 8.42045 16.5938 12 16.5938C15.5795 16.5938 17.8009 15.3984 19.2727 14.25C18.0386 15.713 16.6105 16.5225 15.3459 16.9758L16.0909 18C16.0909 18 19.6536 17.978 22 15.1875C21.6005 8.35547 19.2727 4.875 19.2727 4.875ZM9.04545 13.3125C8.16682 13.3125 7.45455 12.473 7.45455 11.4375C7.45455 10.402 8.16682 9.5625 9.04545 9.5625C9.92409 9.5625 10.6364 10.402 10.6364 11.4375C10.6364 12.473 9.92409 13.3125 9.04545 13.3125ZM14.9545 13.3125C14.0759 13.3125 13.3636 12.473 13.3636 11.4375C13.3636 10.402 14.0759 9.5625 14.9545 9.5625C15.8332 9.5625 16.5455 10.402 16.5455 11.4375C16.5455 12.473 15.8332 13.3125 14.9545 13.3125Z", fill: "#C1C8DE" }) }));
|
|
4
|
+
};
|
|
5
|
+
export default DiscordIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var FacebookIcon = function () {
|
|
3
|
+
return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("circle", { cx: "12", cy: "12", r: "10", fill: "#C1C8DE" }), _jsx("path", { d: "M13.1043 14.9097H15.5858L15.9755 12.3735H13.1043V10.9871C13.1043 9.93367 13.4466 8.99933 14.4261 8.99933H16V6.78625C15.7234 6.74863 15.1385 6.66663 14.0334 6.66663C11.7255 6.66663 10.3726 7.89279 10.3726 10.6866V12.3739H8V14.9102H10.3721V22C10.9077 22 11.318 22 11.8066 22C12.2481 22 12.7055 22 13.1043 22V14.9097Z", fill: "white" })] }));
|
|
4
|
+
};
|
|
5
|
+
export default FacebookIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var InstagramIcon = function () {
|
|
3
|
+
return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M16.6154 22H7.38462C4.41615 22 2 19.5846 2 16.6154V7.38462C2 4.41538 4.41615 2 7.38462 2H16.6154C19.5838 2 22 4.41538 22 7.38462V16.6154C22 19.5846 19.5838 22 16.6154 22Z", fill: "#C1C8DE" }), _jsx("path", { d: "M17.909 7.45457C18.6622 7.45457 19.2727 6.84405 19.2727 6.09093C19.2727 5.33782 18.6622 4.72729 17.909 4.72729C17.1559 4.72729 16.5454 5.33782 16.5454 6.09093C16.5454 6.84405 17.1559 7.45457 17.909 7.45457Z", fill: "white" }), _jsx("circle", { cx: "12", cy: "12", r: "4.45455", stroke: "white", strokeWidth: "2" })] }));
|
|
4
|
+
};
|
|
5
|
+
export default InstagramIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
var MediumIcon = function () {
|
|
3
|
+
return (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M20.786 5.87617L22 4.34783V4H17.3347L12.4807 15.2577L7.398 4H2.66667V4.34783L3.90533 6.08696C3.96667 6.16278 4 6.25809 4 6.35687V16.8696C4 17.0233 3.94867 17.1729 3.85533 17.2925L2 19.6842V20H7.33333V19.6842L5.47667 17.2786C5.384 17.159 5.33333 17.0108 5.33333 16.8577V7.73913L10.8693 20H11.8987L17.3333 7.39409V17.7391C17.3333 17.8504 17.2907 17.9576 17.214 18.0369L15.3333 19.6842V20H22V19.6842L20.786 18.0369C20.7093 17.9576 20.6667 17.8504 20.6667 17.7391V6.17391C20.6667 6.06261 20.7093 5.95548 20.786 5.87617Z", fill: "#C1C8DE" }) }));
|
|
4
|
+
};
|
|
5
|
+
export default MediumIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
var TelegramIcon = function () {
|
|
3
|
+
return (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M18.8367 19.7717L21.9583 3.83334C21.9583 3.83334 22 3.625 22 3.41667C22 3.10417 21.7225 3 21.4792 3C21.0833 2.99917 20.5408 3.195 20.5408 3.195L2.7775 10.2517C2.7775 10.2517 2 10.5 2 11.0208C2 11.6458 2.75583 11.8642 2.75583 11.8642C2.75583 11.8642 4.89207 12.8768 6.33864 12.817C6.83592 12.7965 7.25 12.8 7.6 12.6348C7.95 12.4696 16.4039 7.36106 16.7 7.2C17.05 7.00962 17.2633 7.06332 17.4 7.2C17.5367 7.33668 17.6598 7.6376 17.4 7.9C17.1824 8.11972 11.1886 13.85 10.7943 14.2C10.4 14.55 11.1 15.25 11.1 15.25L17.0717 20.2717C17.0717 20.2717 17.3192 20.5 17.7992 20.5C18.7025 20.5 18.8367 19.7717 18.8367 19.7717Z", fill: "#C1C8DE" }) }));
|
|
4
|
+
};
|
|
5
|
+
export default TelegramIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
var TwitterIcon = function () {
|
|
3
|
+
return (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M11.3485 8.22848C11.3485 5.89642 13.2928 4 15.6838 4C16.8254 4 17.8452 4.47525 18.6199 5.18203C19.4179 5.01295 20.1738 4.73572 20.8562 4.3412C20.9983 4.25743 21.1795 4.26961 21.3091 4.36862C21.4387 4.46915 21.4934 4.63823 21.4434 4.79208C21.2966 5.24143 21.053 5.64052 20.7688 6.01066C20.9843 5.93907 21.2248 5.92993 21.4309 5.84006C21.5934 5.76542 21.7886 5.80655 21.9041 5.94059C22.0213 6.07464 22.0322 6.26809 21.9307 6.4128C21.4184 7.16222 20.7641 7.8035 20.0316 8.35034C20.0348 8.46001 20.0441 8.56816 20.0441 8.67936C20.0441 11.3145 19.0212 14.1356 17.0581 16.3077C15.0951 18.4798 12.1684 20 8.43748 20C6.13552 20 3.99441 19.3374 2.19063 18.2087C2.02977 18.1127 1.95949 17.9193 2.02352 17.7456C2.08599 17.572 2.26559 17.4653 2.453 17.4897C2.74347 17.5232 3.03551 17.5385 3.34005 17.5385C4.74715 17.5385 6.78261 17.0526 7.65217 15.7895C2.91134 12.971 1.56522 9.89474 3.39002 4.90175C3.45562 4.78903 3.57431 4.71439 3.70705 4.70526C3.84136 4.69612 3.96942 4.75095 4.05219 4.85301C5.82786 6.97791 8.44217 8.3671 11.3985 8.6428C11.3844 8.50571 11.3485 8.36862 11.3485 8.22848Z", fill: "#C1C8DE" }) }));
|
|
4
|
+
};
|
|
5
|
+
export default TwitterIcon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { TextGrayColor } from '@/styles/colors';
|
|
8
|
+
import { FH3 } from '@/styles/typography';
|
|
9
|
+
import { Box } from '@system';
|
|
10
|
+
import data from './data';
|
|
11
|
+
// Styles
|
|
12
|
+
var StyledCaption = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n color: #000;\n"], ["\n ", ";\n color: #000;\n"])), FH3);
|
|
13
|
+
var StyledSocialButtons = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 20px;\n margin-bottom: 50px;\n max-width: 376px;\n"], ["\n margin-top: 20px;\n margin-bottom: 50px;\n max-width: 376px;\n"])));
|
|
14
|
+
var StyledSocialButton = styled.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n text-align: left;\n border: 1px solid #c1c8de;\n border-radius: 25px;\n padding: 11px 15px;\n color: ", ";\n font-weight: 400;\n font-size: 1.6em;\n margin-bottom: 20px;\n user-select: none;\n background-color: transparent;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n svg {\n margin-right: 16px;\n }\n"], ["\n width: 100%;\n text-align: left;\n border: 1px solid #c1c8de;\n border-radius: 25px;\n padding: 11px 15px;\n color: ", ";\n font-weight: 400;\n font-size: 1.6em;\n margin-bottom: 20px;\n user-select: none;\n background-color: transparent;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n svg {\n margin-right: 16px;\n }\n"])), TextGrayColor);
|
|
15
|
+
// Components
|
|
16
|
+
var SocialButtons = function () {
|
|
17
|
+
var renderButtons = function () {
|
|
18
|
+
return data.map(function (button) { return (_jsxs(StyledSocialButton, { onClick: button.onClickHandler, type: 'button', children: [button.icon, "Connect ".concat(button.label)] }, button.id)); });
|
|
19
|
+
};
|
|
20
|
+
return (_jsxs(Box, { mt: 45, children: [_jsx(StyledCaption, { children: "Social links" }), _jsx(StyledSocialButtons, { children: renderButtons() })] }));
|
|
21
|
+
};
|
|
22
|
+
// Export
|
|
23
|
+
export default SocialButtons;
|
|
24
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var BellIcon = function (props) {
|
|
3
|
+
return (_jsxs("svg", { className: props.customClassName, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M12 3C19 3 19 10 19 10V15H5V10C5 10 5 3 12 3Z", fill: "#C1C8DE" }), _jsx("rect", { x: "3", y: "15", width: "18", height: "2", rx: "0.3", fill: "#C1C8DE" }), _jsx("rect", { x: "9", y: "19", width: "6", height: "2", rx: "0.3", fill: "#C1C8DE" })] }));
|
|
4
|
+
};
|
|
5
|
+
export default BellIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var ProfileIcon = function (props) {
|
|
3
|
+
return (_jsxs("svg", { className: props.customClassName, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z", fill: "#C1C8DE" }), _jsx("path", { d: "M11.9999 18.5C7.99976 18.5 6.11462 15.4342 6.11462 15.4342C7.69253 13.9175 9.74983 13 12 13C14.2502 13 16.3075 13.9175 17.8854 15.4342C17.8854 15.4342 15.9998 18.5 11.9999 18.5Z", fill: "#F6F7FD" }), _jsx("path", { d: "M15 9C15 10.6569 13.6569 12 12 12C10.3431 12 9 10.6569 9 9C9 7.34315 10.3431 6 12 6C13.6569 6 15 7.34315 15 9Z", fill: "#F6F7FD" })] }));
|
|
4
|
+
};
|
|
5
|
+
export default ProfileIcon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var SecureIcon = function (props) {
|
|
3
|
+
return (_jsxs("svg", { className: props.customClassName, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M4.00136 5.23027C4.0001 5.09261 4.09369 4.97658 4.22724 4.94319L11.9272 3.01819C11.975 3.00625 12.025 3.00625 12.0728 3.01819L19.7728 4.94319C19.9063 4.97658 19.9999 5.09261 19.9986 5.23027C19.9845 6.77686 19.8241 15.6319 18 17C16.2359 18.3231 12.9158 20.4242 12.1571 20.9014C12.06 20.9625 11.94 20.9625 11.8429 20.9014C11.0842 20.4242 7.76405 18.3231 6 17C4.1759 15.6319 4.01547 6.77686 4.00136 5.23027Z", fill: "#C1C8DE" }), _jsx("path", { d: "M9 12.0717L11.1744 14.2461L13.2103 12.2102L15.2461 10.1744", stroke: "white", strokeWidth: "1.7", strokeLinecap: "square" })] }));
|
|
4
|
+
};
|
|
5
|
+
export default SecureIcon;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { TextGrayColor } from '@/styles/colors';
|
|
8
|
+
import ActiveLink from '@/system/ActiveLink';
|
|
9
|
+
import BellIcon from './icons/bell';
|
|
10
|
+
import ProfileIcon from './icons/profile';
|
|
11
|
+
import SecureIcon from './icons/secure';
|
|
12
|
+
// Styles
|
|
13
|
+
var StyledTabs = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .caption {\n font-size: 2.8em;\n color: #000000;\n font-weight: 600;\n letter-spacing: -0.015em;\n }\n"], ["\n .caption {\n font-size: 2.8em;\n color: #000000;\n font-weight: 600;\n letter-spacing: -0.015em;\n }\n"])));
|
|
14
|
+
var StyledTabsList = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 20px;\n a {\n text-decoration: none;\n }\n"], ["\n margin-top: 20px;\n a {\n text-decoration: none;\n }\n"])));
|
|
15
|
+
var StyledTabItem = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n text-decoration: none;\n padding: 14px;\n height: 48px;\n display: flex;\n align-items: center;\n user-select: none;\n\n .text {\n font-size: 1.8em;\n color: #696f91;\n margin-left: 8px;\n }\n\n :hover {\n background: #f6f7fd;\n border-radius: 8px;\n\n .profile path:first-child,\n .secure path:first-child {\n fill: ", ";\n }\n\n .bell path,\n .bell rect {\n fill: ", ";\n }\n\n .text {\n color: #1a1c29;\n }\n }\n\n &.active {\n background: #f6f7fd;\n border-radius: 8px;\n\n .profile path:first-child,\n .secure path:first-child {\n fill: ", ";\n }\n\n .bell path,\n .bell rect {\n fill: ", ";\n }\n\n .text {\n color: #1a1c29;\n }\n }\n"], ["\n text-decoration: none;\n padding: 14px;\n height: 48px;\n display: flex;\n align-items: center;\n user-select: none;\n\n .text {\n font-size: 1.8em;\n color: #696f91;\n margin-left: 8px;\n }\n\n :hover {\n background: #f6f7fd;\n border-radius: 8px;\n\n .profile path:first-child,\n .secure path:first-child {\n fill: ", ";\n }\n\n .bell path,\n .bell rect {\n fill: ", ";\n }\n\n .text {\n color: #1a1c29;\n }\n }\n\n &.active {\n background: #f6f7fd;\n border-radius: 8px;\n\n .profile path:first-child,\n .secure path:first-child {\n fill: ", ";\n }\n\n .bell path,\n .bell rect {\n fill: ", ";\n }\n\n .text {\n color: #1a1c29;\n }\n }\n"])), TextGrayColor, TextGrayColor, TextGrayColor, TextGrayColor);
|
|
16
|
+
var data = [
|
|
17
|
+
{
|
|
18
|
+
id: Math.random(),
|
|
19
|
+
title: 'Profile settings',
|
|
20
|
+
icon: _jsx(ProfileIcon, { customClassName: 'profile' }),
|
|
21
|
+
link: '/account/settings/profile',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: Math.random(),
|
|
25
|
+
title: 'Notifications',
|
|
26
|
+
icon: _jsx(BellIcon, { customClassName: 'bell' }),
|
|
27
|
+
link: '/account/settings/notifications',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: Math.random(),
|
|
31
|
+
title: 'Privacy',
|
|
32
|
+
icon: _jsx(SecureIcon, { customClassName: 'secure' }),
|
|
33
|
+
link: '/account/settings/privacy',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
// Component
|
|
37
|
+
var Tabs = function () {
|
|
38
|
+
var renderTabItems = function () {
|
|
39
|
+
return data.map(function (dataItem) { return (_jsx(ActiveLink, { href: dataItem.link, activeClassName: 'active', children: _jsxs(StyledTabItem, { children: [dataItem.icon, _jsx("p", { className: 'text', children: dataItem.title })] }) }, dataItem.id)); });
|
|
40
|
+
};
|
|
41
|
+
return (_jsxs(StyledTabs, { children: [_jsx("h3", { className: 'caption', children: "Settings" }), _jsx(StyledTabsList, { children: renderTabItems() })] }));
|
|
42
|
+
};
|
|
43
|
+
// Export
|
|
44
|
+
export default Tabs;
|
|
45
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect, useState } from 'react';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
9
|
+
import { mediaQuery } from '@/styles/ScreenWidth';
|
|
10
|
+
import { AccentColor } from '@/styles/colors';
|
|
11
|
+
import { zIndexToTopBtn } from '@/styles/mixins/z-indexes';
|
|
12
|
+
import { getAdaptiveScale } from '@/utils/adaptive/scale';
|
|
13
|
+
import { useWindowDimensionsWithServerInitial } from '@/utils/screen';
|
|
14
|
+
import { upBtnDistance } from '@/utils/ui';
|
|
15
|
+
import ToTopBtnIcon from '@/public/toTopBtn/toTopBtn.svg';
|
|
16
|
+
// Styles
|
|
17
|
+
var StyledToTopBnt = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"])), zIndexToTopBtn, function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
return theme.colors.toTopBtn;
|
|
20
|
+
}, AccentColor, mediaQuery.minWidthFourK, adaptiveValueCalc(48), adaptiveValueCalc(48), adaptiveValueCalc(36), adaptiveValueCalc(24), adaptiveValueCalc(24), adaptiveValueCalc(5), adaptiveValueCalc(10), adaptiveValueCalc(32), adaptiveValueCalc(-16));
|
|
21
|
+
var ToTopBtnIconResize = function () {
|
|
22
|
+
var windowDimensions = useWindowDimensionsWithServerInitial().windowDimensions;
|
|
23
|
+
return (_jsx(ToTopBtnIcon, { style: getAdaptiveScale({ windowDimensions: windowDimensions, currentSize: 1 }) }));
|
|
24
|
+
};
|
|
25
|
+
var ToTopBtn = function () {
|
|
26
|
+
var _a = useState(false), showBtn = _a[0], setShowBtn = _a[1];
|
|
27
|
+
var oldScrollY = document.documentElement.scrollTop;
|
|
28
|
+
var offsetPixels = 600;
|
|
29
|
+
useEffect(function () {
|
|
30
|
+
window.addEventListener('scroll', handleScroll);
|
|
31
|
+
return function () { return window.removeEventListener('scroll', handleScroll); };
|
|
32
|
+
}, []);
|
|
33
|
+
var handleClickFunction = function () {
|
|
34
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
35
|
+
};
|
|
36
|
+
var handleScroll = function () {
|
|
37
|
+
if (upBtnDistance(document, offsetPixels)) {
|
|
38
|
+
if (oldScrollY > document.documentElement.scrollTop) {
|
|
39
|
+
setShowBtn(true);
|
|
40
|
+
}
|
|
41
|
+
oldScrollY = document.documentElement.scrollTop;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
setShowBtn(false);
|
|
45
|
+
oldScrollY = offsetPixels;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
if (!showBtn)
|
|
49
|
+
return null;
|
|
50
|
+
return (_jsx(StyledToTopBnt, { onClick: handleClickFunction, children: _jsx(ToTopBtnIconResize, {}) }));
|
|
51
|
+
};
|
|
52
|
+
export var ToTopBtnWithCustomHandler = function (_a) {
|
|
53
|
+
var handleClickFunction = _a.handleClickFunction;
|
|
54
|
+
return (_jsx(StyledToTopBnt, { onClick: handleClickFunction, children: _jsx(ToTopBtnIconResize, {}) }));
|
|
55
|
+
};
|
|
56
|
+
// Export
|
|
57
|
+
export default ToTopBtn;
|
|
58
|
+
var templateObject_1;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { AudioVideoPlayer } from '@/components/assetPage';
|
|
18
|
+
import Audio from '@/dto/common/Media/Audio';
|
|
19
|
+
import { isExternalMediaAudio } from '@/dto/common/Media/Urls';
|
|
20
|
+
var AssetAudio = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AssetAudio, _super);
|
|
22
|
+
function AssetAudio(_a) {
|
|
23
|
+
var media = _a.media, mimeType = _a.mimeType, previewUrl = _a.previewUrl, nsfw = _a.nsfw, alt = _a.alt, originalMime = _a.originalMime;
|
|
24
|
+
return _super.call(this, { nsfw: nsfw, previewUrl: previewUrl, media: media, mimeType: mimeType, alt: alt, originalMime: originalMime }) || this;
|
|
25
|
+
}
|
|
26
|
+
AssetAudio.prototype.getMediaUrl = function () {
|
|
27
|
+
return isExternalMediaAudio(this.getMedia());
|
|
28
|
+
};
|
|
29
|
+
AssetAudio.prototype.displaySingleMedia = function () {
|
|
30
|
+
return (_jsx(AudioVideoPlayer, { playerType: "audio", poster: null, src: this.getMediaUrl() }));
|
|
31
|
+
};
|
|
32
|
+
return AssetAudio;
|
|
33
|
+
}(Audio));
|
|
34
|
+
export default AssetAudio;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import AssetImageView from '@/components/assetPage/media/AssetImage';
|
|
18
|
+
import Image from '@/dto/common/Media/Image';
|
|
19
|
+
import { isExternalMediaImage, mediaSizes } from '@/dto/common/Media/Urls';
|
|
20
|
+
var AssetImage = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AssetImage, _super);
|
|
22
|
+
function AssetImage(_a) {
|
|
23
|
+
var media = _a.media, mimeType = _a.mimeType, previewUrl = _a.previewUrl, nsfw = _a.nsfw, originalUrl = _a.originalUrl, alt = _a.alt, originalMime = _a.originalMime;
|
|
24
|
+
return _super.call(this, {
|
|
25
|
+
nsfw: nsfw,
|
|
26
|
+
previewUrl: previewUrl,
|
|
27
|
+
media: media,
|
|
28
|
+
mimeType: mimeType,
|
|
29
|
+
originalUrl: originalUrl,
|
|
30
|
+
alt: alt,
|
|
31
|
+
originalMime: originalMime,
|
|
32
|
+
}) || this;
|
|
33
|
+
}
|
|
34
|
+
AssetImage.prototype.getMediaUrl = function () {
|
|
35
|
+
return isExternalMediaImage(this.getMedia(), mediaSizes.regular);
|
|
36
|
+
};
|
|
37
|
+
AssetImage.prototype.displaySingleMedia = function () {
|
|
38
|
+
return (_jsx(AssetImageView, { alt: this.getAlt(), imageUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg' }));
|
|
39
|
+
};
|
|
40
|
+
AssetImage.prototype.displayLinkedMedia = function () {
|
|
41
|
+
return (_jsx(AssetImageView, { alt: this.getAlt(), imageUrl: this.getMediaUrl(), errorImg: '/noContent/noContent.svg', originalUrl: this.getOriginalUrl() }));
|
|
42
|
+
};
|
|
43
|
+
return AssetImage;
|
|
44
|
+
}(Image));
|
|
45
|
+
export default AssetImage;
|