Skip to content

Commit

Permalink
Build files
Browse files Browse the repository at this point in the history
  • Loading branch information
YIZHUANG committed Mar 24, 2019
1 parent 4bdde52 commit b31dd6d
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 62 deletions.
12 changes: 9 additions & 3 deletions lib/Carousel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ declare class Carousel extends React.Component<CarouselProps, CarouselInternalSt
autoPlay?: any;
constructor(props: CarouselProps);
componentDidMount(): void;
setClones(slidesToShow: number, itemWidth?: number, forResizing?: boolean): void;
setItemsToShow(shouldCorrectItemPosition?: boolean): void;
setContainerAndItemWidth(slidesToShow: number, shouldCorrectItemPosition?: boolean): void;
correctItemsPosition(itemWidth: number): void;
onResize(): void;
componentDidUpdate({ keyBoardControl, autoPlay }: CarouselProps, { containerWidth }: CarouselInternalState): void;
resetAllItems(): void;
onResize(value?: any): void;
componentDidUpdate({ keyBoardControl, autoPlay }: CarouselProps, { containerWidth, domLoaded, isSliding }: CarouselInternalState): void;
correctClonesPosition({ domLoaded, isSliding }: {
domLoaded?: boolean;
isSliding?: boolean;
}): void;
next(slidesHavePassed?: number): void;
previous(slidesHavePassed?: number): void;
componentWillUnmount(): void;
Expand All @@ -33,6 +37,8 @@ declare class Carousel extends React.Component<CarouselProps, CarouselInternalSt
renderButtonGroups(): React.ReactElement<any> | null;
renderDotsList(): React.ReactElement<any>;
getIfSlideIsVisbile(index: number): boolean;
getServerSideState(): any;
renderCarouselItems(): any;
render(): React.ReactNode;
}
export default Carousel;
208 changes: 153 additions & 55 deletions lib/Carousel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Carousel.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ interface CarouselInternalState {
domLoaded: boolean;
deviceType?: string;
transform: number;
isSliding?: boolean;
clones: any[];
}
export { CarouselInternalState, CarouselProps, responsiveType, stateCallBack, buttonGroupCallBack };
18 changes: 16 additions & 2 deletions lib/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
import { responsiveType } from "./types";
import { responsiveType, CarouselInternalState } from "./types";
declare function guessWidthFromDeviceType(deviceType: string, responsive: responsiveType): number | string | undefined;
declare function getParitialVisibilityGutter(responsive: responsiveType, partialVisbile?: string | boolean, serverSideDeviceType?: string | undefined, clientSideDeviceType?: string | undefined): number | undefined;
export { guessWidthFromDeviceType, getParitialVisibilityGutter };
declare function getCounterPart(index: number, { slidesToShow }: {
slidesToShow: number;
}, childrenArr: any[]): number;
declare function getClones(slidesToShow: number, childrenArr: any[]): {
clones: any[];
initialSlide: number;
};
declare function whenEnteredClones({ currentSlide, slidesToShow, itemWidth, totalItems }: CarouselInternalState, childrenArr: any[]): {
hasEnterClonedAfter: boolean;
hasEnterClonedBefore: boolean;
nextSlide: number;
nextPosition: number;
};
declare const throttle: (func: any, limit: number) => any;
export { guessWidthFromDeviceType, getParitialVisibilityGutter, getClones, whenEnteredClones, throttle, getCounterPart };
81 changes: 81 additions & 0 deletions lib/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b31dd6d

Please sign in to comment.