@sorocraft/ui 1.2.89 → 1.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Carousel/Carousel.d.ts +2 -16
- package/dist/components/Carousel/Carousel.types.d.ts +16 -0
- package/dist/components/Carousel/index.d.ts +3 -1
- package/dist/components/Carousel/store.d.ts +11 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { FlexProps } from "../Flex/Flex.types";
|
|
4
|
-
interface Props {
|
|
5
|
-
children: ReactNode[] | ReactElement[];
|
|
6
|
-
gap?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
enableNavigation?: boolean;
|
|
9
|
-
title?: string;
|
|
10
|
-
titleVariant?: TextProps["variant"];
|
|
11
|
-
alignItems?: FlexProps["alignItems"];
|
|
12
|
-
paddingInline?: number;
|
|
13
|
-
paddingBlock?: number;
|
|
14
|
-
onGetRef?: (ref: RefObject<HTMLDivElement>) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const Carousel: ({ children, gap, className, enableNavigation, title, titleVariant, alignItems, paddingInline, paddingBlock, onGetRef, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { CarouselProps } from "./Carousel.types";
|
|
2
|
+
declare const Carousel: ({ children, gap, className, enableNavigation, title, titleVariant, alignItems, paddingInline, paddingBlock, scrollOnClick, onGetRef, }: CarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
3
|
export default Carousel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
3
|
+
import { FlexProps } from "../Flex/Flex.types";
|
|
4
|
+
export interface CarouselProps {
|
|
5
|
+
children: ReactNode[] | ReactElement[];
|
|
6
|
+
gap?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
enableNavigation?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
titleVariant?: TextProps["variant"];
|
|
11
|
+
alignItems?: FlexProps["alignItems"];
|
|
12
|
+
paddingInline?: number;
|
|
13
|
+
paddingBlock?: number;
|
|
14
|
+
scrollOnClick?: boolean;
|
|
15
|
+
onGetRef?: (ref: RefObject<HTMLDivElement>) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RefObject, ReactNode, Dispatch, SetStateAction } from "react";
|
|
2
|
+
type HTMLRef = RefObject<HTMLDivElement>;
|
|
3
|
+
type CarouselStoreContent = {
|
|
4
|
+
setSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;
|
|
5
|
+
selectedItemRef: HTMLRef;
|
|
6
|
+
};
|
|
7
|
+
export declare const CarouselProvider: ({ children }: {
|
|
8
|
+
children: ReactNode | ReactNode[];
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useCarouselContext: () => CarouselStoreContent;
|
|
11
|
+
export {};
|