@ludo.ninja/components 1.9.4 → 1.9.5
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.jsx → CardHead.js} +15 -22
- package/dist/components/CreationCard/{index.jsx → index.js} +24 -19
- package/dist/components/addWalletsRedirectPage/{index.jsx → index.js} +11 -18
- package/dist/components/banner/{index.jsx → index.js} +17 -23
- package/dist/components/base/Meta/index.js +60 -0
- package/dist/components/base/NoSSR/{index.jsx → index.js} +1 -1
- package/dist/components/collectionPage/collectionLike/{index.jsx → index.js} +5 -9
- package/dist/components/deleteDialog/{index.jsx → index.js} +14 -19
- package/dist/components/favoriteList/add/addAssetToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/favoriteList/add/addCollectionToFavoriteList/{index.jsx → index.js} +1 -3
- package/dist/components/favoriteList/add/addCreationToFavoriteList/{index.jsx → index.js} +2 -4
- package/dist/components/filters/applyResetBtns/{index.jsx → index.js} +5 -8
- package/dist/components/filters/galleriesFiltersForm/{index.jsx → index.js} +5 -14
- package/dist/components/filters/{index.jsx → index.js} +27 -35
- package/dist/components/filters/mobileFilters/{index.jsx → index.js} +1 -1
- package/dist/components/filters/setsFiltersForm/{index.jsx → index.js} +4 -11
- package/dist/components/forms/form/{index.jsx → index.js} +35 -45
- package/dist/components/forms/formsNavigation/{index.jsx → index.js} +6 -14
- package/dist/components/forms/formsTemplate/{index.jsx → index.js} +3 -4
- package/dist/components/gallery/add/addAssetToGallery/{index.jsx → index.js} +2 -4
- package/dist/components/gallery/add/addCreationToGallery/{index.jsx → index.js} +7 -8
- package/dist/components/gradientLabel/{index.jsx → index.js} +1 -1
- package/dist/components/headers/components/headerExperienceLabel/{index.jsx → index.js} +2 -3
- package/dist/components/headers/components/headerUserPic/{index.jsx → index.js} +2 -3
- package/dist/components/headers/header/{index.jsx → index.js} +6 -6
- package/dist/components/headers/headerSearch/{index.jsx → index.js} +7 -7
- package/dist/components/headers/headerSimple/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesForms/getEarlyAccessForm/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesForms/joinWaitListForm/{index.jsx → index.js} +11 -22
- package/dist/components/inviteCodesPage/components/inviteCodes/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.jsx → index.js} +3 -4
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/loader/{index.jsx → index.js} +6 -7
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/{index.jsx → index.js} +2 -2
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCaption/loader/{index.jsx → index.js} +1 -1
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.jsx → index.js} +4 -9
- package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.jsx → index.js} +1 -3
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/{index.jsx → index.js} +17 -27
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.js +17 -0
- package/dist/components/inviteCodesPage/wrappers/unusedCodes/{index.jsx → index.js} +4 -6
- package/dist/components/inviteCodesPage/wrappers/usedCodes/{index.jsx → index.js} +6 -9
- package/dist/components/linkTabs/{index.jsx → index.js} +1 -3
- package/dist/components/linkTabs/linkTab/{index.jsx → index.js} +4 -6
- package/dist/components/myWallets/{index.jsx → index.js} +4 -5
- package/dist/components/myWallets/myWalletItem/{index.jsx → index.js} +22 -29
- package/dist/components/navigation/{index.jsx → index.js} +11 -29
- package/dist/components/profile/MultiversXAudit/{MultiversXAudit.jsx → MultiversXAudit.js} +10 -15
- package/dist/components/profile/{ProfileTabs.jsx → ProfileTabs.js} +20 -22
- package/dist/components/profile/aboutText/{index.jsx → index.js} +16 -25
- package/dist/components/profile/addToGalleryBtns/{index.jsx → index.js} +6 -9
- package/dist/components/profile/followersSocial/followers/{index.jsx → index.js} +3 -4
- package/dist/components/profile/followersSocial/{index.jsx → index.js} +6 -7
- package/dist/components/profile/followersSocial/social/{index.jsx → index.js} +7 -9
- package/dist/components/profile/info/{index.jsx → index.js} +8 -11
- package/dist/components/profile/interests/{index.jsx → index.js} +14 -29
- package/dist/components/profile/pageHead/index.js +51 -0
- package/dist/components/profile/profileSkeleton/{index.jsx → index.js} +9 -15
- package/dist/components/profile/profileUserCards/{index.jsx → index.js} +1 -1
- package/dist/components/profile/profileUserCards/profileUserCard/{index.jsx → index.js} +21 -26
- package/dist/components/profile/rank/{index.jsx → index.js} +7 -15
- package/dist/components/profile/stats/{index.jsx → index.js} +4 -12
- package/dist/components/profile/wallets/{index.jsx → index.js} +20 -28
- package/dist/components/profile/wrapper/{index.jsx → index.js} +4 -12
- package/dist/components/registrationPage/registrationSelectBox/{index.jsx → index.js} +2 -3
- package/dist/components/registrationPage/registrationSelection/{index.jsx → index.js} +15 -29
- package/dist/components/rewards/FAQ/{index.jsx → index.js} +12 -20
- package/dist/components/rewards/clarifications/{index.jsx → index.js} +15 -25
- package/dist/components/rewards/logoBottom/{index.jsx → index.js} +5 -6
- package/dist/components/rewards/prograssBar/{index.jsx → index.js} +3 -5
- package/dist/components/rewards/seasonBanner/{index.jsx → index.js} +2 -3
- package/dist/components/rewards/taskExpTab/{index.jsx → index.js} +19 -31
- package/dist/components/rewards/tasksGrid/{index.jsx → index.js} +3 -6
- package/dist/components/rewards/userExp/{index.jsx → index.js} +23 -29
- package/dist/components/search/{SearchInputContainer.jsx → SearchInputContainer.js} +96 -98
- package/dist/components/search/{index.jsx → index.js} +10 -12
- package/dist/components/search/searchCategories/{index.jsx → index.js} +6 -10
- package/dist/components/search/searchCloseMoreButtons/{index.jsx → index.js} +12 -15
- package/dist/components/search/searchResultCaption/{index.jsx → index.js} +3 -6
- package/dist/components/search/searchSelectsGalleries/{index.jsx → index.js} +14 -30
- package/dist/components/search/searchSelectsSets/{index.jsx → index.js} +14 -27
- package/dist/components/search/searchSimpleInput/{index.jsx → index.js} +9 -11
- package/dist/components/search/searchSuggestions/index.js +117 -0
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/{index.jsx → index.js} +3 -4
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/{index.jsx → index.js} +6 -7
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/{index.jsx → index.js} +11 -18
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/{index.jsx → index.js} +7 -14
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/{index.jsx → index.js} +5 -3
- package/dist/components/shareDialog/index.js +73 -0
- package/dist/components/showcaseAssets/showcaseSort/{index.jsx → index.js} +4 -6
- package/dist/components/sidebar/{data.jsx → data.js} +8 -8
- package/dist/components/sidebar/{index.jsx → index.js} +16 -23
- package/dist/components/sidebar/{initializer.jsx → initializer.js} +1 -1
- package/dist/components/sidebar/sidebarFilters/{index.jsx → index.js} +6 -9
- package/dist/components/sidebar/sidebarInviteCodeLabel/{index.jsx → index.js} +3 -4
- package/dist/components/socialButtons/{data.jsx → data.js} +6 -6
- package/dist/components/socialButtons/icons/discord.js +7 -0
- package/dist/components/socialButtons/icons/facebook.js +8 -0
- package/dist/components/socialButtons/icons/instagram.js +9 -0
- package/dist/components/socialButtons/icons/medium.js +7 -0
- package/dist/components/socialButtons/icons/telegram.js +7 -0
- package/dist/components/socialButtons/icons/twitter.js +7 -0
- package/dist/components/socialButtons/{index.jsx → index.js} +5 -8
- package/dist/components/tabs/icons/bell.js +9 -0
- package/dist/components/tabs/icons/profile.js +9 -0
- package/dist/components/tabs/icons/secure.js +8 -0
- package/dist/components/tabs/{index.jsx → index.js} +10 -13
- package/dist/components/toTopBtn/{index.jsx → index.js} +5 -7
- package/dist/dto/AssetEntity/views/AssetAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/AssetEntity/views/AssetImage/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetObject/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetOther/{index.jsx → index.js} +3 -3
- package/dist/dto/AssetEntity/views/AssetScreenshot/{index.jsx → index.js} +2 -2
- package/dist/dto/AssetEntity/views/AssetVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationAudio/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationImage/{index.jsx → index.js} +2 -2
- package/dist/dto/common/ItemViews/CreationObject/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationOther/{index.jsx → index.js} +1 -1
- package/dist/dto/common/ItemViews/CreationVideo/{index.jsx → index.js} +1 -1
- package/dist/dto/common/Media/Audio/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Image/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Object/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Other/{index.jsx → index.js} +3 -3
- package/dist/dto/common/Media/Screenshot/{index.jsx → index.js} +4 -4
- package/dist/dto/common/Media/Video/{index.jsx → index.js} +3 -3
- package/dist/fonts/{FontsInitializeLayout.jsx → FontsInitializeLayout.js} +1 -4
- package/dist/hooks/searchFiltersConnector/{index.jsx → index.js} +33 -35
- package/dist/hooks/useToGalleryAsset/{index.jsx → index.js} +1 -1
- package/dist/layouts/{GlobalLayout.jsx → GlobalLayout.js} +15 -16
- package/dist/layouts/base/LWithRegularHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSearchHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithSimpleHeader/{index.jsx → index.js} +4 -5
- package/dist/layouts/base/LWithoutHeader/{index.jsx → index.js} +3 -4
- package/dist/layouts/custom/accountLayout/{index.jsx → index.js} +6 -11
- package/dist/layouts/custom/formsLayout/{index.jsx → index.js} +3 -5
- package/dist/layouts/custom/mainLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/searchLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/custom/simpleLayout/{index.jsx → index.js} +5 -8
- package/dist/layouts/pageTransitionLayout.js +24 -0
- package/dist/modules/notifications/{CreatorNotifications.jsx → CreatorNotifications.js} +1 -3
- package/dist/modules/user/profileData/{profileDataInitialization.jsx → profileDataInitialization.js} +1 -1
- package/dist/modules/virtuoso/{VirtuosoPageBuilder.jsx → VirtuosoPageBuilder.js} +18 -23
- package/dist/modules/virtuoso/{VirtuosoToTopBtn.jsx → VirtuosoToTopBtn.js} +1 -1
- package/dist/pages/index.js +16 -0
- package/dist/system/ActiveLink/{index.jsx → index.js} +14 -5
- package/dist/system/Alert/{index.jsx → index.js} +1 -1
- package/dist/system/BasicOverlay/{index.jsx → index.js} +1 -1
- package/dist/system/Cards/CardCheckbox/{index.jsx → index.js} +4 -6
- package/dist/system/Cards/CardContent/CardCategory/{index.jsx → index.js} +3 -5
- package/dist/system/Cards/CardContent/CardLikes/{index.jsx → index.js} +7 -11
- package/dist/system/Cards/CardContent/CardShowMore/{index.jsx → index.js} +5 -8
- package/dist/system/Cards/CardContent/{index.jsx → index.js} +16 -30
- package/dist/system/Cards/CardHeadIcons/{index.jsx → index.js} +15 -22
- package/dist/system/Cards/CardMedia/CardAudio/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardImage/{index.jsx → index.js} +4 -5
- package/dist/system/Cards/CardMedia/CardVideo/{index.jsx → index.js} +9 -11
- package/dist/system/Cards/CardRank/{index.jsx → index.js} +6 -12
- package/dist/system/Cards/CardsGrid/{index.jsx → index.js} +8 -13
- package/dist/system/Cards/HideLink/index.js +27 -0
- package/dist/system/Cards/MultiMediaCard/{index.jsx → index.js} +11 -17
- package/dist/system/Cards/RegularCard/{index.jsx → index.js} +11 -17
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsError/{index.jsx → index.js} +3 -6
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsNoResults/{index.jsx → index.js} +3 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/{index.jsx → index.js} +9 -15
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/{index.jsx → index.js} +4 -8
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/{index.jsx → index.js} +2 -3
- package/dist/system/CardsHolderWithSkeleton/{index.jsx → index.js} +3 -6
- package/dist/system/DropDown/{DropDown.test.jsx → DropDown.test.js} +7 -11
- package/dist/system/DropDown/{index.jsx → index.js} +10 -13
- package/dist/system/Forms/Checkbox/{Checkbox.test.jsx → Checkbox.test.js} +13 -2
- package/dist/system/Forms/Checkbox/{index.jsx → index.js} +23 -15
- package/dist/system/Forms/DatePicker/{index.jsx → index.js} +6 -7
- package/dist/system/Forms/ErrorLabel/{ErrorLabel.test.jsx → ErrorLabel.test.js} +2 -2
- package/dist/system/Forms/ErrorLabel/{index.jsx → index.js} +1 -1
- package/dist/system/Forms/Input/{Input.test.jsx → Input.test.js} +2 -2
- package/dist/system/Forms/Input/{index.jsx → index.js} +15 -5
- package/dist/system/Forms/RadioInput/{index.jsx → index.js} +16 -6
- package/dist/system/Forms/Selects/DesktopSelect/{index.jsx → index.js} +21 -11
- package/dist/system/Forms/Selects/MobileSelect/{index.jsx → index.js} +1 -3
- package/dist/system/Forms/TextArea/{index.jsx → index.js} +15 -5
- package/dist/system/Img/ExternalImage/{index.jsx → index.js} +12 -1
- package/dist/system/Img/ImageInterceptor/{ImageInterceptor.test.jsx → ImageInterceptor.test.js} +10 -14
- package/dist/system/Img/ImageInterceptor/{index.jsx → index.js} +4 -5
- package/dist/system/Img/Profilepic/{index.jsx → index.js} +8 -9
- package/dist/system/Img/Userpic/{UserPic.test.jsx → UserPic.test.js} +6 -8
- package/dist/system/Img/Userpic/{index.jsx → index.js} +10 -13
- package/dist/system/Labels/ExperienceLabel/{ExperienceLabel.test.jsx → ExperienceLabel.test.js} +16 -6
- package/dist/system/Labels/ExperienceLabel/{index.jsx → index.js} +6 -5
- package/dist/system/Labels/InviteLabel/{InviteLabel.test.jsx → InviteLabel.test.js} +15 -5
- package/dist/system/Labels/InviteLabel/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/Modal/{Modal.test.jsx → Modal.test.js} +2 -2
- package/dist/system/Modals/Modal/{index.jsx → index.js} +3 -4
- package/dist/system/Modals/ModalSidebar/{CreatorModalSidebarPortal.jsx → CreatorModalSidebarPortal.js} +1 -1
- package/dist/system/Modals/ModalSidebar/{ModalSidebar.test.jsx → ModalSidebar.test.js} +2 -2
- package/dist/system/Modals/ModalSidebar/{ModalSidebarPortal.jsx → ModalSidebarPortal.js} +4 -6
- package/dist/system/Modals/ModalSidebar/{index.jsx → index.js} +3 -4
- package/dist/system/Overlay/{Overlay.test.jsx → Overlay.test.js} +2 -3
- package/dist/system/Overlay/{index.jsx → index.js} +2 -3
- package/dist/system/{ShareIconResize.jsx → ShareIconResize.js} +5 -6
- package/dist/system/Tabs/TabNavLink/{TabNavLink.test.jsx → TabNavLink.test.js} +3 -3
- package/dist/system/Tabs/TabNavLink/{index.jsx → index.js} +1 -3
- package/dist/system/Tabs/TabsNav/{TabsNav.test.jsx → TabsNav.test.js} +4 -4
- package/dist/system/Tabs/TabsNav/{index.jsx → index.js} +2 -2
- package/dist/system/Tabs/TabsPanel/{TabsPanel.test.jsx → TabsPanel.test.js} +8 -12
- package/dist/system/Tabs/TabsPanel/{index.jsx → index.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/copyBtn/{index.jsx → index.js} +4 -7
- package/package.json +1 -1
- package/dist/components/base/Meta/index.jsx +0 -64
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/loader/index.jsx +0 -18
- package/dist/components/profile/pageHead/index.jsx +0 -52
- package/dist/components/search/searchSuggestions/index.jsx +0 -124
- package/dist/components/shareDialog/index.jsx +0 -91
- package/dist/components/socialButtons/icons/discord.jsx +0 -8
- package/dist/components/socialButtons/icons/facebook.jsx +0 -9
- package/dist/components/socialButtons/icons/instagram.jsx +0 -10
- package/dist/components/socialButtons/icons/medium.jsx +0 -8
- package/dist/components/socialButtons/icons/telegram.jsx +0 -8
- package/dist/components/socialButtons/icons/twitter.jsx +0 -8
- package/dist/components/tabs/icons/bell.jsx +0 -10
- package/dist/components/tabs/icons/profile.jsx +0 -10
- package/dist/components/tabs/icons/secure.jsx +0 -9
- package/dist/layouts/pageTransitionLayout.jsx +0 -27
- package/dist/pages/index.jsx +0 -18
- package/dist/system/Cards/HideLink/index.jsx +0 -22
- /package/dist/components/headers/components/MobileToggle/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/components/{index.jsx → index.js} +0 -0
- /package/dist/components/inviteCodesPage/wrappers/{index.jsx → index.js} +0 -0
- /package/dist/components/profile/jsonLd/{index.jsx → index.js} +0 -0
- /package/dist/components/registrationPage/{index.jsx → index.js} +0 -0
- /package/dist/components/rewards/rewardsButton/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/ItemType/{index.jsx → index.js} +0 -0
- /package/dist/dto/common/Media/{index.jsx → index.js} +0 -0
- /package/dist/hooks/apollo/{index.jsx → index.js} +0 -0
- /package/dist/hooks/audio/useMultiAudio/{index.jsx → index.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCollectionsAndLikes.jsx → useFindCollectionsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useFindCreationsAndLikes.jsx → useFindCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCollectionInfoAndLikes.jsx → useGetCollectionInfoAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikes.jsx → useGetCreationsAndLikes.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetCreationsAndLikesByType.jsx → useGetCreationsAndLikesByType.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetMixedLikesFavoriteList.jsx → useGetMixedLikesFavoriteList.js} +0 -0
- /package/dist/hooks/likes/dynamic/{useGetTableLikes.jsx → useGetTableLikes.js} +0 -0
- /package/dist/modules/notifications/{index.jsx → index.js} +0 -0
- /package/dist/modules/user/{store.jsx → store.js} +0 -0
- /package/dist/styles/animations/{index.jsx → index.js} +0 -0
- /package/dist/styles/{globalStyles.jsx → globalStyles.js} +0 -0
- /package/dist/styles/mixins/{boxShadow.jsx → boxShadow.js} +0 -0
- /package/dist/styles/mixins/{boxTransform.jsx → boxTransform.js} +0 -0
- /package/dist/styles/mixins/{z-indexes.jsx → z-indexes.js} +0 -0
- /package/dist/styles/typography/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/IconWithButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/MainButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Buttons/SecondaryButton/{index.jsx → index.js} +0 -0
- /package/dist/system/Flex/{index.jsx → index.js} +0 -0
- /package/dist/system/Labels/SkeletonLabel/{index.jsx → index.js} +0 -0
- /package/dist/system/PageLoader/{index.jsx → index.js} +0 -0
- /package/dist/system/Palete/{index.jsx → index.js} +0 -0
- /package/dist/system/Text/{index.jsx → index.js} +0 -0
- /package/dist/utils/extractItemIds/{index.jsx → index.js} +0 -0
- /package/dist/utils/imageProportionsSize/{index.jsx → index.js} +0 -0
- /package/dist/utils/ui/{index.jsx → index.js} +0 -0
|
@@ -90,57 +90,47 @@ 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 (react_1.default.createElement(Forms_1.BasicTextArea, { register: registerProp, error: errorProp, data: dataProp, isNeedBiggerArea: false }));
|
|
94
94
|
case 'checkbox':
|
|
95
|
-
return (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
})}
|
|
103
|
-
</>);
|
|
95
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, (_a = inputProps.options) === null || _a === void 0 ? void 0 : _a.map(function (option) {
|
|
96
|
+
var isCheckboxWithInput = option.value === 'other';
|
|
97
|
+
var registerTextInput = isCheckboxWithInput
|
|
98
|
+
? register("".concat(inputProps.name, "-other-checkbox"))
|
|
99
|
+
: undefined;
|
|
100
|
+
return (react_1.default.createElement(Forms_1.CheckboxInput, { key: option.value, register: registerProp, error: errorProp, data: dataProp, label: option.desc, value: option.value, withInput: isCheckboxWithInput, innerTextInputRef: registerTextInput }));
|
|
101
|
+
})));
|
|
104
102
|
case 'radio':
|
|
105
|
-
return (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})}
|
|
116
|
-
</>);
|
|
103
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, (_b = inputProps.options) === null || _b === void 0 ? void 0 : _b.map(function (option) {
|
|
104
|
+
var isRadioWithInput = option.value === 'other';
|
|
105
|
+
var registerTextInput = isRadioWithInput
|
|
106
|
+
? register("".concat(inputProps.name, "-other-radio"))
|
|
107
|
+
: undefined;
|
|
108
|
+
return (react_1.default.createElement(react_hook_form_1.Controller, { key: option.desc, name: inputProps.name, control: control, render: function (_a) {
|
|
109
|
+
var field = _a.field;
|
|
110
|
+
return (react_1.default.createElement(RadioInput, { key: option.value, radioLabel: option.desc, radioValue: option.value, handleChange: field.onChange, radioChecked: field.value === option.value, withInput: isRadioWithInput, innerTextInputRef: registerTextInput, setFocus: setFocus }));
|
|
111
|
+
} }));
|
|
112
|
+
})));
|
|
117
113
|
case 'date':
|
|
118
|
-
return (
|
|
114
|
+
return (react_1.default.createElement(DatePicker_1.default, { register: registerProp, error: errorProp, control: control, name: inputProps.name }));
|
|
119
115
|
default:
|
|
120
|
-
return (
|
|
116
|
+
return (react_1.default.createElement(Forms_1.Input, { register: registerProp, error: errorProp, data: dataProp }));
|
|
121
117
|
}
|
|
122
118
|
};
|
|
123
|
-
return (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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>);
|
|
119
|
+
return (react_1.default.createElement(Wrapper, null,
|
|
120
|
+
react_1.default.createElement(FormWrapper, { onSubmit: handleSubmit(onSubmit) },
|
|
121
|
+
react_1.default.createElement(Title, null, formTitle),
|
|
122
|
+
react_1.default.createElement(Description, null, formDescription),
|
|
123
|
+
inputs.map(function (input) {
|
|
124
|
+
var _a;
|
|
125
|
+
return (react_1.default.createElement(StyledInputGroup, { key: input.name },
|
|
126
|
+
react_1.default.createElement(InputTitle, null,
|
|
127
|
+
((_a = input.validations) === null || _a === void 0 ? void 0 : _a.required) ? '*' : '',
|
|
128
|
+
input.label),
|
|
129
|
+
getInput(input)));
|
|
130
|
+
}),
|
|
131
|
+
react_1.default.createElement(_system_1.Flex, { justifyContent: "space-between", style: { marginTop: 44 } },
|
|
132
|
+
react_1.default.createElement(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_1.default.createElement(react_bootstrap_1.Spinner, { variant: "light" }) : 'Submit', type: 'submit' }),
|
|
133
|
+
react_1.default.createElement(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_1.default.createElement(react_bootstrap_1.Spinner, { variant: "light" }) : 'Clear Form', type: 'reset' })))));
|
|
144
134
|
};
|
|
145
135
|
exports.default = Form;
|
|
146
136
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
@@ -62,20 +62,12 @@ 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
|
-
|
|
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
|
-
</>);
|
|
65
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
66
|
+
react_1.default.createElement(StyledFlex, { isOpen: isOpen }, isOpen ? (react_1.default.createElement(back_svg_1.default, { onClick: function () { return setIsOpen(false); } })) : (react_1.default.createElement(burger_menu_svg_1.default, { onClick: function () { return setIsOpen(true); } }))),
|
|
67
|
+
react_1.default.createElement(Wrapper, { className: "mobile_menu ".concat(isOpen ? 'show' : 'hide') },
|
|
68
|
+
react_1.default.createElement(List, null, NAVIGATION_TABS.map(function (tab) { return (react_1.default.createElement("li", { onClick: function () { return setIsOpen(false); }, key: tab.slug, className: "".concat(activeTab === tab.slug ? 'activeTab' : '', " ") },
|
|
69
|
+
react_1.default.createElement(link_1.default, { href: "/forms/".concat(tab.slug), className: 'link' },
|
|
70
|
+
react_1.default.createElement("span", null, tab.label)))); })))));
|
|
79
71
|
};
|
|
80
72
|
exports.default = FormsNavigation;
|
|
81
73
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -167,10 +167,9 @@ var FormsTemplate = function () {
|
|
|
167
167
|
if (!form) {
|
|
168
168
|
return null;
|
|
169
169
|
}
|
|
170
|
-
return (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
</Wrapper>);
|
|
170
|
+
return (react_1.default.createElement(Wrapper, null,
|
|
171
|
+
react_1.default.createElement(formsNavigation_1.default, null),
|
|
172
|
+
react_1.default.createElement(form_1.default, { formDescription: form.formDescription, formTitle: form.formTitle, inputs: form.inputs, onSubmit: handleSubmit, submitLoading: loading, initialValues: initialValues })));
|
|
174
173
|
};
|
|
175
174
|
var getServerSideProps = function (ctx) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
175
|
var query, formId, form;
|
|
@@ -86,11 +86,9 @@ var AddAssetToGallery = function (_a) {
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}); };
|
|
89
|
-
return (
|
|
90
|
-
{isNeedAddGallery ? (<createGalleryForm_1.default setAddGallery={setAddGallery} title={'Create Gallery'} inputPlaceHolderText={'Gallery Name'}
|
|
89
|
+
return (react_1.default.createElement("div", null, isNeedAddGallery ? (react_1.default.createElement(createGalleryForm_1.default, { setAddGallery: setAddGallery, title: 'Create Gallery', inputPlaceHolderText: 'Gallery Name',
|
|
91
90
|
// ids={ids}
|
|
92
|
-
createMethod
|
|
93
|
-
</div>);
|
|
91
|
+
createMethod: createGallery, error: errorCreateGallery })) : (react_1.default.createElement(chooseGalleryItems_1.default, { setAddGallery: setAddGallery, title: 'Add to Gallery', titleBtn: '+ New Gallery', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, isGetMyGalleries: true }))));
|
|
94
92
|
};
|
|
95
93
|
// Export
|
|
96
94
|
exports.default = AddAssetToGallery;
|
|
@@ -101,14 +101,13 @@ 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
|
-
|
|
111
|
-
</StyledAddGallery>);
|
|
104
|
+
return (react_1.default.createElement(StyledAddGallery, null,
|
|
105
|
+
react_1.default.createElement(itemsPreview_1.default, { creations: creationsToGallery, title: 'Add to Gallery', deleteMethod: function (itemId) {
|
|
106
|
+
removeCreationFromGalleryWithCallback(itemId, closeModalSidebarPortal);
|
|
107
|
+
} }),
|
|
108
|
+
isNeedAddGallery ? (react_1.default.createElement(createGalleryForm_1.default, { setAddGallery: setAddGallery,
|
|
109
|
+
// ids={ids as string[]}
|
|
110
|
+
title: 'Create Gallery', createMethod: createGallery, inputPlaceHolderText: 'Gallery Name', error: errorCreateGallery })) : (react_1.default.createElement(chooseGalleryItems_1.default, { setAddGallery: setAddGallery, title: 'Choose Gallery', titleBtn: '+ New Gallery', ids: ids, addMethod: addMethod, isAdded: isAdded, error: error, isGetMyGalleries: true }))));
|
|
112
111
|
};
|
|
113
112
|
// Export
|
|
114
113
|
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 react_1.default.createElement(StyledGradientLabel, null, "5 invites");
|
|
21
21
|
};
|
|
22
22
|
// Export
|
|
23
23
|
exports.default = GradientLabel;
|
|
@@ -24,9 +24,8 @@ 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
|
-
|
|
29
|
-
</StyledHeaderExperienceLabel>);
|
|
27
|
+
return (React.createElement(StyledHeaderExperienceLabel, null,
|
|
28
|
+
React.createElement(system_1.default, { value: userExp.xps, link: "/rewards/".concat(userId), loading: isLoadingExp || !!errorExp })));
|
|
30
29
|
};
|
|
31
30
|
// Export
|
|
32
31
|
exports.default = HeaderExperienceLabel;
|
|
@@ -19,9 +19,8 @@ var HeaderUserPick = function (_a) {
|
|
|
19
19
|
var userId = _a.userId;
|
|
20
20
|
if (!userId)
|
|
21
21
|
return null;
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
</StyledHeaderUserPick>);
|
|
22
|
+
return (react_1.default.createElement(StyledHeaderUserPick, null,
|
|
23
|
+
react_1.default.createElement(system_1.default, { width: 32, height: 32, userId: userId, isNeedBoxTransform: true })));
|
|
25
24
|
};
|
|
26
25
|
// Export
|
|
27
26
|
exports.default = HeaderUserPick;
|
|
@@ -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 (react_1.default.createElement(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: (react_1.default.createElement(headerExperienceLabel_1.default, { userId: (getUser === null || getUser === void 0 ? void 0 : getUser.userId) || '' })),
|
|
24
|
+
headerUserPick: react_1.default.createElement(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 react_1.default.createElement(link_1.default, { href: '/' }, children);
|
|
28
28
|
},
|
|
29
|
-
}}
|
|
29
|
+
} }));
|
|
30
30
|
};
|
|
31
31
|
// Export
|
|
32
32
|
exports.default = Header;
|
|
@@ -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 (react_1.default.createElement(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: (react_1.default.createElement(headerExperienceLabel_1.default, { userId: (getUser === null || getUser === void 0 ? void 0 : getUser.userId) || '' })),
|
|
26
|
+
headerUserPick: react_1.default.createElement(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 react_1.default.createElement(link_1.default, { href: '/' }, children);
|
|
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 : (react_1.default.createElement(searchSimpleInput_1.default, { onFocusHandler: setInputFocused }));
|
|
35
35
|
},
|
|
36
|
-
}
|
|
36
|
+
}, isSearchStyles: true, isActivatedTheme: true }));
|
|
37
37
|
};
|
|
38
38
|
// Export
|
|
39
39
|
exports.default = HeaderSearch;
|
|
@@ -21,14 +21,12 @@ 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 (react_1.default.createElement(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
|
-
|
|
30
|
-
</div>
|
|
31
|
-
</StyledHeaderSimple>);
|
|
27
|
+
return (react_1.default.createElement(StyledHeaderSimple, { className: scrollDirection },
|
|
28
|
+
react_1.default.createElement("div", { className: 'logo' },
|
|
29
|
+
react_1.default.createElement(link_1.default, { href: '/' }, renderDesktopLogoOrMobile()))));
|
|
32
30
|
};
|
|
33
31
|
// Export
|
|
34
32
|
exports.default = HeaderSimple;
|
|
@@ -160,32 +160,22 @@ 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
|
-
|
|
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
|
-
</>);
|
|
163
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
164
|
+
react_1.default.createElement(styles_1.FormHeader, null,
|
|
165
|
+
react_1.default.createElement(link_1.default, { href: process_1.default.env.NEXT_PUBLIC_WELCOME_HOST, className: "caption" },
|
|
166
|
+
"Welcome to",
|
|
167
|
+
react_1.default.createElement(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
|
+
react_1.default.createElement(styles_1.FormContent, { onSubmit: handleSubmit(onSubmit) },
|
|
171
|
+
react_1.default.createElement(Forms_1.Input, { register: registerInviteCode, error: errorInviteCode, data: dataInviteCode }),
|
|
172
|
+
react_1.default.createElement(styles_1.FormSubmitBtn, null,
|
|
173
|
+
react_1.default.createElement(MainButton_1.default, { onClick: function () { return null; }, type: 'submit', disabled: !isDirty || !isValid || loading, variant: "primaryM", text: 'Join' }))),
|
|
174
|
+
react_1.default.createElement(styles_1.FormFooter, null,
|
|
175
|
+
react_1.default.createElement(ui_1.SmallText, null,
|
|
176
|
+
react_1.default.createElement("a", { style: { padding: '0 5px 0 0' }, href: "https://gleam.io/vlWxW/ludo-x-invite-code", target: "_blank" }, "Start the simple onboarding process"),
|
|
177
|
+
"to get your personal invite code to Ludo X."),
|
|
178
|
+
react_1.default.createElement(styles_1.FormLogOutBtn, null,
|
|
179
|
+
react_1.default.createElement(MainButton_1.default, { onClick: handleLogOut, type: 'button', variant: "outline", text: btnText })))));
|
|
190
180
|
};
|
|
191
181
|
exports.default = GetEarlyAccessForm;
|
|
@@ -111,27 +111,16 @@ var JoinWaitListForm = function () {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
|
-
return (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<Forms_1.Input register={registerEmail} error={errorInviteCode} data={dataUserEmail}/>
|
|
126
|
-
<styles_1.FormSubmitBtn>
|
|
127
|
-
<MainButton_1.default onClick={function () { return null; }} type={'submit'} disabled={!isDirty || !isValid || loading} variant="primaryM" text={'Join Waitlist'}/>
|
|
128
|
-
</styles_1.FormSubmitBtn>
|
|
129
|
-
</styles_1.FormContent>
|
|
130
|
-
<styles_1.FormFooter>
|
|
131
|
-
<styles_1.FormLogOutBtn>
|
|
132
|
-
<MainButton_1.default onClick={handleLogOut} type={'button'} variant="outline" text={btnText}/>
|
|
133
|
-
</styles_1.FormLogOutBtn>
|
|
134
|
-
</styles_1.FormFooter>
|
|
135
|
-
</>);
|
|
114
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
115
|
+
react_1.default.createElement(styles_1.FormHeader, null,
|
|
116
|
+
react_1.default.createElement(ui_1.H2, null, "Join the Waitlist"),
|
|
117
|
+
react_1.default.createElement(ui_1.SmallText, { mt: 16, textAlign: 'left' }, "Ludo uses invites to build a healthier community. If you don\u2019t know anybody with an invite, you can either join our Discord and ask our community for one, or sign up for the the waitlist and we\u2019ll send you one soon.")),
|
|
118
|
+
react_1.default.createElement(styles_1.FormContent, { onSubmit: handleSubmit(onSubmit) },
|
|
119
|
+
react_1.default.createElement(Forms_1.Input, { register: registerEmail, error: errorInviteCode, data: dataUserEmail }),
|
|
120
|
+
react_1.default.createElement(styles_1.FormSubmitBtn, null,
|
|
121
|
+
react_1.default.createElement(MainButton_1.default, { onClick: function () { return null; }, type: 'submit', disabled: !isDirty || !isValid || loading, variant: "primaryM", text: 'Join Waitlist' }))),
|
|
122
|
+
react_1.default.createElement(styles_1.FormFooter, null,
|
|
123
|
+
react_1.default.createElement(styles_1.FormLogOutBtn, null,
|
|
124
|
+
react_1.default.createElement(MainButton_1.default, { onClick: handleLogOut, type: 'button', variant: "outline", text: btnText })))));
|
|
136
125
|
};
|
|
137
126
|
exports.default = JoinWaitListForm;
|
|
@@ -16,8 +16,8 @@ var StyledInviteCodes = styled_components_1.default.div(templateObject_1 || (tem
|
|
|
16
16
|
var InviteCodes = function (_a) {
|
|
17
17
|
var isLoading = _a.isLoading, children = _a.children;
|
|
18
18
|
if (isLoading)
|
|
19
|
-
return
|
|
20
|
-
return
|
|
19
|
+
return react_1.default.createElement(loader_1.default, null);
|
|
20
|
+
return react_1.default.createElement(StyledInviteCodes, null, children);
|
|
21
21
|
};
|
|
22
22
|
// Export
|
|
23
23
|
exports.default = InviteCodes;
|
package/dist/components/inviteCodesPage/components/inviteCodes/inviteCode/{index.jsx → index.js}
RENAMED
|
@@ -21,10 +21,9 @@ var StyledInviteCode = styled_components_1.default.div(templateObject_1 || (temp
|
|
|
21
21
|
// Component
|
|
22
22
|
var InviteCode = function (_a) {
|
|
23
23
|
var inviteCode = _a.inviteCode, children = _a.children;
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</StyledInviteCode>);
|
|
24
|
+
return (react_1.default.createElement(StyledInviteCode, { isCodeDisabled: inviteCode.isUsed },
|
|
25
|
+
react_1.default.createElement(_system_1.H5, { className: 'code' }, inviteCode.inviteCode),
|
|
26
|
+
children));
|
|
28
27
|
};
|
|
29
28
|
// Export
|
|
30
29
|
exports.default = InviteCode;
|
|
@@ -14,13 +14,12 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
14
14
|
var StyledSkeleton = (0, styled_components_1.default)(react_loading_skeleton_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 22px;\n height: 44px;\n"], ["\n border-radius: 22px;\n height: 44px;\n"])));
|
|
15
15
|
// Component
|
|
16
16
|
var InviteCodeLoader = function () {
|
|
17
|
-
return (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</>);
|
|
17
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
18
|
+
react_1.default.createElement(StyledSkeleton, null),
|
|
19
|
+
react_1.default.createElement(StyledSkeleton, { style: { marginTop: '8px' } }),
|
|
20
|
+
react_1.default.createElement(StyledSkeleton, { style: { marginTop: '8px' } }),
|
|
21
|
+
react_1.default.createElement(StyledSkeleton, { style: { marginTop: '8px' } }),
|
|
22
|
+
react_1.default.createElement(StyledSkeleton, { style: { marginTop: '8px' } })));
|
|
24
23
|
};
|
|
25
24
|
// Export
|
|
26
25
|
exports.default = InviteCodeLoader;
|
|
@@ -20,8 +20,8 @@ var InviteCodeCaption = function (_a) {
|
|
|
20
20
|
if (!isNeedRender)
|
|
21
21
|
return null;
|
|
22
22
|
if (isLoading)
|
|
23
|
-
return
|
|
24
|
-
return
|
|
23
|
+
return react_1.default.createElement(loader_1.default, null);
|
|
24
|
+
return react_1.default.createElement(StyledIInviteCodeCaption, null, text);
|
|
25
25
|
};
|
|
26
26
|
// Export
|
|
27
27
|
exports.default = InviteCodeCaption;
|
|
@@ -14,7 +14,7 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
14
14
|
var StyledSkeleton = (0, styled_components_1.default)(react_loading_skeleton_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 22px;\n"], ["\n height: 22px;\n"])));
|
|
15
15
|
// Component
|
|
16
16
|
var InviteCodeCaptionLoader = function () {
|
|
17
|
-
return
|
|
17
|
+
return react_1.default.createElement(StyledSkeleton, { style: { marginBottom: '16px' } });
|
|
18
18
|
};
|
|
19
19
|
// Export
|
|
20
20
|
exports.default = InviteCodeCaptionLoader;
|
package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeCopy/{index.jsx → index.js}
RENAMED
|
@@ -17,15 +17,10 @@ var StyledInviteCodeCopy = styled_components_1.default.div(templateObject_1 || (
|
|
|
17
17
|
// Component
|
|
18
18
|
var InviteCodeCopy = function (_a) {
|
|
19
19
|
var inviteCode = _a.inviteCode;
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Copy
|
|
25
|
-
</_system_1.H5>
|
|
26
|
-
</copyBtn_1.CopyButton>
|
|
27
|
-
</div>
|
|
28
|
-
</StyledInviteCodeCopy>);
|
|
20
|
+
return (react_1.default.createElement(StyledInviteCodeCopy, null,
|
|
21
|
+
react_1.default.createElement("div", { className: 'copyBtn' },
|
|
22
|
+
react_1.default.createElement(copyBtn_1.CopyButton, { value: inviteCode.inviteCode },
|
|
23
|
+
react_1.default.createElement(_system_1.H5, { style: { marginLeft: '4px', cursor: 'pointer' }, color: colors_1.AccentColor }, "Copy")))));
|
|
29
24
|
};
|
|
30
25
|
// Export
|
|
31
26
|
exports.default = InviteCodeCopy;
|
package/dist/components/inviteCodesPage/components/inviteCodes/inviteCodeDate/{index.jsx → index.js}
RENAMED
|
@@ -16,9 +16,7 @@ var StyledInviteCodeActivatedDate = (0, styled_components_1.default)(_system_1.H
|
|
|
16
16
|
// Component
|
|
17
17
|
var InviteCodeActivatedDate = function (_a) {
|
|
18
18
|
var value = _a.value;
|
|
19
|
-
return (
|
|
20
|
-
{"Activated on ".concat(value.toLocaleDateString('en-GB'))}
|
|
21
|
-
</StyledInviteCodeActivatedDate>);
|
|
19
|
+
return (react_1.default.createElement(StyledInviteCodeActivatedDate, null, "Activated on ".concat(value.toLocaleDateString('en-GB'))));
|
|
22
20
|
};
|
|
23
21
|
// Export
|
|
24
22
|
exports.default = InviteCodeActivatedDate;
|
|
@@ -25,34 +25,24 @@ var StyledAddCodesText = (0, styled_components_1.default)(system_1.MainText)(tem
|
|
|
25
25
|
var ResumeCodes = function (_a) {
|
|
26
26
|
var invites = _a.invites, activeInvites = _a.activeInvites, isLoading = _a.isLoading, userId = _a.userId;
|
|
27
27
|
if (isLoading)
|
|
28
|
-
return
|
|
28
|
+
return react_1.default.createElement(loader_1.default, null);
|
|
29
29
|
var isPlural = function (nmb) { return (nmb <= 1 ? 'invite' : 'invites'); };
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
an increased Ludo Rank. The more Ludo XP you gather, the richer your
|
|
47
|
-
experience.
|
|
48
|
-
</StyledResumeCodesText>
|
|
49
|
-
<StyledAddCodesText>
|
|
50
|
-
Do you have more friends to invite?
|
|
51
|
-
</StyledAddCodesText>
|
|
52
|
-
<system_1.MainButton onClick={function () {
|
|
53
|
-
return window.open("".concat(utils_1.ASK_MORE_INVITES_GOOGLE_FORM).concat(userId), '_blank');
|
|
54
|
-
}} variant="primaryM" text={'Ask for more invites'}/>
|
|
55
|
-
</div>);
|
|
30
|
+
return (react_1.default.createElement("div", null,
|
|
31
|
+
react_1.default.createElement(StyledResumeCodes, null,
|
|
32
|
+
react_1.default.createElement(StyledResumeCodesCaption, null,
|
|
33
|
+
"You have ",
|
|
34
|
+
react_1.default.createElement("strong", null, "".concat(invites, " active ").concat(isPlural(invites)))),
|
|
35
|
+
react_1.default.createElement(StyledResumeCodesSubCaption, null,
|
|
36
|
+
"Your friends activated",
|
|
37
|
+
' ',
|
|
38
|
+
react_1.default.createElement("strong", null, "".concat(activeInvites, " ").concat(isPlural(activeInvites))),
|
|
39
|
+
' ',
|
|
40
|
+
"already")),
|
|
41
|
+
react_1.default.createElement(StyledResumeCodesText, null, "Invite your friends to be among the first who will collect Ludo XP, which is the key to unlock a variety of benefits. From benefiting from selected partner projects, such as airdrops or whitelisting spots, to increased XP for your engagement and activities, such as referrals, to an increased Ludo Rank. The more Ludo XP you gather, the richer your experience."),
|
|
42
|
+
react_1.default.createElement(StyledAddCodesText, null, "Do you have more friends to invite?"),
|
|
43
|
+
react_1.default.createElement(system_1.MainButton, { onClick: function () {
|
|
44
|
+
return window.open("".concat(utils_1.ASK_MORE_INVITES_GOOGLE_FORM).concat(userId), '_blank');
|
|
45
|
+
}, variant: "primaryM", text: 'Ask for more invites' })));
|
|
56
46
|
};
|
|
57
47
|
// Export
|
|
58
48
|
exports.default = ResumeCodes;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
8
|
+
// Component
|
|
9
|
+
var ResumeCodesLoader = function () {
|
|
10
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
11
|
+
react_1.default.createElement(react_loading_skeleton_1.default, { style: { borderRadius: '8px', padding: '24px 32px' }, height: "100px" }),
|
|
12
|
+
react_1.default.createElement(react_loading_skeleton_1.default, { style: { borderRadius: '8px', marginTop: '24px' }, height: "30px" }),
|
|
13
|
+
react_1.default.createElement(react_loading_skeleton_1.default, { style: { borderRadius: '8px', marginTop: '12px' }, height: "20px" }),
|
|
14
|
+
react_1.default.createElement(react_loading_skeleton_1.default, { style: { borderRadius: '8px', marginTop: '12px' }, height: "20px" })));
|
|
15
|
+
};
|
|
16
|
+
// Export
|
|
17
|
+
exports.default = ResumeCodesLoader;
|
|
@@ -17,16 +17,14 @@ var StyledUnusedCodes = styled_components_1.default.div(templateObject_1 || (tem
|
|
|
17
17
|
var UnusedCodes = function (_a) {
|
|
18
18
|
var unusedInvites = _a.unusedInvites, isLoading = _a.isLoading;
|
|
19
19
|
var renderUnusedInviteCodes = unusedInvites === null || unusedInvites === void 0 ? void 0 : unusedInvites.map(function (inviteCode) {
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
</inviteCode_1.default>);
|
|
20
|
+
return (react_1.default.createElement(inviteCode_1.default, { key: inviteCode.inviteCode, inviteCode: inviteCode },
|
|
21
|
+
react_1.default.createElement(components_1.InviteCodeCopy, { inviteCode: inviteCode })));
|
|
23
22
|
});
|
|
24
23
|
if (!isLoading && (!unusedInvites || !unusedInvites.length)) {
|
|
25
24
|
return null;
|
|
26
25
|
}
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
</StyledUnusedCodes>);
|
|
26
|
+
return (react_1.default.createElement(StyledUnusedCodes, null,
|
|
27
|
+
react_1.default.createElement(inviteCodes_1.default, { isLoading: isLoading }, renderUnusedInviteCodes)));
|
|
30
28
|
};
|
|
31
29
|
// Export
|
|
32
30
|
exports.default = UnusedCodes;
|