@gravity-ui/page-constructor 1.26.0-alpha.0 → 1.26.0-alpha.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/build/cjs/blocks/Header/Header.js +5 -2
- package/build/cjs/blocks/Icons/Icons.js +1 -2
- package/build/cjs/components/FileLink/FileLink.js +2 -2
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +2 -2
- package/build/cjs/components/Link/Link.js +2 -2
- package/build/cjs/components/LinkBase/LinkBase.d.ts +2 -1
- package/build/cjs/components/LinkBase/LinkBase.js +1 -2
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/index.d.ts +1 -0
- package/build/cjs/components/index.js +3 -1
- package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +2 -2
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +1 -2
- package/build/esm/blocks/Header/Header.js +6 -3
- package/build/esm/blocks/Icons/Icons.js +1 -2
- package/build/esm/components/FileLink/FileLink.js +1 -1
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/esm/components/Link/Link.js +1 -1
- package/build/esm/components/LinkBase/LinkBase.d.ts +2 -1
- package/build/esm/components/LinkBase/LinkBase.js +2 -1
- package/build/esm/components/Title/Title.js +1 -1
- package/build/esm/components/index.d.ts +1 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js +1 -2
- package/package.json +1 -1
|
@@ -59,8 +59,11 @@ const HeaderBlock = (props) => {
|
|
|
59
59
|
description && (react_1.default.createElement("h5", { className: b('description') },
|
|
60
60
|
react_1.default.createElement(YFMWrapper_1.default, { content: description, modifiers: { constructor: true } }))),
|
|
61
61
|
buttons && (react_1.default.createElement("div", { className: b('buttons'), "data-qa": "header-buttons" }, buttons &&
|
|
62
|
-
buttons.map((button, index) => (
|
|
63
|
-
|
|
62
|
+
buttons.map((button, index) => (
|
|
63
|
+
// <RouterLink href={button.url} key={index}>
|
|
64
|
+
react_1.default.createElement(components_1.Button, Object.assign({ key: index, className: b('button'), size: "xl" }, button))
|
|
65
|
+
// </RouterLink>
|
|
66
|
+
)))),
|
|
64
67
|
children))),
|
|
65
68
|
hasRightSideImage && (react_1.default.createElement(components_1.Media, { className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image'), video: videoThemed, image: imageThemed })))))));
|
|
66
69
|
};
|
|
@@ -5,13 +5,12 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const locationContext_1 = require("../../context/locationContext");
|
|
8
|
-
const LinkBase_1 = require("src/components/LinkBase/LinkBase");
|
|
9
8
|
const b = (0, utils_1.block)('icons-block');
|
|
10
9
|
const Icons = ({ title, size = 's', items }) => {
|
|
11
10
|
const { hostname } = (0, react_1.useContext)(locationContext_1.LocationContext);
|
|
12
11
|
return (react_1.default.createElement("div", { className: b({ size }) },
|
|
13
12
|
title && react_1.default.createElement(components_1.BlockHeader, { className: b('header'), title: title, colSizes: { all: 12 } }),
|
|
14
|
-
items.map((item) => (react_1.default.createElement(
|
|
13
|
+
items.map((item) => (react_1.default.createElement(components_1.LinkBase, Object.assign({ className: b('item'), key: item.url, href: item.url }, (0, utils_1.getLinkProps)(item.url, hostname)),
|
|
15
14
|
react_1.default.createElement(components_1.Image, { className: b('image'), src: item.src }),
|
|
16
15
|
react_1.default.createElement("p", { className: b('text') }, item.text))))));
|
|
17
16
|
};
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
const locationContext_1 = require("../../context/locationContext");
|
|
8
|
-
const LinkBase_1 = require("../LinkBase/LinkBase");
|
|
8
|
+
const LinkBase_1 = tslib_1.__importDefault(require("../LinkBase/LinkBase"));
|
|
9
9
|
const b = (0, utils_1.block)('file-link');
|
|
10
10
|
const FIGMA_URL = 'https://www.figma.com';
|
|
11
11
|
var FileExtension;
|
|
@@ -32,6 +32,6 @@ const FileLink = (props) => {
|
|
|
32
32
|
return (react_1.default.createElement("div", { className: b({ ext: fileExt, type, size: textSize, theme }, className) },
|
|
33
33
|
Object.values(FileExtension).includes(fileExt) && (react_1.default.createElement("div", { className: b('file-label') }, fileExt)),
|
|
34
34
|
react_1.default.createElement("div", { className: b('link') },
|
|
35
|
-
react_1.default.createElement(LinkBase_1.
|
|
35
|
+
react_1.default.createElement(LinkBase_1.default, Object.assign({ href: href }, (0, utils_1.getLinkProps)(href, hostname), { onClick: onClick }), text))));
|
|
36
36
|
};
|
|
37
37
|
exports.default = FileLink;
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
7
|
-
const LinkBase_1 = require("../LinkBase/LinkBase");
|
|
7
|
+
const LinkBase_1 = tslib_1.__importDefault(require("../LinkBase/LinkBase"));
|
|
8
8
|
const b = (0, utils_1.block)('header-breadcrumbs');
|
|
9
9
|
function HeaderBreadcrumbs(props) {
|
|
10
10
|
const { items, metrikaGoals, pixelEvents, theme = 'light', className } = props;
|
|
@@ -13,6 +13,6 @@ function HeaderBreadcrumbs(props) {
|
|
|
13
13
|
handleMetrika({ metrikaGoals, pixelEvents });
|
|
14
14
|
};
|
|
15
15
|
return (react_1.default.createElement("div", { className: b({ theme }, className) }, items.map((item) => (react_1.default.createElement("div", { className: b('item'), key: item.url },
|
|
16
|
-
react_1.default.createElement(LinkBase_1.
|
|
16
|
+
react_1.default.createElement(LinkBase_1.default, { href: item.url, className: b('text'), onClick: onClick }, item.text))))));
|
|
17
17
|
}
|
|
18
18
|
exports.default = HeaderBreadcrumbs;
|
|
@@ -6,13 +6,13 @@ const uikit_1 = require("@gravity-ui/uikit");
|
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const models_1 = require("../../models");
|
|
8
8
|
const icons_1 = require("../../icons");
|
|
9
|
+
const LinkBase_1 = tslib_1.__importDefault(require("../LinkBase/LinkBase"));
|
|
9
10
|
const FileLink_1 = tslib_1.__importDefault(require("../FileLink/FileLink"));
|
|
10
11
|
const BackLink_1 = tslib_1.__importDefault(require("../BackLink/BackLink"));
|
|
11
12
|
const localeContext_1 = require("../../context/localeContext/localeContext");
|
|
12
13
|
const locationContext_1 = require("../../context/locationContext/locationContext");
|
|
13
14
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
14
15
|
const hooks_1 = require("../../hooks");
|
|
15
|
-
const LinkBase_1 = require("../LinkBase/LinkBase");
|
|
16
16
|
const b = (0, utils_1.block)('link-block');
|
|
17
17
|
const WORD_JOINER_SYM = '\u200b';
|
|
18
18
|
function getArrowSize(size) {
|
|
@@ -49,7 +49,7 @@ const LinkBlock = (props) => {
|
|
|
49
49
|
case 'normal': {
|
|
50
50
|
const linkProps = (0, utils_1.getLinkProps)(url, hostname, target);
|
|
51
51
|
const content = children || text;
|
|
52
|
-
return (react_1.default.createElement(LinkBase_1.
|
|
52
|
+
return (react_1.default.createElement(LinkBase_1.default, Object.assign({ className: b('link', { theme: colorTheme, 'has-arrow': arrow }), href: href, onClick: onClick }, linkProps), arrow ? (react_1.default.createElement(react_1.Fragment, null,
|
|
53
53
|
react_1.default.createElement("span", { className: b('content') }, content),
|
|
54
54
|
WORD_JOINER_SYM,
|
|
55
55
|
react_1.default.createElement(uikit_1.Icon, { className: b('arrow'), data: icons_1.Chevron, size: getArrowSize(textSize) }))) : (content)));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinkBase = void 0;
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
5
|
const lodash_1 = require("lodash");
|
|
@@ -16,4 +15,4 @@ const LinkBase = (props) => {
|
|
|
16
15
|
}
|
|
17
16
|
return (react_1.default.createElement("a", Object.assign({ href: href }, linkProps), children));
|
|
18
17
|
};
|
|
19
|
-
exports.
|
|
18
|
+
exports.default = LinkBase;
|
|
@@ -5,10 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const Anchor_1 = tslib_1.__importDefault(require("../Anchor/Anchor"));
|
|
8
|
+
const LinkBase_1 = tslib_1.__importDefault(require("../LinkBase/LinkBase"));
|
|
8
9
|
const __1 = require("../");
|
|
9
10
|
const locationContext_1 = require("../../context/locationContext");
|
|
10
11
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
11
|
-
const LinkBase_1 = require("../LinkBase/LinkBase");
|
|
12
12
|
const b = (0, utils_1.block)('title-block');
|
|
13
13
|
function getArrowSize(size, isMobile) {
|
|
14
14
|
switch (size) {
|
|
@@ -41,7 +41,7 @@ const Title = (props) => {
|
|
|
41
41
|
content = textMarkup;
|
|
42
42
|
}
|
|
43
43
|
else if (url) {
|
|
44
|
-
content = (react_1.default.createElement(LinkBase_1.
|
|
44
|
+
content = (react_1.default.createElement(LinkBase_1.default, Object.assign({ className: b('link'), href: url }, (0, utils_1.getLinkProps)(url, hostname), { onClick: onClick }), insideClickableContent));
|
|
45
45
|
}
|
|
46
46
|
else if (onClick) {
|
|
47
47
|
content = (react_1.default.createElement("span", { className: b('link'), onClick: onClick }, insideClickableContent));
|
|
@@ -17,6 +17,7 @@ export { default as HeaderBreadcrumbs } from './HeaderBreadcrumbs/HeaderBreadcru
|
|
|
17
17
|
export { default as HeightCalculator } from './HeightCalculator/HeightCalculator';
|
|
18
18
|
export { default as Image } from './Image/Image';
|
|
19
19
|
export { default as Link } from './Link/Link';
|
|
20
|
+
export { default as LinkBase } from './LinkBase/LinkBase';
|
|
20
21
|
export { default as Links } from './Link/Links';
|
|
21
22
|
export { default as Media } from './Media/Media';
|
|
22
23
|
export { default as OutsideClick } from './OutsideClick/OutsideClick';
|
|
@@ -3,7 +3,7 @@ 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
|
-
exports.FullScreenMedia = exports.MetaInfo = exports.HTML = exports.RouterLink = exports.Author = exports.OverflowScroller = exports.Control = exports.YandexForm = exports.YFMWrapper = exports.VideoBlock = exports.UnpublishedLabel = exports.ToggleArrow = exports.Title = exports.Table = exports.ReactPlayer = exports.OutsideClick = exports.Media = exports.Links = exports.Link = exports.Image = exports.HeightCalculator = exports.HeaderBreadcrumbs = exports.FullWidthBackground = exports.FullscreenImage = exports.Foldable = exports.FileLink = exports.ErrorWrapper = exports.CardBase = exports.Button = exports.BlockHeader = exports.BlockBase = exports.BalancedMasonry = exports.BackLink = exports.BackgroundMedia = exports.BackgroundImage = exports.AnimateBlock = exports.Anchor = void 0;
|
|
6
|
+
exports.FullScreenMedia = exports.MetaInfo = exports.HTML = exports.RouterLink = exports.Author = exports.OverflowScroller = exports.Control = exports.YandexForm = exports.YFMWrapper = exports.VideoBlock = exports.UnpublishedLabel = exports.ToggleArrow = exports.Title = exports.Table = exports.ReactPlayer = exports.OutsideClick = exports.Media = exports.Links = exports.LinkBase = exports.Link = exports.Image = exports.HeightCalculator = exports.HeaderBreadcrumbs = exports.FullWidthBackground = exports.FullscreenImage = exports.Foldable = exports.FileLink = exports.ErrorWrapper = exports.CardBase = exports.Button = exports.BlockHeader = exports.BlockBase = exports.BalancedMasonry = exports.BackLink = exports.BackgroundMedia = exports.BackgroundImage = exports.AnimateBlock = exports.Anchor = void 0;
|
|
7
7
|
var Anchor_1 = require("./Anchor/Anchor");
|
|
8
8
|
Object.defineProperty(exports, "Anchor", { enumerable: true, get: function () { return __importDefault(Anchor_1).default; } });
|
|
9
9
|
var AnimateBlock_1 = require("./AnimateBlock/AnimateBlock");
|
|
@@ -42,6 +42,8 @@ var Image_1 = require("./Image/Image");
|
|
|
42
42
|
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(Image_1).default; } });
|
|
43
43
|
var Link_1 = require("./Link/Link");
|
|
44
44
|
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return __importDefault(Link_1).default; } });
|
|
45
|
+
var LinkBase_1 = require("./LinkBase/LinkBase");
|
|
46
|
+
Object.defineProperty(exports, "LinkBase", { enumerable: true, get: function () { return __importDefault(LinkBase_1).default; } });
|
|
45
47
|
var Links_1 = require("./Link/Links");
|
|
46
48
|
Object.defineProperty(exports, "Links", { enumerable: true, get: function () { return __importDefault(Links_1).default; } });
|
|
47
49
|
var Media_1 = require("./Media/Media");
|
package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js
CHANGED
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const utils_1 = require("../../../../../utils");
|
|
7
7
|
const models_1 = require("../../../../../models");
|
|
8
|
-
const
|
|
8
|
+
const components_1 = require("../../../../../components");
|
|
9
9
|
const b = (0, utils_1.block)('github-button');
|
|
10
10
|
const DEFAULT_LABEL = 'Stars on GitHub';
|
|
11
11
|
/* More information about github-buttons in https://buttons.github.io/ */
|
|
@@ -43,6 +43,6 @@ const GithubButton = ({ text, url, className, label, size, icon, }) => {
|
|
|
43
43
|
}, []);
|
|
44
44
|
return (react_1.default.createElement("div", { className: b(null, className) },
|
|
45
45
|
react_1.default.createElement("span", { ref: containerRef },
|
|
46
|
-
react_1.default.createElement(
|
|
46
|
+
react_1.default.createElement(components_1.LinkBase, Object.assign({ href: url, ref: linkRef, "data-show-count": "true", "aria-label": label || DEFAULT_LABEL }, (icon && { 'data-icon': models_1.NavigationGithubButtonIcon[icon] }), (size && { 'data-size': size })), text))));
|
|
47
47
|
};
|
|
48
48
|
exports.GithubButton = GithubButton;
|
|
@@ -5,11 +5,10 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const utils_2 = require("../../../components/Media/Image/utils");
|
|
8
|
-
const LinkBase_1 = require("../../../components/LinkBase/LinkBase");
|
|
9
8
|
const b = (0, utils_1.block)('social-icon');
|
|
10
9
|
const SocialIcon = ({ icon, url, className }) => {
|
|
11
10
|
const iconData = (0, utils_2.getMediaImage)(icon);
|
|
12
|
-
return (react_1.default.createElement(
|
|
11
|
+
return (react_1.default.createElement(components_1.LinkBase, { href: url, target: "_blank", rel: "noopener noreferrer", className: b(null, className) },
|
|
13
12
|
react_1.default.createElement(components_1.Image, Object.assign({ className: b('icon') }, iconData))));
|
|
14
13
|
};
|
|
15
14
|
exports.default = SocialIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { block, getThemedValue } from '../../utils';
|
|
3
|
-
import { Button, Media,
|
|
3
|
+
import { Button, Media, HTML } from '../../components';
|
|
4
4
|
import { Grid, Row, Col } from '../../grid';
|
|
5
5
|
import { getImageSize, getTitleSizes, titleWithImageSizes } from './utils';
|
|
6
6
|
import { MobileContext } from '../../context/mobileContext';
|
|
@@ -56,8 +56,11 @@ export const HeaderBlock = (props) => {
|
|
|
56
56
|
description && (React.createElement("h5", { className: b('description') },
|
|
57
57
|
React.createElement(YFMWrapper, { content: description, modifiers: { constructor: true } }))),
|
|
58
58
|
buttons && (React.createElement("div", { className: b('buttons'), "data-qa": "header-buttons" }, buttons &&
|
|
59
|
-
buttons.map((button, index) => (
|
|
60
|
-
|
|
59
|
+
buttons.map((button, index) => (
|
|
60
|
+
// <RouterLink href={button.url} key={index}>
|
|
61
|
+
React.createElement(Button, Object.assign({ key: index, className: b('button'), size: "xl" }, button))
|
|
62
|
+
// </RouterLink>
|
|
63
|
+
)))),
|
|
61
64
|
children))),
|
|
62
65
|
hasRightSideImage && (React.createElement(Media, { className: b('media', { [curImageSize]: true }), videoClassName: b('video'), imageClassName: b('image'), video: videoThemed, image: imageThemed })))))));
|
|
63
66
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { block, getLinkProps } from '../../utils';
|
|
3
|
-
import { BlockHeader, Image } from '../../components';
|
|
3
|
+
import { BlockHeader, Image, LinkBase } from '../../components';
|
|
4
4
|
import { LocationContext } from '../../context/locationContext';
|
|
5
|
-
import { LinkBase } from 'src/components/LinkBase/LinkBase';
|
|
6
5
|
import './Icons.css';
|
|
7
6
|
const b = block('icons-block');
|
|
8
7
|
const Icons = ({ title, size = 's', items }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { block, getLinkProps } from '../../utils';
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import { LocationContext } from '../../context/locationContext';
|
|
4
|
-
import
|
|
4
|
+
import LinkBase from '../LinkBase/LinkBase';
|
|
5
5
|
import './FileLink.css';
|
|
6
6
|
const b = block('file-link');
|
|
7
7
|
const FIGMA_URL = 'https://www.figma.com';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { block } from '../../utils';
|
|
3
3
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
4
|
-
import
|
|
4
|
+
import LinkBase from '../LinkBase/LinkBase';
|
|
5
5
|
import './HeaderBreadcrumbs.css';
|
|
6
6
|
const b = block('header-breadcrumbs');
|
|
7
7
|
export default function HeaderBreadcrumbs(props) {
|
|
@@ -3,13 +3,13 @@ import { Icon } from '@gravity-ui/uikit';
|
|
|
3
3
|
import { block, getLinkProps, setUrlTld } from '../../utils';
|
|
4
4
|
import { DefaultEventNames } from '../../models';
|
|
5
5
|
import { Chevron } from '../../icons';
|
|
6
|
+
import LinkBase from '../LinkBase/LinkBase';
|
|
6
7
|
import FileLink from '../FileLink/FileLink';
|
|
7
8
|
import BackLink from '../BackLink/BackLink';
|
|
8
9
|
import { LocaleContext } from '../../context/localeContext/localeContext';
|
|
9
10
|
import { LocationContext } from '../../context/locationContext/locationContext';
|
|
10
11
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
11
12
|
import { useAnalytics } from '../../hooks';
|
|
12
|
-
import { LinkBase } from '../LinkBase/LinkBase';
|
|
13
13
|
import './Link.css';
|
|
14
14
|
const b = block('link-block');
|
|
15
15
|
const WORD_JOINER_SYM = '\u200b';
|
|
@@ -3,7 +3,7 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import { omit } from 'lodash';
|
|
4
4
|
import { LocationContext } from '../../context/locationContext';
|
|
5
5
|
import RouterLink from '../RouterLink/RouterLink';
|
|
6
|
-
|
|
6
|
+
const LinkBase = (props) => {
|
|
7
7
|
const { href, children } = props, linkProps = __rest(props, ["href", "children"]);
|
|
8
8
|
const { Link } = useContext(LocationContext);
|
|
9
9
|
if (Link && href && !(linkProps === null || linkProps === void 0 ? void 0 : linkProps.target)) {
|
|
@@ -13,3 +13,4 @@ export const LinkBase = (props) => {
|
|
|
13
13
|
}
|
|
14
14
|
return (React.createElement("a", Object.assign({ href: href }, linkProps), children));
|
|
15
15
|
};
|
|
16
|
+
export default LinkBase;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Fragment, useContext } from 'react';
|
|
2
2
|
import { block, getHeaderTag, getLinkProps } from '../../utils';
|
|
3
3
|
import Anchor from '../Anchor/Anchor';
|
|
4
|
+
import LinkBase from '../LinkBase/LinkBase';
|
|
4
5
|
import { ToggleArrow, HTML } from '../';
|
|
5
6
|
import { LocationContext } from '../../context/locationContext';
|
|
6
7
|
import { MobileContext } from '../../context/mobileContext';
|
|
7
|
-
import { LinkBase } from '../LinkBase/LinkBase';
|
|
8
8
|
import './Title.css';
|
|
9
9
|
const b = block('title-block');
|
|
10
10
|
export function getArrowSize(size, isMobile) {
|
|
@@ -17,6 +17,7 @@ export { default as HeaderBreadcrumbs } from './HeaderBreadcrumbs/HeaderBreadcru
|
|
|
17
17
|
export { default as HeightCalculator } from './HeightCalculator/HeightCalculator';
|
|
18
18
|
export { default as Image } from './Image/Image';
|
|
19
19
|
export { default as Link } from './Link/Link';
|
|
20
|
+
export { default as LinkBase } from './LinkBase/LinkBase';
|
|
20
21
|
export { default as Links } from './Link/Links';
|
|
21
22
|
export { default as Media } from './Media/Media';
|
|
22
23
|
export { default as OutsideClick } from './OutsideClick/OutsideClick';
|
|
@@ -17,6 +17,7 @@ export { default as HeaderBreadcrumbs } from './HeaderBreadcrumbs/HeaderBreadcru
|
|
|
17
17
|
export { default as HeightCalculator } from './HeightCalculator/HeightCalculator';
|
|
18
18
|
export { default as Image } from './Image/Image';
|
|
19
19
|
export { default as Link } from './Link/Link';
|
|
20
|
+
export { default as LinkBase } from './LinkBase/LinkBase';
|
|
20
21
|
export { default as Links } from './Link/Links';
|
|
21
22
|
export { default as Media } from './Media/Media';
|
|
22
23
|
export { default as OutsideClick } from './OutsideClick/OutsideClick';
|
package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from 'react';
|
|
2
2
|
import { block } from '../../../../../utils';
|
|
3
3
|
import { NavigationGithubButtonIcon } from '../../../../../models';
|
|
4
|
-
import { LinkBase } from '../../../../../components
|
|
4
|
+
import { LinkBase } from '../../../../../components';
|
|
5
5
|
import './GithubButton.css';
|
|
6
6
|
const b = block('github-button');
|
|
7
7
|
const DEFAULT_LABEL = 'Stars on GitHub';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { block } from '../../../utils';
|
|
3
|
-
import { Image } from '../../../components';
|
|
3
|
+
import { Image, LinkBase } from '../../../components';
|
|
4
4
|
import { getMediaImage } from '../../../components/Media/Image/utils';
|
|
5
|
-
import { LinkBase } from '../../../components/LinkBase/LinkBase';
|
|
6
5
|
import './SocialIcon.css';
|
|
7
6
|
const b = block('social-icon');
|
|
8
7
|
const SocialIcon = ({ icon, url, className }) => {
|