mimir-ui-kit 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,13 @@
1
+ import { SwiperProps } from 'swiper/react';
1
2
 
2
3
  type TProps = {
4
+ delay?: number;
5
+ breakpoints?: SwiperProps['breakpoints'];
3
6
  images?: {
4
7
  image?: string;
5
8
  url?: string;
6
9
  id?: number;
7
10
  }[];
8
11
  };
9
- export declare const Slider: ({ images }: TProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Slider: ({ images, breakpoints, delay }: TProps) => import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -5186,7 +5186,7 @@ function Autoplay(_ref) {
5186
5186
  resume
5187
5187
  });
5188
5188
  }
5189
- const Slider = ({ images }) => {
5189
+ const Slider = ({ images, breakpoints: breakpoints2, delay = 3e3 }) => {
5190
5190
  const progressBar = useRef(null);
5191
5191
  const swiperRef = useRef(null);
5192
5192
  const [currentSlide, setCurrentSlide] = useState(1);
@@ -5215,8 +5215,9 @@ const Slider = ({ images }) => {
5215
5215
  className: cls.swiper,
5216
5216
  loop: true,
5217
5217
  centeredSlides: true,
5218
+ breakpoints: breakpoints2,
5218
5219
  autoplay: {
5219
- delay: 3e7,
5220
+ delay,
5220
5221
  disableOnInteraction: false
5221
5222
  },
5222
5223
  fadeEffect: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.1.7",
4
+ "version": "1.1.8",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {