@xwadex/fesd-next 0.3.3 → 0.3.4-10
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/README.md +1 -26
- package/dist/components/index.d.ts +186 -1
- package/dist/components/index.js +1211 -1
- package/dist/components/index.js.map +1 -0
- package/dist/hooks/index.d.ts +68 -1
- package/dist/hooks/index.js +891 -1
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.d.ts +55 -4
- package/dist/index.js +5036 -4
- package/dist/index.js.map +1 -0
- package/dist/shadcns/index.d.ts +490 -0
- package/dist/shadcns/index.js +3864 -0
- package/dist/shadcns/index.js.map +1 -0
- package/dist/types/index.d.ts +16 -3
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -0
- package/dist/useAnchors-BzgJT2J9.d.ts +78 -0
- package/dist/utils/index.d.ts +15 -1
- package/dist/utils/index.js +63 -1
- package/dist/utils/index.js.map +1 -0
- package/package.json +60 -47
- package/dist/components/myComponents/MyComponent.d.ts +0 -2
- package/dist/components/myComponents/MyComponent.js +0 -4
- package/dist/components/myComponents/MyComponent.module.scss +0 -3
- package/dist/components/myComponents/index.d.ts +0 -1
- package/dist/components/myComponents/index.js +0 -1
- package/dist/hooks/useHooks.d.ts +0 -1
- package/dist/hooks/useHooks.js +0 -3
- package/dist/utils/someUtil.d.ts +0 -1
- package/dist/utils/someUtil.js +0 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type ShadcnBaseProps<P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
|
|
2
|
+
as?: React.ElementType;
|
|
3
|
+
} & React.ComponentProps<P>;
|
|
4
|
+
type BaseProps<T extends React.ElementType, P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
|
|
5
|
+
as?: T;
|
|
6
|
+
} & React.ComponentProps<P>;
|
|
7
|
+
|
|
8
|
+
type AsTypes<T extends React.ElementType = "div"> = {
|
|
9
|
+
as?: T;
|
|
4
10
|
};
|
|
11
|
+
type AsPropsToOmit<T extends React.ElementType, P> = keyof (AsTypes<T> & P);
|
|
12
|
+
type AsPropsTypes<T extends React.ElementType, P = {}> = P & AsTypes<T> & Omit<React.ComponentPropsWithoutRef<T>, AsPropsToOmit<T, P>>;
|
|
13
|
+
type SlotsPropsTypes = {
|
|
14
|
+
[key: number]: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type { AsPropsTypes, BaseProps, ShadcnBaseProps, SlotsPropsTypes };
|
package/dist/types/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as zustand from 'zustand';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { Easing, AnimationPlaybackControlsWithThen } from 'motion/react';
|
|
4
|
+
import Lenis from 'lenis';
|
|
5
|
+
|
|
6
|
+
interface AnimateOptions {
|
|
7
|
+
duration?: number;
|
|
8
|
+
delay?: number;
|
|
9
|
+
ease?: Easing | Easing[] | undefined;
|
|
10
|
+
onScroll?: (lenis?: Lenis) => void;
|
|
11
|
+
onScrolling?: (value: number) => void;
|
|
12
|
+
onScrolled?: (lenis?: Lenis) => void;
|
|
13
|
+
}
|
|
14
|
+
interface AnchorOptions extends AnimateOptions {
|
|
15
|
+
anchor: string;
|
|
16
|
+
container?: string;
|
|
17
|
+
offseters?: string | string[];
|
|
18
|
+
direction?: "x" | "y";
|
|
19
|
+
align?: "start" | "center" | "end";
|
|
20
|
+
offset?: number;
|
|
21
|
+
}
|
|
22
|
+
interface ScrollOptions extends AnimateOptions {
|
|
23
|
+
controllerKey: string;
|
|
24
|
+
containerDom: HTMLElement | Window;
|
|
25
|
+
anchorScrollValue: {
|
|
26
|
+
left: number;
|
|
27
|
+
top: number;
|
|
28
|
+
};
|
|
29
|
+
containerScrollValue: {
|
|
30
|
+
left: number;
|
|
31
|
+
top: number;
|
|
32
|
+
};
|
|
33
|
+
direction?: AnchorOptions["direction"];
|
|
34
|
+
}
|
|
35
|
+
type AnimateController = AnimationPlaybackControlsWithThen;
|
|
36
|
+
interface AnchorsMethods {
|
|
37
|
+
registerAnchors: (name: string) => {
|
|
38
|
+
[key: string]: string | React.RefObject<null>;
|
|
39
|
+
ref: React.RefObject<null>;
|
|
40
|
+
};
|
|
41
|
+
registerOffseters: (name: string) => {
|
|
42
|
+
[key: string]: string | React.RefObject<null>;
|
|
43
|
+
ref: React.RefObject<null>;
|
|
44
|
+
};
|
|
45
|
+
setStores: (options: AnchorStoreOptions) => void;
|
|
46
|
+
getStores: () => AnchorsStores;
|
|
47
|
+
scrollToAnchor: (anchorOptions: AnchorOptions) => void;
|
|
48
|
+
}
|
|
49
|
+
declare function useAnchors(): AnchorsMethods;
|
|
50
|
+
interface RegistrationDatas {
|
|
51
|
+
key: keyof AnchorsStores;
|
|
52
|
+
name: string;
|
|
53
|
+
}
|
|
54
|
+
declare function useRegistration({ key, name }: RegistrationDatas): {
|
|
55
|
+
[x: string]: string | React$1.RefObject<null>;
|
|
56
|
+
ref: React$1.RefObject<null>;
|
|
57
|
+
};
|
|
58
|
+
declare function registerAnchors(name: string): {
|
|
59
|
+
[x: string]: string | React$1.RefObject<null>;
|
|
60
|
+
ref: React$1.RefObject<null>;
|
|
61
|
+
};
|
|
62
|
+
declare function registerOffseters(name: string): {
|
|
63
|
+
[x: string]: string | React$1.RefObject<null>;
|
|
64
|
+
ref: React$1.RefObject<null>;
|
|
65
|
+
};
|
|
66
|
+
interface AnchorsStores {
|
|
67
|
+
anchors: Map<string, HTMLElement | null>;
|
|
68
|
+
offseters: Map<string, HTMLElement | null>;
|
|
69
|
+
}
|
|
70
|
+
declare const useAnchorsStores: zustand.UseBoundStore<zustand.StoreApi<AnchorsStores>>;
|
|
71
|
+
declare const getAnchorsStores: () => AnchorsStores;
|
|
72
|
+
interface AnchorStoreOptions extends RegistrationDatas {
|
|
73
|
+
node: HTMLDivElement | null;
|
|
74
|
+
action: "add" | "remove";
|
|
75
|
+
}
|
|
76
|
+
declare const setAnchorsStore: (options: AnchorStoreOptions) => void;
|
|
77
|
+
|
|
78
|
+
export { type AnchorOptions as A, type RegistrationDatas as R, type ScrollOptions as S, type AnchorStoreOptions as a, type AnchorsMethods as b, type AnchorsStores as c, type AnimateController as d, type AnimateOptions as e, registerOffseters as f, getAnchorsStores as g, useAnchorsStores as h, useRegistration as i, registerAnchors as r, setAnchorsStore as s, useAnchors as u };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
declare const regexParse: (regexString: string, flags?: string) => RegExp | String;
|
|
2
|
+
declare const regexReplaceEach: (currentValue: string, replace: {
|
|
3
|
+
pattern: string;
|
|
4
|
+
flags?: string;
|
|
5
|
+
}[]) => string;
|
|
6
|
+
declare const mediaRatio: (width: number, height: number) => string;
|
|
7
|
+
declare const sleep: (time: number) => Promise<void>;
|
|
8
|
+
declare const querySearchWord: (str: string) => string;
|
|
9
|
+
declare const lockBody: (active: boolean, stillScrollHTMLElement?: HTMLElement | HTMLElement[] | null | undefined) => void;
|
|
10
|
+
declare const mergeClassName: (...argements: (string | number | boolean)[]) => string;
|
|
11
|
+
declare const getSearchParams: (searchParams: URLSearchParams) => any;
|
|
12
|
+
declare const getDomTransTime: (target: HTMLElement) => number;
|
|
13
|
+
declare const getURLSearchParams: (searchParams: URLSearchParams) => URLSearchParams;
|
|
14
|
+
|
|
15
|
+
export { getDomTransTime, getSearchParams, getURLSearchParams, lockBody, mediaRatio, mergeClassName, querySearchWord, regexParse, regexReplaceEach, sleep };
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
import { lock, clearBodyLocks } from 'tua-body-scroll-lock';
|
|
2
|
+
|
|
3
|
+
// src/utils/index.ts
|
|
4
|
+
var regexParse = (regexString, flags) => {
|
|
5
|
+
const regex = regexString.replace(/\\\\/g, "\\");
|
|
6
|
+
try {
|
|
7
|
+
return new RegExp(regex);
|
|
8
|
+
} catch (e) {
|
|
9
|
+
console.error("Invalid regular expression:", regexString, e);
|
|
10
|
+
return regexString;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
var regexReplaceEach = (currentValue, replace) => replace.reduce((current, regexs) => {
|
|
14
|
+
const regexPattern = regexParse(regexs.pattern, regexs.flags);
|
|
15
|
+
return regexPattern instanceof RegExp ? current.replace(regexPattern, "") : current;
|
|
16
|
+
}, currentValue);
|
|
17
|
+
var mediaRatio = (width, height) => Number(width) && Number(height) ? Math.round(height / width * 1e4) / 100 + "%" : "100%";
|
|
18
|
+
var sleep = (time) => new Promise((resolve) => {
|
|
19
|
+
let timer = setTimeout(() => {
|
|
20
|
+
clearTimeout(timer);
|
|
21
|
+
return resolve();
|
|
22
|
+
}, time);
|
|
23
|
+
});
|
|
24
|
+
var querySearchWord = (str) => str.trim().toLowerCase();
|
|
25
|
+
var lockBody = (active, stillScrollHTMLElement) => {
|
|
26
|
+
document.body.style.overflow = active ? "visible" : "";
|
|
27
|
+
active ? lock(stillScrollHTMLElement) : clearBodyLocks();
|
|
28
|
+
};
|
|
29
|
+
var mergeClassName = (...argements) => argements.toString().replace(/,/g, " ").replace(/\s+/g, " ").trim();
|
|
30
|
+
var getSearchParams = (searchParams) => {
|
|
31
|
+
const params = {};
|
|
32
|
+
searchParams.forEach((value, key) => {
|
|
33
|
+
params[key] = value;
|
|
34
|
+
});
|
|
35
|
+
return params;
|
|
36
|
+
};
|
|
37
|
+
var getDomTransTime = (target) => {
|
|
38
|
+
if (!target) return 0;
|
|
39
|
+
const computedStyle = window.getComputedStyle(target);
|
|
40
|
+
const parseTime = (timeStr) => {
|
|
41
|
+
timeStr = timeStr.trim();
|
|
42
|
+
if (timeStr.endsWith("ms")) return parseFloat(timeStr);
|
|
43
|
+
if (timeStr.endsWith("s")) return parseFloat(timeStr) * 1e3;
|
|
44
|
+
return 0;
|
|
45
|
+
};
|
|
46
|
+
const durations = computedStyle.transitionDuration.split(",").map(parseTime);
|
|
47
|
+
const delays = computedStyle.transitionDelay.split(",").map(parseTime);
|
|
48
|
+
const maxLength = Math.max(durations.length, delays.length);
|
|
49
|
+
return Math.max(
|
|
50
|
+
...Array.from({ length: maxLength }, (_, i) => (durations[i] || 0) + (delays[i] || 0))
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
var getURLSearchParams = (searchParams) => {
|
|
54
|
+
const params = {};
|
|
55
|
+
searchParams.forEach((value, key) => {
|
|
56
|
+
params[key] = value;
|
|
57
|
+
});
|
|
58
|
+
return new URLSearchParams({ ...params });
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { getDomTransTime, getSearchParams, getURLSearchParams, lockBody, mediaRatio, mergeClassName, querySearchWord, regexParse, regexReplaceEach, sleep };
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AACO,IAAM,UAAA,GAAa,CAAC,WAAA,EAAqB,KAAA,KAAoC;AACnF,EAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,OAAA,CAAQ,OAAA,EAAS,IAAI,CAAA;AAC/C,EAAA,IAAI;AACH,IAAA,OAAO,IAAI,OAAO,KAAK,CAAA;AAAA,EACxB,SAAS,CAAA,EAAG;AACX,IAAA,OAAA,CAAQ,KAAA,CAAM,6BAAA,EAA+B,WAAA,EAAa,CAAC,CAAA;AAC3D,IAAA,OAAO,WAAA;AAAA,EACR;AACD;AAEO,IAAM,gBAAA,GAAmB,CAC/B,YAAA,EACA,OAAA,KAEA,QAAQ,MAAA,CAAO,CAAC,SAAS,MAAA,KAAW;AACnC,EAAA,MAAM,YAAA,GAAe,UAAA,CAAW,MAAA,CAAO,OAAA,EAAS,OA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CAAgB,EAAE,GAAG,QAAQ,CAAA;AACzC","file":"index.js","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"]}
|
package/package.json
CHANGED
|
@@ -1,49 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
2
|
+
"name": "@xwadex/fesd-next",
|
|
3
|
+
"version": "0.3.4-10",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./components": {
|
|
14
|
+
"import": "./dist/components/index.js",
|
|
15
|
+
"types": "./dist/components/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./shadcns": {
|
|
18
|
+
"import": "./dist/shadcns/index.js",
|
|
19
|
+
"types": "./dist/shadcns/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./hooks": {
|
|
22
|
+
"import": "./dist/hooks/index.js",
|
|
23
|
+
"types": "./dist/hooks/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./utils": {
|
|
26
|
+
"import": "./dist/utils/index.js",
|
|
27
|
+
"types": "./dist/utils/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./types": {
|
|
30
|
+
"import": "./dist/types/index.js",
|
|
31
|
+
"types": "./dist/types/index.d.ts"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"build:js": "tsup",
|
|
40
|
+
"build": "npm run clean && npm run build:js"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18",
|
|
44
|
+
"react-dom": ">=18",
|
|
45
|
+
"next": ">=16",
|
|
46
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
47
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
48
|
+
"tailwindcss": ">=3",
|
|
49
|
+
"postcss": ">=8",
|
|
50
|
+
"class-variance-authority": "^0.7.1",
|
|
51
|
+
"clsx": "^2.1.1",
|
|
52
|
+
"tailwind-merge": "^3.3.1",
|
|
53
|
+
"tua-body-scroll-lock": "^1.5.3",
|
|
54
|
+
"react-sortablejs": "^6.1.4",
|
|
55
|
+
"motion": "^12.18.1",
|
|
56
|
+
"tw-animate-css": "^1.3.4"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"tsup": "^8.5.1",
|
|
60
|
+
"typescript": "^5.9.3"
|
|
61
|
+
}
|
|
49
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MyComponent } from './MyComponent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MyComponent } from './MyComponent';
|
package/dist/hooks/useHooks.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useHooks: () => string;
|
package/dist/hooks/useHooks.js
DELETED
package/dist/utils/someUtil.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const someUtil: () => string;
|
package/dist/utils/someUtil.js
DELETED