@xiping/react-components 1.0.23 → 1.0.25
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/cjs/components/blur-fade/BlurFade.d.ts +23 -0
- package/dist/cjs/components/blur-fade/BlurFade.js +1 -0
- package/dist/cjs/components/blur-fade/index.d.ts +2 -0
- package/dist/cjs/components/button/Button.d.ts +3 -3
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/confetti-button/index.js +1 -1
- package/dist/cjs/components/dock/Duck.js +1 -1
- package/dist/cjs/components/hyper-text/index.d.ts +1 -1
- package/dist/cjs/components/hyper-text/index.js +1 -1
- package/dist/cjs/components/morphing-text/index.d.ts +1 -1
- package/dist/cjs/components/pinch-content/PinchContent.js +1 -1
- package/dist/cjs/components/pointer/Pointer.d.ts +13 -0
- package/dist/cjs/components/pointer/Pointer.js +1 -0
- package/dist/cjs/components/pointer/index.d.ts +2 -0
- package/dist/cjs/components/scratch-to-reveal/ScratchToReveal.d.ts +12 -0
- package/dist/cjs/components/scratch-to-reveal/index.d.ts +2 -0
- package/dist/cjs/components/sparkles-text/SparklesText.d.ts +43 -0
- package/dist/cjs/components/sparkles-text/SparklesText.js +1 -0
- package/dist/cjs/components/sparkles-text/index.d.ts +2 -0
- package/dist/cjs/components/txt-editor/TxtEditor.js +1 -1
- package/dist/cjs/components/txt-reader/TxtReader.js +1 -1
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@monaco-editor/react/dist/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -1
- package/dist/cjs/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +1 -1
- package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.module.js +1 -1
- package/dist/cjs/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +1 -1
- package/dist/cjs/react-components.css +1 -1
- package/dist/es/components/blur-fade/BlurFade.d.ts +23 -0
- package/dist/es/components/blur-fade/BlurFade.js +51 -0
- package/dist/es/components/blur-fade/index.d.ts +2 -0
- package/dist/es/components/button/Button.d.ts +3 -3
- package/dist/es/components/button/Button.js +2 -2
- package/dist/es/components/confetti-button/index.js +33 -34
- package/dist/es/components/dock/Duck.js +31 -32
- package/dist/es/components/hyper-text/index.d.ts +1 -1
- package/dist/es/components/hyper-text/index.js +52 -50
- package/dist/es/components/morphing-text/index.d.ts +1 -1
- package/dist/es/components/pinch-content/PinchContent.js +27 -29
- package/dist/es/components/pointer/Pointer.d.ts +13 -0
- package/dist/es/components/pointer/Pointer.js +77 -0
- package/dist/es/components/pointer/index.d.ts +2 -0
- package/dist/es/components/scratch-to-reveal/ScratchToReveal.d.ts +12 -0
- package/dist/es/components/scratch-to-reveal/index.d.ts +2 -0
- package/dist/es/components/sparkles-text/SparklesText.d.ts +43 -0
- package/dist/es/components/sparkles-text/SparklesText.js +70 -0
- package/dist/es/components/sparkles-text/index.d.ts +2 -0
- package/dist/es/components/txt-editor/TxtEditor.js +29 -29
- package/dist/es/components/txt-reader/TxtReader.js +41 -41
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +26 -20
- package/dist/es/node_modules/.pnpm/@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@monaco-editor/react/dist/index.js +127 -142
- package/dist/es/node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -1
- package/dist/es/node_modules/.pnpm/three-forcegraph@1.43.0_three@0.178.0/node_modules/three-forcegraph/dist/three-forcegraph.js +2 -2
- package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.core.js +372 -372
- package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.module.js +1 -1
- package/dist/es/node_modules/.pnpm/three@0.178.0/node_modules/three/build/three.webgpu.js +1 -1
- package/dist/es/react-components.css +1 -1
- package/package.json +19 -19
- /package/dist/cjs/node_modules/.pnpm/{3d-force-graph@1.78.2 → 3d-force-graph@1.78.3}/node_modules/3d-force-graph/dist/3d-force-graph.js +0 -0
- /package/dist/es/node_modules/.pnpm/{3d-force-graph@1.78.2 → 3d-force-graph@1.78.3}/node_modules/3d-force-graph/dist/3d-force-graph.js +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as h, Fragment as E, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { cn as w } from "../../utils/utils.js";
|
|
4
|
+
import { useMotionValue as m, AnimatePresence as x, motion as L } from "motion/react";
|
|
5
|
+
import { useState as y, useRef as g, useEffect as M } from "react";
|
|
6
|
+
function C({
|
|
7
|
+
className: u,
|
|
8
|
+
style: d,
|
|
9
|
+
children: v,
|
|
10
|
+
...f
|
|
11
|
+
}) {
|
|
12
|
+
const n = m(0), o = m(0), [p, s] = y(!1), r = g(null);
|
|
13
|
+
return M(() => {
|
|
14
|
+
if (typeof window < "u" && r.current) {
|
|
15
|
+
const e = r.current.parentElement;
|
|
16
|
+
if (e) {
|
|
17
|
+
e.style.cursor = "none";
|
|
18
|
+
const i = (l) => {
|
|
19
|
+
n.set(l.clientX), o.set(l.clientY);
|
|
20
|
+
}, a = () => {
|
|
21
|
+
s(!0);
|
|
22
|
+
}, c = () => {
|
|
23
|
+
s(!1);
|
|
24
|
+
};
|
|
25
|
+
return e.addEventListener("mousemove", i), e.addEventListener("mouseenter", a), e.addEventListener("mouseleave", c), () => {
|
|
26
|
+
e.style.cursor = "", e.removeEventListener("mousemove", i), e.removeEventListener("mouseenter", a), e.removeEventListener("mouseleave", c);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, [n, o]), /* @__PURE__ */ h(E, { children: [
|
|
31
|
+
/* @__PURE__ */ t("div", { ref: r }),
|
|
32
|
+
/* @__PURE__ */ t(x, { children: p && /* @__PURE__ */ t(
|
|
33
|
+
L.div,
|
|
34
|
+
{
|
|
35
|
+
className: "transform-[translate(-50%,-50%)] pointer-events-none fixed z-50",
|
|
36
|
+
style: {
|
|
37
|
+
top: o,
|
|
38
|
+
left: n,
|
|
39
|
+
...d
|
|
40
|
+
},
|
|
41
|
+
initial: {
|
|
42
|
+
scale: 0,
|
|
43
|
+
opacity: 0
|
|
44
|
+
},
|
|
45
|
+
animate: {
|
|
46
|
+
scale: 1,
|
|
47
|
+
opacity: 1
|
|
48
|
+
},
|
|
49
|
+
exit: {
|
|
50
|
+
scale: 0,
|
|
51
|
+
opacity: 0
|
|
52
|
+
},
|
|
53
|
+
...f,
|
|
54
|
+
children: v || /* @__PURE__ */ t(
|
|
55
|
+
"svg",
|
|
56
|
+
{
|
|
57
|
+
stroke: "currentColor",
|
|
58
|
+
fill: "currentColor",
|
|
59
|
+
strokeWidth: "1",
|
|
60
|
+
viewBox: "0 0 16 16",
|
|
61
|
+
height: "24",
|
|
62
|
+
width: "24",
|
|
63
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
+
className: w(
|
|
65
|
+
"rotate-[-70deg] stroke-white text-black",
|
|
66
|
+
u
|
|
67
|
+
),
|
|
68
|
+
children: /* @__PURE__ */ t("path", { d: "M14.082 2.182a.5.5 0 0 1 .103.557L8.528 15.467a.5.5 0 0 1-.917-.007L5.57 10.694.803 8.652a.5.5 0 0 1-.006-.916l12.728-5.657a.5.5 0 0 1 .556.103z" })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
) })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
C as Pointer
|
|
77
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ScratchToRevealProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
minScratchPercentage?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
onComplete?: () => void;
|
|
9
|
+
gradientColors?: [string, string, string];
|
|
10
|
+
}
|
|
11
|
+
export declare const ScratchToReveal: React.FC<ScratchToRevealProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface SparklesTextProps {
|
|
3
|
+
/**
|
|
4
|
+
* @default <div />
|
|
5
|
+
* @type ReactElement
|
|
6
|
+
* @description
|
|
7
|
+
* The component to be rendered as the text
|
|
8
|
+
* */
|
|
9
|
+
as?: ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* @default ""
|
|
12
|
+
* @type string
|
|
13
|
+
* @description
|
|
14
|
+
* The className of the text
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @required
|
|
19
|
+
* @type ReactNode
|
|
20
|
+
* @description
|
|
21
|
+
* The content to be displayed
|
|
22
|
+
* */
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* @default 10
|
|
26
|
+
* @type number
|
|
27
|
+
* @description
|
|
28
|
+
* The count of sparkles
|
|
29
|
+
* */
|
|
30
|
+
sparklesCount?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @default "{first: '#9E7AFF', second: '#FE8BBB'}"
|
|
33
|
+
* @type string
|
|
34
|
+
* @description
|
|
35
|
+
* The colors of the sparkles
|
|
36
|
+
* */
|
|
37
|
+
colors?: {
|
|
38
|
+
first: string;
|
|
39
|
+
second: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare const SparklesText: React.FC<SparklesTextProps>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
3
|
+
import { motion as L } from "motion/react";
|
|
4
|
+
import { useState as S, useEffect as y } from "react";
|
|
5
|
+
import { cn as M } from "../../utils/utils.js";
|
|
6
|
+
const $ = ({ id: o, x: t, y: i, color: s, delay: l, scale: c }) => /* @__PURE__ */ r(
|
|
7
|
+
L.svg,
|
|
8
|
+
{
|
|
9
|
+
className: "pointer-events-none absolute z-20",
|
|
10
|
+
initial: { opacity: 0, left: t, top: i },
|
|
11
|
+
animate: {
|
|
12
|
+
opacity: [0, 1, 0],
|
|
13
|
+
scale: [0, c, 0],
|
|
14
|
+
rotate: [75, 120, 150]
|
|
15
|
+
},
|
|
16
|
+
transition: { duration: 0.8, repeat: 1 / 0, delay: l },
|
|
17
|
+
width: "21",
|
|
18
|
+
height: "21",
|
|
19
|
+
viewBox: "0 0 21 21",
|
|
20
|
+
children: /* @__PURE__ */ r(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M9.82531 0.843845C10.0553 0.215178 10.9446 0.215178 11.1746 0.843845L11.8618 2.72026C12.4006 4.19229 12.3916 6.39157 13.5 7.5C14.6084 8.60843 16.8077 8.59935 18.2797 9.13822L20.1561 9.82534C20.7858 10.0553 20.7858 10.9447 20.1561 11.1747L18.2797 11.8618C16.8077 12.4007 14.6084 12.3916 13.5 13.5C12.3916 14.6084 12.4006 16.8077 11.8618 18.2798L11.1746 20.1562C10.9446 20.7858 10.0553 20.7858 9.82531 20.1562L9.13819 18.2798C8.59932 16.8077 8.60843 14.6084 7.5 13.5C6.39157 12.3916 4.19225 12.4007 2.72023 11.8618L0.843814 11.1747C0.215148 10.9447 0.215148 10.0553 0.843814 9.82534L2.72023 9.13822C4.19225 8.59935 6.39157 8.60843 7.5 7.5C8.60843 6.39157 8.59932 4.19229 9.13819 2.72026L9.82531 0.843845Z",
|
|
24
|
+
fill: s
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
},
|
|
28
|
+
o
|
|
29
|
+
), E = ({
|
|
30
|
+
children: o,
|
|
31
|
+
colors: t = { first: "#9E7AFF", second: "#FE8BBB" },
|
|
32
|
+
className: i,
|
|
33
|
+
sparklesCount: s = 10,
|
|
34
|
+
...l
|
|
35
|
+
}) => {
|
|
36
|
+
const [c, d] = S([]);
|
|
37
|
+
return y(() => {
|
|
38
|
+
const a = () => {
|
|
39
|
+
const e = `${Math.random() * 100}%`, n = `${Math.random() * 100}%`, h = Math.random() > 0.5 ? t.first : t.second, u = Math.random() * 2, C = Math.random() * 1 + 0.3, v = Math.random() * 10 + 5;
|
|
40
|
+
return { id: `${e}-${n}-${Date.now()}`, x: e, y: n, color: h, delay: u, scale: C, lifespan: v };
|
|
41
|
+
}, p = () => {
|
|
42
|
+
const e = Array.from({ length: s }, a);
|
|
43
|
+
d(e);
|
|
44
|
+
}, m = () => {
|
|
45
|
+
d(
|
|
46
|
+
(e) => e.map((n) => n.lifespan <= 0 ? a() : { ...n, lifespan: n.lifespan - 0.1 })
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
p();
|
|
50
|
+
const f = setInterval(m, 100);
|
|
51
|
+
return () => clearInterval(f);
|
|
52
|
+
}, [t.first, t.second, s]), /* @__PURE__ */ r(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: M("text-6xl font-bold", i),
|
|
56
|
+
...l,
|
|
57
|
+
style: {
|
|
58
|
+
"--sparkles-first-color": `${t.first}`,
|
|
59
|
+
"--sparkles-second-color": `${t.second}`
|
|
60
|
+
},
|
|
61
|
+
children: /* @__PURE__ */ x("span", { className: "relative inline-block", children: [
|
|
62
|
+
c.map((a) => /* @__PURE__ */ r($, { ...a }, a.id)),
|
|
63
|
+
/* @__PURE__ */ r("strong", { children: o })
|
|
64
|
+
] })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
E as SparklesText
|
|
70
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useRef as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import h from "../../node_modules/.pnpm/@monaco-editor_react@4.7.0_monaco-editor@0.52.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@monaco-editor/react/dist/index.js";
|
|
3
|
+
import { useRef as c } from "react";
|
|
4
|
+
const M = ({
|
|
5
5
|
height: o = "500px",
|
|
6
|
-
width:
|
|
7
|
-
language:
|
|
8
|
-
defaultValue:
|
|
9
|
-
value:
|
|
10
|
-
theme:
|
|
11
|
-
readOnly:
|
|
12
|
-
onChange:
|
|
13
|
-
onMount:
|
|
14
|
-
className:
|
|
6
|
+
width: t = "100%",
|
|
7
|
+
language: i = "plaintext",
|
|
8
|
+
defaultValue: a,
|
|
9
|
+
value: l,
|
|
10
|
+
theme: r = "light",
|
|
11
|
+
readOnly: e = !1,
|
|
12
|
+
onChange: d,
|
|
13
|
+
onMount: s,
|
|
14
|
+
className: u
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
16
|
+
const f = c(null);
|
|
17
|
+
return /* @__PURE__ */ m(
|
|
18
|
+
h,
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
20
|
+
className: u,
|
|
21
21
|
height: o,
|
|
22
|
-
width:
|
|
23
|
-
defaultLanguage:
|
|
24
|
-
defaultValue:
|
|
25
|
-
value:
|
|
26
|
-
theme:
|
|
27
|
-
onMount: (
|
|
28
|
-
|
|
22
|
+
width: t,
|
|
23
|
+
defaultLanguage: i,
|
|
24
|
+
defaultValue: a,
|
|
25
|
+
value: l,
|
|
26
|
+
theme: r,
|
|
27
|
+
onMount: (n, p) => {
|
|
28
|
+
f.current = n, s?.(n, p), n.updateOptions({
|
|
29
29
|
minimap: { enabled: !1 },
|
|
30
30
|
// 禁用小地图
|
|
31
31
|
lineNumbers: "on",
|
|
@@ -34,21 +34,21 @@ const D = ({
|
|
|
34
34
|
// 方形选区
|
|
35
35
|
scrollBeyondLastLine: !1,
|
|
36
36
|
// 禁止滚动到最后一行之后
|
|
37
|
-
readOnly:
|
|
37
|
+
readOnly: e,
|
|
38
38
|
// 是否只读
|
|
39
39
|
fontSize: 14
|
|
40
40
|
// 字体大小
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
|
-
onChange: (
|
|
44
|
-
|
|
43
|
+
onChange: (n) => {
|
|
44
|
+
d?.(n || "");
|
|
45
45
|
},
|
|
46
46
|
options: {
|
|
47
|
-
readOnly:
|
|
47
|
+
readOnly: e
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
M as TxtEditor
|
|
54
54
|
};
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import { useScroll as
|
|
5
|
-
import
|
|
1
|
+
import { jsxs as w, Fragment as E, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i } from "react";
|
|
3
|
+
import t from "clsx";
|
|
4
|
+
import { useScroll as F, useTransform as _, useMotionTemplate as v, motion as n } from "motion/react";
|
|
5
|
+
import y from "./index.module.css.js";
|
|
6
6
|
const I = 16, L = 1.5, R = "normal", k = ({
|
|
7
|
-
content:
|
|
8
|
-
lineHeight:
|
|
9
|
-
fontSize:
|
|
10
|
-
fontWeight:
|
|
11
|
-
className:
|
|
12
|
-
style:
|
|
13
|
-
onProgressChange:
|
|
7
|
+
content: c,
|
|
8
|
+
lineHeight: a = L,
|
|
9
|
+
fontSize: f = I,
|
|
10
|
+
fontWeight: m = R,
|
|
11
|
+
className: p = "",
|
|
12
|
+
style: d = {},
|
|
13
|
+
onProgressChange: u,
|
|
14
14
|
initialScrollPosition: S,
|
|
15
15
|
cacheKey: A,
|
|
16
|
-
showTopProgress:
|
|
17
|
-
topProgressClassName:
|
|
18
|
-
showBottomProgress:
|
|
19
|
-
bottomProgressClassName:
|
|
16
|
+
showTopProgress: g = !0,
|
|
17
|
+
topProgressClassName: h,
|
|
18
|
+
showBottomProgress: x = !0,
|
|
19
|
+
bottomProgressClassName: T
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
container:
|
|
21
|
+
const r = i(null), o = i(null), { scrollYProgress: l } = F({
|
|
22
|
+
container: r,
|
|
23
23
|
target: o
|
|
24
|
-
}), s =
|
|
25
|
-
return s.on("change", (
|
|
26
|
-
|
|
27
|
-
}), /* @__PURE__ */ E
|
|
28
|
-
|
|
24
|
+
}), s = _(() => (l.get() * 100).toFixed(2).replace(/\.0*$/, "")), b = v`${s}%`;
|
|
25
|
+
return s.on("change", (N) => {
|
|
26
|
+
u?.(Number(N));
|
|
27
|
+
}), /* @__PURE__ */ w(E, { children: [
|
|
28
|
+
g && /* @__PURE__ */ e(
|
|
29
29
|
n.div,
|
|
30
30
|
{
|
|
31
31
|
id: "scroll-indicator",
|
|
32
|
-
className:
|
|
32
|
+
className: t(
|
|
33
33
|
"fixed left-0 top-0 right-0 bg-[#ff0088] h-2.5",
|
|
34
|
-
|
|
34
|
+
h
|
|
35
35
|
),
|
|
36
36
|
style: {
|
|
37
|
-
scaleX:
|
|
37
|
+
scaleX: l,
|
|
38
38
|
originX: 0
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
45
|
+
className: t(
|
|
46
46
|
"relative w-full h-full overflow-y-auto",
|
|
47
|
-
|
|
47
|
+
y.textContent
|
|
48
48
|
// "scrollbar-thumb-rounded-full scrollbar-track-rounded-full scrollbar scrollbar-thumb-slate-700 scrollbar-track-slate-300",
|
|
49
49
|
),
|
|
50
|
-
ref:
|
|
51
|
-
children: /* @__PURE__ */
|
|
50
|
+
ref: r,
|
|
51
|
+
children: /* @__PURE__ */ e(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
ref: o,
|
|
55
|
-
className:
|
|
55
|
+
className: t("w-full whitespace-pre-wrap break-words", p),
|
|
56
56
|
style: {
|
|
57
|
-
fontSize: `${
|
|
58
|
-
lineHeight:
|
|
59
|
-
fontWeight:
|
|
60
|
-
...
|
|
57
|
+
fontSize: `${f}px`,
|
|
58
|
+
lineHeight: a,
|
|
59
|
+
fontWeight: m,
|
|
60
|
+
...d
|
|
61
61
|
},
|
|
62
|
-
children:
|
|
62
|
+
children: c
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
|
|
67
|
+
x && /* @__PURE__ */ e(
|
|
68
68
|
n.div,
|
|
69
69
|
{
|
|
70
70
|
id: "scroll-present",
|
|
71
|
-
className:
|
|
71
|
+
className: t(
|
|
72
72
|
"fixed text-white rounded text-sm bg-black bg-opacity-70 pl-2 pr-2 pb-1 pt-1 right-5 bottom-5",
|
|
73
|
-
|
|
73
|
+
T
|
|
74
74
|
),
|
|
75
|
-
children:
|
|
75
|
+
children: b
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] });
|
package/dist/es/index.d.ts
CHANGED
|
@@ -14,3 +14,6 @@ export * from './components/qr-code';
|
|
|
14
14
|
export * from './components/react-force-graph-3d';
|
|
15
15
|
export * from './components/confetti-button';
|
|
16
16
|
export * from './hooks/useStayTimeReport';
|
|
17
|
+
export * from './components/pointer';
|
|
18
|
+
export * from './components/sparkles-text';
|
|
19
|
+
export * from './components/blur-fade';
|
package/dist/es/index.js
CHANGED
|
@@ -1,40 +1,46 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Button as
|
|
2
|
+
import { Button as t } from "./components/button/Button.js";
|
|
3
3
|
import { TxtReader as f } from "./components/txt-reader/TxtReader.js";
|
|
4
|
-
import { HyperText as
|
|
4
|
+
import { HyperText as x } from "./components/hyper-text/index.js";
|
|
5
5
|
import { TypingAnimation as n } from "./components/typing-animation/index.js";
|
|
6
6
|
import { QRCode as d } from "./components/qr-code/index.js";
|
|
7
7
|
import { Confetti as u, ConfettiButton as c } from "./components/confetti-button/index.js";
|
|
8
|
-
import { useStayTimeReport as
|
|
8
|
+
import { useStayTimeReport as T } from "./hooks/useStayTimeReport.js";
|
|
9
9
|
import { default as g } from "./components/pinch-content/PinchContent.js";
|
|
10
|
-
import { default as
|
|
11
|
-
import { ShimmerButton as
|
|
10
|
+
import { default as B } from "./components/image-viewer/ImageViewer.js";
|
|
11
|
+
import { ShimmerButton as y } from "./components/shimmer-button/ShimmerButton.js";
|
|
12
12
|
import { default as I } from "./components/image-compare/ImageCompare.js";
|
|
13
|
-
import { TextAnimate as
|
|
14
|
-
import { Dock as
|
|
15
|
-
import { TxtEditor as
|
|
16
|
-
import { Message as
|
|
13
|
+
import { TextAnimate as S } from "./components/text-animate/TextAnimate.js";
|
|
14
|
+
import { Dock as F, DockIcon as P, dockVariants as V } from "./components/dock/Duck.js";
|
|
15
|
+
import { TxtEditor as E } from "./components/txt-editor/TxtEditor.js";
|
|
16
|
+
import { Message as H } from "./components/message/Message.js";
|
|
17
17
|
import { default as Q } from "./node_modules/.pnpm/react-force-graph-3d@1.28.0_react@19.1.0/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js";
|
|
18
18
|
import { default as j } from "./node_modules/.pnpm/canvas-confetti@1.9.3/node_modules/canvas-confetti/dist/confetti.module.js";
|
|
19
|
+
import { Pointer as v } from "./components/pointer/Pointer.js";
|
|
20
|
+
import { SparklesText as J } from "./components/sparkles-text/SparklesText.js";
|
|
21
|
+
import { BlurFade as L } from "./components/blur-fade/BlurFade.js";
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
L as BlurFade,
|
|
24
|
+
t as Button,
|
|
21
25
|
u as Confetti,
|
|
22
26
|
c as ConfettiButton,
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
F as Dock,
|
|
28
|
+
P as DockIcon,
|
|
25
29
|
Q as ForceGraph3D,
|
|
26
|
-
|
|
30
|
+
x as HyperText,
|
|
27
31
|
I as ImageCompare,
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
B as ImageViewer,
|
|
33
|
+
H as Message,
|
|
30
34
|
g as PinchContent,
|
|
35
|
+
v as Pointer,
|
|
31
36
|
d as QRCode,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
y as ShimmerButton,
|
|
38
|
+
J as SparklesText,
|
|
39
|
+
S as TextAnimate,
|
|
40
|
+
E as TxtEditor,
|
|
35
41
|
f as TxtReader,
|
|
36
42
|
n as TypingAnimation,
|
|
37
43
|
j as confetti,
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
V as dockVariants,
|
|
45
|
+
T as useStayTimeReport
|
|
40
46
|
};
|