bear-react-carousel
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
@@ -23,2 +23,3 @@ import * as React from 'react'; | ||
state: IState; | ||
_isError: boolean; | ||
_elementor: Elementor; | ||
@@ -74,2 +75,6 @@ _stater: Stater; | ||
/** | ||
* set OnAnimationEnd emit | ||
*/ | ||
private _onAnimationEnd; | ||
/** | ||
* set OnDragMove emit | ||
@@ -96,4 +101,4 @@ * @param percentage | ||
private _renderPagination; | ||
render(): import("react/jsx-runtime").JSX.Element; | ||
render(): import("react/jsx-runtime").JSX.Element | undefined; | ||
} | ||
export default BearCarousel; |
import Configurator from '../Configurator'; | ||
import Stater from '../Stater'; | ||
import Elementor from './Elementor'; | ||
import { TEventMap } from './types'; | ||
declare class ElState { | ||
@@ -9,2 +10,3 @@ _elementor: Elementor; | ||
private _isAnimation; | ||
private _eventor; | ||
constructor(manager: { | ||
@@ -17,2 +19,3 @@ configurator: Configurator; | ||
get isAnimation(): boolean; | ||
onAnimationEnd: (callBack?: TEventMap['animationEnd']) => void; | ||
onSlideAnimation: () => void; | ||
@@ -19,0 +22,0 @@ offSlideAnimation: () => void; |
@@ -0,3 +1,8 @@ | ||
import Stater from '../Stater'; | ||
import Elementor from './Elementor'; | ||
export interface IMultiRefObject<T> { | ||
current: T | null; | ||
} | ||
export type TEventMap = { | ||
animationEnd?: (starer: Stater, elementor: Elementor) => void; | ||
}; |
@@ -16,2 +16,3 @@ import { TEventMap, InitData } from './types'; | ||
activeIndex: number; | ||
prevActiveIndex: number; | ||
lastIndex: number; | ||
@@ -27,2 +28,3 @@ total: number; | ||
activeIndex: number; | ||
prevActiveIndex: number; | ||
lastIndex: number; | ||
@@ -29,0 +31,0 @@ total: number; |
@@ -5,2 +5,3 @@ import { RefObject, CSSProperties, ReactNode } from 'react'; | ||
import Controller from './manager/Controller'; | ||
import Elementor from './manager/Elementor'; | ||
export type TSlidesPerView = number | 'auto'; | ||
@@ -16,2 +17,3 @@ export type TSlidesPerViewActual = number; | ||
export type TOnSlideChange = (carouselState: ICarouselState) => void; | ||
export type TOnAnimationEnd = (carouselState: ICarouselState, elementor: Elementor) => void; | ||
export type TOnMount = () => void; | ||
@@ -35,2 +37,3 @@ export type GlobalWindow = Window & typeof globalThis; | ||
onSlideChange?: TOnSlideChange; | ||
onAnimationEnd?: TOnAnimationEnd; | ||
onMount?: TOnMount; | ||
@@ -41,2 +44,3 @@ } | ||
activeIndex: number; | ||
prevActiveIndex: number; | ||
lastIndex: number; | ||
@@ -47,2 +51,3 @@ total: number; | ||
activeIndex: number; | ||
prevActiveIndex: number; | ||
lastIndex: number; | ||
@@ -49,0 +54,0 @@ total: number; |
import { IBearCarouselProps } from './types'; | ||
import { ReactNode } from 'react'; | ||
/** | ||
@@ -55,1 +56,6 @@ * 判斷是否為手機裝置 | ||
export declare function getPrevIndexByPercentage(percentage: number, checkMovePercentage: number): number; | ||
/** | ||
* 檢查是否為正確的資料格式 | ||
* @param data | ||
*/ | ||
export declare function checkDataFormat(data?: ReactNode[]): boolean; |
{ | ||
"name": "bear-react-carousel", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0-alpha.1", | ||
"description": "Most modern mobile touch slider with hardware accelerated transitions for ReactJS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137991
3664