@ludo.ninja/components 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CreationCard/{CardHead.js → CardHead.jsx} +27 -20
- package/dist/components/CreationCard/index.d.ts +1 -1
- package/dist/components/CreationCard/{index.js → index.jsx} +22 -27
- package/dist/components/addWalletsRedirectPage/{index.js → index.jsx} +18 -11
- package/dist/components/banner/{index.js → index.jsx} +23 -17
- package/dist/components/base/Meta/index.jsx +64 -0
- package/dist/components/base/NoSSR/{index.js → index.jsx} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.js → index.jsx} +9 -5
- package/dist/components/deleteDialog/{index.js → index.jsx} +23 -18
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.js → index.jsx} +5 -3
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.js → index.jsx} +4 -2
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.js → index.jsx} +5 -3
- package/dist/components/filters/applyResetBtns/{index.js → index.jsx} +8 -5
- package/dist/components/filters/galleriesFiltersForm/{index.js → index.jsx} +14 -5
- package/dist/components/filters/{index.js → index.jsx} +37 -29
- package/dist/components/filters/mobileFilters/{index.js → index.jsx} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.js → index.jsx} +11 -4
- package/dist/components/forms/form/{index.js → index.jsx} +46 -36
- package/dist/components/forms/formsNavigation/{index.js → index.jsx} +15 -7
- package/dist/components/forms/formsTemplate/{index.js → index.jsx} +7 -6
- package/dist/components/gallery/add/addAssetToGallery/{index.js → index.jsx} +5 -3
- package/dist/components/gallery/add/addCreationToGallery/{index.js → index.jsx} +9 -8
- package/dist/components/gradientLabel/{index.js → index.jsx} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.js → index.jsx} +6 -5
- package/dist/components/headers/components/headerUserPic/{index.js → index.jsx} +5 -4
- package/dist/components/headers/header/{index.js → index.jsx} +7 -7
- package/dist/components/headers/headerSearch/{index.js → index.jsx} +8 -8
- package/dist/components/headers/headerSimple/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.js → index.jsx} +27 -17
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.js → index.jsx} +22 -11
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.js → index.jsx} +4 -3
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.js → index.jsx} +7 -6
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.js → index.jsx} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.js → index.jsx} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.js → index.jsx} +9 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.js → index.jsx} +3 -1
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.js → index.jsx} +30 -20
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +18 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.js → index.jsx} +6 -4
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.js → index.jsx} +9 -6
- package/dist/components/linkTabs/{index.js → index.jsx} +4 -2
- package/dist/components/linkTabs/linkTab/{index.js → index.jsx} +8 -6
- package/dist/components/myWallets/{index.js → index.jsx} +5 -4
- package/dist/components/myWallets/myWalletItem/{index.js → index.jsx} +30 -23
- package/dist/components/navigation/{index.js → index.jsx} +30 -12
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.js → MultiversXAudit.jsx} +18 -13
- package/dist/components/profile/{ProfileTabs.js → ProfileTabs.jsx} +22 -20
- package/dist/components/profile/aboutText/{index.js → index.jsx} +31 -22
- package/dist/components/profile/addToGalleryBtns/{index.js → index.jsx} +13 -10
- package/dist/components/profile/followersSocial/followers/{index.js → index.jsx} +4 -3
- package/dist/components/profile/followersSocial/{index.js → index.jsx} +7 -6
- package/dist/components/profile/followersSocial/social/{index.js → index.jsx} +9 -7
- package/dist/components/profile/index.d.ts +1 -1
- package/dist/components/profile/index.js +1 -1
- package/dist/components/profile/info/{index.js → index.jsx} +12 -9
- package/dist/components/profile/interests/{index.js → index.jsx} +30 -15
- package/dist/components/profile/pageHead/index.jsx +52 -0
- package/dist/components/profile/profileSkeleton/{index.js → index.jsx} +16 -10
- package/dist/components/profile/profileUserCards/{index.js → index.jsx} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.js → index.jsx} +27 -22
- package/dist/components/profile/rank/{index.js → index.jsx} +16 -8
- package/dist/components/profile/stats/{index.js → index.jsx} +13 -5
- package/dist/components/profile/wallets/{index.js → index.jsx} +30 -22
- package/dist/components/profile/wrapper/{index.js → index.jsx} +12 -4
- package/dist/components/registrationPage/registrationSelectBox/{index.js → index.jsx} +3 -2
- package/dist/components/registrationPage/registrationSelection/{index.js → index.jsx} +30 -16
- package/dist/components/rewards/FAQ/{index.js → index.jsx} +21 -13
- package/dist/components/rewards/clarifications/{index.js → index.jsx} +26 -16
- package/dist/components/rewards/logoBottom/{index.js → index.jsx} +7 -6
- package/dist/components/rewards/prograssBar/{index.js → index.jsx} +6 -4
- package/dist/components/rewards/rewardsButton/{index.js → index.jsx} +1 -1
- package/dist/components/rewards/seasonBanner/{index.js → index.jsx} +4 -3
- package/dist/components/rewards/taskExpTab/{index.js → index.jsx} +32 -20
- package/dist/components/rewards/tasksGrid/{index.js → index.jsx} +7 -4
- package/dist/components/rewards/userExp/{index.js → index.jsx} +30 -24
- package/dist/components/search/{SearchInputContainer.js → SearchInputContainer.jsx} +100 -98
- package/dist/components/search/{index.js → index.jsx} +13 -11
- package/dist/components/search/searchCategories/{index.js → index.jsx} +10 -6
- package/dist/components/search/searchCloseMoreButtons/{index.js → index.jsx} +16 -13
- package/dist/components/search/searchResultCaption/{index.js → index.jsx} +7 -4
- package/dist/components/search/searchSelectsGalleries/{index.js → index.jsx} +31 -15
- package/dist/components/search/searchSelectsSets/{index.js → index.jsx} +28 -15
- package/dist/components/search/searchSimpleInput/{index.js → index.jsx} +12 -10
- package/dist/components/search/searchSuggestions/index.jsx +124 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.js → index.jsx} +5 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.js → index.jsx} +8 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.js → index.jsx} +19 -12
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.js → index.jsx} +15 -8
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.js → index.jsx} +4 -6
- package/dist/components/shareDialog/index.jsx +91 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.js → index.jsx} +6 -4
- package/dist/components/sidebar/{data.js → data.jsx} +8 -8
- package/dist/components/sidebar/{index.js → index.jsx} +33 -26
- package/dist/components/sidebar/{initializer.js → initializer.jsx} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.js → index.jsx} +9 -6
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.js → index.jsx} +5 -4
- package/dist/components/socialButtons/{data.js → data.jsx} +6 -6
- package/dist/components/socialButtons/icons/discord.jsx +8 -0
- package/dist/components/socialButtons/icons/facebook.jsx +9 -0
- package/dist/components/socialButtons/icons/instagram.jsx +10 -0
- package/dist/components/socialButtons/icons/medium.jsx +8 -0
- package/dist/components/socialButtons/icons/telegram.jsx +8 -0
- package/dist/components/socialButtons/icons/twitter.jsx +8 -0
- package/dist/components/socialButtons/{index.js → index.jsx} +8 -5
- package/dist/components/tabs/icons/bell.jsx +10 -0
- package/dist/components/tabs/icons/profile.jsx +10 -0
- package/dist/components/tabs/icons/secure.jsx +9 -0
- package/dist/components/tabs/{index.js → index.jsx} +13 -10
- package/dist/components/toTopBtn/{index.js → index.jsx} +9 -7
- package/dist/dto/AssetEntity/views/AssetAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.js → index.jsx} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.js → index.jsx} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.js → index.jsx} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.js → index.jsx} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.js → index.jsx} +1 -1
- package/dist/dto/common/Media/Audio/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Image/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Object/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Other/{index.js → index.jsx} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.js → index.jsx} +4 -4
- package/dist/dto/common/Media/Video/{index.js → index.jsx} +3 -3
- package/dist/fonts/{FontsInitializeLayout.js → FontsInitializeLayout.jsx} +4 -1
- package/dist/hooks/apollo/index.d.ts +1 -4
- package/dist/hooks/apollo/{index.js → index.jsx} +1 -1
- package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.js → useFindCollectionsAndLikes.jsx} +1 -1
- package/dist/hooks/searchFiltersConnector/{index.js → index.jsx} +35 -33
- package/dist/hooks/useToGalleryAsset/{index.js → index.jsx} +1 -1
- package/dist/layouts/GlobalLayout.jsx +49 -0
- package/dist/layouts/base/LWithRegularHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSearchHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithSimpleHeader/{index.js → index.jsx} +5 -4
- package/dist/layouts/base/LWithoutHeader/{index.js → index.jsx} +4 -3
- package/dist/layouts/custom/accountLayout/index.d.ts +1 -1
- package/dist/layouts/custom/accountLayout/index.jsx +28 -0
- package/dist/layouts/custom/formsLayout/index.d.ts +1 -1
- package/dist/layouts/custom/formsLayout/{index.js → index.jsx} +8 -6
- package/dist/layouts/custom/mainLayout/index.d.ts +1 -1
- package/dist/layouts/custom/mainLayout/{index.js → index.jsx} +12 -9
- package/dist/layouts/custom/searchLayout/index.d.ts +1 -1
- package/dist/layouts/custom/searchLayout/{index.js → index.jsx} +11 -8
- package/dist/layouts/custom/simpleLayout/index.d.ts +1 -1
- package/dist/layouts/custom/simpleLayout/{index.js → index.jsx} +12 -9
- package/dist/layouts/custom/styles.js +1 -1
- package/dist/layouts/pageTransitionLayout.jsx +27 -0
- package/dist/modules/notifications/{CreatorNotifications.js → CreatorNotifications.jsx} +4 -2
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +2 -2
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.js +1 -1
- package/dist/modules/user/profileData/{profileDataInitialization.js → profileDataInitialization.jsx} +3 -3
- package/dist/modules/virtuoso/VirtuosoPageBuilder.d.ts +2 -2
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.js → VirtuosoPageBuilder.jsx} +27 -22
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.js → VirtuosoToTopBtn.jsx} +2 -2
- package/dist/pages/index.jsx +18 -0
- package/dist/store/ui/index.js +1 -1
- package/dist/store/ui/utils.d.ts +1 -1
- package/dist/system/ActiveLink/{index.js → index.jsx} +5 -14
- package/dist/system/Alert/{index.js → index.jsx} +2 -2
- package/dist/system/BasicOverlay/{index.js → index.jsx} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.js → index.jsx} +7 -5
- package/dist/system/Cards/CardContent/CardCategory/{index.js → index.jsx} +6 -4
- package/dist/system/Cards/CardContent/CardLikes/{index.js → index.jsx} +11 -7
- package/dist/system/Cards/CardContent/CardShowMore/{index.js → index.jsx} +11 -8
- package/dist/system/Cards/CardContent/{index.js → index.jsx} +31 -17
- package/dist/system/Cards/CardHeadIcons/{index.js → index.jsx} +25 -18
- package/dist/system/Cards/CardMedia/CardAudio/{index.js → index.jsx} +8 -7
- package/dist/system/Cards/CardMedia/CardImage/{index.js → index.jsx} +5 -4
- package/dist/system/Cards/CardMedia/CardVideo/{index.js → index.jsx} +11 -9
- package/dist/system/Cards/CardRank/{index.js → index.jsx} +13 -7
- package/dist/system/Cards/CardsGrid/{index.js → index.jsx} +14 -9
- package/dist/system/Cards/HideLink/index.jsx +22 -0
- package/dist/system/Cards/MultiMediaCard/{index.js → index.jsx} +18 -12
- package/dist/system/Cards/RegularCard/{index.js → index.jsx} +18 -12
- package/dist/system/Cards/Styles/Head.js +1 -1
- package/dist/system/Cards/Styles/Headicons.js +1 -1
- package/dist/system/Cards/Styles/Image.js +1 -1
- package/dist/system/Cards/Styles/Likes.js +2 -2
- package/dist/system/Cards/Styles/MultiHead.js +1 -1
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.js → index.jsx} +6 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.js → index.jsx} +4 -3
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.js → index.jsx} +17 -11
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.js → index.jsx} +9 -5
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.js → index.jsx} +5 -4
- package/dist/system/CardsHolderWithSkeleton/{index.js → index.jsx} +6 -3
- package/dist/system/DropDown/{DropDown.test.js → DropDown.test.jsx} +11 -7
- package/dist/system/DropDown/{index.js → index.jsx} +13 -10
- package/dist/system/Forms/Checkbox/{Checkbox.test.js → Checkbox.test.jsx} +2 -13
- package/dist/system/Forms/Checkbox/{index.js → index.jsx} +15 -23
- package/dist/system/Forms/DatePicker/{index.js → index.jsx} +8 -7
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.js → ErrorLabel.test.jsx} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.js → index.jsx} +2 -2
- package/dist/system/Forms/Input/{Input.test.js → Input.test.jsx} +2 -2
- package/dist/system/Forms/Input/{index.js → index.jsx} +6 -16
- package/dist/system/Forms/RadioInput/{index.js → index.jsx} +6 -16
- package/dist/system/Forms/Selects/DesktopSelect/{index.js → index.jsx} +15 -25
- package/dist/system/Forms/Selects/MobileSelect/{index.js → index.jsx} +3 -1
- package/dist/system/Forms/TextArea/{index.js → index.jsx} +6 -16
- package/dist/system/Img/ExternalImage/{index.js → index.jsx} +1 -12
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.js → ImageInterceptor.test.jsx} +14 -10
- package/dist/system/Img/ImageInterceptor/{index.js → index.jsx} +5 -4
- package/dist/system/Img/Profilepic/{index.js → index.jsx} +9 -8
- package/dist/system/Img/Userpic/{UserPic.test.js → UserPic.test.jsx} +8 -6
- package/dist/system/Img/Userpic/{index.js → index.jsx} +16 -13
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.js → ExperienceLabel.test.jsx} +6 -16
- package/dist/system/Labels/ExperienceLabel/{index.js → index.jsx} +7 -8
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.js → InviteLabel.test.jsx} +5 -15
- package/dist/system/Labels/InviteLabel/{index.js → index.jsx} +4 -3
- package/dist/system/Modals/Modal/{Modal.test.js → Modal.test.jsx} +5 -5
- package/dist/system/Modals/Modal/{index.js → index.jsx} +6 -5
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.js → CreatorModalSidebarPortal.jsx} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.js → ModalSidebar.test.jsx} +4 -4
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.js → ModalSidebarPortal.jsx} +6 -4
- package/dist/system/Modals/ModalSidebar/{index.js → index.jsx} +6 -5
- package/dist/system/Overlay/{Overlay.test.js → Overlay.test.jsx} +5 -4
- package/dist/system/Overlay/{index.js → index.jsx} +4 -3
- package/dist/system/{ShareIconResize.js → ShareIconResize.jsx} +8 -7
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.js → TabNavLink.test.jsx} +3 -3
- package/dist/system/Tabs/TabNavLink/index.d.ts +1 -1
- package/dist/system/Tabs/TabNavLink/{index.js → index.jsx} +6 -4
- package/dist/system/Tabs/TabsNav/{TabsNav.test.js → TabsNav.test.jsx} +4 -4
- package/dist/system/Tabs/TabsNav/{index.js → index.jsx} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.js → TabsPanel.test.jsx} +12 -8
- package/dist/system/Tabs/TabsPanel/{index.js → index.jsx} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/adaptive/check4k.js +1 -1
- package/dist/utils/adaptive/scale.d.ts +1 -1
- package/dist/utils/adaptive/scale.js +1 -1
- package/dist/utils/copyBtn/{index.js → index.jsx} +7 -4
- package/package.json +2 -2
- package/dist/components/base/Meta/index.js +0 -60
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +0 -17
- package/dist/components/profile/pageHead/index.js +0 -51
- package/dist/components/search/searchSuggestions/index.js +0 -117
- package/dist/components/shareDialog/index.js +0 -73
- package/dist/components/socialButtons/icons/discord.js +0 -7
- package/dist/components/socialButtons/icons/facebook.js +0 -8
- package/dist/components/socialButtons/icons/instagram.js +0 -9
- package/dist/components/socialButtons/icons/medium.js +0 -7
- package/dist/components/socialButtons/icons/telegram.js +0 -7
- package/dist/components/socialButtons/icons/twitter.js +0 -7
- package/dist/components/tabs/icons/bell.js +0 -9
- package/dist/components/tabs/icons/profile.js +0 -9
- package/dist/components/tabs/icons/secure.js +0 -8
- package/dist/layouts/GlobalLayout.js +0 -48
- package/dist/layouts/custom/accountLayout/index.js +0 -23
- package/dist/layouts/pageTransitionLayout.js +0 -24
- package/dist/pages/index.js +0 -16
- package/dist/system/Cards/HideLink/index.js +0 -27
- /package/dist/components/headers/components/MobileToggle/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.js → index.jsx} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.js → index.jsx} +0 -0
- /package/dist/components/profile/jsonLd/{index.js → index.jsx} +0 -0
- /package/dist/components/registrationPage/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/ItemType/{index.js → index.jsx} +0 -0
- /package/dist/dto/common/Media/{index.js → index.jsx} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.js → index.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.js → useFindCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.js → useGetCollectionInfoAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.js → useGetCreationsAndLikes.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.js → useGetCreationsAndLikesByType.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.js → useGetMixedLikesFavoriteList.jsx} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.js → useGetTableLikes.jsx} +0 -0
- /package/dist/modules/notifications/{index.js → index.jsx} +0 -0
- /package/dist/modules/user/{store.js → store.jsx} +0 -0
- /package/dist/styles/animations/{index.js → index.jsx} +0 -0
- /package/dist/styles/{globalStyles.js → globalStyles.jsx} +0 -0
- /package/dist/styles/mixins/{boxShadow.js → boxShadow.jsx} +0 -0
- /package/dist/styles/mixins/{boxTransform.js → boxTransform.jsx} +0 -0
- /package/dist/styles/mixins/{z-indexes.js → z-indexes.jsx} +0 -0
- /package/dist/styles/typography/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/MainButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.js → index.jsx} +0 -0
- /package/dist/system/Flex/{index.js → index.jsx} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.js → index.jsx} +0 -0
- /package/dist/system/PageLoader/{index.js → index.jsx} +0 -0
- /package/dist/system/Palete/{index.js → index.jsx} +0 -0
- /package/dist/system/Text/{index.js → index.jsx} +0 -0
- /package/dist/utils/extractItemIds/{index.js → index.jsx} +0 -0
- /package/dist/utils/imageProportionsSize/{index.js → index.jsx} +0 -0
- /package/dist/utils/ui/{index.js → index.jsx} +0 -0
|
@@ -44,8 +44,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
44
44
|
var react_1 = __importStar(require("react"));
|
|
45
45
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
46
46
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
47
|
-
var store_1 = require("@ludo.ninja/components/
|
|
48
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
47
|
+
var store_1 = require("@ludo.ninja/components/dist/store");
|
|
48
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
49
49
|
var applyResetBtns_1 = __importDefault(require("@/components/filters/applyResetBtns"));
|
|
50
50
|
var mobileFilters_1 = __importDefault(require("@/components/filters/mobileFilters"));
|
|
51
51
|
var sidebarFilters_1 = __importDefault(require("@/components/sidebar/sidebarFilters"));
|
|
@@ -78,33 +78,41 @@ var Filters = function (_a) {
|
|
|
78
78
|
closeOverlay();
|
|
79
79
|
setSidebarOpen(false);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
82
|
-
|
|
83
|
-
selectData.map(function (select) { return (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
81
|
+
return (<StyledFilters>
|
|
82
|
+
{!isMobile &&
|
|
83
|
+
selectData.map(function (select) { return (<div key={select.id} className={"select ".concat(select.data.selectName)}>
|
|
84
|
+
<DesktopSelect_1.default defaultOptionValue={filterInput[select.data.selectName]} options={select.data.selectOptions} isLoading={false} onChangeHandler={filterInputHandler} name={select.data.selectName}/>
|
|
85
|
+
</div>); })}
|
|
86
|
+
{isMobile && (<>
|
|
87
|
+
<div className={'filterButton'}>
|
|
88
|
+
<button onClick={function (e) {
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
openOverLay();
|
|
92
|
+
setSidebarOpen(true);
|
|
93
|
+
}}>
|
|
94
|
+
Filters
|
|
95
|
+
{selectedFiltersCount ? (<span className={'counter'}>{selectedFiltersCount}</span>) : null}
|
|
96
|
+
</button>
|
|
97
|
+
</div>
|
|
98
|
+
<sidebarFilters_1.default isOpen={isSideBarOpen} handleClose={function () {
|
|
99
|
+
setMobileFilterInput(filterInput);
|
|
100
|
+
closeFiltersMobile();
|
|
101
|
+
}}>
|
|
102
|
+
<mobileFilters_1.default>
|
|
103
|
+
{selectData.map(function (select) { return (<MobileSelect_1.default key={select.id} defaultOptionValue={mobileFilterInput[select.data
|
|
104
|
+
.selectName]} options={select.data.selectOptions} name={select.data.selectName} onChangeHandler={handleMobileFilters}/>); })}
|
|
105
|
+
</mobileFilters_1.default>
|
|
106
|
+
<applyResetBtns_1.default onReset={function () {
|
|
107
|
+
handleResetFilter();
|
|
108
|
+
closeFiltersMobile();
|
|
109
|
+
}} onApply={function () {
|
|
110
|
+
handleMobileFilterInput(mobileFilterInput);
|
|
111
|
+
closeFiltersMobile();
|
|
112
|
+
}}/>
|
|
113
|
+
</sidebarFilters_1.default>
|
|
114
|
+
</>)}
|
|
115
|
+
</StyledFilters>);
|
|
108
116
|
};
|
|
109
117
|
// Export
|
|
110
118
|
exports.default = Filters;
|
|
@@ -14,7 +14,7 @@ var StyledMobileFilters = styled_components_1.default.div(templateObject_1 || (t
|
|
|
14
14
|
// Component
|
|
15
15
|
var MobileFilters = function (_a) {
|
|
16
16
|
var children = _a.children;
|
|
17
|
-
return
|
|
17
|
+
return <StyledMobileFilters>{children}</StyledMobileFilters>;
|
|
18
18
|
};
|
|
19
19
|
// Export
|
|
20
20
|
exports.default = MobileFilters;
|
|
@@ -72,10 +72,17 @@ var SetsFiltersForm = function (_a) {
|
|
|
72
72
|
var handleChangeBlockchainTimeResult = function (value) {
|
|
73
73
|
setSelectedBlockchainTimeResult(value);
|
|
74
74
|
};
|
|
75
|
-
return (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
return (<StyledSetsFiltersForm>
|
|
76
|
+
<DropDown_1.default caption={'Type'} fallBackOnClose={handleChangeSearchResult}>
|
|
77
|
+
{selectTypeSearchResult.map(function (select) { return (<RadioInput_1.default key={select.id} radioLabel={select.label} radioValue={select.id} handleChange={handleChangeSearchResult} radioChecked={selectedSearchResult === select.id}/>); })}
|
|
78
|
+
</DropDown_1.default>
|
|
79
|
+
<DropDown_1.default caption={'Category'} fallBackOnClose={handleChangeBlockchainCategoryResult}>
|
|
80
|
+
{selectBlockchainCategoryResult.map(function (select) { return (<RadioInput_1.default key={select.id} radioLabel={select.label} radioValue={select.id} handleChange={handleChangeBlockchainCategoryResult} radioChecked={selectedSearchResult === select.id}/>); })}
|
|
81
|
+
</DropDown_1.default>
|
|
82
|
+
<DropDown_1.default caption={'Time'} fallBackOnClose={handleChangeBlockchainTimeResult}>
|
|
83
|
+
{selectBlockchainTimeResult.map(function (select) { return (<RadioInput_1.default key={select.id} radioLabel={select.label} radioValue={select.id} handleChange={handleChangeBlockchainTimeResult} radioChecked={selectedSearchResult === select.id}/>); })}
|
|
84
|
+
</DropDown_1.default>
|
|
85
|
+
</StyledSetsFiltersForm>);
|
|
79
86
|
};
|
|
80
87
|
// Export
|
|
81
88
|
exports.default = SetsFiltersForm;
|
|
@@ -47,7 +47,7 @@ var react_hook_form_1 = require("react-hook-form");
|
|
|
47
47
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
48
48
|
var colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
49
49
|
var Text_1 = require("@ludo.ninja/ui/build/system/Text");
|
|
50
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
50
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
51
51
|
var MainButton_1 = __importDefault(require("@/system/Buttons/MainButton"));
|
|
52
52
|
var Forms_1 = require("@/system/Forms");
|
|
53
53
|
var DatePicker_1 = __importDefault(require("@/system/Forms/DatePicker"));
|
|
@@ -90,47 +90,57 @@ var Form = function (_a) {
|
|
|
90
90
|
var registerProp = register(inputProps.name, inputProps.validations);
|
|
91
91
|
switch (inputProps.type) {
|
|
92
92
|
case 'textArea':
|
|
93
|
-
return (
|
|
93
|
+
return (<Forms_1.BasicTextArea register={registerProp} error={errorProp} data={dataProp} isNeedBiggerArea={false}/>);
|
|
94
94
|
case 'checkbox':
|
|
95
|
-
return (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
return (<>
|
|
96
|
+
{(_a = inputProps.options) === null || _a === void 0 ? void 0 : _a.map(function (option) {
|
|
97
|
+
var isCheckboxWithInput = option.value === 'other';
|
|
98
|
+
var registerTextInput = isCheckboxWithInput
|
|
99
|
+
? register("".concat(inputProps.name, "-other-checkbox"))
|
|
100
|
+
: undefined;
|
|
101
|
+
return (<Forms_1.CheckboxInput key={option.value} register={registerProp} error={errorProp} data={dataProp} label={option.desc} value={option.value} withInput={isCheckboxWithInput} innerTextInputRef={registerTextInput}/>);
|
|
102
|
+
})}
|
|
103
|
+
</>);
|
|
102
104
|
case 'radio':
|
|
103
|
-
return (
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
return (<>
|
|
106
|
+
{(_b = inputProps.options) === null || _b === void 0 ? void 0 : _b.map(function (option) {
|
|
107
|
+
var isRadioWithInput = option.value === 'other';
|
|
108
|
+
var registerTextInput = isRadioWithInput
|
|
109
|
+
? register("".concat(inputProps.name, "-other-radio"))
|
|
110
|
+
: undefined;
|
|
111
|
+
return (<react_hook_form_1.Controller key={option.desc} name={inputProps.name} control={control} render={function (_a) {
|
|
112
|
+
var field = _a.field;
|
|
113
|
+
return (<RadioInput key={option.value} radioLabel={option.desc} radioValue={option.value} handleChange={field.onChange} radioChecked={field.value === option.value} withInput={isRadioWithInput} innerTextInputRef={registerTextInput} setFocus={setFocus}/>);
|
|
114
|
+
}}/>);
|
|
115
|
+
})}
|
|
116
|
+
</>);
|
|
113
117
|
case 'date':
|
|
114
|
-
return (
|
|
118
|
+
return (<DatePicker_1.default register={registerProp} error={errorProp} control={control} name={inputProps.name}/>);
|
|
115
119
|
default:
|
|
116
|
-
return (
|
|
120
|
+
return (<Forms_1.Input register={registerProp} error={errorProp} data={dataProp}/>);
|
|
117
121
|
}
|
|
118
122
|
};
|
|
119
|
-
return (
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
123
|
+
return (<Wrapper>
|
|
124
|
+
<FormWrapper onSubmit={handleSubmit(onSubmit)}>
|
|
125
|
+
<Title>{formTitle}</Title>
|
|
126
|
+
<Description>{formDescription}</Description>
|
|
127
|
+
{inputs.map(function (input) {
|
|
128
|
+
var _a;
|
|
129
|
+
return (<StyledInputGroup key={input.name}>
|
|
130
|
+
<InputTitle>
|
|
131
|
+
{((_a = input.validations) === null || _a === void 0 ? void 0 : _a.required) ? '*' : ''}
|
|
132
|
+
{input.label}
|
|
133
|
+
</InputTitle>
|
|
134
|
+
{getInput(input)}
|
|
135
|
+
</StyledInputGroup>);
|
|
136
|
+
})}
|
|
137
|
+
|
|
138
|
+
<_system_1.Flex justifyContent="space-between" style={{ marginTop: 44 }}>
|
|
139
|
+
<MainButton_1.default onClick={function (e) { var _a; return (_a = e === null || e === void 0 ? void 0 : e.currentTarget) === null || _a === void 0 ? void 0 : _a.blur(); }} disabled={!isDirty || !isValid} variant="primaryM" text={submitLoading ? <react_bootstrap_1.Spinner variant="light"/> : 'Submit'} type={'submit'}/>
|
|
140
|
+
<MainButton_1.default onClick={function (e) { var _a; return (_a = e === null || e === void 0 ? void 0 : e.currentTarget) === null || _a === void 0 ? void 0 : _a.blur(); }} disabled={!isDirty} variant="secondary" text={submitLoading ? <react_bootstrap_1.Spinner variant="light"/> : 'Clear Form'} type={'reset'}/>
|
|
141
|
+
</_system_1.Flex>
|
|
142
|
+
</FormWrapper>
|
|
143
|
+
</Wrapper>);
|
|
134
144
|
};
|
|
135
145
|
exports.default = Form;
|
|
136
146
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
@@ -34,7 +34,7 @@ var react_1 = __importStar(require("react"));
|
|
|
34
34
|
var link_1 = __importDefault(require("next/link"));
|
|
35
35
|
var router_1 = require("next/router");
|
|
36
36
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
37
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
37
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
38
38
|
var types_1 = require("@/components/forms/types");
|
|
39
39
|
var _system_1 = require("@system");
|
|
40
40
|
var back_svg_1 = __importDefault(require("@/public/settings_page/back.svg"));
|
|
@@ -62,12 +62,20 @@ var FormsNavigation = function () {
|
|
|
62
62
|
var _b = (0, react_1.useState)(false), isOpen = _b[0], setIsOpen = _b[1];
|
|
63
63
|
var router = (0, router_1.useRouter)();
|
|
64
64
|
var activeTab = (_a = router === null || router === void 0 ? void 0 : router.query) === null || _a === void 0 ? void 0 : _a.formId;
|
|
65
|
-
return (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
return (<>
|
|
66
|
+
<StyledFlex isOpen={isOpen}>
|
|
67
|
+
{isOpen ? (<back_svg_1.default onClick={function () { return setIsOpen(false); }}/>) : (<burger_menu_svg_1.default onClick={function () { return setIsOpen(true); }}/>)}
|
|
68
|
+
</StyledFlex>
|
|
69
|
+
<Wrapper className={"mobile_menu ".concat(isOpen ? 'show' : 'hide')}>
|
|
70
|
+
<List>
|
|
71
|
+
{NAVIGATION_TABS.map(function (tab) { return (<li onClick={function () { return setIsOpen(false); }} key={tab.slug} className={"".concat(activeTab === tab.slug ? 'activeTab' : '', " ")}>
|
|
72
|
+
<link_1.default href={"/forms/".concat(tab.slug)} className={'link'}>
|
|
73
|
+
<span>{tab.label}</span>
|
|
74
|
+
</link_1.default>
|
|
75
|
+
</li>); })}
|
|
76
|
+
</List>
|
|
77
|
+
</Wrapper>
|
|
78
|
+
</>);
|
|
71
79
|
};
|
|
72
80
|
exports.default = FormsNavigation;
|
|
73
81
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -95,9 +95,9 @@ var react_google_recaptcha_v3_1 = require("react-google-recaptcha-v3");
|
|
|
95
95
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
96
96
|
var api_1 = require("@ludo.ninja/api");
|
|
97
97
|
var type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
98
|
-
var modules_1 = require("@ludo.ninja/components/
|
|
99
|
-
var store_1 = require("@ludo.ninja/components/
|
|
100
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
98
|
+
var modules_1 = require("@ludo.ninja/components/dist/modules");
|
|
99
|
+
var store_1 = require("@ludo.ninja/components/dist/store");
|
|
100
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
101
101
|
var form_1 = __importDefault(require("@/components/forms/form"));
|
|
102
102
|
var formsNavigation_1 = __importDefault(require("@/components/forms/formsNavigation"));
|
|
103
103
|
var types_1 = require("@/components/forms/types");
|
|
@@ -167,9 +167,10 @@ var FormsTemplate = function () {
|
|
|
167
167
|
if (!form) {
|
|
168
168
|
return null;
|
|
169
169
|
}
|
|
170
|
-
return (
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
return (<Wrapper>
|
|
171
|
+
<formsNavigation_1.default />
|
|
172
|
+
<form_1.default formDescription={form.formDescription} formTitle={form.formTitle} inputs={form.inputs} onSubmit={handleSubmit} submitLoading={loading} initialValues={initialValues}/>
|
|
173
|
+
</Wrapper>);
|
|
173
174
|
};
|
|
174
175
|
var getServerSideProps = function (ctx) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
176
|
var query, formId, form;
|
|
@@ -65,7 +65,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
65
65
|
var react_1 = __importStar(require("react"));
|
|
66
66
|
var chooseGalleryItems_1 = __importDefault(require("@/modules/gallery/ui/chooseGalleryItems"));
|
|
67
67
|
var createGalleryForm_1 = __importDefault(require("@/modules/gallery/ui/createGalleryForm"));
|
|
68
|
-
var ui_1 = require("@ludo.ninja/components/
|
|
68
|
+
var ui_1 = require("@ludo.ninja/components/dist/store/ui");
|
|
69
69
|
var useAddAssetsToGallery_1 = require("@/api/server-galleries/mutations/useAddAssetsToGallery");
|
|
70
70
|
var useCreateGallery_1 = require("@/api/server-galleries/mutations/useCreateGallery");
|
|
71
71
|
// Component
|
|
@@ -86,9 +86,11 @@ var AddAssetToGallery = function (_a) {
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}); };
|
|
89
|
-
return (
|
|
89
|
+
return (<div>
|
|
90
|
+
{isNeedAddGallery ? (<createGalleryForm_1.default setAddGallery={setAddGallery} title={'Create Gallery'} inputPlaceHolderText={'Gallery Name'}
|
|
90
91
|
// ids={ids}
|
|
91
|
-
createMethod
|
|
92
|
+
createMethod={createGallery} error={errorCreateGallery}/>) : (<chooseGalleryItems_1.default setAddGallery={setAddGallery} title={'Add to Gallery'} titleBtn={'+ New Gallery'} ids={ids} addMethod={addMethod} isAdded={isAdded} error={error} isGetMyGalleries/>)}
|
|
93
|
+
</div>);
|
|
92
94
|
};
|
|
93
95
|
// Export
|
|
94
96
|
exports.default = AddAssetToGallery;
|
|
@@ -72,7 +72,7 @@ var useToGalleryAsset_1 = require("@/hooks/useToGalleryAsset");
|
|
|
72
72
|
var chooseGalleryItems_1 = __importDefault(require("@/modules/gallery/ui/chooseGalleryItems"));
|
|
73
73
|
var createGalleryForm_1 = __importDefault(require("@/modules/gallery/ui/createGalleryForm"));
|
|
74
74
|
var itemsPreview_1 = __importDefault(require("@/modules/gallery/ui/itemsPreview"));
|
|
75
|
-
var ui_1 = require("@ludo.ninja/components/
|
|
75
|
+
var ui_1 = require("@ludo.ninja/components/dist/store/ui");
|
|
76
76
|
var useAddCreationsToGallery_1 = require("@/api/server-galleries/mutations/useAddCreationsToGallery");
|
|
77
77
|
var useCreateGallery_1 = require("@/api/server-galleries/mutations/useCreateGallery");
|
|
78
78
|
// Styles
|
|
@@ -101,13 +101,14 @@ var AddCreationToGallery = function () {
|
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
var ids = creationsToGallery.map(function (creations) { return creations.getCreationId(); });
|
|
104
|
-
return (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
return (<StyledAddGallery>
|
|
105
|
+
<itemsPreview_1.default creations={creationsToGallery} title={'Add to Gallery'} deleteMethod={function (itemId) {
|
|
106
|
+
removeCreationFromGalleryWithCallback(itemId, closeModalSidebarPortal);
|
|
107
|
+
}}/>
|
|
108
|
+
{isNeedAddGallery ? (<createGalleryForm_1.default setAddGallery={setAddGallery}
|
|
109
|
+
// ids={ids as string[]}
|
|
110
|
+
title={'Create Gallery'} createMethod={createGallery} inputPlaceHolderText={'Gallery Name'} error={errorCreateGallery}/>) : (<chooseGalleryItems_1.default setAddGallery={setAddGallery} title={'Choose Gallery'} titleBtn={'+ New Gallery'} ids={ids} addMethod={addMethod} isAdded={isAdded} error={error} isGetMyGalleries/>)}
|
|
111
|
+
</StyledAddGallery>);
|
|
111
112
|
};
|
|
112
113
|
// Export
|
|
113
114
|
exports.default = AddCreationToGallery;
|
|
@@ -17,7 +17,7 @@ var vars_1 = require("@/fonts/vars");
|
|
|
17
17
|
var StyledGradientLabel = (0, styled_components_1.default)(_system_1.H3)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n user-select: none;\n border-radius: 24px;\n ", ";\n ", ";\n display: inline-block;\n padding: 5px 16px;\n background: linear-gradient(\n 89deg,\n rgba(190, 249, 209, 0.6) 6.88%,\n rgba(98, 218, 255, 0.6) 53.34%,\n rgba(171, 228, 251, 0.6) 93.43%\n );\n color: #5748bc;\n"], ["\n font-family: ", ";\n user-select: none;\n border-radius: 24px;\n ", ";\n ", ";\n display: inline-block;\n padding: 5px 16px;\n background: linear-gradient(\n 89deg,\n rgba(190, 249, 209, 0.6) 6.88%,\n rgba(98, 218, 255, 0.6) 53.34%,\n rgba(171, 228, 251, 0.6) 93.43%\n );\n color: #5748bc;\n"])), vars_1.poppinsFontVarCss.css, boxShadow_1.default, boxTransform_1.default);
|
|
18
18
|
// Component
|
|
19
19
|
var GradientLabel = function () {
|
|
20
|
-
return
|
|
20
|
+
return <StyledGradientLabel>5 invites</StyledGradientLabel>;
|
|
21
21
|
};
|
|
22
22
|
// Export
|
|
23
23
|
exports.default = GradientLabel;
|
|
@@ -9,9 +9,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
11
11
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
12
|
-
var modules_1 = require("@ludo.ninja/components/
|
|
13
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
14
|
-
var system_1 = __importDefault(require("@ludo.ninja/components/
|
|
12
|
+
var modules_1 = require("@ludo.ninja/components/dist/modules");
|
|
13
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
14
|
+
var system_1 = __importDefault(require("@ludo.ninja/components/dist/system"));
|
|
15
15
|
// Styles
|
|
16
16
|
var StyledHeaderExperienceLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: 20px;\n ", " {\n margin-right: ", ";\n }\n"], ["\n margin-right: 20px;\n ", " {\n margin-right: ", ";\n }\n"])), styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(20));
|
|
17
17
|
// Component
|
|
@@ -24,8 +24,9 @@ var HeaderExperienceLabel = function (_a) {
|
|
|
24
24
|
}); }), userExp = _b.userExp, isLoadingExp = _b.isLoadingExp, errorExp = _b.errorExp;
|
|
25
25
|
if (!userId)
|
|
26
26
|
return null;
|
|
27
|
-
return (
|
|
28
|
-
|
|
27
|
+
return (<StyledHeaderExperienceLabel>
|
|
28
|
+
<system_1.default value={userExp.xps} link={"/rewards/".concat(userId)} loading={isLoadingExp || !!errorExp}/>
|
|
29
|
+
</StyledHeaderExperienceLabel>);
|
|
29
30
|
};
|
|
30
31
|
// Export
|
|
31
32
|
exports.default = HeaderExperienceLabel;
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
13
|
-
var styles_1 = require("@ludo.ninja/components/
|
|
14
|
-
var system_1 = __importDefault(require("@ludo.ninja/components/
|
|
13
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
14
|
+
var system_1 = __importDefault(require("@ludo.ninja/components/dist/system"));
|
|
15
15
|
// Styles
|
|
16
16
|
var StyledHeaderUserPick = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: 24px;\n\n ", " {\n margin-right: 8px;\n }\n ", " {\n margin-right: ", ";\n }\n"], ["\n margin-right: 24px;\n\n ", " {\n margin-right: 8px;\n }\n ", " {\n margin-right: ", ";\n }\n"])), styles_1.mediaQuery.mobile, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(24));
|
|
17
17
|
// Component
|
|
@@ -19,8 +19,9 @@ var HeaderUserPick = function (_a) {
|
|
|
19
19
|
var userId = _a.userId;
|
|
20
20
|
if (!userId)
|
|
21
21
|
return null;
|
|
22
|
-
return (
|
|
23
|
-
|
|
22
|
+
return (<StyledHeaderUserPick>
|
|
23
|
+
<system_1.default width={32} height={32} userId={userId} isNeedBoxTransform={true}/>
|
|
24
|
+
</StyledHeaderUserPick>);
|
|
24
25
|
};
|
|
25
26
|
// Export
|
|
26
27
|
exports.default = HeaderUserPick;
|
|
@@ -7,7 +7,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
7
7
|
var link_1 = __importDefault(require("next/link"));
|
|
8
8
|
var header_1 = require("@ludo.ninja/ui/build/components/header");
|
|
9
9
|
var store_1 = require("@/modules/user/store");
|
|
10
|
-
var ui_1 = require("@ludo.ninja/components/
|
|
10
|
+
var ui_1 = require("@ludo.ninja/components/dist/store/ui");
|
|
11
11
|
var headerExperienceLabel_1 = __importDefault(require("@/components/headers/components/headerExperienceLabel"));
|
|
12
12
|
var headerUserPic_1 = __importDefault(require("@/components/headers/components/headerUserPic"));
|
|
13
13
|
var auth_1 = require("@/utils/auth");
|
|
@@ -16,17 +16,17 @@ var Header = function () {
|
|
|
16
16
|
var isSignedIn = (0, store_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
17
17
|
var getUser = (0, store_1.useUserStore)(function (state) { return state.user; });
|
|
18
18
|
var openSidebar = (0, ui_1.useUiStore)(function (state) { return state.openSidebar; });
|
|
19
|
-
return (
|
|
19
|
+
return (<header_1.Header isAuthorized={isSignedIn} handle={{
|
|
20
20
|
login: auth_1.redirectToLoginWindow,
|
|
21
21
|
openSidebar: openSidebar,
|
|
22
|
-
}
|
|
23
|
-
headerExpLabel: (
|
|
24
|
-
headerUserPick:
|
|
22
|
+
}} slots={{
|
|
23
|
+
headerExpLabel: (<headerExperienceLabel_1.default userId={(getUser === null || getUser === void 0 ? void 0 : getUser.userId) || ''}/>),
|
|
24
|
+
headerUserPick: <headerUserPic_1.default userId={(getUser === null || getUser === void 0 ? void 0 : getUser.userId) || ''}/>,
|
|
25
25
|
logoLinkComponent: function (_a) {
|
|
26
26
|
var children = _a.children;
|
|
27
|
-
return
|
|
27
|
+
return <link_1.default href={'/'}>{children}</link_1.default>;
|
|
28
28
|
},
|
|
29
|
-
}
|
|
29
|
+
}}/>);
|
|
30
30
|
};
|
|
31
31
|
// Export
|
|
32
32
|
exports.default = Header;
|
|
@@ -7,7 +7,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
7
7
|
var link_1 = __importDefault(require("next/link"));
|
|
8
8
|
var header_1 = require("@ludo.ninja/ui/build/components/header");
|
|
9
9
|
var store_1 = require("@/modules/user/store");
|
|
10
|
-
var ui_1 = require("@ludo.ninja/components/
|
|
10
|
+
var ui_1 = require("@ludo.ninja/components/dist/store/ui");
|
|
11
11
|
var headerExperienceLabel_1 = __importDefault(require("@/components/headers/components/headerExperienceLabel"));
|
|
12
12
|
var headerUserPic_1 = __importDefault(require("@/components/headers/components/headerUserPic"));
|
|
13
13
|
var searchSimpleInput_1 = __importDefault(require("@/components/search/searchSimpleInput"));
|
|
@@ -18,22 +18,22 @@ var HeaderSearch = function () {
|
|
|
18
18
|
var openSidebar = (0, ui_1.useUiStore)(function (state) { return state.openSidebar; });
|
|
19
19
|
var isSignedIn = (0, store_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
20
20
|
var getUser = (0, store_1.useUserStore)(function (state) { return state.user; });
|
|
21
|
-
return (
|
|
21
|
+
return (<header_1.Header isAuthorized={isSignedIn} handle={{
|
|
22
22
|
login: auth_1.redirectToLoginWindow,
|
|
23
23
|
openSidebar: openSidebar,
|
|
24
|
-
}
|
|
25
|
-
headerExpLabel: (
|
|
26
|
-
headerUserPick:
|
|
24
|
+
}} slots={{
|
|
25
|
+
headerExpLabel: (<headerExperienceLabel_1.default userId={(getUser === null || getUser === void 0 ? void 0 : getUser.userId) || ''}/>),
|
|
26
|
+
headerUserPick: <headerUserPic_1.default userId={(getUser === null || getUser === void 0 ? void 0 : getUser.userId) || ''}/>,
|
|
27
27
|
logoLinkComponent: function (_a) {
|
|
28
28
|
var children = _a.children;
|
|
29
|
-
return
|
|
29
|
+
return <link_1.default href={'/'}>{children}</link_1.default>;
|
|
30
30
|
},
|
|
31
31
|
searchInput: function (_a) {
|
|
32
32
|
var setInputFocused = _a.setInputFocused;
|
|
33
33
|
// Todo seacrh pages, hide search input from header
|
|
34
|
-
return (0, env_1.isProd)({ ENV: isProdENV }) ? undefined : (
|
|
34
|
+
return (0, env_1.isProd)({ ENV: isProdENV }) ? undefined : (<searchSimpleInput_1.default onFocusHandler={setInputFocused}/>);
|
|
35
35
|
},
|
|
36
|
-
}
|
|
36
|
+
}} isSearchStyles isActivatedTheme/>);
|
|
37
37
|
};
|
|
38
38
|
// Export
|
|
39
39
|
exports.default = HeaderSearch;
|
|
@@ -21,12 +21,14 @@ var HeaderSimple = function () {
|
|
|
21
21
|
var windowWidth = (0, screen_1.getWindowDimensions)().windowWidth;
|
|
22
22
|
var renderDesktopLogoOrMobile = function () {
|
|
23
23
|
var isMobile = windowWidth <= 768;
|
|
24
|
-
return (
|
|
24
|
+
return (<image_1.default width={isMobile ? 31 : 116} height={isMobile ? 32 : 28} priority={true} src={isMobile ? '/logo/mobile_logo.svg' : '/logo/main_logo.svg'} alt="Ludo - a right place for NFT art"/>);
|
|
25
25
|
};
|
|
26
26
|
var scrollDirection = (0, utils_1.useScrollDirection)();
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
return (<StyledHeaderSimple className={scrollDirection}>
|
|
28
|
+
<div className={'logo'}>
|
|
29
|
+
<link_1.default href={'/'}>{renderDesktopLogoOrMobile()}</link_1.default>
|
|
30
|
+
</div>
|
|
31
|
+
</StyledHeaderSimple>);
|
|
30
32
|
};
|
|
31
33
|
// Export
|
|
32
34
|
exports.default = HeaderSimple;
|
|
@@ -160,22 +160,32 @@ var GetEarlyAccessForm = function () {
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
}); };
|
|
163
|
-
return (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
163
|
+
return (<>
|
|
164
|
+
<styles_1.FormHeader>
|
|
165
|
+
<link_1.default href={process_1.default.env.NEXT_PUBLIC_WELCOME_HOST} className="caption">
|
|
166
|
+
Welcome to
|
|
167
|
+
<image_1.default src={"".concat((0, core_1.getStaticDomain)({
|
|
168
|
+
ENV: process_1.default.env.NEXT_PUBLIC_STATIC_DOMAIN,
|
|
169
|
+
}), "/logo/main/main.svg")} alt={'main svg'} width={116} height={28}/>
|
|
170
|
+
</link_1.default>
|
|
171
|
+
</styles_1.FormHeader>
|
|
172
|
+
<styles_1.FormContent onSubmit={handleSubmit(onSubmit)}>
|
|
173
|
+
<Forms_1.Input register={registerInviteCode} error={errorInviteCode} data={dataInviteCode}/>
|
|
174
|
+
<styles_1.FormSubmitBtn>
|
|
175
|
+
<MainButton_1.default onClick={function () { return null; }} type={'submit'} disabled={!isDirty || !isValid || loading} variant="primaryM" text={'Join'}/>
|
|
176
|
+
</styles_1.FormSubmitBtn>
|
|
177
|
+
</styles_1.FormContent>
|
|
178
|
+
<styles_1.FormFooter>
|
|
179
|
+
<ui_1.SmallText>
|
|
180
|
+
<a style={{ padding: '0 5px 0 0' }} href="https://gleam.io/vlWxW/ludo-x-invite-code" target="_blank">
|
|
181
|
+
Start the simple onboarding process
|
|
182
|
+
</a>
|
|
183
|
+
to get your personal invite code to Ludo X.
|
|
184
|
+
</ui_1.SmallText>
|
|
185
|
+
<styles_1.FormLogOutBtn>
|
|
186
|
+
<MainButton_1.default onClick={handleLogOut} type={'button'} variant="outline" text={btnText}/>
|
|
187
|
+
</styles_1.FormLogOutBtn>
|
|
188
|
+
</styles_1.FormFooter>
|
|
189
|
+
</>);
|
|
180
190
|
};
|
|
181
191
|
exports.default = GetEarlyAccessForm;
|