@ludo.ninja/components 2.3.6 → 2.3.8
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/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/useFetchMyActivityStreak/index.d.ts +2 -0
- package/build/api/server-experiences/queries/useFetchMyActivityStreak/index.js +55 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.d.ts +2 -0
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +51 -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 +43 -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 +67 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.d.ts +10 -0
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +69 -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 +65 -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/useAddWalletTon/index.d.ts +6 -0
- package/build/api/server-identities/mutations/useAddWalletTon/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 +83 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.d.ts +10 -0
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +24 -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/useCopyOpportunityShareLink/index.d.ts +5 -0
- package/build/api/server-opportunities/mutations/useCopyOpportunityShareLink/index.js +28 -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 +41 -0
- package/build/api/server-preferences/mutations/useSaveUserExpectations/index.d.ts +4 -0
- package/build/api/server-preferences/mutations/useSaveUserExpectations/index.js +43 -0
- package/build/api/server-preferences/mutations/useSaveUserInterests/index.d.ts +4 -0
- package/build/api/server-preferences/mutations/useSaveUserInterests/index.js +43 -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 +13 -0
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +37 -0
- package/build/api/server-preferences/queries/useFetchExpectations/index.d.ts +7 -0
- package/build/api/server-preferences/queries/useFetchExpectations/index.js +20 -0
- package/build/api/server-preferences/queries/useFetchInterests/index.d.ts +7 -0
- package/build/api/server-preferences/queries/useFetchInterests/index.js +20 -0
- package/build/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.d.ts +12 -0
- package/build/api/server-preferences/queries/useFetchSearchResultTimeSelection/index.js +40 -0
- package/build/api/server-preferences/queries/useFetchUserInterests/index.d.ts +7 -0
- package/build/api/server-preferences/queries/useFetchUserInterests/index.js +21 -0
- package/build/api/server-preferences/queries/useSearchResultBlockchainSelections/index.d.ts +13 -0
- package/build/api/server-preferences/queries/useSearchResultBlockchainSelections/index.js +41 -0
- package/build/api/server-preferences/queries/useSearchResultCategorySelections/index.d.ts +13 -0
- package/build/api/server-preferences/queries/useSearchResultCategorySelections/index.js +40 -0
- package/build/api/server-preferences/queries/useSearchResultStatusSelections/index.d.ts +14 -0
- package/build/api/server-preferences/queries/useSearchResultStatusSelections/index.js +41 -0
- package/build/api/server-preferences/queries/useSearchResultTypeSelections/index.d.ts +13 -0
- package/build/api/server-preferences/queries/useSearchResultTypeSelections/index.js +48 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.d.ts +32 -0
- package/build/api/server-search/queries/useFetchAllCreations/index.js +91 -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/useFetchCollections/index.d.ts +23 -0
- package/build/api/server-search/queries/useFetchCollections/index.js +99 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.d.ts +13 -0
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +123 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.d.ts +47 -0
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +56 -0
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.d.ts +15 -0
- package/build/api/server-search/queries/useFetchLudoNftsTonPage/index.js +105 -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 +104 -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/useFindUserLudoCreations/index.d.ts +15 -0
- package/build/api/server-search/queries/useFindUserLudoCreations/index.js +93 -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 +53 -0
- package/build/api/subscriptions/SubscriberNotifications.d.ts +1 -0
- package/build/api/subscriptions/SubscriberNotifications.js +29 -0
- package/build/api/subscriptions/SubscriberOpportunityNotification.d.ts +1 -0
- package/build/api/subscriptions/SubscriberOpportunityNotification.js +75 -0
- package/build/api/subscriptions/SubscriptionNotificationSPA.d.ts +11 -0
- package/build/api/subscriptions/SubscriptionNotificationSPA.js +142 -0
- package/build/api/subscriptions/noContent.d.ts +1 -0
- package/build/api/subscriptions/noContent.js +6 -0
- package/build/components/Page404/Page404SPA.d.ts +3 -0
- package/build/components/Page404/Page404SPA.js +67 -0
- package/build/components/Page404/index.d.ts +2 -0
- package/build/components/Page404/index.js +27 -0
- package/build/components/Page500/index.d.ts +2 -0
- package/build/components/Page500/index.js +87 -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 +4 -0
- package/build/components/assetPage/category/index.js +58 -0
- package/build/components/assetPage/index.d.ts +5 -0
- package/build/components/assetPage/index.js +13 -0
- package/build/components/assetPage/information/index.d.ts +4 -0
- package/build/components/assetPage/information/index.js +114 -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/properties/index.d.ts +4 -0
- package/build/components/assetPage/properties/index.js +42 -0
- package/build/components/assetPage/slider/store.d.ts +8 -0
- package/build/components/assetPage/slider/store.js +16 -0
- package/build/components/assetPage/viewer3D/index.d.ts +7 -0
- package/build/components/assetPage/viewer3D/index.js +124 -0
- package/build/components/base/Meta/index.d.ts +2 -0
- package/build/components/base/Meta/index.js +24 -0
- package/build/components/base/NoSSR/index.d.ts +5 -0
- package/build/components/base/NoSSR/index.js +11 -0
- package/build/components/base/PageHead/index.d.ts +8 -0
- package/build/components/base/PageHead/index.js +13 -0
- package/build/components/base/UserStreak/index.d.ts +7 -0
- package/build/components/base/UserStreak/index.js +161 -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 +34 -0
- package/build/components/headers/components/headerStreak/index.d.ts +6 -0
- package/build/components/headers/components/headerStreak/index.js +21 -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 +36 -0
- package/build/components/headers/headerSearch/index.d.ts +5 -0
- package/build/components/headers/headerSearch/index.js +42 -0
- package/build/components/headers/headerSimple/index.d.ts +2 -0
- package/build/components/headers/headerSimple/index.js +78 -0
- package/build/components/linkTabs/index.d.ts +8 -0
- package/build/components/linkTabs/index.js +51 -0
- package/build/components/linkTabs/linkTab/index.d.ts +9 -0
- package/build/components/linkTabs/linkTab/index.js +74 -0
- package/build/components/myWallets/index.d.ts +9 -0
- package/build/components/myWallets/index.js +24 -0
- package/build/components/myWallets/myWalletItem/index.d.ts +10 -0
- package/build/components/myWallets/myWalletItem/index.js +56 -0
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.d.ts +8 -0
- package/build/components/myWallets/myWalletItem/myWalletItemCheckBox/index.js +16 -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 +237 -0
- package/build/components/search/searchCloseMoreButtons/index.d.ts +14 -0
- package/build/components/search/searchCloseMoreButtons/index.js +64 -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 +112 -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 +12 -0
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +128 -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 +116 -0
- package/build/components/shareDialog/index.d.ts +34 -0
- package/build/components/shareDialog/index.js +92 -0
- package/build/components/sidebar/data.d.ts +6 -0
- package/build/components/sidebar/data.js +121 -0
- package/build/components/sidebar/icons.d.ts +9 -0
- package/build/components/sidebar/icons.js +22 -0
- package/build/components/sidebar/index.d.ts +2 -0
- package/build/components/sidebar/index.js +133 -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 +49 -0
- package/build/components/sidebar/sidebarSpa.d.ts +10 -0
- package/build/components/sidebar/sidebarSpa.js +132 -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 +208 -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 +11 -0
- package/build/dto/AssetEntity/views/AssetAudio/index.js +32 -0
- package/build/dto/AssetEntity/views/AssetImage/index.d.ts +12 -0
- package/build/dto/AssetEntity/views/AssetImage/index.js +44 -0
- package/build/dto/AssetEntity/views/AssetObject/index.d.ts +13 -0
- package/build/dto/AssetEntity/views/AssetObject/index.js +64 -0
- package/build/dto/AssetEntity/views/AssetOther/index.d.ts +13 -0
- package/build/dto/AssetEntity/views/AssetOther/index.js +47 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.d.ts +12 -0
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +44 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.d.ts +11 -0
- package/build/dto/AssetEntity/views/AssetVideo/index.js +32 -0
- package/build/dto/AssetEntity/views/index.d.ts +6 -0
- package/build/dto/AssetEntity/views/index.js +16 -0
- package/build/dto/AssetSearchEntity/index.d.ts +60 -0
- package/build/dto/AssetSearchEntity/index.js +164 -0
- package/build/dto/AssetSearchEntity/interface.d.ts +36 -0
- package/build/dto/AssetSearchEntity/interface.js +2 -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 +80 -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 +41 -0
- package/build/dto/common/ItemType/index.d.ts +49 -0
- package/build/dto/common/ItemType/index.js +46 -0
- package/build/dto/common/ItemViews/CreationAudio/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationAudio/index.js +28 -0
- package/build/dto/common/ItemViews/CreationImage/index.d.ts +9 -0
- package/build/dto/common/ItemViews/CreationImage/index.js +39 -0
- package/build/dto/common/ItemViews/CreationObject/index.d.ts +7 -0
- package/build/dto/common/ItemViews/CreationObject/index.js +30 -0
- package/build/dto/common/ItemViews/CreationOther/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationOther/index.js +28 -0
- package/build/dto/common/ItemViews/CreationVideo/index.d.ts +8 -0
- package/build/dto/common/ItemViews/CreationVideo/index.js +28 -0
- package/build/dto/common/Media/Audio/index.d.ts +15 -0
- package/build/dto/common/Media/Audio/index.js +40 -0
- package/build/dto/common/Media/Image/index.d.ts +15 -0
- package/build/dto/common/Media/Image/index.js +48 -0
- package/build/dto/common/Media/Object/index.d.ts +15 -0
- package/build/dto/common/Media/Object/index.js +49 -0
- package/build/dto/common/Media/Other/index.d.ts +15 -0
- package/build/dto/common/Media/Other/index.js +68 -0
- package/build/dto/common/Media/Screenshot/index.d.ts +15 -0
- package/build/dto/common/Media/Screenshot/index.js +48 -0
- package/build/dto/common/Media/Urls/index.d.ts +31 -0
- package/build/dto/common/Media/Urls/index.js +125 -0
- package/build/dto/common/Media/Video/index.d.ts +15 -0
- package/build/dto/common/Media/Video/index.js +40 -0
- package/build/dto/common/Media/index.d.ts +28 -0
- package/build/dto/common/Media/index.js +45 -0
- package/build/dto/common/Media/interface.d.ts +30 -0
- package/build/dto/common/Media/interface.js +2 -0
- package/build/entities/asset/AssetMediasViews.d.ts +4 -0
- package/build/entities/asset/AssetMediasViews.js +54 -0
- package/build/entities/asset/builder.d.ts +3 -0
- package/build/entities/asset/builder.js +67 -0
- package/build/entities/asset/getAssetMediasOpengraph.d.ts +5 -0
- package/build/entities/asset/getAssetMediasOpengraph.js +39 -0
- package/build/entities/asset/getAssetMiniatureUrl.d.ts +7 -0
- package/build/entities/asset/getAssetMiniatureUrl.js +31 -0
- package/build/entities/asset/types.d.ts +37 -0
- package/build/entities/asset/types.js +2 -0
- package/build/entities/collection/builder.d.ts +3 -0
- package/build/entities/collection/builder.js +31 -0
- package/build/entities/collection/types.d.ts +17 -0
- package/build/entities/collection/types.js +2 -0
- package/build/entities/creation/CreationMediaView.d.ts +6 -0
- package/build/entities/creation/CreationMediaView.js +81 -0
- package/build/entities/creation/builder.d.ts +3 -0
- package/build/entities/creation/builder.js +63 -0
- package/build/entities/creation/collectionCreationBuilder.d.ts +3 -0
- package/build/entities/creation/collectionCreationBuilder.js +26 -0
- package/build/entities/creation/types.d.ts +23 -0
- package/build/entities/creation/types.js +2 -0
- package/build/entities/gallery/builder.d.ts +3 -0
- package/build/entities/gallery/builder.js +35 -0
- package/build/entities/gallery/types.d.ts +18 -0
- package/build/entities/gallery/types.js +2 -0
- package/build/entities/labelCreationType/data.d.ts +3 -0
- package/build/entities/labelCreationType/data.js +41 -0
- package/build/entities/labelCreationType/types.d.ts +49 -0
- package/build/entities/labelCreationType/types.js +46 -0
- package/build/entities/media/builder.d.ts +11 -0
- package/build/entities/media/builder.js +29 -0
- package/build/entities/media/getMediaVariant.d.ts +4 -0
- package/build/entities/media/getMediaVariant.js +44 -0
- package/build/entities/media/types.d.ts +17 -0
- package/build/entities/media/types.js +12 -0
- package/build/entities/media/urls.d.ts +31 -0
- package/build/entities/media/urls.js +125 -0
- package/build/entities/user/type.d.ts +5 -0
- package/build/entities/user/type.js +2 -0
- package/build/fonts/FontsInitializeLayout.d.ts +12 -0
- package/build/fonts/FontsInitializeLayout.js +164 -0
- package/build/fonts/vars.d.ts +1 -0
- package/build/fonts/vars.js +6 -0
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.d.ts +1 -0
- package/build/hoc/HOCSignUpInterceptor/CircleSvg.js +6 -0
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.d.ts +2 -0
- package/build/hoc/HOCSignUpInterceptor/HOCSignUpInterceptor.js +103 -0
- package/build/hooks/apollo/index.d.ts +1 -0
- package/build/hooks/apollo/index.js +24 -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 +22 -0
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +128 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.d.ts +23 -0
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +175 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.d.ts +23 -0
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +164 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.d.ts +29 -0
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +151 -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 +128 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.d.ts +17 -0
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +134 -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 +18 -0
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +48 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.d.ts +14 -0
- package/build/hooks/likes/dynamic/useGetTableLikes.js +110 -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/index.js +1 -0
- package/build/layouts/AppLayout.d.ts +6 -0
- package/build/layouts/AppLayout.js +24 -0
- package/build/layouts/GlobalLayout.d.ts +4 -0
- package/build/layouts/GlobalLayout.js +34 -0
- package/build/layouts/base/LWithRegularHeader/index.d.ts +3 -0
- package/build/layouts/base/LWithRegularHeader/index.js +16 -0
- package/build/layouts/base/LWithRegularHeader/type.d.ts +5 -0
- package/build/layouts/base/LWithRegularHeader/type.js +2 -0
- package/build/layouts/base/LWithSearchHeader/index.d.ts +3 -0
- package/build/layouts/base/LWithSearchHeader/index.js +12 -0
- package/build/layouts/base/LWithSearchHeader/type.d.ts +5 -0
- package/build/layouts/base/LWithSearchHeader/type.js +2 -0
- package/build/layouts/custom/mainLayout/index.d.ts +3 -0
- package/build/layouts/custom/mainLayout/index.js +17 -0
- package/build/layouts/custom/styles.d.ts +2 -0
- package/build/layouts/custom/styles.js +46 -0
- package/build/layouts/pageTransitionLayout.d.ts +6 -0
- package/build/layouts/pageTransitionLayout.js +23 -0
- package/build/layouts/pageWithLayout.d.ts +9 -0
- package/build/layouts/pageWithLayout.js +2 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.d.ts +19 -0
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +213 -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 +97 -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 +30 -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 +1 -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 +97 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.d.ts +15 -0
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +160 -0
- package/build/modules/gallery/ui/createGalleryForm/index.d.ts +12 -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 +19 -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 +17 -0
- package/build/modules/notifications/index.js +7 -0
- package/build/modules/opportunity/OpportunityCard.d.ts +5 -0
- package/build/modules/opportunity/OpportunityCard.js +261 -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 +204 -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 +62 -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/HOCAuthSearchParamsLocalhostInterceptor.d.ts +3 -0
- package/build/modules/user/auth/HOCAuthSearchParamsLocalhostInterceptor.js +34 -0
- package/build/modules/user/auth/useAuthVerification.d.ts +1 -0
- package/build/modules/user/auth/useAuthVerification.js +18 -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 +42 -0
- package/build/modules/user/auth/useVerification.d.ts +1 -0
- package/build/modules/user/auth/useVerification.js +67 -0
- package/build/modules/user/profileData/profileDataInitialization.d.ts +1 -0
- package/build/modules/user/profileData/profileDataInitialization.js +69 -0
- package/build/modules/user/store.d.ts +42 -0
- package/build/modules/user/store.js +97 -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 +4 -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/public/MobileSearchBtn/close.js +25 -0
- package/build/public/MobileSearchBtn/search.js +31 -0
- package/build/public/MobileSearchBtn/test/pirate.js +36 -0
- package/build/public/MobileSearchBtn/test/squircle.js +36 -0
- package/build/public/assetPage/audioPlaceholder.js +116 -0
- package/build/public/assetPage/details.js +31 -0
- package/build/public/assetPage/favorite.js +22 -0
- package/build/public/assetPage/favorite_hover.js +24 -0
- package/build/public/assetPage/flag.js +32 -0
- package/build/public/assetPage/fullScreen.js +24 -0
- package/build/public/assetPage/owners.js +27 -0
- package/build/public/assetPage/pause.js +25 -0
- package/build/public/assetPage/play.js +23 -0
- package/build/public/assetPage/share.js +26 -0
- package/build/public/assetPage/share2.js +25 -0
- package/build/public/assetPage/share2_hover.js +25 -0
- package/build/public/assetPage/shareWithDots.js +40 -0
- package/build/public/assetPage/shareWithDots_hover.js +40 -0
- package/build/public/assetPage/share_hover.js +24 -0
- package/build/public/assetPage/soundOf.js +24 -0
- package/build/public/assetPage/soundOn.js +24 -0
- package/build/public/calendar.js +24 -0
- package/build/public/cards/addToFavListIcon.js +30 -0
- package/build/public/cards/addToGalleryIcon.js +22 -0
- package/build/public/cards/heart.js +20 -0
- package/build/public/cardsHolderLoader/loader.js +25 -0
- package/build/public/checkbox-on.js +34 -0
- package/build/public/checkboxArrow.js +25 -0
- package/build/public/close.js +25 -0
- package/build/public/close20.js +25 -0
- package/build/public/collectionPage/export.js +25 -0
- package/build/public/copied.js +30 -0
- package/build/public/copy-icon-new.js +31 -0
- package/build/public/creation/card/moreBtn.js +24 -0
- package/build/public/creation/card/moreBtnVertical.js +28 -0
- package/build/public/creation/card/moreBtn_hover.js +28 -0
- package/build/public/dropDown/arrow_down.js +24 -0
- package/build/public/dropdown-arrow-down.js +22 -0
- package/build/public/dropdown-arrow-up.js +22 -0
- package/build/public/error/refresh.js +29 -0
- package/build/public/favicon.ico +0 -0
- package/build/public/favicon.png +0 -0
- package/build/public/follower.js +27 -0
- package/build/public/fonts/dm-sans-v15-latin-500.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-500italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-600.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-600italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-700.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-700italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-italic.woff2 +0 -0
- package/build/public/fonts/dm-sans-v15-latin-regular.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-200.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-300.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-500.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-600.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-700.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-800.woff2 +0 -0
- package/build/public/fonts/poppins-v21-latin-regular.woff2 +0 -0
- package/build/public/header/mobile_menu_icons/arrows/arrow_down.js +25 -0
- package/build/public/header/mobile_menu_icons/arrows/arrow_up.js +25 -0
- package/build/public/header/mobile_menu_icons/campaigns.js +40 -0
- package/build/public/header/mobile_menu_icons/dropdown/add_new_campaign.js +72 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_galleries.js +71 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_profile.js +35 -0
- package/build/public/header/mobile_menu_icons/dropdown/my_wallets.js +34 -0
- package/build/public/header/mobile_menu_icons/dropdown/notifications.js +36 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_campaigns.js +44 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_creations.js +41 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_creators.js +58 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_galleries.js +75 -0
- package/build/public/header/mobile_menu_icons/dropdown/top_/321/201ollectors.js +64 -0
- package/build/public/header/mobile_menu_icons/experiences.js +49 -0
- package/build/public/header/mobile_menu_icons/settings.js +24 -0
- package/build/public/header/mobile_menu_icons/sign_out.js +31 -0
- package/build/public/header/mobile_menu_icons/submit_nft.js +88 -0
- package/build/public/header/mobile_menu_icons/top.js +45 -0
- package/build/public/header/mobile_toggle/close.js +25 -0
- package/build/public/header/mobile_toggle/regular.js +25 -0
- package/build/public/like-icon-active.js +27 -0
- package/build/public/like-icon.js +23 -0
- package/build/public/logOut/logOutBtn.js +35 -0
- package/build/public/logo/main_logo.js +726 -0
- package/build/public/logo/main_logo_dark.js +159 -0
- package/build/public/logo/mobile_logo.js +714 -0
- package/build/public/logo/mobile_logo_dark.js +147 -0
- package/build/public/ludo-logo-small.js +28 -0
- package/build/public/ludo-logo-square.js +40 -0
- package/build/public/no_image placeholder.js +41 -0
- package/build/public/no_media_placeholder.js +752 -0
- package/build/public/report.js +40 -0
- package/build/public/search/arrow_up.js +25 -0
- package/build/public/search/back.js +25 -0
- package/build/public/search/close.js +25 -0
- package/build/public/search/no_found.js +30 -0
- package/build/public/search/search.js +31 -0
- package/build/public/search-icon.js +34 -0
- package/build/public/services/opensea.js +28 -0
- package/build/public/services/other.js +40 -0
- package/build/public/services/rarible.js +29 -0
- package/build/public/settings_page/back.js +25 -0
- package/build/public/settings_page/burger_menu.js +37 -0
- package/build/public/settings_page/notifications.js +35 -0
- package/build/public/settings_page/notifications_active.js +35 -0
- package/build/public/settings_page/privacy.js +27 -0
- package/build/public/settings_page/privacy_active.js +27 -0
- package/build/public/settings_page/settings.js +28 -0
- package/build/public/settings_page/settings_active.js +28 -0
- package/build/public/settings_page/upload.js +30 -0
- package/build/public/share-icon.js +40 -0
- package/build/public/showCaseIcons/heart.js +20 -0
- package/build/public/tabs/arrow_right.js +25 -0
- package/build/public/tabs/arrow_right_dark.js +25 -0
- package/build/public/tests/audio.mp3 +0 -0
- package/build/public/tests/test_1.js +64 -0
- package/build/public/toTopBtn/toTopBtn.js +31 -0
- package/build/public/upload-userpic.js +64 -0
- package/build/public/userpic-placeholder.jpg +0 -0
- package/build/public/userpics/placeholder-lg-1.js +46 -0
- package/build/public/userpics/placeholder-sm-1.js +46 -0
- package/build/public/video/pause.js +33 -0
- package/build/public/video/play.js +29 -0
- package/build/public/wallets/arkane-btn.js +37 -0
- package/build/public/wallets/bitski-btn.js +52 -0
- package/build/public/wallets/elrond-btn.js +189 -0
- package/build/public/wallets/elrond-icon-sm.js +184 -0
- package/build/public/wallets/elrond.js +27 -0
- package/build/public/wallets/ethereum-icon-sm.js +34 -0
- package/build/public/wallets/flow-btn.js +33 -0
- package/build/public/wallets/flow-icon-sm.js +36 -0
- package/build/public/wallets/formatic-btn.js +25 -0
- package/build/public/wallets/formatic-icon-sm.js +25 -0
- package/build/public/wallets/maiar-btn.js +58 -0
- package/build/public/wallets/maiar-icon-sm.js +58 -0
- package/build/public/wallets/metamask-btn.js +176 -0
- package/build/public/wallets/metamask-icon-sm.js +169 -0
- package/build/public/wallets/phantom.js +27 -0
- package/build/public/wallets/plus.js +29 -0
- package/build/public/wallets/solana-btn.js +71 -0
- package/build/public/wallets/solana-icon-sm.js +64 -0
- package/build/public/wallets/terra-btn.js +94 -0
- package/build/public/wallets/terra-icon-sm.js +94 -0
- package/build/public/wallets/tezos-btn.js +42 -0
- package/build/public/wallets/tezos-icon-sm.js +37 -0
- package/build/public/wallets/wallet_connect.js +27 -0
- package/build/public/wallets/walletconnect-btn.js +22 -0
- package/build/public/wallets/walletlink-btn.js +36 -0
- package/build/public/wallets/walletlink-icon-sm.js +37 -0
- package/build/public/wallets/xdefi-btn.js +31 -0
- package/build/public/wallets/xdefi-icon-sm.js +31 -0
- package/build/public/warning.js +22 -0
- package/build/store/creation/index.d.ts +5 -0
- package/build/store/creation/index.js +38 -0
- package/build/store/env/index.d.ts +17 -0
- package/build/store/env/index.js +33 -0
- package/build/store/index.d.ts +9 -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 +2 -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/Badge/index.d.ts +10 -0
- package/build/system/Badge/index.js +15 -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/index.d.ts +5 -0
- package/build/system/Cards/CardCheckbox/index.js +89 -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 +6 -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 +9 -0
- package/build/system/Cards/CardMedia/CardImage/index.js +24 -0
- package/build/system/Cards/CardMedia/CardVideo/index.d.ts +7 -0
- package/build/system/Cards/CardMedia/CardVideo/index.js +57 -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 +12 -0
- package/build/system/Cards/CreationCard/CardHead.js +62 -0
- package/build/system/Cards/CreationCard/index.d.ts +29 -0
- package/build/system/Cards/CreationCard/index.js +129 -0
- package/build/system/Cards/MultiMediaCard/index.d.ts +8 -0
- package/build/system/Cards/MultiMediaCard/index.js +126 -0
- package/build/system/Cards/Styles/Content.d.ts +2 -0
- package/build/system/Cards/Styles/Content.js +40 -0
- package/build/system/Cards/Styles/Head.d.ts +2 -0
- package/build/system/Cards/Styles/Head.js +46 -0
- package/build/system/Cards/Styles/Headicons.d.ts +4 -0
- package/build/system/Cards/Styles/Headicons.js +122 -0
- package/build/system/Cards/Styles/Image.d.ts +4 -0
- package/build/system/Cards/Styles/Image.js +24 -0
- package/build/system/Cards/Styles/Likes.d.ts +4 -0
- package/build/system/Cards/Styles/Likes.js +53 -0
- package/build/system/Cards/Styles/MultiHead.d.ts +2 -0
- package/build/system/Cards/Styles/MultiHead.js +44 -0
- package/build/system/Cards/Styles/Video.d.ts +2 -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 +24 -0
- package/build/system/Forms/Checkbox/index.js +65 -0
- package/build/system/Forms/DatePicker/DatePicker.test.d.ts +1 -0
- package/build/system/Forms/DatePicker/DatePicker.test.js +39 -0
- package/build/system/Forms/DatePicker/index.d.ts +14 -0
- package/build/system/Forms/DatePicker/index.js +138 -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/RadioInput.test.d.ts +1 -0
- package/build/system/Forms/RadioInput/RadioInput.test.js +62 -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 +180 -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 +46 -0
- package/build/system/Img/ImageInterceptor/index.d.ts +17 -0
- package/build/system/Img/ImageInterceptor/index.js +61 -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 +68 -0
- package/build/system/Img/Userpic/UserPicSpa.d.ts +11 -0
- package/build/system/Img/Userpic/UserPicSpa.js +81 -0
- package/build/system/Img/Userpic/index.d.ts +9 -0
- package/build/system/Img/Userpic/index.js +86 -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 +98 -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 +3 -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 +12 -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 +6 -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/redirectToApp.d.ts +1 -0
- package/build/utils/redirectToApp.js +29 -0
- package/build/utils/screen/index.d.ts +18 -0
- package/build/utils/screen/index.js +86 -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 +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const messages = {
|
|
4
|
+
galleryName: {
|
|
5
|
+
maxLength: {
|
|
6
|
+
value: 30,
|
|
7
|
+
message: 'The Gallery name is too long 🤟',
|
|
8
|
+
},
|
|
9
|
+
required: 'Name is required',
|
|
10
|
+
},
|
|
11
|
+
galleryDescription: {
|
|
12
|
+
maxLength: {
|
|
13
|
+
value: 400,
|
|
14
|
+
message: 'Please enter no more than 400 characters',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
username: {
|
|
18
|
+
minLength: {
|
|
19
|
+
value: 1,
|
|
20
|
+
message: 'The username is too small 🤟',
|
|
21
|
+
},
|
|
22
|
+
maxLength: {
|
|
23
|
+
value: 42,
|
|
24
|
+
message: 'The username is too long 🤟',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
about: {
|
|
28
|
+
minLength: {
|
|
29
|
+
value: 2,
|
|
30
|
+
message: 'The bio is too small 🤟',
|
|
31
|
+
},
|
|
32
|
+
maxLength: {
|
|
33
|
+
value: 400,
|
|
34
|
+
message: 'Please enter no more than 400 characters',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
userEmail: {
|
|
38
|
+
pattern: {
|
|
39
|
+
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,
|
|
40
|
+
message: 'Invalid Email address',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
inviteCode: {
|
|
44
|
+
minLength: {
|
|
45
|
+
value: 6,
|
|
46
|
+
message: 'Invite code is too small 🤟',
|
|
47
|
+
},
|
|
48
|
+
maxLength: {
|
|
49
|
+
value: 6,
|
|
50
|
+
message: 'Please enter no more than 6 characters',
|
|
51
|
+
},
|
|
52
|
+
required: 'Invite code is required',
|
|
53
|
+
},
|
|
54
|
+
userWeb: {
|
|
55
|
+
minLength: {
|
|
56
|
+
value: 2,
|
|
57
|
+
message: 'The website is too small 🤟',
|
|
58
|
+
},
|
|
59
|
+
maxLength: {
|
|
60
|
+
value: 64,
|
|
61
|
+
message: 'The website is too long 🤟',
|
|
62
|
+
},
|
|
63
|
+
pattern: {
|
|
64
|
+
value: /(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?\/[a-zA-Z0-9]{2,}|((https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?)|(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}(\.[a-zA-Z0-9]{2,})?/g,
|
|
65
|
+
message: 'Invalid Url address',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
exports.default = messages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,62 @@
|
|
|
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");
|
|
8
|
+
const react_1 = require("@testing-library/react");
|
|
9
|
+
const index_1 = __importDefault(require("./index"));
|
|
10
|
+
const mockData = {
|
|
11
|
+
value: 'test-radio-input',
|
|
12
|
+
label: 'Test RadioInput',
|
|
13
|
+
onChange: jest.fn(),
|
|
14
|
+
setFocus: jest.fn(),
|
|
15
|
+
className: 'test-radio-input-class',
|
|
16
|
+
};
|
|
17
|
+
const renderComponent = (options) => {
|
|
18
|
+
return (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { radioLabel: mockData.label, radioValue: mockData.value, handleChange: mockData.onChange, radioChecked: options?.checked ?? true, className: mockData.className, innerTextInputRef: options?.innerTextInputRef, withInput: options?.withInput, setFocus: mockData.setFocus }));
|
|
19
|
+
};
|
|
20
|
+
describe('RadioInput Component', () => {
|
|
21
|
+
test('renders radio input element with correct attributes', () => {
|
|
22
|
+
renderComponent();
|
|
23
|
+
const inputElement = react_1.screen.getByLabelText(mockData.label);
|
|
24
|
+
expect(inputElement).toBeInTheDocument();
|
|
25
|
+
expect(inputElement.value).toBe('test-radio-input');
|
|
26
|
+
expect(inputElement.parentNode).toHaveClass(mockData.className);
|
|
27
|
+
});
|
|
28
|
+
test('calls onChange when radio input is changed', () => {
|
|
29
|
+
renderComponent({ checked: false });
|
|
30
|
+
const radioInput = react_1.screen.getByRole('radio');
|
|
31
|
+
react_1.fireEvent.click(radioInput);
|
|
32
|
+
expect(mockData.onChange).toHaveBeenCalledTimes(1);
|
|
33
|
+
expect(mockData.onChange).toHaveBeenCalledWith(mockData.value);
|
|
34
|
+
});
|
|
35
|
+
test('renders radio input with input field', () => {
|
|
36
|
+
const innerTextInputRef = {
|
|
37
|
+
name: 'test-input',
|
|
38
|
+
onBlur: jest.fn(),
|
|
39
|
+
onChange: jest.fn(),
|
|
40
|
+
ref: jest.fn(),
|
|
41
|
+
};
|
|
42
|
+
renderComponent({ innerTextInputRef, withInput: true });
|
|
43
|
+
const textInput = react_1.screen.getByRole('textbox');
|
|
44
|
+
expect(textInput).toBeInTheDocument();
|
|
45
|
+
});
|
|
46
|
+
test('sets focus on input field when radio input is changed and withInput is true', () => {
|
|
47
|
+
const innerTextInputRef = {
|
|
48
|
+
name: 'test-input',
|
|
49
|
+
onBlur: jest.fn(),
|
|
50
|
+
onChange: jest.fn(),
|
|
51
|
+
ref: jest.fn(),
|
|
52
|
+
};
|
|
53
|
+
renderComponent({ innerTextInputRef, withInput: true });
|
|
54
|
+
const radioInput = react_1.screen.getByRole('radio');
|
|
55
|
+
react_1.fireEvent.click(radioInput);
|
|
56
|
+
(0, react_1.waitFor)(() => {
|
|
57
|
+
expect(innerTextInputRef.onBlur).toHaveBeenCalledTimes(1);
|
|
58
|
+
expect(mockData.setFocus).toHaveBeenCalledTimes(1);
|
|
59
|
+
expect(mockData.setFocus).toHaveBeenCalledWith(innerTextInputRef.name);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
2
|
+
declare const BasicRadioInput: ({ radioLabel, radioValue, radioChecked, handleChange, className, withInput, innerTextInputRef, setFocus, }: {
|
|
3
|
+
radioLabel: string;
|
|
4
|
+
radioValue: string | number;
|
|
5
|
+
radioChecked: boolean;
|
|
6
|
+
handleChange: (value: string) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
withInput?: boolean;
|
|
9
|
+
innerTextInputRef?: UseFormRegisterReturn;
|
|
10
|
+
setFocus?: (value: string) => void;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default BasicRadioInput;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
9
|
+
const colors_2 = require("../../../styles/colors");
|
|
10
|
+
const Input_1 = require("../Input");
|
|
11
|
+
const StyledLabel = styled_components_1.default.label `
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: 8px 0 8px 27px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
font-size: 1.4em;
|
|
16
|
+
color: ${colors_2.BlackColor};
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
user-select: none;
|
|
19
|
+
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 10px;
|
|
23
|
+
|
|
24
|
+
input[type='radio'] {
|
|
25
|
+
position: absolute;
|
|
26
|
+
opacity: 0;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checkmark {
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: 0;
|
|
33
|
+
height: 18px;
|
|
34
|
+
width: 18px;
|
|
35
|
+
background-color: ${colors_1.BorderColorLight};
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
transition: background-color 200ms;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.checkmark:after {
|
|
41
|
+
content: '';
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 50%;
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
background: ${colors_2.WhiteColor};
|
|
50
|
+
transition: width 200ms, height 200ms;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input:checked ~ .checkmark,
|
|
54
|
+
.checked {
|
|
55
|
+
background-color: ${colors_2.AccentColor};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input:checked ~ .checkmark:after,
|
|
59
|
+
.checked:after {
|
|
60
|
+
width: 8px;
|
|
61
|
+
height: 8px;
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
const BasicRadioInput = ({ radioLabel, radioValue, radioChecked, handleChange, className, withInput, innerTextInputRef, setFocus, }) => {
|
|
65
|
+
const handleChangeRadioInput = (e) => {
|
|
66
|
+
if (withInput) {
|
|
67
|
+
setTimeout(() => setFocus && innerTextInputRef && setFocus(innerTextInputRef.name), 0);
|
|
68
|
+
}
|
|
69
|
+
handleChange(e.target.value);
|
|
70
|
+
};
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(StyledLabel, { className: className, children: [radioLabel, (0, jsx_runtime_1.jsx)("input", { type: "radio", checked: radioChecked, value: radioValue, id: `${radioValue}_${radioLabel}`, onChange: (e) => handleChangeRadioInput(e) }), withInput && ((0, jsx_runtime_1.jsx)(Input_1.StyledInput, { status: false, ...innerTextInputRef, disabled: !radioChecked })), (0, jsx_runtime_1.jsx)("span", { className: `checkmark` })] }));
|
|
72
|
+
};
|
|
73
|
+
exports.default = BasicRadioInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISelectInput } from '../MobileSelect';
|
|
2
|
+
import { ICollectionFilterInput, ICreationFilterInput } from "@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface Props {
|
|
5
|
+
options: ISelectInput[];
|
|
6
|
+
defaultOptionValue: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
onChangeHandler: (fieldName: keyof ICreationFilterInput & keyof ICollectionFilterInput, fieldValue: string) => Promise<void>;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DesktopSelect: React.FC<Props>;
|
|
12
|
+
export default DesktopSelect;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
const vars_1 = require("../../../../fonts/vars");
|
|
31
|
+
const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
|
|
32
|
+
const colors_1 = require("../../../../styles/colors");
|
|
33
|
+
const typography_1 = require("../../../../styles/typography");
|
|
34
|
+
const scale_1 = require("../../../../utils/adaptive/scale");
|
|
35
|
+
const screen_1 = require("../../../../utils/screen");
|
|
36
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
37
|
+
const react_1 = require("react");
|
|
38
|
+
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
39
|
+
const react_select_1 = __importStar(require("react-select"));
|
|
40
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
41
|
+
const SelectElement = (0, styled_components_1.default)(react_select_1.default) `
|
|
42
|
+
font-family: ${vars_1.dmsansFontVarCss.css};
|
|
43
|
+
|
|
44
|
+
.react-select__value-container {
|
|
45
|
+
padding: 0 0 0 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.react-select__control {
|
|
49
|
+
border: none;
|
|
50
|
+
background-color: white;
|
|
51
|
+
border-radius: 6px;
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
min-height: ${(props) => `${props.minHeight}px`};
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
|
|
56
|
+
&:hover,
|
|
57
|
+
&:focus,
|
|
58
|
+
&:active {
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
border-color: transparent;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.react-select__indicator {
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.react-select__indicators {
|
|
69
|
+
padding-right: 12px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.react-select__menu {
|
|
73
|
+
${typography_1.MainText};
|
|
74
|
+
color: ${colors_1.TextGrayColor};
|
|
75
|
+
margin: 4px 0;
|
|
76
|
+
background: ${colors_1.WhiteColor};
|
|
77
|
+
box-shadow: 0 8px 16px -16px rgba(33, 21, 95, 0.1);
|
|
78
|
+
border-radius: 6px;
|
|
79
|
+
z-index: 9999;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.react-select__single-value {
|
|
83
|
+
${typography_1.MainText};
|
|
84
|
+
margin: 0;
|
|
85
|
+
color: ${colors_1.BlackColor};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.react-select__menu-list {
|
|
89
|
+
padding: 8px 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.react-select__option {
|
|
93
|
+
padding: 8.5px 20px;
|
|
94
|
+
font-weight: 400;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.react-select__option--is-selected {
|
|
98
|
+
background-color: transparent;
|
|
99
|
+
color: ${colors_1.BlackColor};
|
|
100
|
+
font-weight: 500;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.react-select__option--is-focused {
|
|
104
|
+
background-color: transparent;
|
|
105
|
+
color: ${colors_1.BlackColor};
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
transition: font-weight 0.3s ease-in-out;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
112
|
+
.react-select__value-container {
|
|
113
|
+
padding: 0 0 0 ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.react-select__control {
|
|
117
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
|
|
118
|
+
min-height: ${(props) => (0, _4k_1.adaptiveValueCalc)(props.minHeight)};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.react-select__indicator {
|
|
122
|
+
transform: ${(props) => "transform" in props.scale && props.scale.transform};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.react-select__indicators {
|
|
126
|
+
padding-right: ${(0, _4k_1.adaptiveValueCalc)(12)};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.react-select__menu {
|
|
130
|
+
margin: ${(0, _4k_1.adaptiveValueCalc)(4)} 0;
|
|
131
|
+
box-shadow: 0 ${(0, _4k_1.adaptiveValueCalc)(8)} ${(0, _4k_1.adaptiveValueCalc)(16)} ${(0, _4k_1.adaptiveValueCalc)(-16)} rgba(33, 21, 95, 0.1);
|
|
132
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.react-select__menu-list {
|
|
136
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(8)} 0;
|
|
137
|
+
max-height: ${(0, _4k_1.adaptiveValueCalc)(300)};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.react-select__option {
|
|
141
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(8.5)} ${(0, _4k_1.adaptiveValueCalc)(20)};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`;
|
|
145
|
+
const minHeight = 40;
|
|
146
|
+
const DropdownIndicator = (props) => {
|
|
147
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.DropdownIndicator, { ...props, children: (0, jsx_runtime_1.jsx)("svg", { style: {
|
|
148
|
+
transition: "transform 200ms",
|
|
149
|
+
transform: props.selectProps.menuIsOpen ? "rotate(180deg)" : "rotate(0)",
|
|
150
|
+
}, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M16 11L12 15L8 11", stroke: "#696F91", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
|
|
151
|
+
};
|
|
152
|
+
const DesktopSelect = ({ options, isLoading, onChangeHandler, defaultOptionValue, name, ...props }) => {
|
|
153
|
+
const [selectedOption, setSelectedOption] = (0, react_1.useState)(options.find((option) => {
|
|
154
|
+
return defaultOptionValue === option.id;
|
|
155
|
+
}) || options[0]);
|
|
156
|
+
(0, react_1.useEffect)(() => {
|
|
157
|
+
const findOption = options.find((option) => {
|
|
158
|
+
return defaultOptionValue === option.id;
|
|
159
|
+
});
|
|
160
|
+
setSelectedOption(findOption || options[0]);
|
|
161
|
+
}, [defaultOptionValue]);
|
|
162
|
+
const handleChangeOption = async (option) => {
|
|
163
|
+
await onChangeHandler(name, option.id);
|
|
164
|
+
setSelectedOption(option);
|
|
165
|
+
};
|
|
166
|
+
const getOptionLabel = (option) => {
|
|
167
|
+
return option.label;
|
|
168
|
+
};
|
|
169
|
+
const getOptionValue = (option) => {
|
|
170
|
+
return option.id;
|
|
171
|
+
};
|
|
172
|
+
const { windowDimensions } = (0, screen_1.useWindowDimensionsWithServerInitial)();
|
|
173
|
+
if (isLoading)
|
|
174
|
+
return (0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { height: `${minHeight}px`, width: "154px" });
|
|
175
|
+
return ((0, jsx_runtime_1.jsx)(SelectElement, { id: String(Math.random()), minHeight: minHeight, scale: (0, scale_1.getAdaptiveScale)({ windowDimensions, currentSize: 1 }), classNamePrefix: "react-select", name: name, getOptionLabel: (option) => getOptionLabel(option), getOptionValue: (option) => getOptionValue(option), options: options, value: selectedOption, defaultValue: selectedOption, onChange: (option) => handleChangeOption(option), isSearchable: false, components: {
|
|
176
|
+
DropdownIndicator,
|
|
177
|
+
IndicatorSeparator: () => null,
|
|
178
|
+
}, ...props }));
|
|
179
|
+
};
|
|
180
|
+
exports.default = DesktopSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICollectionFilterInput, ICreationFilterInput } from '@ludo.ninja/api/build/graphql_tools/__generated__/searchHost/schema';
|
|
3
|
+
export interface ISelectInput {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
options: ISelectInput[];
|
|
9
|
+
defaultOptionValue: string;
|
|
10
|
+
onChangeHandler: (fieldName: keyof ICreationFilterInput & keyof ICollectionFilterInput, fieldValue: string) => void;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
declare const MobileSelect: React.FC<Props>;
|
|
14
|
+
export default MobileSelect;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 router_1 = require("next/router");
|
|
9
|
+
const DropDown_1 = __importDefault(require("../../../DropDown"));
|
|
10
|
+
const RadioInput_1 = __importDefault(require("../../RadioInput"));
|
|
11
|
+
// Component
|
|
12
|
+
const MobileSelect = ({ options, onChangeHandler, name, defaultOptionValue, }) => {
|
|
13
|
+
const [selectedOption, setSelectedOption] = (0, react_1.useState)(options[0]);
|
|
14
|
+
const router = (0, router_1.useRouter)();
|
|
15
|
+
(0, react_1.useEffect)(() => {
|
|
16
|
+
const findOption = options.find((option) => {
|
|
17
|
+
return defaultOptionValue === option.id;
|
|
18
|
+
});
|
|
19
|
+
setSelectedOption(findOption || options[0]);
|
|
20
|
+
}, [defaultOptionValue]);
|
|
21
|
+
const handleChangeOption = (value) => {
|
|
22
|
+
const findOption = options.find((option) => {
|
|
23
|
+
return value === option.id;
|
|
24
|
+
});
|
|
25
|
+
setSelectedOption(findOption || options[0]);
|
|
26
|
+
onChangeHandler(name, findOption?.id || options[0]?.id);
|
|
27
|
+
};
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(DropDown_1.default, { caption: name, fallBackOnClose: () => null, active: Boolean(router.query[name]), children: options.map((select) => ((0, jsx_runtime_1.jsx)(RadioInput_1.default, { radioLabel: select.label, radioValue: select.id, handleChange: handleChangeOption, radioChecked: selectedOption.id === select.id }, `${select.id}_${select.label}`))) }));
|
|
29
|
+
};
|
|
30
|
+
// Export
|
|
31
|
+
exports.default = MobileSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -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
|
+
require("@testing-library/jest-dom");
|
|
8
|
+
const react_1 = require("@testing-library/react");
|
|
9
|
+
const colors_1 = require("../../../styles/colors");
|
|
10
|
+
const index_1 = __importDefault(require("./index"));
|
|
11
|
+
jest.mock('../ErrorLabel', () => ({
|
|
12
|
+
__esModule: true,
|
|
13
|
+
default: ({ children }) => ((0, jsx_runtime_1.jsx)("div", { "data-testid": "error-label", children: children })),
|
|
14
|
+
}));
|
|
15
|
+
const mockRegister = {
|
|
16
|
+
name: 'test-textarea',
|
|
17
|
+
onBlur: jest.fn(),
|
|
18
|
+
onChange: jest.fn(),
|
|
19
|
+
ref: jest.fn(),
|
|
20
|
+
};
|
|
21
|
+
const mockData = {
|
|
22
|
+
name: 'test-textarea',
|
|
23
|
+
placeHolder: 'Enter text...',
|
|
24
|
+
labelText: 'Test TextArea',
|
|
25
|
+
};
|
|
26
|
+
const renderComponent = (error) => {
|
|
27
|
+
return (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.default, { data: mockData, register: mockRegister, error: error, isNeedBiggerArea: false }));
|
|
28
|
+
};
|
|
29
|
+
describe('TextArea Component', () => {
|
|
30
|
+
test('renders text area element with correct attributes', () => {
|
|
31
|
+
renderComponent({ isNeedShowError: false, message: undefined });
|
|
32
|
+
const textareaElement = react_1.screen.getByPlaceholderText('Enter text...');
|
|
33
|
+
expect(textareaElement).toBeInTheDocument();
|
|
34
|
+
expect(textareaElement.name).toBe('test-textarea');
|
|
35
|
+
expect(textareaElement.id).toBe('test-textarea');
|
|
36
|
+
});
|
|
37
|
+
test('applies error styles when there is an error', () => {
|
|
38
|
+
renderComponent({ isNeedShowError: true, message: 'Error message' });
|
|
39
|
+
const textareaElement = react_1.screen.getByPlaceholderText('Enter text...');
|
|
40
|
+
expect(textareaElement).toHaveStyle(`border-color: ${colors_1.ProgressColorMinimum}`);
|
|
41
|
+
expect(react_1.screen.getByTestId('error-label')).toHaveTextContent('Error message');
|
|
42
|
+
});
|
|
43
|
+
test('does not render error label when there is no error', () => {
|
|
44
|
+
renderComponent({ isNeedShowError: false, message: undefined });
|
|
45
|
+
const errorLabel = react_1.screen.queryByTestId('error-label');
|
|
46
|
+
expect(errorLabel).toBeNull();
|
|
47
|
+
});
|
|
48
|
+
test('renders error label when there is an error', () => {
|
|
49
|
+
renderComponent({ isNeedShowError: true, message: 'Error message' });
|
|
50
|
+
const errorLabel = react_1.screen.getByTestId('error-label');
|
|
51
|
+
expect(errorLabel).toBeInTheDocument();
|
|
52
|
+
expect(errorLabel).toHaveTextContent('Error message');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
|
+
import { inputType } from '../Input/type';
|
|
4
|
+
interface Props {
|
|
5
|
+
data: inputType;
|
|
6
|
+
register: UseFormRegisterReturn;
|
|
7
|
+
isNeedBiggerArea: boolean;
|
|
8
|
+
error: {
|
|
9
|
+
isNeedShowError: boolean;
|
|
10
|
+
message: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const BasicTextArea: React.FC<Props>;
|
|
14
|
+
export default BasicTextArea;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 colors_1 = require("../../../styles/colors");
|
|
11
|
+
const typography_1 = require("../../../styles/typography");
|
|
12
|
+
const vars_1 = require("../../../fonts/vars");
|
|
13
|
+
const ErrorLabel_1 = __importDefault(require("../ErrorLabel"));
|
|
14
|
+
// Styles
|
|
15
|
+
const StyledTextArea = styled_components_1.default.textarea `
|
|
16
|
+
font-family: ${vars_1.dmsansFontVarCss.css};
|
|
17
|
+
${typography_1.MainText};
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-height: 92px;
|
|
20
|
+
border-radius: 6px;
|
|
21
|
+
border: 1px solid
|
|
22
|
+
${(props) => (props.status ? colors_1.ProgressColorMinimum : colors_1.BorderColorLight)};
|
|
23
|
+
background: ${colors_1.WhiteColor};
|
|
24
|
+
color: ${colors_1.BlackColor};
|
|
25
|
+
outline: none;
|
|
26
|
+
resize: none;
|
|
27
|
+
padding: 12px;
|
|
28
|
+
|
|
29
|
+
::placeholder {
|
|
30
|
+
color: ${colors_1.TextGrayColor};
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:-ms-input-placeholder {
|
|
35
|
+
color: ${colors_1.TextGrayColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
::-ms-input-placeholder {
|
|
39
|
+
color: ${colors_1.TextGrayColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// :focus {
|
|
43
|
+
// transition: border-color 0.3s ease-in-out;
|
|
44
|
+
// border: 2px solid ${(props) => (props.status ? '#F4205F' : '#C1C8DE')};
|
|
45
|
+
// }
|
|
46
|
+
// :hover {
|
|
47
|
+
// transition: border-color 0.3s ease-in-out;
|
|
48
|
+
// border: 2px solid ${(props) => (props.status ? '#F4205F' : '#C1C8DE')};
|
|
49
|
+
// }
|
|
50
|
+
|
|
51
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
52
|
+
min-height: ${(0, _4k_1.adaptiveValueCalc)(92)};
|
|
53
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
|
|
54
|
+
border: ${(0, _4k_1.adaptiveValueCalc)(1)} solid
|
|
55
|
+
${(props) => (props.status ? colors_1.ProgressColorMinimum : colors_1.BorderColorLight)};
|
|
56
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(12)};
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
// const maxCountLength = 400;
|
|
60
|
+
const BasicTextArea = ({ data, register, isNeedBiggerArea, error,
|
|
61
|
+
// counter,
|
|
62
|
+
}) => {
|
|
63
|
+
const renderError = () => {
|
|
64
|
+
if (error.isNeedShowError) {
|
|
65
|
+
return (0, jsx_runtime_1.jsx)(ErrorLabel_1.default, { children: error.message });
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledTextArea, { ...register, rows: isNeedBiggerArea ? 8 : 4, status: error.isNeedShowError, id: data.name, name: data.name, autoComplete: 'off', placeholder: data.placeHolder }), renderError()] }));
|
|
69
|
+
};
|
|
70
|
+
exports.default = BasicTextArea;
|
|
@@ -0,0 +1,14 @@
|
|
|
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.CheckboxInput = exports.BasicErrorLabel = exports.BasicTextArea = exports.Input = void 0;
|
|
7
|
+
const Checkbox_1 = __importDefault(require("./Checkbox"));
|
|
8
|
+
exports.CheckboxInput = Checkbox_1.default;
|
|
9
|
+
const ErrorLabel_1 = __importDefault(require("./ErrorLabel"));
|
|
10
|
+
exports.BasicErrorLabel = ErrorLabel_1.default;
|
|
11
|
+
const Input_1 = __importDefault(require("./Input"));
|
|
12
|
+
exports.Input = Input_1.default;
|
|
13
|
+
const TextArea_1 = __importDefault(require("./TextArea"));
|
|
14
|
+
exports.BasicTextArea = TextArea_1.default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { BorderProps, LayoutProps, SpaceProps } from 'styled-system';
|
|
3
|
+
export interface ExternalImageRawProps extends SpaceProps, LayoutProps, BorderProps {
|
|
4
|
+
}
|
|
5
|
+
export type ExternalImageProps = ComponentPropsWithRef<'img'> & ExternalImageRawProps;
|
|
6
|
+
export declare const ExternalImage: React.ForwardRefExoticComponent<Omit<ExternalImageProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExternalImage = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
+
const styled_system_1 = require("styled-system");
|
|
11
|
+
const StyledImage = styled_components_1.default.img `
|
|
12
|
+
display: block;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
height: ${(props) => (props.height ? props.height : 'auto')};
|
|
15
|
+
${styled_system_1.space}
|
|
16
|
+
${styled_system_1.layout}
|
|
17
|
+
${styled_system_1.border}
|
|
18
|
+
`;
|
|
19
|
+
exports.ExternalImage = (0, react_1.forwardRef)((props, ref) => {
|
|
20
|
+
return (0, jsx_runtime_1.jsx)(StyledImage, { ref: ref, ...props });
|
|
21
|
+
});
|
|
22
|
+
exports.ExternalImage.displayName = 'ExternalImage';
|