zabi-components 2.0.3 → 2.0.4
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 +157 -25
- package/dist/Checkbox-cOmcN4_d.js +276 -0
- package/dist/ContactForm-DKoAOLWp.js +523 -0
- package/dist/{Navigation-DE8_K3bU.js → Navigation-BCY_oTq9.js} +2 -2
- package/dist/OptimizedImage-AlFTGrwF.js +584 -0
- package/dist/{ThemeToggle-Dt8hE3_o.js → ThemeToggle-Dgb0rEn7.js} +1 -1
- package/dist/atoms/index.js +16 -21
- package/dist/index/index.js +42 -91
- package/dist/molecules/index.js +10 -13
- package/dist/organisms/index.js +1 -1
- package/dist/props-D1U_TNgY.js +2026 -0
- package/package.json +1 -1
- package/dist/Card-YmnHW5Dv.js +0 -106
- package/dist/PerformanceMonitor-CZWEjSY0.js +0 -1230
- package/dist/SelectedCardInfo-1FErRXDl.js +0 -509
- package/dist/props-ChfwWtCN.js +0 -2513
package/package.json
CHANGED
package/dist/Card-YmnHW5Dv.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { w as F, j as l, x as b, y as D, i as k, f as y, k as B, t as m, b as f, p as q, c as E, v as x, g as c, m as h, d as w, h as C, n as N, z as R, s as g, a as j, l as z, o as G } from "./props-ChfwWtCN.js";
|
|
2
|
-
function M(s, e) {
|
|
3
|
-
F(() => {
|
|
4
|
-
var t = s.getRootNode(), a = (
|
|
5
|
-
/** @type {ShadowRoot} */
|
|
6
|
-
t.host ? (
|
|
7
|
-
/** @type {ShadowRoot} */
|
|
8
|
-
t
|
|
9
|
-
) : (
|
|
10
|
-
/** @type {Document} */
|
|
11
|
-
t.head ?? /** @type {Document} */
|
|
12
|
-
t.ownerDocument.head
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
if (!a.querySelector("#" + e.hash)) {
|
|
16
|
-
const r = document.createElement("style");
|
|
17
|
-
r.id = e.hash, r.textContent = e.code, a.appendChild(r);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function O(s) {
|
|
22
|
-
return function(...e) {
|
|
23
|
-
var t = (
|
|
24
|
-
/** @type {Event} */
|
|
25
|
-
e[0]
|
|
26
|
-
);
|
|
27
|
-
return t.preventDefault(), s == null ? void 0 : s.apply(this, e);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var H = y("<button><!></button>");
|
|
31
|
-
function P(s, e) {
|
|
32
|
-
E(e, !1);
|
|
33
|
-
const t = h(), a = h(), r = h();
|
|
34
|
-
let v = l(e, "variant", 8, "primary"), n = l(e, "size", 8, "md"), u = l(e, "disabled", 8, !1), p = l(e, "type", 8, "button");
|
|
35
|
-
b(() => {
|
|
36
|
-
}, () => {
|
|
37
|
-
g(t, {
|
|
38
|
-
sm: "px-3 py-1.5 text-sm",
|
|
39
|
-
md: "px-4 py-2 text-sm",
|
|
40
|
-
lg: "px-5 py-3 text-base"
|
|
41
|
-
});
|
|
42
|
-
}), b(() => {
|
|
43
|
-
}, () => {
|
|
44
|
-
g(a, {
|
|
45
|
-
primary: "bg-blue-600 text-white hover:bg-blue-700",
|
|
46
|
-
secondary: "bg-gray-600 text-white hover:bg-gray-700",
|
|
47
|
-
danger: "bg-red-600 text-white hover:bg-red-700"
|
|
48
|
-
});
|
|
49
|
-
}), b(
|
|
50
|
-
() => (c(t), x(n()), c(a), x(v())),
|
|
51
|
-
() => {
|
|
52
|
-
g(r, [
|
|
53
|
-
"inline-flex items-center justify-center font-medium rounded-md",
|
|
54
|
-
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
55
|
-
c(t)[n()],
|
|
56
|
-
c(a)[v()]
|
|
57
|
-
].join(" "));
|
|
58
|
-
}
|
|
59
|
-
), D(), k();
|
|
60
|
-
var o = H(), _ = w(o);
|
|
61
|
-
B(_, e, "default", {}), m(() => {
|
|
62
|
-
C(o, "type", p()), N(o, 1, R(c(r))), o.disabled = u();
|
|
63
|
-
}), f(s, o), q();
|
|
64
|
-
}
|
|
65
|
-
var I = y('<img class="w-full h-48 object-cover rounded-md mb-4"/>'), J = y('<h3 class="text-lg font-semibold mb-2"> </h3>'), K = y("<div><!> <!> <!></div>");
|
|
66
|
-
function Q(s, e) {
|
|
67
|
-
E(e, !1);
|
|
68
|
-
const t = h();
|
|
69
|
-
let a = l(e, "title", 8, ""), r = l(e, "image", 8, ""), v = l(e, "interactive", 8, !1);
|
|
70
|
-
b(() => x(v()), () => {
|
|
71
|
-
g(t, [
|
|
72
|
-
"bg-white border border-gray-200 rounded-lg p-4",
|
|
73
|
-
v() ? "cursor-pointer hover:shadow-md" : ""
|
|
74
|
-
].join(" "));
|
|
75
|
-
}), D(), k();
|
|
76
|
-
var n = K(), u = w(n);
|
|
77
|
-
{
|
|
78
|
-
var p = (i) => {
|
|
79
|
-
var d = I();
|
|
80
|
-
m(() => {
|
|
81
|
-
C(d, "src", r()), C(d, "alt", a());
|
|
82
|
-
}), f(i, d);
|
|
83
|
-
};
|
|
84
|
-
j(u, (i) => {
|
|
85
|
-
r() && i(p);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
var o = z(u, 2);
|
|
89
|
-
{
|
|
90
|
-
var _ = (i) => {
|
|
91
|
-
var d = J(), A = w(d);
|
|
92
|
-
m(() => G(A, a())), f(i, d);
|
|
93
|
-
};
|
|
94
|
-
j(o, (i) => {
|
|
95
|
-
a() && i(_);
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
var S = z(o, 2);
|
|
99
|
-
B(S, e, "default", {}), m(() => N(n, 1, R(c(t)))), f(s, n), q();
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
P as B,
|
|
103
|
-
Q as C,
|
|
104
|
-
M as a,
|
|
105
|
-
O as p
|
|
106
|
-
};
|