@gravity-ui/page-constructor 6.0.1-beta.0 → 7.0.0-beta.1
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 +10 -0
- package/build/cjs/blocks/CardLayout/CardLayout.js +1 -1
- package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -5
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/cjs/blocks/Form/schema.js +1 -1
- package/build/cjs/blocks/Form/schema.js.map +1 -1
- package/build/cjs/blocks/Header/Header.css +21 -10
- package/build/cjs/blocks/Header/Header.js +15 -4
- package/build/cjs/blocks/Header/Header.js.map +1 -1
- package/build/cjs/blocks/Header/schema.d.ts +6 -0
- package/build/cjs/blocks/Header/schema.js +3 -0
- package/build/cjs/blocks/Header/schema.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.css +0 -10
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -2
- package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +12 -1
- package/build/cjs/blocks/HeaderSlider/schema.js +1 -1
- package/build/cjs/blocks/HeaderSlider/schema.js.map +1 -1
- package/build/cjs/blocks/Info/schema.js +1 -1
- package/build/cjs/blocks/Info/schema.js.map +1 -1
- package/build/cjs/blocks/Media/schema.js +1 -1
- package/build/cjs/blocks/Media/schema.js.map +1 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +3 -1
- package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/cjs/blocks/Questions/schema.js +1 -1
- package/build/cjs/blocks/Questions/schema.js.map +1 -1
- package/build/cjs/blocks/Share/Share.js +5 -1
- package/build/cjs/blocks/Share/Share.js.map +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.css +22 -21
- package/build/cjs/blocks/Slider/Arrow/Arrow.d.ts +4 -2
- package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/cjs/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/cjs/blocks/Slider/Slider.css +549 -329
- package/build/cjs/blocks/Slider/Slider.d.ts +6 -5
- package/build/cjs/blocks/Slider/Slider.js +31 -271
- package/build/cjs/blocks/Slider/Slider.js.map +1 -1
- package/build/cjs/blocks/Slider/i18n/en.json +1 -1
- package/build/cjs/blocks/Slider/i18n/ru.json +1 -1
- package/build/cjs/blocks/Slider/models.d.ts +2 -2
- package/build/cjs/blocks/Slider/models.js +1 -1
- package/build/cjs/blocks/Slider/models.js.map +1 -1
- package/build/cjs/blocks/Slider/schema.d.ts +18 -1
- package/build/cjs/blocks/Slider/schema.js +9 -0
- package/build/cjs/blocks/Slider/schema.js.map +1 -1
- package/build/{esm/blocks/SliderNew → cjs/blocks/Slider}/useSlider.d.ts +1 -0
- package/build/cjs/blocks/{SliderNew → Slider}/useSlider.js +4 -0
- package/build/cjs/blocks/Slider/useSlider.js.map +1 -0
- package/build/cjs/blocks/Slider/useSliderPagination.js.map +1 -0
- package/build/cjs/blocks/Slider/utils.d.ts +7 -28
- package/build/cjs/blocks/Slider/utils.js +27 -109
- package/build/cjs/blocks/Slider/utils.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +15 -12
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.d.ts +9 -0
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.js +11 -0
- package/build/cjs/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
- package/build/cjs/blocks/SliderOld/SliderOld.css +703 -0
- package/build/cjs/blocks/SliderOld/SliderOld.d.ts +17 -0
- package/build/cjs/blocks/SliderOld/SliderOld.js +292 -0
- package/build/cjs/blocks/SliderOld/SliderOld.js.map +1 -0
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.js +1 -1
- package/build/cjs/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
- package/build/{esm/blocks/SliderNew → cjs/blocks/SliderOld}/schema.d.ts +5 -21
- package/build/cjs/blocks/{SliderNew → SliderOld}/schema.js +6 -14
- package/build/cjs/blocks/SliderOld/schema.js.map +1 -0
- package/build/cjs/blocks/SliderOld/utils.d.ts +37 -0
- package/build/cjs/blocks/SliderOld/utils.js +126 -0
- package/build/cjs/blocks/SliderOld/utils.js.map +1 -0
- package/build/cjs/blocks/Table/Table.css +4 -3
- package/build/cjs/blocks/Table/Table.js +3 -1
- package/build/cjs/blocks/Table/Table.js.map +1 -1
- package/build/cjs/blocks/Tabs/schema.js +1 -1
- package/build/cjs/blocks/Tabs/schema.js.map +1 -1
- package/build/cjs/blocks/index.d.ts +2 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/index.js.map +1 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- package/build/cjs/blocks/validators.js.map +1 -1
- package/build/cjs/components/BackLink/BackLink.js +5 -2
- package/build/cjs/components/BackLink/BackLink.js.map +1 -1
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +3 -3
- package/build/cjs/components/BalancedMasonry/BalancedMasonry.js.map +1 -1
- package/build/cjs/components/BrandFooter/BrandFooter.css +21 -17
- package/build/cjs/components/BrandFooter/BrandFooter.js +1 -1
- package/build/cjs/components/BrandFooter/BrandFooter.js.map +1 -1
- package/build/cjs/components/Button/Button.js +2 -3
- package/build/cjs/components/Button/Button.js.map +1 -1
- package/build/cjs/components/CardBase/CardBase.css +1 -0
- package/build/cjs/components/ContentList/ContentList.css +16 -12
- package/build/cjs/components/ContentList/ContentList.js +1 -1
- package/build/cjs/components/ContentList/ContentList.js.map +1 -1
- package/build/cjs/components/FileLink/FileLink.js +8 -1
- package/build/cjs/components/FileLink/FileLink.js.map +1 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js +1 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.js.map +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +96 -18
- package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +5 -0
- package/build/cjs/components/FullscreenImage/FullscreenImage.js +14 -2
- package/build/cjs/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/cjs/components/HTML/HTML.d.ts +15 -8
- package/build/cjs/components/HTML/HTML.js +15 -10
- package/build/cjs/components/HTML/HTML.js.map +1 -1
- package/build/cjs/components/ImageBase/ImageBase.js +1 -1
- package/build/cjs/components/ImageBase/ImageBase.js.map +1 -1
- package/build/cjs/components/Link/Link.js +11 -2
- package/build/cjs/components/Link/Link.js.map +1 -1
- package/build/cjs/components/Map/GoogleMap.js +1 -1
- package/build/cjs/components/Map/GoogleMap.js.map +1 -1
- package/build/cjs/components/Map/YMap/YandexMap.js +1 -1
- package/build/cjs/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/cjs/components/Media/Image/Image.d.ts +1 -0
- package/build/cjs/components/Media/Image/Image.js +8 -6
- package/build/cjs/components/Media/Image/Image.js.map +1 -1
- package/build/cjs/components/Media/Media.css +4 -0
- package/build/cjs/components/Media/Media.d.ts +1 -0
- package/build/cjs/components/Media/Media.js +3 -2
- package/build/cjs/components/Media/Media.js.map +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.css +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.js +1 -1
- package/build/cjs/components/MetaInfo/MetaInfo.js.map +1 -1
- package/build/cjs/components/OutsideClick/OutsideClick.js +1 -1
- package/build/cjs/components/OutsideClick/OutsideClick.js.map +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/cjs/components/OverflowScroller/OverflowScroller.js.map +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/cjs/components/Table/Table.css +2 -1
- package/build/cjs/components/Table/Table.js +4 -2
- package/build/cjs/components/Table/Table.js.map +1 -1
- package/build/cjs/components/Title/TitleItem.css +15 -5
- package/build/cjs/components/Title/TitleItem.js +4 -1
- package/build/cjs/components/Title/TitleItem.js.map +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/cjs/components/YFMWrapper/YFMWrapper.d.ts +4 -2
- package/build/cjs/components/YFMWrapper/YFMWrapper.js +4 -3
- package/build/cjs/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/cjs/constructor-items.d.ts +2 -2
- package/build/cjs/constructor-items.js +2 -4
- package/build/cjs/constructor-items.js.map +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js +1 -1
- package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +1 -1
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/cjs/editor/components/BlockForm/BlockForm.js +2 -2
- package/build/cjs/editor/components/BlockForm/BlockForm.js.map +1 -1
- package/build/cjs/editor/components/CodeEditor/CodeEditor.js +1 -1
- package/build/cjs/editor/components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +1 -1
- package/build/cjs/editor/components/PageSettings/PageSettings.js +1 -1
- package/build/cjs/editor/components/PageSettings/PageSettings.js.map +1 -1
- package/build/cjs/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
- 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/dynamic-forms-custom/config.js +1 -1
- package/build/cjs/editor/dynamic-forms-custom/config.js.map +1 -1
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +2 -2
- package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js.map +1 -1
- package/build/cjs/editor/store/main/utils.js +1 -1
- package/build/cjs/editor/store/main/utils.js.map +1 -1
- package/build/cjs/editor/utils/index.js +1 -1
- package/build/cjs/editor/utils/index.js.map +1 -1
- package/build/cjs/editor/utils/validation.js +1 -1
- package/build/cjs/editor/utils/validation.js.map +1 -1
- package/build/cjs/hooks/useFocus.js +1 -1
- package/build/cjs/hooks/useFocus.js.map +1 -1
- package/build/cjs/hooks/useHeightCalculator.js +1 -1
- package/build/cjs/hooks/useHeightCalculator.js.map +1 -1
- package/build/cjs/hooks/useWindowBreakpoint.js +1 -1
- package/build/cjs/hooks/useWindowBreakpoint.js.map +1 -1
- package/build/cjs/models/common.d.ts +1 -0
- package/build/cjs/models/common.js.map +1 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +19 -16
- package/build/cjs/models/constructor-items/blocks.js +3 -2
- package/build/cjs/models/constructor-items/blocks.js.map +1 -1
- package/build/cjs/models/constructor-items/common.d.ts +2 -2
- package/build/cjs/models/constructor-items/common.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.js +1 -1
- package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.js.map +1 -1
- package/build/cjs/navigation/hooks/useActiveNavItem.d.ts +2 -2
- package/build/cjs/navigation/hooks/useShowBorder.js +1 -1
- package/build/cjs/navigation/hooks/useShowBorder.js.map +1 -1
- package/build/cjs/navigation/schema.js +1 -1
- package/build/cjs/navigation/schema.js.map +1 -1
- package/build/cjs/navigation/utils.d.ts +1 -1
- package/build/cjs/schema/constants.js +3 -1
- package/build/cjs/schema/constants.js.map +1 -1
- package/build/cjs/schema/validators/blocks.d.ts +2 -2
- package/build/cjs/schema/validators/blocks.js +2 -2
- package/build/cjs/schema/validators/blocks.js.map +1 -1
- package/build/cjs/schema/validators/common.js +1 -1
- package/build/cjs/schema/validators/common.js.map +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +14 -8
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -1
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/Content/Content.css +80 -31
- package/build/cjs/sub-blocks/Content/Content.js +3 -1
- package/build/cjs/sub-blocks/Content/Content.js.map +1 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.css +2 -0
- package/build/cjs/sub-blocks/ImageCard/schema.js +1 -1
- package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.js +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.css +2 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js +3 -4
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js.map +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -0
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js.map +1 -1
- package/build/cjs/sub-blocks/Quote/Quote.css +8 -4
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -1
- package/build/cjs/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/cjs/text-transform/common.d.ts +4 -3
- package/build/cjs/text-transform/common.js +41 -18
- package/build/cjs/text-transform/common.js.map +1 -1
- package/build/cjs/text-transform/config.d.ts +5 -2
- package/build/cjs/text-transform/config.js +84 -43
- package/build/cjs/text-transform/config.js.map +1 -1
- package/build/cjs/text-transform/transformers.js +4 -4
- package/build/cjs/text-transform/transformers.js.map +1 -1
- package/build/cjs/utils/blocks.d.ts +10 -2
- package/build/cjs/utils/blocks.js +12 -5
- package/build/cjs/utils/blocks.js.map +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js +1 -1
- package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +4 -6
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
- package/build/esm/blocks/Form/schema.js +1 -1
- package/build/esm/blocks/Form/schema.js.map +1 -1
- package/build/esm/blocks/Header/Header.css +21 -10
- package/build/esm/blocks/Header/Header.js +16 -5
- package/build/esm/blocks/Header/Header.js.map +1 -1
- package/build/esm/blocks/Header/schema.d.ts +6 -0
- package/build/esm/blocks/Header/schema.js +3 -0
- package/build/esm/blocks/Header/schema.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.css +0 -10
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js +1 -1
- package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
- package/build/esm/blocks/HeaderSlider/schema.d.ts +12 -1
- package/build/esm/blocks/HeaderSlider/schema.js +1 -1
- package/build/esm/blocks/HeaderSlider/schema.js.map +1 -1
- package/build/esm/blocks/Info/schema.js +1 -1
- package/build/esm/blocks/Info/schema.js.map +1 -1
- package/build/esm/blocks/Media/schema.js +1 -1
- package/build/esm/blocks/Media/schema.js.map +1 -1
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +4 -2
- package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
- package/build/esm/blocks/Questions/schema.js +1 -1
- package/build/esm/blocks/Questions/schema.js.map +1 -1
- package/build/esm/blocks/Share/Share.js +5 -1
- package/build/esm/blocks/Share/Share.js.map +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.css +22 -21
- package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +4 -2
- package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
- package/build/esm/blocks/Slider/Arrow/Arrow.js.map +1 -1
- package/build/esm/blocks/Slider/Slider.css +549 -329
- package/build/esm/blocks/Slider/Slider.d.ts +6 -5
- package/build/esm/blocks/Slider/Slider.js +32 -272
- package/build/esm/blocks/Slider/Slider.js.map +1 -1
- package/build/esm/blocks/Slider/i18n/en.json +1 -1
- package/build/esm/blocks/Slider/i18n/ru.json +1 -1
- package/build/esm/blocks/Slider/models.d.ts +2 -2
- package/build/esm/blocks/Slider/models.js +1 -1
- package/build/esm/blocks/Slider/models.js.map +1 -1
- package/build/esm/blocks/Slider/schema.d.ts +18 -1
- package/build/esm/blocks/Slider/schema.js +9 -0
- package/build/esm/blocks/Slider/schema.js.map +1 -1
- package/build/{cjs/blocks/SliderNew → esm/blocks/Slider}/useSlider.d.ts +1 -0
- package/build/esm/blocks/{SliderNew → Slider}/useSlider.js +4 -0
- package/build/esm/blocks/Slider/useSlider.js.map +1 -0
- package/build/esm/blocks/Slider/useSliderPagination.js.map +1 -0
- package/build/esm/blocks/Slider/utils.d.ts +7 -28
- package/build/esm/blocks/Slider/utils.js +24 -103
- package/build/esm/blocks/Slider/utils.js.map +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +15 -12
- package/build/esm/blocks/SliderOld/Arrow/Arrow.d.ts +10 -0
- package/build/esm/blocks/SliderOld/Arrow/Arrow.js +9 -0
- package/build/esm/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
- package/build/esm/blocks/SliderOld/SliderOld.css +703 -0
- package/build/esm/blocks/SliderOld/SliderOld.d.ts +18 -0
- package/build/esm/blocks/SliderOld/SliderOld.js +288 -0
- package/build/esm/blocks/SliderOld/SliderOld.js.map +1 -0
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
- package/build/esm/blocks/{SliderNew → SliderOld}/models.js +1 -1
- package/build/esm/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
- package/build/{cjs/blocks/SliderNew → esm/blocks/SliderOld}/schema.d.ts +5 -21
- package/build/esm/blocks/{SliderNew → SliderOld}/schema.js +5 -13
- package/build/esm/blocks/SliderOld/schema.js.map +1 -0
- package/build/esm/blocks/SliderOld/utils.d.ts +37 -0
- package/build/esm/blocks/SliderOld/utils.js +116 -0
- package/build/esm/blocks/SliderOld/utils.js.map +1 -0
- package/build/esm/blocks/Table/Table.css +4 -3
- package/build/esm/blocks/Table/Table.js +4 -2
- package/build/esm/blocks/Table/Table.js.map +1 -1
- package/build/esm/blocks/Tabs/schema.js +1 -1
- package/build/esm/blocks/Tabs/schema.js.map +1 -1
- package/build/esm/blocks/index.d.ts +2 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/index.js.map +1 -1
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- package/build/esm/blocks/validators.js.map +1 -1
- package/build/esm/components/BackLink/BackLink.js +5 -2
- package/build/esm/components/BackLink/BackLink.js.map +1 -1
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js +3 -3
- package/build/esm/components/BalancedMasonry/BalancedMasonry.js.map +1 -1
- package/build/esm/components/BrandFooter/BrandFooter.css +21 -17
- package/build/esm/components/BrandFooter/BrandFooter.js +1 -1
- package/build/esm/components/BrandFooter/BrandFooter.js.map +1 -1
- package/build/esm/components/Button/Button.js +3 -4
- package/build/esm/components/Button/Button.js.map +1 -1
- package/build/esm/components/CardBase/CardBase.css +1 -0
- package/build/esm/components/ContentList/ContentList.css +16 -12
- package/build/esm/components/ContentList/ContentList.js +1 -1
- package/build/esm/components/ContentList/ContentList.js.map +1 -1
- package/build/esm/components/FileLink/FileLink.js +8 -1
- package/build/esm/components/FileLink/FileLink.js.map +1 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.js +1 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.js.map +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.css +96 -18
- package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +5 -0
- package/build/esm/components/FullscreenImage/FullscreenImage.js +14 -2
- package/build/esm/components/FullscreenImage/FullscreenImage.js.map +1 -1
- package/build/esm/components/HTML/HTML.d.ts +15 -8
- package/build/esm/components/HTML/HTML.js +17 -11
- package/build/esm/components/HTML/HTML.js.map +1 -1
- package/build/esm/components/ImageBase/ImageBase.js +1 -1
- package/build/esm/components/ImageBase/ImageBase.js.map +1 -1
- package/build/esm/components/Link/Link.js +12 -3
- package/build/esm/components/Link/Link.js.map +1 -1
- package/build/esm/components/Map/GoogleMap.js +1 -1
- package/build/esm/components/Map/GoogleMap.js.map +1 -1
- package/build/esm/components/Map/YMap/YandexMap.js +1 -1
- package/build/esm/components/Map/YMap/YandexMap.js.map +1 -1
- package/build/esm/components/Media/Image/Image.d.ts +1 -0
- package/build/esm/components/Media/Image/Image.js +8 -6
- package/build/esm/components/Media/Image/Image.js.map +1 -1
- package/build/esm/components/Media/Media.css +4 -0
- package/build/esm/components/Media/Media.d.ts +1 -0
- package/build/esm/components/Media/Media.js +3 -2
- package/build/esm/components/Media/Media.js.map +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.css +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
- package/build/esm/components/MetaInfo/MetaInfo.js.map +1 -1
- package/build/esm/components/OutsideClick/OutsideClick.js +1 -1
- package/build/esm/components/OutsideClick/OutsideClick.js.map +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.js +1 -1
- package/build/esm/components/OverflowScroller/OverflowScroller.js.map +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.js +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.js.map +1 -1
- package/build/esm/components/Table/Table.css +2 -1
- package/build/esm/components/Table/Table.js +5 -3
- package/build/esm/components/Table/Table.js.map +1 -1
- package/build/esm/components/Title/TitleItem.css +15 -5
- package/build/esm/components/Title/TitleItem.js +5 -2
- package/build/esm/components/Title/TitleItem.js.map +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
- package/build/esm/components/VideoBlock/VideoBlock.js.map +1 -1
- package/build/esm/components/YFMWrapper/YFMWrapper.d.ts +4 -2
- package/build/esm/components/YFMWrapper/YFMWrapper.js +5 -3
- package/build/esm/components/YFMWrapper/YFMWrapper.js.map +1 -1
- package/build/esm/constructor-items.d.ts +2 -2
- package/build/esm/constructor-items.js +3 -5
- package/build/esm/constructor-items.js.map +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.css +1 -0
- package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.js +1 -1
- package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +1 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
- package/build/esm/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/esm/editor/components/AddBlock/AddBlock.js.map +1 -1
- package/build/esm/editor/components/BlockForm/BlockForm.js +2 -2
- package/build/esm/editor/components/BlockForm/BlockForm.js.map +1 -1
- package/build/esm/editor/components/CodeEditor/CodeEditor.js +1 -1
- package/build/esm/editor/components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +1 -1
- package/build/esm/editor/components/PageSettings/PageSettings.js +1 -1
- package/build/esm/editor/components/PageSettings/PageSettings.js.map +1 -1
- package/build/esm/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
- 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/dynamic-forms-custom/config.js +1 -1
- package/build/esm/editor/dynamic-forms-custom/config.js.map +1 -1
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +2 -2
- package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js.map +1 -1
- package/build/esm/editor/store/main/utils.js +1 -1
- package/build/esm/editor/store/main/utils.js.map +1 -1
- package/build/esm/editor/utils/index.js +1 -1
- package/build/esm/editor/utils/index.js.map +1 -1
- package/build/esm/editor/utils/validation.js +1 -1
- package/build/esm/editor/utils/validation.js.map +1 -1
- package/build/esm/hooks/useFocus.js +1 -1
- package/build/esm/hooks/useFocus.js.map +1 -1
- package/build/esm/hooks/useHeightCalculator.js +1 -1
- package/build/esm/hooks/useHeightCalculator.js.map +1 -1
- package/build/esm/hooks/useWindowBreakpoint.js +1 -1
- package/build/esm/hooks/useWindowBreakpoint.js.map +1 -1
- package/build/esm/models/common.d.ts +1 -0
- package/build/esm/models/common.js.map +1 -1
- package/build/esm/models/constructor-items/blocks.d.ts +19 -16
- package/build/esm/models/constructor-items/blocks.js +3 -2
- package/build/esm/models/constructor-items/blocks.js.map +1 -1
- package/build/esm/models/constructor-items/common.d.ts +2 -2
- package/build/esm/models/constructor-items/common.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -1
- package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
- package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.js +1 -1
- package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.js.map +1 -1
- package/build/esm/navigation/hooks/useActiveNavItem.d.ts +2 -2
- package/build/esm/navigation/hooks/useShowBorder.js +1 -1
- package/build/esm/navigation/hooks/useShowBorder.js.map +1 -1
- package/build/esm/navigation/schema.js +1 -1
- package/build/esm/navigation/schema.js.map +1 -1
- package/build/esm/navigation/utils.d.ts +1 -1
- package/build/esm/schema/constants.js +4 -2
- package/build/esm/schema/constants.js.map +1 -1
- package/build/esm/schema/validators/blocks.d.ts +2 -2
- package/build/esm/schema/validators/blocks.js +2 -2
- package/build/esm/schema/validators/blocks.js.map +1 -1
- package/build/esm/schema/validators/common.js +1 -1
- package/build/esm/schema/validators/common.js.map +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +14 -8
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +4 -2
- package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.js +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/Content/Content.css +80 -31
- package/build/esm/sub-blocks/Content/Content.js +3 -1
- package/build/esm/sub-blocks/Content/Content.js.map +1 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.css +2 -0
- package/build/esm/sub-blocks/ImageCard/schema.js +1 -1
- package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.js +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.css +2 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.js +3 -3
- package/build/esm/sub-blocks/PriceCard/PriceCard.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js +1 -1
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.js.map +1 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +1 -0
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js.map +1 -1
- package/build/esm/sub-blocks/Quote/Quote.css +8 -4
- package/build/esm/sub-blocks/Quote/Quote.js +3 -2
- package/build/esm/sub-blocks/Quote/Quote.js.map +1 -1
- package/build/esm/text-transform/common.d.ts +4 -3
- package/build/esm/text-transform/common.js +41 -18
- package/build/esm/text-transform/common.js.map +1 -1
- package/build/esm/text-transform/config.d.ts +5 -2
- package/build/esm/text-transform/config.js +85 -44
- package/build/esm/text-transform/config.js.map +1 -1
- package/build/esm/text-transform/transformers.js +4 -4
- package/build/esm/text-transform/transformers.js.map +1 -1
- package/build/esm/utils/blocks.d.ts +10 -2
- package/build/esm/utils/blocks.js +11 -4
- package/build/esm/utils/blocks.js.map +1 -1
- package/package.json +17 -12
- package/schema/index.js +1 -1
- package/server/models/common.d.ts +1 -0
- package/server/models/constructor-items/blocks.d.ts +19 -16
- package/server/models/constructor-items/blocks.js +3 -2
- package/server/models/constructor-items/common.d.ts +2 -2
- package/server/text-transform/common.d.ts +4 -3
- package/server/text-transform/common.js +41 -18
- package/server/text-transform/config.d.ts +5 -2
- package/server/text-transform/config.js +84 -43
- package/server/text-transform/transformers.js +2 -2
- package/server/utils/blocks.d.ts +10 -2
- package/server/utils/blocks.js +10 -3
- package/styles/fonts.scss +1 -0
- package/styles/root.scss +1 -0
- package/styles/styles.css +0 -1
- package/styles/styles.scss +0 -1
- package/styles/variables.scss +1 -0
- package/widget/2957.index.js +1 -1
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.d.ts +0 -11
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js +0 -11
- package/build/cjs/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
- package/build/cjs/blocks/SliderNew/Slider.css +0 -834
- package/build/cjs/blocks/SliderNew/Slider.d.ts +0 -13
- package/build/cjs/blocks/SliderNew/Slider.js +0 -49
- package/build/cjs/blocks/SliderNew/Slider.js.map +0 -1
- package/build/cjs/blocks/SliderNew/schema.js.map +0 -1
- package/build/cjs/blocks/SliderNew/useSlider.js.map +0 -1
- package/build/cjs/blocks/SliderNew/useSliderPagination.js.map +0 -1
- package/build/cjs/blocks/SliderNew/utils.d.ts +0 -16
- package/build/cjs/blocks/SliderNew/utils.js +0 -44
- package/build/cjs/blocks/SliderNew/utils.js.map +0 -1
- package/build/cjs/blocks/unstable.d.ts +0 -1
- package/build/cjs/blocks/unstable.js +0 -7
- package/build/cjs/blocks/unstable.js.map +0 -1
- package/build/esm/blocks/SliderNew/Arrow/Arrow.d.ts +0 -12
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js +0 -9
- package/build/esm/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
- package/build/esm/blocks/SliderNew/Slider.css +0 -834
- package/build/esm/blocks/SliderNew/Slider.d.ts +0 -14
- package/build/esm/blocks/SliderNew/Slider.js +0 -45
- package/build/esm/blocks/SliderNew/Slider.js.map +0 -1
- package/build/esm/blocks/SliderNew/schema.js.map +0 -1
- package/build/esm/blocks/SliderNew/useSlider.js.map +0 -1
- package/build/esm/blocks/SliderNew/useSliderPagination.js.map +0 -1
- package/build/esm/blocks/SliderNew/utils.d.ts +0 -16
- package/build/esm/blocks/SliderNew/utils.js +0 -37
- package/build/esm/blocks/SliderNew/utils.js.map +0 -1
- package/build/esm/blocks/unstable.d.ts +0 -1
- package/build/esm/blocks/unstable.js +0 -2
- package/build/esm/blocks/unstable.js.map +0 -1
- /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
- /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
- /package/build/cjs/blocks/{Slider → SliderOld}/slick.css +0 -0
- /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
- /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
- /package/build/esm/blocks/{Slider → SliderOld}/slick.css +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["schema/validators/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,KAAK,GACR,8BAAqB;AAEtB,OAAO,EAAC,oBAAoB,EAAC,mBAAgB;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,Q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AAM,CAAC,MAAM,QAAQ,GAAG;IACpB,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;KACjB;IACD,EAAE,EAAE;QACA,IAAI,EAAE,QAAQ;KACjB;IACD,OAAO,EAAE;QACL,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,UAAU;KACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,MAAM;aACrB;4CAEM,UAAU,KACb,UAAU,EAAE,SAAS;SAE5B;KACJ;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,UAAU;KACxB;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n CustomControlsButtonPositioning,\n CustomControlsType,\n MediaVideoControlsType,\n QuoteType,\n Theme,\n} from '../../models';\n\nimport {AnalyticsEventSchema} from './event';\n\nexport const mediaDirection = ['media-content', 'content-media'];\nexport const textSize = ['s', 'm', 'l'];\nexport const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];\nexport const sliderSizesArray = ['sm', 'md', 'lg', 'xl'];\nexport const contentSizes = ['s', 'l'];\nexport const contentTextWidth = ['s', 'm', 'l'];\n\nexport const videoTypes = ['default', 'player'];\nexport const playIconTypes = ['default', 'text'];\nexport const playIconThemes = ['blue', 'grey'];\nexport const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom];\nexport const fileLinkTypes = ['vertical', 'horizontal'];\n\nexport const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};\nexport const sizeNumber = {type: 'number', maximum: 12, minimum: 1};\nexport const contentThemes = ['default', 'dark', 'light'];\nexport const quoteTypes = Object.values(QuoteType);\nexport const mediaView = ['fit', 'full'];\nexport const customControlsType = [\n CustomControlsType.WithMuteButton,\n CustomControlsType.WithPlayPauseButton,\n];\nexport const customControlsButtonPositioning = [\n CustomControlsButtonPositioning.Center,\n CustomControlsButtonPositioning.Left,\n CustomControlsButtonPositioning.Right,\n];\n\nexport const BaseProps = {\n type: {},\n when: {\n type: 'string',\n },\n};\n\nexport const CardLayoutProps = {\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n};\n\nexport const containerSizesObject = {\n type: 'object',\n additionalProperties: false,\n properties: containerSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n};\n\nexport const sliderSizesObject = {\n oneOf: [\n {\n type: 'object',\n additionalProperties: false,\n properties: sliderSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n optionName: 'custom',\n },\n {\n type: 'number',\n optionName: 'constant',\n },\n ],\n};\n\nexport const AnimatableProps = {\n animated: {\n type: 'boolean',\n },\n};\n\nexport const ChildrenProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/children'},\n};\n\nexport const ChildrenCardsProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/cards'},\n};\n\nexport const LoopProps = {\n type: 'object',\n additionalProperties: false,\n required: ['start'],\n properties: {\n start: {\n type: 'number',\n },\n end: {\n type: 'number',\n },\n },\n};\n\nexport const PlayButtonProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: playIconTypes,\n },\n theme: {\n type: 'string',\n enum: playIconThemes,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport const CustomControlsOptionsProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: customControlsType,\n },\n muteButtonShown: {\n type: 'boolean',\n },\n positioning: {\n type: 'string',\n enum: customControlsButtonPositioning,\n },\n },\n};\n\nexport const VideoProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n loop: {\n oneOf: [\n {\n ...LoopProps,\n optionName: 'options',\n },\n {\n type: 'boolean',\n optionName: 'enabled',\n },\n ],\n },\n type: {\n type: 'string',\n enum: videoTypes,\n },\n muted: {\n type: 'boolean',\n },\n autoplay: {\n type: 'boolean',\n },\n elapsedTime: {\n type: 'number',\n },\n playButton: PlayButtonProps,\n controls: {\n type: 'string',\n enum: videoControlsTypes,\n },\n customControlsOptions: CustomControlsOptionsProps,\n ariaLabel: {\n type: 'string',\n },\n contain: {\n type: 'boolean',\n },\n },\n};\n\nexport const ThemeProps = {\n type: 'string',\n enum: ['light', 'dark'],\n};\n\nexport const JustifyProps = {\n type: 'string',\n enum: ['start', 'center', 'end'],\n};\n\nexport const DataLensObjectProps = {\n type: 'object',\n additionalProperties: false,\n required: ['id'],\n properties: {\n id: {\n type: 'string',\n },\n theme: ThemeProps,\n },\n};\n\nexport const DataLensProps = {\n oneOf: [\n {\n type: 'string',\n optionName: 'id',\n },\n {\n ...DataLensObjectProps,\n optionName: 'options',\n },\n ],\n};\n\nexport const BackgroundProps = {\n additionalProperties: false,\n properties: {\n ...AnimatableProps,\n image: ImageProps,\n color: {\n type: 'string',\n },\n video: VideoProps,\n height: {\n type: 'number',\n },\n size: {\n type: 'string',\n enum: ['contain', 'cover'],\n },\n parallax: {\n type: 'boolean',\n },\n fullWidthMedia: {\n type: 'boolean',\n },\n },\n};\n\nexport const LinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n arrow: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: ['back', 'file-link', 'normal'],\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n\nexport const FileLinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['href', 'text'],\n properties: {\n href: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n type: {\n type: 'string',\n enum: fileLinkTypes,\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n },\n};\n\nexport const authorItem = {\n type: 'object',\n required: ['firstName', 'secondName'],\n properties: {\n firstName: {\n type: 'string',\n contentType: 'text',\n },\n secondName: {\n type: 'string',\n contentType: 'text',\n },\n avatar: ImageProps,\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nexport const ButtonProps = {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n primary: {\n type: 'boolean',\n },\n size: {\n type: 'string',\n enum: [\n 'xs', // deprecated, use 's'\n 'ns', // deprecated, use 's'\n 's',\n 'n', // deprecated, use 'l'\n 'm',\n 'l',\n 'xl',\n 'head', // deprecated, use 'l'\n 'promo', // deprecated, use 'xl'\n ],\n },\n theme: {\n type: 'string',\n enum: [\n 'normal',\n 'action',\n 'outlined',\n 'outlined-info',\n 'outlined-danger',\n 'raised',\n 'flat',\n 'flat-info',\n 'flat-danger',\n 'flat-secondary',\n 'clear',\n 'normal-contrast',\n 'outlined-contrast',\n 'flat-contrast',\n 'link', // deprecated, use 'outlined-info'\n 'pseudo', // deprecated, use 'outlined'\n 'pseudo-special', // deprecated, use 'outlined-contrast'\n 'websearch', // deprecated, use 'action'\n 'normal-dark', // deprecated, use 'outlined-contrast'\n 'normal-special', // deprecated, use 'normal-contrast'\n 'accent', // deprecated, use 'action'\n 'dark-grey', // deprecated, use 'github'\n 'app-store',\n 'google-play',\n 'scale',\n 'github',\n 'monochrome',\n ],\n },\n img: {\n oneOf: [\n {\n type: 'string',\n optionName: 'url',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: ['data'],\n properties: {\n data: {\n type: 'string',\n },\n position: {\n type: 'string',\n enum: ['left', 'right'],\n },\n alt: {\n type: 'string',\n contentType: 'text',\n },\n },\n optionName: 'options',\n },\n ],\n },\n analyticsEvents: {\n oneOf: [\n {...AnalyticsEventSchema, optionName: 'single'},\n {type: 'array', items: AnalyticsEventSchema, optionName: 'list'},\n ],\n },\n target: {\n type: 'string',\n enum: ['_self', '_blank', '_parent', '_top'],\n },\n width: {\n type: 'string',\n enum: ['auto', 'max'],\n },\n};\n\nexport const MenuProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport function withTheme<T extends object>(value: T) {\n return {\n oneOf: [\n {\n ...value,\n optionName: 'no theme',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: [Theme.Light],\n properties: Object.values(Theme).reduce(\n (result, themeName) => ({\n ...result,\n [themeName]: value,\n }),\n {},\n ),\n optionName: 'themes',\n },\n ],\n };\n}\n\nexport const AnchorProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n};\n\nexport const BlockBaseProps = {\n ...BaseProps,\n anchor: AnchorProps,\n visible: {\n type: 'string',\n enum: containerSizesArray,\n },\n resetPaddings: {\n type: 'boolean',\n },\n context: {\n type: 'string',\n },\n indent: {\n type: 'object',\n additionalProperties: false,\n properties: {\n top: dividerEnum,\n bottom: dividerEnum,\n },\n },\n};\n\nexport const TitleProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n resetMargin: {\n type: 'boolean',\n },\n },\n};\n\nexport const ButtonBlock = {\n type: 'object',\n additionalProperties: false,\n properties: ButtonProps,\n if: {\n properties: {\n theme: {\n enum: ['app-store', 'google-play'],\n },\n },\n },\n then: {\n required: ['url'],\n },\n else: {\n required: ['text', 'url'],\n },\n};\n\nconst IframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'string',\n },\n name: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n height: {\n type: 'number',\n },\n width: {\n type: 'number',\n },\n },\n};\n\nexport const MediaProps = {\n color: {\n type: 'string',\n },\n image: {\n oneOf: [\n {...ImageProps, optionName: 'single'},\n {type: 'array', items: ImageProps, optionName: 'list'},\n ],\n },\n disableImageSliderForArrayInput: {\n type: 'boolean',\n },\n video: VideoProps,\n youtube: {\n type: 'string',\n },\n videoIframe: {\n type: 'string',\n },\n autoplay: {\n type: 'boolean',\n },\n parallax: {\n type: 'boolean',\n },\n height: {\n type: 'number',\n },\n previewImg: {\n type: 'string',\n },\n dataLens: DataLensProps,\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n anyOf: [AnalyticsEventSchema, {type: 'array', items: AnalyticsEventSchema}],\n },\n ratio: {\n type: ['number', 'string'],\n pattern: '^auto$',\n },\n iframe: {\n ...IframeProps,\n },\n margins: {\n type: 'boolean',\n },\n};\n\nexport const YMapMarkerLabel = {\n type: 'object',\n required: [],\n properties: {\n iconCaption: {\n type: 'string',\n },\n iconContent: {\n type: 'string',\n },\n iconColor: {\n type: 'string',\n },\n preset: {\n type: 'string',\n },\n },\n};\n\nexport const YMapMarker = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n coordinate: {\n type: 'array',\n items: {type: 'number'},\n },\n address: {\n type: 'string',\n },\n label: YMapMarkerLabel,\n },\n};\n\nexport const MapProps = {\n zoom: {\n type: 'number',\n },\n address: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n markers: {\n type: 'array',\n items: YMapMarker,\n },\n};\n\nexport const BorderProps = {\n type: 'string',\n enum: ['line', 'shadow', 'none'],\n};\n\nexport const CardBase = {\n border: BorderProps,\n};\n\nexport const BlockHeaderProps = {\n title: {\n oneOf: [\n {\n type: 'string',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["schema/validators/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,KAAK,GACR,8BAAqB;AAEtB,OAAO,EAAC,oBAAoB,EAAC,mBAAgB;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU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;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,KAAK,EAAE;QACH,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,MAAM;aACrB;4CAEM,UAAU,KACb,UAAU,EAAE,SAAS;SAE5B;KACJ;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,UAAU;KACxB;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n CustomControlsButtonPositioning,\n CustomControlsType,\n MediaVideoControlsType,\n QuoteType,\n Theme,\n} from '../../models';\n\nimport {AnalyticsEventSchema} from './event';\n\nexport const mediaDirection = ['media-content', 'content-media'];\nexport const textSize = ['s', 'm', 'l'];\nexport const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];\nexport const sliderSizesArray = ['sm', 'md', 'lg', 'xl'];\nexport const contentSizes = ['s', 'm', 'l'];\nexport const contentTextWidth = ['s', 'm', 'l'];\n\nexport const videoTypes = ['default', 'player'];\nexport const playIconTypes = ['default', 'text'];\nexport const playIconThemes = ['blue', 'grey'];\nexport const videoControlsTypes = [MediaVideoControlsType.Default, MediaVideoControlsType.Custom];\nexport const fileLinkTypes = ['vertical', 'horizontal'];\n\nexport const dividerEnum = {enum: ['0', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']};\nexport const sizeNumber = {type: 'number', maximum: 12, minimum: 1};\nexport const contentThemes = ['default', 'dark', 'light'];\nexport const quoteTypes = Object.values(QuoteType);\nexport const mediaView = ['fit', 'full'];\nexport const customControlsType = [\n CustomControlsType.WithMuteButton,\n CustomControlsType.WithPlayPauseButton,\n];\nexport const customControlsButtonPositioning = [\n CustomControlsButtonPositioning.Center,\n CustomControlsButtonPositioning.Left,\n CustomControlsButtonPositioning.Right,\n];\n\nexport const BaseProps = {\n type: {},\n when: {\n type: 'string',\n },\n};\n\nexport const CardLayoutProps = {\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n};\n\nexport const containerSizesObject = {\n type: 'object',\n additionalProperties: false,\n properties: containerSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n};\n\nexport const sliderSizesObject = {\n oneOf: [\n {\n type: 'object',\n additionalProperties: false,\n properties: sliderSizesArray.reduce((acc, size) => ({...acc, [size]: sizeNumber}), {}),\n optionName: 'custom',\n },\n {\n type: 'number',\n optionName: 'constant',\n },\n ],\n};\n\nexport const AnimatableProps = {\n animated: {\n type: 'boolean',\n },\n};\n\nexport const ChildrenProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/children'},\n};\n\nexport const ChildrenCardsProps = {\n type: 'array',\n items: {$ref: 'self#/definitions/cards'},\n};\n\nexport const LoopProps = {\n type: 'object',\n additionalProperties: false,\n required: ['start'],\n properties: {\n start: {\n type: 'number',\n },\n end: {\n type: 'number',\n },\n },\n};\n\nexport const PlayButtonProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: playIconTypes,\n },\n theme: {\n type: 'string',\n enum: playIconThemes,\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport const CustomControlsOptionsProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n type: {\n type: 'string',\n enum: customControlsType,\n },\n muteButtonShown: {\n type: 'boolean',\n },\n positioning: {\n type: 'string',\n enum: customControlsButtonPositioning,\n },\n },\n};\n\nexport const VideoProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n loop: {\n oneOf: [\n {\n ...LoopProps,\n optionName: 'options',\n },\n {\n type: 'boolean',\n optionName: 'enabled',\n },\n ],\n },\n type: {\n type: 'string',\n enum: videoTypes,\n },\n muted: {\n type: 'boolean',\n },\n autoplay: {\n type: 'boolean',\n },\n elapsedTime: {\n type: 'number',\n },\n playButton: PlayButtonProps,\n controls: {\n type: 'string',\n enum: videoControlsTypes,\n },\n customControlsOptions: CustomControlsOptionsProps,\n ariaLabel: {\n type: 'string',\n },\n contain: {\n type: 'boolean',\n },\n },\n};\n\nexport const ThemeProps = {\n type: 'string',\n enum: ['light', 'dark'],\n};\n\nexport const JustifyProps = {\n type: 'string',\n enum: ['start', 'center', 'end'],\n};\n\nexport const DataLensObjectProps = {\n type: 'object',\n additionalProperties: false,\n required: ['id'],\n properties: {\n id: {\n type: 'string',\n },\n theme: ThemeProps,\n },\n};\n\nexport const DataLensProps = {\n oneOf: [\n {\n type: 'string',\n optionName: 'id',\n },\n {\n ...DataLensObjectProps,\n optionName: 'options',\n },\n ],\n};\n\nexport const BackgroundProps = {\n additionalProperties: false,\n properties: {\n ...AnimatableProps,\n image: ImageProps,\n color: {\n type: 'string',\n },\n video: VideoProps,\n height: {\n type: 'number',\n },\n size: {\n type: 'string',\n enum: ['contain', 'cover'],\n },\n parallax: {\n type: 'boolean',\n },\n fullWidthMedia: {\n type: 'boolean',\n },\n },\n};\n\nexport const LinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n ...BaseProps,\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n arrow: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: ['back', 'file-link', 'normal'],\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n\nexport const FileLinkProps = {\n type: 'object',\n additionalProperties: false,\n required: ['href', 'text'],\n properties: {\n href: {\n type: 'string',\n },\n text: {\n type: 'string',\n contentType: 'text',\n },\n type: {\n type: 'string',\n enum: fileLinkTypes,\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n },\n};\n\nexport const authorItem = {\n type: 'object',\n required: ['firstName', 'secondName'],\n properties: {\n firstName: {\n type: 'string',\n contentType: 'text',\n },\n secondName: {\n type: 'string',\n contentType: 'text',\n },\n avatar: ImageProps,\n description: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n};\n\nexport const ButtonProps = {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n primary: {\n type: 'boolean',\n },\n size: {\n type: 'string',\n enum: [\n 'xs', // deprecated, use 's'\n 'ns', // deprecated, use 's'\n 's',\n 'n', // deprecated, use 'l'\n 'm',\n 'l',\n 'xl',\n 'head', // deprecated, use 'l'\n 'promo', // deprecated, use 'xl'\n ],\n },\n theme: {\n type: 'string',\n enum: [\n 'normal',\n 'action',\n 'outlined',\n 'outlined-info',\n 'outlined-danger',\n 'raised',\n 'flat',\n 'flat-info',\n 'flat-danger',\n 'flat-secondary',\n 'clear',\n 'normal-contrast',\n 'outlined-contrast',\n 'flat-contrast',\n 'link', // deprecated, use 'outlined-info'\n 'pseudo', // deprecated, use 'outlined'\n 'pseudo-special', // deprecated, use 'outlined-contrast'\n 'websearch', // deprecated, use 'action'\n 'normal-dark', // deprecated, use 'outlined-contrast'\n 'normal-special', // deprecated, use 'normal-contrast'\n 'accent', // deprecated, use 'action'\n 'dark-grey', // deprecated, use 'github'\n 'app-store',\n 'google-play',\n 'scale',\n 'github',\n 'monochrome',\n ],\n },\n img: {\n oneOf: [\n {\n type: 'string',\n optionName: 'url',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: ['data'],\n properties: {\n data: {\n type: 'string',\n },\n position: {\n type: 'string',\n enum: ['left', 'right'],\n },\n alt: {\n type: 'string',\n contentType: 'text',\n },\n },\n optionName: 'options',\n },\n ],\n },\n analyticsEvents: {\n oneOf: [\n {...AnalyticsEventSchema, optionName: 'single'},\n {type: 'array', items: AnalyticsEventSchema, optionName: 'list'},\n ],\n },\n target: {\n type: 'string',\n enum: ['_self', '_blank', '_parent', '_top'],\n },\n width: {\n type: 'string',\n enum: ['auto', 'max'],\n },\n};\n\nexport const MenuProps = {\n type: 'object',\n additionalProperties: false,\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n },\n};\n\nexport function withTheme<T extends object>(value: T) {\n return {\n oneOf: [\n {\n ...value,\n optionName: 'no theme',\n },\n {\n type: 'object',\n additionalProperties: false,\n required: [Theme.Light],\n properties: Object.values(Theme).reduce(\n (result, themeName) => ({\n ...result,\n [themeName]: value,\n }),\n {},\n ),\n optionName: 'themes',\n },\n ],\n };\n}\n\nexport const AnchorProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'url'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n};\n\nexport const BlockBaseProps = {\n ...BaseProps,\n anchor: AnchorProps,\n visible: {\n type: 'string',\n enum: containerSizesArray,\n },\n resetPaddings: {\n type: 'boolean',\n },\n context: {\n type: 'string',\n },\n indent: {\n type: 'object',\n additionalProperties: false,\n properties: {\n top: dividerEnum,\n bottom: dividerEnum,\n },\n },\n};\n\nexport const TitleProps = {\n type: 'object',\n additionalProperties: false,\n required: ['text'],\n properties: {\n text: {\n type: 'string',\n contentType: 'text',\n },\n textSize: {\n type: 'string',\n enum: textSize,\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n resetMargin: {\n type: 'boolean',\n },\n },\n};\n\nexport const ButtonBlock = {\n type: 'object',\n additionalProperties: false,\n properties: ButtonProps,\n if: {\n properties: {\n theme: {\n enum: ['app-store', 'google-play'],\n },\n },\n },\n then: {\n required: ['url'],\n },\n else: {\n required: ['text', 'url'],\n },\n};\n\nconst IframeProps = {\n type: 'object',\n additionalProperties: false,\n required: ['src'],\n properties: {\n src: {\n type: 'string',\n },\n name: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n height: {\n type: 'number',\n },\n width: {\n type: 'number',\n },\n },\n};\n\nexport const MediaProps = {\n color: {\n type: 'string',\n },\n image: {\n oneOf: [\n {...ImageProps, optionName: 'single'},\n {type: 'array', items: ImageProps, optionName: 'list'},\n ],\n },\n disableImageSliderForArrayInput: {\n type: 'boolean',\n },\n video: VideoProps,\n youtube: {\n type: 'string',\n },\n videoIframe: {\n type: 'string',\n },\n autoplay: {\n type: 'boolean',\n },\n parallax: {\n type: 'boolean',\n },\n height: {\n type: 'number',\n },\n previewImg: {\n type: 'string',\n },\n dataLens: DataLensProps,\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n anyOf: [AnalyticsEventSchema, {type: 'array', items: AnalyticsEventSchema}],\n },\n ratio: {\n type: ['number', 'string'],\n pattern: '^auto$',\n },\n iframe: {\n ...IframeProps,\n },\n margins: {\n type: 'boolean',\n },\n};\n\nexport const YMapMarkerLabel = {\n type: 'object',\n required: [],\n properties: {\n iconCaption: {\n type: 'string',\n },\n iconContent: {\n type: 'string',\n },\n iconColor: {\n type: 'string',\n },\n preset: {\n type: 'string',\n },\n },\n};\n\nexport const YMapMarker = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n coordinate: {\n type: 'array',\n items: {type: 'number'},\n },\n address: {\n type: 'string',\n },\n label: YMapMarkerLabel,\n },\n};\n\nexport const MapProps = {\n zoom: {\n type: 'number',\n },\n address: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n markers: {\n type: 'array',\n items: YMapMarker,\n },\n};\n\nexport const BorderProps = {\n type: 'string',\n enum: ['line', 'shadow', 'none'],\n};\n\nexport const CardBase = {\n border: BorderProps,\n};\n\nexport const BlockHeaderProps = {\n title: {\n oneOf: [\n {\n type: 'string',\n optionName: 'text',\n },\n {\n ...TitleProps,\n optionName: 'options',\n },\n ],\n },\n description: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import omit from
|
|
1
|
+
import omit from "lodash/omit.js";
|
|
2
2
|
import { ImageObjectProps } from "../../components/Image/schema.js";
|
|
3
3
|
import { BaseProps, CardBase, CardLayoutProps, withTheme } from "../../schema/validators/common.js";
|
|
4
4
|
import { AnalyticsEventSchema } from "../../schema/validators/event.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BackgroundCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,gBAAgB,EAAC,yCAAsC;AAC/D,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAC,0CAAuC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,iBAAiB,EAAE;QACf,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QAC3B,UAAU,4EACH,SAAS,GACT,QAAQ,GACR,eAAe,GACf,0BAA0B,KAC7B,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB,EACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB,EACD,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,EACvC,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB,EACD,aAAa,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;aAC9B,EACD,eAAe,EAAE;gBACb,KAAK,EAAE;oDAEI,oBAAoB,KACvB,UAAU,EAAE,QAAQ;oBAExB;wBACI,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,oBAAoB;wBAC3B,UAAU,EAAE,MAAM;qBACrB;iBACJ;aACJ,EACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageObjectProps} from '../../components/Image/schema';\nimport {BaseProps, CardBase, CardLayoutProps, withTheme} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../Content/schema';\n\nconst BackgroundCardContentProps = omit(ContentBase, ['size', 'controlPosition']);\n\nexport const BackgroundCard = {\n 'background-card': {\n additionalProperties: false,\n required: ['title', 'text'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BackgroundCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n background: withTheme(ImageObjectProps),\n backgroundColor: {\n type: 'string',\n },\n paddingBottom: {\n type: 'string',\n enum: ['s', 'm', 'l', 'xl'],\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n },\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.pc-banner-card__subtitle p, .pc-banner-card__subtitle, .pc-banner-card__title {
|
|
1
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle p, .pc-banner-card__subtitle.pc-banner-card__subtitle, .pc-banner-card__title.pc-banner-card__title {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -16,31 +16,35 @@ unpredictable css rules order in build */
|
|
|
16
16
|
color: var(--g-color-text-light-primary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pc-banner-
|
|
19
|
+
.pc-banner-card__text {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
}
|
|
22
|
+
.pc-banner-card__title.pc-banner-card__title {
|
|
20
23
|
font-size: var(--g-text-display-2-font-size);
|
|
21
24
|
line-height: var(--g-text-display-2-line-height);
|
|
22
25
|
color: var(--pc-text-header-color);
|
|
23
26
|
font-weight: var(--g-text-accent-font-weight);
|
|
24
27
|
}
|
|
25
28
|
@media (max-width: 576px) {
|
|
26
|
-
.pc-banner-card__title {
|
|
29
|
+
.pc-banner-card__title.pc-banner-card__title {
|
|
27
30
|
font-size: var(--g-text-display-1-font-size);
|
|
28
31
|
line-height: var(--g-text-display-1-line-height);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
.pc-banner-card__title a {
|
|
34
|
+
.pc-banner-card__title.pc-banner-card__title a {
|
|
32
35
|
outline: none;
|
|
33
36
|
color: var(--g-color-text-link);
|
|
34
37
|
text-decoration: none;
|
|
35
38
|
cursor: pointer;
|
|
36
39
|
}
|
|
37
|
-
.utilityfocus .pc-banner-card__title a:focus {
|
|
40
|
+
.utilityfocus .pc-banner-card__title.pc-banner-card__title a:focus {
|
|
38
41
|
outline: 2px solid #ffdb4d;
|
|
39
42
|
}
|
|
40
|
-
.pc-banner-card__title a:hover, .pc-banner-card__title a:active {
|
|
43
|
+
.pc-banner-card__title.pc-banner-card__title a:hover, .pc-banner-card__title.pc-banner-card__title a:active {
|
|
41
44
|
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
42
45
|
color: var(--g-color-text-link-hover);
|
|
43
46
|
}
|
|
47
|
+
|
|
44
48
|
.pc-banner-card__content {
|
|
45
49
|
width: 100%;
|
|
46
50
|
border-radius: var(--pc-border-radius);
|
|
@@ -56,8 +60,9 @@ unpredictable css rules order in build */
|
|
|
56
60
|
justify-content: space-between;
|
|
57
61
|
flex-direction: column;
|
|
58
62
|
align-items: baseline;
|
|
63
|
+
max-width: 100%;
|
|
59
64
|
}
|
|
60
|
-
.pc-banner-card__subtitle {
|
|
65
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle {
|
|
61
66
|
display: inline-block;
|
|
62
67
|
margin-top: 8px;
|
|
63
68
|
font-size: var(--g-text-body-3-font-size);
|
|
@@ -66,13 +71,14 @@ unpredictable css rules order in build */
|
|
|
66
71
|
font-weight: var(--g-text-accent-font-weight);
|
|
67
72
|
font-weight: normal;
|
|
68
73
|
}
|
|
69
|
-
.pc-banner-card__subtitle p {
|
|
74
|
+
.pc-banner-card__subtitle.pc-banner-card__subtitle p {
|
|
70
75
|
font-size: var(--g-text-body-3-font-size);
|
|
71
76
|
line-height: var(--g-text-body-3-line-height);
|
|
72
77
|
color: var(--pc-text-header-color);
|
|
73
78
|
font-weight: var(--g-text-accent-font-weight);
|
|
74
79
|
font-weight: normal;
|
|
75
80
|
}
|
|
81
|
+
|
|
76
82
|
.pc-banner-card__button.pc-banner-card__button {
|
|
77
83
|
margin-top: 28px;
|
|
78
84
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BackgroundImage, Button,
|
|
2
|
+
import { BackgroundImage, Button, RouterLink, YFMWrapper } from "../../components/index.js";
|
|
3
3
|
import { useTheme } from "../../context/theme/index.js";
|
|
4
4
|
import { block, getThemedValue } from "../../utils/index.js";
|
|
5
5
|
import './BannerCard.css';
|
|
@@ -11,7 +11,9 @@ export const BannerCard = (props) => {
|
|
|
11
11
|
if (color) {
|
|
12
12
|
contentStyle.backgroundColor = getThemedValue(color, theme);
|
|
13
13
|
}
|
|
14
|
-
return (_jsx("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: _jsxs("div", { className: b('content'), style: contentStyle, children: [_jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('text'), children: [_jsx(
|
|
14
|
+
return (_jsx("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: _jsxs("div", { className: b('content'), style: contentStyle, children: [_jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('text'), children: [_jsx(YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
|
|
15
|
+
constructor: true,
|
|
16
|
+
} }), subtitle && (_jsx(YFMWrapper, { contentClassName: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && (_jsx(RouterLink, { href: url, children: _jsx(Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text !== null && text !== void 0 ? text : '', url: url, target: target }) }))] }), _jsx(BackgroundImage, { className: b('image'), src: getThemedValue(image, theme), disableCompress: disableCompress })] }) }));
|
|
15
17
|
};
|
|
16
18
|
export default BannerCard;
|
|
17
19
|
//# sourceMappingURL=BannerCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAC,kCAAyB;AACjF,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,Q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M,GAChB,GACO,CAChB,IACC,EACN,KAAC,eAAe,IACZ,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACjC,eAAe,EAAE,eAAe,GAClC,IACA,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import {BackgroundImage, Button, RouterLink, YFMWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BannerCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './BannerCard.scss';\n\nconst b = block('banner-card');\n\nexport const BannerCard = (props: BannerCardProps) => {\n const {\n title,\n subtitle,\n button: {url, text, target, theme: buttonTheme = 'raised'} = {},\n color,\n theme: textTheme = 'light',\n image,\n disableCompress,\n mediaView = 'full',\n } = props;\n const theme = useTheme();\n const contentStyle: Record<string, string> = {};\n\n if (color) {\n contentStyle.backgroundColor = getThemedValue(color, theme);\n }\n\n return (\n <div className={b({theme: textTheme, ['media-view']: mediaView})}>\n <div className={b('content')} style={contentStyle}>\n <div className={b('info')}>\n <div className={b('text')}>\n <YFMWrapper\n tagName=\"h2\"\n contentClassName={b('title')}\n content={title}\n modifiers={{\n constructor: true,\n }}\n />\n {subtitle && (\n <YFMWrapper\n contentClassName={b('subtitle')}\n content={subtitle}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n\n {url && (\n <RouterLink href={url}>\n <Button\n className={b('button')}\n theme={buttonTheme}\n size=\"xl\"\n text={text ?? ''}\n url={url}\n target={target}\n />\n </RouterLink>\n )}\n </div>\n <BackgroundImage\n className={b('image')}\n src={getThemedValue(image, theme)}\n disableCompress={disableCompress}\n />\n </div>\n </div>\n );\n};\n\nexport default BannerCard;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import omit from
|
|
1
|
+
import omit from "lodash/omit.js";
|
|
2
2
|
import { ImageProps } from "../../components/Image/schema.js";
|
|
3
3
|
import { BaseProps, CardBase, CardLayoutProps } from "../../schema/validators/common.js";
|
|
4
4
|
import { ContentBase } from "../Content/schema.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/BasicCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAC,0CAAuC;AACpF,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,4EACH,SAAS,GACT,QAAQ,GACR,eAAe,GACf,qBAAqB,KACxB,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB,EACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB,EACD,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;aAC/C,EACD,YAAY,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;aACxB,EACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;aAC9B,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {ImageProps} from '../../components/Image/schema';\nimport {BaseProps, CardBase, CardLayoutProps} from '../../schema/validators/common';\nimport {ContentBase} from '../Content/schema';\n\nconst BasicCardContentProps = omit(ContentBase, ['size', 'theme', 'controlPosition']);\n\nexport const BasicCard = {\n 'basic-card': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...BasicCardContentProps,\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n icon: ImageProps,\n target: {\n type: 'string',\n enum: ['_blank', '_parent', '_top', '_self'],\n },\n iconPosition: {\n type: 'string',\n enum: ['top', 'left'],\n },\n controlPosition: {\n type: 'string',\n enum: ['content', 'footer'],\n },\n },\n },\n};\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.pc-content_size_l .pc-content__text .yfm,
|
|
2
|
-
.pc-content_size_l .pc-content__notice .yfm
|
|
2
|
+
.pc-content_size_l .pc-content__notice .yfm, .pc-content_size_m .pc-content__text .yfm,
|
|
3
|
+
.pc-content_size_m .pc-content__notice .yfm {
|
|
3
4
|
margin: 0;
|
|
4
5
|
}
|
|
5
6
|
|
|
@@ -37,6 +38,9 @@ unpredictable css rules order in build */
|
|
|
37
38
|
text-align: center;
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
.pc-content_centered .pc-content__list {
|
|
42
|
+
margin-inline: auto;
|
|
43
|
+
}
|
|
40
44
|
.pc-content_centered .pc-content__buttons {
|
|
41
45
|
justify-content: center;
|
|
42
46
|
}
|
|
@@ -52,8 +56,7 @@ unpredictable css rules order in build */
|
|
|
52
56
|
.pc-content_centered .pc-content__text .yfm ol {
|
|
53
57
|
text-align: left;
|
|
54
58
|
}
|
|
55
|
-
.pc-content_size_s .pc-content__text
|
|
56
|
-
.pc-content_size_s .pc-content__notice {
|
|
59
|
+
.pc-content_size_s .pc-content__text {
|
|
57
60
|
margin-top: 8px;
|
|
58
61
|
}
|
|
59
62
|
.pc-content_size_s .pc-content__text_without-title {
|
|
@@ -61,11 +64,44 @@ unpredictable css rules order in build */
|
|
|
61
64
|
}
|
|
62
65
|
.pc-content_size_s .pc-content__list,
|
|
63
66
|
.pc-content_size_s .pc-content__links,
|
|
64
|
-
.pc-content_size_s .pc-
|
|
67
|
+
.pc-content_size_s .pc-content__notice {
|
|
65
68
|
margin-top: 16px;
|
|
66
69
|
}
|
|
67
|
-
.pc-
|
|
68
|
-
|
|
70
|
+
.pc-content_size_s .pc-content__buttons {
|
|
71
|
+
margin-top: 20px;
|
|
72
|
+
}
|
|
73
|
+
.pc-content_size_s .pc-content__notice .yfm {
|
|
74
|
+
font-size: var(--g-text-body-1-font-size);
|
|
75
|
+
line-height: var(--g-text-body-1-line-height);
|
|
76
|
+
}
|
|
77
|
+
.pc-content_size_m .pc-content__text {
|
|
78
|
+
margin-top: 12px;
|
|
79
|
+
}
|
|
80
|
+
.pc-content_size_m .pc-content__text_without-title {
|
|
81
|
+
margin-top: 0;
|
|
82
|
+
}
|
|
83
|
+
.pc-content_size_m .pc-content__text .yfm,
|
|
84
|
+
.pc-content_size_m .pc-content__notice .yfm {
|
|
85
|
+
font-size: var(--g-text-body-3-font-size);
|
|
86
|
+
line-height: var(--g-text-body-3-line-height);
|
|
87
|
+
}
|
|
88
|
+
.pc-content_size_m .pc-content__text .yfm {
|
|
89
|
+
font-size: var(--g-text-body-3-font-size);
|
|
90
|
+
line-height: var(--g-text-body-3-line-height);
|
|
91
|
+
}
|
|
92
|
+
.pc-content_size_m .pc-content__notice .yfm {
|
|
93
|
+
font-size: var(--g-text-body-2-font-size);
|
|
94
|
+
line-height: var(--g-text-body-2-line-height);
|
|
95
|
+
}
|
|
96
|
+
.pc-content_size_m .pc-content__list,
|
|
97
|
+
.pc-content_size_m .pc-content__links,
|
|
98
|
+
.pc-content_size_m .pc-content__notice {
|
|
99
|
+
margin-top: 20px;
|
|
100
|
+
}
|
|
101
|
+
.pc-content_size_m .pc-content__buttons {
|
|
102
|
+
margin-top: 24px;
|
|
103
|
+
}
|
|
104
|
+
.pc-content_size_l .pc-content__text {
|
|
69
105
|
margin-top: 12px;
|
|
70
106
|
}
|
|
71
107
|
.pc-content_size_l .pc-content__text_without-title {
|
|
@@ -76,78 +112,91 @@ unpredictable css rules order in build */
|
|
|
76
112
|
font-size: var(--g-text-body-3-font-size);
|
|
77
113
|
line-height: var(--g-text-body-3-line-height);
|
|
78
114
|
}
|
|
115
|
+
.pc-content_size_l .pc-content__text .yfm {
|
|
116
|
+
font-size: var(--g-text-body-3-font-size);
|
|
117
|
+
line-height: var(--g-text-body-3-line-height);
|
|
118
|
+
}
|
|
119
|
+
.pc-content_size_l .pc-content__notice .yfm {
|
|
120
|
+
font-size: var(--g-text-body-2-font-size);
|
|
121
|
+
line-height: var(--g-text-body-2-line-height);
|
|
122
|
+
}
|
|
79
123
|
.pc-content_size_l .pc-content__list,
|
|
80
124
|
.pc-content_size_l .pc-content__links,
|
|
125
|
+
.pc-content_size_l .pc-content__notice {
|
|
126
|
+
margin-top: 20px;
|
|
127
|
+
}
|
|
81
128
|
.pc-content_size_l .pc-content__buttons {
|
|
82
129
|
margin-top: 24px;
|
|
83
130
|
}
|
|
84
|
-
.pc-content_theme_dark {
|
|
131
|
+
.pc-content_theme_dark.pc-content_theme_dark {
|
|
85
132
|
--g-color-line-focus: var(--pc-color-line-focus-dark);
|
|
86
133
|
}
|
|
87
|
-
.pc-content_theme_dark .pc-content__title *,
|
|
88
|
-
.pc-content_theme_dark .pc-content__text .yfm,
|
|
89
|
-
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
90
|
-
.pc-content_theme_dark .pc-content__links a {
|
|
134
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title *,
|
|
135
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm,
|
|
136
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm *,
|
|
137
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__links a {
|
|
91
138
|
color: var(--g-color-text-light-primary);
|
|
92
139
|
}
|
|
93
|
-
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
94
|
-
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
140
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm,
|
|
141
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
95
142
|
color: var(--g-color-text-light-secondary);
|
|
96
143
|
}
|
|
97
|
-
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
144
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
98
145
|
color: var(--g-color-text-light-secondary);
|
|
99
146
|
text-decoration: underline;
|
|
100
147
|
}
|
|
101
|
-
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
148
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
102
149
|
color: var(--g-color-text-light-primary);
|
|
103
150
|
}
|
|
104
|
-
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
151
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a {
|
|
105
152
|
color: var(--g-color-text-light-primary);
|
|
106
153
|
text-decoration: underline;
|
|
107
154
|
}
|
|
108
|
-
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
155
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
109
156
|
color: var(--g-color-text-light-secondary);
|
|
110
157
|
}
|
|
111
|
-
.pc-content_theme_dark .pc-content__title a {
|
|
158
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a {
|
|
112
159
|
color: var(--g-color-text-light-primary);
|
|
113
160
|
text-decoration: underline;
|
|
114
161
|
text-decoration: none;
|
|
115
162
|
}
|
|
116
|
-
.pc-content_theme_dark .pc-content__title a:hover {
|
|
163
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a:hover {
|
|
117
164
|
color: var(--g-color-text-light-secondary);
|
|
118
165
|
}
|
|
119
|
-
|
|
120
|
-
.pc-content_theme_light .pc-
|
|
121
|
-
.pc-content_theme_light .pc-content__text .yfm
|
|
122
|
-
.pc-content_theme_light .pc-
|
|
166
|
+
|
|
167
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title *,
|
|
168
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm,
|
|
169
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm *,
|
|
170
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__links a {
|
|
123
171
|
color: var(--g-color-text-dark-primary);
|
|
124
172
|
}
|
|
125
|
-
.pc-content_theme_light .pc-content__notice .yfm,
|
|
126
|
-
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
173
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm,
|
|
174
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm * {
|
|
127
175
|
color: var(--g-color-text-dark-secondary);
|
|
128
176
|
}
|
|
129
|
-
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
177
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a {
|
|
130
178
|
color: var(--g-color-text-dark-secondary);
|
|
131
179
|
text-decoration: underline;
|
|
132
180
|
}
|
|
133
|
-
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
181
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
134
182
|
color: var(--g-color-text-dark-primary);
|
|
135
183
|
}
|
|
136
|
-
.pc-content_theme_light .pc-content__text .yfm a {
|
|
184
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a {
|
|
137
185
|
color: var(--g-color-text-dark-primary);
|
|
138
186
|
text-decoration: underline;
|
|
139
187
|
}
|
|
140
|
-
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
188
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
141
189
|
color: var(--g-color-text-dark-secondary);
|
|
142
190
|
}
|
|
143
|
-
.pc-content_theme_light .pc-content__title a {
|
|
191
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a {
|
|
144
192
|
color: var(--g-color-text-dark-primary);
|
|
145
193
|
text-decoration: underline;
|
|
146
194
|
text-decoration: none;
|
|
147
195
|
}
|
|
148
|
-
.pc-content_theme_light .pc-content__title a:hover {
|
|
196
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a:hover {
|
|
149
197
|
color: var(--g-color-text-dark-secondary);
|
|
150
198
|
}
|
|
199
|
+
|
|
151
200
|
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
|
|
152
201
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
|
|
153
202
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
|
|
@@ -10,6 +10,8 @@ function getTextSize(size) {
|
|
|
10
10
|
switch (size) {
|
|
11
11
|
case 's':
|
|
12
12
|
return 's';
|
|
13
|
+
case 'm':
|
|
14
|
+
return 'sm';
|
|
13
15
|
case 'l':
|
|
14
16
|
default:
|
|
15
17
|
return 'm';
|
|
@@ -24,7 +26,7 @@ const Content = (props) => {
|
|
|
24
26
|
const hasTitle = Boolean(title);
|
|
25
27
|
const defaultTitleId = useUniqId();
|
|
26
28
|
const titleId = titleIdFromProps || defaultTitleId;
|
|
27
|
-
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId }) })), (list === null || list === void 0 ? void 0 : list.length) ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && (_jsx("div", { className: b('notice'), children: _jsx(YFMWrapper, { content: additionalInfo, modifiers: {
|
|
29
|
+
return (_jsxs(Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && (_jsx(Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && (_jsx("div", { className: b('text', { ['without-title']: !hasTitle }), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId, qa: qaAttributes.list }) })), (list === null || list === void 0 ? void 0 : list.length) ? (_jsx("div", { className: b('list'), children: _jsx(ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && (_jsx("div", { className: b('notice'), children: _jsx(YFMWrapper, { content: additionalInfo, modifiers: {
|
|
28
30
|
constructor: true,
|
|
29
31
|
'constructor-notice': true,
|
|
30
32
|
[`constructor-size-${size}`]: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,kCAAyB;AAChF,OAAO,EAAC,GAAG,EAAC,4BAAmB;
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAC,kCAAyB;AAChF,OAAO,EAAC,GAAG,EAAC,4BAAmB;AAS/B,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,EAAC,eA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C,OAAO,EAAE,EAAC,IAAI,EAAC,CAAC,EAC7B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,YAAY,CAAC,KAAK,EACtB,MAAM,EAAE,YAAY,CAAC,IAAI,GAC3B,CACL,EACA,OAAO,IAAI,CACR,KAAC,OAAO,IACJ,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,CAAC,EAC/B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,YAAY,CAAC,OAAO,EACxB,QAAQ,EAAE,YAAY,CAAC,MAAM,GAC/B,CACL,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {Buttons, ContentList, Links, Title, YFMWrapper} from '../../components';\nimport {Col} from '../../grid';\nimport {\n ClassNameProps,\n ContentBlockProps,\n ContentSize,\n TextSize,\n TitleItemProps,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block} from '../../utils';\nimport {getQaAttrubutes} from '../../utils/blocks';\n\nimport './Content.scss';\n\nconst b = block('content');\n\nfunction getTextSize(size: ContentSize): TextSize {\n switch (size) {\n case 's':\n return 's';\n case 'm':\n return 'sm';\n case 'l':\n default:\n return 'm';\n }\n}\n\nexport type ContentProps = ContentBlockProps & ClassNameProps & QAProps;\n\nconst Content = (props: ContentProps) => {\n const {\n title,\n titleId: titleIdFromProps,\n text,\n textId,\n additionalInfo,\n size = 'l',\n links,\n buttons,\n colSizes = {all: 12, sm: 8},\n centered,\n theme,\n className,\n list,\n qa,\n controlPosition,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['links', 'link', 'buttons', 'button', 'list']);\n\n const titleProps =\n !title || typeof title === 'string'\n ? ({text: title, textSize: getTextSize(size)} as TitleItemProps)\n : title;\n\n const hasTitle = Boolean(title);\n const defaultTitleId = useUniqId();\n const titleId = titleIdFromProps || defaultTitleId;\n\n return (\n <Col\n className={b({size, centered, theme, 'control-position': controlPosition}, className)}\n reset\n sizes={colSizes}\n qa={qaAttributes.container}\n >\n {title && (\n <Title\n className={b('title')}\n title={titleProps}\n colSizes={{all: 12}}\n id={titleId}\n />\n )}\n {text && (\n <div className={b('text', {['without-title']: !hasTitle})}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true, [`constructor-size-${size}`]: true}}\n id={textId}\n qa={qaAttributes.list}\n />\n </div>\n )}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList list={list} size={size} qa={qaAttributes.list} theme={theme} />\n </div>\n ) : null}\n {additionalInfo && (\n <div className={b('notice')}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n 'constructor-notice': true,\n [`constructor-size-${size}`]: true,\n }}\n />\n </div>\n )}\n {links && (\n <Links\n className={b('links', {size})}\n size={size}\n links={links}\n titleId={titleId}\n qa={qaAttributes.links}\n linkQa={qaAttributes.link}\n />\n )}\n {buttons && (\n <Buttons\n className={b('buttons', {size})}\n size={size}\n buttons={buttons}\n titleId={titleId}\n qa={qaAttributes.buttons}\n buttonQa={qaAttributes.button}\n />\n )}\n </Col>\n );\n};\n\nexport default Content;\n"]}
|
|
@@ -27,6 +27,7 @@ unpredictable css rules order in build */
|
|
|
27
27
|
.pc-image-card .pc-image-card__content {
|
|
28
28
|
display: flex;
|
|
29
29
|
padding: 32px;
|
|
30
|
+
padding-bottom: 36px;
|
|
30
31
|
flex: auto;
|
|
31
32
|
}
|
|
32
33
|
.pc-image-card .pc-image-card__image_inner {
|
|
@@ -44,6 +45,7 @@ unpredictable css rules order in build */
|
|
|
44
45
|
}
|
|
45
46
|
.pc-image-card .pc-image-card__image_margins_m {
|
|
46
47
|
padding: 32px;
|
|
48
|
+
padding-bottom: 36px;
|
|
47
49
|
}
|
|
48
50
|
.pc-image-card .pc-image-card__image_margins_m .pc-image-card__image_inner {
|
|
49
51
|
border-radius: initial;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import omit from
|
|
1
|
+
import omit from "lodash/omit.js";
|
|
2
2
|
import { BaseProps, CardBase, CardLayoutProps } from "../../schema/validators/common.js";
|
|
3
3
|
import { ImageProps } from "../../schema/validators/components.js";
|
|
4
4
|
import { ContentBase } from "../Content/schema.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/ImageCard/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAC,0CAAuC;AACpF,OAAO,EAAC,UAAU,EAAC,8CAA2C;AAC9D,OAAO,EAAC,WAAW,EAAC,6BAA0B;AAE9C,MAAM,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAElG,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,YAAY,EAAE;QACV,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,4EACH,SAAS,GACT,QAAQ,GACR,eAAe,GACf,0BAA0B,KAC7B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;aAC9B,EACD,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aACnB,EACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;aACjB,EACD,GAAG,EAAE;gBACD,IAAI,EAAE,QAAQ;aACjB,EACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;aACjB,GACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {BaseProps, CardBase, CardLayoutProps} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {ContentBase} from '../Content/schema';\n\nconst ImageCardBlockContentProps = omit(ContentBase, ['centered', 'colSizes', 'controlPosition']);\n\nexport const ImageCard = {\n 'image-card': {\n additionalProperties: false,\n required: ['image'],\n properties: {\n ...BaseProps,\n ...CardBase,\n ...CardLayoutProps,\n ...ImageCardBlockContentProps,\n image: ImageProps,\n direction: {\n type: 'string',\n enum: ['direct', 'reverse'],\n },\n margins: {\n type: 'string',\n enum: ['s', 'm'],\n },\n backgroundColor: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n urlTitle: {\n type: 'string',\n },\n },\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import omit from
|
|
1
|
+
import omit from "lodash/omit.js";
|
|
2
2
|
import metaInfo from "../../components/MetaInfo/schema.js";
|
|
3
3
|
import { BaseProps, CardLayoutProps, MediaProps } from "../../schema/validators/common.js";
|
|
4
4
|
import { AnalyticsEventSchema } from "../../schema/validators/event.js";
|