zabi-components 2.0.2 → 2.0.3
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/Card-YmnHW5Dv.js +106 -0
- package/dist/Navigation-DE8_K3bU.js +79 -0
- package/dist/{Tooltip-C9G35OZ6.js → PerformanceMonitor-CZWEjSY0.js} +531 -531
- package/dist/{Tabs-DXN_BqPw.js → SelectedCardInfo-1FErRXDl.js} +324 -324
- package/dist/{ThemeToggle-CRI92cOb.js → ThemeToggle-Dt8hE3_o.js} +1 -1
- package/dist/atoms/index.js +3 -3
- package/dist/index/index.js +94 -579
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/index.js +1 -1
- package/dist/props-ChfwWtCN.js +2513 -0
- package/package.json +2 -2
- package/dist/Card-BIAsG5HX.js +0 -222
- package/dist/Navigation-BoOnkbXw.js +0 -81
- package/dist/store-ZmZCXeMy.js +0 -2413
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { j as d, i as F, f as u, k as g, a as N, t as j, e as D, b, p as G, c as H, d as a, l as n, g as s, m as ta, n as p, o as I, s as sa, q as va, r as ra, h as ia, u as C, v as na } from "./props-ChfwWtCN.js";
|
|
2
|
+
import { createEventDispatcher as J } from "svelte";
|
|
3
|
+
import { T as A } from "./ThemeToggle-Dt8hE3_o.js";
|
|
4
|
+
var da = u('<div class="mt-2"><!></div>'), la = u('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), oa = u('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
|
|
5
|
+
function ha(y, e) {
|
|
6
|
+
H(e, !1);
|
|
7
|
+
let f = d(e, "brand", 8, ""), x = d(e, "showThemeToggle", 8, !0), h = d(e, "className", 8, "");
|
|
8
|
+
const k = J();
|
|
9
|
+
let l = ta(!1);
|
|
10
|
+
function o() {
|
|
11
|
+
sa(l, !s(l));
|
|
12
|
+
}
|
|
13
|
+
function _() {
|
|
14
|
+
k("brandClick");
|
|
15
|
+
}
|
|
16
|
+
F();
|
|
17
|
+
var v = oa(), t = a(v), c = a(t), r = a(c), m = a(r), T = a(m), M = n(r, 2), K = a(M), L = a(K);
|
|
18
|
+
g(L, e, "nav", {});
|
|
19
|
+
var P = n(M, 2), Q = a(P), q = a(Q);
|
|
20
|
+
g(q, e, "actions", {});
|
|
21
|
+
var R = n(q, 2);
|
|
22
|
+
{
|
|
23
|
+
var S = (i) => {
|
|
24
|
+
A(i, {});
|
|
25
|
+
};
|
|
26
|
+
N(R, (i) => {
|
|
27
|
+
x() && i(S);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
var U = n(P, 2), V = a(U), W = n(c, 2);
|
|
31
|
+
{
|
|
32
|
+
var X = (i) => {
|
|
33
|
+
var z = la(), Y = a(z), B = a(Y);
|
|
34
|
+
g(B, e, "nav", {});
|
|
35
|
+
var Z = n(B, 2), E = a(Z);
|
|
36
|
+
g(E, e, "actions", {});
|
|
37
|
+
var $ = n(E, 2);
|
|
38
|
+
{
|
|
39
|
+
var aa = (w) => {
|
|
40
|
+
var O = da(), ea = a(O);
|
|
41
|
+
A(ea, {}), b(w, O);
|
|
42
|
+
};
|
|
43
|
+
N($, (w) => {
|
|
44
|
+
x() && w(aa);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
b(i, z);
|
|
48
|
+
};
|
|
49
|
+
N(W, (i) => {
|
|
50
|
+
s(l) && i(X);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
j(() => {
|
|
54
|
+
p(v, 1, `bg-white border-b border-gray-200 sticky top-0 z-50 ${h() ?? ""}`), I(T, f());
|
|
55
|
+
}), D("click", m, _), D("click", V, o), b(y, v), G();
|
|
56
|
+
}
|
|
57
|
+
var ca = u("<li><a> </a></li>"), ba = u("<nav><ul></ul></nav>");
|
|
58
|
+
function _a(y, e) {
|
|
59
|
+
H(e, !1);
|
|
60
|
+
let f = d(e, "variant", 8, "header"), x = d(e, "items", 24, () => []), h = d(e, "currentPath", 8, "");
|
|
61
|
+
const k = J();
|
|
62
|
+
function l(v, t) {
|
|
63
|
+
t.preventDefault(), k("navigate", { item: v, href: v.href });
|
|
64
|
+
}
|
|
65
|
+
F();
|
|
66
|
+
var o = ba(), _ = a(o);
|
|
67
|
+
va(_, 5, x, ra, (v, t) => {
|
|
68
|
+
var c = ca(), r = a(c), m = a(r);
|
|
69
|
+
j(() => {
|
|
70
|
+
ia(r, "href", (s(t), C(() => s(t).href))), p(r, 1, `px-3 py-2 text-sm font-medium rounded-md transition-colors ${na(h()), s(t), C(() => h() === s(t).href ? "bg-blue-100 text-blue-700" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100") ?? ""}`), I(m, (s(t), C(() => s(t).label)));
|
|
71
|
+
}), D("click", r, (T) => l(s(t), T)), b(v, c);
|
|
72
|
+
}), j(() => {
|
|
73
|
+
p(o, 1, `navigation navigation-${f() ?? ""}`), p(_, 1, `flex ${f() === "sidebar" ? "flex-col space-y-2" : "space-x-6"}`);
|
|
74
|
+
}), b(y, o), G();
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
ha as N,
|
|
78
|
+
_a as a
|
|
79
|
+
};
|