bear-react-carousel
Advanced tools
Comparing version 4.0.30 to 5.0.0-alpha.0
@@ -14,6 +14,6 @@ import Configurator from '../Configurator'; | ||
* @param movePx | ||
* @param startPosition | ||
* @param slideCurrWidth | ||
* @param elOffsetLeft | ||
* @param elOffsetWidth | ||
*/ | ||
export declare function getMovePercentage(movePx: number, startPosition: number, slideCurrWidth: number): number; | ||
export declare function getMovePercentage(movePx: number, elOffsetLeft: number, elOffsetWidth: number): number; | ||
/** | ||
@@ -20,0 +20,0 @@ * 從進度取得第幾個項目 |
@@ -1,2 +0,2 @@ | ||
import { RefObject, CSSProperties } from 'react'; | ||
import { RefObject, CSSProperties, ReactNode } from 'react'; | ||
import * as CSS from 'csstype'; | ||
@@ -28,3 +28,2 @@ import BearCarousel from './BearCarousel'; | ||
isDebug?: boolean; | ||
isSlideItemMemo?: boolean; | ||
isLazy?: boolean; | ||
@@ -60,5 +59,5 @@ renderLazyPreloader?: TRenderLazyPreloader; | ||
key: string | number; | ||
children: JSX.Element; | ||
children: ReactNode; | ||
} | ||
export type TBearSlideItemDataList = IBearSlideItemData[]; | ||
export type TBearSlideItemDataList = ReactNode[]; | ||
export type heightUnit = 'px' | '%' | 'em' | 'rem' | 'vh'; | ||
@@ -65,0 +64,0 @@ export type THeightUnitSize = 'auto' | `${number}${heightUnit}`; |
@@ -1,2 +0,2 @@ | ||
import { IBearCarouselProps, TBearSlideItemDataList } from './types'; | ||
import { IBearCarouselProps } from './types'; | ||
/** | ||
@@ -52,5 +52,4 @@ * 判斷是否為手機裝置 | ||
export declare function isPropsDiff(props: IBearCarouselProps, nextProps: IBearCarouselProps, exclude: string[]): boolean; | ||
export declare function isDataKeyDff(data?: TBearSlideItemDataList, nextData?: TBearSlideItemDataList): boolean; | ||
export declare function booleanToDataAttr(isTrue: boolean, returnValue?: number | string | boolean): string | undefined; | ||
export declare function getNextIndexByPercentage(percentage: number, checkMovePercentage: number): number; | ||
export declare function getPrevIndexByPercentage(percentage: number, checkMovePercentage: number): number; |
{ | ||
"name": "bear-react-carousel", | ||
"version": "4.0.30", | ||
"version": "5.0.0-alpha.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
135817
3610
2