@ludo.ninja/components 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/graphql/index.js +3 -7
- package/build/api/server-assets/mutations/useDislikeAsset/index.js +7 -9
- package/build/api/server-assets/mutations/useLikeAsset/index.js +7 -9
- package/build/api/server-assets/queries/useFetchAssetByBlockchain/index.js +14 -21
- package/build/api/server-assets/queries/useFetchAssets/index.js +11 -14
- package/build/api/server-assets/queries/useFetchDynamicAssetLikes/index.js +13 -15
- package/build/api/server-assets/queries/useFetchDynamicAssetsLikes/index.js +11 -13
- package/build/api/server-collection/mutations/useDislikeCollection/index.js +7 -9
- package/build/api/server-collection/mutations/useLikeCollection/index.js +7 -9
- package/build/api/server-experiences/queries/useFetchMyExperienceWithLevel/index.js +19 -21
- package/build/api/server-experiences/queries/useFetchMyTasks/index.js +15 -20
- package/build/api/server-galleries/mutations/useAddAssetsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddChangeGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useAddCollectionsToGallery/index.js +9 -12
- package/build/api/server-galleries/mutations/useAddCreationsToGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useCreateFavorites/index.js +5 -8
- package/build/api/server-galleries/mutations/useCreateGallery/index.js +5 -8
- package/build/api/server-galleries/mutations/useDeleteGallery/index.js +10 -12
- package/build/api/server-galleries/mutations/useDeleteGalleryBanner/index.js +9 -13
- package/build/api/server-galleries/mutations/useEditGallery/index.js +5 -7
- package/build/api/server-galleries/mutations/useRemoveAssetFromGallery/index.js +13 -16
- package/build/api/server-galleries/mutations/useRemoveCollectionFromGallery/index.js +12 -15
- package/build/api/server-galleries/queries/useFetchGallery/index.js +11 -18
- package/build/api/server-galleries/queries/useFetchGalleryAssets/index.js +9 -12
- package/build/api/server-galleries/queries/useFetchMyFavorites/index.js +11 -17
- package/build/api/server-galleries/queries/useFetchMyGalleries/index.js +13 -19
- package/build/api/server-galleries/queries/useFetchSubscribedGalleries/index.js +9 -11
- package/build/api/server-galleries/queries/useFetchUserFavorites/index.js +10 -16
- package/build/api/server-identities/mutations/useAddWalletElrond/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletFlow/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletMetamask/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletSolana/index.js +10 -12
- package/build/api/server-identities/mutations/useAddWalletTezos/index.js +10 -12
- package/build/api/server-identities/mutations/useFollowProfile/index.js +13 -15
- package/build/api/server-identities/mutations/useGenerateNewInviteCodes/index.js +7 -9
- package/build/api/server-identities/mutations/useInviteCode/index.js +9 -11
- package/build/api/server-identities/mutations/useRemoveWallet/index.js +10 -12
- package/build/api/server-identities/mutations/useRevokeToken/index.js +5 -7
- package/build/api/server-identities/mutations/useSaveEmailOfJoiner/index.js +9 -11
- package/build/api/server-identities/mutations/useUnfollowProfile/index.js +13 -15
- package/build/api/server-identities/queries/useFetchProfile/index.js +19 -23
- package/build/api/server-identities/queries/useFetchUserWallets/index.js +4 -6
- package/build/api/server-medias/mutations/useDeleteUserpic/index.js +7 -9
- package/build/api/server-medias/mutations/useUploadUserpic/index.js +7 -9
- package/build/api/server-medias/queries/useFetchUserPic/index.js +8 -10
- package/build/api/server-opportunities/mutations/useDislikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useLikeOpportunity.js +8 -12
- package/build/api/server-opportunities/mutations/useOpenOpportunity/index.js +8 -10
- package/build/api/server-opportunities/queries/useGetOpportunities.js +9 -13
- package/build/api/server-preferences/queries/fetchSearchResultSelections/index.js +6 -11
- package/build/api/server-preferences/queries/fetchSearchResultSelections/queryData.js +9 -13
- package/build/api/server-search/queries/useFetchAllCreations/index.js +15 -23
- package/build/api/server-search/queries/useFetchAssetsCount/index.js +2 -4
- package/build/api/server-search/queries/useFetchCollection/index.js +16 -23
- package/build/api/server-search/queries/useFetchCollections/index.js +16 -23
- package/build/api/server-search/queries/useFetchDynamicCollectionData/index.js +18 -24
- package/build/api/server-search/queries/useFetchFindAllTopEntitiesByName/index.js +16 -24
- package/build/api/server-search/queries/useFetchNetWorth/index.js +7 -9
- package/build/api/server-search/queries/useFindCreations/index.js +20 -28
- package/build/api/server-search/queries/useFindProfilesByName/index.js +14 -19
- package/build/api/server-search/queries/useFindShowcaseItems/index.js +1 -3
- package/build/api/server-search/queries/useFindUserCreations/index.js +16 -21
- package/build/api/server-search/queries/useFindUserShowcaseItems/index.js +1 -3
- package/build/api/subscriptions/SubscriberInviteNotification.js +18 -22
- package/build/components/assetPage/assetLikes/index.js +25 -30
- package/build/components/assetPage/assetNft/index.js +14 -21
- package/build/components/assetPage/audioVideoPlayer/Duration.js +5 -8
- package/build/components/assetPage/audioVideoPlayer/index.js +51 -81
- package/build/components/assetPage/category/index.js +18 -25
- package/build/components/assetPage/description/index.js +17 -24
- package/build/components/assetPage/index.js +11 -25
- package/build/components/assetPage/information/index.js +43 -50
- package/build/components/assetPage/marketPlaces/index.js +26 -33
- package/build/components/assetPage/media/AssetImage/index.js +52 -80
- package/build/components/assetPage/moreDropDown/index.js +47 -77
- package/build/components/assetPage/participants/index.js +64 -71
- package/build/components/assetPage/priceRank/index.js +38 -45
- package/build/components/assetPage/properties/index.js +19 -26
- package/build/components/assetPage/slider/index.js +44 -51
- package/build/components/assetPage/slider/slideItem.js +14 -21
- package/build/components/assetPage/slider/store.js +2 -5
- package/build/components/assetPage/tittle/index.js +32 -39
- package/build/components/assetPage/viewer3D/index.js +50 -58
- package/build/components/base/Meta/index.js +6 -11
- package/build/components/base/NoSSR/index.js +4 -9
- package/build/components/favoriteList/add/addCreationToFavoriteList/index.js +14 -19
- package/build/components/gallery/add/addCreationToGallery/index.js +20 -25
- package/build/components/headers/components/headerExperienceLabel/index.js +12 -17
- package/build/components/headers/components/headerUserPic/index.js +11 -16
- package/build/components/headers/header/index.js +17 -22
- package/build/components/headers/headerSearch/index.js +21 -26
- package/build/components/headers/headerSimple/index.js +14 -19
- package/build/components/linkTabs/index.js +14 -19
- package/build/components/linkTabs/linkTab/index.js +22 -27
- package/build/components/profile/profileSkeleton/index.js +10 -18
- package/build/components/search/SearchInputContainer.js +61 -91
- package/build/components/search/searchCloseMoreButtons/index.js +20 -25
- package/build/components/search/searchSimpleInput/index.js +37 -65
- package/build/components/search/searchSuggestions/index.js +32 -37
- package/build/components/search/searchSuggestions/searchSuggestionsCaption/index.js +17 -22
- package/build/components/search/searchSuggestions/searchSuggestionsFooter/index.js +20 -25
- package/build/components/search/searchSuggestions/searchSuggestionsItem/index.js +29 -34
- package/build/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +28 -58
- package/build/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +19 -24
- package/build/components/searchFiltersConnector/filters/applyResetBtns/index.js +11 -16
- package/build/components/searchFiltersConnector/filters/galleriesFiltersForm/index.js +13 -18
- package/build/components/searchFiltersConnector/filters/index.js +38 -43
- package/build/components/searchFiltersConnector/filters/mobileFilters/index.js +5 -10
- package/build/components/searchFiltersConnector/filters/setsFiltersForm/index.js +12 -17
- package/build/components/searchFiltersConnector/index.js +12 -19
- package/build/components/sidebar/data.js +18 -26
- package/build/components/sidebar/index.js +59 -87
- package/build/components/sidebar/initializer.js +4 -34
- package/build/components/sidebar/sidebarFilters/index.js +8 -13
- package/build/components/sidebar/sidebarInviteCodeLabel/index.js +14 -19
- package/build/components/toTopBtn/index.js +32 -39
- package/build/dto/AssetEntity/index.js +19 -24
- package/build/dto/AssetEntity/interface.js +1 -2
- package/build/dto/AssetEntity/views/AssetAudio/index.js +11 -16
- package/build/dto/AssetEntity/views/AssetImage/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetObject/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetOther/index.js +13 -18
- package/build/dto/AssetEntity/views/AssetScreenshot/index.js +12 -17
- package/build/dto/AssetEntity/views/AssetVideo/index.js +11 -16
- package/build/dto/AssetEntity/views/index.js +6 -16
- package/build/dto/Collection/CollectionCreationEntity/index.js +22 -27
- package/build/dto/Collection/CollectionCreationEntity/interface.js +1 -2
- package/build/dto/Collection/CollectionEntity/index.js +5 -7
- package/build/dto/Collection/CollectionEntity/interface.js +1 -2
- package/build/dto/CreationEntity/index.js +19 -24
- package/build/dto/CreationEntity/interface.js +1 -2
- package/build/dto/GalleryEntityV2/index.js +5 -10
- package/build/dto/GalleryEntityV2/interface.js +1 -2
- package/build/dto/Theme/interface.js +1 -5
- package/build/dto/common/ItemType/data.js +26 -28
- package/build/dto/common/ItemType/index.js +5 -7
- package/build/dto/common/ItemViews/CreationAudio/index.js +11 -16
- package/build/dto/common/ItemViews/CreationImage/index.js +12 -17
- package/build/dto/common/ItemViews/CreationObject/index.js +10 -15
- package/build/dto/common/ItemViews/CreationOther/index.js +11 -16
- package/build/dto/common/ItemViews/CreationVideo/index.js +11 -16
- package/build/dto/common/Media/Audio/index.js +9 -14
- package/build/dto/common/Media/Image/index.js +10 -15
- package/build/dto/common/Media/Object/index.js +9 -14
- package/build/dto/common/Media/Other/index.js +14 -19
- package/build/dto/common/Media/Screenshot/index.js +10 -15
- package/build/dto/common/Media/Urls/index.js +23 -38
- package/build/dto/common/Media/Video/index.js +9 -14
- package/build/dto/common/Media/index.js +3 -5
- package/build/dto/common/Media/interface.js +1 -2
- package/build/entities/user/type.js +1 -2
- package/build/fonts/FontsInitializeLayout.js +13 -16
- package/build/fonts/vars.js +1 -6
- package/build/hooks/apollo/index.js +8 -11
- package/build/hooks/audio/useMultiAudio/index.js +10 -12
- package/build/hooks/extension/useExtension/index.js +8 -10
- package/build/hooks/favorites/useGetFavoriteGallaryCreations/index.js +33 -39
- package/build/hooks/favorites/useGetUserFevoritesCreations/index.js +32 -39
- package/build/hooks/galleries/useGetUserGalleriesCreations/index.js +32 -39
- package/build/hooks/likes/dynamic/useFindCollectionsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useFindCreationsAndLikes.js +26 -32
- package/build/hooks/likes/dynamic/useGetCollectionInfoAndLikes.js +23 -29
- package/build/hooks/likes/dynamic/useGetCreationsAndLikes.js +27 -34
- package/build/hooks/likes/dynamic/useGetCreationsAndLikesByType.js +30 -36
- package/build/hooks/likes/dynamic/useGetMixedLikesFavoriteList.js +11 -13
- package/build/hooks/likes/dynamic/useGetTableLikes.js +24 -30
- package/build/hooks/likes/index.js +27 -32
- package/build/hooks/likes/useGetLikesAsset.js +20 -24
- package/build/layouts/GlobalLayout.js +24 -31
- package/build/layouts/base/LWithRegularHeader/index.js +7 -12
- package/build/layouts/base/LWithRegularHeader/type.js +1 -2
- package/build/layouts/base/LWithSearchHeader/index.js +5 -10
- package/build/layouts/base/LWithSearchHeader/type.js +1 -2
- package/build/layouts/custom/mainLayout/index.js +8 -13
- package/build/layouts/custom/styles.js +15 -21
- package/build/layouts/pageTransitionLayout.js +6 -8
- package/build/layouts/pageWithLayout.js +1 -2
- package/build/modules/gallery/api/useGetAssetsAndCollectionForFavorite.js +35 -42
- package/build/modules/gallery/api/useGetFavoriteGallery.js +11 -15
- package/build/modules/gallery/store.js +10 -16
- package/build/modules/gallery/ui/AllResults.js +7 -11
- package/build/modules/gallery/ui/Description.js +24 -31
- package/build/modules/gallery/ui/EditGallery.js +15 -22
- package/build/modules/gallery/ui/GalleryDeleteIcon.js +12 -19
- package/build/modules/gallery/ui/PlaceholderItemsGallery.js +21 -28
- package/build/modules/gallery/ui/STopSections.js +10 -16
- package/build/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +25 -30
- package/build/modules/gallery/ui/chooseGalleryItems/index.js +47 -52
- package/build/modules/gallery/ui/createGalleryForm/index.js +31 -36
- package/build/modules/gallery/ui/editGalleryForm/index.js +40 -45
- package/build/modules/gallery/ui/itemsPreview/index.js +54 -61
- package/build/modules/gallery/useToGalleryAsset.js +15 -23
- package/build/modules/notifications/CreatorNotifications.js +10 -40
- package/build/modules/notifications/index.js +3 -6
- package/build/modules/opportunity/OpportunityCard.js +81 -88
- package/build/modules/opportunity/OpportunityDropDown.js +11 -18
- package/build/modules/opportunity/ShareIcon.js +2 -6
- package/build/modules/opportunity/encodeQuery.js +4 -10
- package/build/modules/opportunity/popup/CopyIcon.js +3 -5
- package/build/modules/opportunity/popup/FacebookIcon.js +3 -5
- package/build/modules/opportunity/popup/LinkedInIcon.js +3 -5
- package/build/modules/opportunity/popup/LogoXIcon.js +3 -5
- package/build/modules/opportunity/popup/OpportunityMenu.js +44 -51
- package/build/modules/opportunity/type.js +1 -2
- package/build/modules/sessionScroll/globalTabs.js +1 -4
- package/build/modules/sessionScroll/index.js +16 -23
- package/build/modules/sessionScroll/type.js +1 -2
- package/build/modules/sessionScroll/useVirtuosoInitialScroll.js +12 -16
- package/build/modules/user/auth/useAuthVerification.js +10 -37
- package/build/modules/user/auth/useSignIn.js +7 -11
- package/build/modules/user/auth/useSignOut.js +11 -18
- package/build/modules/user/profileData/profileDataInitialization.js +14 -18
- package/build/modules/user/store.js +9 -12
- package/build/modules/virtuoso/VirtuosoPageBuilder.js +36 -43
- package/build/modules/virtuoso/VirtuosoToTopBtn.js +8 -13
- package/build/modules/virtuoso/types.js +1 -2
- package/build/modules/virtuoso/useSubscribeVirtuosoScrollToHeader.js +4 -8
- package/build/modules/virtuoso/useVirtuosoData.js +6 -10
- package/build/store/env/index.js +4 -7
- package/build/store/index.js +4 -7
- package/build/store/media/index.js +4 -7
- package/build/store/media/types.js +1 -2
- package/build/store/ui/index.js +21 -24
- package/build/store/ui/types.js +1 -2
- package/build/store/ui/utils.js +4 -8
- package/build/styles/ScreenWidth.js +3 -6
- package/build/styles/animations/index.js +3 -6
- package/build/styles/colors/index.js +1 -38
- package/build/styles/globalStyles.js +5 -7
- package/build/styles/mixins/boxShadow.js +3 -5
- package/build/styles/mixins/boxTransform.js +3 -5
- package/build/styles/mixins/z-indexes.js +10 -13
- package/build/styles/typography/index.js +1 -13
- package/build/system/ActiveLink/ActiveLink.test.js +14 -19
- package/build/system/ActiveLink/index.js +10 -38
- package/build/system/Alert/index.js +6 -11
- package/build/system/Alert/type.js +1 -8
- package/build/system/BasicOverlay/index.js +5 -10
- package/build/system/Buttons/IconButton/index.js +2 -7
- package/build/system/Buttons/IconWithButton/index.js +2 -7
- package/build/system/Buttons/MainButton/index.js +2 -7
- package/build/system/Buttons/SecondaryButton/index.js +2 -7
- package/build/system/Cards/CardCheckbox/CardCheckbox.test.js +8 -13
- package/build/system/Cards/CardCheckbox/index.js +19 -24
- package/build/system/Cards/CardContent/CardCategory/CardCategory.test.js +11 -16
- package/build/system/Cards/CardContent/CardCategory/index.js +13 -18
- package/build/system/Cards/CardContent/CardContent.test.js +31 -36
- package/build/system/Cards/CardContent/CardLikes/CardLikes.test.js +11 -16
- package/build/system/Cards/CardContent/CardLikes/index.js +11 -16
- package/build/system/Cards/CardContent/CardShowMore/CardShowMore.test.js +20 -25
- package/build/system/Cards/CardContent/CardShowMore/index.js +34 -40
- package/build/system/Cards/CardContent/index.js +32 -37
- package/build/system/Cards/CardMedia/CardAudio/CardAudio.test.js +35 -40
- package/build/system/Cards/CardMedia/CardAudio/index.js +18 -23
- package/build/system/Cards/CardMedia/CardImage/CardImage.test.js +14 -19
- package/build/system/Cards/CardMedia/CardImage/index.js +8 -13
- package/build/system/Cards/CardMedia/CardVideo/index.js +17 -22
- package/build/system/Cards/CardRank/index.js +32 -37
- package/build/system/Cards/CreationCard/CardHead.js +35 -42
- package/build/system/Cards/CreationCard/index.js +45 -76
- package/build/system/Cards/MultiMediaCard/index.js +30 -35
- package/build/system/Cards/Styles/Content.js +9 -14
- package/build/system/Cards/Styles/Head.js +8 -13
- package/build/system/Cards/Styles/Headicons.js +23 -28
- package/build/system/Cards/Styles/Image.js +8 -13
- package/build/system/Cards/Styles/Likes.js +14 -19
- package/build/system/Cards/Styles/MultiHead.js +11 -16
- package/build/system/Cards/Styles/Video.js +3 -8
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsError/index.js +14 -19
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/index.js +10 -15
- package/build/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +17 -24
- package/build/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +15 -20
- package/build/system/DropDown/DropDown.test.js +14 -19
- package/build/system/DropDown/index.js +12 -17
- package/build/system/Filters/helpers.js +1 -5
- package/build/system/Filters/type.js +2 -5
- package/build/system/Forms/Checkbox/Checkbox.test.js +13 -18
- package/build/system/Forms/Checkbox/index.js +16 -21
- package/build/system/Forms/DatePicker/index.js +46 -51
- package/build/system/Forms/ErrorLabel/ErrorLabel.test.js +11 -16
- package/build/system/Forms/ErrorLabel/index.js +10 -15
- package/build/system/Forms/Input/Input.test.js +13 -18
- package/build/system/Forms/Input/index.js +29 -35
- package/build/system/Forms/Input/type.js +1 -2
- package/build/system/Forms/Messages/index.js +1 -3
- package/build/system/Forms/RadioInput/index.js +12 -17
- package/build/system/Forms/Selects/DesktopSelect/index.js +41 -69
- package/build/system/Forms/Selects/DesktopSelect/type.js +1 -2
- package/build/system/Forms/Selects/MobileSelect/index.js +10 -15
- package/build/system/Forms/TextArea/TextArea.test.js +13 -18
- package/build/system/Forms/TextArea/index.js +26 -31
- package/build/system/Forms/index.js +5 -14
- package/build/system/Img/ExternalImage/index.js +11 -17
- package/build/system/Img/ImageInterceptor/ImageInterceptor.test.js +18 -23
- package/build/system/Img/ImageInterceptor/index.js +10 -40
- package/build/system/Img/Profilepic/index.js +12 -19
- package/build/system/Img/Userpic/UserPic.test.js +15 -20
- package/build/system/Img/Userpic/index.js +28 -33
- package/build/system/Img/index.js +3 -19
- package/build/system/Labels/ExperienceLabel/ExperienceLabel.test.js +12 -17
- package/build/system/Labels/ExperienceLabel/index.js +27 -32
- package/build/system/Labels/InviteLabel/InviteLabel.test.js +10 -15
- package/build/system/Labels/InviteLabel/index.js +14 -19
- package/build/system/Labels/SkeletonLabel/index.js +2 -7
- package/build/system/Modals/Modal/Modal.test.js +11 -16
- package/build/system/Modals/Modal/index.js +24 -29
- package/build/system/Modals/ModalSidebar/CreatorModalSidebarPortal.js +7 -37
- package/build/system/Modals/ModalSidebar/ModalSidebar.test.js +11 -16
- package/build/system/Modals/ModalSidebar/ModalSidebarPortal.js +5 -9
- package/build/system/Modals/ModalSidebar/index.js +23 -29
- package/build/system/Overlay/Overlay.test.js +11 -16
- package/build/system/Overlay/index.js +11 -16
- package/build/system/PageLoader/index.js +2 -7
- package/build/system/Palete/index.js +2 -7
- package/build/system/ShareIconResize.js +14 -21
- package/build/system/Tabs/TabNavLink/TabNavLink.test.js +15 -20
- package/build/system/Tabs/TabNavLink/index.js +17 -23
- package/build/system/Tabs/TabsNav/TabsNav.test.js +18 -23
- package/build/system/Tabs/TabsNav/index.js +7 -13
- package/build/system/Tabs/TabsNav/type.js +1 -2
- package/build/system/Tabs/TabsPanel/TabsPanel.test.js +13 -18
- package/build/system/Tabs/TabsPanel/index.js +5 -10
- package/build/system/index.js +6 -22
- package/build/system/theme.js +1 -7
- package/build/utils/3d.js +1 -5
- package/build/utils/adaptive/check4k.js +5 -9
- package/build/utils/adaptive/scale.js +5 -9
- package/build/utils/auth/index.js +3 -7
- package/build/utils/copyBtn/index.js +23 -30
- package/build/utils/env/index.js +1 -5
- package/build/utils/extractItemIds.js +3 -9
- package/build/utils/getDimensionsImage.js +1 -5
- package/build/utils/getPageSizeAssets.js +4 -8
- package/build/utils/imageProportionsSize/index.js +1 -5
- package/build/utils/screen/index.js +24 -30
- package/build/utils/seacrhTabs.js +1 -4
- package/build/utils/ssrFunctions/index.js +9 -15
- package/build/utils/ui/index.js +1 -5
- package/package.json +5 -4
- /package/build/public/404/{404.js → 404.cjs} +0 -0
- /package/build/public/500/{500.js → 500.cjs} +0 -0
- /package/build/public/MobileSearchBtn/{close.js → close.cjs} +0 -0
- /package/build/public/{search/search.js → MobileSearchBtn/search.cjs} +0 -0
- /package/build/public/MobileSearchBtn/test/{pirate.js → pirate.cjs} +0 -0
- /package/build/public/MobileSearchBtn/test/{squircle.js → squircle.cjs} +0 -0
- /package/build/public/alerts/{close.js → close.cjs} +0 -0
- /package/build/public/alerts/{errorIcon.js → errorIcon.cjs} +0 -0
- /package/build/public/alerts/{successIcon.js → successIcon.cjs} +0 -0
- /package/build/public/alerts/{warningIcon.js → warningIcon.cjs} +0 -0
- /package/build/public/assetPage/{arrow.js → arrow.cjs} +0 -0
- /package/build/public/assetPage/{audioPlaceholder.js → audioPlaceholder.cjs} +0 -0
- /package/build/public/assetPage/{details.js → details.cjs} +0 -0
- /package/build/public/assetPage/{favorite.js → favorite.cjs} +0 -0
- /package/build/public/assetPage/{favorite_hover.js → favorite_hover.cjs} +0 -0
- /package/build/public/assetPage/{flag.js → flag.cjs} +0 -0
- /package/build/public/assetPage/{fullScreen.js → fullScreen.cjs} +0 -0
- /package/build/public/assetPage/{owners.js → owners.cjs} +0 -0
- /package/build/public/assetPage/{pause.js → pause.cjs} +0 -0
- /package/build/public/assetPage/{play.js → play.cjs} +0 -0
- /package/build/public/assetPage/{share.js → share.cjs} +0 -0
- /package/build/public/assetPage/{share2.js → share2.cjs} +0 -0
- /package/build/public/assetPage/{share2_hover.js → share2_hover.cjs} +0 -0
- /package/build/public/assetPage/{shareWithDots.js → shareWithDots.cjs} +0 -0
- /package/build/public/assetPage/{shareWithDots_hover.js → shareWithDots_hover.cjs} +0 -0
- /package/build/public/assetPage/{share_hover.js → share_hover.cjs} +0 -0
- /package/build/public/assetPage/{soundOf.js → soundOf.cjs} +0 -0
- /package/build/public/assetPage/{soundOn.js → soundOn.cjs} +0 -0
- /package/build/public/banner/{banner_img.js → banner_img.cjs} +0 -0
- /package/build/public/banner/{banner_stroke.js → banner_stroke.cjs} +0 -0
- /package/build/public/button_skin/{accept.js → accept.cjs} +0 -0
- /package/build/public/button_skin/{decline.js → decline.cjs} +0 -0
- /package/build/public/{calendar.js → calendar.cjs} +0 -0
- /package/build/public/cards/{addToFavListIcon.js → addToFavListIcon.cjs} +0 -0
- /package/build/public/cards/{addToGalleryIcon.js → addToGalleryIcon.cjs} +0 -0
- /package/build/public/cards/{heart.js → heart.cjs} +0 -0
- /package/build/public/cardsHolderLoader/{loader.js → loader.cjs} +0 -0
- /package/build/public/{checkbox-on.js → checkbox-on.cjs} +0 -0
- /package/build/public/{checkboxArrow.js → checkboxArrow.cjs} +0 -0
- /package/build/public/{close.js → close.cjs} +0 -0
- /package/build/public/{close20.js → close20.cjs} +0 -0
- /package/build/public/collectionPage/{export.js → export.cjs} +0 -0
- /package/build/public/{copied.js → copied.cjs} +0 -0
- /package/build/public/{copy-icon-new.js → copy-icon-new.cjs} +0 -0
- /package/build/public/creation/card/{moreBtn.js → moreBtn.cjs} +0 -0
- /package/build/public/creation/card/{moreBtnVertical.js → moreBtnVertical.cjs} +0 -0
- /package/build/public/creation/card/{moreBtn_hover.js → moreBtn_hover.cjs} +0 -0
- /package/build/public/defaultUserpics/{0.js → 0.cjs} +0 -0
- /package/build/public/defaultUserpics/{1.js → 1.cjs} +0 -0
- /package/build/public/defaultUserpics/{10.js → 10.cjs} +0 -0
- /package/build/public/defaultUserpics/{11.js → 11.cjs} +0 -0
- /package/build/public/defaultUserpics/{12.js → 12.cjs} +0 -0
- /package/build/public/defaultUserpics/{13.js → 13.cjs} +0 -0
- /package/build/public/defaultUserpics/{14.js → 14.cjs} +0 -0
- /package/build/public/defaultUserpics/{15.js → 15.cjs} +0 -0
- /package/build/public/defaultUserpics/{16.js → 16.cjs} +0 -0
- /package/build/public/defaultUserpics/{17.js → 17.cjs} +0 -0
- /package/build/public/defaultUserpics/{18.js → 18.cjs} +0 -0
- /package/build/public/defaultUserpics/{19.js → 19.cjs} +0 -0
- /package/build/public/defaultUserpics/{2.js → 2.cjs} +0 -0
- /package/build/public/defaultUserpics/{20.js → 20.cjs} +0 -0
- /package/build/public/defaultUserpics/{3.js → 3.cjs} +0 -0
- /package/build/public/defaultUserpics/{4.js → 4.cjs} +0 -0
- /package/build/public/defaultUserpics/{5.js → 5.cjs} +0 -0
- /package/build/public/defaultUserpics/{6.js → 6.cjs} +0 -0
- /package/build/public/defaultUserpics/{7.js → 7.cjs} +0 -0
- /package/build/public/defaultUserpics/{8.js → 8.cjs} +0 -0
- /package/build/public/defaultUserpics/{9.js → 9.cjs} +0 -0
- /package/build/public/defaultUserpics/{defaultUserpic.js → defaultUserpic.cjs} +0 -0
- /package/build/public/dropDown/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/{dropdown-arrow-down.js → dropdown-arrow-down.cjs} +0 -0
- /package/build/public/{dropdown-arrow-up.js → dropdown-arrow-up.cjs} +0 -0
- /package/build/public/error/{refresh.js → refresh.cjs} +0 -0
- /package/build/public/{follower.js → follower.cjs} +0 -0
- /package/build/public/forms/checkbox/{checked.js → checked.cjs} +0 -0
- /package/build/public/gallery/{defaultImage.js → defaultImage.cjs} +0 -0
- /package/build/public/gallery/{delete.js → delete.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/arrows/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/arrows/{arrow_up.js → arrow_up.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{campaigns.js → campaigns.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{add_new_campaign.js → add_new_campaign.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_galleries.js → my_galleries.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_profile.js → my_profile.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{my_wallets.js → my_wallets.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{notifications.js → notifications.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_campaigns.js → top_campaigns.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_creations.js → top_creations.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_creators.js → top_creators.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/{top_galleries.js → top_galleries.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/dropdown/top_/321/{201ollectors.js" → 201ollectors.cjs"} +0 -0
- /package/build/public/header/mobile_menu_icons/{experiences.js → experiences.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{settings.js → settings.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{sign_out.js → sign_out.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{submit_nft.js → submit_nft.cjs} +0 -0
- /package/build/public/header/mobile_menu_icons/{top.js → top.cjs} +0 -0
- /package/build/public/header/mobile_toggle/{close.js → close.cjs} +0 -0
- /package/build/public/header/mobile_toggle/{regular.js → regular.cjs} +0 -0
- /package/build/public/iconButton/{share.js → share.cjs} +0 -0
- /package/build/public/iconButton/{trash.js → trash.cjs} +0 -0
- /package/build/public/iconButton/{trash_open.js → trash_open.cjs} +0 -0
- /package/build/public/{like-icon-active.js → like-icon-active.cjs} +0 -0
- /package/build/public/{like-icon.js → like-icon.cjs} +0 -0
- /package/build/public/logOut/{logOutBtn.js → logOutBtn.cjs} +0 -0
- /package/build/public/logo/{main_logo.js → main_logo.cjs} +0 -0
- /package/build/public/logo/{main_logo_dark.js → main_logo_dark.cjs} +0 -0
- /package/build/public/logo/{mobile_logo.js → mobile_logo.cjs} +0 -0
- /package/build/public/logo/{mobile_logo_dark.js → mobile_logo_dark.cjs} +0 -0
- /package/build/public/{ludo-logo-small.js → ludo-logo-small.cjs} +0 -0
- /package/build/public/{ludo-logo-square.js → ludo-logo-square.cjs} +0 -0
- /package/build/public/{sidebar/close.js → modal/close.cjs} +0 -0
- /package/build/public/noContent/{noContent.js → noContent.cjs} +0 -0
- /package/build/public/noContent/{noContentAudio.js → noContentAudio.cjs} +0 -0
- /package/build/public/noContent/{noContentObject.js → noContentObject.cjs} +0 -0
- /package/build/public/{no_image placeholder.js → no_image placeholder.cjs} +0 -0
- /package/build/public/{no_media_placeholder.js → no_media_placeholder.cjs} +0 -0
- /package/build/public/{report.js → report.cjs} +0 -0
- /package/build/public/rewardsPage/{XP_logo.js → XP_logo.cjs} +0 -0
- /package/build/public/rewardsPage/{arrow_up_light.js → arrow_up_light.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards.js → banner_rewards.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards_mobile.js → banner_rewards_mobile.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_rewards_tablet.js → banner_rewards_tablet.cjs} +0 -0
- /package/build/public/rewardsPage/{banner_seasons.js → banner_seasons.cjs} +0 -0
- /package/build/public/rewardsPage/{defaultUserPic.js → defaultUserPic.cjs} +0 -0
- /package/build/public/rewardsPage/{ludo_logo_white.js → ludo_logo_white.cjs} +0 -0
- /package/build/public/search/{arrow_up.js → arrow_up.cjs} +0 -0
- /package/build/public/search/{back.js → back.cjs} +0 -0
- /package/build/public/search/{close.js → close.cjs} +0 -0
- /package/build/public/search/{no_found.js → no_found.cjs} +0 -0
- /package/build/public/{MobileSearchBtn/search.js → search/search.cjs} +0 -0
- /package/build/public/{search-icon.js → search-icon.cjs} +0 -0
- /package/build/public/selects/{arrow_down.js → arrow_down.cjs} +0 -0
- /package/build/public/services/{opensea.js → opensea.cjs} +0 -0
- /package/build/public/services/{other.js → other.cjs} +0 -0
- /package/build/public/services/{rarible.js → rarible.cjs} +0 -0
- /package/build/public/settings_page/{back.js → back.cjs} +0 -0
- /package/build/public/settings_page/{burger_menu.js → burger_menu.cjs} +0 -0
- /package/build/public/settings_page/{notifications.js → notifications.cjs} +0 -0
- /package/build/public/settings_page/{notifications_active.js → notifications_active.cjs} +0 -0
- /package/build/public/settings_page/{privacy.js → privacy.cjs} +0 -0
- /package/build/public/settings_page/{privacy_active.js → privacy_active.cjs} +0 -0
- /package/build/public/settings_page/{settings.js → settings.cjs} +0 -0
- /package/build/public/settings_page/{settings_active.js → settings_active.cjs} +0 -0
- /package/build/public/settings_page/{upload.js → upload.cjs} +0 -0
- /package/build/public/share/{copy-link-btn.js → copy-link-btn.cjs} +0 -0
- /package/build/public/share/{email-btn.js → email-btn.cjs} +0 -0
- /package/build/public/share/{facebook-btn.js → facebook-btn.cjs} +0 -0
- /package/build/public/share/{insta-btn.js → insta-btn.cjs} +0 -0
- /package/build/public/share/{reddit-btn.js → reddit-btn.cjs} +0 -0
- /package/build/public/share/{telegram-btn.js → telegram-btn.cjs} +0 -0
- /package/build/public/share/{twitter-btn.js → twitter-btn.cjs} +0 -0
- /package/build/public/share/{whatsapp-btn.js → whatsapp-btn.cjs} +0 -0
- /package/build/public/{share-icon.js → share-icon.cjs} +0 -0
- /package/build/public/showCaseIcons/{heart.js → heart.cjs} +0 -0
- /package/build/public/sidebar/{aboutLudo.js → aboutLudo.cjs} +0 -0
- /package/build/public/sidebar/{aboutLudoDark.js → aboutLudoDark.cjs} +0 -0
- /package/build/public/sidebar/{api.js → api.cjs} +0 -0
- /package/build/public/{modal/close.js → sidebar/close.cjs} +0 -0
- /package/build/public/sidebar/{disconnect.js → disconnect.cjs} +0 -0
- /package/build/public/sidebar/{explore.js → explore.cjs} +0 -0
- /package/build/public/sidebar/{ludoX.js → ludoX.cjs} +0 -0
- /package/build/public/sidebar/{my-invites.js → my-invites.cjs} +0 -0
- /package/build/public/sidebar/{rewards.js → rewards.cjs} +0 -0
- /package/build/public/sidebar/{submitNft.js → submitNft.cjs} +0 -0
- /package/build/public/socials/{facebook.js → facebook.cjs} +0 -0
- /package/build/public/socials/{instagram.js → instagram.cjs} +0 -0
- /package/build/public/socials/{twitter.js → twitter.cjs} +0 -0
- /package/build/public/socials/{website.js → website.cjs} +0 -0
- /package/build/public/tabs/{arrow_right.js → arrow_right.cjs} +0 -0
- /package/build/public/tabs/{arrow_right_dark.js → arrow_right_dark.cjs} +0 -0
- /package/build/public/tests/{test_1.js → test_1.cjs} +0 -0
- /package/build/public/toTopBtn/{toTopBtn.js → toTopBtn.cjs} +0 -0
- /package/build/public/{upload-userpic.js → upload-userpic.cjs} +0 -0
- /package/build/public/userpics/{placeholder-lg-1.js → placeholder-lg-1.cjs} +0 -0
- /package/build/public/userpics/{placeholder-sm-1.js → placeholder-sm-1.cjs} +0 -0
- /package/build/public/video/{pause.js → pause.cjs} +0 -0
- /package/build/public/video/{play.js → play.cjs} +0 -0
- /package/build/public/wallets/{arkane-btn.js → arkane-btn.cjs} +0 -0
- /package/build/public/wallets/{bitski-btn.js → bitski-btn.cjs} +0 -0
- /package/build/public/wallets/{elrond-btn.js → elrond-btn.cjs} +0 -0
- /package/build/public/wallets/{elrond-icon-sm.js → elrond-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{elrond.js → elrond.cjs} +0 -0
- /package/build/public/wallets/{ethereum-icon-sm.js → ethereum-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{flow-btn.js → flow-btn.cjs} +0 -0
- /package/build/public/wallets/{flow-icon-sm.js → flow-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{formatic-btn.js → formatic-btn.cjs} +0 -0
- /package/build/public/wallets/{formatic-icon-sm.js → formatic-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{maiar-btn.js → maiar-btn.cjs} +0 -0
- /package/build/public/wallets/{maiar-icon-sm.js → maiar-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{metamask-btn.js → metamask-btn.cjs} +0 -0
- /package/build/public/wallets/{metamask-icon-sm.js → metamask-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{phantom.js → phantom.cjs} +0 -0
- /package/build/public/wallets/{plus.js → plus.cjs} +0 -0
- /package/build/public/wallets/{solana-btn.js → solana-btn.cjs} +0 -0
- /package/build/public/wallets/{solana-icon-sm.js → solana-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{terra-btn.js → terra-btn.cjs} +0 -0
- /package/build/public/wallets/{terra-icon-sm.js → terra-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{tezos-btn.js → tezos-btn.cjs} +0 -0
- /package/build/public/wallets/{tezos-icon-sm.js → tezos-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{wallet_connect.js → wallet_connect.cjs} +0 -0
- /package/build/public/wallets/{walletconnect-btn.js → walletconnect-btn.cjs} +0 -0
- /package/build/public/wallets/{walletlink-btn.js → walletlink-btn.cjs} +0 -0
- /package/build/public/wallets/{walletlink-icon-sm.js → walletlink-icon-sm.cjs} +0 -0
- /package/build/public/wallets/{xdefi-btn.js → xdefi-btn.cjs} +0 -0
- /package/build/public/wallets/{xdefi-icon-sm.js → xdefi-icon-sm.cjs} +0 -0
- /package/build/public/{warning.js → warning.cjs} +0 -0
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
8
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
9
|
-
const colors_1 = require("../../../styles/colors");
|
|
10
|
-
const typography_1 = require("../../../styles/typography");
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
3
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
4
|
+
import { TextGrayColor } from "../../../styles/colors";
|
|
5
|
+
import { MainText } from "../../../styles/typography";
|
|
11
6
|
// Styles
|
|
12
|
-
const StyledLikes =
|
|
7
|
+
const StyledLikes = styled.div `
|
|
13
8
|
display: flex;
|
|
14
9
|
align-items: end;
|
|
15
10
|
|
|
@@ -32,22 +27,22 @@ const StyledLikes = styled_components_1.default.div `
|
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
.counter {
|
|
35
|
-
${
|
|
30
|
+
${MainText};
|
|
36
31
|
font-size: 15px;
|
|
37
|
-
color: ${
|
|
32
|
+
color: ${TextGrayColor};
|
|
38
33
|
line-height: 1;
|
|
39
34
|
}
|
|
40
35
|
|
|
41
|
-
${
|
|
36
|
+
${mediaQuery.minWidthFourK} {
|
|
42
37
|
.icon {
|
|
43
|
-
width: ${
|
|
44
|
-
height: ${
|
|
45
|
-
margin-right: ${
|
|
38
|
+
width: ${adaptiveValueCalc(18)};
|
|
39
|
+
height: ${adaptiveValueCalc(18)};
|
|
40
|
+
margin-right: ${adaptiveValueCalc(5)};
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
.counter {
|
|
49
|
-
font-size: ${
|
|
44
|
+
font-size: ${adaptiveValueCalc(15)};
|
|
50
45
|
}
|
|
51
46
|
}
|
|
52
47
|
`;
|
|
53
|
-
|
|
48
|
+
export default StyledLikes;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
8
|
-
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
3
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
9
4
|
// Styles
|
|
10
|
-
const StyledMultiHead =
|
|
5
|
+
const StyledMultiHead = styled.div `
|
|
11
6
|
display: grid;
|
|
12
7
|
grid-template-columns: 1fr 1fr;
|
|
13
8
|
grid-auto-rows: 114px;
|
|
@@ -33,12 +28,12 @@ const StyledMultiHead = styled_components_1.default.div `
|
|
|
33
28
|
padding: 4px;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
${
|
|
37
|
-
grid-auto-rows: ${
|
|
38
|
-
gap: ${
|
|
39
|
-
padding: ${
|
|
40
|
-
height: ${
|
|
41
|
-
width: ${
|
|
31
|
+
${mediaQuery.minWidthFourK} {
|
|
32
|
+
grid-auto-rows: ${adaptiveValueCalc(114)};
|
|
33
|
+
gap: ${adaptiveValueCalc(8)};
|
|
34
|
+
padding: ${adaptiveValueCalc(8)};
|
|
35
|
+
height: ${adaptiveValueCalc(252)};
|
|
36
|
+
width: ${adaptiveValueCalc(252)};
|
|
42
37
|
}
|
|
43
38
|
`;
|
|
44
|
-
|
|
39
|
+
export default StyledMultiHead;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
-
const StyledVideo = styled_components_1.default.video `
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
const StyledVideo = styled.video `
|
|
8
3
|
display: block;
|
|
9
4
|
width: 100%;
|
|
10
5
|
height: 100%;
|
|
@@ -12,4 +7,4 @@ const StyledVideo = styled_components_1.default.video `
|
|
|
12
7
|
border-top-left-radius: 6px;
|
|
13
8
|
border-top-right-radius: 6px;
|
|
14
9
|
`;
|
|
15
|
-
|
|
10
|
+
export default StyledVideo;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const animations_1 = require("../../../../styles/animations");
|
|
10
|
-
const colors_1 = require("../../../../styles/colors");
|
|
11
|
-
const vars_1 = require("../../../../fonts/vars");
|
|
12
|
-
const refresh_svg_1 = __importDefault(require("../../../../public/error/refresh"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { rotateReverse } from "../../../../styles/animations";
|
|
5
|
+
import { TextGrayColor } from "../../../../styles/colors";
|
|
6
|
+
import { poppinsFontVarCss } from "../../../../fonts/vars";
|
|
7
|
+
import CardRefreshIcon from "../../../../public/error/refresh";
|
|
13
8
|
// Styles
|
|
14
|
-
const StyledCardsError =
|
|
9
|
+
const StyledCardsError = styled.div `
|
|
15
10
|
padding-top: 24px;
|
|
16
11
|
display: flex;
|
|
17
12
|
align-items: center;
|
|
@@ -21,14 +16,14 @@ const StyledCardsError = styled_components_1.default.div `
|
|
|
21
16
|
.icon {
|
|
22
17
|
margin-bottom: 24px;
|
|
23
18
|
cursor: pointer;
|
|
24
|
-
animation: ${
|
|
19
|
+
animation: ${rotateReverse} 2s infinite linear;
|
|
25
20
|
}
|
|
26
21
|
.text {
|
|
27
22
|
max-width: 308px;
|
|
28
23
|
text-align: center;
|
|
29
|
-
color: ${
|
|
24
|
+
color: ${TextGrayColor};
|
|
30
25
|
user-select: none;
|
|
31
|
-
font-family: ${
|
|
26
|
+
font-family: ${poppinsFontVarCss.css};
|
|
32
27
|
font-size: 18px;
|
|
33
28
|
font-weight: 600;
|
|
34
29
|
line-height: 26px;
|
|
@@ -36,13 +31,13 @@ const StyledCardsError = styled_components_1.default.div `
|
|
|
36
31
|
`;
|
|
37
32
|
// Component
|
|
38
33
|
const CardsError = ({ refetch }) => {
|
|
39
|
-
const [isAnimated, setIsAnimated] =
|
|
34
|
+
const [isAnimated, setIsAnimated] = useState(false);
|
|
40
35
|
const handleAnimation = async () => {
|
|
41
36
|
setIsAnimated(true);
|
|
42
37
|
await refetch();
|
|
43
38
|
setIsAnimated(false);
|
|
44
39
|
};
|
|
45
|
-
return ((
|
|
40
|
+
return (_jsxs(StyledCardsError, { children: [_jsx(CardRefreshIcon, { className: 'icon', onClick: handleAnimation }), !isAnimated && (_jsx("h2", { className: 'text', children: "Whoops! Something went wrong. Let's try to refresh it!" }))] }));
|
|
46
41
|
};
|
|
47
42
|
// Export
|
|
48
|
-
|
|
43
|
+
export default CardsError;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
const colors_1 = require("../../../../styles/colors");
|
|
9
|
-
const typography_1 = require("../../../../styles/typography");
|
|
10
|
-
const no_found_svg_1 = __importDefault(require("../../../../public/search/no_found"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { TextGrayColor } from "../../../../styles/colors";
|
|
4
|
+
import { FH3 } from "../../../../styles/typography";
|
|
5
|
+
import NoFoundIcon from "../../../../public/search/no_found";
|
|
11
6
|
// Styles
|
|
12
|
-
const StyledNoResults =
|
|
7
|
+
const StyledNoResults = styled.div `
|
|
13
8
|
user-select: none;
|
|
14
9
|
padding-top: 60px;
|
|
15
10
|
display: flex;
|
|
@@ -22,13 +17,13 @@ const StyledNoResults = styled_components_1.default.div `
|
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
.text {
|
|
25
|
-
${
|
|
26
|
-
color: ${
|
|
20
|
+
${FH3};
|
|
21
|
+
color: ${TextGrayColor};
|
|
27
22
|
}
|
|
28
23
|
`;
|
|
29
24
|
// Component
|
|
30
25
|
const CardsNoResults = ({ noFoundText }) => {
|
|
31
|
-
return ((
|
|
26
|
+
return (_jsxs(StyledNoResults, { children: [_jsx(NoFoundIcon, { className: 'icon' }), _jsx("p", { className: 'text', children: noFoundText })] }));
|
|
32
27
|
};
|
|
33
28
|
// Export
|
|
34
|
-
|
|
29
|
+
export default CardsNoResults;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
9
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
11
|
-
const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
|
|
12
|
-
const Head_1 = __importDefault(require("../../../Cards/Styles/Head"));
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Skeleton from 'react-loading-skeleton';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
5
|
+
import { mediaQuery } from "../../../../styles/ScreenWidth";
|
|
6
|
+
import StyledCardHead from "../../../Cards/Styles/Head";
|
|
13
7
|
// Styles
|
|
14
|
-
const StyledCardSkeleton =
|
|
8
|
+
const StyledCardSkeleton = styled.div `
|
|
15
9
|
.content {
|
|
16
10
|
display: flex;
|
|
17
11
|
flex-direction: column;
|
|
@@ -23,22 +17,22 @@ const StyledCardSkeleton = styled_components_1.default.div `
|
|
|
23
17
|
justify-content: space-between;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
${
|
|
20
|
+
${mediaQuery.minWidthFourK} {
|
|
27
21
|
.content {
|
|
28
|
-
padding: ${
|
|
29
|
-
gap: ${
|
|
22
|
+
padding: ${adaptiveValueCalc(12)} 0 0 0;
|
|
23
|
+
gap: ${adaptiveValueCalc(4)};
|
|
30
24
|
|
|
31
25
|
.react-loading-skeleton {
|
|
32
|
-
height: ${
|
|
26
|
+
height: ${adaptiveValueCalc(18)} !important;
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
.footer {
|
|
36
30
|
& > *:first-child .react-loading-skeleton {
|
|
37
|
-
width: ${
|
|
31
|
+
width: ${adaptiveValueCalc(120)} !important;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
34
|
& > *:last-child .react-loading-skeleton {
|
|
41
|
-
width: ${
|
|
35
|
+
width: ${adaptiveValueCalc(30)} !important;
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
38
|
}
|
|
@@ -46,12 +40,11 @@ const StyledCardSkeleton = styled_components_1.default.div `
|
|
|
46
40
|
`;
|
|
47
41
|
const CardsSkeleton = ({ cardCount }) => {
|
|
48
42
|
const arr = Array.from(Array(cardCount).keys());
|
|
49
|
-
return ((
|
|
43
|
+
return (_jsx(_Fragment, { children: arr.map(() => (_jsx(CardSkeleton, {}, Math.random()))) }));
|
|
50
44
|
};
|
|
51
45
|
// Component
|
|
52
|
-
const CardSkeleton = () => {
|
|
53
|
-
return ((
|
|
46
|
+
export const CardSkeleton = () => {
|
|
47
|
+
return (_jsxs(StyledCardSkeleton, { children: [_jsx(StyledCardHead, { children: _jsx(Skeleton, { height: '100%', width: '100%' }) }), _jsxs("div", { className: 'content', children: [_jsx(Skeleton, { height: '18px', width: '70%' }), _jsxs("div", { className: 'footer', children: [_jsx(Skeleton, { height: '18px', width: '120px' }), _jsx(Skeleton, { height: '18px', width: '30px' })] })] })] }));
|
|
54
48
|
};
|
|
55
|
-
exports.CardSkeleton = CardSkeleton;
|
|
56
49
|
// Export
|
|
57
|
-
|
|
50
|
+
export default CardsSkeleton;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const scale_1 = require("../../../utils/adaptive/scale");
|
|
10
|
-
const screen_1 = require("../../../utils/screen");
|
|
11
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
13
|
-
const loader_svg_1 = __importDefault(require("../../../public/cardsHolderLoader/loader"));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { mediaQuery } from "../../../styles/ScreenWidth";
|
|
3
|
+
import { rotate } from "../../../styles/animations";
|
|
4
|
+
import { getAdaptiveScale } from "../../../utils/adaptive/scale";
|
|
5
|
+
import { useWindowDimensionsWithServerInitial } from "../../../utils/screen";
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { adaptiveValueCalc } from '@ludo.ninja/ui/build/utils/4k';
|
|
8
|
+
import LoaderIcon from "../../../public/cardsHolderLoader/loader";
|
|
14
9
|
// Styles
|
|
15
|
-
const StyledCardsHolderLoader =
|
|
10
|
+
const StyledCardsHolderLoader = styled.div `
|
|
16
11
|
box-sizing: border-box;
|
|
17
12
|
display: flex;
|
|
18
13
|
align-items: center;
|
|
@@ -20,11 +15,11 @@ const StyledCardsHolderLoader = styled_components_1.default.div `
|
|
|
20
15
|
padding-top: 24px;
|
|
21
16
|
|
|
22
17
|
.loader {
|
|
23
|
-
animation: ${
|
|
18
|
+
animation: ${rotate} 1s ease-in-out infinite;
|
|
24
19
|
}
|
|
25
20
|
|
|
26
|
-
${
|
|
27
|
-
padding-top: ${
|
|
21
|
+
${mediaQuery.minWidthFourK} {
|
|
22
|
+
padding-top: ${adaptiveValueCalc(24)};
|
|
28
23
|
}
|
|
29
24
|
|
|
30
25
|
/* &.virtual {
|
|
@@ -35,8 +30,8 @@ const StyledCardsHolderLoader = styled_components_1.default.div `
|
|
|
35
30
|
`;
|
|
36
31
|
// Component
|
|
37
32
|
const CardsHolderLoader = () => {
|
|
38
|
-
const { windowDimensions } =
|
|
39
|
-
return ((
|
|
33
|
+
const { windowDimensions } = useWindowDimensionsWithServerInitial();
|
|
34
|
+
return (_jsx(StyledCardsHolderLoader, { style: getAdaptiveScale({ windowDimensions, currentSize: 1 }), children: _jsx(LoaderIcon, { className: 'loader' }) }));
|
|
40
35
|
};
|
|
41
36
|
// Export
|
|
42
|
-
|
|
37
|
+
export default CardsHolderLoader;
|
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("@testing-library/react");
|
|
8
|
-
require("jest-styled-components");
|
|
9
|
-
const index_1 = __importDefault(require("./index"));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
+
import 'jest-styled-components';
|
|
4
|
+
import DropDown from './index';
|
|
10
5
|
jest.mock('@/public/dropDown/arrow_down.svg', () => 'div');
|
|
11
6
|
describe('DropDown Component', () => {
|
|
12
7
|
test('renders with caption and closed by default', () => {
|
|
13
8
|
const mockFallback = jest.fn();
|
|
14
|
-
|
|
15
|
-
const captionElement =
|
|
9
|
+
render(_jsx("div", { "data-testid": 'test_container', children: _jsx(DropDown, { caption: "Test Dropdown", fallBackOnClose: mockFallback, children: _jsx("div", { children: "Dropdown Content" }) }) }));
|
|
10
|
+
const captionElement = screen.getByText('Test Dropdown');
|
|
16
11
|
expect(captionElement).toBeInTheDocument();
|
|
17
|
-
const contentElement =
|
|
12
|
+
const contentElement = screen
|
|
18
13
|
.queryByTestId('test_container')
|
|
19
14
|
?.querySelector('.dropDownContent');
|
|
20
15
|
expect(contentElement).toHaveStyle('grid-template-rows:0fr');
|
|
21
|
-
|
|
16
|
+
fireEvent.click(captionElement);
|
|
22
17
|
expect(contentElement).toHaveStyle('grid-template-rows:1fr');
|
|
23
18
|
});
|
|
24
19
|
test('calls fallback function when closed', () => {
|
|
25
20
|
const mockFallback = jest.fn();
|
|
26
|
-
|
|
27
|
-
const captionElement =
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
render(_jsx(DropDown, { caption: "Test Dropdown", fallBackOnClose: mockFallback, children: _jsx("div", { children: "Dropdown Content" }) }));
|
|
22
|
+
const captionElement = screen.getByText('Test Dropdown');
|
|
23
|
+
fireEvent.click(captionElement);
|
|
24
|
+
fireEvent.click(captionElement);
|
|
30
25
|
expect(mockFallback).toHaveBeenCalledWith(null);
|
|
31
26
|
});
|
|
32
27
|
test('renders with active prop', () => {
|
|
33
28
|
const mockFallback = jest.fn();
|
|
34
|
-
|
|
35
|
-
const openedContentElement =
|
|
29
|
+
render(_jsx(DropDown, { caption: "Test Dropdown", fallBackOnClose: mockFallback, active: true, children: _jsx("div", { children: "Dropdown Content" }) }));
|
|
30
|
+
const openedContentElement = screen.getByText('Dropdown Content');
|
|
36
31
|
expect(openedContentElement).toBeInTheDocument();
|
|
37
32
|
});
|
|
38
33
|
});
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const colors_1 = require("../../styles/colors");
|
|
10
|
-
const arrow_down_svg_1 = __importDefault(require("../../public/dropDown/arrow_down"));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { InactiveButtonColor } from "../../styles/colors";
|
|
5
|
+
import ArrowDownIcon from "../../public/dropDown/arrow_down";
|
|
11
6
|
// Styles
|
|
12
|
-
const StyledDropDown =
|
|
13
|
-
border-bottom: 1px solid ${
|
|
7
|
+
const StyledDropDown = styled.div `
|
|
8
|
+
border-bottom: 1px solid ${InactiveButtonColor};
|
|
14
9
|
|
|
15
10
|
.dropDownTab {
|
|
16
11
|
display: flex;
|
|
@@ -49,17 +44,17 @@ const StyledDropDown = styled_components_1.default.div `
|
|
|
49
44
|
`;
|
|
50
45
|
// Component
|
|
51
46
|
const DropDown = ({ caption, children, fallBackOnClose, active, }) => {
|
|
52
|
-
const [isActive, setActive] =
|
|
53
|
-
|
|
47
|
+
const [isActive, setActive] = useState(false);
|
|
48
|
+
useEffect(() => {
|
|
54
49
|
if (active) {
|
|
55
50
|
setActive(true);
|
|
56
51
|
}
|
|
57
52
|
}, []);
|
|
58
|
-
return ((
|
|
53
|
+
return (_jsxs(StyledDropDown, { isActive: isActive, children: [_jsxs("div", { className: 'dropDownTab', onClick: () => {
|
|
59
54
|
setActive(!isActive);
|
|
60
55
|
if (!isActive)
|
|
61
56
|
fallBackOnClose(null);
|
|
62
|
-
}, children: [(
|
|
57
|
+
}, children: [_jsx("span", { className: 'dropDownTabCaption', children: caption }), _jsx(ArrowDownIcon, { className: 'dropDownTabIcon' })] }), _jsx("div", { className: 'dropDownContent', children: _jsx("div", { className: 'gridDown', children: children }) })] }));
|
|
63
58
|
};
|
|
64
59
|
// Export
|
|
65
|
-
|
|
60
|
+
export default DropDown;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findDefaultFilterValue = void 0;
|
|
4
|
-
const findDefaultFilterValue = (queryValue, selectionsArr, defaultSelectionValue) => {
|
|
1
|
+
export const findDefaultFilterValue = (queryValue, selectionsArr, defaultSelectionValue) => {
|
|
5
2
|
const findedValue = selectionsArr && selectionsArr.find((value) => queryValue === value?.id);
|
|
6
3
|
return findedValue?.id || defaultSelectionValue;
|
|
7
4
|
};
|
|
8
|
-
exports.findDefaultFilterValue = findDefaultFilterValue;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SelectNamesTypes = void 0;
|
|
4
|
-
var SelectNamesTypes;
|
|
1
|
+
export var SelectNamesTypes;
|
|
5
2
|
(function (SelectNamesTypes) {
|
|
6
3
|
SelectNamesTypes["type"] = "type";
|
|
7
4
|
SelectNamesTypes["blockchain"] = "blockchain";
|
|
8
5
|
SelectNamesTypes["category"] = "category";
|
|
9
6
|
SelectNamesTypes["status"] = "status";
|
|
10
7
|
SelectNamesTypes["time"] = "time";
|
|
11
|
-
})(SelectNamesTypes || (
|
|
8
|
+
})(SelectNamesTypes || (SelectNamesTypes = {}));
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
require("@testing-library/jest-dom/extend-expect");
|
|
8
|
-
const react_1 = require("@testing-library/react");
|
|
9
|
-
const index_1 = __importDefault(require("./index"));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
3
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
4
|
+
import CheckboxInput from "./index";
|
|
10
5
|
jest.mock('../ErrorLabel', () => ({
|
|
11
6
|
__esModule: true,
|
|
12
|
-
default: ({ children }) => ((
|
|
7
|
+
default: ({ children }) => (_jsx("div", { "data-testid": "error-label", children: children })),
|
|
13
8
|
}));
|
|
14
9
|
const mockRegister = {
|
|
15
10
|
name: 'test-checkbox',
|
|
@@ -24,7 +19,7 @@ const mockInnerTextInputRef = {
|
|
|
24
19
|
ref: jest.fn(),
|
|
25
20
|
};
|
|
26
21
|
const renderComponent = (props) => {
|
|
27
|
-
return
|
|
22
|
+
return render(_jsx(CheckboxInput, { ...props }));
|
|
28
23
|
};
|
|
29
24
|
describe('CheckboxInput Component', () => {
|
|
30
25
|
test('renders correctly with provided props', () => {
|
|
@@ -33,8 +28,8 @@ describe('CheckboxInput Component', () => {
|
|
|
33
28
|
data: { name: 'test-checkbox', placeHolder: 'Placeholder' },
|
|
34
29
|
register: mockRegister,
|
|
35
30
|
});
|
|
36
|
-
const checkboxElement =
|
|
37
|
-
const labelElement =
|
|
31
|
+
const checkboxElement = screen.getByRole('checkbox');
|
|
32
|
+
const labelElement = screen.getByText('Test Label');
|
|
38
33
|
expect(checkboxElement).toBeInTheDocument();
|
|
39
34
|
expect(labelElement).toBeInTheDocument();
|
|
40
35
|
});
|
|
@@ -46,10 +41,10 @@ describe('CheckboxInput Component', () => {
|
|
|
46
41
|
withInput: true,
|
|
47
42
|
innerTextInputRef: mockInnerTextInputRef,
|
|
48
43
|
});
|
|
49
|
-
const checkboxElement =
|
|
50
|
-
const textInputElement =
|
|
44
|
+
const checkboxElement = screen.getByRole('checkbox');
|
|
45
|
+
const textInputElement = screen.getByRole('textbox');
|
|
51
46
|
expect(textInputElement).toBeDisabled();
|
|
52
|
-
|
|
47
|
+
fireEvent.click(checkboxElement);
|
|
53
48
|
expect(textInputElement).not.toBeDisabled();
|
|
54
49
|
});
|
|
55
50
|
test('displays error message when there is an error', () => {
|
|
@@ -59,7 +54,7 @@ describe('CheckboxInput Component', () => {
|
|
|
59
54
|
register: mockRegister,
|
|
60
55
|
error: { isNeedShowError: true, message: 'Error message' },
|
|
61
56
|
});
|
|
62
|
-
const errorLabel =
|
|
57
|
+
const errorLabel = screen.getByTestId('error-label');
|
|
63
58
|
expect(errorLabel).toBeInTheDocument();
|
|
64
59
|
expect(errorLabel).toHaveTextContent('Error message');
|
|
65
60
|
});
|
|
@@ -70,7 +65,7 @@ describe('CheckboxInput Component', () => {
|
|
|
70
65
|
register: mockRegister,
|
|
71
66
|
error: { isNeedShowError: false, message: '' },
|
|
72
67
|
});
|
|
73
|
-
const errorLabel =
|
|
68
|
+
const errorLabel = screen.queryByTestId('error-label');
|
|
74
69
|
expect(errorLabel).toBeNull();
|
|
75
70
|
});
|
|
76
71
|
});
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const colors_1 = require("../../../styles/colors");
|
|
10
|
-
const ErrorLabel_1 = __importDefault(require("../ErrorLabel"));
|
|
11
|
-
const Input_1 = require("../Input");
|
|
12
|
-
const BasicCheckbox = styled_components_1.default.label `
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { AccentColor, BorderColorLight, TextGrayColor, WhiteColor, } from "../../../styles/colors";
|
|
5
|
+
import BasicErrorLabel from "../ErrorLabel";
|
|
6
|
+
import { StyledInput } from "../Input";
|
|
7
|
+
const BasicCheckbox = styled.label `
|
|
13
8
|
display: flex;
|
|
14
9
|
align-items: center;
|
|
15
10
|
gap: 6px;
|
|
@@ -18,7 +13,7 @@ const BasicCheckbox = styled_components_1.default.label `
|
|
|
18
13
|
margin: 14px 0;
|
|
19
14
|
font-size: 15px;
|
|
20
15
|
font-weight: 400;
|
|
21
|
-
color: ${
|
|
16
|
+
color: ${TextGrayColor};
|
|
22
17
|
width: 100%;
|
|
23
18
|
position: relative;
|
|
24
19
|
cursor: pointer;
|
|
@@ -31,7 +26,7 @@ const BasicCheckbox = styled_components_1.default.label `
|
|
|
31
26
|
width: 0;
|
|
32
27
|
|
|
33
28
|
&:checked ~ .checkmark {
|
|
34
|
-
background-color: ${
|
|
29
|
+
background-color: ${AccentColor};
|
|
35
30
|
background-image: url('/checkboxArrow.svg');
|
|
36
31
|
background-position: center;
|
|
37
32
|
background-repeat: no-repeat;
|
|
@@ -44,21 +39,21 @@ const BasicCheckbox = styled_components_1.default.label `
|
|
|
44
39
|
left: 0;
|
|
45
40
|
height: 18px;
|
|
46
41
|
width: 18px;
|
|
47
|
-
background-color: ${
|
|
48
|
-
border: 2px solid ${
|
|
42
|
+
background-color: ${WhiteColor};
|
|
43
|
+
border: 2px solid ${BorderColorLight};
|
|
49
44
|
border-radius: 6px;
|
|
50
45
|
}
|
|
51
46
|
`;
|
|
52
47
|
const CheckboxInput = ({ data, label, register, error, className, value, withInput, innerTextInputRef, }) => {
|
|
53
|
-
const [textInputDisabled, setTextInputDisables] =
|
|
48
|
+
const [textInputDisabled, setTextInputDisables] = useState(true);
|
|
54
49
|
const renderError = () => {
|
|
55
50
|
if (error?.isNeedShowError) {
|
|
56
|
-
return (
|
|
51
|
+
return _jsx(BasicErrorLabel, { children: error?.message });
|
|
57
52
|
}
|
|
58
53
|
};
|
|
59
|
-
return ((
|
|
54
|
+
return (_jsxs(_Fragment, { children: [_jsx(_Fragment, { children: _jsxs(BasicCheckbox, { className: className, status: error?.isNeedShowError, children: [_jsx("input", { ...register, onChange: (e) => {
|
|
60
55
|
setTextInputDisables(!e.target.checked);
|
|
61
56
|
register.onChange(e);
|
|
62
|
-
}, className: "input", type: "checkbox", name: data.name, value: value }), (
|
|
57
|
+
}, className: "input", type: "checkbox", name: data.name, value: value }), _jsx("p", { className: "checkmark" }), label, withInput && (_jsx(StyledInput, { status: false, ...innerTextInputRef, disabled: textInputDisabled }))] }) }), renderError()] }));
|
|
63
58
|
};
|
|
64
|
-
|
|
59
|
+
export default CheckboxInput;
|