asterui 0.12.16 → 0.12.18
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/Card.d.ts +14 -2
- package/dist/components/Checkbox.d.ts +3 -1
- package/dist/components/Form.d.ts +7 -1
- package/dist/components/Input.d.ts +10 -2
- package/dist/components/Select.d.ts +8 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +134 -136
- package/dist/index.js.map +1 -1
- package/dist/index10.js +70 -65
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +43 -11
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +11 -44
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +12 -10
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +7 -14
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +12 -7
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +29 -11
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +16 -29
- package/dist/index106.js.map +1 -1
- package/dist/index13.js +86 -68
- package/dist/index13.js.map +1 -1
- package/dist/index34.js +198 -158
- package/dist/index34.js.map +1 -1
- package/dist/index42.js +185 -148
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +19 -19
- package/dist/index43.js.map +1 -1
- package/dist/index46.js +134 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +10 -134
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +35 -13
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +34 -35
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +81 -34
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +166 -71
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +144 -167
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +11 -152
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +20 -10
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +14 -22
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +7 -14
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +333 -6
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +47 -334
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +122 -47
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +108 -120
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +167 -107
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +29 -167
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +120 -30
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +80 -116
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +19 -85
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +73 -19
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +54 -71
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -56
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +49 -42
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +121 -50
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +102 -118
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +72 -105
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +68 -41
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +19 -66
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +55 -18
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +251 -55
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +22 -254
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +31 -22
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +93 -30
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +324 -89
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +73 -322
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +39 -79
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +23 -40
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +93 -21
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +148 -87
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +152 -147
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +63 -159
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +35 -65
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +234 -35
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +31 -231
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +210 -34
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +198 -195
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +241 -159
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +166 -283
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +253 -173
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +14 -258
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +31 -12
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -32
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +13 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Label.d.ts +0 -15
- package/dist/index107.js +0 -21
- package/dist/index107.js.map +0 -1
package/dist/index64.js
CHANGED
|
@@ -1,125 +1,89 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
children:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
disabled: y = !1,
|
|
15
|
-
icon: p,
|
|
16
|
-
showCancel: L = !0,
|
|
17
|
-
className: $,
|
|
18
|
-
...O
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as B, useRef as f, useEffect as b } from "react";
|
|
3
|
+
const $ = ({
|
|
4
|
+
children: h,
|
|
5
|
+
content: v,
|
|
6
|
+
title: i,
|
|
7
|
+
trigger: t = "hover",
|
|
8
|
+
placement: x = "top",
|
|
9
|
+
open: r,
|
|
10
|
+
onOpenChange: L,
|
|
11
|
+
className: g = "",
|
|
12
|
+
overlayClassName: k = "",
|
|
13
|
+
...C
|
|
19
14
|
}) => {
|
|
20
|
-
const [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
const [E, M] = B(!1), a = f(null), c = f(null), n = f(void 0), s = r !== void 0 ? r : E, e = (o) => {
|
|
16
|
+
r === void 0 && M(o), L?.(o);
|
|
17
|
+
}, m = () => {
|
|
18
|
+
t === "hover" && (n.current && clearTimeout(n.current), e(!0));
|
|
19
|
+
}, d = () => {
|
|
20
|
+
t === "hover" && (n.current = setTimeout(() => e(!1), 100));
|
|
21
|
+
}, N = () => {
|
|
22
|
+
t === "click" && e(!s);
|
|
23
|
+
}, R = () => {
|
|
24
|
+
t === "focus" && e(!0);
|
|
25
|
+
}, w = () => {
|
|
26
|
+
t === "focus" && e(!1);
|
|
27
|
+
};
|
|
28
|
+
b(() => {
|
|
29
|
+
const o = (u) => {
|
|
30
|
+
t === "click" && s && a.current && c.current && !a.current.contains(u.target) && !c.current.contains(u.target) && e(!1);
|
|
24
31
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
33
|
+
}, [t, s]), b(() => () => {
|
|
34
|
+
n.current && clearTimeout(n.current);
|
|
35
|
+
}, []);
|
|
36
|
+
const T = () => `absolute z-50 ${{
|
|
37
|
+
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
38
|
+
topLeft: "bottom-full left-0 mb-2",
|
|
39
|
+
topRight: "bottom-full right-0 mb-2",
|
|
40
|
+
bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
|
|
41
|
+
bottomLeft: "top-full left-0 mt-2",
|
|
42
|
+
bottomRight: "top-full right-0 mt-2",
|
|
43
|
+
left: "right-full top-1/2 -translate-y-1/2 mr-2",
|
|
44
|
+
leftTop: "right-full top-0 mr-2",
|
|
45
|
+
leftBottom: "right-full bottom-0 mr-2",
|
|
46
|
+
right: "left-full top-1/2 -translate-y-1/2 ml-2",
|
|
47
|
+
rightTop: "left-full top-0 ml-2",
|
|
48
|
+
rightBottom: "left-full bottom-0 ml-2"
|
|
49
|
+
}[x]}`;
|
|
50
|
+
return /* @__PURE__ */ p("div", { className: `relative inline-block ${g}`, "data-state": s ? "open" : "closed", ...C, children: [
|
|
51
|
+
/* @__PURE__ */ l(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
ref: a,
|
|
55
|
+
onMouseEnter: m,
|
|
56
|
+
onMouseLeave: d,
|
|
57
|
+
onClick: N,
|
|
58
|
+
onFocus: R,
|
|
59
|
+
onBlur: w,
|
|
60
|
+
children: h
|
|
37
61
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
success: "btn-success",
|
|
57
|
-
warning: "btn-warning",
|
|
58
|
-
error: "btn-error",
|
|
59
|
-
info: "btn-info",
|
|
60
|
-
ghost: "btn-ghost"
|
|
61
|
-
}, b = (t) => I[t], A = /* @__PURE__ */ e(
|
|
62
|
-
"svg",
|
|
63
|
-
{
|
|
64
|
-
className: "w-5 h-5 text-warning",
|
|
65
|
-
fill: "none",
|
|
66
|
-
stroke: "currentColor",
|
|
67
|
-
viewBox: "0 0 24 24",
|
|
68
|
-
children: /* @__PURE__ */ e(
|
|
69
|
-
"path",
|
|
70
|
-
{
|
|
71
|
-
strokeLinecap: "round",
|
|
72
|
-
strokeLinejoin: "round",
|
|
73
|
-
strokeWidth: 2,
|
|
74
|
-
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
return /* @__PURE__ */ n("div", { ref: r, className: `relative inline-block ${$ || ""}`, "data-state": a ? "open" : "closed", ...O, children: [
|
|
80
|
-
K.cloneElement(c, {
|
|
81
|
-
onClick: (t) => {
|
|
82
|
-
j(t);
|
|
83
|
-
const s = c.props?.onClick;
|
|
84
|
-
s && s(t);
|
|
62
|
+
),
|
|
63
|
+
s && /* @__PURE__ */ l(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
ref: c,
|
|
67
|
+
className: T(),
|
|
68
|
+
onMouseEnter: m,
|
|
69
|
+
onMouseLeave: d,
|
|
70
|
+
children: /* @__PURE__ */ p(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: `bg-base-100 border border-base-content/10 rounded-lg shadow-lg p-3 min-w-[200px] max-w-xs ${k}`,
|
|
74
|
+
children: [
|
|
75
|
+
i && /* @__PURE__ */ l("div", { className: "font-semibold mb-2 text-base-content border-b border-base-content/10 pb-2", children: i }),
|
|
76
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-base-content/80", children: v })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
)
|
|
85
80
|
}
|
|
86
|
-
|
|
87
|
-
a && /* @__PURE__ */ e("div", { className: R(), children: /* @__PURE__ */ n("div", { ref: i, className: z(), children: [
|
|
88
|
-
/* @__PURE__ */ n("div", { className: "flex gap-3 relative z-10", children: [
|
|
89
|
-
/* @__PURE__ */ e("div", { className: "flex-shrink-0 mt-0.5", children: p !== void 0 ? p : A }),
|
|
90
|
-
/* @__PURE__ */ n("div", { className: "flex-1", children: [
|
|
91
|
-
/* @__PURE__ */ e("div", { className: "font-semibold text-base-content mb-1", children: x }),
|
|
92
|
-
d && /* @__PURE__ */ e("div", { className: "text-sm text-base-content/70 mb-3", children: d }),
|
|
93
|
-
/* @__PURE__ */ n("div", { className: "flex justify-end gap-2 mt-3", children: [
|
|
94
|
-
L && /* @__PURE__ */ e(
|
|
95
|
-
"button",
|
|
96
|
-
{
|
|
97
|
-
className: `btn btn-sm ${b(k)}`,
|
|
98
|
-
onClick: P,
|
|
99
|
-
disabled: l,
|
|
100
|
-
children: w
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
/* @__PURE__ */ n(
|
|
104
|
-
"button",
|
|
105
|
-
{
|
|
106
|
-
className: `btn btn-sm ${b(N)}`,
|
|
107
|
-
onClick: E,
|
|
108
|
-
disabled: l,
|
|
109
|
-
children: [
|
|
110
|
-
l && /* @__PURE__ */ e("span", { className: "loading loading-spinner loading-xs" }),
|
|
111
|
-
C
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
] })
|
|
116
|
-
] })
|
|
117
|
-
] }),
|
|
118
|
-
/* @__PURE__ */ e("div", { className: B() })
|
|
119
|
-
] }) })
|
|
81
|
+
)
|
|
120
82
|
] });
|
|
121
83
|
};
|
|
84
|
+
$.displayName = "Popover";
|
|
122
85
|
export {
|
|
123
|
-
|
|
86
|
+
$ as Popover,
|
|
87
|
+
$ as default
|
|
124
88
|
};
|
|
125
89
|
//# sourceMappingURL=index64.js.map
|
package/dist/index64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index64.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index64.js","sources":["../src/components/Popover.tsx"],"sourcesContent":["import React, { useState, useRef, useEffect } from 'react'\n\nexport type PopoverPlacement =\n | 'top'\n | 'topLeft'\n | 'topRight'\n | 'bottom'\n | 'bottomLeft'\n | 'bottomRight'\n | 'left'\n | 'leftTop'\n | 'leftBottom'\n | 'right'\n | 'rightTop'\n | 'rightBottom'\n\nexport type PopoverTrigger = 'hover' | 'click' | 'focus'\n\nexport interface PopoverProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content' | 'title'> {\n children: React.ReactNode\n content: React.ReactNode\n title?: React.ReactNode\n trigger?: PopoverTrigger\n placement?: PopoverPlacement\n open?: boolean\n onOpenChange?: (open: boolean) => void\n overlayClassName?: string\n}\n\nexport const Popover: React.FC<PopoverProps> = ({\n children,\n content,\n title,\n trigger = 'hover',\n placement = 'top',\n open: controlledOpen,\n onOpenChange,\n className = '',\n overlayClassName = '',\n ...rest\n}) => {\n const [internalOpen, setInternalOpen] = useState(false)\n const triggerRef = useRef<HTMLDivElement>(null)\n const popoverRef = useRef<HTMLDivElement>(null)\n const timeoutRef = useRef<NodeJS.Timeout | undefined>(undefined)\n\n const isOpen = controlledOpen !== undefined ? controlledOpen : internalOpen\n\n const setOpen = (value: boolean) => {\n if (controlledOpen === undefined) {\n setInternalOpen(value)\n }\n onOpenChange?.(value)\n }\n\n const handleMouseEnter = () => {\n if (trigger === 'hover') {\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n setOpen(true)\n }\n }\n\n const handleMouseLeave = () => {\n if (trigger === 'hover') {\n timeoutRef.current = setTimeout(() => setOpen(false), 100)\n }\n }\n\n const handleClick = () => {\n if (trigger === 'click') {\n setOpen(!isOpen)\n }\n }\n\n const handleFocus = () => {\n if (trigger === 'focus') {\n setOpen(true)\n }\n }\n\n const handleBlur = () => {\n if (trigger === 'focus') {\n setOpen(false)\n }\n }\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n trigger === 'click' &&\n isOpen &&\n triggerRef.current &&\n popoverRef.current &&\n !triggerRef.current.contains(event.target as Node) &&\n !popoverRef.current.contains(event.target as Node)\n ) {\n setOpen(false)\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside)\n return () => document.removeEventListener('mousedown', handleClickOutside)\n }, [trigger, isOpen])\n\n useEffect(() => {\n return () => {\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n }\n }, [])\n\n const getPlacementClasses = () => {\n const baseClasses = 'absolute z-50'\n\n const placements: Record<PopoverPlacement, string> = {\n top: 'bottom-full left-1/2 -translate-x-1/2 mb-2',\n topLeft: 'bottom-full left-0 mb-2',\n topRight: 'bottom-full right-0 mb-2',\n bottom: 'top-full left-1/2 -translate-x-1/2 mt-2',\n bottomLeft: 'top-full left-0 mt-2',\n bottomRight: 'top-full right-0 mt-2',\n left: 'right-full top-1/2 -translate-y-1/2 mr-2',\n leftTop: 'right-full top-0 mr-2',\n leftBottom: 'right-full bottom-0 mr-2',\n right: 'left-full top-1/2 -translate-y-1/2 ml-2',\n rightTop: 'left-full top-0 ml-2',\n rightBottom: 'left-full bottom-0 ml-2',\n }\n\n return `${baseClasses} ${placements[placement]}`\n }\n\n return (\n <div className={`relative inline-block ${className}`} data-state={isOpen ? 'open' : 'closed'} {...rest}>\n <div\n ref={triggerRef}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onClick={handleClick}\n onFocus={handleFocus}\n onBlur={handleBlur}\n >\n {children}\n </div>\n\n {isOpen && (\n <div\n ref={popoverRef}\n className={getPlacementClasses()}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <div\n className={`bg-base-100 border border-base-content/10 rounded-lg shadow-lg p-3 min-w-[200px] max-w-xs ${overlayClassName}`}\n >\n {title && (\n <div className=\"font-semibold mb-2 text-base-content border-b border-base-content/10 pb-2\">\n {title}\n </div>\n )}\n <div className=\"text-sm text-base-content/80\">{content}</div>\n </div>\n </div>\n )}\n </div>\n )\n}\n\nPopover.displayName = 'Popover'\n\nexport default Popover\n"],"names":["Popover","children","content","title","trigger","placement","controlledOpen","onOpenChange","className","overlayClassName","rest","internalOpen","setInternalOpen","useState","triggerRef","useRef","popoverRef","timeoutRef","isOpen","setOpen","value","handleMouseEnter","handleMouseLeave","handleClick","handleFocus","handleBlur","useEffect","handleClickOutside","event","getPlacementClasses","jsxs","jsx"],"mappings":";;AA6BO,MAAMA,IAAkC,CAAC;AAAA,EAC9C,UAAAC;AAAA,EACA,SAAA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1,89 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className: g = "",
|
|
12
|
-
overlayClassName: k = "",
|
|
13
|
-
...C
|
|
14
|
-
}) => {
|
|
15
|
-
const [E, M] = B(!1), a = f(null), c = f(null), n = f(void 0), s = r !== void 0 ? r : E, e = (o) => {
|
|
16
|
-
r === void 0 && M(o), L?.(o);
|
|
17
|
-
}, m = () => {
|
|
18
|
-
t === "hover" && (n.current && clearTimeout(n.current), e(!0));
|
|
19
|
-
}, d = () => {
|
|
20
|
-
t === "hover" && (n.current = setTimeout(() => e(!1), 100));
|
|
21
|
-
}, N = () => {
|
|
22
|
-
t === "click" && e(!s);
|
|
23
|
-
}, R = () => {
|
|
24
|
-
t === "focus" && e(!0);
|
|
25
|
-
}, w = () => {
|
|
26
|
-
t === "focus" && e(!1);
|
|
27
|
-
};
|
|
28
|
-
b(() => {
|
|
29
|
-
const o = (u) => {
|
|
30
|
-
t === "click" && s && a.current && c.current && !a.current.contains(u.target) && !c.current.contains(u.target) && e(!1);
|
|
31
|
-
};
|
|
32
|
-
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
33
|
-
}, [t, s]), b(() => () => {
|
|
34
|
-
n.current && clearTimeout(n.current);
|
|
35
|
-
}, []);
|
|
36
|
-
const T = () => `absolute z-50 ${{
|
|
37
|
-
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
38
|
-
topLeft: "bottom-full left-0 mb-2",
|
|
39
|
-
topRight: "bottom-full right-0 mb-2",
|
|
40
|
-
bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
|
|
41
|
-
bottomLeft: "top-full left-0 mt-2",
|
|
42
|
-
bottomRight: "top-full right-0 mt-2",
|
|
43
|
-
left: "right-full top-1/2 -translate-y-1/2 mr-2",
|
|
44
|
-
leftTop: "right-full top-0 mr-2",
|
|
45
|
-
leftBottom: "right-full bottom-0 mr-2",
|
|
46
|
-
right: "left-full top-1/2 -translate-y-1/2 ml-2",
|
|
47
|
-
rightTop: "left-full top-0 ml-2",
|
|
48
|
-
rightBottom: "left-full bottom-0 ml-2"
|
|
49
|
-
}[x]}`;
|
|
50
|
-
return /* @__PURE__ */ p("div", { className: `relative inline-block ${g}`, "data-state": s ? "open" : "closed", ...C, children: [
|
|
51
|
-
/* @__PURE__ */ l(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
ref: a,
|
|
55
|
-
onMouseEnter: m,
|
|
56
|
-
onMouseLeave: d,
|
|
57
|
-
onClick: N,
|
|
58
|
-
onFocus: R,
|
|
59
|
-
onBlur: w,
|
|
60
|
-
children: h
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
s && /* @__PURE__ */ l(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
ref: c,
|
|
67
|
-
className: T(),
|
|
68
|
-
onMouseEnter: m,
|
|
69
|
-
onMouseLeave: d,
|
|
70
|
-
children: /* @__PURE__ */ p(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
className: `bg-base-100 border border-base-content/10 rounded-lg shadow-lg p-3 min-w-[200px] max-w-xs ${k}`,
|
|
74
|
-
children: [
|
|
75
|
-
i && /* @__PURE__ */ l("div", { className: "font-semibold mb-2 text-base-content border-b border-base-content/10 pb-2", children: i }),
|
|
76
|
-
/* @__PURE__ */ l("div", { className: "text-sm text-base-content/80", children: v })
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] });
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
const p = {
|
|
3
|
+
neutral: "progress-neutral",
|
|
4
|
+
primary: "progress-primary",
|
|
5
|
+
secondary: "progress-secondary",
|
|
6
|
+
accent: "progress-accent",
|
|
7
|
+
info: "progress-info",
|
|
8
|
+
success: "progress-success",
|
|
9
|
+
warning: "progress-warning",
|
|
10
|
+
error: "progress-error"
|
|
83
11
|
};
|
|
84
|
-
|
|
12
|
+
function t({ value: s, max: e = 100, type: r, className: o = "", ...n }) {
|
|
13
|
+
const a = [
|
|
14
|
+
"progress",
|
|
15
|
+
r && p[r],
|
|
16
|
+
o
|
|
17
|
+
].filter(Boolean).join(" ");
|
|
18
|
+
return /* @__PURE__ */ c("progress", { className: a, value: s, max: e, ...n });
|
|
19
|
+
}
|
|
85
20
|
export {
|
|
86
|
-
|
|
87
|
-
$ as default
|
|
21
|
+
t as Progress
|
|
88
22
|
};
|
|
89
23
|
//# sourceMappingURL=index65.js.map
|
package/dist/index65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index65.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index65.js","sources":["../src/components/Progress.tsx"],"sourcesContent":["import React from 'react'\n\nexport interface ProgressProps extends React.ProgressHTMLAttributes<HTMLProgressElement> {\n type?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n}\n\nconst typeClasses = {\n neutral: 'progress-neutral',\n primary: 'progress-primary',\n secondary: 'progress-secondary',\n accent: 'progress-accent',\n info: 'progress-info',\n success: 'progress-success',\n warning: 'progress-warning',\n error: 'progress-error',\n} as const\n\nexport function Progress({ value, max = 100, type, className = '', ...rest }: ProgressProps) {\n const classes = [\n 'progress',\n type && typeClasses[type],\n className,\n ]\n .filter(Boolean)\n .join(' ')\n\n return <progress className={classes} value={value} max={max} {...rest} />\n}\n"],"names":["typeClasses","Progress","value","max","type","className","rest","classes"],"mappings":";AAMA,MAAMA,IAAc;AAAA,EAClB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACT;AAEO,SAASC,EAAS,EAAE,OAAAC,GAAO,KAAAC,IAAM,KAAK,MAAAC,GAAM,WAAAC,IAAY,IAAI,GAAGC,KAAuB;AAC3F,QAAMC,IAAU;AAAA,IACd;AAAA,IACAH,KAAQJ,EAAYI,CAAI;AAAA,IACxBC;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,2BAAQ,YAAA,EAAS,WAAWE,GAAS,OAAAL,GAAc,KAAAC,GAAW,GAAGG,GAAM;AACzE;"}
|
package/dist/index66.js
CHANGED
|
@@ -1,23 +1,77 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as Q, useState as j, useEffect as R } from "react";
|
|
3
|
+
import F from "qrcode";
|
|
4
|
+
const k = ({
|
|
5
|
+
value: m,
|
|
6
|
+
size: a = 160,
|
|
7
|
+
errorLevel: v = "M",
|
|
8
|
+
icon: f,
|
|
9
|
+
iconSize: t = 40,
|
|
10
|
+
type: h = "canvas",
|
|
11
|
+
color: x = "#000000",
|
|
12
|
+
bgColor: g = "#FFFFFF",
|
|
13
|
+
bordered: l = !0,
|
|
14
|
+
status: n = "active",
|
|
15
|
+
onRefresh: p,
|
|
16
|
+
className: C = "",
|
|
17
|
+
...c
|
|
18
|
+
}) => {
|
|
19
|
+
const s = Q(null), [w, i] = j(n === "loading");
|
|
20
|
+
R(() => {
|
|
21
|
+
i(n === "loading");
|
|
22
|
+
}, [n]), R(() => {
|
|
23
|
+
if (n !== "active" || !m) return;
|
|
24
|
+
(async () => {
|
|
25
|
+
try {
|
|
26
|
+
if (i(!0), h === "canvas" && s.current && (await F.toCanvas(s.current, m, {
|
|
27
|
+
width: a,
|
|
28
|
+
margin: 1,
|
|
29
|
+
color: {
|
|
30
|
+
dark: x,
|
|
31
|
+
light: g
|
|
32
|
+
},
|
|
33
|
+
errorCorrectionLevel: v
|
|
34
|
+
}), f)) {
|
|
35
|
+
const o = s.current.getContext("2d");
|
|
36
|
+
if (o) {
|
|
37
|
+
const d = new Image();
|
|
38
|
+
d.crossOrigin = "anonymous", d.onload = () => {
|
|
39
|
+
const u = (a - t) / 2, b = (a - t) / 2;
|
|
40
|
+
o.fillStyle = g, o.fillRect(u - 4, b - 4, t + 8, t + 8), o.drawImage(d, u, b, t, t);
|
|
41
|
+
}, d.src = f;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
i(!1);
|
|
45
|
+
} catch (N) {
|
|
46
|
+
console.error("QR Code generation error:", N), i(!1);
|
|
47
|
+
}
|
|
48
|
+
})();
|
|
49
|
+
}, [m, a, v, f, t, h, x, g, n]);
|
|
50
|
+
const r = [
|
|
51
|
+
"inline-flex items-center justify-center",
|
|
52
|
+
l && "border border-base-content/20 p-3",
|
|
53
|
+
"bg-base-100",
|
|
54
|
+
C
|
|
17
55
|
].filter(Boolean).join(" ");
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
}
|
|
56
|
+
return n === "loading" || w ? /* @__PURE__ */ e("div", { className: r, style: { width: a + (l ? 24 : 0), height: a + (l ? 24 : 0) }, "data-state": "loading", ...c, children: /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center gap-2", children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "loading loading-spinner loading-lg" }),
|
|
58
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-base-content/70", children: "Loading..." })
|
|
59
|
+
] }) }) : n === "expired" ? /* @__PURE__ */ e("div", { className: r, style: { width: a + (l ? 24 : 0), height: a + (l ? 24 : 0) }, "data-state": "expired", ...c, children: /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center gap-2", children: [
|
|
60
|
+
/* @__PURE__ */ e("svg", { className: "w-12 h-12 text-base-content/30", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
|
|
61
|
+
"path",
|
|
62
|
+
{
|
|
63
|
+
fillRule: "evenodd",
|
|
64
|
+
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
65
|
+
clipRule: "evenodd"
|
|
66
|
+
}
|
|
67
|
+
) }),
|
|
68
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-base-content/70", children: "QR Code Expired" }),
|
|
69
|
+
p && /* @__PURE__ */ e("button", { className: "btn btn-sm btn-primary", onClick: p, children: "Refresh" })
|
|
70
|
+
] }) }) : h === "canvas" ? /* @__PURE__ */ e("div", { className: "inline-block", "data-state": "active", ...c, children: /* @__PURE__ */ e("div", { className: r, children: /* @__PURE__ */ e("canvas", { ref: s, style: { display: "block" } }) }) }) : /* @__PURE__ */ e("div", { className: "inline-block", "data-state": "active", ...c, children: /* @__PURE__ */ e("div", { className: r, children: /* @__PURE__ */ e("div", { style: { width: a, height: a }, className: "bg-base-content/5", children: /* @__PURE__ */ e("span", { className: "text-xs text-base-content/50", children: "SVG mode placeholder" }) }) }) });
|
|
71
|
+
};
|
|
72
|
+
k.displayName = "QRCode";
|
|
20
73
|
export {
|
|
21
|
-
|
|
74
|
+
k as QRCode,
|
|
75
|
+
k as default
|
|
22
76
|
};
|
|
23
77
|
//# sourceMappingURL=index66.js.map
|
package/dist/index66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index66.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index66.js","sources":["../src/components/QRCode.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport QRCodeLib from 'qrcode'\n\nexport type QRCodeErrorLevel = 'L' | 'M' | 'Q' | 'H'\nexport type QRCodeType = 'canvas' | 'svg'\nexport type QRCodeStatus = 'active' | 'loading' | 'expired'\n\nexport interface QRCodeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {\n value: string\n size?: number\n errorLevel?: QRCodeErrorLevel\n icon?: string\n iconSize?: number\n type?: QRCodeType\n color?: string\n bgColor?: string\n bordered?: boolean\n status?: QRCodeStatus\n onRefresh?: () => void\n}\n\nexport const QRCode: React.FC<QRCodeProps> = ({\n value,\n size = 160,\n errorLevel = 'M',\n icon,\n iconSize = 40,\n type = 'canvas',\n color = '#000000',\n bgColor = '#FFFFFF',\n bordered = true,\n status = 'active',\n onRefresh,\n className = '',\n ...rest\n}) => {\n const canvasRef = useRef<HTMLCanvasElement>(null)\n const [loading, setLoading] = useState(status === 'loading')\n\n useEffect(() => {\n setLoading(status === 'loading')\n }, [status])\n\n useEffect(() => {\n if (status !== 'active' || !value) return\n\n const generateQRCode = async () => {\n try {\n setLoading(true)\n\n if (type === 'canvas' && canvasRef.current) {\n await QRCodeLib.toCanvas(canvasRef.current, value, {\n width: size,\n margin: 1,\n color: {\n dark: color,\n light: bgColor,\n },\n errorCorrectionLevel: errorLevel,\n })\n\n if (icon) {\n const canvas = canvasRef.current\n const ctx = canvas.getContext('2d')\n if (ctx) {\n const img = new Image()\n img.crossOrigin = 'anonymous'\n img.onload = () => {\n const iconX = (size - iconSize) / 2\n const iconY = (size - iconSize) / 2\n ctx.fillStyle = bgColor\n ctx.fillRect(iconX - 4, iconY - 4, iconSize + 8, iconSize + 8)\n ctx.drawImage(img, iconX, iconY, iconSize, iconSize)\n }\n img.src = icon\n }\n }\n }\n\n setLoading(false)\n } catch (error) {\n console.error('QR Code generation error:', error)\n setLoading(false)\n }\n }\n\n generateQRCode()\n }, [value, size, errorLevel, icon, iconSize, type, color, bgColor, status])\n\n // Download functionality can be implemented by consumers\n // by accessing the canvas ref and converting to data URL\n\n const containerClasses = [\n 'inline-flex items-center justify-center',\n bordered && 'border border-base-content/20 p-3',\n 'bg-base-100',\n className,\n ]\n .filter(Boolean)\n .join(' ')\n\n if (status === 'loading' || loading) {\n return (\n <div className={containerClasses} style={{ width: size + (bordered ? 24 : 0), height: size + (bordered ? 24 : 0) }} data-state=\"loading\" {...rest}>\n <div className=\"flex flex-col items-center justify-center gap-2\">\n <span className=\"loading loading-spinner loading-lg\"></span>\n <span className=\"text-sm text-base-content/70\">Loading...</span>\n </div>\n </div>\n )\n }\n\n if (status === 'expired') {\n return (\n <div className={containerClasses} style={{ width: size + (bordered ? 24 : 0), height: size + (bordered ? 24 : 0) }} data-state=\"expired\" {...rest}>\n <div className=\"flex flex-col items-center justify-center gap-2\">\n <svg className=\"w-12 h-12 text-base-content/30\" fill=\"currentColor\" viewBox=\"0 0 20 20\">\n <path\n fillRule=\"evenodd\"\n d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z\"\n clipRule=\"evenodd\"\n />\n </svg>\n <span className=\"text-sm text-base-content/70\">QR Code Expired</span>\n {onRefresh && (\n <button className=\"btn btn-sm btn-primary\" onClick={onRefresh}>\n Refresh\n </button>\n )}\n </div>\n </div>\n )\n }\n\n if (type === 'canvas') {\n return (\n <div className=\"inline-block\" data-state=\"active\" {...rest}>\n <div className={containerClasses}>\n <canvas ref={canvasRef} style={{ display: 'block' }} />\n </div>\n </div>\n )\n }\n\n return (\n <div className=\"inline-block\" data-state=\"active\" {...rest}>\n <div className={containerClasses}>\n <div style={{ width: size, height: size }} className=\"bg-base-content/5\">\n <span className=\"text-xs text-base-content/50\">SVG mode placeholder</span>\n </div>\n </div>\n </div>\n )\n}\n\nQRCode.displayName = 'QRCode'\n\nexport default QRCode\n"],"names":["QRCode","value","size","errorLevel","icon","iconSize","type","color","bgColor","bordered","status","onRefresh","className","rest","canvasRef","useRef","loading","setLoading","useState","useEffect","QRCodeLib","ctx","img","iconX","iconY","error","containerClasses","jsx","jsxs"],"mappings":";;;AAqBO,MAAM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