@ludo.ninja/components 1.8.0 → 1.8.2
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 +9 -9
- package/dist/components/CreationCard/index.d.ts +1 -1
- package/dist/components/CreationCard/index.js +5 -8
- package/dist/components/deleteDialog/index.js +13 -15
- package/dist/components/filters/index.js +4 -5
- package/dist/components/forms/form/index.js +3 -3
- package/dist/components/forms/formsNavigation/index.js +4 -5
- package/dist/components/forms/formsTemplate/index.js +6 -6
- package/dist/components/headers/components/headerExperienceLabel/index.js +6 -6
- package/dist/components/headers/components/headerUserPic/index.js +4 -4
- package/dist/components/inviteCodesPage/wrappers/resumeCodes/index.js +9 -14
- package/dist/components/linkTabs/index.js +2 -3
- package/dist/components/linkTabs/linkTab/index.js +4 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/profile/MultiversXAudit/MultiversXAudit.js +5 -5
- package/dist/components/profile/aboutText/index.js +16 -21
- package/dist/components/profile/addToGalleryBtns/index.js +9 -12
- package/dist/components/profile/index.d.ts +1 -1
- package/dist/components/profile/index.js +1 -1
- package/dist/components/profile/info/index.js +3 -3
- package/dist/components/profile/interests/index.js +2 -2
- package/dist/components/profile/profileUserCards/profileUserCard/index.js +2 -2
- package/dist/components/profile/rank/index.js +3 -3
- package/dist/components/profile/stats/index.js +2 -2
- package/dist/components/profile/wallets/index.js +2 -2
- package/dist/components/registrationPage/registrationSelection/index.js +2 -2
- package/dist/components/rewards/FAQ/index.js +8 -8
- package/dist/components/rewards/clarifications/index.js +4 -4
- package/dist/components/rewards/logoBottom/index.js +2 -2
- package/dist/components/rewards/prograssBar/index.js +2 -2
- package/dist/components/rewards/rewardsButton/index.js +2 -2
- package/dist/components/rewards/seasonBanner/index.js +3 -3
- package/dist/components/rewards/taskExpTab/index.js +7 -7
- package/dist/components/rewards/tasksGrid/index.js +4 -4
- package/dist/components/rewards/userExp/index.js +8 -8
- package/dist/components/search/SearchInputContainer.js +4 -4
- package/dist/components/search/index.js +4 -4
- package/dist/components/search/searchCloseMoreButtons/index.js +3 -3
- package/dist/components/search/searchResultCaption/index.js +2 -2
- package/dist/components/search/searchSimpleInput/index.js +5 -5
- package/dist/components/search/searchSuggestions/index.js +2 -2
- package/dist/components/search/searchSuggestions/searchSuggestionsCaption/index.js +2 -2
- package/dist/components/search/searchSuggestions/searchSuggestionsFooter/index.js +2 -2
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/index.js +2 -2
- package/dist/components/search/searchSuggestions/searchSuggestionsItem/searchSuggestionsItemSkeleton/index.js +3 -3
- package/dist/components/search/searchSuggestions/searchSuggestionsNotFound/index.js +2 -2
- package/dist/components/shareDialog/index.js +3 -3
- package/dist/components/sidebar/index.js +5 -5
- package/dist/components/sidebar/sidebarInviteCodeLabel/index.js +2 -2
- package/dist/components/toTopBtn/index.js +2 -2
- package/dist/layouts/custom/styles.js +3 -3
- package/dist/modules/gallery/ui/Description.js +2 -2
- package/dist/modules/gallery/ui/PlaceholderItemsGallery.js +2 -2
- package/dist/modules/gallery/ui/STopSections.js +2 -2
- package/dist/modules/gallery/ui/chooseGalleryItems/chooseGalleryItem/index.js +2 -2
- package/dist/modules/gallery/ui/chooseGalleryItems/index.js +2 -2
- package/dist/modules/gallery/ui/createGalleryForm/index.js +2 -2
- package/dist/modules/gallery/ui/editGalleryForm/index.js +2 -2
- package/dist/modules/gallery/ui/itemsPreview/index.js +2 -2
- package/dist/modules/virtuoso/VirtuosoPageBuilder.d.ts +1 -1
- package/dist/modules/virtuoso/VirtuosoPageBuilder.js +3 -3
- package/dist/system/Cards/CardCheckbox/index.js +2 -3
- package/dist/system/Cards/CardContent/CardCategory/index.js +2 -3
- package/dist/system/Cards/CardContent/CardShowMore/index.js +2 -4
- package/dist/system/Cards/CardContent/index.js +2 -4
- package/dist/system/Cards/CardHeadIcons/index.js +2 -2
- package/dist/system/Cards/CardMedia/CardAudio/index.js +5 -5
- package/dist/system/Cards/CardRank/index.js +4 -4
- package/dist/system/Cards/CardsGrid/index.js +2 -2
- package/dist/system/Cards/MultiMediaCard/index.js +2 -5
- package/dist/system/Cards/RegularCard/index.js +2 -5
- package/dist/system/Cards/Styles/Head.js +2 -2
- package/dist/system/Cards/Styles/Headicons.js +2 -3
- package/dist/system/Cards/Styles/Image.js +2 -2
- package/dist/system/Cards/Styles/Likes.js +3 -4
- package/dist/system/Cards/Styles/MultiHead.js +2 -2
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/CardsSkeleton/index.js +4 -4
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.js +2 -2
- package/dist/system/CardsHolderWithSkeleton/CardsHolderLoader/index.js +5 -7
- package/dist/system/Forms/DatePicker/index.js +2 -2
- package/dist/system/Forms/ErrorLabel/index.js +2 -2
- package/dist/system/Forms/Input/index.js +2 -2
- package/dist/system/Forms/Selects/DesktopSelect/index.js +7 -9
- package/dist/system/Forms/TextArea/index.js +2 -2
- package/dist/system/Img/Userpic/index.js +6 -7
- package/dist/system/Labels/ExperienceLabel/index.js +5 -7
- package/dist/system/Modals/Modal/index.js +4 -6
- package/dist/system/Modals/ModalSidebar/index.js +4 -6
- package/dist/system/ShareIconResize.js +5 -6
- package/dist/system/Tabs/TabNavLink/index.d.ts +1 -1
- package/dist/system/Tabs/TabNavLink/index.js +4 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/adaptive/check4k.js +2 -2
- package/package.json +1 -1
|
@@ -42,15 +42,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42
42
|
exports.CardHead = void 0;
|
|
43
43
|
var react_1 = __importDefault(require("react"));
|
|
44
44
|
var router_1 = require("next/router");
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
45
|
+
var user_1 = require("@ludo.ninja/components/dist/modules/user");
|
|
46
|
+
var store_1 = require("@ludo.ninja/components/dist/store");
|
|
47
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
48
48
|
var addCreationToFavoriteList_1 = __importDefault(require("@/components/favoriteList/add/addCreationToFavoriteList"));
|
|
49
49
|
var CardRank_1 = __importDefault(require("@/system/Cards/CardRank"));
|
|
50
50
|
var Headicons_1 = __importDefault(require("@/system/Cards/Styles/Headicons"));
|
|
51
|
-
var auth_1 = require("
|
|
51
|
+
var auth_1 = require("@ludo.ninja/components/dist/utils/auth");
|
|
52
52
|
var env_1 = require("@/utils/env");
|
|
53
|
-
var
|
|
53
|
+
var utils_1 = require("@ludo.ninja/components/dist/utils");
|
|
54
54
|
var CollectionCreationEntity_1 = __importDefault(require("@/dto/Collection/CollectionCreationEntity"));
|
|
55
55
|
var ItemType_1 = require("@/dto/common/ItemType");
|
|
56
56
|
var addToFavListIcon_svg_1 = __importDefault(require("@/public/cards/addToFavListIcon.svg"));
|
|
@@ -59,12 +59,12 @@ var heart_svg_1 = __importDefault(require("@/public/cards/heart.svg"));
|
|
|
59
59
|
// Component
|
|
60
60
|
var CardHead = function (_a) {
|
|
61
61
|
var creation = _a.creation, isRegularCard = _a.isRegularCard, isIconLiked = _a.isIconLiked, addLikeToCard = _a.addLikeToCard, deleteLikeFromCard = _a.deleteLikeFromCard, isUserProfile = _a.isUserProfile, isDisabled = _a.isDisabled, isShowCheckbox = _a.isShowCheckbox, currentMyGalleryId = _a.currentMyGalleryId, isProdENV = _a.isProdENV;
|
|
62
|
-
var openModalSidebarPortal = (0,
|
|
63
|
-
var isSignedIn = (0,
|
|
62
|
+
var openModalSidebarPortal = (0, store_1.useUiStore)(function (state) { return state.openModalSidebarPortal; });
|
|
63
|
+
var isSignedIn = (0, user_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
64
64
|
var isLicked = isIconLiked && isSignedIn;
|
|
65
|
-
var windowDimensions = (0,
|
|
65
|
+
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
66
66
|
var isMobile = !!((windowDimensions === null || windowDimensions === void 0 ? void 0 : windowDimensions.windowWidth) &&
|
|
67
|
-
windowDimensions.windowWidth <=
|
|
67
|
+
windowDimensions.windowWidth <= styles_1.ScreenWidth.DESKTOP);
|
|
68
68
|
var router = (0, router_1.useRouter)();
|
|
69
69
|
var isGallery = router.pathname.includes('gallery');
|
|
70
70
|
var handleClick = function (e, type) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { searchSchema as schema } from '@ludo.ninja/api';
|
|
3
|
-
import { TCreationAndCollection } from '
|
|
3
|
+
import { TCreationAndCollection } from '@ludo.ninja/components/dist/modules';
|
|
4
4
|
import GalleryEntityV2 from '@/dto/GalleryEntityV2';
|
|
5
5
|
export type RemoveToolsType = {
|
|
6
6
|
gallery?: GalleryEntityV2;
|
|
@@ -46,12 +46,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
46
46
|
var react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
|
|
47
47
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
48
48
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
49
|
-
var likes_1 = __importDefault(require("
|
|
50
|
-
var useToGalleryAsset_1 = require("
|
|
51
|
-
var
|
|
52
|
-
var colors_1 = require("@/styles/colors");
|
|
53
|
-
var boxShadow_1 = __importDefault(require("@/styles/mixins/boxShadow"));
|
|
54
|
-
var boxTransform_1 = __importDefault(require("@/styles/mixins/boxTransform"));
|
|
49
|
+
var likes_1 = __importDefault(require("@ludo.ninja/components/dist/hooks/likes"));
|
|
50
|
+
var useToGalleryAsset_1 = require("@ludo.ninja/components/dist/hooks/useToGalleryAsset");
|
|
51
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
55
52
|
var CardHead_1 = require("@/components/CreationCard/CardHead");
|
|
56
53
|
var HideLink_1 = __importDefault(require("@/system/Cards/HideLink"));
|
|
57
54
|
var CardCheckbox_1 = __importDefault(require("@/system/Cards/CardCheckbox"));
|
|
@@ -63,10 +60,10 @@ var Headicons_1 = __importDefault(require("@/system/Cards/Styles/Headicons"));
|
|
|
63
60
|
var _system_1 = require("@system");
|
|
64
61
|
var env_1 = require("@/utils/env");
|
|
65
62
|
// Styles
|
|
66
|
-
var StyledRegularCard = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n // ", "\n\n min-height: ", ";\n\n ", "\n .linkRegularCard {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n\n ", " {\n width: 164px;\n min-height: ", ";\n }\n\n ", " {\n width: 154px;\n min-height: ", ";\n }\n\n ", " {\n border-radius: ", ";\n\n min-height: ", ";\n }\n"], ["\n position: relative;\n background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n // ", "\n\n min-height: ", ";\n\n ", "\n .linkRegularCard {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n\n ", " {\n width: 164px;\n min-height: ", ";\n }\n\n ", " {\n width: 154px;\n min-height: ", ";\n }\n\n ", " {\n border-radius: ", ";\n\n min-height: ", ";\n }\n"])),
|
|
63
|
+
var StyledRegularCard = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n // ", "\n\n min-height: ", ";\n\n ", "\n .linkRegularCard {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n\n ", " {\n width: 164px;\n min-height: ", ";\n }\n\n ", " {\n width: 154px;\n min-height: ", ";\n }\n\n ", " {\n border-radius: ", ";\n\n min-height: ", ";\n }\n"], ["\n position: relative;\n background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n // ", "\n\n min-height: ", ";\n\n ", "\n .linkRegularCard {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n\n ", " {\n width: 164px;\n min-height: ", ";\n }\n\n ", " {\n width: 154px;\n min-height: ", ";\n }\n\n ", " {\n border-radius: ", ";\n\n min-height: ", ";\n }\n"])), styles_1.WhiteColor, styles_1.BoxShadow, styles_1.BoxTransform, function (props) { return (props.isNeedTransform ? null : styles_1.BoxTransform); }, function (props) { return (props.isNeedHeight ? '346px' : ''); }, function (props) {
|
|
67
64
|
return props.isShowCheckbox
|
|
68
65
|
? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\n }\n "], ["\n ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\n }\n "])), Headicons_1.default) : (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:hover ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\n }\n "], ["\n &:hover ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\n }\n "])), Headicons_1.default);
|
|
69
|
-
},
|
|
66
|
+
}, styles_1.mediaQuery.maxWidthTablet, function (props) { return (props.isNeedHeight ? '258px' : ''); }, styles_1.mediaQuery.mobile, function (props) { return (props.isNeedHeight ? '244px' : ''); }, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(6), function (props) {
|
|
70
67
|
return props.isNeedHeight ? (0, _4k_1.adaptiveValueCalc)(346) : '';
|
|
71
68
|
});
|
|
72
69
|
// Component
|
|
@@ -48,27 +48,25 @@ var router_1 = require("next/router");
|
|
|
48
48
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
49
49
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
50
50
|
var useDeleteGallery_1 = __importDefault(require("@/api/server-galleries/mutations/useDeleteGallery"));
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var screen_1 = require("@/utils/screen");
|
|
56
|
-
var vars_1 = require("@/fonts/vars");
|
|
51
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
52
|
+
var system_1 = require("@ludo.ninja/components/dist/system");
|
|
53
|
+
var utils_1 = require("@ludo.ninja/components/dist/utils");
|
|
54
|
+
var fonts_1 = require("@ludo.ninja/components/dist/fonts");
|
|
57
55
|
var warning_svg_1 = __importDefault(require("@/public/warning.svg"));
|
|
58
56
|
// Styles
|
|
59
|
-
var StyledDelete = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 534px;\n min-height: 199px;\n display: flex;\n flex-direction: column;\n justify-items: center;\n align-items: center;\n\n & svg {\n margin-bottom: 16px;\n }\n\n ", " {\n min-width: 288px;\n min-height: 220px;\n\n .btns {\n position: static;\n justify-content: center;\n }\n\n .delete,\n .cancel {\n max-width: 133px;\n }\n }\n\n .btns {\n min-width: 280px;\n display: flex;\n gap: 16px;\n margin-bottom: 16px;\n\n .delete {\n width: 100%;\n\n & button {\n font-size: 15px;\n font-weight: 500;\n line-height: 1.47;\n\n @media (max-width: 767px) {\n font-size: 14px;\n line-height: 1.43;\n }\n }\n }\n\n .cancel {\n width: 100%;\n }\n\n & button {\n width: 100%;\n padding: 9px 0;\n }\n\n ", " {\n min-width: 100%;\n }\n }\n\n .title {\n font-family: ", ";\n margin-bottom: 16px;\n font-size: 20px;\n font-weight: 600;\n line-height: 1.4;\n color: ", ";\n text-align: center;\n\n @media (max-width: 767px) {\n max-width: 245px;\n margin-bottom: 20px;\n font-size: 18px;\n line-height: 1.33;\n }\n }\n\n .warning {\n font-family: ", ";\n margin-bottom: 34px;\n font-size: 15px;\n font-weight: 500;\n line-height: 1.46;\n color: ", ";\n\n @media (max-width: 767px) {\n margin-bottom: 32px;\n font-size: 14px;\n line-height: 1.42;\n }\n }\n\n ", " {\n min-width: ", ";\n min-height: ", ";\n\n & svg {\n margin-bottom: ", ";\n }\n\n .btns {\n min-width: ", ";\n gap: ", ";\n margin-bottom: ", ";\n\n .delete {\n & button {\n font-size: ", ";\n }\n }\n\n & button {\n padding: ", " 0;\n }\n }\n\n .title {\n margin-bottom: ", ";\n font-size: ", ";\n }\n\n .warning {\n margin-bottom: ", ";\n font-size: ", ";\n }\n }\n"], ["\n min-width: 534px;\n min-height: 199px;\n display: flex;\n flex-direction: column;\n justify-items: center;\n align-items: center;\n\n & svg {\n margin-bottom: 16px;\n }\n\n ", " {\n min-width: 288px;\n min-height: 220px;\n\n .btns {\n position: static;\n justify-content: center;\n }\n\n .delete,\n .cancel {\n max-width: 133px;\n }\n }\n\n .btns {\n min-width: 280px;\n display: flex;\n gap: 16px;\n margin-bottom: 16px;\n\n .delete {\n width: 100%;\n\n & button {\n font-size: 15px;\n font-weight: 500;\n line-height: 1.47;\n\n @media (max-width: 767px) {\n font-size: 14px;\n line-height: 1.43;\n }\n }\n }\n\n .cancel {\n width: 100%;\n }\n\n & button {\n width: 100%;\n padding: 9px 0;\n }\n\n ", " {\n min-width: 100%;\n }\n }\n\n .title {\n font-family: ", ";\n margin-bottom: 16px;\n font-size: 20px;\n font-weight: 600;\n line-height: 1.4;\n color: ", ";\n text-align: center;\n\n @media (max-width: 767px) {\n max-width: 245px;\n margin-bottom: 20px;\n font-size: 18px;\n line-height: 1.33;\n }\n }\n\n .warning {\n font-family: ", ";\n margin-bottom: 34px;\n font-size: 15px;\n font-weight: 500;\n line-height: 1.46;\n color: ", ";\n\n @media (max-width: 767px) {\n margin-bottom: 32px;\n font-size: 14px;\n line-height: 1.42;\n }\n }\n\n ", " {\n min-width: ", ";\n min-height: ", ";\n\n & svg {\n margin-bottom: ", ";\n }\n\n .btns {\n min-width: ", ";\n gap: ", ";\n margin-bottom: ", ";\n\n .delete {\n & button {\n font-size: ", ";\n }\n }\n\n & button {\n padding: ", " 0;\n }\n }\n\n .title {\n margin-bottom: ", ";\n font-size: ", ";\n }\n\n .warning {\n margin-bottom: ", ";\n font-size: ", ";\n }\n }\n"])),
|
|
57
|
+
var StyledDelete = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 534px;\n min-height: 199px;\n display: flex;\n flex-direction: column;\n justify-items: center;\n align-items: center;\n\n & svg {\n margin-bottom: 16px;\n }\n\n ", " {\n min-width: 288px;\n min-height: 220px;\n\n .btns {\n position: static;\n justify-content: center;\n }\n\n .delete,\n .cancel {\n max-width: 133px;\n }\n }\n\n .btns {\n min-width: 280px;\n display: flex;\n gap: 16px;\n margin-bottom: 16px;\n\n .delete {\n width: 100%;\n\n & button {\n font-size: 15px;\n font-weight: 500;\n line-height: 1.47;\n\n @media (max-width: 767px) {\n font-size: 14px;\n line-height: 1.43;\n }\n }\n }\n\n .cancel {\n width: 100%;\n }\n\n & button {\n width: 100%;\n padding: 9px 0;\n }\n\n ", " {\n min-width: 100%;\n }\n }\n\n .title {\n font-family: ", ";\n margin-bottom: 16px;\n font-size: 20px;\n font-weight: 600;\n line-height: 1.4;\n color: ", ";\n text-align: center;\n\n @media (max-width: 767px) {\n max-width: 245px;\n margin-bottom: 20px;\n font-size: 18px;\n line-height: 1.33;\n }\n }\n\n .warning {\n font-family: ", ";\n margin-bottom: 34px;\n font-size: 15px;\n font-weight: 500;\n line-height: 1.46;\n color: ", ";\n\n @media (max-width: 767px) {\n margin-bottom: 32px;\n font-size: 14px;\n line-height: 1.42;\n }\n }\n\n ", " {\n min-width: ", ";\n min-height: ", ";\n\n & svg {\n margin-bottom: ", ";\n }\n\n .btns {\n min-width: ", ";\n gap: ", ";\n margin-bottom: ", ";\n\n .delete {\n & button {\n font-size: ", ";\n }\n }\n\n & button {\n padding: ", " 0;\n }\n }\n\n .title {\n margin-bottom: ", ";\n font-size: ", ";\n }\n\n .warning {\n margin-bottom: ", ";\n font-size: ", ";\n }\n }\n"], ["\n min-width: 534px;\n min-height: 199px;\n display: flex;\n flex-direction: column;\n justify-items: center;\n align-items: center;\n\n & svg {\n margin-bottom: 16px;\n }\n\n ", " {\n min-width: 288px;\n min-height: 220px;\n\n .btns {\n position: static;\n justify-content: center;\n }\n\n .delete,\n .cancel {\n max-width: 133px;\n }\n }\n\n .btns {\n min-width: 280px;\n display: flex;\n gap: 16px;\n margin-bottom: 16px;\n\n .delete {\n width: 100%;\n\n & button {\n font-size: 15px;\n font-weight: 500;\n line-height: 1.47;\n\n @media (max-width: 767px) {\n font-size: 14px;\n line-height: 1.43;\n }\n }\n }\n\n .cancel {\n width: 100%;\n }\n\n & button {\n width: 100%;\n padding: 9px 0;\n }\n\n ", " {\n min-width: 100%;\n }\n }\n\n .title {\n font-family: ", ";\n margin-bottom: 16px;\n font-size: 20px;\n font-weight: 600;\n line-height: 1.4;\n color: ", ";\n text-align: center;\n\n @media (max-width: 767px) {\n max-width: 245px;\n margin-bottom: 20px;\n font-size: 18px;\n line-height: 1.33;\n }\n }\n\n .warning {\n font-family: ", ";\n margin-bottom: 34px;\n font-size: 15px;\n font-weight: 500;\n line-height: 1.46;\n color: ", ";\n\n @media (max-width: 767px) {\n margin-bottom: 32px;\n font-size: 14px;\n line-height: 1.42;\n }\n }\n\n ", " {\n min-width: ", ";\n min-height: ", ";\n\n & svg {\n margin-bottom: ", ";\n }\n\n .btns {\n min-width: ", ";\n gap: ", ";\n margin-bottom: ", ";\n\n .delete {\n & button {\n font-size: ", ";\n }\n }\n\n & button {\n padding: ", " 0;\n }\n }\n\n .title {\n margin-bottom: ", ";\n font-size: ", ";\n }\n\n .warning {\n margin-bottom: ", ";\n font-size: ", ";\n }\n }\n"])), styles_1.mediaQuery.mobile, styles_1.mediaQuery.mobile, fonts_1.poppinsFontVarCss.css, function (_a) {
|
|
60
58
|
var theme = _a.theme;
|
|
61
59
|
return theme.colors.naturalBlack;
|
|
62
|
-
},
|
|
60
|
+
}, fonts_1.poppinsFontVarCss.css, function (_a) {
|
|
63
61
|
var theme = _a.theme;
|
|
64
62
|
return theme.colors.grayText;
|
|
65
|
-
},
|
|
63
|
+
}, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(534), (0, _4k_1.adaptiveValueCalc)(199), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(280), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(15), (0, _4k_1.adaptiveValueCalc)(9), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(20), (0, _4k_1.adaptiveValueCalc)(34), (0, _4k_1.adaptiveValueCalc)(15));
|
|
66
64
|
// Components
|
|
67
|
-
var SIcon = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"])),
|
|
65
|
+
var SIcon = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", " {\n width: ", ";\n height: ", ";\n }\n"])), styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(40), (0, _4k_1.adaptiveValueCalc)(35));
|
|
68
66
|
var WarningIconResize = function () {
|
|
69
|
-
var windowDimensions = (0,
|
|
67
|
+
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
70
68
|
return (react_1.default.createElement(SIcon, null,
|
|
71
|
-
react_1.default.createElement(warning_svg_1.default, { style: (0,
|
|
69
|
+
react_1.default.createElement(warning_svg_1.default, { style: (0, utils_1.getAdaptiveScale)({
|
|
72
70
|
windowDimensions: windowDimensions,
|
|
73
71
|
currentSize: 1,
|
|
74
72
|
}) })));
|
|
@@ -98,13 +96,13 @@ var DeleteDialog = function (_a) {
|
|
|
98
96
|
}); };
|
|
99
97
|
return (react_1.default.createElement(StyledDelete, null,
|
|
100
98
|
react_1.default.createElement(WarningIconResize, null),
|
|
101
|
-
react_1.default.createElement(
|
|
99
|
+
react_1.default.createElement(system_1.H2, { className: "title" }, "Are you sure you want to delete this gallery?"),
|
|
102
100
|
react_1.default.createElement("p", { className: "warning" }, "Gallery can\u2019t be restored after deleting."),
|
|
103
101
|
react_1.default.createElement("div", { className: 'btns' },
|
|
104
102
|
react_1.default.createElement("div", { className: 'delete' },
|
|
105
|
-
react_1.default.createElement(
|
|
103
|
+
react_1.default.createElement(system_1.MainButton, { text: 'Delete', type: 'button', variant: "danger", onClick: function () { return hendleDelete(galleryId); } })),
|
|
106
104
|
react_1.default.createElement("div", { className: 'cancel' },
|
|
107
|
-
react_1.default.createElement(
|
|
105
|
+
react_1.default.createElement(system_1.MainButton, { text: 'Cancel', variant: "outline", onClick: onHide })))));
|
|
108
106
|
};
|
|
109
107
|
// Export
|
|
110
108
|
exports.default = DeleteDialog;
|
|
@@ -44,22 +44,21 @@ 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
|
|
48
|
-
var
|
|
49
|
-
var colors_1 = require("@/styles/colors");
|
|
47
|
+
var store_1 = require("@ludo.ninja/components/dist/store");
|
|
48
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
50
49
|
var applyResetBtns_1 = __importDefault(require("@/components/filters/applyResetBtns"));
|
|
51
50
|
var mobileFilters_1 = __importDefault(require("@/components/filters/mobileFilters"));
|
|
52
51
|
var sidebarFilters_1 = __importDefault(require("@/components/sidebar/sidebarFilters"));
|
|
53
52
|
var DesktopSelect_1 = __importDefault(require("@/system/Forms/Selects/DesktopSelect"));
|
|
54
53
|
var MobileSelect_1 = __importDefault(require("@/system/Forms/Selects/MobileSelect"));
|
|
55
54
|
// Styles
|
|
56
|
-
var StyledFilters = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n\n .select {\n margin-right: 8px;\n margin-top: 8px;\n }\n\n .type {\n width: 154px;\n }\n\n .blockchain {\n width: 163px;\n }\n\n .category {\n width: 156px;\n }\n\n .time {\n width: 125px;\n }\n\n .status {\n width: 135px;\n margin-right: 24px;\n }\n\n .filterButton {\n width: 100%;\n\n button {\n position: relative;\n width: 100%;\n border: 1px solid transparent;\n outline: none;\n background-color: white;\n padding: 10px 85px;\n border-radius: 6px;\n min-height: 40px;\n font-size: 1.4em;\n color: ", ";\n font-weight: 500;\n transition: all 0.3s ease-in;\n\n &:hover {\n transition: all 0.3s ease-in-out;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n }\n\n .counter {\n position: absolute;\n background-color: ", ";\n color: white;\n right: -5px;\n padding: 8px;\n font-size: 0.86em;\n font-weight: 500;\n border-radius: 50%;\n top: -10px;\n width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n }\n\n ", " {\n .select {\n margin-right: ", ";\n margin-top: ", ";\n }\n .type {\n width: ", ";\n }\n .blockchain {\n width: ", ";\n }\n .category {\n width: ", ";\n }\n .time {\n width: ", ";\n }\n .status {\n width: ", ";\n margin-right: ", ";\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n .select {\n margin-right: 8px;\n margin-top: 8px;\n }\n\n .type {\n width: 154px;\n }\n\n .blockchain {\n width: 163px;\n }\n\n .category {\n width: 156px;\n }\n\n .time {\n width: 125px;\n }\n\n .status {\n width: 135px;\n margin-right: 24px;\n }\n\n .filterButton {\n width: 100%;\n\n button {\n position: relative;\n width: 100%;\n border: 1px solid transparent;\n outline: none;\n background-color: white;\n padding: 10px 85px;\n border-radius: 6px;\n min-height: 40px;\n font-size: 1.4em;\n color: ", ";\n font-weight: 500;\n transition: all 0.3s ease-in;\n\n &:hover {\n transition: all 0.3s ease-in-out;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n }\n\n .counter {\n position: absolute;\n background-color: ", ";\n color: white;\n right: -5px;\n padding: 8px;\n font-size: 0.86em;\n font-weight: 500;\n border-radius: 50%;\n top: -10px;\n width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n }\n\n ", " {\n .select {\n margin-right: ", ";\n margin-top: ", ";\n }\n .type {\n width: ", ";\n }\n .blockchain {\n width: ", ";\n }\n .category {\n width: ", ";\n }\n .time {\n width: ", ";\n }\n .status {\n width: ", ";\n margin-right: ", ";\n }\n }\n"])),
|
|
55
|
+
var StyledFilters = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n\n .select {\n margin-right: 8px;\n margin-top: 8px;\n }\n\n .type {\n width: 154px;\n }\n\n .blockchain {\n width: 163px;\n }\n\n .category {\n width: 156px;\n }\n\n .time {\n width: 125px;\n }\n\n .status {\n width: 135px;\n margin-right: 24px;\n }\n\n .filterButton {\n width: 100%;\n\n button {\n position: relative;\n width: 100%;\n border: 1px solid transparent;\n outline: none;\n background-color: white;\n padding: 10px 85px;\n border-radius: 6px;\n min-height: 40px;\n font-size: 1.4em;\n color: ", ";\n font-weight: 500;\n transition: all 0.3s ease-in;\n\n &:hover {\n transition: all 0.3s ease-in-out;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n }\n\n .counter {\n position: absolute;\n background-color: ", ";\n color: white;\n right: -5px;\n padding: 8px;\n font-size: 0.86em;\n font-weight: 500;\n border-radius: 50%;\n top: -10px;\n width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n }\n\n ", " {\n .select {\n margin-right: ", ";\n margin-top: ", ";\n }\n .type {\n width: ", ";\n }\n .blockchain {\n width: ", ";\n }\n .category {\n width: ", ";\n }\n .time {\n width: ", ";\n }\n .status {\n width: ", ";\n margin-right: ", ";\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n .select {\n margin-right: 8px;\n margin-top: 8px;\n }\n\n .type {\n width: 154px;\n }\n\n .blockchain {\n width: 163px;\n }\n\n .category {\n width: 156px;\n }\n\n .time {\n width: 125px;\n }\n\n .status {\n width: 135px;\n margin-right: 24px;\n }\n\n .filterButton {\n width: 100%;\n\n button {\n position: relative;\n width: 100%;\n border: 1px solid transparent;\n outline: none;\n background-color: white;\n padding: 10px 85px;\n border-radius: 6px;\n min-height: 40px;\n font-size: 1.4em;\n color: ", ";\n font-weight: 500;\n transition: all 0.3s ease-in;\n\n &:hover {\n transition: all 0.3s ease-in-out;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n }\n\n .counter {\n position: absolute;\n background-color: ", ";\n color: white;\n right: -5px;\n padding: 8px;\n font-size: 0.86em;\n font-weight: 500;\n border-radius: 50%;\n top: -10px;\n width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n }\n\n ", " {\n .select {\n margin-right: ", ";\n margin-top: ", ";\n }\n .type {\n width: ", ";\n }\n .blockchain {\n width: ", ";\n }\n .category {\n width: ", ";\n }\n .time {\n width: ", ";\n }\n .status {\n width: ", ";\n margin-right: ", ";\n }\n }\n"])), styles_1.BlackColor, styles_1.InactiveButtonColor, styles_1.AccentColor, styles_1.BorderColorLight, styles_1.AccentColor, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(154), (0, _4k_1.adaptiveValueCalc)(163), (0, _4k_1.adaptiveValueCalc)(156), (0, _4k_1.adaptiveValueCalc)(125), (0, _4k_1.adaptiveValueCalc)(135), (0, _4k_1.adaptiveValueCalc)(24));
|
|
57
56
|
// Component
|
|
58
57
|
var Filters = function (_a) {
|
|
59
58
|
var filterInputHandler = _a.filterInputHandler, handleResetFilter = _a.handleResetFilter, selectData = _a.selectData, filterInput = _a.filterInput, handleMobileFilterInput = _a.handleMobileFilterInput, isMobile = _a.isMobile;
|
|
60
59
|
var _b = (0, react_1.useState)(false), isSideBarOpen = _b[0], setSidebarOpen = _b[1];
|
|
61
60
|
var selectedFiltersCount = (0, react_1.useState)(0)[0];
|
|
62
|
-
var _c = (0,
|
|
61
|
+
var _c = (0, store_1.useUiStore)(function (state) { return ({
|
|
63
62
|
openOverLay: state.openOverLay,
|
|
64
63
|
closeOverlay: state.closeOverlay,
|
|
65
64
|
}); }), openOverLay = _c.openOverLay, closeOverlay = _c.closeOverlay;
|
|
@@ -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
|
|
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"));
|
|
@@ -55,8 +55,8 @@ var RadioInput_1 = __importDefault(require("@/system/Forms/RadioInput"));
|
|
|
55
55
|
var _system_1 = require("@system");
|
|
56
56
|
var Title = (0, styled_components_1.default)(_system_1.H1)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 24px;\n text-align: center;\n"], ["\n margin-bottom: 24px;\n text-align: center;\n"])));
|
|
57
57
|
var Description = (0, styled_components_1.default)(Text_1.MainText)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n text-align: justify;\n"], ["\n color: ", ";\n text-align: justify;\n"])), colors_1.TextGrayColor);
|
|
58
|
-
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n justify-content: center;\n\n ", " {\n width: 100%;\n align-items: center;\n flex-direction: column-reverse;\n margin: 0;\n }\n"], ["\n justify-content: center;\n\n ", " {\n width: 100%;\n align-items: center;\n flex-direction: column-reverse;\n margin: 0;\n }\n"])),
|
|
59
|
-
var FormWrapper = styled_components_1.default.form(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 0 50px 0 70px;\n justify-content: center;\n width: 472px;\n\n ", " {\n margin: 0 25px 0 25px;\n width: 450px;\n }\n\n ", " {\n margin: 0;\n width: 320px;\n }\n"], ["\n margin: 0 50px 0 70px;\n justify-content: center;\n width: 472px;\n\n ", " {\n margin: 0 25px 0 25px;\n width: 450px;\n }\n\n ", " {\n margin: 0;\n width: 320px;\n }\n"])),
|
|
58
|
+
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n justify-content: center;\n\n ", " {\n width: 100%;\n align-items: center;\n flex-direction: column-reverse;\n margin: 0;\n }\n"], ["\n justify-content: center;\n\n ", " {\n width: 100%;\n align-items: center;\n flex-direction: column-reverse;\n margin: 0;\n }\n"])), styles_1.mediaQuery.tablet);
|
|
59
|
+
var FormWrapper = styled_components_1.default.form(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 0 50px 0 70px;\n justify-content: center;\n width: 472px;\n\n ", " {\n margin: 0 25px 0 25px;\n width: 450px;\n }\n\n ", " {\n margin: 0;\n width: 320px;\n }\n"], ["\n margin: 0 50px 0 70px;\n justify-content: center;\n width: 472px;\n\n ", " {\n margin: 0 25px 0 25px;\n width: 450px;\n }\n\n ", " {\n margin: 0;\n width: 320px;\n }\n"])), styles_1.mediaQuery.desktop, styles_1.mediaQuery.tablet);
|
|
60
60
|
var InputTitle = (0, styled_components_1.default)(_system_1.H5)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: 8px;\n"], ["\n margin-bottom: 8px;\n"])));
|
|
61
61
|
var RadioInput = (0, styled_components_1.default)(RadioInput_1.default)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), colors_1.TextGrayColor);
|
|
62
62
|
var StyledInputGroup = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n margin-top: 24px;\n"], ["\n position: relative;\n width: 100%;\n margin-top: 24px;\n"])));
|
|
@@ -34,8 +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
|
|
38
|
-
var colors_1 = require("@/styles/colors");
|
|
37
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
39
38
|
var types_1 = require("@/components/forms/types");
|
|
40
39
|
var _system_1 = require("@system");
|
|
41
40
|
var back_svg_1 = __importDefault(require("@/public/settings_page/back.svg"));
|
|
@@ -55,9 +54,9 @@ var NAVIGATION_TABS = [
|
|
|
55
54
|
label: 'Investor Relations Inquiry Form',
|
|
56
55
|
},
|
|
57
56
|
];
|
|
58
|
-
var StyledFlex = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n\n ", " {\n cursor: pointer;\n position: absolute;\n top: 22px;\n right: 20px;\n z-index: 3;\n display: flex;\n }\n"], ["\n display: none;\n\n ", " {\n cursor: pointer;\n position: absolute;\n top: 22px;\n right: 20px;\n z-index: 3;\n display: flex;\n }\n"])),
|
|
59
|
-
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"], ["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"])),
|
|
60
|
-
var List = styled_components_1.default.ul(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n margin: 4px 0;\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n &:hover {\n background: ", ";\n opacity: 0.9;\n }\n\n .link {\n width: 100%;\n height: 100%;\n align-content: center;\n color: inherit;\n }\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n }\n }\n"], ["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n margin: 4px 0;\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n &:hover {\n background: ", ";\n opacity: 0.9;\n }\n\n .link {\n width: 100%;\n height: 100%;\n align-content: center;\n color: inherit;\n }\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n }\n }\n"])),
|
|
57
|
+
var StyledFlex = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n\n ", " {\n cursor: pointer;\n position: absolute;\n top: 22px;\n right: 20px;\n z-index: 3;\n display: flex;\n }\n"], ["\n display: none;\n\n ", " {\n cursor: pointer;\n position: absolute;\n top: 22px;\n right: 20px;\n z-index: 3;\n display: flex;\n }\n"])), styles_1.mediaQuery.tablet);
|
|
58
|
+
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"], ["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"])), styles_1.mediaQuery.tablet, styles_1.BackgroundColorLight);
|
|
59
|
+
var List = styled_components_1.default.ul(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n margin: 4px 0;\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n &:hover {\n background: ", ";\n opacity: 0.9;\n }\n\n .link {\n width: 100%;\n height: 100%;\n align-content: center;\n color: inherit;\n }\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n }\n }\n"], ["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n margin: 4px 0;\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n &:hover {\n background: ", ";\n opacity: 0.9;\n }\n\n .link {\n width: 100%;\n height: 100%;\n align-content: center;\n color: inherit;\n }\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n }\n }\n"])), styles_1.mediaQuery.tablet, styles_1.TextGrayColor, styles_1.InactiveButtonColor, styles_1.mediaQuery.tablet, styles_1.InactiveButtonColor, styles_1.BlackColor, styles_1.mediaQuery.tablet);
|
|
61
60
|
var FormsNavigation = function () {
|
|
62
61
|
var _a;
|
|
63
62
|
var _b = (0, react_1.useState)(false), isOpen = _b[0], setIsOpen = _b[1];
|
|
@@ -95,21 +95,21 @@ 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
|
|
99
|
-
var
|
|
100
|
-
var
|
|
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");
|
|
104
104
|
var Messages_1 = __importDefault(require("@/system/Forms/Messages"));
|
|
105
105
|
var _system_1 = require("@system");
|
|
106
|
-
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " {\n margin-left: 30px;\n }\n\n ", " {\n margin-left: 0;\n padding-top: 30px;\n flex-direction: column;\n }\n\n ", " {\n padding-top: 0;\n margin-top: -15px;\n }\n"], ["\n ", " {\n margin-left: 30px;\n }\n\n ", " {\n margin-left: 0;\n padding-top: 30px;\n flex-direction: column;\n }\n\n ", " {\n padding-top: 0;\n margin-top: -15px;\n }\n"])),
|
|
106
|
+
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " {\n margin-left: 30px;\n }\n\n ", " {\n margin-left: 0;\n padding-top: 30px;\n flex-direction: column;\n }\n\n ", " {\n padding-top: 0;\n margin-top: -15px;\n }\n"], ["\n ", " {\n margin-left: 30px;\n }\n\n ", " {\n margin-left: 0;\n padding-top: 30px;\n flex-direction: column;\n }\n\n ", " {\n padding-top: 0;\n margin-top: -15px;\n }\n"])), styles_1.mediaQuery.desktop, styles_1.mediaQuery.tablet, styles_1.mediaQuery.bigPhone);
|
|
107
107
|
var FormsTemplate = function () {
|
|
108
108
|
var router = (0, router_1.useRouter)();
|
|
109
|
-
var getUser = (0,
|
|
109
|
+
var getUser = (0, modules_1.useUserStore)(function (state) { return state.user; });
|
|
110
110
|
var executeRecaptcha = (0, react_google_recaptcha_v3_1.useGoogleReCaptcha)().executeRecaptcha;
|
|
111
111
|
var query = router.query;
|
|
112
|
-
var openAlert = (0,
|
|
112
|
+
var openAlert = (0, store_1.useUiStore)(function (state) { return state.openAlert; });
|
|
113
113
|
var formId = query.formId, nameOfSubject = query.nameOfSubject, contentId = query.contentId;
|
|
114
114
|
var form = getForm(formId);
|
|
115
115
|
var initialValues = {};
|
|
@@ -9,15 +9,15 @@ 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
|
|
13
|
-
var
|
|
14
|
-
var
|
|
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
|
-
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"])),
|
|
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
|
|
18
18
|
var HeaderExperienceLabel = function (_a) {
|
|
19
19
|
var userId = _a.userId;
|
|
20
|
-
var _b = (0,
|
|
20
|
+
var _b = (0, modules_1.useUserStore)(function (state) { return ({
|
|
21
21
|
userExp: state.userExp,
|
|
22
22
|
isLoadingExp: state.isLoadingExp,
|
|
23
23
|
errorExp: state.errorExp,
|
|
@@ -25,7 +25,7 @@ var HeaderExperienceLabel = function (_a) {
|
|
|
25
25
|
if (!userId)
|
|
26
26
|
return null;
|
|
27
27
|
return (React.createElement(StyledHeaderExperienceLabel, null,
|
|
28
|
-
React.createElement(
|
|
28
|
+
React.createElement(system_1.default, { value: userExp.xps, link: "/rewards/".concat(userId), loading: isLoadingExp || !!errorExp })));
|
|
29
29
|
};
|
|
30
30
|
// Export
|
|
31
31
|
exports.default = HeaderExperienceLabel;
|
|
@@ -10,17 +10,17 @@ 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
|
|
14
|
-
var
|
|
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
|
-
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"])),
|
|
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
|
|
18
18
|
var HeaderUserPick = function (_a) {
|
|
19
19
|
var userId = _a.userId;
|
|
20
20
|
if (!userId)
|
|
21
21
|
return null;
|
|
22
22
|
return (react_1.default.createElement(StyledHeaderUserPick, null,
|
|
23
|
-
react_1.default.createElement(
|
|
23
|
+
react_1.default.createElement(system_1.default, { width: 32, height: 32, userId: userId, isNeedBoxTransform: true })));
|
|
24
24
|
};
|
|
25
25
|
// Export
|
|
26
26
|
exports.default = HeaderUserPick;
|
|
@@ -11,21 +11,16 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
13
13
|
var utils_1 = require("@ludo.ninja/utils");
|
|
14
|
-
var
|
|
15
|
-
var colors_2 = require("@/styles/colors");
|
|
16
|
-
var boxShadow_1 = __importDefault(require("@/styles/mixins/boxShadow"));
|
|
17
|
-
var boxTransform_1 = __importDefault(require("@/styles/mixins/boxTransform"));
|
|
18
|
-
var typography_1 = require("@/styles/typography");
|
|
14
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
19
15
|
var loader_1 = __importDefault(require("@/components/inviteCodesPage/wrappers/resumeCodes/loader"));
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var vars_1 = require("@/fonts/vars");
|
|
16
|
+
var system_1 = require("@ludo.ninja/components/dist/system");
|
|
17
|
+
var fonts_1 = require("@ludo.ninja/components/dist/fonts");
|
|
23
18
|
// Styles
|
|
24
|
-
var StyledResumeCodes = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n background-color: ", ";\n padding: 24px 32px;\n border-radius: 8px;\n text-align: left;\n\n ", " {\n padding: 20px;\n }\n"], ["\n ", ";\n ", ";\n background-color: ", ";\n padding: 24px 32px;\n border-radius: 8px;\n text-align: left;\n\n ", " {\n padding: 20px;\n }\n"])),
|
|
25
|
-
var StyledResumeCodesCaption = (0, styled_components_1.default)(
|
|
26
|
-
var StyledResumeCodesSubCaption = (0, styled_components_1.default)(
|
|
27
|
-
var StyledResumeCodesText = (0, styled_components_1.default)(
|
|
28
|
-
var StyledAddCodesText = (0, styled_components_1.default)(
|
|
19
|
+
var StyledResumeCodes = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n background-color: ", ";\n padding: 24px 32px;\n border-radius: 8px;\n text-align: left;\n\n ", " {\n padding: 20px;\n }\n"], ["\n ", ";\n ", ";\n background-color: ", ";\n padding: 24px 32px;\n border-radius: 8px;\n text-align: left;\n\n ", " {\n padding: 20px;\n }\n"])), styles_1.BoxShadow, styles_1.BoxTransform, styles_1.WhiteColor, styles_1.mediaQuery.mobile);
|
|
20
|
+
var StyledResumeCodesCaption = (0, styled_components_1.default)(system_1.H1)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n\n strong {\n color: ", ";\n }\n"], ["\n color: ", ";\n\n strong {\n color: ", ";\n }\n"])), styles_1.BlackColor, styles_1.AccentColor);
|
|
21
|
+
var StyledResumeCodesSubCaption = (0, styled_components_1.default)(system_1.H3)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: 12px;\n color: ", ";\n\n strong {\n color: ", ";\n }\n"], ["\n margin-top: 12px;\n color: ", ";\n\n strong {\n color: ", ";\n }\n"])), styles_1.TextGrayColor, styles_1.BlackColor);
|
|
22
|
+
var StyledResumeCodesText = (0, styled_components_1.default)(system_1.MainText)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: ", ";\n margin-top: 24px;\n color: ", ";\n"], ["\n font-family: ", ";\n margin-top: 24px;\n color: ", ";\n"])), fonts_1.dmsansFontVarCss.css, styles_1.TextGrayColor);
|
|
23
|
+
var StyledAddCodesText = (0, styled_components_1.default)(system_1.MainText)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n font-family: ", ";\n margin-top: 24px;\n margin-bottom: 16px;\n color: ", ";\n"], ["\n ", ";\n font-family: ", ";\n margin-top: 24px;\n margin-bottom: 16px;\n color: ", ";\n"])), styles_1.FH5, fonts_1.dmsansFontVarCss.css, colors_1.TextGray2Color);
|
|
29
24
|
// Component
|
|
30
25
|
var ResumeCodes = function (_a) {
|
|
31
26
|
var invites = _a.invites, activeInvites = _a.activeInvites, isLoading = _a.isLoading, userId = _a.userId;
|
|
@@ -45,7 +40,7 @@ var ResumeCodes = function (_a) {
|
|
|
45
40
|
"already")),
|
|
46
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."),
|
|
47
42
|
react_1.default.createElement(StyledAddCodesText, null, "Do you have more friends to invite?"),
|
|
48
|
-
react_1.default.createElement(
|
|
43
|
+
react_1.default.createElement(system_1.MainButton, { onClick: function () {
|
|
49
44
|
return window.open("".concat(utils_1.ASK_MORE_INVITES_GOOGLE_FORM).concat(userId), '_blank');
|
|
50
45
|
}, variant: "primaryM", text: 'Ask for more invites' })));
|
|
51
46
|
};
|
|
@@ -10,10 +10,9 @@ 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
|
|
14
|
-
var colors_1 = require("@/styles/colors");
|
|
13
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
15
14
|
// Styles
|
|
16
|
-
var StyledLinkTabs = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 24px;\n position: relative;\n\n &::after {\n display: ", ";\n position: absolute;\n content: '';\n border-bottom: 1px solid ", ";\n width: 100%;\n bottom: -4px;\n left: 0;\n right: 0;\n }\n\n a {\n margin-left: 32px;\n\n :first-child {\n margin: 0;\n }\n }\n ", " {\n margin-bottom: ", ";\n\n &::after {\n bottom: ", ";\n border-bottom-width: ", ";\n }\n a {\n margin-left: ", ";\n }\n }\n"], ["\n margin-bottom: 24px;\n position: relative;\n\n &::after {\n display: ", ";\n position: absolute;\n content: '';\n border-bottom: 1px solid ", ";\n width: 100%;\n bottom: -4px;\n left: 0;\n right: 0;\n }\n\n a {\n margin-left: 32px;\n\n :first-child {\n margin: 0;\n }\n }\n ", " {\n margin-bottom: ", ";\n\n &::after {\n bottom: ", ";\n border-bottom-width: ", ";\n }\n a {\n margin-left: ", ";\n }\n }\n"])), function (props) { return (props.isUnderlined ? 'block' : 'none'); },
|
|
15
|
+
var StyledLinkTabs = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: 24px;\n position: relative;\n\n &::after {\n display: ", ";\n position: absolute;\n content: '';\n border-bottom: 1px solid ", ";\n width: 100%;\n bottom: -4px;\n left: 0;\n right: 0;\n }\n\n a {\n margin-left: 32px;\n\n :first-child {\n margin: 0;\n }\n }\n ", " {\n margin-bottom: ", ";\n\n &::after {\n bottom: ", ";\n border-bottom-width: ", ";\n }\n a {\n margin-left: ", ";\n }\n }\n"], ["\n margin-bottom: 24px;\n position: relative;\n\n &::after {\n display: ", ";\n position: absolute;\n content: '';\n border-bottom: 1px solid ", ";\n width: 100%;\n bottom: -4px;\n left: 0;\n right: 0;\n }\n\n a {\n margin-left: 32px;\n\n :first-child {\n margin: 0;\n }\n }\n ", " {\n margin-bottom: ", ";\n\n &::after {\n bottom: ", ";\n border-bottom-width: ", ";\n }\n a {\n margin-left: ", ";\n }\n }\n"])), function (props) { return (props.isUnderlined ? 'block' : 'none'); }, styles_1.BorderColorLight, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(24), (0, _4k_1.adaptiveValueCalc)(-4), (0, _4k_1.adaptiveValueCalc)(1), (0, _4k_1.adaptiveValueCalc)(32));
|
|
17
16
|
// Component
|
|
18
17
|
var LinkTabs = function (_a) {
|
|
19
18
|
var isUnderlined = _a.isUnderlined, children = _a.children, style = _a.style;
|
|
@@ -11,15 +11,13 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var link_1 = __importDefault(require("next/link"));
|
|
12
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
13
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var typography_1 = require("@/styles/typography");
|
|
17
|
-
var screen_1 = require("@/utils/screen");
|
|
14
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
15
|
+
var utils_1 = require("@ludo.ninja/components/dist/utils");
|
|
18
16
|
// Styles
|
|
19
|
-
var StyledLinkTab = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n color: ", ";\n cursor: pointer;\n ", ";\n user-select: none;\n line-height: 1.4em;\n text-decoration: none;\n\n .count {\n margin-right: 8px;\n font-weight: 600;\n color: ", ";\n }\n\n :before {\n content: '';\n position: absolute;\n display: block;\n width: 100%;\n height: 3px;\n bottom: -4px;\n left: 0;\n background-color: #000;\n transform: ", ";\n transition: all 0.2s ease;\n }\n\n :hover {\n color: ", ";\n\n .count {\n color: ", ";\n }\n }\n\n :hover::before {\n transform: scaleX(1);\n transition: transform 0.2s ease-in-out;\n }\n\n ", " {\n line-height: ", ";\n\n .count {\n margin-right: ", ";\n }\n\n :before {\n height: ", ";\n bottom: ", ";\n }\n }\n"], ["\n position: relative;\n color: ", ";\n cursor: pointer;\n ", ";\n user-select: none;\n line-height: 1.4em;\n text-decoration: none;\n\n .count {\n margin-right: 8px;\n font-weight: 600;\n color: ", ";\n }\n\n :before {\n content: '';\n position: absolute;\n display: block;\n width: 100%;\n height: 3px;\n bottom: -4px;\n left: 0;\n background-color: #000;\n transform: ", ";\n transition: all 0.2s ease;\n }\n\n :hover {\n color: ", ";\n\n .count {\n color: ", ";\n }\n }\n\n :hover::before {\n transform: scaleX(1);\n transition: transform 0.2s ease-in-out;\n }\n\n ", " {\n line-height: ", ";\n\n .count {\n margin-right: ", ";\n }\n\n :before {\n height: ", ";\n bottom: ", ";\n }\n }\n"])), function (props) { return (props.isActive ?
|
|
17
|
+
var StyledLinkTab = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n color: ", ";\n cursor: pointer;\n ", ";\n user-select: none;\n line-height: 1.4em;\n text-decoration: none;\n\n .count {\n margin-right: 8px;\n font-weight: 600;\n color: ", ";\n }\n\n :before {\n content: '';\n position: absolute;\n display: block;\n width: 100%;\n height: 3px;\n bottom: -4px;\n left: 0;\n background-color: #000;\n transform: ", ";\n transition: all 0.2s ease;\n }\n\n :hover {\n color: ", ";\n\n .count {\n color: ", ";\n }\n }\n\n :hover::before {\n transform: scaleX(1);\n transition: transform 0.2s ease-in-out;\n }\n\n ", " {\n line-height: ", ";\n\n .count {\n margin-right: ", ";\n }\n\n :before {\n height: ", ";\n bottom: ", ";\n }\n }\n"], ["\n position: relative;\n color: ", ";\n cursor: pointer;\n ", ";\n user-select: none;\n line-height: 1.4em;\n text-decoration: none;\n\n .count {\n margin-right: 8px;\n font-weight: 600;\n color: ", ";\n }\n\n :before {\n content: '';\n position: absolute;\n display: block;\n width: 100%;\n height: 3px;\n bottom: -4px;\n left: 0;\n background-color: #000;\n transform: ", ";\n transition: all 0.2s ease;\n }\n\n :hover {\n color: ", ";\n\n .count {\n color: ", ";\n }\n }\n\n :hover::before {\n transform: scaleX(1);\n transition: transform 0.2s ease-in-out;\n }\n\n ", " {\n line-height: ", ";\n\n .count {\n margin-right: ", ";\n }\n\n :before {\n height: ", ";\n bottom: ", ";\n }\n }\n"])), function (props) { return (props.isActive ? styles_1.BlackColor : styles_1.TextGrayColor); }, function (props) { return (props.isMobile ? styles_1.FH3 : styles_1.FH2); }, function (props) { return (props.isActive ? styles_1.AccentColor : styles_1.TextGrayColor); }, function (props) { return (props.isActive ? 'scaleX(1)' : 'scaleX(0)'); }, styles_1.BlackColor, function (props) { return (props.isActive ? styles_1.AccentColor : styles_1.BlackColor); }, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(22), (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(3), (0, _4k_1.adaptiveValueCalc)(-4));
|
|
20
18
|
var LinkTabs = function (_a) {
|
|
21
19
|
var link = _a.link, isActive = _a.isActive, countItems = _a.countItems, text = _a.text;
|
|
22
|
-
var deviceType = (0,
|
|
20
|
+
var deviceType = (0, utils_1.useWindowDimensions)().deviceType;
|
|
23
21
|
return (react_1.default.createElement(link_1.default, { href: link },
|
|
24
22
|
react_1.default.createElement(StyledLinkTab, { isActive: isActive, isMobile: deviceType === 'isMobile' },
|
|
25
23
|
countItems !== null && (react_1.default.createElement("strong", { className: 'count' }, countItems)),
|
|
@@ -34,7 +34,7 @@ exports.NavigationTabs = void 0;
|
|
|
34
34
|
var react_1 = __importStar(require("react"));
|
|
35
35
|
var router_1 = require("next/router");
|
|
36
36
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
37
|
-
var
|
|
37
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
38
38
|
// import NotificationIcon from '@/public/settings_page/notifications.svg';
|
|
39
39
|
// import NotificationActiveIcon from '@/public/settings_page/notifications_active.svg';
|
|
40
40
|
var colors_1 = require("@/styles/colors");
|
|
@@ -51,10 +51,10 @@ var NavigationTabs;
|
|
|
51
51
|
NavigationTabs["notifications"] = "notifications";
|
|
52
52
|
NavigationTabs["privacy"] = "privacy";
|
|
53
53
|
})(NavigationTabs || (exports.NavigationTabs = NavigationTabs = {}));
|
|
54
|
-
var StyledFlex = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n\n ", " {\n cursor: pointer;\n position: relative;\n // position: ", ";\n z-index: 1;\n display: flex;\n }\n"], ["\n display: none;\n\n ", " {\n cursor: pointer;\n position: relative;\n // position: ", ";\n z-index: 1;\n display: flex;\n }\n"])),
|
|
55
|
-
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"], ["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"])),
|
|
56
|
-
var StyledH1 = (0, styled_components_1.default)(_system_1.H1)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", " {\n padding-top: 25px;\n text-align: center;\n }\n ", " {\n margin-top: -45px;\n }\n\n svg {\n display: none;\n ", " {\n display: flex;\n cursor: pointer;\n position: absolute;\n left: 15px;\n margin-top: -25px;\n }\n // ", " {\n // margin-top: -25px;\n // }\n }\n"], ["\n ", " {\n padding-top: 25px;\n text-align: center;\n }\n ", " {\n margin-top: -45px;\n }\n\n svg {\n display: none;\n ", " {\n display: flex;\n cursor: pointer;\n position: absolute;\n left: 15px;\n margin-top: -25px;\n }\n // ", " {\n // margin-top: -25px;\n // }\n }\n"])),
|
|
57
|
-
var List = styled_components_1.default.ul(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n .activeIcon {\n display: none;\n }\n .icon {\n display: flex;\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n\n .icon {\n display: none;\n }\n .activeIcon {\n display: flex;\n }\n }\n }\n"], ["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n .activeIcon {\n display: none;\n }\n .icon {\n display: flex;\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n\n .icon {\n display: none;\n }\n .activeIcon {\n display: flex;\n }\n }\n }\n"])),
|
|
54
|
+
var StyledFlex = (0, styled_components_1.default)(_system_1.Flex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n\n ", " {\n cursor: pointer;\n position: relative;\n // position: ", ";\n z-index: 1;\n display: flex;\n }\n"], ["\n display: none;\n\n ", " {\n cursor: pointer;\n position: relative;\n // position: ", ";\n z-index: 1;\n display: flex;\n }\n"])), styles_1.mediaQuery.tablet, function (props) { return (props.isOpen ? 'fixed' : 'relative'); });
|
|
55
|
+
var Wrapper = (0, styled_components_1.default)(_system_1.Flex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"], ["\n flex-direction: column;\n width: 250px;\n\n ", " {\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n padding-top: 110px;\n padding-left: 25px;\n position: fixed;\n overflow: hidden;\n transition: transform ease-in-out 300ms;\n background: ", ";\n box-shadow: 20px 16px 32px -16px rgba(33, 21, 95, 0.2);\n z-index: 1;\n\n &.hide {\n transform: translate(calc(-100% - 20px), 0);\n }\n\n &.show {\n transform: translate(0%, 0%);\n }\n }\n"])), styles_1.mediaQuery.tablet, colors_1.BackgroundColorLight);
|
|
56
|
+
var StyledH1 = (0, styled_components_1.default)(_system_1.H1)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", " {\n padding-top: 25px;\n text-align: center;\n }\n ", " {\n margin-top: -45px;\n }\n\n svg {\n display: none;\n ", " {\n display: flex;\n cursor: pointer;\n position: absolute;\n left: 15px;\n margin-top: -25px;\n }\n // ", " {\n // margin-top: -25px;\n // }\n }\n"], ["\n ", " {\n padding-top: 25px;\n text-align: center;\n }\n ", " {\n margin-top: -45px;\n }\n\n svg {\n display: none;\n ", " {\n display: flex;\n cursor: pointer;\n position: absolute;\n left: 15px;\n margin-top: -25px;\n }\n // ", " {\n // margin-top: -25px;\n // }\n }\n"])), styles_1.mediaQuery.tablet, styles_1.mediaQuery.bigPhone, styles_1.mediaQuery.tablet, styles_1.mediaQuery.bigPhone);
|
|
57
|
+
var List = styled_components_1.default.ul(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n .activeIcon {\n display: none;\n }\n .icon {\n display: flex;\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n\n .icon {\n display: none;\n }\n .activeIcon {\n display: flex;\n }\n }\n }\n"], ["\n margin: 0;\n padding: 20px 0 0 0;\n list-style-type: none;\n\n ", " {\n padding-left: 50px;\n }\n\n li {\n padding-left: 5px;\n display: flex;\n align-items: center;\n width: 100%;\n height: 50px;\n font-size: 15px;\n cursor: pointer;\n color: ", ";\n\n svg {\n margin-right: 5px;\n\n ", " {\n margin-right: 15px;\n }\n }\n\n .activeIcon {\n display: none;\n }\n .icon {\n display: flex;\n }\n\n &.activeTab {\n background: ", ";\n color: ", ";\n\n ", " {\n background: transparent;\n }\n\n .icon {\n display: none;\n }\n .activeIcon {\n display: flex;\n }\n }\n }\n"])), styles_1.mediaQuery.tablet, colors_1.TextGrayColor, styles_1.mediaQuery.tablet, colors_1.InactiveButtonColor, colors_1.BlackColor, styles_1.mediaQuery.tablet);
|
|
58
58
|
var Navigation = function () {
|
|
59
59
|
var _a = (0, react_1.useState)(false), isOpen = _a[0], setIsOpen = _a[1];
|
|
60
60
|
var router = (0, router_1.useRouter)();
|
|
@@ -26,10 +26,10 @@ var schema_1 = require("@ludo.ninja/api/build/graphql_tools/__generated__/identi
|
|
|
26
26
|
var colors_1 = require("@ludo.ninja/ui/build/styles/colors");
|
|
27
27
|
var type_1 = require("@ludo.ninja/ui/build/system/Alert/type");
|
|
28
28
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var SWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n padding: 12px 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n border-radius: 6px;\n background: ", ";\n margin-bottom: 16px;\n\n .canvas {\n width: 164px;\n height: 164px;\n\n ", " {\n width: 124px;\n height: 124px;\n }\n }\n\n .labels {\n padding-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n\n & > * {\n display: flex;\n align-items: center;\n gap: 6px;\n\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n }\n }\n\n ", " {\n padding: ", " ", ";\n gap: ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n\n .canvas {\n width: ", ";\n height: ", ";\n }\n\n .labels {\n padding-top: ", ";\n gap: ", ";\n\n & > * {\n gap: ", ";\n\n font-size: ", ";\n line-height: ", ";\n }\n\n .circle {\n width: ", ";\n height: ", ";\n }\n }\n }\n"], ["\n display: flex;\n width: 100%;\n padding: 12px 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n border-radius: 6px;\n background: ", ";\n margin-bottom: 16px;\n\n .canvas {\n width: 164px;\n height: 164px;\n\n ", " {\n width: 124px;\n height: 124px;\n }\n }\n\n .labels {\n padding-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n\n & > * {\n display: flex;\n align-items: center;\n gap: 6px;\n\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n }\n }\n\n ", " {\n padding: ", " ", ";\n gap: ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n\n .canvas {\n width: ", ";\n height: ", ";\n }\n\n .labels {\n padding-top: ", ";\n gap: ", ";\n\n & > * {\n gap: ", ";\n\n font-size: ", ";\n line-height: ", ";\n }\n\n .circle {\n width: ", ";\n height: ", ";\n }\n }\n }\n"])), colors_1.WhiteColor,
|
|
29
|
+
var store_1 = require("@ludo.ninja/components/dist/store");
|
|
30
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
31
|
+
var fonts_1 = require("@ludo.ninja/components/dist/fonts");
|
|
32
|
+
var SWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n padding: 12px 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n border-radius: 6px;\n background: ", ";\n margin-bottom: 16px;\n\n .canvas {\n width: 164px;\n height: 164px;\n\n ", " {\n width: 124px;\n height: 124px;\n }\n }\n\n .labels {\n padding-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n\n & > * {\n display: flex;\n align-items: center;\n gap: 6px;\n\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n }\n }\n\n ", " {\n padding: ", " ", ";\n gap: ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n\n .canvas {\n width: ", ";\n height: ", ";\n }\n\n .labels {\n padding-top: ", ";\n gap: ", ";\n\n & > * {\n gap: ", ";\n\n font-size: ", ";\n line-height: ", ";\n }\n\n .circle {\n width: ", ";\n height: ", ";\n }\n }\n }\n"], ["\n display: flex;\n width: 100%;\n padding: 12px 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n border-radius: 6px;\n background: ", ";\n margin-bottom: 16px;\n\n .canvas {\n width: 164px;\n height: 164px;\n\n ", " {\n width: 124px;\n height: 124px;\n }\n }\n\n .labels {\n padding-top: 8px;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n\n & > * {\n display: flex;\n align-items: center;\n gap: 6px;\n\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n }\n }\n\n ", " {\n padding: ", " ", ";\n gap: ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n\n .canvas {\n width: ", ";\n height: ", ";\n }\n\n .labels {\n padding-top: ", ";\n gap: ", ";\n\n & > * {\n gap: ", ";\n\n font-size: ", ";\n line-height: ", ";\n }\n\n .circle {\n width: ", ";\n height: ", ";\n }\n }\n }\n"])), colors_1.WhiteColor, styles_1.mediaQuery.maxWidthTablet, colors_1.BlackColor, fonts_1.dmsansFontVarCss.css, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(12), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(6), (0, _4k_1.adaptiveValueCalc)(16), (0, _4k_1.adaptiveValueCalc)(164), (0, _4k_1.adaptiveValueCalc)(164), (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(8), (0, _4k_1.adaptiveValueCalc)(6), (0, _4k_1.adaptiveValueCalc)(13), (0, _4k_1.adaptiveValueCalc)(18), (0, _4k_1.adaptiveValueCalc)(10), (0, _4k_1.adaptiveValueCalc)(10));
|
|
33
33
|
var colors = [
|
|
34
34
|
'#977CFF',
|
|
35
35
|
'#98E2EB',
|
|
@@ -101,7 +101,7 @@ var AuditUI = function (_a) {
|
|
|
101
101
|
var Audit = function (_a) {
|
|
102
102
|
var _b;
|
|
103
103
|
var wallet = _a.wallet;
|
|
104
|
-
var openAlert = (0,
|
|
104
|
+
var openAlert = (0, store_1.useUiStore)(function (state) { return state.openAlert; });
|
|
105
105
|
var data = (0, schema_1.useFetchMultiversXAuditQuery)({
|
|
106
106
|
variables: { wallet: wallet },
|
|
107
107
|
context: {
|