@xwadex/fesd-next 0.3.4-10 → 0.3.4-11
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/index.d.mts +2 -0
- package/dist/components/index.mjs +2 -0
- package/dist/components-DMsIAeFi.mjs +975 -0
- package/dist/components-DMsIAeFi.mjs.map +1 -0
- package/dist/hooks/index.d.mts +2 -0
- package/dist/hooks/index.mjs +2 -0
- package/dist/index-1SzidEVJ.d.mts +213 -0
- package/dist/index-OVM4Yt0j.d.mts +169 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +5 -0
- package/dist/shadcns/index.d.mts +1332 -0
- package/dist/shadcns/index.mjs +2607 -0
- package/dist/shadcns/index.mjs.map +1 -0
- package/dist/types/{index.d.ts → index.d.mts} +10 -7
- package/dist/types/index.mjs +1 -0
- package/dist/utils/{index.d.ts → index.d.mts} +5 -3
- package/dist/utils/index.mjs +60 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +2 -3
- package/dist/components/index.d.ts +0 -186
- package/dist/components/index.js +0 -1211
- package/dist/components/index.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -68
- package/dist/hooks/index.js +0 -891
- package/dist/hooks/index.js.map +0 -1
- package/dist/index.d.ts +0 -55
- package/dist/index.js +0 -5036
- package/dist/index.js.map +0 -1
- package/dist/shadcns/index.d.ts +0 -490
- package/dist/shadcns/index.js +0 -3864
- package/dist/shadcns/index.js.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/useAnchors-BzgJT2J9.d.ts +0 -78
- package/dist/utils/index.js +0 -63
- package/dist/utils/index.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { clearBodyLocks, lock } from "tua-body-scroll-lock";
|
|
2
|
+
//#region src/utils/index.ts
|
|
3
|
+
const regexParse = (regexString, flags) => {
|
|
4
|
+
const regex = regexString.replace(/\\\\/g, "\\");
|
|
5
|
+
try {
|
|
6
|
+
return new RegExp(regex);
|
|
7
|
+
} catch (e) {
|
|
8
|
+
console.error("Invalid regular expression:", regexString, e);
|
|
9
|
+
return regexString;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const regexReplaceEach = (currentValue, replace) => replace.reduce((current, regexs) => {
|
|
13
|
+
const regexPattern = regexParse(regexs.pattern, regexs.flags);
|
|
14
|
+
return regexPattern instanceof RegExp ? current.replace(regexPattern, "") : current;
|
|
15
|
+
}, currentValue);
|
|
16
|
+
const mediaRatio = (width, height) => Number(width) && Number(height) ? Math.round(height / width * 1e4) / 100 + "%" : "100%";
|
|
17
|
+
const sleep = (time) => new Promise((resolve) => {
|
|
18
|
+
let timer = setTimeout(() => {
|
|
19
|
+
clearTimeout(timer);
|
|
20
|
+
return resolve();
|
|
21
|
+
}, time);
|
|
22
|
+
});
|
|
23
|
+
const querySearchWord = (str) => str.trim().toLowerCase();
|
|
24
|
+
const lockBody = (active, stillScrollHTMLElement) => {
|
|
25
|
+
document.body.style.overflow = active ? "visible" : "";
|
|
26
|
+
active ? lock(stillScrollHTMLElement) : clearBodyLocks();
|
|
27
|
+
};
|
|
28
|
+
const mergeClassName = (...argements) => argements.toString().replace(/,/g, " ").replace(/\s+/g, " ").trim();
|
|
29
|
+
const getSearchParams = (searchParams) => {
|
|
30
|
+
const params = {};
|
|
31
|
+
searchParams.forEach((value, key) => {
|
|
32
|
+
params[key] = value;
|
|
33
|
+
});
|
|
34
|
+
return params;
|
|
35
|
+
};
|
|
36
|
+
const getDomTransTime = (target) => {
|
|
37
|
+
if (!target) return 0;
|
|
38
|
+
const computedStyle = window.getComputedStyle(target);
|
|
39
|
+
const parseTime = (timeStr) => {
|
|
40
|
+
timeStr = timeStr.trim();
|
|
41
|
+
if (timeStr.endsWith("ms")) return parseFloat(timeStr);
|
|
42
|
+
if (timeStr.endsWith("s")) return parseFloat(timeStr) * 1e3;
|
|
43
|
+
return 0;
|
|
44
|
+
};
|
|
45
|
+
const durations = computedStyle.transitionDuration.split(",").map(parseTime);
|
|
46
|
+
const delays = computedStyle.transitionDelay.split(",").map(parseTime);
|
|
47
|
+
const maxLength = Math.max(durations.length, delays.length);
|
|
48
|
+
return Math.max(...Array.from({ length: maxLength }, (_, i) => (durations[i] || 0) + (delays[i] || 0)));
|
|
49
|
+
};
|
|
50
|
+
const getURLSearchParams = (searchParams) => {
|
|
51
|
+
const params = {};
|
|
52
|
+
searchParams.forEach((value, key) => {
|
|
53
|
+
params[key] = value;
|
|
54
|
+
});
|
|
55
|
+
return new URLSearchParams({ ...params });
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { getDomTransTime, getSearchParams, getURLSearchParams, lockBody, mediaRatio, mergeClassName, querySearchWord, regexParse, regexReplaceEach, sleep };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/utils/index.ts"],"sourcesContent":["import { lock, clearBodyLocks } from \"tua-body-scroll-lock\"\nexport const regexParse = (regexString: string, flags?: string): RegExp | String => {\n\tconst regex = regexString.replace(/\\\\\\\\/g, \"\\\\\")\n\ttry {\n\t\treturn new RegExp(regex)\n\t} catch (e) {\n\t\tconsole.error(\"Invalid regular expression:\", regexString, e)\n\t\treturn regexString\n\t}\n}\n\nexport const regexReplaceEach = (\n\tcurrentValue: string,\n\treplace: { pattern: string, flags?: string }[]\n): string =>\n\treplace.reduce((current, regexs) => {\n\t\tconst regexPattern = regexParse(regexs.pattern, regexs.flags)\n\t\treturn regexPattern instanceof RegExp\n\t\t\t? current.replace(regexPattern, \"\")\n\t\t\t: current\n\t}, currentValue)\n\nexport const mediaRatio = (width: number, height: number) =>\n\tNumber(width) && Number(height)\n\t\t? Math.round(height / width * 10000) / 100 + \"%\"\n\t\t: \"100%\"\n\nexport const sleep = (time: number) => new Promise<void>((resolve) => {\n\tlet timer = setTimeout(() => {\n\t\tclearTimeout(timer)\n\t\treturn resolve()\n\t}, time)\n})\n\nexport const querySearchWord = (str: string) => str.trim().toLowerCase()\n\nexport const lockBody = (\n\tactive: boolean,\n\tstillScrollHTMLElement?: HTMLElement | HTMLElement[] | null | undefined\n): void => {\n\tdocument.body.style.overflow = active ? \"visible\" : \"\"\n\tactive ? lock(stillScrollHTMLElement) : clearBodyLocks()\n}\n\nexport const mergeClassName = (...argements: (string | number | boolean)[]): string =>\n\targements.toString().replace(/,/g, \" \").replace(/\\s+/g, \" \").trim()\n\nexport const getSearchParams = (searchParams: URLSearchParams) => {\n\tconst params: any = {}\n\tsearchParams.forEach((value: any, key: any) => { params[key] = value })\n\treturn params\n}\n\n// export const getDomTransTime = (target: HTMLElement): number => {\n// const computedStyle = window.getComputedStyle(target)\n// const transNumber = (time: string) => {\n// if (time.endsWith(\"ms\")) return parseFloat(time)\n// if (time.endsWith(\"s\")) return parseFloat(time) * 1000\n// return 0\n// }\n// const durations = computedStyle.transitionDuration.split(',').map(transNumber)\n// const delays = computedStyle.transitionDelay.split(',').map(transNumber)\n// return Math.max(...durations.map((d, i) => d + (delays[i] || 0)))\n// }\n\nexport const getDomTransTime = (target: HTMLElement): number => {\n\tif (!target) return 0\n\n\tconst computedStyle = window.getComputedStyle(target)\n\n\tconst parseTime = (timeStr: string): number => {\n\t\ttimeStr = timeStr.trim()\n\t\tif (timeStr.endsWith(\"ms\")) return parseFloat(timeStr)\n\t\tif (timeStr.endsWith(\"s\")) return parseFloat(timeStr) * 1000\n\t\treturn 0\n\t}\n\n\tconst durations = computedStyle.transitionDuration.split(\",\").map(parseTime)\n\tconst delays = computedStyle.transitionDelay.split(\",\").map(parseTime)\n\tconst maxLength = Math.max(durations.length, delays.length)\n\n\treturn Math.max(\n\t\t...Array.from({ length: maxLength }, (_, i) => (durations[i] || 0) + (delays[i] || 0))\n\t)\n}\n\nexport const getURLSearchParams = (searchParams: URLSearchParams) => {\n\tconst params: any = {}\n\tsearchParams.forEach((value: any, key: any) => { params[key] = value })\n\treturn new URLSearchParams({ ...params })\n}\n\n"],"mappings":";;AACA,MAAa,cAAc,aAAqB,UAAoC;CACnF,MAAM,QAAQ,YAAY,QAAQ,SAAS,KAAK;AAChD,KAAI;AACH,SAAO,IAAI,OAAO,MAAM;UAChB,GAAG;AACX,UAAQ,MAAM,+BAA+B,aAAa,EAAE;AAC5D,SAAO;;;AAIT,MAAa,oBACZ,cACA,YAEA,QAAQ,QAAQ,SAAS,WAAW;CACnC,MAAM,eAAe,WAAW,OAAO,SAAS,OAAO,MAAM;AAC7D,QAAO,wBAAwB,SAC5B,QAAQ,QAAQ,cAAc,GAAG,GACjC;GACD,aAAa;AAEjB,MAAa,cAAc,OAAe,WACzC,OAAO,MAAM,IAAI,OAAO,OAAO,GAC5B,KAAK,MAAM,SAAS,QAAQ,IAAM,GAAG,MAAM,MAC3C;AAEJ,MAAa,SAAS,SAAiB,IAAI,SAAe,YAAY;CACrE,IAAI,QAAQ,iBAAiB;AAC5B,eAAa,MAAM;AACnB,SAAO,SAAS;IACd,KAAK;EACP;AAEF,MAAa,mBAAmB,QAAgB,IAAI,MAAM,CAAC,aAAa;AAExE,MAAa,YACZ,QACA,2BACU;AACV,UAAS,KAAK,MAAM,WAAW,SAAS,YAAY;AACpD,UAAS,KAAK,uBAAuB,GAAG,gBAAgB;;AAGzD,MAAa,kBAAkB,GAAG,cACjC,UAAU,UAAU,CAAC,QAAQ,MAAM,IAAI,CAAC,QAAQ,QAAQ,IAAI,CAAC,MAAM;AAEpE,MAAa,mBAAmB,iBAAkC;CACjE,MAAM,SAAc,EAAE;AACtB,cAAa,SAAS,OAAY,QAAa;AAAE,SAAO,OAAO;GAAQ;AACvE,QAAO;;AAeR,MAAa,mBAAmB,WAAgC;AAC/D,KAAI,CAAC,OAAQ,QAAO;CAEpB,MAAM,gBAAgB,OAAO,iBAAiB,OAAO;CAErD,MAAM,aAAa,YAA4B;AAC9C,YAAU,QAAQ,MAAM;AACxB,MAAI,QAAQ,SAAS,KAAK,CAAE,QAAO,WAAW,QAAQ;AACtD,MAAI,QAAQ,SAAS,IAAI,CAAE,QAAO,WAAW,QAAQ,GAAG;AACxD,SAAO;;CAGR,MAAM,YAAY,cAAc,mBAAmB,MAAM,IAAI,CAAC,IAAI,UAAU;CAC5E,MAAM,SAAS,cAAc,gBAAgB,MAAM,IAAI,CAAC,IAAI,UAAU;CACtE,MAAM,YAAY,KAAK,IAAI,UAAU,QAAQ,OAAO,OAAO;AAE3D,QAAO,KAAK,IACX,GAAG,MAAM,KAAK,EAAE,QAAQ,WAAW,GAAG,GAAG,OAAO,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CACtF;;AAGF,MAAa,sBAAsB,iBAAkC;CACpE,MAAM,SAAc,EAAE;AACtB,cAAa,SAAS,OAAY,QAAa;AAAE,SAAO,OAAO;GAAQ;AACvE,QAAO,IAAI,gBAAgB,EAAE,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwadex/fesd-next",
|
|
3
|
-
"version": "0.3.4-
|
|
3
|
+
"version": "0.3.4-11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"clean": "rm -rf dist",
|
|
39
|
-
"build:js": "
|
|
39
|
+
"build:js": "tsdown",
|
|
40
40
|
"build": "npm run clean && npm run build:js"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"tw-animate-css": "^1.3.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"tsup": "^8.5.1",
|
|
60
59
|
"typescript": "^5.9.3"
|
|
61
60
|
}
|
|
62
61
|
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { A as AnchorOptions } from '../useAnchors-BzgJT2J9.js';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as zustand from 'zustand';
|
|
6
|
-
import Lenis, { LenisOptions } from 'lenis';
|
|
7
|
-
import useEmblaCarousel, { UseEmblaCarouselType, EmblaViewportRefType } from 'embla-carousel-react';
|
|
8
|
-
import { AutoplayOptionsType } from 'embla-carousel-autoplay';
|
|
9
|
-
import { AutoScrollOptionsType } from 'embla-carousel-auto-scroll';
|
|
10
|
-
import { AutoHeightOptionsType } from 'embla-carousel-auto-height';
|
|
11
|
-
import { ClassNamesOptionsType } from 'embla-carousel-class-names';
|
|
12
|
-
import { FadeOptionsType } from 'embla-carousel-fade';
|
|
13
|
-
import { EmblaCarouselType, EmblaOptionsType } from 'embla-carousel';
|
|
14
|
-
import 'motion/react';
|
|
15
|
-
|
|
16
|
-
interface PropsType$2 extends React.ComponentProps<"div"> {
|
|
17
|
-
name: string;
|
|
18
|
-
}
|
|
19
|
-
declare const AnchorTarget: React.FC<PropsType$2>;
|
|
20
|
-
declare const AnchorOffseter: React.FC<PropsType$2>;
|
|
21
|
-
type TriggerProps = AnchorOptions & React.ComponentProps<"div"> & {};
|
|
22
|
-
declare const AnchorTrigger: React.FC<TriggerProps>;
|
|
23
|
-
declare const Anchors: {
|
|
24
|
-
Trigger: React$1.FC<TriggerProps>;
|
|
25
|
-
Target: React$1.FC<PropsType$2>;
|
|
26
|
-
Offseter: React$1.FC<PropsType$2>;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
type PropsType$1<T extends React.ElementType = "div"> = React.ComponentProps<T> & {
|
|
30
|
-
name: string;
|
|
31
|
-
tag?: T;
|
|
32
|
-
};
|
|
33
|
-
declare const NativeScroll: React$1.MemoExoticComponent<(<T extends React.ElementType = "div">({ tag: Component, name, className, ...restProps }: PropsType$1<T>) => react_jsx_runtime.JSX.Element)>;
|
|
34
|
-
|
|
35
|
-
interface LenisScrollProps {
|
|
36
|
-
root?: boolean | "asChild";
|
|
37
|
-
name?: string;
|
|
38
|
-
options?: LenisOptions;
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
42
|
-
declare const LenisScroll: React.FC<LenisScrollProps>;
|
|
43
|
-
declare const LenisRootScroll: React.FC<LenisScrollProps>;
|
|
44
|
-
type LenisScrollContainerProps = Omit<LenisScrollProps, "root">;
|
|
45
|
-
declare const LenisContainerScroll: React.FC<LenisScrollContainerProps>;
|
|
46
|
-
interface LenisStores {
|
|
47
|
-
root?: Lenis | null;
|
|
48
|
-
}
|
|
49
|
-
declare const useLenisStores: zustand.UseBoundStore<zustand.StoreApi<LenisStores>>;
|
|
50
|
-
declare const setRootLenis: (lenis: Lenis) => void;
|
|
51
|
-
declare const getRootLenis: () => LenisStores;
|
|
52
|
-
|
|
53
|
-
type PropsType<T extends React.ElementType = "div"> = React.ComponentProps<T> & LenisScrollProps & {
|
|
54
|
-
name: string;
|
|
55
|
-
lenis?: boolean;
|
|
56
|
-
};
|
|
57
|
-
declare const ScrollContainer: <T extends React.ElementType = "div">({ name, lenis, ...props }: PropsType<T>) => react_jsx_runtime.JSX.Element;
|
|
58
|
-
interface ScrollContainerContext {
|
|
59
|
-
containerRef: React.RefObject<HTMLDivElement | null> | undefined;
|
|
60
|
-
}
|
|
61
|
-
declare const ScrollContainerContext: React$1.Context<ScrollContainerContext | null>;
|
|
62
|
-
declare const useScrollContainerContext: () => ScrollContainerContext;
|
|
63
|
-
interface ScrollContainersStores {
|
|
64
|
-
containers: Map<string, Lenis | HTMLDivElement | null>;
|
|
65
|
-
}
|
|
66
|
-
declare const useScrollContainersStores: zustand.UseBoundStore<zustand.StoreApi<ScrollContainersStores>>;
|
|
67
|
-
declare const getScrollContainer: (name: string) => HTMLDivElement | Lenis | null | undefined;
|
|
68
|
-
declare const getScrollContainerStores: () => ScrollContainersStores;
|
|
69
|
-
interface SetStoreOptions {
|
|
70
|
-
name: string;
|
|
71
|
-
node?: Lenis | HTMLDivElement | null;
|
|
72
|
-
action: "add" | "remove";
|
|
73
|
-
}
|
|
74
|
-
declare const setScrollContainerStore: (options: SetStoreOptions) => void;
|
|
75
|
-
|
|
76
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
77
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
78
|
-
type CarouselOptions = UseCarouselParameters[0];
|
|
79
|
-
interface EmblaCarouselsHooksTypes {
|
|
80
|
-
options?: CarouselOptions;
|
|
81
|
-
autoplay?: AutoplayOptionsType | true;
|
|
82
|
-
autoScroll?: AutoScrollOptionsType | true;
|
|
83
|
-
classNames?: ClassNamesOptionsType | true;
|
|
84
|
-
autoHeight?: AutoHeightOptionsType | true;
|
|
85
|
-
fade?: FadeOptionsType | true;
|
|
86
|
-
wheel?: {
|
|
87
|
-
wheelDraggingClass?: string;
|
|
88
|
-
forceWheelAxis?: "x" | "y";
|
|
89
|
-
target?: Element;
|
|
90
|
-
} | true;
|
|
91
|
-
setApi?: (api: CarouselApi) => void;
|
|
92
|
-
}
|
|
93
|
-
declare function emblaCarouselsHooks({ options, autoplay, autoScroll, classNames, autoHeight, fade, wheel, setApi, }: EmblaCarouselsHooksTypes): {
|
|
94
|
-
emblaRef: (node: HTMLElement | null) => void;
|
|
95
|
-
emblaApi: CarouselApi;
|
|
96
|
-
orientation: "x" | "y";
|
|
97
|
-
currentIndex: number;
|
|
98
|
-
isScrollPrev: boolean;
|
|
99
|
-
isScrollNext: boolean;
|
|
100
|
-
scrollPrev: () => void;
|
|
101
|
-
scrollNext: () => void;
|
|
102
|
-
onKeyDownCapture: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
type CarouselsContextProps = {
|
|
106
|
-
emblaRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
107
|
-
emblaApi: ReturnType<typeof useEmblaCarousel>[1];
|
|
108
|
-
currentIndex?: number;
|
|
109
|
-
orientation: "x" | "y";
|
|
110
|
-
isScrollPrev: boolean;
|
|
111
|
-
isScrollNext: boolean;
|
|
112
|
-
scrollPrev: () => void;
|
|
113
|
-
scrollNext: () => void;
|
|
114
|
-
};
|
|
115
|
-
declare const useCarouselsContext: () => CarouselsContextProps;
|
|
116
|
-
interface PropsTypes$3 extends EmblaCarouselsHooksTypes, React.ComponentProps<"div"> {
|
|
117
|
-
}
|
|
118
|
-
declare const EmblaCarouselsRoots: React.FC<PropsTypes$3>;
|
|
119
|
-
declare const EmblaCarouselsContents: React.FC<React.ComponentProps<"div">>;
|
|
120
|
-
declare const EmblaCarouselsSlides: React.FC<React.ComponentProps<"div">>;
|
|
121
|
-
declare const EmblaCarousels: {
|
|
122
|
-
Roots: React$1.FC<PropsTypes$3>;
|
|
123
|
-
Contents: React$1.FC<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
124
|
-
Slides: React$1.FC<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
interface CarouselContextTypes {
|
|
128
|
-
datas: [];
|
|
129
|
-
emblaRef?: EmblaViewportRefType;
|
|
130
|
-
emblaApi?: EmblaCarouselType | null;
|
|
131
|
-
selectIndex: number;
|
|
132
|
-
scrollSnaps: number[];
|
|
133
|
-
nextScroll: () => void;
|
|
134
|
-
prevScroll: () => void;
|
|
135
|
-
scrollToIndex: (index: number) => void;
|
|
136
|
-
autoPlayReset: () => void;
|
|
137
|
-
autoPlayStop: () => void;
|
|
138
|
-
autoPlayPlay: () => void;
|
|
139
|
-
}
|
|
140
|
-
declare const CarouselContextProvider: (props: {
|
|
141
|
-
children: React.ReactNode;
|
|
142
|
-
value: CarouselContextTypes;
|
|
143
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
144
|
-
declare const useCarouselContext: () => CarouselContextTypes;
|
|
145
|
-
|
|
146
|
-
interface PropsTypes$2 extends EmblaOptionsType {
|
|
147
|
-
children?: React__default.ReactNode;
|
|
148
|
-
className?: string;
|
|
149
|
-
options?: EmblaOptionsType;
|
|
150
|
-
datas?: any;
|
|
151
|
-
autoplayEnabled?: boolean;
|
|
152
|
-
autoplayOptions?: AutoplayOptionsType;
|
|
153
|
-
setApi?: any;
|
|
154
|
-
setMethods?: any;
|
|
155
|
-
setRef?: any;
|
|
156
|
-
style?: any;
|
|
157
|
-
controls?: any;
|
|
158
|
-
plugins?: any;
|
|
159
|
-
onScrolled?: (index: number) => void;
|
|
160
|
-
}
|
|
161
|
-
declare const Embla: React__default.FC<PropsTypes$2>;
|
|
162
|
-
|
|
163
|
-
type PropsTypes$1 = {
|
|
164
|
-
className?: string;
|
|
165
|
-
slide?: React.FC<any>;
|
|
166
|
-
children?: any;
|
|
167
|
-
style?: any;
|
|
168
|
-
};
|
|
169
|
-
declare const EmblaContainer: React.FC<PropsTypes$1>;
|
|
170
|
-
|
|
171
|
-
type EmblaPaginationPropsTypes = {
|
|
172
|
-
color?: "black" | "white" | string;
|
|
173
|
-
align?: "start" | "center" | "end";
|
|
174
|
-
className?: string;
|
|
175
|
-
maxDots?: number;
|
|
176
|
-
dynamic?: boolean;
|
|
177
|
-
swiperNumber?: boolean;
|
|
178
|
-
style?: string;
|
|
179
|
-
};
|
|
180
|
-
declare const EmblaPagination: React.FC<EmblaPaginationPropsTypes>;
|
|
181
|
-
|
|
182
|
-
interface PropsTypes {
|
|
183
|
-
}
|
|
184
|
-
declare const Tests: React.FC<PropsTypes>;
|
|
185
|
-
|
|
186
|
-
export { AnchorOffseter, AnchorTarget, AnchorTrigger, Anchors, CarouselContextProvider, type CarouselsContextProps, Embla, EmblaCarousels, EmblaCarouselsContents, type EmblaCarouselsHooksTypes, EmblaCarouselsRoots, EmblaCarouselsSlides, EmblaContainer, EmblaPagination, LenisContainerScroll, LenisRootScroll, LenisScroll, type LenisScrollProps, NativeScroll, type PropsTypes$3 as PropsTypes, ScrollContainer, ScrollContainerContext, type ScrollContainersStores, type SetStoreOptions, Tests, emblaCarouselsHooks, getRootLenis, getScrollContainer, getScrollContainerStores, setRootLenis, setScrollContainerStore, useCarouselContext, useCarouselsContext, useLenisStores, useScrollContainerContext, useScrollContainersStores };
|