@useblu/ocean-react 1.25.0 → 1.25.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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
+ ## [1.25.2](https://github.com/ocean-ds/ocean-web/compare/v1.25.1...v1.25.2) (2021-11-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ - enabling autoplay on carousel (boolean) ([#857](https://github.com/ocean-ds/ocean-web/issues/857)) ([d2648b7](https://github.com/ocean-ds/ocean-web/commit/d2648b7924ff42cd393cd57cbb340968ff61455b))
11
+
6
12
  # [1.25.0](https://github.com/ocean-ds/ocean-web/compare/v1.24.0...v1.25.0) (2021-11-05)
7
13
 
8
14
  ### Features
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export declare type CarouselProps = {
3
3
  columns?: 1 | 2 | 3 | 4 | 5 | null;
4
4
  infinite?: boolean;
5
+ autoplay?: boolean;
5
6
  } & React.ComponentPropsWithoutRef<'div'>;
6
7
  declare const Carousel: React.FC<CarouselProps>;
7
8
  export default Carousel;
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../src/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,oBAAY,aAAa,GAAG;IAK1B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAKnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwCrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../src/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,oBAAY,aAAa,GAAG;IAK1B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAKnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6CrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/index.es.js CHANGED
@@ -4866,24 +4866,28 @@ exports["default"] = _default;
4866
4866
  var Slider = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
4867
4867
 
4868
4868
  var Carousel = function (_a) {
4869
- var _b = _a.columns, columns = _b === void 0 ? 1 : _b, _c = _a.infinite, infinite = _c === void 0 ? false : _c, children = _a.children;
4869
+ var _b = _a.columns, columns = _b === void 0 ? 1 : _b, _c = _a.infinite, infinite = _c === void 0 ? false : _c, _d = _a.autoplay, autoplay = _d === void 0 ? false : _d, children = _a.children;
4870
4870
  var columnsAsNumber = Number(columns);
4871
4871
  var appendDots = function (dots) { return (e$1.createElement(CarouselDotList, { dots: dots })); };
4872
4872
  var settings = {
4873
4873
  dots: true,
4874
4874
  infinite: infinite,
4875
- speed: 500,
4875
+ speed: 1500,
4876
4876
  slidesToShow: columnsAsNumber,
4877
4877
  slidesToScroll: columnsAsNumber,
4878
4878
  prevArrow: e$1.createElement(Z, null),
4879
4879
  nextArrow: e$1.createElement(q$1, null),
4880
4880
  appendDots: appendDots,
4881
+ autoplay: autoplay,
4882
+ autoplaySpeed: 7000,
4881
4883
  responsive: [
4882
4884
  {
4883
4885
  breakpoint: 768,
4884
4886
  settings: {
4887
+ autoplay: false,
4885
4888
  slidesToShow: 1,
4886
4889
  slidesToScroll: 1,
4890
+ speed: 1500,
4887
4891
  },
4888
4892
  },
4889
4893
  ],