@xiping/react-components 1.0.25 → 1.0.27
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/comic-text/ComicText.d.ts +9 -0
- package/dist/cjs/components/comic-text/ComicText.js +4 -0
- package/dist/cjs/components/comic-text/index.d.ts +1 -0
- package/dist/cjs/components/flip-text/FlipText.d.ts +20 -0
- package/dist/cjs/components/flip-text/FlipText.js +1 -0
- package/dist/cjs/components/flip-text/index.d.ts +1 -0
- package/dist/cjs/components/image-viewer/ImageThumbnails.d.ts +7 -0
- package/dist/cjs/components/image-viewer/ImageThumbnails.js +1 -0
- package/dist/cjs/components/image-viewer/ImageViewer.js +2 -2
- package/dist/cjs/components/image-viewer/index.d.ts +1 -3
- package/dist/cjs/components/video-dialog/VideoDialog.d.ts +10 -0
- package/dist/cjs/components/video-dialog/VideoDialog.js +1 -0
- package/dist/cjs/components/video-dialog/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js +6 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js +6 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js +6 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/play.js +6 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js +6 -0
- package/dist/cjs/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js +6 -0
- package/dist/cjs/react-components.css +1 -1
- package/dist/es/components/comic-text/ComicText.d.ts +9 -0
- package/dist/es/components/comic-text/ComicText.js +51 -0
- package/dist/es/components/comic-text/index.d.ts +1 -0
- package/dist/es/components/flip-text/FlipText.d.ts +20 -0
- package/dist/es/components/flip-text/FlipText.js +37 -0
- package/dist/es/components/flip-text/index.d.ts +1 -0
- package/dist/es/components/image-viewer/ImageThumbnails.d.ts +7 -0
- package/dist/es/components/image-viewer/ImageThumbnails.js +74 -0
- package/dist/es/components/image-viewer/ImageViewer.js +63 -105
- package/dist/es/components/image-viewer/index.d.ts +1 -3
- package/dist/es/components/video-dialog/VideoDialog.d.ts +10 -0
- package/dist/es/components/video-dialog/VideoDialog.js +127 -0
- package/dist/es/components/video-dialog/index.d.ts +1 -0
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +26 -20
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js +41 -0
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js +27 -0
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/play.js +12 -0
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js +15 -0
- package/dist/es/node_modules/.pnpm/lucide-react@0.525.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js +24 -0
- package/dist/es/react-components.css +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { forwardRef as l, createElement as o } from "react";
|
|
2
|
+
import A from "./defaultAttributes.js";
|
|
3
|
+
import { mergeClasses as b, hasA11yProp as c } from "./shared/src/utils.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.525.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const h = l(
|
|
11
|
+
({
|
|
12
|
+
color: m = "currentColor",
|
|
13
|
+
size: t = 24,
|
|
14
|
+
strokeWidth: e = 2,
|
|
15
|
+
absoluteStrokeWidth: s,
|
|
16
|
+
className: u = "",
|
|
17
|
+
children: r,
|
|
18
|
+
iconNode: f,
|
|
19
|
+
...a
|
|
20
|
+
}, p) => o(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
ref: p,
|
|
24
|
+
...A,
|
|
25
|
+
width: t,
|
|
26
|
+
height: t,
|
|
27
|
+
stroke: m,
|
|
28
|
+
strokeWidth: s ? Number(e) * 24 / Number(t) : e,
|
|
29
|
+
className: b("lucide", u),
|
|
30
|
+
...!r && !c(a) && { "aria-hidden": "true" },
|
|
31
|
+
...a
|
|
32
|
+
},
|
|
33
|
+
[
|
|
34
|
+
...f.map(([i, d]) => o(i, d)),
|
|
35
|
+
...Array.isArray(r) ? r : [r]
|
|
36
|
+
]
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
export {
|
|
40
|
+
h as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { forwardRef as m, createElement as l } from "react";
|
|
2
|
+
import { mergeClasses as d, toKebabCase as f, toPascalCase as r } from "./shared/src/utils.js";
|
|
3
|
+
import n from "./Icon.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.525.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const C = (e, t) => {
|
|
11
|
+
const o = m(
|
|
12
|
+
({ className: a, ...s }, c) => l(n, {
|
|
13
|
+
ref: c,
|
|
14
|
+
iconNode: t,
|
|
15
|
+
className: d(
|
|
16
|
+
`lucide-${f(r(e))}`,
|
|
17
|
+
`lucide-${e}`,
|
|
18
|
+
a
|
|
19
|
+
),
|
|
20
|
+
...s
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
return o.displayName = r(e), o;
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
C as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import o from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], a = o("play", e);
|
|
9
|
+
export {
|
|
10
|
+
e as __iconNode,
|
|
11
|
+
a as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = [
|
|
9
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
10
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
|
+
], c = e("x", o);
|
|
12
|
+
export {
|
|
13
|
+
o as __iconNode,
|
|
14
|
+
c as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
const s = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a = (t) => t.replace(
|
|
8
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
9
|
+
(e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
10
|
+
), n = (t) => {
|
|
11
|
+
const e = a(t);
|
|
12
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
13
|
+
}, c = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), i = (t) => {
|
|
14
|
+
for (const e in t)
|
|
15
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
16
|
+
return !0;
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
i as hasA11yProp,
|
|
20
|
+
c as mergeClasses,
|
|
21
|
+
a as toCamelCase,
|
|
22
|
+
s as toKebabCase,
|
|
23
|
+
n as toPascalCase
|
|
24
|
+
};
|