@preline/carousel
Advanced tools
Comparing version 2.0.2 to 2.1.0
export interface ICarouselOptions { | ||
currentIndex: number; | ||
loadingClasses?: string | string[]; | ||
isAutoPlay?: boolean; | ||
speed?: number; | ||
isInfiniteLoop?: boolean; | ||
} | ||
export interface ICarousel { | ||
options?: ICarouselOptions; | ||
recalculateWidth(): void; | ||
goToPrev(): void; | ||
goToNext(): void; | ||
goTo(i: number): void; | ||
} | ||
export interface IBasePlugin<O, E> { | ||
@@ -34,2 +21,16 @@ el: E; | ||
} | ||
export interface ICarouselOptions { | ||
currentIndex: number; | ||
loadingClasses?: string | string[]; | ||
isAutoPlay?: boolean; | ||
speed?: number; | ||
isInfiniteLoop?: boolean; | ||
} | ||
export interface ICarousel { | ||
options?: ICarouselOptions; | ||
recalculateWidth(): void; | ||
goToPrev(): void; | ||
goToNext(): void; | ||
goTo(i: number): void; | ||
} | ||
declare class HSCarousel extends HSBasePlugin<ICarouselOptions> implements ICarousel { | ||
@@ -36,0 +37,0 @@ private readonly inner; |
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}}(self,(()=>(()=>{"use strict";var t={737:(t,e)=>{ | ||
/* | ||
* HSBasePlugin | ||
* @version: 2.0.3 | ||
* @version: 2.1.0 | ||
* @author: HTMLStream | ||
@@ -12,3 +12,3 @@ * @license: Licensed under MIT (https://preline.co/docs/license.html) | ||
* HSCarousel | ||
* @version: 2.0.3 | ||
* @version: 2.1.0 | ||
* @author: HTMLStream | ||
@@ -15,0 +15,0 @@ * @license: Licensed under MIT (https://preline.co/docs/license.html) |
{ | ||
"name": "@preline/carousel", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11905
0