@gravity-ui/page-constructor 8.0.0-beta.2 → 8.1.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/README.md +39 -2
- package/build/cjs/_vendor/swiper-modules.js +1309 -0
- package/build/cjs/_vendor/swiper-modules.js.map +7 -0
- package/build/cjs/_vendor/swiper-react.js +4651 -0
- package/build/cjs/_vendor/swiper-react.js.map +7 -0
- package/build/cjs/_vendor/swiper.js +3822 -0
- package/build/cjs/_vendor/swiper.js.map +7 -0
- package/build/cjs/blocks/CardLayout/CardLayout.css +6 -0
- package/build/cjs/blocks/CardLayout/CardLayout.d.ts +1 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -2
- package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/cjs/blocks/Companies/schema.d.ts +1 -0
- package/build/cjs/blocks/Companies/schema.js +2 -1
- package/build/cjs/blocks/Companies/schema.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +4 -2
- package/build/cjs/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/cjs/blocks/ContentLayout/schema.d.ts +11 -0
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +5 -5
- package/build/cjs/blocks/FilterBlock/FilterBlock.d.ts +1 -2
- package/build/cjs/blocks/FilterBlock/FilterBlock.js.map +1 -1
- package/build/cjs/blocks/FoldableList/schema.d.ts +11 -0
- package/build/cjs/blocks/Form/Form.css +5 -2
- package/build/cjs/blocks/Form/Form.d.ts +2 -3
- package/build/cjs/blocks/Form/Form.js +14 -11
- package/build/cjs/blocks/Form/Form.js.map +1 -1
- package/build/cjs/blocks/Form/schema.d.ts +12 -4
- package/build/cjs/blocks/Form/schema.js +1 -4
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Form/utils.d.ts +3 -0
- package/build/cjs/blocks/Form/utils.js +20 -0
- package/build/cjs/blocks/Form/utils.js.map +1 -0
- package/build/cjs/blocks/Header/Header.css +13 -0
- package/build/cjs/blocks/Header/Header.d.ts +7 -1
- package/build/cjs/blocks/Header/Header.js +11 -18
- package/build/cjs/blocks/Header/Header.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +77 -0
- package/build/cjs/blocks/Header/schema.js +13 -1
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +29 -0
- package/build/cjs/blocks/Info/schema.d.ts +22 -0
- package/build/cjs/blocks/Map/Map.js.map +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +101 -0
- package/build/cjs/blocks/Media/Media.js +1 -1
- package/build/cjs/blocks/Media/Media.js.map +1 -1
- package/build/cjs/blocks/Media/schema.d.ts +22 -0
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +3 -4
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/cjs/blocks/Questions/Questions.js +32 -7
- package/build/cjs/blocks/Questions/Questions.js.map +1 -1
- package/build/cjs/blocks/Questions/schema.d.ts +11 -0
- package/build/cjs/blocks/Share/Share.js +1 -3
- package/build/cjs/blocks/Share/Share.js.map +1 -1
- package/build/cjs/blocks/Slider/Slider.css +62 -1
- package/build/cjs/blocks/Slider/Slider.d.ts +6 -4
- package/build/cjs/blocks/Slider/Slider.js +7 -7
- package/build/cjs/blocks/Slider/Slider.js.map +1 -1
- package/build/cjs/blocks/Slider/useSlider.d.ts +1 -2
- package/build/cjs/blocks/Slider/useSlider.js +3 -7
- package/build/cjs/blocks/Slider/useSlider.js.map +1 -1
- package/build/cjs/blocks/Slider/useSliderPagination.d.ts +1 -1
- package/build/cjs/blocks/Slider/useSliderPagination.js.map +1 -1
- package/build/cjs/blocks/Slider/utils.d.ts +1 -1
- package/build/cjs/blocks/Slider/utils.js.map +1 -1
- package/build/cjs/blocks/Table/Table.js +16 -3
- package/build/cjs/blocks/Table/Table.js.map +1 -1
- package/build/cjs/blocks/Tabs/TabContent/TabContent.js +12 -12
- package/build/cjs/blocks/Tabs/TabContent/TabContent.js.map +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js +1 -1
- package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.d.ts +11 -0
- package/build/cjs/components/Button/Button.css +2 -7
- package/build/cjs/components/Button/Button.js +29 -4
- package/build/cjs/components/Button/Button.js.map +1 -1
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +1 -1
- package/build/cjs/components/ButtonTabs/ButtonTabs.js.map +1 -1
- package/build/cjs/components/Buttons/Buttons.css +3 -0
- package/build/cjs/components/Buttons/Buttons.d.ts +1 -2
- package/build/cjs/components/Buttons/Buttons.js +1 -1
- package/build/cjs/components/Buttons/Buttons.js.map +1 -1
- package/build/cjs/components/CardBase/CardBase.css +15 -0
- package/build/cjs/components/CardBase/CardBase.d.ts +3 -5
- package/build/cjs/components/CardBase/CardBase.js.map +1 -1
- package/build/cjs/components/ContentIcon/ContentIcon.d.ts +8 -0
- package/build/cjs/components/ContentIcon/ContentIcon.js +22 -0
- package/build/cjs/components/ContentIcon/ContentIcon.js.map +1 -0
- package/build/cjs/components/ContentLabels/ContentLabels.css +53 -0
- package/build/cjs/components/ContentLabels/ContentLabels.d.ts +3 -0
- package/build/cjs/components/ContentLabels/ContentLabels.js +16 -0
- package/build/cjs/components/ContentLabels/ContentLabels.js.map +1 -0
- package/build/cjs/components/ContentList/ContentList.js +3 -3
- package/build/cjs/components/ContentList/ContentList.js.map +1 -1
- package/build/cjs/components/DefaultVideo/DefaultVideo.js +23 -2
- package/build/cjs/components/DefaultVideo/DefaultVideo.js.map +1 -1
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -1
- package/build/cjs/components/Icon/Icon.css +10 -0
- package/build/cjs/components/Icon/Icon.d.ts +9 -0
- package/build/cjs/components/Icon/Icon.js +24 -0
- package/build/cjs/components/Icon/Icon.js.map +1 -0
- package/build/cjs/components/IconWrapper/IconWrapper.css +16 -1
- package/build/cjs/components/IconWrapper/IconWrapper.js +10 -6
- package/build/cjs/components/IconWrapper/IconWrapper.js.map +1 -1
- package/build/cjs/components/InnerForm/InnerForm.d.ts +1 -2
- package/build/cjs/components/InnerForm/InnerForm.js.map +1 -1
- package/build/cjs/components/Link/Link.d.ts +2 -2
- package/build/cjs/components/Link/Link.js +2 -2
- package/build/cjs/components/Link/Link.js.map +1 -1
- package/build/cjs/components/Links/Links.d.ts +1 -1
- package/build/cjs/components/Links/Links.js +1 -1
- package/build/cjs/components/Links/Links.js.map +1 -1
- package/build/cjs/components/Map/GoogleMap.d.ts +1 -2
- package/build/cjs/components/Map/GoogleMap.js +19 -3
- package/build/cjs/components/Map/GoogleMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/YMap.d.ts +4 -4
- package/build/cjs/components/Map/YMap/YMap.js +46 -15
- package/build/cjs/components/Map/YMap/YMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/YandexMap.d.ts +1 -2
- package/build/cjs/components/Map/YMap/YandexMap.js +73 -7
- package/build/cjs/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/utils.d.ts +8 -0
- package/build/cjs/components/Map/YMap/utils.js +96 -0
- package/build/cjs/components/Map/YMap/utils.js.map +1 -0
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.d.ts +1 -2
- package/build/cjs/components/Media/FullscreenVideo/FullscreenVideo.js.map +1 -1
- package/build/cjs/components/Media/Video/Video.js +2 -13
- package/build/cjs/components/Media/Video/Video.js.map +1 -1
- package/build/cjs/components/MediaBase/MediaBase.d.ts +1 -3
- package/build/cjs/components/MediaBase/MediaBase.js.map +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.d.ts +1 -2
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +19 -13
- package/build/cjs/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/cjs/components/Title/Title.d.ts +3 -2
- package/build/cjs/components/Title/Title.js +2 -2
- package/build/cjs/components/Title/Title.js.map +1 -1
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.js.map +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js +1 -1
- package/build/cjs/components/YandexForm/YandexForm.js.map +1 -1
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +5 -1
- package/build/cjs/components/index.js.map +1 -1
- package/build/cjs/constructor-items.d.ts +7 -7
- package/build/cjs/containers/PageConstructor/PageConstructor.css +0 -1
- package/build/cjs/containers/PageConstructor/Provider.js +2 -0
- package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +1 -2
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/cjs/context/locationContext/locationContext.d.ts +1 -1
- package/build/cjs/context/locationContext/locationContext.js.map +1 -1
- package/build/cjs/context/mapsContext/mapsProvider.d.ts +1 -1
- package/build/cjs/context/mapsContext/mapsProvider.js.map +1 -1
- package/build/cjs/context/windowWidthContext/WindowWidthContext.d.ts +4 -0
- package/build/cjs/context/windowWidthContext/WindowWidthContext.js +28 -0
- package/build/cjs/context/windowWidthContext/WindowWidthContext.js.map +1 -0
- package/build/cjs/context/windowWidthContext/index.d.ts +1 -0
- package/build/cjs/context/windowWidthContext/index.js +5 -0
- package/build/cjs/context/windowWidthContext/index.js.map +1 -0
- package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +1 -2
- package/build/cjs/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/cjs/editor/components/Layout/Layout.d.ts +2 -6
- package/build/cjs/editor/components/Layout/Layout.js.map +1 -1
- package/build/cjs/editor/data/previews/default-preview.d.ts +1 -1
- package/build/cjs/editor/data/previews/default-preview.js.map +1 -1
- package/build/cjs/editor/data/previews/header-block.d.ts +1 -1
- package/build/cjs/editor/data/previews/header-block.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +2 -3
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +1 -1
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js.map +1 -1
- package/build/cjs/editor/icons/Tablet.d.ts +1 -1
- package/build/cjs/editor/icons/Tablet.js.map +1 -1
- package/build/cjs/grid/Grid/Grid.js.map +1 -1
- package/build/cjs/grid/Row/Row.d.ts +1 -1
- package/build/cjs/grid/Row/Row.js.map +1 -1
- package/build/cjs/hooks/useDeviceValue.d.ts +2 -0
- package/build/cjs/hooks/useDeviceValue.js +33 -0
- package/build/cjs/hooks/useDeviceValue.js.map +1 -0
- package/build/cjs/icons/BrandIconDark.d.ts +1 -1
- package/build/cjs/icons/BrandIconDark.js.map +1 -1
- package/build/cjs/icons/BrandIconLight.d.ts +1 -1
- package/build/cjs/icons/BrandIconLight.js.map +1 -1
- package/build/cjs/icons/BrandName.d.ts +1 -1
- package/build/cjs/icons/BrandName.js.map +1 -1
- package/build/cjs/icons/Chevron.d.ts +1 -1
- package/build/cjs/icons/Chevron.js.map +1 -1
- package/build/cjs/icons/Facebook.d.ts +1 -1
- package/build/cjs/icons/Facebook.js.map +1 -1
- package/build/cjs/icons/Github.d.ts +1 -1
- package/build/cjs/icons/Github.js.map +1 -1
- package/build/cjs/icons/Linkedin.d.ts +1 -1
- package/build/cjs/icons/Linkedin.js.map +1 -1
- package/build/cjs/icons/NavigationArrow.d.ts +1 -1
- package/build/cjs/icons/NavigationArrow.js.map +1 -1
- package/build/cjs/icons/NavigationChevron.d.ts +1 -1
- package/build/cjs/icons/NavigationChevron.js.map +1 -1
- package/build/cjs/icons/Telegram.d.ts +1 -1
- package/build/cjs/icons/Telegram.js.map +1 -1
- package/build/cjs/icons/Twitter.d.ts +1 -1
- package/build/cjs/icons/Twitter.js.map +1 -1
- package/build/cjs/icons/Vk.d.ts +1 -1
- package/build/cjs/icons/Vk.js.map +1 -1
- package/build/cjs/internal-typings/global.d.ts +4 -2
- package/build/cjs/models/constructor-items/blocks.d.ts +42 -17
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +42 -4
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +17 -6
- package/build/cjs/models/constructor-items/sub-blocks.js.map +1 -1
- package/build/cjs/models/navigation.d.ts +2 -1
- package/build/cjs/models/navigation.js.map +1 -1
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +1 -2
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/cjs/navigation/components/Logo/Logo.d.ts +1 -2
- package/build/cjs/navigation/components/Logo/Logo.js.map +1 -1
- package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +1 -2
- package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.js.map +1 -1
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -2
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js.map +1 -1
- package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -1
- package/build/cjs/navigation/components/Navigation/Navigation.js +5 -2
- package/build/cjs/navigation/components/Navigation/Navigation.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +12 -3
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +3 -4
- package/build/cjs/navigation/components/NavigationList/NavigationList.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationList/NavigationList.js.map +1 -1
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js.map +1 -1
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -2
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js.map +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.d.ts +1 -2
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.js.map +1 -1
- package/build/cjs/navigation/containers/Layout/Layout.d.ts +1 -1
- package/build/cjs/navigation/containers/Layout/Layout.js.map +1 -1
- package/build/cjs/navigation/hooks/useActiveNavItem.d.ts +8 -7
- package/build/cjs/navigation/utils.d.ts +4 -3
- package/build/cjs/node_modules/swiper/modules/a11y.css +9 -0
- package/build/cjs/node_modules/swiper/modules/autoplay.css +0 -0
- package/build/cjs/node_modules/swiper/modules/index.js +1309 -0
- package/build/cjs/node_modules/swiper/modules/pagination.css +181 -0
- package/build/cjs/node_modules/swiper/package.json +14 -0
- package/build/cjs/node_modules/swiper/swiper-react.d.ts +497 -0
- package/build/cjs/node_modules/swiper/swiper-react.js +4651 -0
- package/build/cjs/node_modules/swiper/swiper.css +229 -0
- package/build/cjs/node_modules/swiper/swiper.d.ts +5 -0
- package/build/cjs/node_modules/swiper/swiper.js +3822 -0
- package/build/cjs/node_modules/swiper/types/index.d.ts +6 -0
- package/build/cjs/node_modules/swiper/types/modules/index.d.ts +53 -0
- package/build/cjs/schema/constants.d.ts +62 -0
- package/build/cjs/schema/validators/common.d.ts +156 -1
- package/build/cjs/schema/validators/common.js +74 -1
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +16 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +15 -2
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +38 -0
- package/build/cjs/sub-blocks/BasicCard/schema.js +7 -0
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/Content.css +16 -2
- package/build/cjs/sub-blocks/Content/Content.js +12 -3
- package/build/cjs/sub-blocks/Content/Content.js.map +1 -1
- package/build/cjs/sub-blocks/Content/schema.d.ts +134 -1
- package/build/cjs/sub-blocks/Content/schema.js +23 -2
- package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +11 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +2 -2
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +11 -0
- package/build/cjs/text-transform/common.d.ts +2 -1
- package/build/cjs/text-transform/common.js +2 -2
- package/build/cjs/text-transform/common.js.map +1 -1
- package/build/cjs/text-transform/config.js +16 -11
- package/build/cjs/text-transform/config.js.map +1 -1
- package/build/cjs/utils/breakpoint.d.ts +7 -0
- package/build/cjs/utils/breakpoint.js +12 -0
- package/build/cjs/utils/breakpoint.js.map +1 -0
- package/build/cjs/utils/icons.d.ts +3 -0
- package/build/cjs/utils/icons.js +16 -0
- package/build/cjs/utils/icons.js.map +1 -0
- package/build/cjs/utils/index.d.ts +2 -0
- package/build/cjs/utils/index.js +2 -0
- package/build/cjs/utils/index.js.map +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.css +6 -0
- package/build/esm/blocks/CardLayout/CardLayout.d.ts +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +3 -3
- package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/esm/blocks/Companies/schema.d.ts +1 -0
- package/build/esm/blocks/Companies/schema.js +2 -1
- package/build/esm/blocks/Companies/schema.js.map +1 -1
- package/build/esm/blocks/ContentLayout/ContentLayout.js +4 -2
- package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
- package/build/esm/blocks/ContentLayout/schema.d.ts +11 -0
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +5 -5
- package/build/esm/blocks/FilterBlock/FilterBlock.d.ts +1 -2
- package/build/esm/blocks/FilterBlock/FilterBlock.js.map +1 -1
- package/build/esm/blocks/FoldableList/schema.d.ts +11 -0
- package/build/esm/blocks/Form/Form.css +5 -2
- package/build/esm/blocks/Form/Form.d.ts +2 -3
- package/build/esm/blocks/Form/Form.js +14 -11
- package/build/esm/blocks/Form/Form.js.map +1 -1
- package/build/esm/blocks/Form/schema.d.ts +12 -4
- package/build/esm/blocks/Form/schema.js +1 -4
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Form/utils.d.ts +3 -0
- package/build/esm/blocks/Form/utils.js +16 -0
- package/build/esm/blocks/Form/utils.js.map +1 -0
- package/build/esm/blocks/Header/Header.css +13 -0
- package/build/esm/blocks/Header/Header.d.ts +7 -1
- package/build/esm/blocks/Header/Header.js +11 -18
- package/build/esm/blocks/Header/Header.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +77 -0
- package/build/esm/blocks/Header/schema.js +12 -0
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +29 -0
- package/build/esm/blocks/Info/schema.d.ts +22 -0
- package/build/esm/blocks/Map/Map.js.map +1 -1
- package/build/esm/blocks/Map/schema.d.ts +101 -0
- package/build/esm/blocks/Media/Media.js +1 -1
- package/build/esm/blocks/Media/Media.js.map +1 -1
- package/build/esm/blocks/Media/schema.d.ts +22 -0
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +3 -4
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/esm/blocks/Questions/Questions.js +32 -7
- package/build/esm/blocks/Questions/Questions.js.map +1 -1
- package/build/esm/blocks/Questions/schema.d.ts +11 -0
- package/build/esm/blocks/Share/Share.js +1 -3
- package/build/esm/blocks/Share/Share.js.map +1 -1
- package/build/esm/blocks/Slider/Slider.css +62 -1
- package/build/esm/blocks/Slider/Slider.d.ts +6 -4
- package/build/esm/blocks/Slider/Slider.js +7 -7
- package/build/esm/blocks/Slider/Slider.js.map +1 -1
- package/build/esm/blocks/Slider/useSlider.d.ts +2 -3
- package/build/esm/blocks/Slider/useSlider.js +3 -7
- package/build/esm/blocks/Slider/useSlider.js.map +1 -1
- package/build/esm/blocks/Slider/useSliderPagination.d.ts +1 -1
- package/build/esm/blocks/Slider/useSliderPagination.js.map +1 -1
- package/build/esm/blocks/Slider/utils.d.ts +1 -1
- package/build/esm/blocks/Slider/utils.js.map +1 -1
- package/build/esm/blocks/Table/Table.js +15 -3
- package/build/esm/blocks/Table/Table.js.map +1 -1
- package/build/esm/blocks/Tabs/TabContent/TabContent.js +7 -7
- package/build/esm/blocks/Tabs/TabContent/TabContent.js.map +1 -1
- package/build/esm/blocks/Tabs/Tabs.js +2 -2
- package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.d.ts +11 -0
- package/build/esm/components/Button/Button.css +2 -7
- package/build/esm/components/Button/Button.js +29 -4
- package/build/esm/components/Button/Button.js.map +1 -1
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +1 -1
- package/build/esm/components/ButtonTabs/ButtonTabs.js.map +1 -1
- package/build/esm/components/Buttons/Buttons.css +3 -0
- package/build/esm/components/Buttons/Buttons.d.ts +1 -2
- package/build/esm/components/Buttons/Buttons.js +1 -1
- package/build/esm/components/Buttons/Buttons.js.map +1 -1
- package/build/esm/components/CardBase/CardBase.css +15 -0
- package/build/esm/components/CardBase/CardBase.d.ts +3 -5
- package/build/esm/components/CardBase/CardBase.js.map +1 -1
- package/build/esm/components/ContentIcon/ContentIcon.d.ts +8 -0
- package/build/esm/components/ContentIcon/ContentIcon.js +19 -0
- package/build/esm/components/ContentIcon/ContentIcon.js.map +1 -0
- package/build/esm/components/ContentLabels/ContentLabels.css +53 -0
- package/build/esm/components/ContentLabels/ContentLabels.d.ts +4 -0
- package/build/esm/components/ContentLabels/ContentLabels.js +14 -0
- package/build/esm/components/ContentLabels/ContentLabels.js.map +1 -0
- package/build/esm/components/ContentList/ContentList.js +3 -3
- package/build/esm/components/ContentList/ContentList.js.map +1 -1
- package/build/esm/components/DefaultVideo/DefaultVideo.js +23 -2
- package/build/esm/components/DefaultVideo/DefaultVideo.js.map +1 -1
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -1
- package/build/esm/components/Icon/Icon.css +10 -0
- package/build/esm/components/Icon/Icon.d.ts +10 -0
- package/build/esm/components/Icon/Icon.js +22 -0
- package/build/esm/components/Icon/Icon.js.map +1 -0
- package/build/esm/components/IconWrapper/IconWrapper.css +16 -1
- package/build/esm/components/IconWrapper/IconWrapper.js +10 -6
- package/build/esm/components/IconWrapper/IconWrapper.js.map +1 -1
- package/build/esm/components/InnerForm/InnerForm.d.ts +1 -2
- package/build/esm/components/InnerForm/InnerForm.js.map +1 -1
- package/build/esm/components/Link/Link.d.ts +2 -2
- package/build/esm/components/Link/Link.js +2 -2
- package/build/esm/components/Link/Link.js.map +1 -1
- package/build/esm/components/Links/Links.d.ts +1 -1
- package/build/esm/components/Links/Links.js +1 -1
- package/build/esm/components/Links/Links.js.map +1 -1
- package/build/esm/components/Map/GoogleMap.d.ts +1 -2
- package/build/esm/components/Map/GoogleMap.js +19 -3
- package/build/esm/components/Map/GoogleMap.js.map +1 -1
- package/build/esm/components/Map/YMap/YMap.d.ts +4 -4
- package/build/esm/components/Map/YMap/YMap.js +46 -15
- package/build/esm/components/Map/YMap/YMap.js.map +1 -1
- package/build/esm/components/Map/YMap/YandexMap.d.ts +1 -2
- package/build/esm/components/Map/YMap/YandexMap.js +73 -7
- package/build/esm/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/esm/components/Map/YMap/utils.d.ts +8 -0
- package/build/esm/components/Map/YMap/utils.js +90 -0
- package/build/esm/components/Map/YMap/utils.js.map +1 -0
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.d.ts +1 -2
- package/build/esm/components/Media/FullscreenVideo/FullscreenVideo.js.map +1 -1
- package/build/esm/components/Media/Video/Video.js +2 -13
- package/build/esm/components/Media/Video/Video.js.map +1 -1
- package/build/esm/components/MediaBase/MediaBase.d.ts +1 -3
- package/build/esm/components/MediaBase/MediaBase.js.map +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.d.ts +1 -2
- package/build/esm/components/ReactPlayer/ReactPlayer.js +19 -13
- package/build/esm/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/esm/components/Title/Title.d.ts +3 -2
- package/build/esm/components/Title/Title.js +2 -2
- package/build/esm/components/Title/Title.js.map +1 -1
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.js.map +1 -1
- package/build/esm/components/YandexForm/YandexForm.js +1 -1
- package/build/esm/components/YandexForm/YandexForm.js.map +1 -1
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/components/index.js.map +1 -1
- package/build/esm/constructor-items.d.ts +7 -7
- package/build/esm/containers/PageConstructor/PageConstructor.css +0 -1
- package/build/esm/containers/PageConstructor/Provider.js +2 -0
- package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +1 -2
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/esm/context/locationContext/locationContext.d.ts +1 -1
- package/build/esm/context/locationContext/locationContext.js.map +1 -1
- package/build/esm/context/mapsContext/mapsProvider.d.ts +1 -1
- package/build/esm/context/mapsContext/mapsProvider.js.map +1 -1
- package/build/esm/context/windowWidthContext/WindowWidthContext.d.ts +4 -0
- package/build/esm/context/windowWidthContext/WindowWidthContext.js +22 -0
- package/build/esm/context/windowWidthContext/WindowWidthContext.js.map +1 -0
- package/build/esm/context/windowWidthContext/index.d.ts +1 -0
- package/build/esm/context/windowWidthContext/index.js +2 -0
- package/build/esm/context/windowWidthContext/index.js.map +1 -0
- package/build/esm/editor/components/AddBlock/AddBlock.d.ts +1 -2
- package/build/esm/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/esm/editor/components/Layout/Layout.d.ts +2 -6
- package/build/esm/editor/components/Layout/Layout.js.map +1 -1
- package/build/esm/editor/data/previews/default-preview.d.ts +1 -1
- package/build/esm/editor/data/previews/default-preview.js.map +1 -1
- package/build/esm/editor/data/previews/header-block.d.ts +1 -1
- package/build/esm/editor/data/previews/header-block.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +2 -3
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +1 -1
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js.map +1 -1
- package/build/esm/editor/icons/Tablet.d.ts +1 -1
- package/build/esm/editor/icons/Tablet.js.map +1 -1
- package/build/esm/grid/Grid/Grid.d.ts +1 -1
- package/build/esm/grid/Grid/Grid.js +1 -1
- package/build/esm/grid/Grid/Grid.js.map +1 -1
- package/build/esm/grid/Row/Row.d.ts +1 -1
- package/build/esm/grid/Row/Row.js.map +1 -1
- package/build/esm/hooks/useDeviceValue.d.ts +2 -0
- package/build/esm/hooks/useDeviceValue.js +29 -0
- package/build/esm/hooks/useDeviceValue.js.map +1 -0
- package/build/esm/icons/BrandIconDark.d.ts +1 -1
- package/build/esm/icons/BrandIconDark.js.map +1 -1
- package/build/esm/icons/BrandIconLight.d.ts +1 -1
- package/build/esm/icons/BrandIconLight.js.map +1 -1
- package/build/esm/icons/BrandName.d.ts +1 -1
- package/build/esm/icons/BrandName.js.map +1 -1
- package/build/esm/icons/Chevron.d.ts +1 -1
- package/build/esm/icons/Chevron.js.map +1 -1
- package/build/esm/icons/Facebook.d.ts +1 -1
- package/build/esm/icons/Facebook.js.map +1 -1
- package/build/esm/icons/Github.d.ts +1 -1
- package/build/esm/icons/Github.js.map +1 -1
- package/build/esm/icons/Linkedin.d.ts +1 -1
- package/build/esm/icons/Linkedin.js.map +1 -1
- package/build/esm/icons/NavigationArrow.d.ts +1 -1
- package/build/esm/icons/NavigationArrow.js.map +1 -1
- package/build/esm/icons/NavigationChevron.d.ts +1 -1
- package/build/esm/icons/NavigationChevron.js.map +1 -1
- package/build/esm/icons/Telegram.d.ts +1 -1
- package/build/esm/icons/Telegram.js.map +1 -1
- package/build/esm/icons/Twitter.d.ts +1 -1
- package/build/esm/icons/Twitter.js.map +1 -1
- package/build/esm/icons/Vk.d.ts +1 -1
- package/build/esm/icons/Vk.js.map +1 -1
- package/build/esm/internal-typings/global.d.ts +4 -2
- package/build/esm/models/constructor-items/blocks.d.ts +42 -17
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +42 -4
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +17 -6
- package/build/esm/models/constructor-items/sub-blocks.js.map +1 -1
- package/build/esm/models/navigation.d.ts +2 -1
- package/build/esm/models/navigation.js.map +1 -1
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +1 -2
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
- package/build/esm/navigation/components/Logo/Logo.d.ts +1 -2
- package/build/esm/navigation/components/Logo/Logo.js.map +1 -1
- package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +1 -2
- package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js.map +1 -1
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -2
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js.map +1 -1
- package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -1
- package/build/esm/navigation/components/Navigation/Navigation.js +5 -2
- package/build/esm/navigation/components/Navigation/Navigation.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.d.ts +1 -2
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.d.ts +1 -2
- package/build/esm/navigation/components/NavigationItem/components/ContentWrapper/ContentWrapper.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -2
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js +12 -3
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +3 -4
- package/build/esm/navigation/components/NavigationList/NavigationList.d.ts +1 -2
- package/build/esm/navigation/components/NavigationList/NavigationList.js.map +1 -1
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.d.ts +1 -2
- package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js.map +1 -1
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -2
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js.map +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.d.ts +1 -2
- package/build/esm/navigation/components/SocialIcon/SocialIcon.js.map +1 -1
- package/build/esm/navigation/containers/Layout/Layout.d.ts +1 -1
- package/build/esm/navigation/containers/Layout/Layout.js.map +1 -1
- package/build/esm/navigation/hooks/useActiveNavItem.d.ts +8 -7
- package/build/esm/navigation/utils.d.ts +4 -3
- package/build/esm/schema/constants.d.ts +62 -0
- package/build/esm/schema/validators/common.d.ts +156 -1
- package/build/esm/schema/validators/common.js +73 -2
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +2 -2
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +16 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.js +2 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +15 -2
- package/build/esm/sub-blocks/BasicCard/BasicCard.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +38 -0
- package/build/esm/sub-blocks/BasicCard/schema.js +8 -1
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/Content.css +16 -2
- package/build/esm/sub-blocks/Content/Content.js +11 -3
- package/build/esm/sub-blocks/Content/Content.js.map +1 -1
- package/build/esm/sub-blocks/Content/schema.d.ts +134 -1
- package/build/esm/sub-blocks/Content/schema.js +23 -2
- package/build/esm/sub-blocks/Content/schema.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +11 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +2 -2
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +11 -0
- package/build/esm/text-transform/common.d.ts +2 -1
- package/build/esm/text-transform/common.js +2 -2
- package/build/esm/text-transform/common.js.map +1 -1
- package/build/esm/text-transform/config.js +16 -11
- package/build/esm/text-transform/config.js.map +1 -1
- package/build/esm/utils/breakpoint.d.ts +7 -0
- package/build/esm/utils/breakpoint.js +9 -0
- package/build/esm/utils/breakpoint.js.map +1 -0
- package/build/esm/utils/icons.d.ts +3 -0
- package/build/esm/utils/icons.js +11 -0
- package/build/esm/utils/icons.js.map +1 -0
- package/build/esm/utils/index.d.ts +2 -0
- package/build/esm/utils/index.js +2 -0
- package/build/esm/utils/index.js.map +1 -1
- package/package.json +7 -5
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +42 -17
- package/server/models/constructor-items/common.d.ts +42 -4
- package/server/models/constructor-items/sub-blocks.d.ts +17 -6
- package/server/models/navigation.d.ts +2 -1
- package/server/text-transform/common.d.ts +2 -1
- package/server/text-transform/common.js +2 -2
- package/server/text-transform/config.js +16 -11
- package/server/utils/breakpoint.d.ts +7 -0
- package/server/utils/breakpoint.js +11 -0
- package/server/utils/icons.d.ts +3 -0
- package/server/utils/icons.js +47 -0
- package/server/utils/index.d.ts +2 -0
- package/server/utils/index.js +2 -0
- package/styles/mixins.scss +20 -0
- package/styles/root.scss +0 -1
- package/styles/storybook/index.scss +1 -0
- package/build/cjs/blocks/Questions/models.d.ts +0 -11
- package/build/cjs/blocks/Questions/models.js +0 -15
- package/build/cjs/blocks/Questions/models.js.map +0 -1
- package/build/cjs/components/ContentList/ContentListItemIcon.d.ts +0 -7
- package/build/cjs/components/ContentList/ContentListItemIcon.js +0 -23
- package/build/cjs/components/ContentList/ContentListItemIcon.js.map +0 -1
- package/build/esm/blocks/Questions/models.d.ts +0 -11
- package/build/esm/blocks/Questions/models.js +0 -12
- package/build/esm/blocks/Questions/models.js.map +0 -1
- package/build/esm/components/ContentList/ContentListItemIcon.d.ts +0 -7
- package/build/esm/components/ContentList/ContentListItemIcon.js +0 -20
- package/build/esm/components/ContentList/ContentListItemIcon.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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I,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,gBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n ButtonBlock,\n MediaProps,\n VideoProps,\n mediaView,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const HeaderBackgroundProps = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...MediaProps,\n fullWidth: {type: 'boolean'},\n fullWidthMedia: {type: 'boolean'},\n },\n};\n\nexport const HeaderProperties = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n overtitle: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n width: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n },\n buttons: filteredArray(ButtonBlock),\n offset: {\n type: 'string',\n enum: ['default', 'large'],\n },\n image: withTheme(ImageProps),\n video: withTheme(VideoProps),\n mediaView: {\n type: 'string',\n enum: mediaView,\n },\n backLink: {\n type: 'object',\n required: ['url', 'title'],\n properties: {\n url: {\n type: 'string',\n },\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n imageSize: {\n type: 'string',\n enum: ['s', 'm'],\n },\n verticalOffset: {\n type: 'string',\n enum: ['0', 's', 'm', 'l', 'xl'],\n },\n background: withTheme(HeaderBackgroundProps),\n theme: {\n type: 'string',\n enum: ['default', 'dark'],\n },\n breadcrumbs: {\n type: 'object',\n additionalProperties: false,\n required: ['items'],\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n additionalProperties: false,\n required: ['url', 'text'],\n properties: {\n url: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n },\n theme: {type: 'string', enum: ['light', 'dark']},\n },\n },\n status: {\n type: 'string',\n },\n centered: {\n type: 'boolean',\n },\n};\n\nexport const HeaderBlock = {\n 'header-block': {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BlockBaseProps,\n ...HeaderProperties,\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Header/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,UAAU,EAAE;QACR,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QACrB,QAAQ,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC3B,UAAU,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC5B,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KAC3B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,GAAG,UAAU;QACb,SAAS,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;QAC5B,cAAc,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;KACpC;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GA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AI,CAAC;KACnC;IACD,UAAU,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAC5C,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACH,IAAI,EAAE,QAAQ;oBACd,oBAAoB,EAAE,KAAK;oBAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;oBACzB,UAAU,EAAE;wBACR,GAAG,EAAE;4BACD,IAAI,EAAE,QAAQ;yBACjB;wBACD,IAAI,EAAE;4BACF,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,MAAM;yBACtB;qBACJ;iBACJ;aACJ;YACD,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAC;SACnD;KACJ;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,gBAAgB;SACtB;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n ButtonBlock,\n MediaProps,\n VideoProps,\n mediaView,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const HeaderVideoIframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {type: 'string'},\n autoplay: {type: 'boolean'},\n previewImg: {type: 'string'},\n height: {type: 'number'},\n },\n};\n\nexport const HeaderBackgroundProps = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n ...MediaProps,\n fullWidth: {type: 'boolean'},\n fullWidthMedia: {type: 'boolean'},\n },\n};\n\nexport const HeaderProperties = {\n title: {\n type: 'string',\n contentType: 'text',\n },\n overtitle: {\n type: 'string',\n contentType: 'text',\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n additionalInfo: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n width: {\n type: 'string',\n enum: ['s', 'm', 'l'],\n },\n buttons: filteredArray(ButtonBlock),\n offset: {\n type: 'string',\n enum: ['default', 'large'],\n },\n image: withTheme(ImageProps),\n video: withTheme(VideoProps),\n videoIframe: withTheme(HeaderVideoIframeProps),\n mediaView: {\n type: 'string',\n enum: mediaView,\n },\n backLink: {\n type: 'object',\n required: ['url', 'title'],\n properties: {\n url: {\n type: 'string',\n },\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n imageSize: {\n type: 'string',\n enum: ['s', 'm'],\n },\n verticalOffset: {\n type: 'string',\n enum: ['0', 's', 'm', 'l', 'xl'],\n },\n background: withTheme(HeaderBackgroundProps),\n theme: {\n type: 'string',\n enum: ['default', 'dark'],\n },\n breadcrumbs: {\n type: 'object',\n additionalProperties: false,\n required: ['items'],\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n additionalProperties: false,\n required: ['url', 'text'],\n properties: {\n url: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n },\n },\n theme: {type: 'string', enum: ['light', 'dark']},\n },\n },\n status: {\n type: 'string',\n },\n centered: {\n type: 'boolean',\n },\n};\n\nexport const HeaderBlock = {\n 'header-block': {\n additionalProperties: false,\n required: ['title'],\n properties: {\n ...BlockBaseProps,\n ...HeaderProperties,\n },\n },\n};\n"]}
|
|
@@ -184,6 +184,35 @@ export declare const HeaderSliderBlock: {
|
|
|
184
184
|
optionName: string;
|
|
185
185
|
})[];
|
|
186
186
|
};
|
|
187
|
+
videoIframe: {
|
|
188
|
+
oneOf: (({
|
|
189
|
+
type: string;
|
|
190
|
+
additionalProperties: boolean;
|
|
191
|
+
required: string[];
|
|
192
|
+
properties: {
|
|
193
|
+
src: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
autoplay: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
previewImg: {
|
|
200
|
+
type: string;
|
|
201
|
+
};
|
|
202
|
+
height: {
|
|
203
|
+
type: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
} & {
|
|
207
|
+
optionName: string;
|
|
208
|
+
}) | {
|
|
209
|
+
type: string;
|
|
210
|
+
additionalProperties: boolean;
|
|
211
|
+
required: import("../../index.js").Theme[];
|
|
212
|
+
properties: {};
|
|
213
|
+
optionName: string;
|
|
214
|
+
})[];
|
|
215
|
+
};
|
|
187
216
|
mediaView: {
|
|
188
217
|
type: string;
|
|
189
218
|
enum: string[];
|
|
@@ -135,6 +135,17 @@ export declare const InfoBlock: {
|
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
|
+
labels: {
|
|
139
|
+
type: string;
|
|
140
|
+
items: {
|
|
141
|
+
type: string;
|
|
142
|
+
properties: {
|
|
143
|
+
when: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
138
149
|
controlPosition: {
|
|
139
150
|
type: string;
|
|
140
151
|
enum: string[];
|
|
@@ -226,6 +237,17 @@ export declare const InfoBlock: {
|
|
|
226
237
|
};
|
|
227
238
|
};
|
|
228
239
|
};
|
|
240
|
+
labels: {
|
|
241
|
+
type: string;
|
|
242
|
+
items: {
|
|
243
|
+
type: string;
|
|
244
|
+
properties: {
|
|
245
|
+
when: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
229
251
|
controlPosition: {
|
|
230
252
|
type: string;
|
|
231
253
|
enum: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sourceRoot":"../../../../src","sources":["blocks/Map/Map.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,oCAAiC;AAC3C,OAAO,SAAS,gDAA6C;AAE7D,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,cAAc,EAAC,sCAAmC;AAE1D,OAAO,WAAW,CAAC;AAEnB,MAAM,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,EAAgB,EAAE,EAAE;IAC9E,MAAM,cAAc,GAAG,cAAc,CAAC;QAClC,MAAM;QACN,aAAa;KAChB,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,SAAS,OAAK,KAAK,YAChB,KAAC,SAAS,CAAC,IAAI,cACX,KAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"Map.js","sourceRoot":"../../../../src","sources":["blocks/Map/Map.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,oCAAiC;AAC3C,OAAO,SAAS,gDAA6C;AAE7D,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,cAAc,EAAC,sCAAmC;AAE1D,OAAO,WAAW,CAAC;AAEnB,MAAM,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,EAAgB,EAAE,EAAE;IAC9E,MAAM,cAAc,GAAG,cAAc,CAAC;QAClC,MAAM;QACN,aAAa;KAChB,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,SAAS,OAAK,KAAK,YAChB,KAAC,SAAS,CAAC,IAAI,cACX,KAAC,GAAG,OAAM,GAAgB,EAAE,SAAS,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,cAAc,EAAC,CAAC,GAAI,GACzD,GACT,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import Map from '../../components/Map/Map';\nimport MediaBase from '../../components/MediaBase/MediaBase';\nimport {MapBlockProps, MapProps} from '../../models';\nimport {block} from '../../utils';\nimport {getMediaBorder} from '../../utils/borderSelector';\n\nimport './Map.scss';\n\nconst b = block('map-block');\n\nexport const MapBlock = ({map, border, disableShadow, ...props}: MapBlockProps) => {\n const borderSelected = getMediaBorder({\n border,\n disableShadow,\n });\n\n return (\n <MediaBase {...props}>\n <MediaBase.Card>\n <Map {...(map as MapProps)} className={b({border: borderSelected})} />\n </MediaBase.Card>\n </MediaBase>\n );\n};\n\nexport default MapBlock;\n"]}
|
|
@@ -41,6 +41,45 @@ export declare const Map: {
|
|
|
41
41
|
iconColor: {
|
|
42
42
|
type: string;
|
|
43
43
|
};
|
|
44
|
+
iconImageHref: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
iconImageSize: {
|
|
48
|
+
type: string;
|
|
49
|
+
items: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
minItems: number;
|
|
53
|
+
maxItems: number;
|
|
54
|
+
};
|
|
55
|
+
iconImageOffset: {
|
|
56
|
+
type: string;
|
|
57
|
+
items: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
minItems: number;
|
|
61
|
+
maxItems: number;
|
|
62
|
+
};
|
|
63
|
+
iconImageClipRect: {
|
|
64
|
+
type: string;
|
|
65
|
+
items: {
|
|
66
|
+
type: string;
|
|
67
|
+
items: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
minItems: number;
|
|
71
|
+
maxItems: number;
|
|
72
|
+
};
|
|
73
|
+
minItems: number;
|
|
74
|
+
maxItems: number;
|
|
75
|
+
};
|
|
76
|
+
iconLayout: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
iconShape: {
|
|
80
|
+
type: string;
|
|
81
|
+
additionalProperties: boolean;
|
|
82
|
+
};
|
|
44
83
|
preset: {
|
|
45
84
|
type: string;
|
|
46
85
|
};
|
|
@@ -49,6 +88,12 @@ export declare const Map: {
|
|
|
49
88
|
};
|
|
50
89
|
};
|
|
51
90
|
};
|
|
91
|
+
disableControls: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
disableBalloons: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
52
97
|
};
|
|
53
98
|
};
|
|
54
99
|
export declare const MapBlock: {
|
|
@@ -99,6 +144,45 @@ export declare const MapBlock: {
|
|
|
99
144
|
iconColor: {
|
|
100
145
|
type: string;
|
|
101
146
|
};
|
|
147
|
+
iconImageHref: {
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
iconImageSize: {
|
|
151
|
+
type: string;
|
|
152
|
+
items: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
minItems: number;
|
|
156
|
+
maxItems: number;
|
|
157
|
+
};
|
|
158
|
+
iconImageOffset: {
|
|
159
|
+
type: string;
|
|
160
|
+
items: {
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
minItems: number;
|
|
164
|
+
maxItems: number;
|
|
165
|
+
};
|
|
166
|
+
iconImageClipRect: {
|
|
167
|
+
type: string;
|
|
168
|
+
items: {
|
|
169
|
+
type: string;
|
|
170
|
+
items: {
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
minItems: number;
|
|
174
|
+
maxItems: number;
|
|
175
|
+
};
|
|
176
|
+
minItems: number;
|
|
177
|
+
maxItems: number;
|
|
178
|
+
};
|
|
179
|
+
iconLayout: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
iconShape: {
|
|
183
|
+
type: string;
|
|
184
|
+
additionalProperties: boolean;
|
|
185
|
+
};
|
|
102
186
|
preset: {
|
|
103
187
|
type: string;
|
|
104
188
|
};
|
|
@@ -107,6 +191,12 @@ export declare const MapBlock: {
|
|
|
107
191
|
};
|
|
108
192
|
};
|
|
109
193
|
};
|
|
194
|
+
disableControls: {
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
disableBalloons: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
110
200
|
};
|
|
111
201
|
};
|
|
112
202
|
description: {
|
|
@@ -331,6 +421,17 @@ export declare const MapBlock: {
|
|
|
331
421
|
type: string;
|
|
332
422
|
enum: string[];
|
|
333
423
|
};
|
|
424
|
+
labels: {
|
|
425
|
+
type: string;
|
|
426
|
+
items: {
|
|
427
|
+
type: string;
|
|
428
|
+
properties: {
|
|
429
|
+
when: {
|
|
430
|
+
type: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
334
435
|
additionalInfo: {
|
|
335
436
|
type: string;
|
|
336
437
|
contentType: string;
|
|
@@ -18,7 +18,7 @@ export const MediaBlock = (props) => {
|
|
|
18
18
|
const theme = useTheme();
|
|
19
19
|
const mediaThemed = getThemedValue(media, theme);
|
|
20
20
|
const mediaWithMicrodata = mergeVideoMicrodata(mediaThemed, {
|
|
21
|
-
name: title,
|
|
21
|
+
name: typeof title === 'object' && 'text' in title ? title.text : title,
|
|
22
22
|
description,
|
|
23
23
|
});
|
|
24
24
|
return (_jsx(MediaBase, { ...props, onScroll: () => setPlay(true), children: _jsx(MediaBase.Card, { children: _jsx(Media, { imageClassName: b('image'), ...mediaWithMicrodata, playVideo: play, className: b({ border: borderSelected }) }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Media.js","sourceRoot":"../../../../src","sources":["blocks/Media/Media.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,O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G,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAC,GAAG,KAAK,CAAC;IACjE,MAAM,cAAc,GAAG,cAAc,CAAC;QAClC,MAAM;QACN,aAAa;KAChB,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACjD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,WAAW,EAAE;QACxD,IAAI,EAAE,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;QACvE,WAAW;KACd,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,SAAS,OAAK,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAC/C,KAAC,SAAS,CAAC,IAAI,cACX,KAAC,KAAK,IACF,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,KACtB,kBAAkB,EACtB,SAAS,EAAE,IAAI,EACf,SAAS,EAAE,CAAC,CAAC,EAAC,MAAM,EAAE,cAAc,EAAC,CAAC,GACxC,GACW,GACT,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\n\nimport Media from '../../components/Media/Media';\nimport MediaBase from '../../components/MediaBase/MediaBase';\nimport {useTheme} from '../../context/theme';\nimport {MediaBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport {getMediaBorder} from '../../utils/borderSelector';\nimport {mergeVideoMicrodata} from '../../utils/microdata';\n\nimport './Media.scss';\n\nconst b = block('media-block');\n\nexport const MediaBlock = (props: MediaBlockProps) => {\n const {media, border, disableShadow, title, description} = props;\n const borderSelected = getMediaBorder({\n border,\n disableShadow,\n });\n\n const [play, setPlay] = React.useState<boolean>(false);\n const theme = useTheme();\n const mediaThemed = getThemedValue(media, theme);\n const mediaWithMicrodata = mergeVideoMicrodata(mediaThemed, {\n name: typeof title === 'object' && 'text' in title ? title.text : title,\n description,\n });\n\n return (\n <MediaBase {...props} onScroll={() => setPlay(true)}>\n <MediaBase.Card>\n <Media\n imageClassName={b('image')}\n {...mediaWithMicrodata}\n playVideo={play}\n className={b({border: borderSelected})}\n />\n </MediaBase.Card>\n </MediaBase>\n );\n};\n\nexport default MediaBlock;\n"]}
|
|
@@ -537,6 +537,17 @@ export declare const MediaBlockBaseProps: {
|
|
|
537
537
|
type: string;
|
|
538
538
|
enum: string[];
|
|
539
539
|
};
|
|
540
|
+
labels: {
|
|
541
|
+
type: string;
|
|
542
|
+
items: {
|
|
543
|
+
type: string;
|
|
544
|
+
properties: {
|
|
545
|
+
when: {
|
|
546
|
+
type: string;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
540
551
|
additionalInfo: {
|
|
541
552
|
type: string;
|
|
542
553
|
contentType: string;
|
|
@@ -1178,6 +1189,17 @@ export declare const MediaBlock: {
|
|
|
1178
1189
|
type: string;
|
|
1179
1190
|
enum: string[];
|
|
1180
1191
|
};
|
|
1192
|
+
labels: {
|
|
1193
|
+
type: string;
|
|
1194
|
+
items: {
|
|
1195
|
+
type: string;
|
|
1196
|
+
properties: {
|
|
1197
|
+
when: {
|
|
1198
|
+
type: string;
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1181
1203
|
additionalInfo: {
|
|
1182
1204
|
type: string;
|
|
1183
1205
|
contentType: string;
|
|
@@ -3,17 +3,16 @@ import { useActionHandlers } from '@gravity-ui/uikit';
|
|
|
3
3
|
import { Foldable, ToggleArrow, YFMWrapper } from "../../../components/index.js";
|
|
4
4
|
import Link from "../../../components/Link/Link.js";
|
|
5
5
|
import { block } from "../../../utils/index.js";
|
|
6
|
-
import { FaqMicrodataValues } from "../models.js";
|
|
7
6
|
import './QuestionBlockItem.css';
|
|
8
7
|
const b = block('QuestionsBlockItem');
|
|
9
8
|
export const QuestionBlockItem = ({ title: itemTitle, text: itemText, link, listStyle = 'dash', isOpened, onClick, }) => {
|
|
10
9
|
const { onKeyDown } = useActionHandlers(onClick);
|
|
11
|
-
return (_jsxs("div", { className: b(),
|
|
10
|
+
return (_jsxs("div", { className: b(), role: 'listitem', children: [_jsx("button", { className: b('button'), onClick: onClick, "aria-expanded": isOpened, onKeyDown: onKeyDown, children: _jsx(YFMWrapper, { tagName: "h3", className: b('title-container'), contentClassName: b('title'), content: itemTitle, modifiers: {
|
|
12
11
|
constructor: true,
|
|
13
|
-
}, onClick: onClick, tabIndex: 0, children: _jsx(ToggleArrow, { open: isOpened, size: 16, type: 'vertical', iconType: "navigation", className: b('arrow') }) }) }), _jsx(Foldable, { isOpened: isOpened, children: _jsxs("div", { className: b('text'),
|
|
12
|
+
}, onClick: onClick, tabIndex: 0, children: _jsx(ToggleArrow, { open: isOpened, size: 16, type: 'vertical', iconType: "navigation", className: b('arrow') }) }) }), _jsx(Foldable, { isOpened: isOpened, children: _jsxs("div", { className: b('text'), "aria-hidden": !isOpened, children: [_jsx(YFMWrapper, { content: itemText, modifiers: {
|
|
14
13
|
constructor: true,
|
|
15
14
|
constructorListStyle: true,
|
|
16
15
|
constructorListStyleDash: listStyle === 'dash',
|
|
17
|
-
}
|
|
16
|
+
} }), link && _jsx(Link, { ...link, tabIndex: isOpened ? 0 : -1, className: b('link') })] }) })] }));
|
|
18
17
|
};
|
|
19
18
|
//# sourceMappingURL=QuestionBlockItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionBlockItem.js","sourceRoot":"../../../../../src","sources":["blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAC,qCAA4B;AACtE,OAAO,IAAI,yCAAsC;AAEjD,OAAO,EAAC,KAAK,EAAC,gCAAuB;
|
|
1
|
+
{"version":3,"file":"QuestionBlockItem.js","sourceRoot":"../../../../../src","sources":["blocks/Questions/QuestionBlockItem/QuestionBlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAC,qCAA4B;AACtE,OAAO,IAAI,yCAAsC;AAEjD,OAAO,EAAC,KAAK,EAAC,gCAAuB;AAErC,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EACJ,SAAS,GAAG,MAAM,EAClB,QAAQ,EACR,OAAO,GACc,EAAE,EAAE;IACzB,MAAM,EAAC,SAAS,EAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE/C,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,UAAU,aACjC,iBACI,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,OAAO,EAAE,OAAO,mBACD,QAAQ,EACvB,SAAS,EAAE,SAAS,YAEpB,KAAC,UAAU,IACP,OAAO,EAAC,IAAI,EACZ,SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,EAC/B,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,EAC5B,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE;wBACP,WAAW,EAAE,IAAI;qBACpB,EACD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,CAAC,YAEX,KAAC,WAAW,IACR,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,EAAE,EACR,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAC,YAAY,EACrB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GACvB,GACO,GACR,EACT,KAAC,QAAQ,IAAC,QAAQ,EAAE,QAAQ,YACxB,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,iBAAe,CAAC,QAAQ,aAC7C,KAAC,UAAU,IACP,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE;gCACP,WAAW,EAAE,IAAI;gCACjB,oBAAoB,EAAE,IAAI;gCAC1B,wBAAwB,EAAE,SAAS,KAAK,MAAM;6BACjD,GACH,EACD,IAAI,IAAI,KAAC,IAAI,OAAK,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GAAI,IAC5E,GACC,IACT,CACT,CAAC;AACN,CAAC,CAAC","sourcesContent":["import {useActionHandlers} from '@gravity-ui/uikit';\n\nimport {Foldable, ToggleArrow, YFMWrapper} from '../../../components';\nimport Link from '../../../components/Link/Link';\nimport {QuestionBlockItemProps} from '../../../models';\nimport {block} from '../../../utils';\n\nimport './QuestionBlockItem.scss';\n\nconst b = block('QuestionsBlockItem');\n\nexport const QuestionBlockItem = ({\n title: itemTitle,\n text: itemText,\n link,\n listStyle = 'dash',\n isOpened,\n onClick,\n}: QuestionBlockItemProps) => {\n const {onKeyDown} = useActionHandlers(onClick);\n\n return (\n <div className={b()} role={'listitem'}>\n <button\n className={b('button')}\n onClick={onClick}\n aria-expanded={isOpened}\n onKeyDown={onKeyDown}\n >\n <YFMWrapper\n tagName=\"h3\"\n className={b('title-container')}\n contentClassName={b('title')}\n content={itemTitle}\n modifiers={{\n constructor: true,\n }}\n onClick={onClick}\n tabIndex={0}\n >\n <ToggleArrow\n open={isOpened}\n size={16}\n type={'vertical'}\n iconType=\"navigation\"\n className={b('arrow')}\n />\n </YFMWrapper>\n </button>\n <Foldable isOpened={isOpened}>\n <div className={b('text')} aria-hidden={!isOpened}>\n <YFMWrapper\n content={itemText}\n modifiers={{\n constructor: true,\n constructorListStyle: true,\n constructorListStyleDash: listStyle === 'dash',\n }}\n />\n {link && <Link {...link} tabIndex={isOpened ? 0 : -1} className={b('link')} />}\n </div>\n </Foldable>\n </div>\n );\n};\n"]}
|
|
@@ -3,14 +3,14 @@ import * as React from 'react';
|
|
|
3
3
|
import { Col, Row } from "../../grid/index.js";
|
|
4
4
|
import { Content } from "../../sub-blocks/index.js";
|
|
5
5
|
import { block } from "../../utils/index.js";
|
|
6
|
+
import { sanitizeMicrodata } from "../../utils/microdata.js";
|
|
6
7
|
import { QuestionBlockItem } from "./QuestionBlockItem/QuestionBlockItem.js";
|
|
7
|
-
import { FaqMicrodataValues } from "./models.js";
|
|
8
8
|
import './Questions.css';
|
|
9
9
|
const b = block('QuestionsBlock');
|
|
10
10
|
const QuestionsBlock = (props) => {
|
|
11
11
|
const { title, text, additionalInfo, links, buttons, items, list } = props;
|
|
12
12
|
const [opened, setOpened] = React.useState([0]);
|
|
13
|
-
const toggleItem = (index) => {
|
|
13
|
+
const toggleItem = (index, itemOnClick) => {
|
|
14
14
|
let newState;
|
|
15
15
|
if (opened.includes(index)) {
|
|
16
16
|
newState = opened.filter((itemIndex) => itemIndex !== index);
|
|
@@ -18,13 +18,38 @@ const QuestionsBlock = (props) => {
|
|
|
18
18
|
else {
|
|
19
19
|
newState = [...opened, index];
|
|
20
20
|
}
|
|
21
|
+
if (itemOnClick) {
|
|
22
|
+
itemOnClick(index, !opened.includes(index));
|
|
23
|
+
}
|
|
21
24
|
setOpened(newState);
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const faqMicrodataScript = React.useMemo(() => {
|
|
27
|
+
try {
|
|
28
|
+
const json = JSON.stringify({
|
|
29
|
+
'@context': 'https://schema.org',
|
|
30
|
+
'@type': 'FAQPage',
|
|
31
|
+
mainEntity: items.map((item) => ({
|
|
32
|
+
'@type': 'Question',
|
|
33
|
+
name: sanitizeMicrodata(item.title),
|
|
34
|
+
acceptedAnswer: {
|
|
35
|
+
'@type': 'Answer',
|
|
36
|
+
text: sanitizeMicrodata(item.text),
|
|
37
|
+
},
|
|
38
|
+
})),
|
|
39
|
+
});
|
|
40
|
+
return _jsx("script", { type: "application/ld+json", dangerouslySetInnerHTML: { __html: json } });
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
/*eslint-disable no-console */
|
|
44
|
+
console.warn('Problem with FAQ microdata', error);
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}, [items]);
|
|
48
|
+
return (_jsxs("div", { className: b(), children: [faqMicrodataScript, _jsxs(Row, { children: [_jsx(Col, { sizes: { all: 12, md: 4 }, children: _jsx("div", { className: b('title'), children: _jsx(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, colSizes: { all: 12, md: 12 } }) }) }), _jsx(Col, { sizes: { all: 12, md: 8 }, role: 'list', children: items.map(({ title: itemTitle, text: itemText, link, listStyle = 'dash', onClick: itemOnClick, }, index) => {
|
|
49
|
+
const isOpened = opened.includes(index);
|
|
50
|
+
const onClick = () => toggleItem(index, itemOnClick);
|
|
51
|
+
return (_jsx(QuestionBlockItem, { title: itemTitle, text: itemText, link: link, listStyle: listStyle, isOpened: isOpened, onClick: onClick }, itemTitle));
|
|
52
|
+
}) })] })] }));
|
|
28
53
|
};
|
|
29
54
|
export default QuestionsBlock;
|
|
30
55
|
//# sourceMappingURL=Questions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Questions.js","sourceRoot":"../../../../src","sources":["blocks/Questions/Questions.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,4BAAmB;AAEpC,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAC,6BAAoB;
|
|
1
|
+
{"version":3,"file":"Questions.js","sourceRoot":"../../../../src","sources":["blocks/Questions/Questions.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,4BAAmB;AAEpC,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,iBAAiB,EAAC,iCAA8B;AAExD,OAAO,EAAC,iBAAiB,EAAC,iDAA8C;AAExE,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,KAAK,CAAC;IACzE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG,CACf,KAAa,EACb,WAAwD,EAC1D,EAAE;QACA,IAAI,QAAQ,CAAC;QAEb,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC;QACzE,CAAC;aAAM,CAAC;YACJ,QAAQ,GAAG,CAAC,GAAG,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AC,YACtB,KAAC,OAAO,IACJ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GAC7B,GACA,GACJ,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,EAAE,IAAI,EAAE,MAAM,YACrC,KAAK,CAAC,GAAG,CACN,CACI,EACI,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EACJ,SAAS,GAAG,MAAM,EAClB,OAAO,EAAE,WAAW,GACvB,EACD,KAAK,EACP,EAAE;4BACA,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;4BACxC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;4BAErD,OAAO,CACH,KAAC,iBAAiB,IAEd,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,IANX,SAAS,CAOhB,CACL,CAAC;wBACN,CAAC,CACJ,GACC,IACJ,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Col, Row} from '../../grid';\nimport {QuestionsProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block} from '../../utils';\nimport {sanitizeMicrodata} from '../../utils/microdata';\n\nimport {QuestionBlockItem} from './QuestionBlockItem/QuestionBlockItem';\n\nimport './Questions.scss';\n\nconst b = block('QuestionsBlock');\n\nconst QuestionsBlock = (props: QuestionsProps) => {\n const {title, text, additionalInfo, links, buttons, items, list} = props;\n const [opened, setOpened] = React.useState<number[]>([0]);\n\n const toggleItem = (\n index: number,\n itemOnClick?: QuestionsProps['items'][number]['onClick'],\n ) => {\n let newState;\n\n if (opened.includes(index)) {\n newState = opened.filter((itemIndex: number) => itemIndex !== index);\n } else {\n newState = [...opened, index];\n }\n\n if (itemOnClick) {\n itemOnClick(index, !opened.includes(index));\n }\n\n setOpened(newState);\n };\n\n const faqMicrodataScript = React.useMemo(() => {\n try {\n const json = JSON.stringify({\n '@context': 'https://schema.org',\n '@type': 'FAQPage',\n mainEntity: items.map((item) => ({\n '@type': 'Question',\n name: sanitizeMicrodata(item.title),\n acceptedAnswer: {\n '@type': 'Answer',\n text: sanitizeMicrodata(item.text),\n },\n })),\n });\n return <script type=\"application/ld+json\" dangerouslySetInnerHTML={{__html: json}} />;\n } catch (error) {\n /*eslint-disable no-console */\n console.warn('Problem with FAQ microdata', error);\n return null;\n }\n }, [items]);\n\n return (\n <div className={b()}>\n {faqMicrodataScript}\n <Row>\n <Col sizes={{all: 12, md: 4}}>\n <div className={b('title')}>\n <Content\n title={title}\n text={text}\n additionalInfo={additionalInfo}\n links={links}\n list={list}\n buttons={buttons}\n colSizes={{all: 12, md: 12}}\n />\n </div>\n </Col>\n <Col sizes={{all: 12, md: 8}} role={'list'}>\n {items.map(\n (\n {\n title: itemTitle,\n text: itemText,\n link,\n listStyle = 'dash',\n onClick: itemOnClick,\n },\n index,\n ) => {\n const isOpened = opened.includes(index);\n const onClick = () => toggleItem(index, itemOnClick);\n\n return (\n <QuestionBlockItem\n key={itemTitle}\n title={itemTitle}\n text={itemText}\n link={link}\n listStyle={listStyle}\n isOpened={isOpened}\n onClick={onClick}\n />\n );\n },\n )}\n </Col>\n </Row>\n </div>\n );\n};\n\nexport default QuestionsBlock;\n"]}
|
|
@@ -51,6 +51,17 @@ export declare const QuestionsBlock: {
|
|
|
51
51
|
contentType: string;
|
|
52
52
|
inputType: string;
|
|
53
53
|
};
|
|
54
|
+
labels: {
|
|
55
|
+
type: string;
|
|
56
|
+
items: {
|
|
57
|
+
type: string;
|
|
58
|
+
properties: {
|
|
59
|
+
when: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
54
65
|
additionalInfo: {
|
|
55
66
|
type: string;
|
|
56
67
|
contentType: string;
|
|
@@ -33,9 +33,7 @@ const Share = ({ items, title }) => {
|
|
|
33
33
|
const icon = icons[type];
|
|
34
34
|
const urlTitle = i18n(`${type}-title`);
|
|
35
35
|
const buttonLabel = i18n(`${type}-label`);
|
|
36
|
-
return (_jsx(Button, { view: "flat", size: "l", target: "_blank", href: socialUrl, className: b('item', { type: type.toLowerCase() }), onClick: handleButtonClick, title: urlTitle,
|
|
37
|
-
'aria-label': buttonLabel,
|
|
38
|
-
}, children: icon && _jsx(Icon, { data: icon, size: 24, className: b('icon', { type }) }) }, type));
|
|
36
|
+
return (_jsx(Button, { view: "flat", size: "l", target: "_blank", href: socialUrl, className: b('item', { type: type.toLowerCase() }), onClick: handleButtonClick, title: urlTitle, "aria-label": buttonLabel, children: icon && _jsx(Icon, { data: icon, size: 24, className: b('icon', { type }) }) }, type));
|
|
39
37
|
}) })] }));
|
|
40
38
|
};
|
|
41
39
|
export default Share;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Share.js","sourceRoot":"../../../../src","sources":["blocks/Share/Share.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,UAAU,EAAC,kCAAyB;AAC5C,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAC9D,OAAO,EAAC,YAAY,EAAC,6BAAoB;AACzC,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,QAAQ,EAAC,gC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,CAAC;oBAChD,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC1C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;oBACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC,CAAC;oBACvC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC,CAAC;oBAE1C,OAAO,CACH,KAAC,MAAM,IAEH,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,GAAG,EACR,MAAM,EAAC,QAAQ,EACf,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAC,CAAC,EAChD,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,QAAQ,gBACH,WAAW,YAEtB,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAC,CAAC,GAAI,IAVhE,IAAI,CAWJ,CACZ,CAAC;gBACN,CAAC,CAAC,GACA,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Button, Icon} from '@gravity-ui/uikit';\n\nimport {YFMWrapper} from '../../components';\nimport {LocationContext} from '../../context/locationContext';\nimport {useAnalytics} from '../../hooks';\nimport {Facebook} from '../../icons/Facebook';\nimport {Linkedin} from '../../icons/Linkedin';\nimport {Telegram} from '../../icons/Telegram';\nimport {Twitter} from '../../icons/Twitter';\nimport {Vk} from '../../icons/Vk';\nimport {DefaultEventNames, ShareBlockProps} from '../../models';\nimport {block, getAbsolutePath, getShareLink} from '../../utils';\n\nimport {i18n} from './i18n';\n\nimport './Share.scss';\n\ninterface IconsProps {\n [key: string]: (props: React.SVGProps<SVGSVGElement>) => React.ReactNode;\n}\n\nconst icons: IconsProps = {\n facebook: Facebook,\n twitter: Twitter,\n linkedin: Linkedin,\n vk: Vk,\n telegram: Telegram,\n};\n\nconst b = block('share-block');\n\nconst Share = ({items, title}: ShareBlockProps) => {\n const {pathname, hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics(DefaultEventNames.ShareButton);\n\n const handleButtonClick = React.useCallback(() => handleAnalytics(), [handleAnalytics]);\n\n return (\n <div className={b()}>\n {title ? (\n <YFMWrapper\n content={title}\n modifiers={{\n constructor: true,\n }}\n contentClassName={b('title')}\n tagName=\"h5\"\n />\n ) : (\n <h5 className={b('title')}>{i18n('constructor-share')}</h5>\n )}\n <div className={b('items')}>\n {items.map((type) => {\n const url = getAbsolutePath(hostname, pathname);\n const socialUrl = getShareLink(url, type);\n const icon = icons[type];\n const urlTitle = i18n(`${type}-title`);\n const buttonLabel = i18n(`${type}-label`);\n\n return (\n <Button\n key={type}\n view=\"flat\"\n size=\"l\"\n target=\"_blank\"\n href={socialUrl}\n className={b('item', {type: type.toLowerCase()})}\n onClick={handleButtonClick}\n title={urlTitle}\n aria-label={buttonLabel}\n >\n {icon && <Icon data={icon} size={24} className={b('icon', {type})} />}\n </Button>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default Share;\n"]}
|
|
@@ -3,6 +3,10 @@ unpredictable css rules order in build */
|
|
|
3
3
|
.pc-SliderBlock {
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
6
|
+
.pc-SliderBlock__slider {
|
|
7
|
+
touch-action: pan-y pinch-zoom;
|
|
8
|
+
-webkit-overflow-scrolling: touch;
|
|
9
|
+
}
|
|
6
10
|
.pc-SliderBlock__slider.pc-SliderBlock__slider {
|
|
7
11
|
padding: 24px 0 48px;
|
|
8
12
|
margin: 0 -8px;
|
|
@@ -12,10 +16,13 @@ unpredictable css rules order in build */
|
|
|
12
16
|
padding-bottom: 20px;
|
|
13
17
|
}
|
|
14
18
|
.pc-SliderBlock__slide.swiper-slide {
|
|
15
|
-
padding: 0 8px;
|
|
16
19
|
box-sizing: border-box;
|
|
17
20
|
height: auto;
|
|
18
21
|
}
|
|
22
|
+
.pc-SliderBlock__slide.swiper-slide.pc-SliderBlock__slide.swiper-slide {
|
|
23
|
+
padding: 0 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
@keyframes safari-fix {
|
|
20
27
|
from {
|
|
21
28
|
transform: translateX(0.001px);
|
|
@@ -31,6 +38,60 @@ unpredictable css rules order in build */
|
|
|
31
38
|
width: 100%;
|
|
32
39
|
height: 100%;
|
|
33
40
|
}
|
|
41
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card,
|
|
42
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card,
|
|
43
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block,
|
|
44
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote,
|
|
45
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card,
|
|
46
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card,
|
|
47
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card {
|
|
48
|
+
touch-action: pan-y pinch-zoom;
|
|
49
|
+
}
|
|
50
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card img,
|
|
51
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card picture,
|
|
52
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card picture img,
|
|
53
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card img,
|
|
54
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card picture,
|
|
55
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card picture img,
|
|
56
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block img,
|
|
57
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block picture,
|
|
58
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block picture img,
|
|
59
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote img,
|
|
60
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote picture,
|
|
61
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote picture img,
|
|
62
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card img,
|
|
63
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card picture,
|
|
64
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card picture img,
|
|
65
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card img,
|
|
66
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card picture,
|
|
67
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card picture img,
|
|
68
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card img,
|
|
69
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card picture,
|
|
70
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card picture img {
|
|
71
|
+
-webkit-user-drag: none;
|
|
72
|
+
touch-action: pan-y pinch-zoom;
|
|
73
|
+
}
|
|
74
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card a,
|
|
75
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card button,
|
|
76
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card a,
|
|
77
|
+
.pc-SliderBlock__slide.swiper-slide .pc-basic-card button,
|
|
78
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block a,
|
|
79
|
+
.pc-SliderBlock__slide.swiper-slide .pc-card-base-block button,
|
|
80
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote a,
|
|
81
|
+
.pc-SliderBlock__slide.swiper-slide .pc-quote button,
|
|
82
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card a,
|
|
83
|
+
.pc-SliderBlock__slide.swiper-slide .pc-price-card button,
|
|
84
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card a,
|
|
85
|
+
.pc-SliderBlock__slide.swiper-slide .pc-banner-card button,
|
|
86
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card a,
|
|
87
|
+
.pc-SliderBlock__slide.swiper-slide .pc-background-card button {
|
|
88
|
+
touch-action: pan-y pinch-zoom;
|
|
89
|
+
}
|
|
90
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card img,
|
|
91
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card picture,
|
|
92
|
+
.pc-SliderBlock__slide.swiper-slide .pc-image-card picture img {
|
|
93
|
+
pointer-events: auto;
|
|
94
|
+
}
|
|
34
95
|
.pc-SliderBlock .pc-SliderBlock__slide-item {
|
|
35
96
|
width: 100%;
|
|
36
97
|
height: 100%;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import 'swiper/css';
|
|
3
|
+
import 'swiper/css/a11y';
|
|
4
|
+
import 'swiper/css/pagination';
|
|
5
|
+
import { Swiper as SwiperReact } from 'swiper/react';
|
|
3
6
|
import { ClassNameProps, Refable, SliderProps as SliderParams } from "../../models/index.js";
|
|
4
7
|
import './Slider.css';
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export interface SliderProps extends Omit<SliderParams, 'children'>, Partial<Pick<SwiperReact, 'onSlideChange' | 'onSlideChangeTransitionStart' | 'onSlideChangeTransitionEnd' | 'onActiveIndexChange' | 'onBreakpoint'>>, Refable<HTMLDivElement>, ClassNameProps {
|
|
8
|
+
export type { Swiper, SwiperOptions } from 'swiper/types';
|
|
9
|
+
export interface SliderProps extends Omit<SliderParams, 'children'>, Partial<Pick<React.ComponentProps<typeof SwiperReact>, 'onSlideChange' | 'onSlideChangeTransitionStart' | 'onSlideChangeTransitionEnd' | 'onActiveIndexChange' | 'onBreakpoint'>>, Refable<HTMLDivElement>, ClassNameProps {
|
|
8
10
|
type?: string;
|
|
9
11
|
anchorId?: string;
|
|
10
12
|
dotsClassName?: string;
|