@gravity-ui/page-constructor 1.10.7 → 1.11.0
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/CHANGELOG.md +18 -0
- package/build/cjs/blocks/Banner/Banner.js +3 -3
- package/build/cjs/blocks/CardLayout/CardLayout.js +1 -1
- package/build/cjs/blocks/Companies/Companies.js +2 -2
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +2 -2
- package/build/cjs/blocks/Header/Header.d.ts +1 -1
- package/build/cjs/blocks/Header/Header.js +3 -3
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +3 -3
- package/build/cjs/blocks/Icons/Icons.js +1 -1
- package/build/cjs/blocks/Info/Info.js +2 -2
- package/build/cjs/blocks/Info/schema.js +1 -1
- package/build/cjs/blocks/LinkTable/LinkTable.js +4 -4
- package/build/cjs/blocks/Media/Media.js +6 -6
- package/build/cjs/blocks/Media/MediaContent.js +1 -1
- package/build/cjs/blocks/Preview/MediaContent/MediaContent.js +3 -3
- package/build/cjs/blocks/Preview/MediaContent/PreviewContent.js +2 -2
- package/build/cjs/blocks/Preview/MediaContent/PreviewMedia.js +2 -2
- package/build/cjs/blocks/Preview/Preview.js +3 -3
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +7 -7
- package/build/cjs/blocks/Questions/Questions.js +2 -2
- package/build/cjs/blocks/Questions/schema.js +1 -1
- package/build/cjs/blocks/Security/Security.js +1 -1
- package/build/cjs/blocks/Security/schema.js +1 -1
- package/build/cjs/blocks/Share/Share.js +2 -2
- package/build/cjs/blocks/Share/i18n/index.js +2 -2
- package/build/cjs/blocks/Simple/Simple.js +4 -4
- package/build/cjs/blocks/Slider/Arrow/Arrow.d.ts +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +2 -2
- package/build/cjs/blocks/Slider/Slider.js +9 -9
- package/build/cjs/blocks/Slider/models.d.ts +2 -2
- package/build/cjs/blocks/Table/Table.js +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +6 -6
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/validators.js +19 -19
- package/build/cjs/components/Anchor/Anchor.d.ts +2 -1
- package/build/cjs/components/Anchor/Anchor.js +2 -2
- package/build/cjs/components/Anchor/__tests__/Anchor.test.d.ts +1 -0
- package/build/cjs/components/Anchor/__tests__/Anchor.test.js +21 -0
- package/build/cjs/components/AnimateBlock/AnimateBlock.js +1 -1
- package/build/cjs/components/Author/Author.js +1 -1
- package/build/cjs/components/BackLink/BackLink.d.ts +1 -1
- package/build/cjs/components/BackLink/BackLink.js +1 -1
- package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
- package/build/cjs/components/BackgroundMedia/BackgroundMedia.js +4 -4
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +2 -2
- package/build/cjs/components/BlockBase/BlockBase.js +2 -2
- package/build/cjs/components/BlockHeader/BlockHeader.js +2 -2
- package/build/cjs/components/Button/Button.js +2 -2
- package/build/cjs/components/Button/utils.d.ts +2 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.js +1 -1
- package/build/cjs/components/CardBase/CardBase.js +3 -3
- package/build/cjs/components/Control/Control.js +1 -1
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.js +1 -1
- package/build/cjs/components/FileLink/FileLink.js +1 -1
- package/build/cjs/components/Foldable/Foldable.js +2 -2
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js +2 -2
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +2 -2
- package/build/cjs/components/HTML/HTML.js +1 -1
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
- package/build/cjs/components/HeightCalculator/HeightCalculator.js +2 -2
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Link/Link.css +11 -1
- package/build/cjs/components/Link/Link.d.ts +1 -1
- package/build/cjs/components/Link/Link.js +11 -8
- package/build/cjs/components/Link/Links.js +2 -2
- package/build/cjs/components/Media/DataLens/DataLens.js +1 -1
- package/build/cjs/components/Media/Image/Image.d.ts +1 -1
- package/build/cjs/components/Media/Image/Image.js +6 -6
- package/build/cjs/components/Media/Media.js +5 -5
- package/build/cjs/components/Media/Video/Video.d.ts +1 -1
- package/build/cjs/components/Media/Video/Video.js +2 -2
- package/build/cjs/components/OutsideClick/OutsideClick.js +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.d.ts +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +2 -2
- package/build/cjs/components/ReactPlayer/CircleProgress.js +1 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.js +2 -2
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +4 -4
- package/build/cjs/components/RouterLink/RouterLink.js +1 -1
- package/build/cjs/components/Table/Table.js +1 -1
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/ToggleArrow/ToggleArrow.js +1 -1
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.d.ts +1 -1
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js +2 -2
- package/build/cjs/components/UnpublishedLabel/i18n/index.js +2 -2
- package/build/cjs/components/VideoBlock/VideoBlock.js +3 -3
- package/build/cjs/components/YFMWrapper/YFMWrapper.js +3 -3
- package/build/cjs/components/YandexForm/YandexForm.js +1 -1
- package/build/cjs/containers/Loadable/Loadable.js +4 -4
- package/build/cjs/containers/Loadable/i18n/index.js +2 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +4 -4
- package/build/cjs/containers/PageConstructor/Provider.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorItem/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/index.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorRow/index.js +1 -1
- package/build/cjs/context/animateContext/AnimateContext.js +1 -1
- package/build/cjs/context/animateContext/index.js +1 -1
- package/build/cjs/context/breakpointContext/breakpointContext.js +1 -1
- package/build/cjs/context/breakpointContext/index.js +1 -1
- package/build/cjs/context/innerContext/InnerContext.js +1 -1
- package/build/cjs/context/innerContext/index.js +1 -1
- package/build/cjs/context/localeContext/index.js +1 -1
- package/build/cjs/context/localeContext/localeContext.d.ts +1 -1
- package/build/cjs/context/localeContext/localeContext.js +1 -1
- package/build/cjs/context/locationContext/index.js +1 -1
- package/build/cjs/context/locationContext/locationContext.d.ts +2 -2
- package/build/cjs/context/locationContext/locationContext.js +1 -1
- package/build/cjs/context/metrikaContext/index.js +1 -1
- package/build/cjs/context/metrikaContext/metrikaContext.js +1 -1
- package/build/cjs/context/mobileContext/MobileContext.js +1 -1
- package/build/cjs/context/mobileContext/index.js +1 -1
- package/build/cjs/context/projectSettingsContext/ProjectSettingsContext.js +1 -1
- package/build/cjs/context/projectSettingsContext/index.js +1 -1
- package/build/cjs/context/ssrContext/SSRContext.js +1 -1
- package/build/cjs/context/ssrContext/index.js +1 -1
- package/build/cjs/context/stylesContext/StylesContext.js +1 -1
- package/build/cjs/context/stylesContext/index.js +1 -1
- package/build/cjs/context/theme/ThemeContext.js +1 -1
- package/build/cjs/context/theme/ThemeProvider.js +1 -1
- package/build/cjs/context/theme/ThemeValueContext.d.ts +1 -1
- package/build/cjs/context/theme/ThemeValueContext.js +1 -1
- package/build/cjs/context/theme/index.js +4 -4
- package/build/cjs/context/theme/useTheme.js +1 -1
- package/build/cjs/context/theme/useThemeValue.js +1 -1
- package/build/cjs/context/theme/withTheme.js +1 -1
- package/build/cjs/context/videoContext/VideoContext.js +1 -1
- package/build/cjs/context/videoContext/index.js +1 -1
- package/build/cjs/grid/Break/Break.js +1 -1
- package/build/cjs/grid/Col/Col.d.ts +1 -1
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Grid/Grid.js +1 -1
- package/build/cjs/grid/Row/Row.js +1 -1
- package/build/cjs/grid/index.js +6 -6
- package/build/cjs/grid/types.d.ts +2 -2
- package/build/cjs/hooks/index.js +4 -4
- package/build/cjs/hooks/useFocus.js +1 -1
- package/build/cjs/hooks/useIntersection.d.ts +1 -1
- package/build/cjs/hooks/useMetrika.d.ts +1 -1
- package/build/cjs/hooks/useMount.d.ts +1 -1
- package/build/cjs/hooks/useWindowBreakpoint.js +1 -1
- package/build/cjs/icons/ArrowConstructor.js +1 -1
- package/build/cjs/icons/ArrowSidebar.js +1 -1
- package/build/cjs/icons/Chevron.js +1 -1
- package/build/cjs/icons/Facebook.js +1 -1
- package/build/cjs/icons/FullScreen.js +1 -1
- package/build/cjs/icons/Github.js +1 -1
- package/build/cjs/icons/Linkedin.js +1 -1
- package/build/cjs/icons/NavigationArrow.js +1 -1
- package/build/cjs/icons/NavigationChevron.js +1 -1
- package/build/cjs/icons/NavigationClose.js +1 -1
- package/build/cjs/icons/NavigationOpen.js +1 -1
- package/build/cjs/icons/PlayVideo.js +1 -1
- package/build/cjs/icons/PreviewClose.js +1 -1
- package/build/cjs/icons/Telegram.js +1 -1
- package/build/cjs/icons/Twitter.js +1 -1
- package/build/cjs/icons/Vk.js +1 -1
- package/build/cjs/icons/index.js +11 -11
- package/build/cjs/index.js +11 -11
- package/build/cjs/models/common.d.ts +3 -3
- package/build/cjs/models/components.d.ts +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +29 -29
- package/build/cjs/models/constructor-items/common.d.ts +25 -25
- package/build/cjs/models/constructor-items/index.d.ts +1 -1
- package/build/cjs/models/constructor-items/index.js +3 -3
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +15 -15
- package/build/cjs/models/constructor.d.ts +10 -10
- package/build/cjs/models/index.js +7 -7
- package/build/cjs/models/navigation.d.ts +6 -4
- package/build/cjs/models/react.d.ts +1 -1
- package/build/cjs/navigation/components/Header/Header.d.ts +2 -2
- package/build/cjs/navigation/components/Header/Header.js +7 -7
- package/build/cjs/navigation/components/Logo/Logo.d.ts +3 -3
- package/build/cjs/navigation/components/Logo/Logo.js +11 -7
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +3 -3
- package/build/cjs/navigation/components/Navigation/Navigation.js +6 -6
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +6 -6
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +3 -3
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js +1 -1
- package/build/cjs/navigation/containers/Layout/Layout.js +2 -2
- package/build/cjs/schema/index.d.ts +1 -1
- package/build/cjs/schema/validators/blocks.js +20 -20
- package/build/cjs/schema/validators/index.js +5 -5
- package/build/cjs/schema/validators/sub-blocks.js +11 -11
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +3 -3
- package/build/cjs/sub-blocks/BasicCard/schema.js +1 -1
- package/build/cjs/sub-blocks/CardWithImage/CardWithImage.js +1 -1
- package/build/cjs/sub-blocks/Content/Content.js +3 -3
- package/build/cjs/sub-blocks/Divider/Divider.js +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +2 -2
- package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +2 -2
- package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js +2 -2
- package/build/cjs/sub-blocks/NewsCard/NewsCard.js +1 -1
- package/build/cjs/sub-blocks/Partner/Partner.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +5 -5
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/List.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.js +3 -3
- package/build/cjs/sub-blocks/PriceDetailed/SeparatePriceDetailed/SeparatePriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.js +1 -1
- package/build/cjs/sub-blocks/TutorialCard/TutorialCard.js +2 -2
- package/build/cjs/text-transform/blocks.d.ts +5 -5
- package/build/cjs/text-transform/blocks.js +4 -4
- package/build/cjs/text-transform/index.js +2 -2
- package/build/cjs/text-transform/utils.js +4 -4
- package/build/cjs/utils/blocks.d.ts +1 -1
- package/build/cjs/utils/cn.d.ts +1 -1
- package/build/cjs/utils/cn.js +1 -1
- package/build/cjs/utils/configure.d.ts +1 -1
- package/build/cjs/utils/hubspot.d.ts +1 -1
- package/build/cjs/utils/hubspot.js +1 -2
- package/build/cjs/utils/index.js +6 -6
- package/build/cjs/utils/registerKeyset.d.ts +1 -1
- package/build/cjs/utils/theme.d.ts +1 -1
- package/build/cjs/utils/url.d.ts +1 -1
- package/build/esm/blocks/Header/Header.d.ts +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +1 -1
- package/build/esm/blocks/Slider/models.d.ts +2 -2
- package/build/esm/components/Anchor/Anchor.d.ts +2 -1
- package/build/esm/components/Anchor/Anchor.js +1 -1
- package/build/esm/components/Anchor/__tests__/Anchor.test.d.ts +1 -0
- package/build/esm/components/Anchor/__tests__/Anchor.test.js +18 -0
- package/build/esm/components/BackLink/BackLink.d.ts +1 -1
- package/build/esm/components/Button/utils.d.ts +2 -2
- package/build/esm/components/Link/Link.css +11 -1
- package/build/esm/components/Link/Link.d.ts +1 -1
- package/build/esm/components/Link/Link.js +9 -6
- package/build/esm/components/Media/Image/Image.d.ts +1 -1
- package/build/esm/components/Media/Video/Video.d.ts +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.d.ts +1 -1
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.d.ts +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/esm/context/localeContext/localeContext.d.ts +1 -1
- package/build/esm/context/locationContext/locationContext.d.ts +2 -2
- package/build/esm/context/theme/ThemeValueContext.d.ts +1 -1
- package/build/esm/grid/Col/Col.d.ts +1 -1
- package/build/esm/grid/types.d.ts +2 -2
- package/build/esm/hooks/useIntersection.d.ts +1 -1
- package/build/esm/hooks/useMetrika.d.ts +1 -1
- package/build/esm/hooks/useMount.d.ts +1 -1
- package/build/esm/models/common.d.ts +3 -3
- package/build/esm/models/components.d.ts +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +29 -29
- package/build/esm/models/constructor-items/common.d.ts +25 -25
- package/build/esm/models/constructor-items/index.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +15 -15
- package/build/esm/models/constructor.d.ts +10 -10
- package/build/esm/models/navigation.d.ts +6 -4
- package/build/esm/models/react.d.ts +1 -1
- package/build/esm/navigation/components/Header/Header.d.ts +2 -2
- package/build/esm/navigation/components/Logo/Logo.d.ts +3 -3
- package/build/esm/navigation/components/Logo/Logo.js +11 -7
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -1
- package/build/esm/schema/index.d.ts +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +2 -2
- package/build/esm/text-transform/blocks.d.ts +5 -5
- package/build/esm/utils/blocks.d.ts +1 -1
- package/build/esm/utils/cn.d.ts +1 -1
- package/build/esm/utils/configure.d.ts +1 -1
- package/build/esm/utils/hubspot.d.ts +1 -1
- package/build/esm/utils/hubspot.js +1 -2
- package/build/esm/utils/registerKeyset.d.ts +1 -1
- package/build/esm/utils/theme.d.ts +1 -1
- package/build/esm/utils/url.d.ts +1 -1
- package/package.json +18 -3
- package/server/grid/types.d.ts +2 -2
- package/server/index.js +5 -1
- package/server/models/common.d.ts +3 -3
- package/server/models/components.d.ts +1 -1
- package/server/models/constructor-items/blocks.d.ts +29 -29
- package/server/models/constructor-items/common.d.ts +25 -25
- package/server/models/constructor-items/index.d.ts +1 -1
- package/server/models/constructor-items/index.js +5 -1
- package/server/models/constructor-items/sub-blocks.d.ts +15 -15
- package/server/models/constructor.d.ts +10 -10
- package/server/models/index.js +5 -1
- package/server/models/navigation.d.ts +6 -4
- package/server/models/react.d.ts +1 -1
- package/server/text-transform/blocks.d.ts +5 -5
- package/server/text-transform/index.js +5 -1
- package/server/utils/blocks.d.ts +1 -1
- package/server/utils/cn.d.ts +1 -1
- package/server/utils/configure.d.ts +1 -1
- package/server/utils/hubspot.d.ts +1 -1
- package/server/utils/hubspot.js +1 -2
- package/server/utils/index.js +5 -1
- package/server/utils/theme.d.ts +1 -1
- package/server/utils/url.d.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Row = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
exports.Row = (0, react_1.forwardRef)((props, ref) => {
|
|
7
7
|
const { className, justifyContent, alignItems, noGutter, style, children } = props;
|
|
8
8
|
const getClassName = (0, react_1.useCallback)(() => {
|
package/build/cjs/grid/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./Col/Col"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Row/Row"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Break/Break"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./Grid/Grid"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
@@ -35,8 +35,8 @@ export declare enum GridColumnOrderClasses {
|
|
|
35
35
|
First = "first",
|
|
36
36
|
Last = "last"
|
|
37
37
|
}
|
|
38
|
-
export
|
|
39
|
-
export
|
|
38
|
+
export type GridColumnSizesType = Partial<Record<GridColumnSize, number>>;
|
|
39
|
+
export type GridColumnOrderSizesType = Partial<Record<GridColumnSize, number | GridColumnOrderClasses>>;
|
|
40
40
|
export interface GridColumnClassParams {
|
|
41
41
|
className?: string;
|
|
42
42
|
sizes?: GridColumnSizesType | number;
|
package/build/cjs/hooks/index.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useMount = exports.useIntersection = exports.useWindowBreakpoint = exports.useFocus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var useFocus_1 = require("./useFocus");
|
|
6
|
-
Object.defineProperty(exports, "useFocus", { enumerable: true, get: function () { return
|
|
6
|
+
Object.defineProperty(exports, "useFocus", { enumerable: true, get: function () { return tslib_1.__importDefault(useFocus_1).default; } });
|
|
7
7
|
var useWindowBreakpoint_1 = require("./useWindowBreakpoint");
|
|
8
|
-
Object.defineProperty(exports, "useWindowBreakpoint", { enumerable: true, get: function () { return
|
|
8
|
+
Object.defineProperty(exports, "useWindowBreakpoint", { enumerable: true, get: function () { return tslib_1.__importDefault(useWindowBreakpoint_1).default; } });
|
|
9
9
|
var useIntersection_1 = require("./useIntersection");
|
|
10
10
|
Object.defineProperty(exports, "useIntersection", { enumerable: true, get: function () { return useIntersection_1.useIntersection; } });
|
|
11
11
|
var useMount_1 = require("./useMount");
|
|
12
|
-
Object.defineProperty(exports, "useMount", { enumerable: true, get: function () { return
|
|
13
|
-
|
|
12
|
+
Object.defineProperty(exports, "useMount", { enumerable: true, get: function () { return tslib_1.__importDefault(useMount_1).default; } });
|
|
13
|
+
tslib_1.__exportStar(require("./hubspot"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const lodash_1 =
|
|
4
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
5
|
const mobileContext_1 = require("../context/mobileContext");
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
function useFocus(element) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIntersection: (element?: Element
|
|
1
|
+
export declare const useIntersection: (element?: Element, startMargin?: string, threshold?: number) => boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const lodash_1 =
|
|
4
|
+
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
function calculate(windowWidth) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ArrowConstructor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const ArrowConstructor = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "19", height: "42", viewBox: "0 0 19 42", fill: "none", stroke: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M18 41 2 21 18 1", strokeWidth: "2" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ArrowSidebar = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const ArrowSidebar = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M19.5 11H7.4l3.8-3.8c.4-.4.4-1 0-1.4s-1-.4-1.4 0L3.6 12l6.2 6.2c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L7.4 13h12.1c.6 0 1-.4 1-1s-.4-1-1-1z", fill: "currentColor" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Chevron = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Chevron = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: "16", height: "16", stroke: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { fill: "none", d: "M3 6l5 5 5-5" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Facebook = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Facebook = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M13.79 22H9.93v-9.501H8V9.225h1.93V7.26C9.93 4.589 11.017 3 14.113 3h2.577v3.275h-1.61c-1.206 0-1.285.457-1.285 1.311l-.006 1.639h2.918l-.341 3.274H13.79V22z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FullScreen = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const FullScreen = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4.654v.291a10 10 0 0 0-1.763 1.404l-2.944 2.944a1 1 0 0 0 1.414 1.414l2.933-2.932A9.996 9.996 0 0 0 19.05 6h.296l-.09.39A9.993 9.993 0 0 0 19 8.64v.857a1 1 0 0 0 2 0V4.503a1.5 1.5 0 0 0-1.5-1.5L14.5 3a1 1 0 1 0 0 2h.861a10 10 0 0 0 2.249-.256l.39-.09zM4.95 18a10 10 0 0 1 1.41-1.775l2.933-2.932a1 1 0 0 1 1.414 1.414l-2.944 2.944A9.998 9.998 0 0 1 6 19.055v.291l.39-.09A9.993 9.993 0 0 1 8.64 19h.86a1 1 0 0 1 0 2l-5-.003a1.5 1.5 0 0 1-1.5-1.5V14.5a1 1 0 1 1 2 0v.861a10 10 0 0 1-.256 2.249l-.09.39h.296z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Github = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Github = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "32", height: "32", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M25.524 10.479a10.952 10.952 0 0 0-4.003-4.004C19.836 5.492 17.996 5 16 5s-3.836.492-5.521 1.475a10.95 10.95 0 0 0-4.004 4.004C5.492 12.164 5 14.004 5 15.998c0 2.397.7 4.553 2.098 6.467 1.4 1.915 3.206 3.24 5.421 3.975.258.048.45.014.573-.1a.56.56 0 0 0 .186-.43l-.007-.773a128.35 128.35 0 0 1-.007-1.275l-.33.057c-.21.039-.474.055-.794.05a6.048 6.048 0 0 1-.996-.1 2.224 2.224 0 0 1-.96-.43 1.817 1.817 0 0 1-.63-.88l-.143-.33a3.58 3.58 0 0 0-.45-.73c-.206-.267-.414-.449-.624-.544l-.1-.072a1.05 1.05 0 0 1-.186-.172.785.785 0 0 1-.13-.2c-.028-.067-.004-.122.072-.166.077-.043.215-.064.416-.064l.286.043c.191.039.427.153.71.344.28.19.512.44.694.744.22.392.484.69.795.896.31.205.623.308.938.308.315 0 .587-.024.816-.072.23-.048.444-.12.645-.215.086-.64.32-1.131.701-1.475a9.8 9.8 0 0 1-1.468-.258 5.846 5.846 0 0 1-1.346-.559 3.855 3.855 0 0 1-1.153-.96c-.306-.381-.556-.883-.752-1.503-.196-.62-.293-1.337-.293-2.148 0-1.156.377-2.14 1.131-2.951-.353-.869-.32-1.843.1-2.922.277-.086.688-.021 1.232.193.544.215.943.4 1.196.552.253.153.456.282.609.387a10.17 10.17 0 0 1 2.75-.373c.945 0 1.862.124 2.75.373l.544-.344c.372-.23.812-.44 1.318-.63.506-.191.893-.244 1.16-.158.43 1.08.468 2.053.115 2.922.754.812 1.131 1.795 1.131 2.95 0 .812-.098 1.53-.293 2.156-.196.626-.449 1.127-.76 1.504-.31.377-.696.695-1.16.952a5.855 5.855 0 0 1-1.346.559 9.84 9.84 0 0 1-1.468.258c.496.43.745 1.108.745 2.034v3.022c0 .171.06.315.179.43.12.114.308.147.566.1 2.215-.736 4.022-2.06 5.42-3.975 1.4-1.915 2.099-4.07 2.099-6.467 0-1.995-.492-3.835-1.476-5.52z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Linkedin = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Linkedin = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M21.3779 19.3506H17.7796V13.7149C17.7796 12.371 17.7556 10.641 15.908 10.641C14.0339 10.641 13.7471 12.1053 13.7471 13.6171V19.3503H10.1487V7.76094H13.6032V9.34475H13.6515C13.9972 8.7536 14.4968 8.2673 15.097 7.93763C15.6972 7.60796 16.3756 7.44726 17.0599 7.47266C20.707 7.47266 21.3794 9.8718 21.3794 12.9929L21.3779 19.3506ZM6.08857 6.17675C5.67556 6.17682 5.2718 6.05442 4.92836 5.82501C4.58492 5.5956 4.31722 5.26949 4.1591 4.88792C4.00097 4.50633 3.95956 4.08644 4.04005 3.68132C4.12055 3.2762 4.31936 2.90406 4.61135 2.61194C4.90333 2.31983 5.27537 2.12085 5.68043 2.0402C6.08549 1.95954 6.50536 2.00084 6.88696 2.15883C7.26854 2.31683 7.59472 2.58444 7.82423 2.92782C8.05375 3.27122 8.1763 3.67496 8.17637 4.088C8.17642 4.36226 8.12246 4.63383 8.01757 4.88721C7.91267 5.14061 7.75889 5.37086 7.56502 5.56482C7.37114 5.75877 7.14098 5.91264 6.88765 6.01764C6.63431 6.12264 6.36278 6.1767 6.08857 6.17675ZM7.88774 19.3506H4.28561V7.76094H7.88774V19.3506Z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NavigationArrow = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const NavigationArrow = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", fill: "none", viewBox: "0 0 9 9" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M3 1H8M8 1V6M8 1L1 8", stroke: "currentColor", strokeOpacity: "0.7", strokeWidth: "1.2", strokeLinecap: "square" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NavigationChevron = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const NavigationChevron = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 3L6 8L11 3L12 4L5.99997 10L-4.37114e-08 4L1 3Z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NavigationClose = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const NavigationClose = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M26 10 10 26m16 0L10 10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NavigationOpen = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const NavigationOpen = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "36", height: "36", fill: "none" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("rect", { x: "8", y: "10", width: "20", height: "2", rx: "1", fill: "currentColor" }),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlayVideo = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const PlayVideo = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "22", height: "26", viewBox: "0 0 22 26", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M21 11.268c1.333.77 1.333 2.694 0 3.464L3 25.124c-1.333.77-3-.192-3-1.732V2.608C0 1.068 1.667.106 3 .876l18 10.392z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PreviewClose = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const PreviewClose = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor", stroke: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { strokeWidth: "2", strokeLinecap: "round", d: "M7.357 7.357l9.286 9.286m0-9.286l-9.286 9.286" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Telegram = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Telegram = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M2.336 11.932l4.378 1.634 1.694 5.45a.515.515 0 0 0 .819.246l2.44-1.99a.728.728 0 0 1 .888-.024l4.401 3.196c.303.22.732.054.808-.312l3.225-15.51a.516.516 0 0 0-.691-.587L2.33 10.968a.516.516 0 0 0 .006.965zm5.799.764l8.556-5.27c.154-.094.312.114.18.237L9.81 14.226c-.248.231-.408.54-.454.876l-.24 1.783c-.032.238-.367.261-.432.031l-.925-3.25a.862.862 0 0 1 .376-.97z" })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Twitter = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Twitter = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M19.644 6.675a4.247 4.247 0 0 0 1.803-2.362c-.793.49-1.67.844-2.606 1.036A4.016 4.016 0 0 0 15.846 4c-2.265 0-4.101 1.913-4.101 4.272 0 .335.034.66.104.973C8.44 9.066 5.417 7.367 3.392 4.78a4.397 4.397 0 0 0-.555 2.149c0 1.481.724 2.789 1.825 3.556a3.994 3.994 0 0 1-1.859-.534v.053c0 2.07 1.413 3.797 3.293 4.188-.345.1-.707.15-1.083.15-.264 0-.522-.025-.77-.075.52 1.696 2.036 2.933 3.832 2.966A8.028 8.028 0 0 1 2 19.004a11.29 11.29 0 0 0 6.29 1.92c7.548 0 11.673-6.51 11.673-12.156 0-.186-.002-.37-.01-.553A8.508 8.508 0 0 0 22 6.003c-.736.34-1.527.57-2.356.672z" })));
|
package/build/cjs/icons/Vk.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Vk = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 =
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const svg_1 = require("../utils/svg");
|
|
7
7
|
const Vk = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor" }, svg_1.a11yHiddenSvgProps, props),
|
|
8
8
|
react_1.default.createElement("path", { d: "M19.934 13.916c.73.713 1.5 1.383 2.155 2.167.289.349.563.708.772 1.113.297.575.028 1.208-.488 1.242l-3.205-.001c-.826.068-1.486-.265-2.04-.83-.444-.452-.855-.933-1.282-1.4a3.04 3.04 0 0 0-.576-.513c-.438-.284-.818-.197-1.068.26-.254.464-.312.978-.337 1.495-.034.754-.263.953-1.02.987-1.62.077-3.158-.168-4.587-.985-1.26-.721-2.236-1.738-3.086-2.89-1.655-2.242-2.922-4.706-4.06-7.239-.257-.57-.07-.877.56-.888a87.013 87.013 0 0 1 3.138-.001c.425.006.706.25.87.651.566 1.391 1.258 2.715 2.127 3.941.231.327.467.653.803.883.372.255.655.17.83-.244.11-.262.16-.545.184-.826.083-.967.094-1.933-.051-2.897-.09-.602-.428-.991-1.029-1.105-.306-.058-.26-.172-.112-.347.257-.302.5-.49.983-.49h3.622c.57.113.697.37.775.943l.003 4.024c-.006.222.11.881.51 1.028.321.105.532-.152.724-.355.868-.92 1.487-2.008 2.04-3.134.245-.495.456-1.01.66-1.524.152-.381.39-.569.82-.56l3.485.003c.104 0 .208.001.309.018.587.1.748.353.566.927-.285.9-.842 1.65-1.385 2.403-.582.805-1.204 1.582-1.78 2.39-.53.74-.488 1.112.17 1.754z" })));
|
package/build/cjs/icons/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./ArrowConstructor"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ArrowSidebar"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Chevron"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./FullScreen"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./Github"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./NavigationChevron"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./PlayVideo"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./PreviewClose"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./NavigationClose"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./NavigationOpen"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./NavigationArrow"), exports);
|
package/build/cjs/index.js
CHANGED
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BREAKPOINTS = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
//storybook
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
tslib_1.__exportStar(require("./context/theme"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./containers/PageConstructor"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./grid"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./blocks"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./sub-blocks"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./components"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./schema"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./hooks"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./icons"), exports);
|
|
17
17
|
var constants_1 = require("./constants");
|
|
18
18
|
Object.defineProperty(exports, "BREAKPOINTS", { enumerable: true, get: function () { return constants_1.BREAKPOINTS; } });
|
|
@@ -7,7 +7,7 @@ export declare enum Theme {
|
|
|
7
7
|
Light = "light",
|
|
8
8
|
Dark = "dark"
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
type PixelCommand = 'track' | 'trackCustom';
|
|
11
11
|
export interface PixelEvent {
|
|
12
12
|
command: PixelCommand;
|
|
13
13
|
event: PixelEventType | string;
|
|
@@ -33,7 +33,7 @@ export declare enum PixelEventType {
|
|
|
33
33
|
Subscribe = "Subscribe",
|
|
34
34
|
ViewContent = "ViewContent"
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type Modifiers = {
|
|
37
37
|
[name: string]: string | boolean | undefined;
|
|
38
38
|
};
|
|
39
39
|
export interface Pixel<TEvent = string> {
|
|
@@ -48,5 +48,5 @@ export interface Metrika {
|
|
|
48
48
|
export interface ClassNameProps {
|
|
49
49
|
className?: string;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type Timeout = ReturnType<typeof setTimeout> | undefined;
|
|
52
52
|
export {};
|
|
@@ -48,7 +48,7 @@ export interface LoadableProps {
|
|
|
48
48
|
export interface LoadableChildren {
|
|
49
49
|
loadable?: LoadableProps;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type ServiceDemoProps = Animatable;
|
|
52
52
|
export declare enum SliderBreakpointNames {
|
|
53
53
|
Sm = "sm",
|
|
54
54
|
Md = "md",
|
|
@@ -59,8 +59,8 @@ export declare enum SliderType {
|
|
|
59
59
|
MediaCard = "media-card",
|
|
60
60
|
HeaderCard = "header-card"
|
|
61
61
|
}
|
|
62
|
-
export
|
|
63
|
-
export
|
|
62
|
+
export type SliderBreakpointParams = Record<SliderBreakpointNames, number>;
|
|
63
|
+
export type SlidesToShow = Partial<SliderBreakpointParams> | number;
|
|
64
64
|
export interface SliderProps extends Childable, Animatable, LoadableChildren {
|
|
65
65
|
dots?: boolean;
|
|
66
66
|
arrows?: boolean;
|
|
@@ -88,7 +88,7 @@ export interface HeaderBlockBackground extends Partial<HeaderBackgroundProps>, P
|
|
|
88
88
|
fullWidth?: boolean;
|
|
89
89
|
fullWidthMedia?: boolean;
|
|
90
90
|
}
|
|
91
|
-
export
|
|
91
|
+
export type ThemedHeaderBlockBackground = ThemeSupporting<HeaderBlockBackground>;
|
|
92
92
|
export interface HeaderBlockProps {
|
|
93
93
|
title: string;
|
|
94
94
|
overtitle?: string;
|
|
@@ -110,7 +110,7 @@ export interface HeaderBlockProps {
|
|
|
110
110
|
breadcrumbs?: HeaderBreadCrumbsProps;
|
|
111
111
|
status?: JSX.Element;
|
|
112
112
|
}
|
|
113
|
-
export
|
|
113
|
+
export type CalculatorProps = Animatable;
|
|
114
114
|
export interface SimpleBlockProps extends Animatable, Childable {
|
|
115
115
|
title: TitleBaseProps;
|
|
116
116
|
description: string;
|
|
@@ -287,72 +287,72 @@ export interface ShareBlockProps {
|
|
|
287
287
|
items: PCShareSocialNetwork[];
|
|
288
288
|
title?: string;
|
|
289
289
|
}
|
|
290
|
-
export
|
|
290
|
+
export type HeaderBlockModel = {
|
|
291
291
|
type: BlockType.HeaderBlock;
|
|
292
292
|
} & HeaderBlockProps;
|
|
293
|
-
export
|
|
293
|
+
export type CalculatorBlockModel = {
|
|
294
294
|
type: BlockType.CalculatorBlock;
|
|
295
295
|
} & CalculatorProps;
|
|
296
|
-
export
|
|
296
|
+
export type SliderBlockModel = {
|
|
297
297
|
type: BlockType.SliderBlock;
|
|
298
298
|
} & SliderProps;
|
|
299
|
-
export
|
|
299
|
+
export type ServiceDemoBlockModel = {
|
|
300
300
|
type: BlockType.ServiceDemoBlock;
|
|
301
301
|
} & ServiceDemoProps;
|
|
302
|
-
export
|
|
302
|
+
export type ExtendedFeaturesBlockModel = {
|
|
303
303
|
type: BlockType.ExtendedFeaturesBlock;
|
|
304
304
|
} & ExtendedFeaturesProps;
|
|
305
|
-
export
|
|
305
|
+
export type PromoFeaturesBlockModel = {
|
|
306
306
|
type: BlockType.PromoFeaturesBlock;
|
|
307
307
|
} & PromoFeaturesProps;
|
|
308
|
-
export
|
|
308
|
+
export type QuestionsBlockModel = {
|
|
309
309
|
type: BlockType.QuestionsBlock;
|
|
310
310
|
} & QuestionsProps;
|
|
311
|
-
export
|
|
311
|
+
export type BannerBlockModel = {
|
|
312
312
|
type: BlockType.BannerBlock;
|
|
313
313
|
} & BannerBlockProps;
|
|
314
|
-
export
|
|
314
|
+
export type CompaniesBlockModel = {
|
|
315
315
|
type: BlockType.CompaniesBlock;
|
|
316
316
|
} & CompaniesBlockProps;
|
|
317
|
-
export
|
|
317
|
+
export type MediaBlockModel = {
|
|
318
318
|
type: BlockType.MediaBlock;
|
|
319
319
|
} & MediaBlockProps;
|
|
320
|
-
export
|
|
320
|
+
export type PreviewBlockModel = {
|
|
321
321
|
type: BlockType.PreviewBlock;
|
|
322
322
|
} & PreviewBlockProps;
|
|
323
|
-
export
|
|
323
|
+
export type InfoBlockModel = {
|
|
324
324
|
type: BlockType.InfoBlock;
|
|
325
325
|
} & InfoBlockProps;
|
|
326
|
-
export
|
|
326
|
+
export type SecurityBlockModel = {
|
|
327
327
|
type: BlockType.SecurityBlock;
|
|
328
328
|
} & SecurityBlockProps;
|
|
329
|
-
export
|
|
329
|
+
export type TableBlockModel = {
|
|
330
330
|
type: BlockType.TableBlock;
|
|
331
331
|
} & TableBlockProps;
|
|
332
|
-
export
|
|
332
|
+
export type TabsBlockModel = {
|
|
333
333
|
type: BlockType.TabsBlock;
|
|
334
334
|
} & TabsBlockProps;
|
|
335
|
-
export
|
|
335
|
+
export type SimpleBlockModel = {
|
|
336
336
|
type: BlockType.SimpleBlock;
|
|
337
337
|
} & SimpleBlockProps;
|
|
338
|
-
export
|
|
338
|
+
export type LinkTableBlockModel = {
|
|
339
339
|
type: BlockType.LinkTableBlock;
|
|
340
340
|
} & LinkTableBlockProps;
|
|
341
|
-
export
|
|
341
|
+
export type CardLayoutBlockModel = {
|
|
342
342
|
type: BlockType.CardLayoutBlock;
|
|
343
343
|
} & CardLayoutBlockProps;
|
|
344
|
-
export
|
|
344
|
+
export type IconsBlockModel = {
|
|
345
345
|
type: BlockType.IconsBlock;
|
|
346
346
|
} & IconsBlockProps;
|
|
347
|
-
export
|
|
347
|
+
export type HeaderSliderBlockModel = {
|
|
348
348
|
type: BlockType.HeaderSliderBlock;
|
|
349
349
|
} & HeaderSliderBlockProps;
|
|
350
|
-
export
|
|
350
|
+
export type ContentLayoutBlockModel = {
|
|
351
351
|
type: BlockType.ContentLayoutBlock;
|
|
352
352
|
} & ContentLayoutBlockProps;
|
|
353
|
-
export
|
|
353
|
+
export type ShareBLockModel = {
|
|
354
354
|
type: BlockType.ShareBlock;
|
|
355
355
|
} & ShareBlockProps;
|
|
356
|
-
|
|
357
|
-
export
|
|
356
|
+
type BlockModels = SliderBlockModel | ServiceDemoBlockModel | ExtendedFeaturesBlockModel | PromoFeaturesBlockModel | QuestionsBlockModel | CalculatorBlockModel | BannerBlockModel | CompaniesBlockModel | MediaBlockModel | InfoBlockModel | SecurityBlockModel | TableBlockModel | TabsBlockModel | SimpleBlockModel | LinkTableBlockModel | HeaderBlockModel | PreviewBlockModel | IconsBlockModel | HeaderSliderBlockModel | CardLayoutBlockModel | ContentLayoutBlockModel | ShareBLockModel;
|
|
357
|
+
export type Block = BlockModels & BlockBaseProps;
|
|
358
358
|
export {};
|
|
@@ -37,23 +37,23 @@ export declare enum MediaVideoControlsType {
|
|
|
37
37
|
Default = "default",
|
|
38
38
|
Custom = "custom"
|
|
39
39
|
}
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
40
|
+
export type TextTheme = 'light' | 'dark';
|
|
41
|
+
export type TextSize = 's' | 'm' | 'l';
|
|
42
|
+
export type DividerSize = '0' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
43
|
+
export type HeaderWidth = 's' | 'm' | 'l';
|
|
44
|
+
export type HeaderImageSize = 's' | 'm';
|
|
45
|
+
export type HeaderOffset = 'default' | 'large';
|
|
46
|
+
export type Justify = 'start' | 'center' | 'end';
|
|
47
|
+
export type ColumnsCount = 1 | 2 | 3 | 4;
|
|
48
|
+
export type LegendTableMarkerType = 'disk';
|
|
49
|
+
export type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';
|
|
50
|
+
export type MediaDirection = 'media-content' | 'content-media';
|
|
51
|
+
export type PriceDescriptionColor = 'cornflower' | 'black';
|
|
52
|
+
export type PreviewRatioMediaContent = '2-1' | '1-1';
|
|
53
|
+
export type ContentSize = 's' | 'l';
|
|
54
|
+
export type ContentTextSize = 's' | 'm' | 'l';
|
|
55
|
+
export type ContentTheme = 'default' | 'dark' | 'light';
|
|
56
|
+
export type FileLinkType = 'vertical' | 'horizontal';
|
|
57
57
|
export interface Themable {
|
|
58
58
|
theme?: TextTheme;
|
|
59
59
|
}
|
|
@@ -93,8 +93,8 @@ export interface ImageDeviceProps extends ImageInfoProps {
|
|
|
93
93
|
mobile: string;
|
|
94
94
|
tablet?: string;
|
|
95
95
|
}
|
|
96
|
-
export
|
|
97
|
-
export
|
|
96
|
+
export type ImageProps = string | ImageObjectProps | ImageDeviceProps;
|
|
97
|
+
export type ThemedImage = ThemeSupporting<ImageProps>;
|
|
98
98
|
export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps> {
|
|
99
99
|
style?: CSSProperties;
|
|
100
100
|
imageClassName?: string;
|
|
@@ -162,7 +162,7 @@ export interface MediaVideoProps {
|
|
|
162
162
|
controls?: MediaVideoControlsType;
|
|
163
163
|
metrika?: MetrikaVideo;
|
|
164
164
|
}
|
|
165
|
-
export
|
|
165
|
+
export type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;
|
|
166
166
|
export interface MediaComponentVideoProps {
|
|
167
167
|
video: MediaVideoProps;
|
|
168
168
|
height?: number;
|
|
@@ -185,14 +185,14 @@ export interface MediaComponentDataLensProps {
|
|
|
185
185
|
export interface MediaProps extends Animatable, Partial<MediaComponentDataLensProps>, Partial<MediaComponentYoutubeProps>, Partial<MediaComponentImageProps>, Partial<MediaComponentVideoProps> {
|
|
186
186
|
color?: string;
|
|
187
187
|
}
|
|
188
|
-
export
|
|
188
|
+
export type ThemedMediaProps = ThemeSupporting<MediaProps>;
|
|
189
189
|
export interface NewMetrikaGoal {
|
|
190
190
|
name: string;
|
|
191
191
|
isCrossSite?: boolean;
|
|
192
192
|
counterName?: string;
|
|
193
193
|
params?: Record<string, string>;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type MetrikaGoal = string | string[] | NewMetrikaGoal[];
|
|
196
196
|
export interface MetrikaVideo {
|
|
197
197
|
counterName?: string;
|
|
198
198
|
play?: MetrikaGoal;
|
|
@@ -202,12 +202,12 @@ export interface ButtonPixelEvent {
|
|
|
202
202
|
name: PixelEventType;
|
|
203
203
|
data?: Object;
|
|
204
204
|
}
|
|
205
|
-
export
|
|
205
|
+
export type ButtonPixel = ButtonPixelEvent[];
|
|
206
206
|
export interface DataLensObjectProps {
|
|
207
207
|
id: string;
|
|
208
208
|
theme: 'dark' | 'light';
|
|
209
209
|
}
|
|
210
|
-
export
|
|
210
|
+
export type DataLensProps = string | DataLensObjectProps;
|
|
211
211
|
export interface AuthorItem {
|
|
212
212
|
firstName: string;
|
|
213
213
|
secondName: string;
|
|
@@ -256,7 +256,7 @@ export interface CardData {
|
|
|
256
256
|
};
|
|
257
257
|
links?: LinkProps[];
|
|
258
258
|
}
|
|
259
|
-
export
|
|
259
|
+
export type CardBorder = 'shadow' | 'line' | 'none';
|
|
260
260
|
export interface CardBaseProps {
|
|
261
261
|
border?: CardBorder;
|
|
262
262
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./sub-blocks"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./blocks"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./common"), exports);
|