@ludo.ninja/components 1.8.4 → 1.8.6
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.d.ts +1 -2
- package/dist/components/CreationCard/CardHead.js +1 -1
- package/dist/components/CreationCard/index.d.ts +1 -1
- package/dist/components/CreationCard/index.js +2 -2
- package/dist/components/headers/headerSearch/index.d.ts +1 -3
- package/dist/components/headers/headerSearch/index.js +1 -2
- package/dist/components/profile/ProfileTabs.d.ts +1 -2
- package/dist/components/profile/ProfileTabs.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -4
- package/dist/components/sidebar/index.js +4 -5
- package/dist/components/sidebar/initializer.d.ts +2 -4
- package/dist/components/sidebar/initializer.js +2 -4
- package/dist/components/toTopBtn/index.js +6 -10
- package/dist/layouts/GlobalLayout.js +37 -34
- package/dist/layouts/base/LWithSearchHeader/index.js +2 -2
- package/dist/layouts/custom/accountLayout/index.d.ts +1 -1
- package/dist/layouts/custom/accountLayout/index.js +12 -11
- package/dist/layouts/custom/formsLayout/index.d.ts +1 -1
- package/dist/layouts/custom/formsLayout/index.js +5 -5
- package/dist/layouts/custom/mainLayout/index.d.ts +1 -1
- package/dist/layouts/custom/mainLayout/index.js +6 -6
- package/dist/layouts/custom/searchLayout/index.d.ts +1 -1
- package/dist/layouts/custom/searchLayout/index.js +9 -8
- package/dist/layouts/custom/simpleLayout/index.d.ts +1 -1
- package/dist/layouts/custom/simpleLayout/index.js +6 -6
- package/dist/layouts/pageWithLayout.d.ts +1 -2
- package/dist/modules/sessionScroll/useVirtuosoInitialScroll.d.ts +2 -2
- package/dist/modules/virtuoso/VirtuosoToTopBtn.d.ts +2 -1
- package/dist/modules/virtuoso/VirtuosoToTopBtn.js +6 -2
- package/dist/system/Cards/CardHeadIcons/index.d.ts +1 -2
- package/dist/system/Cards/CardHeadIcons/index.js +1 -1
- package/dist/system/Cards/CardsGrid/index.d.ts +1 -2
- package/dist/system/Cards/CardsGrid/index.js +1 -1
- package/dist/system/Cards/RegularCard/index.d.ts +1 -2
- package/dist/system/Cards/RegularCard/index.js +1 -1
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.d.ts +0 -1
- package/dist/system/CardsHolderWithSkeleton/CardsHolder/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/adaptive/scale.d.ts +1 -1
- package/dist/utils/adaptive/scale.js +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
- package/dist/layouts/base/index.d.ts +0 -4
- package/dist/layouts/base/index.js +0 -14
- package/dist/layouts/custom/index.d.ts +0 -5
- package/dist/layouts/custom/index.js +0 -16
- package/dist/layouts/index.d.ts +0 -5
- package/dist/layouts/index.js +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
-
export declare const CardHead: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId,
|
|
4
|
+
export declare const CardHead: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, isUserProfile, isDisabled, isShowCheckbox, currentMyGalleryId, }: {
|
|
5
5
|
creation: CreationEntity | CollectionCreationEntity;
|
|
6
6
|
isRegularCard: boolean;
|
|
7
7
|
isIconLiked: boolean;
|
|
@@ -11,5 +11,4 @@ export declare const CardHead: ({ creation, isRegularCard, isIconLiked, addLikeT
|
|
|
11
11
|
isDisabled?: boolean;
|
|
12
12
|
isShowCheckbox?: boolean | undefined;
|
|
13
13
|
currentMyGalleryId?: false | string;
|
|
14
|
-
isProdENV: string;
|
|
15
14
|
}) => React.JSX.Element;
|
|
@@ -58,7 +58,7 @@ var addToGalleryIcon_svg_1 = __importDefault(require("@/public/cards/addToGaller
|
|
|
58
58
|
var heart_svg_1 = __importDefault(require("@/public/cards/heart.svg"));
|
|
59
59
|
// Component
|
|
60
60
|
var CardHead = function (_a) {
|
|
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
|
|
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;
|
|
62
62
|
var openModalSidebarPortal = (0, store_1.useUiStore)(function (state) { return state.openModalSidebarPortal; });
|
|
63
63
|
var isSignedIn = (0, user_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
64
64
|
var isLicked = isIconLiked && isSignedIn;
|
|
@@ -26,5 +26,5 @@ interface ICreationCard {
|
|
|
26
26
|
isProdENV: string;
|
|
27
27
|
}
|
|
28
28
|
export declare const CreationCardWithCheckboxState: (props: ICreationCard) => React.JSX.Element;
|
|
29
|
-
export declare const CreationCard: ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId,
|
|
29
|
+
export declare const CreationCard: ({ creationName, creation, isNeedHeight, likesDynamicInfo, toolsForRemove, isMobile, isLoadingLikes, isNeedShowMoreButton, isUserProfile, isRegularCard, isShowCheckbox, isActiveCheckbox, toggleCreationToGallery, currentMyGalleryId, }: ICreationCard & ICheckboxState) => React.JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -77,7 +77,7 @@ var CreationCardWithCheckboxState = function (props) {
|
|
|
77
77
|
};
|
|
78
78
|
exports.CreationCardWithCheckboxState = CreationCardWithCheckboxState;
|
|
79
79
|
var CreationCard = function (_a) {
|
|
80
|
-
var creationName = _a.creationName, creation = _a.creation, isNeedHeight = _a.isNeedHeight, likesDynamicInfo = _a.likesDynamicInfo, toolsForRemove = _a.toolsForRemove, isMobile = _a.isMobile, isLoadingLikes = _a.isLoadingLikes, isNeedShowMoreButton = _a.isNeedShowMoreButton, isUserProfile = _a.isUserProfile, _b = _a.isRegularCard, isRegularCard = _b === void 0 ? true : _b, isShowCheckbox = _a.isShowCheckbox, isActiveCheckbox = _a.isActiveCheckbox, toggleCreationToGallery = _a.toggleCreationToGallery, currentMyGalleryId = _a.currentMyGalleryId
|
|
80
|
+
var creationName = _a.creationName, creation = _a.creation, isNeedHeight = _a.isNeedHeight, likesDynamicInfo = _a.likesDynamicInfo, toolsForRemove = _a.toolsForRemove, isMobile = _a.isMobile, isLoadingLikes = _a.isLoadingLikes, isNeedShowMoreButton = _a.isNeedShowMoreButton, isUserProfile = _a.isUserProfile, _b = _a.isRegularCard, isRegularCard = _b === void 0 ? true : _b, isShowCheckbox = _a.isShowCheckbox, isActiveCheckbox = _a.isActiveCheckbox, toggleCreationToGallery = _a.toggleCreationToGallery, currentMyGalleryId = _a.currentMyGalleryId;
|
|
81
81
|
var _c = (0, likes_1.default)({
|
|
82
82
|
defaultLikesCount: (likesDynamicInfo === null || likesDynamicInfo === void 0 ? void 0 : likesDynamicInfo.likesNum) || creation.getLikes(),
|
|
83
83
|
defaultIsLiked: (likesDynamicInfo === null || likesDynamicInfo === void 0 ? void 0 : likesDynamicInfo.isLikedByUser) || creation.getIsLiked(),
|
|
@@ -92,7 +92,7 @@ var CreationCard = function (_a) {
|
|
|
92
92
|
react_1.default.createElement(HideLink_1.default, { className: "linkRegularCard", isProdENV: isProdENV, href: creation.getCreationLink() },
|
|
93
93
|
react_1.default.createElement(Head_1.default, null,
|
|
94
94
|
creation.detectMediaType().displaySingleMedia(),
|
|
95
|
-
react_1.default.createElement(CardHead_1.CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId
|
|
95
|
+
react_1.default.createElement(CardHead_1.CardHead, { isRegularCard: !!isRegularCard, isIconLiked: likes.isLiked, creation: creation, addLikeToCard: addLike, deleteLikeFromCard: deleteLike, isUserProfile: isUserProfile || false, isDisabled: !!isLoadingLikes, isShowCheckbox: isShowCheckbox, currentMyGalleryId: currentMyGalleryId })),
|
|
96
96
|
react_1.default.createElement(CardContent_1.default, { creationName: creationName, firstName: creation.getCreatorAddress(), secondName: creation.getName(), cuttedSecondName: creation.getCuttedSecondName(!isMobile), itemId: creation.getItemId(), isNeedShowMoreButton: isNeedShowMoreButton || false, href: creation.getCreationLink() },
|
|
97
97
|
react_1.default.createElement(_system_1.Flex, { alignItems: "end", justifyContent: 'space-between' },
|
|
98
98
|
react_1.default.createElement(CardCategory_1.default, { label: creation.getLabel() }),
|
|
@@ -14,8 +14,7 @@ var searchSimpleInput_1 = __importDefault(require("@/components/search/searchSim
|
|
|
14
14
|
var auth_1 = require("@/utils/auth");
|
|
15
15
|
var env_1 = require("@/utils/env");
|
|
16
16
|
// Component
|
|
17
|
-
var HeaderSearch = function (
|
|
18
|
-
var isProdENV = _a.isProdENV;
|
|
17
|
+
var HeaderSearch = function () {
|
|
19
18
|
var openSidebar = (0, ui_1.useUiStore)(function (state) { return state.openSidebar; });
|
|
20
19
|
var isSignedIn = (0, store_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
21
20
|
var getUser = (0, store_1.useUserStore)(function (state) { return state.user; });
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
export declare const ProfileTabs: ({ totalResults, profileId, style, isMobile,
|
|
2
|
+
export declare const ProfileTabs: ({ totalResults, profileId, style, isMobile, }: {
|
|
3
3
|
totalResults?: number | null;
|
|
4
4
|
profileId: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
isMobile: boolean;
|
|
7
|
-
isProdENV: string;
|
|
8
7
|
}) => React.JSX.Element;
|
|
@@ -19,7 +19,7 @@ var linkTabs_1 = __importDefault(require("@/components/linkTabs"));
|
|
|
19
19
|
var linkTab_1 = __importDefault(require("@/components/linkTabs/linkTab"));
|
|
20
20
|
var env_1 = require("@/utils/env");
|
|
21
21
|
var ProfileTabs = function (_a) {
|
|
22
|
-
var _b = _a.totalResults, totalResults = _b === void 0 ? null : _b, profileId = _a.profileId, style = _a.style, isMobile = _a.isMobile
|
|
22
|
+
var _b = _a.totalResults, totalResults = _b === void 0 ? null : _b, profileId = _a.profileId, style = _a.style, isMobile = _a.isMobile;
|
|
23
23
|
var router = (0, router_1.useRouter)();
|
|
24
24
|
return (react_1.default.createElement(linkTabs_1.default, { isUnderlined: true, style: style }, __spreadArray([
|
|
25
25
|
{
|
|
@@ -81,17 +81,16 @@ var SLink = (0, styled_components_1.default)(link_1.default)(templateObject_3 ||
|
|
|
81
81
|
return 'transform' in props.scale && props.scale.transform;
|
|
82
82
|
});
|
|
83
83
|
// Component
|
|
84
|
-
var Sidebar = function (
|
|
85
|
-
var
|
|
86
|
-
var isProdENV = _a.isProdENV;
|
|
84
|
+
var Sidebar = function () {
|
|
85
|
+
var _a;
|
|
87
86
|
var closeSidebar = (0, ui_1.useUiStore)(function (state) { return state.closeSidebar; });
|
|
88
87
|
var isSidebarOpen = (0, ui_1.useUiStore)(function (state) { return state.isSidebarOpen; });
|
|
89
88
|
var isAuthorized = (0, store_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
90
89
|
var getUser = (0, store_1.useUserStore)(function (state) { return state.user; });
|
|
91
90
|
var signOut = (0, useSignOut_1.useSignOut)();
|
|
92
91
|
var deviceType = (0, screen_1.useWindowDimensions)().deviceType;
|
|
93
|
-
var
|
|
94
|
-
var
|
|
92
|
+
var _b = (0, useExtension_1.default)(), isExtensionInstalled = _b.isExtensionInstalled, openExtensionChromeStorePage = _b.openExtensionChromeStorePage, openExtension = _b.openExtension;
|
|
93
|
+
var _c = (_a = getUser) !== null && _a !== void 0 ? _a : [''], wallets = _c.wallets, userId = _c.userId;
|
|
95
94
|
var type = (0, styled_components_1.useTheme)().type;
|
|
96
95
|
var isDarkTheme = type === interface_1.ThemeEnum.dark;
|
|
97
96
|
// Todo fav-list
|
|
@@ -27,12 +27,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.SidebarInitializer = void 0;
|
|
30
|
+
var react_1 = __importDefault(require("react"));
|
|
30
31
|
var dynamic_1 = __importDefault(require("next/dynamic"));
|
|
31
32
|
var Sidebar = (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require('../sidebar')); }).then(function (res) { return res.default; }); }, {
|
|
32
33
|
ssr: false,
|
|
33
34
|
});
|
|
34
|
-
var SidebarInitializer = function (
|
|
35
|
-
var isProdENV = _a.isProdENV;
|
|
36
|
-
return (React.createElement(Sidebar, { isProdENV: isProdENV }));
|
|
37
|
-
};
|
|
35
|
+
var SidebarInitializer = function () { return (react_1.default.createElement(Sidebar, null)); };
|
|
38
36
|
exports.SidebarInitializer = SidebarInitializer;
|
|
@@ -35,20 +35,16 @@ var react_1 = __importStar(require("react"));
|
|
|
35
35
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
36
|
var _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
37
37
|
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
38
|
-
var
|
|
39
|
-
var z_indexes_1 = require("@/styles/mixins/z-indexes");
|
|
40
|
-
var scale_1 = require("@/utils/adaptive/scale");
|
|
41
|
-
var screen_1 = require("@/utils/screen");
|
|
42
|
-
var ui_1 = require("@/utils/ui");
|
|
38
|
+
var utils_1 = require("@ludo.ninja/components/dist/utils");
|
|
43
39
|
var toTopBtn_svg_1 = __importDefault(require("@/public/toTopBtn/toTopBtn.svg"));
|
|
44
40
|
// Styles
|
|
45
|
-
var StyledToTopBnt = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"])),
|
|
41
|
+
var StyledToTopBnt = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n width: 48px;\n height: 48px;\n bottom: 36px;\n right: 24px;\n z-index: ", ";\n cursor: pointer;\n padding: 5px;\n background-color: ", ";\n border-radius: 24px;\n box-shadow: 0 10px 32px -16px rgba(33, 21, 95, 0.1);\n\n &:hover {\n svg path {\n stroke: ", ";\n }\n }\n\n @media (max-width: 767px) {\n position: fixed;\n left: 0;\n right: 0;\n margin: 0 auto;\n }\n\n ", " {\n width: ", ";\n height: ", ";\n bottom: ", ";\n right: ", ";\n border-radius: ", ";\n padding: ", ";\n box-shadow: 0 ", " ", "\n ", " rgba(33, 21, 95, 0.1);\n }\n"])), styles_1.zIndexToTopBtn, function (_a) {
|
|
46
42
|
var theme = _a.theme;
|
|
47
43
|
return theme.colors.toTopBtn;
|
|
48
|
-
},
|
|
44
|
+
}, styles_1.AccentColor, styles_1.mediaQuery.minWidthFourK, (0, _4k_1.adaptiveValueCalc)(48), (0, _4k_1.adaptiveValueCalc)(48), (0, _4k_1.adaptiveValueCalc)(36), (0, _4k_1.adaptiveValueCalc)(24), (0, _4k_1.adaptiveValueCalc)(24), (0, _4k_1.adaptiveValueCalc)(5), (0, _4k_1.adaptiveValueCalc)(10), (0, _4k_1.adaptiveValueCalc)(32), (0, _4k_1.adaptiveValueCalc)(-16));
|
|
49
45
|
var ToTopBtnIconResize = function () {
|
|
50
|
-
var windowDimensions = (0,
|
|
51
|
-
return (react_1.default.createElement(toTopBtn_svg_1.default, { style: (0,
|
|
46
|
+
var windowDimensions = (0, utils_1.useWindowDimensionsWithServerInitial)().windowDimensions;
|
|
47
|
+
return (react_1.default.createElement(toTopBtn_svg_1.default, { style: (0, utils_1.getAdaptiveScale)({ windowDimensions: windowDimensions, currentSize: 1 }) }));
|
|
52
48
|
};
|
|
53
49
|
var ToTopBtn = function () {
|
|
54
50
|
var _a = (0, react_1.useState)(false), showBtn = _a[0], setShowBtn = _a[1];
|
|
@@ -62,7 +58,7 @@ var ToTopBtn = function () {
|
|
|
62
58
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
63
59
|
};
|
|
64
60
|
var handleScroll = function () {
|
|
65
|
-
if ((0,
|
|
61
|
+
if ((0, utils_1.upBtnDistance)(document, offsetPixels)) {
|
|
66
62
|
if (oldScrollY > document.documentElement.scrollTop) {
|
|
67
63
|
setShowBtn(true);
|
|
68
64
|
}
|
|
@@ -5,41 +5,44 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlobalLayout = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// import { SidebarInitializer } from '@/components/sidebar/initializer';
|
|
25
|
-
//
|
|
26
|
-
// import Alert from '@/system/Alert';
|
|
27
|
-
// import Modal from '@/system/Modals/Modal';
|
|
28
|
-
// import ModalSidebar from '@/system/Modals/ModalSidebar';
|
|
29
|
-
// import { CreatorModalSidebarPortal } from '@/system/Modals/ModalSidebar/CreatorModalSidebarPortal';
|
|
30
|
-
// import Overlay from '@/system/Overlay';
|
|
31
|
-
//
|
|
32
|
-
// import { InitializeAppHeight } from '@/utils/screen';
|
|
8
|
+
var process_1 = __importDefault(require("process"));
|
|
9
|
+
var envLine_1 = __importDefault(require("@ludo.ninja/ui/build/components/envLine"));
|
|
10
|
+
var useMultiAudio_1 = __importDefault(require("@ludo.ninja/components/dist/hooks/audio/useMultiAudio"));
|
|
11
|
+
var CreatorNotifications_1 = require("@ludo.ninja/components/dist/modules/notifications/CreatorNotifications");
|
|
12
|
+
var modules_1 = require("@ludo.ninja/components/dist/modules");
|
|
13
|
+
var useAuthVerification_1 = require("@ludo.ninja/components/dist/modules/user/auth/useAuthVerification");
|
|
14
|
+
var profileDataInitialization_1 = require("@ludo.ninja/components/dist/modules/user/profileData/profileDataInitialization");
|
|
15
|
+
var useFetchMyExperienceWithLevel_1 = __importDefault(require("@/api/server-experiences/queries/useFetchMyExperienceWithLevel"));
|
|
16
|
+
var SubscriberInviteNotification_1 = require("@/api/subscriptions/SubscriberInviteNotification");
|
|
17
|
+
var styles_1 = require("@ludo.ninja/components/dist/styles");
|
|
18
|
+
var initializer_1 = require("@ludo.ninja/components/dist/components/sidebar/initializer");
|
|
19
|
+
var Alert_1 = __importDefault(require("@ludo.ninja/components/dist/system/Alert"));
|
|
20
|
+
var system_1 = require("@ludo.ninja/components/dist/system");
|
|
21
|
+
var CreatorModalSidebarPortal_1 = require("@ludo.ninja/components/dist/system/Modals/ModalSidebar/CreatorModalSidebarPortal");
|
|
22
|
+
var Overlay_1 = __importDefault(require("@ludo.ninja/components/dist/system/Overlay"));
|
|
23
|
+
var utils_1 = require("@ludo.ninja/components/dist/utils");
|
|
33
24
|
var GlobalLayout = function (_a) {
|
|
34
25
|
var children = _a.children;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
(0, useFetchMyExperienceWithLevel_1.default)();
|
|
27
|
+
(0, useMultiAudio_1.default)();
|
|
28
|
+
(0, useAuthVerification_1.useAuthVerification)();
|
|
29
|
+
var envValue = process_1.default.env.NEXT_PUBLIC_ENV_VALUE !== 'prod'
|
|
30
|
+
? process_1.default.env.NEXT_PUBLIC_ENV_VALUE
|
|
31
|
+
: null;
|
|
32
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
33
|
+
react_1.default.createElement(profileDataInitialization_1.ProfileDataInitialization, null),
|
|
34
|
+
react_1.default.createElement(envLine_1.default, { isNeedToShow: envValue }),
|
|
35
|
+
react_1.default.createElement(styles_1.GlobalStyle, null),
|
|
36
|
+
children,
|
|
37
|
+
react_1.default.createElement(CreatorNotifications_1.CreatorNotifications, null),
|
|
38
|
+
react_1.default.createElement(utils_1.InitializeAppHeight, null),
|
|
39
|
+
react_1.default.createElement(SubscriberInviteNotification_1.SubscriberInviteNotification, null),
|
|
40
|
+
react_1.default.createElement(Overlay_1.default, null),
|
|
41
|
+
react_1.default.createElement(initializer_1.SidebarInitializer, { isProdENV: 'prod' }),
|
|
42
|
+
react_1.default.createElement(Alert_1.default, null),
|
|
43
|
+
react_1.default.createElement(system_1.Modal, null),
|
|
44
|
+
react_1.default.createElement(system_1.ModalSidebar, null),
|
|
45
|
+
react_1.default.createElement(CreatorModalSidebarPortal_1.CreatorModalSidebarPortal, null),
|
|
46
|
+
react_1.default.createElement(modules_1.DeleteScrollStateInterceptor, null)));
|
|
44
47
|
};
|
|
45
48
|
exports.GlobalLayout = GlobalLayout;
|
|
@@ -8,10 +8,10 @@ var Meta_1 = __importDefault(require("@/components/base/Meta"));
|
|
|
8
8
|
var headerSearch_1 = __importDefault(require("@/components/headers/headerSearch"));
|
|
9
9
|
// Component
|
|
10
10
|
var LWithSearchHeader = function (_a) {
|
|
11
|
-
var children = _a.children
|
|
11
|
+
var children = _a.children;
|
|
12
12
|
return (react_1.default.createElement("div", { style: { minHeight: 'var(--app-height)' } },
|
|
13
13
|
react_1.default.createElement(Meta_1.default, null),
|
|
14
|
-
react_1.default.createElement(headerSearch_1.default,
|
|
14
|
+
react_1.default.createElement(headerSearch_1.default, null),
|
|
15
15
|
children));
|
|
16
16
|
};
|
|
17
17
|
// Export
|
|
@@ -3,20 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var NoSSR_1 = __importDefault(require("@ludo.ninja/components/dist/components/base/NoSSR"));
|
|
8
|
+
var toTopBtn_1 = __importDefault(require("@ludo.ninja/components/dist/components/toTopBtn"));
|
|
9
|
+
var LWithSearchHeader_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/base/LWithSearchHeader"));
|
|
10
|
+
var styles_1 = require("@ludo.ninja/components/dist/layouts/custom/styles");
|
|
11
|
+
var pageTransitionLayout_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/pageTransitionLayout"));
|
|
11
12
|
// Components
|
|
12
13
|
var AccountLayout = function (_a) {
|
|
13
|
-
var children = _a.children
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
var children = _a.children;
|
|
15
|
+
return (react_1.default.createElement(NoSSR_1.default, null,
|
|
16
|
+
react_1.default.createElement(pageTransitionLayout_1.default, null,
|
|
17
|
+
react_1.default.createElement(LWithSearchHeader_1.default, null,
|
|
18
|
+
react_1.default.createElement(styles_1.StyledMain, { role: "main" },
|
|
18
19
|
children,
|
|
19
|
-
|
|
20
|
+
react_1.default.createElement(toTopBtn_1.default, null))))));
|
|
20
21
|
};
|
|
21
22
|
// Export
|
|
22
23
|
exports.default = AccountLayout;
|
|
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var LWithoutHeader_1 = __importDefault(require("
|
|
8
|
-
var styles_1 = require("
|
|
9
|
-
var pageTransitionLayout_1 = __importDefault(require("
|
|
7
|
+
var LWithoutHeader_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/base/LWithoutHeader"));
|
|
8
|
+
var styles_1 = require("@ludo.ninja/components/dist/layouts/custom/styles");
|
|
9
|
+
var pageTransitionLayout_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/pageTransitionLayout"));
|
|
10
10
|
// Component
|
|
11
11
|
var FormsLayout = function (_a) {
|
|
12
|
-
var children = _a.children
|
|
12
|
+
var children = _a.children;
|
|
13
13
|
return (react_1.default.createElement(pageTransitionLayout_1.default, null,
|
|
14
|
-
react_1.default.createElement(LWithoutHeader_1.default,
|
|
14
|
+
react_1.default.createElement(LWithoutHeader_1.default, null,
|
|
15
15
|
react_1.default.createElement(styles_1.StyledMainForms, null, children))));
|
|
16
16
|
};
|
|
17
17
|
// Export
|
|
@@ -5,15 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var utils_1 = require("@ludo.ninja/utils");
|
|
8
|
-
var LWithRegularHeader_1 = __importDefault(require("
|
|
9
|
-
var styles_1 = require("
|
|
10
|
-
var pageTransitionLayout_1 = __importDefault(require("
|
|
11
|
-
var toTopBtn_1 = __importDefault(require("
|
|
8
|
+
var LWithRegularHeader_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/base/LWithRegularHeader"));
|
|
9
|
+
var styles_1 = require("@ludo.ninja/components/dist/layouts/custom/styles");
|
|
10
|
+
var pageTransitionLayout_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/pageTransitionLayout"));
|
|
11
|
+
var toTopBtn_1 = __importDefault(require("@ludo.ninja/components/dist/components/toTopBtn"));
|
|
12
12
|
// Component
|
|
13
13
|
var MainLayout = function (_a) {
|
|
14
|
-
var children = _a.children
|
|
14
|
+
var children = _a.children;
|
|
15
15
|
return (react_1.default.createElement(pageTransitionLayout_1.default, null,
|
|
16
|
-
react_1.default.createElement(LWithRegularHeader_1.default,
|
|
16
|
+
react_1.default.createElement(LWithRegularHeader_1.default, null,
|
|
17
17
|
react_1.default.createElement(styles_1.StyledMain, null,
|
|
18
18
|
children,
|
|
19
19
|
!utils_1.isServer && react_1.default.createElement(toTopBtn_1.default, null)))));
|
|
@@ -3,21 +3,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var toTopBtn_1 = __importDefault(require("@ludo.ninja/components/dist/components/toTopBtn"));
|
|
8
|
+
var LWithSearchHeader_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/base/LWithSearchHeader"));
|
|
9
|
+
var styles_1 = require("@ludo.ninja/components/dist/layouts/custom/styles");
|
|
6
10
|
var utils_1 = require("@ludo.ninja/utils");
|
|
7
|
-
var LWithSearchHeader_1 = __importDefault(require("@/layouts/base/LWithSearchHeader"));
|
|
8
|
-
var styles_1 = require("@/layouts/custom/styles");
|
|
9
|
-
var toTopBtn_1 = __importDefault(require("@/components/toTopBtn"));
|
|
10
11
|
// import PageTransitionLayout from '@/layouts/pageTransitionLayout';
|
|
11
12
|
// Component
|
|
12
13
|
var SearchLayout = function (_a) {
|
|
13
|
-
var children = _a.children
|
|
14
|
+
var children = _a.children;
|
|
14
15
|
return (
|
|
15
16
|
// <PageTransitionLayout>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
18
|
+
react_1.default.createElement(LWithSearchHeader_1.default, null,
|
|
19
|
+
react_1.default.createElement(styles_1.StyledMain, { role: "main" },
|
|
19
20
|
children,
|
|
20
|
-
!utils_1.isServer &&
|
|
21
|
+
!utils_1.isServer && react_1.default.createElement(toTopBtn_1.default, null))))
|
|
21
22
|
// </PageTransitionLayout>
|
|
22
23
|
);
|
|
23
24
|
};
|
|
@@ -5,15 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var utils_1 = require("@ludo.ninja/utils");
|
|
8
|
-
var LWithSimpleHeader_1 = __importDefault(require("
|
|
9
|
-
var styles_1 = require("
|
|
10
|
-
var pageTransitionLayout_1 = __importDefault(require("
|
|
11
|
-
var toTopBtn_1 = __importDefault(require("
|
|
8
|
+
var LWithSimpleHeader_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/base/LWithSimpleHeader"));
|
|
9
|
+
var styles_1 = require("@ludo.ninja/components/dist/layouts/custom/styles");
|
|
10
|
+
var pageTransitionLayout_1 = __importDefault(require("@ludo.ninja/components/dist/layouts/pageTransitionLayout"));
|
|
11
|
+
var toTopBtn_1 = __importDefault(require("@ludo.ninja/components/dist/components/toTopBtn"));
|
|
12
12
|
// Component
|
|
13
13
|
var SimpleLayout = function (_a) {
|
|
14
|
-
var children = _a.children
|
|
14
|
+
var children = _a.children;
|
|
15
15
|
return (react_1.default.createElement(pageTransitionLayout_1.default, null,
|
|
16
|
-
react_1.default.createElement(LWithSimpleHeader_1.default,
|
|
16
|
+
react_1.default.createElement(LWithSimpleHeader_1.default, null,
|
|
17
17
|
react_1.default.createElement(styles_1.StyledMain, { role: 'main' },
|
|
18
18
|
children,
|
|
19
19
|
!utils_1.isServer && react_1.default.createElement(toTopBtn_1.default, null)))));
|
|
@@ -3,8 +3,7 @@ import { PageLWithRegularHeader } from '@/layouts/base/LWithRegularHeader/type';
|
|
|
3
3
|
import { PageLWithSearchHeader } from '@/layouts/base/LWithSearchHeader/type';
|
|
4
4
|
import { PageLWithSimpleHeader } from '@/layouts/base/LWithSimpleHeader/type';
|
|
5
5
|
export type PageWithLayoutType = PageLWithRegularHeader | PageLWithSimpleHeader | PageLWithSearchHeader;
|
|
6
|
-
export type LayoutProps = ({ children,
|
|
6
|
+
export type LayoutProps = ({ children, }: {
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
isProdENV: string;
|
|
9
8
|
}) => ReactElement;
|
|
10
9
|
export default PageWithLayoutType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
-
import { TVirtuosoData } from '
|
|
4
|
-
import { TActiveTab } from '
|
|
3
|
+
import { TVirtuosoData } from '@ludo.ninja/components/dist/modules/virtuoso/types';
|
|
4
|
+
import { TActiveTab } from '@ludo.ninja/components/dist/system';
|
|
5
5
|
export declare const useVirtuosoInitialScroll: <TData>({ virtuosoData, activeTab, virtuoso, }: {
|
|
6
6
|
virtuosoData: TVirtuosoData<TData>;
|
|
7
7
|
activeTab: TActiveTab;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { VirtuosoHandle } from 'react-virtuoso';
|
|
3
4
|
export declare const useVirtuosoToTopBtnInitialize: () => {
|
|
4
5
|
isShowBtn: boolean;
|
|
@@ -6,4 +7,4 @@ export declare const useVirtuosoToTopBtnInitialize: () => {
|
|
|
6
7
|
};
|
|
7
8
|
export declare const VirtuosoToTopBtn: ({ virtuoso, }: {
|
|
8
9
|
virtuoso: RefObject<null | VirtuosoHandle>;
|
|
9
|
-
}) =>
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.VirtuosoToTopBtn = exports.useVirtuosoToTopBtnInitialize = void 0;
|
|
4
7
|
var react_1 = require("react");
|
|
5
|
-
var
|
|
8
|
+
var react_2 = __importDefault(require("react"));
|
|
9
|
+
var toTopBtn_1 = require("@ludo.ninja/components/dist/components/toTopBtn");
|
|
6
10
|
var useVirtuosoToTopBtnInitialize = function () {
|
|
7
11
|
var _a = (0, react_1.useState)(false), isShowBtn = _a[0], setIsShowBtn = _a[1];
|
|
8
12
|
var oldScrollY = (0, react_1.useRef)(0);
|
|
@@ -34,6 +38,6 @@ var VirtuosoToTopBtn = function (_a) {
|
|
|
34
38
|
align: 'end',
|
|
35
39
|
});
|
|
36
40
|
};
|
|
37
|
-
return (
|
|
41
|
+
return (react_2.default.createElement(toTopBtn_1.ToTopBtnWithCustomHandler, { handleClickFunction: handleClickFunction }));
|
|
38
42
|
};
|
|
39
43
|
exports.VirtuosoToTopBtn = VirtuosoToTopBtn;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CollectionCreationEntity from '@/dto/Collection/CollectionCreationEntity';
|
|
3
3
|
import CreationEntity from '@/dto/CreationEntity';
|
|
4
|
-
declare const CardHeadIcons: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, actionIsNeedRenderCheckbox, itemId, isUserProfile, isDisabled,
|
|
4
|
+
declare const CardHeadIcons: ({ creation, isRegularCard, isIconLiked, addLikeToCard, deleteLikeFromCard, actionIsNeedRenderCheckbox, itemId, isUserProfile, isDisabled, }: {
|
|
5
5
|
creation: CreationEntity | CollectionCreationEntity;
|
|
6
6
|
isRegularCard: boolean;
|
|
7
7
|
isIconLiked: boolean;
|
|
@@ -11,6 +11,5 @@ declare const CardHeadIcons: ({ creation, isRegularCard, isIconLiked, addLikeToC
|
|
|
11
11
|
itemId: string;
|
|
12
12
|
isUserProfile: boolean;
|
|
13
13
|
isDisabled?: boolean;
|
|
14
|
-
isProdENV: string;
|
|
15
14
|
}) => React.JSX.Element;
|
|
16
15
|
export default CardHeadIcons;
|
|
@@ -57,7 +57,7 @@ var addToGalleryIcon_svg_1 = __importDefault(require("@/public/cards/addToGaller
|
|
|
57
57
|
var heart_svg_1 = __importDefault(require("@/public/cards/heart.svg"));
|
|
58
58
|
// Component
|
|
59
59
|
var CardHeadIcons = function (_a) {
|
|
60
|
-
var creation = _a.creation, isRegularCard = _a.isRegularCard, isIconLiked = _a.isIconLiked, addLikeToCard = _a.addLikeToCard, deleteLikeFromCard = _a.deleteLikeFromCard, actionIsNeedRenderCheckbox = _a.actionIsNeedRenderCheckbox, itemId = _a.itemId, isUserProfile = _a.isUserProfile, isDisabled = _a.isDisabled
|
|
60
|
+
var creation = _a.creation, isRegularCard = _a.isRegularCard, isIconLiked = _a.isIconLiked, addLikeToCard = _a.addLikeToCard, deleteLikeFromCard = _a.deleteLikeFromCard, actionIsNeedRenderCheckbox = _a.actionIsNeedRenderCheckbox, itemId = _a.itemId, isUserProfile = _a.isUserProfile, isDisabled = _a.isDisabled;
|
|
61
61
|
var openModalSidebarPortal = (0, ui_1.useUiStore)(function (state) { return state.openModalSidebarPortal; });
|
|
62
62
|
var isSignedIn = (0, store_1.useUserStore)(function (state) { return state.isSignedIn; });
|
|
63
63
|
var isLicked = isIconLiked && isSignedIn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import CreationEntity from '@/dto/CreationEntity';
|
|
3
|
-
declare const CardsGrid: ({ children, isTwoColumnLayout, addMethod, creations, isEmptyGallery, isForVirtualize, tabsSlot,
|
|
3
|
+
declare const CardsGrid: ({ children, isTwoColumnLayout, addMethod, creations, isEmptyGallery, isForVirtualize, tabsSlot, }: {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
isTwoColumnLayout?: boolean;
|
|
6
6
|
isNeedShowNetWorth?: boolean;
|
|
@@ -9,6 +9,5 @@ declare const CardsGrid: ({ children, isTwoColumnLayout, addMethod, creations, i
|
|
|
9
9
|
isEmptyGallery?: boolean;
|
|
10
10
|
isForVirtualize?: boolean;
|
|
11
11
|
tabsSlot?: ReactNode;
|
|
12
|
-
isProdENV: string;
|
|
13
12
|
}) => React.JSX.Element;
|
|
14
13
|
export default CardsGrid;
|
|
@@ -60,7 +60,7 @@ var StyledCardsGrid = styled_components_1.default.div(templateObject_1 || (templ
|
|
|
60
60
|
var CardsGrid = function (_a) {
|
|
61
61
|
var children = _a.children, isTwoColumnLayout = _a.isTwoColumnLayout,
|
|
62
62
|
// isNeedShowNetWorth = true,
|
|
63
|
-
addMethod = _a.addMethod, creations = _a.creations, isEmptyGallery = _a.isEmptyGallery, isForVirtualize = _a.isForVirtualize, tabsSlot = _a.tabsSlot
|
|
63
|
+
addMethod = _a.addMethod, creations = _a.creations, isEmptyGallery = _a.isEmptyGallery, isForVirtualize = _a.isForVirtualize, tabsSlot = _a.tabsSlot;
|
|
64
64
|
var _b = (0, react_1.useState)(Boolean(creations === null || creations === void 0 ? void 0 : creations.length)), isNeedShowOrganizeBtn = _b[0], setShowOrganizeBtn = _b[1];
|
|
65
65
|
var handleClick = function () {
|
|
66
66
|
setShowOrganizeBtn(false);
|
|
@@ -7,7 +7,7 @@ export type RemoveToolsType = {
|
|
|
7
7
|
gallery: GalleryEntityV2;
|
|
8
8
|
removeFn: () => void;
|
|
9
9
|
};
|
|
10
|
-
declare const RegularCard: ({ creationName, creation, cardsCount, scrollKeys, isNeedHeight, likesDynamicInfo, toolsForRemove,
|
|
10
|
+
declare const RegularCard: ({ creationName, creation, cardsCount, scrollKeys, isNeedHeight, likesDynamicInfo, toolsForRemove, }: {
|
|
11
11
|
creationName?: string;
|
|
12
12
|
creation: CreationEntity | CollectionCreationEntity;
|
|
13
13
|
cardsCount: number;
|
|
@@ -18,6 +18,5 @@ declare const RegularCard: ({ creationName, creation, cardsCount, scrollKeys, is
|
|
|
18
18
|
isNeedHeight: boolean;
|
|
19
19
|
likesDynamicInfo?: searchSchema.IDynamicAssetData | searchSchema.IDynamicCollectionData;
|
|
20
20
|
toolsForRemove?: RemoveToolsType;
|
|
21
|
-
isProdENV: string;
|
|
22
21
|
}) => React.JSX.Element;
|
|
23
22
|
export default RegularCard;
|
|
@@ -26,7 +26,7 @@ var screen_1 = require("@/utils/screen");
|
|
|
26
26
|
var StyledRegularCard = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n min-height: ", ";\n\n &:hover ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\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 background-color: ", ";\n border-radius: 6px;\n ", ";\n ", ";\n min-height: ", ";\n\n &:hover ", " {\n transition: 0.2s opacity ease-in;\n opacity: 1 !important;\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"])), styles_1.WhiteColor, styles_1.BoxShadow, styles_1.BoxTransform, function (props) { return (props.isNeedHeight ? '346px' : ''); }, Headicons_1.default, styles_1.mediaQuery.maxWidthTablet, function (props) { return (props.isNeedHeight ? '258px' : ''); }, styles_1.mediaQuery.mobile, function (props) { return (props.isNeedHeight ? '244px' : ''); });
|
|
27
27
|
// Component
|
|
28
28
|
var RegularCard = function (_a) {
|
|
29
|
-
var creationName = _a.creationName, creation = _a.creation, cardsCount = _a.cardsCount, scrollKeys = _a.scrollKeys, isNeedHeight = _a.isNeedHeight, likesDynamicInfo = _a.likesDynamicInfo, toolsForRemove = _a.toolsForRemove
|
|
29
|
+
var creationName = _a.creationName, creation = _a.creation, cardsCount = _a.cardsCount, scrollKeys = _a.scrollKeys, isNeedHeight = _a.isNeedHeight, likesDynamicInfo = _a.likesDynamicInfo, toolsForRemove = _a.toolsForRemove;
|
|
30
30
|
var windowWidth = (0, screen_1.getWindowDimensions)().windowWidth;
|
|
31
31
|
var isMobile = windowWidth <= 1200;
|
|
32
32
|
var _b = (0, likes_1.default)({
|