@xiping/react-components 0.0.48 → 0.0.49
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/_virtual/jsx-runtime.js +6 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/_virtual/jsx-runtime2.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/components/button/Button.js +83 -21
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/txt-reader/TxtReader.js +68 -62
- package/dist/components/txt-reader/TxtReader.js.map +1 -0
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +609 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +29 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +11 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/react-components.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +3 -3
- package/dist/App.d.ts +0 -3
- package/dist/App.js +0 -8
- package/dist/components/button/Button.d.ts +0 -24
- package/dist/components/txt-reader/TxtReader.d.ts +0 -14
- package/dist/index.d.ts +0 -3
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -9
- package/dist/pages/home/Home.d.ts +0 -2
- package/dist/pages/home/Home.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,22 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import f from "clsx";
|
|
3
|
+
const d = ({
|
|
4
|
+
variant: a = "primary",
|
|
5
|
+
size: l = "medium",
|
|
6
|
+
className: n,
|
|
7
|
+
children: c,
|
|
8
|
+
leftIcon: s,
|
|
9
|
+
rightIcon: t,
|
|
10
|
+
isLoading: r = !1,
|
|
11
|
+
isDisabled: o = !1,
|
|
12
|
+
fullWidth: i = !1,
|
|
13
|
+
type: m = "button",
|
|
14
|
+
...u
|
|
15
|
+
}) => {
|
|
16
|
+
const g = "inline-flex items-center justify-center rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2", p = {
|
|
17
|
+
primary: "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500",
|
|
18
|
+
secondary: "bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500",
|
|
19
|
+
outline: "border border-gray-300 bg-transparent hover:bg-gray-50 focus:ring-gray-500",
|
|
20
|
+
ghost: "bg-transparent hover:bg-gray-100 focus:ring-gray-500"
|
|
21
|
+
}, x = {
|
|
22
|
+
small: "px-3 py-1.5 text-sm",
|
|
23
|
+
medium: "px-4 py-2 text-base",
|
|
24
|
+
large: "px-6 py-3 text-lg"
|
|
25
|
+
}, y = f(
|
|
26
|
+
g,
|
|
27
|
+
p[a],
|
|
28
|
+
x[l],
|
|
29
|
+
{
|
|
30
|
+
"opacity-50 cursor-not-allowed": o,
|
|
31
|
+
"w-full": i,
|
|
32
|
+
"cursor-wait": r
|
|
33
|
+
},
|
|
34
|
+
n
|
|
35
|
+
);
|
|
36
|
+
return /* @__PURE__ */ e.jsxs(
|
|
37
|
+
"button",
|
|
38
|
+
{
|
|
39
|
+
type: m,
|
|
40
|
+
className: y,
|
|
41
|
+
disabled: o || r,
|
|
42
|
+
...u,
|
|
43
|
+
children: [
|
|
44
|
+
r && /* @__PURE__ */ e.jsxs(
|
|
45
|
+
"svg",
|
|
46
|
+
{
|
|
47
|
+
className: "animate-spin -ml-1 mr-2 h-4 w-4",
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
fill: "none",
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ e.jsx(
|
|
53
|
+
"circle",
|
|
54
|
+
{
|
|
55
|
+
className: "opacity-25",
|
|
56
|
+
cx: "12",
|
|
57
|
+
cy: "12",
|
|
58
|
+
r: "10",
|
|
59
|
+
stroke: "currentColor",
|
|
60
|
+
strokeWidth: "4"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ e.jsx(
|
|
64
|
+
"path",
|
|
65
|
+
{
|
|
66
|
+
className: "opacity-75",
|
|
67
|
+
fill: "currentColor",
|
|
68
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
!r && s && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: s }),
|
|
75
|
+
c,
|
|
76
|
+
!r && t && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: t })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
22
80
|
};
|
|
81
|
+
export {
|
|
82
|
+
d as Button
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import { ReactNode, ButtonHTMLAttributes } from \"react\";\nimport clsx from \"clsx\";\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost';\nexport type ButtonSize = 'small' | 'medium' | 'large';\n\nexport interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'> {\n /** Button variant that changes the visual style */\n variant?: ButtonVariant;\n /** Size of the button */\n size?: ButtonSize;\n /** Custom class name */\n className?: string;\n /** Button contents */\n children: ReactNode;\n /** Optional icon to show before the button text */\n leftIcon?: ReactNode;\n /** Optional icon to show after the button text */\n rightIcon?: ReactNode;\n /** Whether the button is in loading state */\n isLoading?: boolean;\n /** Whether the button is disabled */\n isDisabled?: boolean;\n /** Full width button */\n fullWidth?: boolean;\n}\n\nexport const Button = ({\n variant = 'primary',\n size = 'medium',\n className,\n children,\n leftIcon,\n rightIcon,\n isLoading = false,\n isDisabled = false,\n fullWidth = false,\n type = 'button',\n ...rest\n}: ButtonProps) => {\n const baseStyles = \"inline-flex items-center justify-center rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2\";\n \n const variantStyles = {\n primary: \"bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500\",\n secondary: \"bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500\",\n outline: \"border border-gray-300 bg-transparent hover:bg-gray-50 focus:ring-gray-500\",\n ghost: \"bg-transparent hover:bg-gray-100 focus:ring-gray-500\"\n };\n\n const sizeStyles = {\n small: \"px-3 py-1.5 text-sm\",\n medium: \"px-4 py-2 text-base\",\n large: \"px-6 py-3 text-lg\"\n };\n\n const classes = clsx(\n baseStyles,\n variantStyles[variant],\n sizeStyles[size],\n {\n 'opacity-50 cursor-not-allowed': isDisabled,\n 'w-full': fullWidth,\n 'cursor-wait': isLoading\n },\n className\n );\n\n return (\n <button\n type={type}\n className={classes}\n disabled={isDisabled || isLoading}\n {...rest}\n >\n {isLoading && (\n <svg \n className=\"animate-spin -ml-1 mr-2 h-4 w-4\" \n xmlns=\"http://www.w3.org/2000/svg\" \n fill=\"none\" \n viewBox=\"0 0 24 24\"\n >\n <circle \n className=\"opacity-25\" \n cx=\"12\" \n cy=\"12\" \n r=\"10\" \n stroke=\"currentColor\" \n strokeWidth=\"4\"\n />\n <path \n className=\"opacity-75\" \n fill=\"currentColor\" \n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n />\n </svg>\n )}\n {!isLoading && leftIcon && <span className=\"mr-2\">{leftIcon}</span>}\n {children}\n {!isLoading && rightIcon && <span className=\"ml-2\">{rightIcon}</span>}\n </button>\n );\n};\n"],"names":["Button","variant","size","className","children","leftIcon","rightIcon","isLoading","isDisabled","fullWidth","type","rest","baseStyles","variantStyles","sizeStyles","classes","clsx","jsxs","jsx"],"mappings":";;AA2BO,MAAMA,IAAS,CAAC;AAAA,EACrB,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,YAAAC,IAAa;AAAA,EACb,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,UAAUA,EAAA,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAChE;AAEJ;"}
|
|
@@ -1,63 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { debounce } from "lodash-es";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
import { j as c } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useRef as H, useState as I, useCallback as u, useEffect as d } from "react";
|
|
3
|
+
import { debounce as R } from "lodash-es";
|
|
4
|
+
import L from "clsx";
|
|
5
|
+
const N = 16, _ = 1.5, j = "normal", A = ({
|
|
6
|
+
content: f,
|
|
7
|
+
lineHeight: p = _,
|
|
8
|
+
fontSize: m = N,
|
|
9
|
+
fontWeight: x = j,
|
|
10
|
+
className: E = "",
|
|
11
|
+
style: T = {},
|
|
12
|
+
onProgressChange: s,
|
|
13
|
+
initialScrollPosition: i,
|
|
14
|
+
cacheKey: e
|
|
15
|
+
}) => {
|
|
16
|
+
const r = H(null), [b, v] = I(0), l = u(() => {
|
|
17
|
+
if (!r.current) return;
|
|
18
|
+
const t = r.current, o = t.scrollTop, g = t.scrollHeight, w = t.clientHeight, a = Math.min(
|
|
19
|
+
Math.round(o / (g - w) * 100),
|
|
20
|
+
100
|
|
21
|
+
);
|
|
22
|
+
v(a), s == null || s(a), e && localStorage.setItem(`txtReader-${e}`, o.toString());
|
|
23
|
+
}, [e, s]), n = u(
|
|
24
|
+
R(l, 100),
|
|
25
|
+
[l]
|
|
26
|
+
);
|
|
27
|
+
return d(() => {
|
|
28
|
+
if (!r.current) return;
|
|
29
|
+
let t = i;
|
|
30
|
+
if (e) {
|
|
31
|
+
const o = localStorage.getItem(`txtReader-${e}`);
|
|
32
|
+
o && (t = parseInt(o, 10));
|
|
33
|
+
}
|
|
34
|
+
t && (r.current.scrollTop = t, l());
|
|
35
|
+
}, [e, i, l]), d(() => {
|
|
36
|
+
const t = r.current;
|
|
37
|
+
if (t)
|
|
38
|
+
return t.addEventListener("scroll", n), () => {
|
|
39
|
+
t.removeEventListener("scroll", n);
|
|
40
|
+
};
|
|
41
|
+
}, [n]), /* @__PURE__ */ c.jsxs("div", { className: "relative w-full h-full", children: [
|
|
42
|
+
/* @__PURE__ */ c.jsx(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref: r,
|
|
46
|
+
className: L(
|
|
47
|
+
"w-full overflow-auto whitespace-pre-wrap break-words",
|
|
48
|
+
E
|
|
49
|
+
),
|
|
50
|
+
style: {
|
|
51
|
+
fontSize: `${m}px`,
|
|
52
|
+
lineHeight: p,
|
|
53
|
+
fontWeight: x,
|
|
54
|
+
...T
|
|
55
|
+
},
|
|
56
|
+
children: f
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ c.jsxs("div", { className: "fixed text-white rounded text-sm bg-black bg-opacity-70 pl-2 pr-2 pb-1 pt-1 right-5 bottom-5", children: [
|
|
60
|
+
b,
|
|
61
|
+
"%"
|
|
62
|
+
] })
|
|
63
|
+
] });
|
|
62
64
|
};
|
|
63
|
-
export
|
|
65
|
+
export {
|
|
66
|
+
A as TxtReader,
|
|
67
|
+
A as default
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=TxtReader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxtReader.js","sources":["../../../src/components/txt-reader/TxtReader.tsx"],"sourcesContent":["import {\n useEffect,\n useRef,\n useState,\n useCallback,\n CSSProperties,\n FC,\n} from \"react\";\nimport { debounce } from \"lodash-es\";\nimport clsx from \"clsx\";\ninterface TxtReaderProps {\n content: string;\n lineHeight?: number;\n fontSize?: number;\n fontWeight?: number | string;\n className?: string;\n style?: CSSProperties;\n onProgressChange?: (progress: number) => void;\n initialScrollPosition?: number;\n cacheKey?: string; // 用于缓存阅读位置的key\n}\n\nconst DEFAULT_FONT_SIZE = 16;\nconst DEFAULT_LINE_HEIGHT = 1.5;\nconst DEFAULT_FONT_WEIGHT = \"normal\";\n\nexport const TxtReader: FC<TxtReaderProps> = ({\n content,\n lineHeight = DEFAULT_LINE_HEIGHT,\n fontSize = DEFAULT_FONT_SIZE,\n fontWeight = DEFAULT_FONT_WEIGHT,\n className = \"\",\n style = {},\n onProgressChange,\n initialScrollPosition,\n cacheKey,\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [readingProgress, setReadingProgress] = useState(0);\n\n // 计算阅读进度\n const calculateProgress = useCallback(() => {\n if (!containerRef.current) return;\n\n const container = containerRef.current;\n const scrollTop = container.scrollTop;\n const scrollHeight = container.scrollHeight;\n const clientHeight = container.clientHeight;\n\n const progress = Math.min(\n Math.round((scrollTop / (scrollHeight - clientHeight)) * 100),\n 100,\n );\n\n setReadingProgress(progress);\n onProgressChange?.(progress);\n\n // 保存阅读位置到 localStorage\n if (cacheKey) {\n localStorage.setItem(`txtReader-${cacheKey}`, scrollTop.toString());\n }\n }, [cacheKey, onProgressChange]);\n\n // 使用 debounce 优化滚动事件处理\n const debouncedCalculateProgress = useCallback(\n debounce(calculateProgress, 100),\n [calculateProgress],\n );\n\n // 初始化滚动位置\n useEffect(() => {\n if (!containerRef.current) return;\n\n let scrollPosition = initialScrollPosition;\n\n // 如果有缓存key,尝试从localStorage获取保存的位置\n if (cacheKey) {\n const savedPosition = localStorage.getItem(`txtReader-${cacheKey}`);\n if (savedPosition) {\n scrollPosition = parseInt(savedPosition, 10);\n }\n }\n\n if (scrollPosition) {\n containerRef.current.scrollTop = scrollPosition;\n calculateProgress();\n }\n }, [cacheKey, initialScrollPosition, calculateProgress]);\n\n // 监听滚动事件\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n container.addEventListener(\"scroll\", debouncedCalculateProgress);\n return () => {\n container.removeEventListener(\"scroll\", debouncedCalculateProgress);\n };\n }, [debouncedCalculateProgress]);\n\n return (\n <div className=\"relative w-full h-full\">\n <div\n ref={containerRef}\n className={clsx(\n \"w-full overflow-auto whitespace-pre-wrap break-words\",\n className,\n )}\n style={{\n fontSize: `${fontSize}px`,\n lineHeight: lineHeight,\n fontWeight: fontWeight,\n ...style,\n }}\n >\n {content}\n </div>\n <div className=\"fixed text-white rounded text-sm bg-black bg-opacity-70 pl-2 pr-2 pb-1 pt-1 right-5 bottom-5\">\n {readingProgress}%\n </div>\n </div>\n );\n};\n\nexport default TxtReader;\n"],"names":["DEFAULT_FONT_SIZE","DEFAULT_LINE_HEIGHT","DEFAULT_FONT_WEIGHT","TxtReader","content","lineHeight","fontSize","fontWeight","className","style","onProgressChange","initialScrollPosition","cacheKey","containerRef","useRef","readingProgress","setReadingProgress","useState","calculateProgress","useCallback","container","scrollTop","scrollHeight","clientHeight","progress","debouncedCalculateProgress","debounce","useEffect","scrollPosition","savedPosition","jsxs","jsx","clsx"],"mappings":";;;;AAsBA,MAAMA,IAAoB,IACpBC,IAAsB,KACtBC,IAAsB,UAEfC,IAAgC,CAAC;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AACD,QAAAL,EAAA,oBAAoB,UAAUK,CAA0B;AAAA,MACpE;AAAA,EAAA,GACC,CAACA,CAA0B,CAAC,GAG7BK,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAU,0BACb,UAAA;AAAA,IAAAC,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAKlB;AAAA,QACL,WAAWmB;AAAA,UACT;AAAA,UACAxB;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,UAAU,GAAGF,CAAQ;AAAA,UACrB,YAAAD;AAAA,UACA,YAAAE;AAAA,UACA,GAAGE;AAAA,QACL;AAAA,QAEC,UAAAL;AAAA,MAAA;AAAA,IACH;AAAA,IACA0B,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,gGACZ,UAAA;AAAA,MAAAf;AAAA,MAAgB;AAAA,IAAA,EACnB,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Button as e } from "./components/button/Button.js";
|
|
3
|
+
import { TxtReader as p } from "./components/txt-reader/TxtReader.js";
|
|
4
|
+
export {
|
|
5
|
+
e as Button,
|
|
6
|
+
p as TxtReader
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|