@gravity-ui/page-constructor 5.17.0 → 5.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,5 +9,5 @@ export interface SliderNewProps extends Omit<SliderParams, 'children'>, Partial<
9
9
  blockClassName?: string;
10
10
  arrowSize?: number;
11
11
  }
12
- export declare const SliderNewBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: PropsWithChildren<SliderNewProps>) => JSX.Element;
12
+ export declare const SliderNewBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: PropsWithChildren<SliderNewProps>) => JSX.Element;
13
13
  export default SliderNewBlock;
@@ -14,7 +14,7 @@ const useSlider_1 = require("./useSlider");
14
14
  require("swiper/swiper-bundle.css");
15
15
  const b = (0, utils_1.block)('SliderNewBlock');
16
16
  swiper_1.default.use([swiper_1.Autoplay, swiper_1.A11y, swiper_1.Pagination]);
17
- const SliderNewBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
17
+ const SliderNewBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
18
18
  const { childrenCount, breakpoints, autoplay, onSwiper, onPrev, onNext, isLocked, setIsLocked } = (0, useSlider_1.useSlider)({
19
19
  slidesToShow,
20
20
  children,
@@ -30,7 +30,7 @@ const SliderNewBlock = ({ animated, title, description, type, anchorId, arrows =
30
30
  anchorId && react_1.default.createElement(Anchor_1.default, { id: anchorId }),
31
31
  react_1.default.createElement(Title_1.default, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }),
32
32
  react_1.default.createElement(AnimateBlock_1.default, { className: b('animate-slides'), animate: animated },
33
- react_1.default.createElement(react_2.Swiper, { className: b('slider'), onSwiper: onSwiper, pagination: dots && {
33
+ react_1.default.createElement(react_2.Swiper, { className: b('slider', className), onSwiper: onSwiper, pagination: dots && {
34
34
  clickable: true,
35
35
  bulletClass: b('dot', dotsClassName),
36
36
  bulletActiveClass: b('dot_active'),
@@ -18,7 +18,7 @@ export declare const blockMap: {
18
18
  "map-block": ({ map, border, disableShadow, ...props }: import("./models").MapBlockProps) => JSX.Element;
19
19
  "filter-block": import("react").FC<import("./models").FilterBlockProps>;
20
20
  "form-block": import("react").FC<import("./models").FormBlockProps>;
21
- "slider-new-block": ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: import("react").PropsWithChildren<import("./blocks/SliderNew/Slider").SliderNewProps>) => JSX.Element;
21
+ "slider-new-block": ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: import("react").PropsWithChildren<import("./blocks/SliderNew/Slider").SliderNewProps>) => JSX.Element;
22
22
  };
23
23
  export declare const subBlockMap: {
24
24
  divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
@@ -58,6 +58,7 @@ unpredictable css rules order in build */
58
58
  .pc-price-card__price-value {
59
59
  font-size: var(--g-text-display-1-font-size);
60
60
  line-height: var(--g-text-display-1-line-height);
61
+ font-weight: var(--g-text-accent-font-weight);
61
62
  }
62
63
  .pc-price-card__price-period {
63
64
  margin-left: 4px;
@@ -10,5 +10,5 @@ export interface SliderNewProps extends Omit<SliderParams, 'children'>, Partial<
10
10
  blockClassName?: string;
11
11
  arrowSize?: number;
12
12
  }
13
- export declare const SliderNewBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: PropsWithChildren<SliderNewProps>) => JSX.Element;
13
+ export declare const SliderNewBlock: ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: PropsWithChildren<SliderNewProps>) => JSX.Element;
14
14
  export default SliderNewBlock;
@@ -11,7 +11,7 @@ import './Slider.css';
11
11
  import 'swiper/swiper-bundle.css';
12
12
  const b = block('SliderNewBlock');
13
13
  SwiperCore.use([Autoplay, A11y, Pagination]);
14
- export const SliderNewBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
14
+ export const SliderNewBlock = ({ animated, title, description, type, anchorId, arrows = true, adaptive, autoplay: autoplayMs, dots = true, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }) => {
15
15
  const { childrenCount, breakpoints, autoplay, onSwiper, onPrev, onNext, isLocked, setIsLocked } = useSlider({
16
16
  slidesToShow,
17
17
  children,
@@ -27,7 +27,7 @@ export const SliderNewBlock = ({ animated, title, description, type, anchorId, a
27
27
  anchorId && React.createElement(Anchor, { id: anchorId }),
28
28
  React.createElement(Title, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }),
29
29
  React.createElement(AnimateBlock, { className: b('animate-slides'), animate: animated },
30
- React.createElement(Swiper, { className: b('slider'), onSwiper: onSwiper, pagination: dots && {
30
+ React.createElement(Swiper, { className: b('slider', className), onSwiper: onSwiper, pagination: dots && {
31
31
  clickable: true,
32
32
  bulletClass: b('dot', dotsClassName),
33
33
  bulletActiveClass: b('dot_active'),
@@ -18,7 +18,7 @@ export declare const blockMap: {
18
18
  "map-block": ({ map, border, disableShadow, ...props }: import("./models").MapBlockProps) => JSX.Element;
19
19
  "filter-block": import("react").FC<import("./models").FilterBlockProps>;
20
20
  "form-block": import("react").FC<import("./models").FormBlockProps>;
21
- "slider-new-block": ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: import("react").PropsWithChildren<import("./blocks/SliderNew/Slider").SliderNewProps>) => JSX.Element;
21
+ "slider-new-block": ({ animated, title, description, type, anchorId, arrows, adaptive, autoplay: autoplayMs, dots, className, dotsClassName, disclaimer, children, blockClassName, arrowSize, slidesToShow, onSlideChange, onSlideChangeTransitionStart, onSlideChangeTransitionEnd, onActiveIndexChange, onBreakpoint, }: import("react").PropsWithChildren<import("./blocks/SliderNew/Slider").SliderNewProps>) => JSX.Element;
22
22
  };
23
23
  export declare const subBlockMap: {
24
24
  divider: ({ size, border }: import("./models").DividerProps) => JSX.Element;
@@ -58,6 +58,7 @@ unpredictable css rules order in build */
58
58
  .pc-price-card__price-value {
59
59
  font-size: var(--g-text-display-1-font-size);
60
60
  line-height: var(--g-text-display-1-line-height);
61
+ font-weight: var(--g-text-accent-font-weight);
61
62
  }
62
63
  .pc-price-card__price-period {
63
64
  margin-left: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.17.0",
3
+ "version": "5.17.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {