@megafon/ui-shared 5.0.0 → 5.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.1](https://hq-gitlab.megafon.ru/site-portal/libraries/javascript/megafon-ui/compare/@megafon/ui-shared@5.0.0...@megafon/ui-shared@5.0.1) (2023-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **carouselbox:** fix default slidesSettings config ([ad87986](https://hq-gitlab.megafon.ru/site-portal/libraries/javascript/megafon-ui/commit/ad8798694ad1433a41938ca8489da93e99c2929d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [5.0.0](https://hq-gitlab.megafon.ru/site-portal/libraries/javascript/megafon-ui/compare/@megafon/ui-shared@4.21.2...@megafon/ui-shared@5.0.0) (2023-08-30)
7
18
 
8
19
 
@@ -3,7 +3,7 @@ import { Carousel } from '@megafon/ui-core';
3
3
  declare type CarouselPropsTypes = React.ComponentProps<typeof Carousel>;
4
4
  declare type DesktopSlidesPerView = 3 | 4;
5
5
  interface ICarouselBox extends CarouselPropsTypes {
6
- /** Количество видимых слайдов на разрешении 1024 и выше */
6
+ /** Количество видимых слайдов на разрешении 1280 и выше */
7
7
  desktopSlidesPerView?: DesktopSlidesPerView;
8
8
  }
9
9
  declare const CarouselBox: React.FC<ICarouselBox>;
@@ -30,6 +30,9 @@ var getDefaultSlideSettings = function getDefaultSlideSettings(desktopSlidesPerV
30
30
  slidesPerView: 2,
31
31
  spaceBetween: 20
32
32
  }), _defineProperty(_ref, breakpoints.DESKTOP_SMALL_START, {
33
+ slidesPerView: 3,
34
+ spaceBetween: 20
35
+ }), _defineProperty(_ref, breakpoints.DESKTOP_MIDDLE_START, {
33
36
  slidesPerView: desktopSlidesPerView,
34
37
  spaceBetween: 20
35
38
  }), _ref;
@@ -3,7 +3,7 @@ import { Carousel } from '@megafon/ui-core';
3
3
  declare type CarouselPropsTypes = React.ComponentProps<typeof Carousel>;
4
4
  declare type DesktopSlidesPerView = 3 | 4;
5
5
  interface ICarouselBox extends CarouselPropsTypes {
6
- /** Количество видимых слайдов на разрешении 1024 и выше */
6
+ /** Количество видимых слайдов на разрешении 1280 и выше */
7
7
  desktopSlidesPerView?: DesktopSlidesPerView;
8
8
  }
9
9
  declare const CarouselBox: React.FC<ICarouselBox>;
@@ -50,6 +50,9 @@ var getDefaultSlideSettings = function getDefaultSlideSettings(desktopSlidesPerV
50
50
  slidesPerView: 2,
51
51
  spaceBetween: 20
52
52
  }), (0, _defineProperty2["default"])(_ref, _uiHelpers.breakpoints.DESKTOP_SMALL_START, {
53
+ slidesPerView: 3,
54
+ spaceBetween: 20
55
+ }), (0, _defineProperty2["default"])(_ref, _uiHelpers.breakpoints.DESKTOP_MIDDLE_START, {
53
56
  slidesPerView: desktopSlidesPerView,
54
57
  spaceBetween: 20
55
58
  }), _ref;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -90,5 +90,5 @@
90
90
  "prop-types": "^15.7.2",
91
91
  "swiper": "^6.5.6"
92
92
  },
93
- "gitHead": "f708c8dfabef642ca1cc09e5026fd1ddf63e6c41"
93
+ "gitHead": "c69a92daeb0568c343f3ca3b0dc4b2ca6de338d7"
94
94
  }