Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 43fb611

Browse files
committed
Build and add files for immediate internal use
1 parent 5d252d7 commit 43fb611

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+319
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
.next
33
app
4-
lib
5-
deploy_key
4+
deploy_key

lib/Arrows.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as React from "react";
2+
import { StateCallBack } from "./types";
3+
interface LeftArrowProps {
4+
customLeftArrow?: React.ReactElement<any> | null;
5+
getState: () => StateCallBack;
6+
previous: () => void;
7+
}
8+
interface RightArrowProps {
9+
customRightArrow?: React.ReactElement<any> | null;
10+
getState: () => StateCallBack;
11+
next: () => void;
12+
}
13+
declare const LeftArrow: ({ customLeftArrow, getState, previous }: LeftArrowProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
14+
declare const RightArrow: ({ customRightArrow, next, getState }: RightArrowProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
15+
export { LeftArrow, RightArrow };

lib/Arrows.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Arrows.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Carousel.d.ts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import * as React from "react";
2+
import { CarouselInternalState, CarouselProps, StateCallBack, Direction, SkipCallbackOptions } from "./types";
3+
declare class Carousel extends React.Component<CarouselProps, CarouselInternalState> {
4+
static defaultProps: {
5+
slidesToSlide: number;
6+
infinite: boolean;
7+
draggable: boolean;
8+
swipeable: boolean;
9+
arrows: boolean;
10+
containerClass: string;
11+
sliderClass: string;
12+
itemClass: string;
13+
keyBoardControl: boolean;
14+
autoPlaySpeed: number;
15+
showDots: boolean;
16+
renderDotsOutside: boolean;
17+
renderButtonGroupOutside: boolean;
18+
minimumTouchDrag: number;
19+
className: string;
20+
dotListClass: string;
21+
focusOnSelect: boolean;
22+
centerMode: boolean;
23+
additionalTransfrom: number;
24+
};
25+
private readonly containerRef;
26+
private readonly listRef;
27+
onMove: boolean;
28+
initialX: number;
29+
lastX: number;
30+
isAnimationAllowed: boolean;
31+
direction: Direction;
32+
autoPlay?: any;
33+
isInThrottle?: boolean;
34+
initialY: number;
35+
private transformPlaceHolder;
36+
private itemsToShowTimeout;
37+
constructor(props: CarouselProps);
38+
resetTotalItems(): void;
39+
setIsInThrottle(isInThrottle?: boolean): void;
40+
setTransformDirectly(position: number, withAnimation?: boolean): void;
41+
setAnimationDirectly(animationAllowed?: boolean): void;
42+
componentDidMount(): void;
43+
setClones(slidesToShow: number, itemWidth?: number, forResizing?: boolean, resetCurrentSlide?: boolean): void;
44+
setItemsToShow(shouldCorrectItemPosition?: boolean, resetCurrentSlide?: boolean): void;
45+
setContainerAndItemWidth(slidesToShow: number, shouldCorrectItemPosition?: boolean, resetCurrentSlide?: boolean): void;
46+
correctItemsPosition(itemWidth: number, isAnimationAllowed?: boolean, setToDomDirectly?: boolean): void;
47+
onResize(value?: React.KeyboardEvent | boolean): void;
48+
componentDidUpdate({ keyBoardControl, autoPlay, children }: CarouselProps, { containerWidth, domLoaded, currentSlide }: CarouselInternalState): void;
49+
correctClonesPosition({ domLoaded }: {
50+
domLoaded?: boolean;
51+
}): void;
52+
next(slidesHavePassed?: number): void;
53+
previous(slidesHavePassed?: number): void;
54+
componentWillUnmount(): void;
55+
resetMoveStatus(): void;
56+
handleDown(e: React.MouseEvent | React.TouchEvent): void;
57+
handleMove(e: React.MouseEvent | React.TouchEvent): void;
58+
handleOut(e: React.MouseEvent | React.TouchEvent): void;
59+
onKeyUp(e: React.KeyboardEvent): void;
60+
handleEnter(): void;
61+
goToSlide(slide: number, skipCallbacks?: SkipCallbackOptions): void;
62+
getState(): StateCallBack;
63+
renderLeftArrow(): React.ReactNode;
64+
renderRightArrow(): React.ReactNode;
65+
renderButtonGroups(): React.ReactElement<any> | null;
66+
renderDotsList(): React.ReactElement<any> | null;
67+
renderCarouselItems(): JSX.Element;
68+
render(): React.ReactNode;
69+
}
70+
export default Carousel;

lib/Carousel.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Carousel.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/CarouselItems.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference types="react" />
2+
import { CarouselInternalState, CarouselProps, SkipCallbackOptions } from "./types";
3+
interface CarouselItemsProps {
4+
props: CarouselProps;
5+
state: CarouselInternalState;
6+
clones: any[];
7+
notEnoughChildren: boolean;
8+
goToSlide: (index: number, skipCallbacks?: SkipCallbackOptions) => void;
9+
}
10+
declare const CarouselItems: ({ props, state, goToSlide, clones, notEnoughChildren }: CarouselItemsProps) => JSX.Element | null;
11+
export default CarouselItems;

lib/CarouselItems.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/CarouselItems.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)