zabi-components 1.0.11 → 2.0.2
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 +38 -22
- package/dist/Card-BIAsG5HX.js +222 -0
- package/dist/Navigation-BoOnkbXw.js +81 -0
- package/dist/Tabs-DXN_BqPw.js +509 -0
- package/dist/ThemeToggle-CRI92cOb.js +35 -0
- package/dist/Tooltip-C9G35OZ6.js +1230 -0
- package/dist/atoms/index.js +23 -21
- package/dist/index/index.js +462 -202
- package/dist/molecules/index.js +12 -12
- package/dist/organisms/index.js +2 -3
- package/dist/store-ZmZCXeMy.js +2413 -0
- package/package.json +3 -3
- package/dist/Tabs-RCuPHjEL.js +0 -1105
- package/dist/Toast-BTynzMV8.js +0 -446
- package/dist/ToastManager-Bd5Slcp4.js +0 -359
- package/dist/Toggle-LURK-bI8.js +0 -2507
- package/dist/Tooltip-BoApUzYg.js +0 -1163
- package/dist/x-Dsi-CPO3.js +0 -3073
package/dist/Tooltip-BoApUzYg.js
DELETED
|
@@ -1,1163 +0,0 @@
|
|
|
1
|
-
import { a as Me, p as x, C as ie, D as Te, i as ke, f as y, c as R, g as n, h as he, j as ye, r as E, l as e, m as ee, n as a, k as H, b as ue, o as d, s as ce, t as f, q as C, F as fe, e as $, u as W, x as Pe, v as J, w as xe, Q as be, B as A, d as Se, P as _e, R as oe, E as ve, S as me, G as Le, y as He, z as Ve } from "./x-Dsi-CPO3.js";
|
|
2
|
-
import { createEventDispatcher as Be, onMount as Ie } from "svelte";
|
|
3
|
-
import { T as Xe, e as je, c as Ee, i as De, s as Ge, d as Oe } from "./Toast-BTynzMV8.js";
|
|
4
|
-
var Ye = y("<div></div>"), Ze = Pe('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), qe = Pe('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ue = y('<button type="button"><!> <!> <!> <!></button> <button type="button" aria-label="Close badge"><svg class="w-full h-full text-current svelte-14njway" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" class="svelte-14njway"></path></svg></button>', 1), Je = y("<div></div>"), Ke = Pe('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Qe = Pe('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), $e = y("<span><!> <!> <!> <!></span>"), et = y('<div class="inline-flex items-center gap-1 svelte-14njway"><!></div>');
|
|
5
|
-
const tt = {
|
|
6
|
-
hash: "svelte-14njway",
|
|
7
|
-
code: `
|
|
8
|
-
/* Hover effects for closable badges */.badge-closable.svelte-14njway:hover {transform:translateY(-1px);box-shadow:0 4px 8px rgba(0, 0, 0, 0.2);}.badge-closable.svelte-14njway:active {transform:translateY(0);}
|
|
9
|
-
|
|
10
|
-
/* Focus styles for accessibility */.badge-closable.svelte-14njway:focus {outline:2px solid var(--color-plasma-red-500);outline-offset:2px;}
|
|
11
|
-
|
|
12
|
-
/* Animation for badge appearance */
|
|
13
|
-
@keyframes svelte-14njway-badge-enter {
|
|
14
|
-
0% {
|
|
15
|
-
opacity: 0;
|
|
16
|
-
transform: scale(0.8);
|
|
17
|
-
}
|
|
18
|
-
100% {
|
|
19
|
-
opacity: 1;
|
|
20
|
-
transform: scale(1);
|
|
21
|
-
}
|
|
22
|
-
}.badge-enter.svelte-14njway {
|
|
23
|
-
animation: svelte-14njway-badge-enter 0.2s ease-out;}
|
|
24
|
-
|
|
25
|
-
/* Animation for badge removal */
|
|
26
|
-
@keyframes svelte-14njway-badge-exit {
|
|
27
|
-
0% {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
transform: scale(1);
|
|
30
|
-
}
|
|
31
|
-
100% {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transform: scale(0.8);
|
|
34
|
-
}
|
|
35
|
-
}.badge-exit.svelte-14njway {
|
|
36
|
-
animation: svelte-14njway-badge-exit 0.2s ease-in;}
|
|
37
|
-
|
|
38
|
-
/* Dot animation */.badge-dot.svelte-14njway {
|
|
39
|
-
animation: svelte-14njway-badge-dot-pulse 2s infinite;}
|
|
40
|
-
|
|
41
|
-
@keyframes svelte-14njway-badge-dot-pulse {
|
|
42
|
-
0%,
|
|
43
|
-
100% {
|
|
44
|
-
opacity: 1;
|
|
45
|
-
}
|
|
46
|
-
50% {
|
|
47
|
-
opacity: 0.5;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* Icon rotation for loading states */.badge-icon-loading.svelte-14njway {
|
|
52
|
-
animation: svelte-14njway-badge-icon-spin 1s linear infinite;}
|
|
53
|
-
|
|
54
|
-
@keyframes svelte-14njway-badge-icon-spin {
|
|
55
|
-
from {
|
|
56
|
-
transform: rotate(0deg);
|
|
57
|
-
}
|
|
58
|
-
to {
|
|
59
|
-
transform: rotate(360deg);
|
|
60
|
-
}
|
|
61
|
-
}`
|
|
62
|
-
};
|
|
63
|
-
function Vt(se, t) {
|
|
64
|
-
ye(t, !1), Me(se, tt);
|
|
65
|
-
const h = ee(), w = ee(), j = ee(), m = ee(), F = ee(), Z = ee(), V = ee();
|
|
66
|
-
let X = x(t, "variant", 8, "default"), L = x(t, "size", 8, "md"), M = x(t, "shape", 8, "rounded"), G = x(t, "dot", 8, !1), B = x(t, "closable", 8, !1), s = x(t, "icon", 8, void 0), S = x(t, "iconPosition", 8, "left");
|
|
67
|
-
const P = Be();
|
|
68
|
-
function q(k) {
|
|
69
|
-
const I = k;
|
|
70
|
-
I.stopPropagation(), P("close", { event: I });
|
|
71
|
-
}
|
|
72
|
-
function z(k) {
|
|
73
|
-
P("click", { event: k });
|
|
74
|
-
}
|
|
75
|
-
function r(k) {
|
|
76
|
-
const I = k;
|
|
77
|
-
(I.key === "Enter" || I.key === " ") && (I.preventDefault(), I.target === I.currentTarget ? z(k) : q(k));
|
|
78
|
-
}
|
|
79
|
-
ie(() => {
|
|
80
|
-
}, () => {
|
|
81
|
-
H(h, {
|
|
82
|
-
sm: "px-2 py-0.5 text-xs",
|
|
83
|
-
md: "px-3 py-1 text-sm",
|
|
84
|
-
lg: "px-4 py-1.5 text-base"
|
|
85
|
-
});
|
|
86
|
-
}), ie(() => {
|
|
87
|
-
}, () => {
|
|
88
|
-
H(w, {
|
|
89
|
-
default: "bg-surface-secondary text-primary border border-primary",
|
|
90
|
-
success: "bg-success-surface text-success-text border border-success/30",
|
|
91
|
-
warning: "bg-warning-surface text-warning-text border border-warning/30",
|
|
92
|
-
error: "bg-error-surface text-error-text border border-error/30",
|
|
93
|
-
info: "bg-info-surface text-info-text border border-info/30",
|
|
94
|
-
neutral: "bg-surface-tertiary text-secondary border border-secondary"
|
|
95
|
-
});
|
|
96
|
-
}), ie(() => {
|
|
97
|
-
}, () => {
|
|
98
|
-
H(j, {
|
|
99
|
-
rounded: "rounded-md",
|
|
100
|
-
pill: "rounded-full",
|
|
101
|
-
square: "rounded-none"
|
|
102
|
-
});
|
|
103
|
-
}), ie(() => {
|
|
104
|
-
}, () => {
|
|
105
|
-
H(m, { sm: "w-1.5 h-1.5", md: "w-2 h-2", lg: "w-2.5 h-2.5" });
|
|
106
|
-
}), ie(
|
|
107
|
-
() => (e(h), E(L()), e(w), E(X()), e(j), E(M()), E(B())),
|
|
108
|
-
() => {
|
|
109
|
-
H(F, [
|
|
110
|
-
"inline-flex",
|
|
111
|
-
"items-center",
|
|
112
|
-
"gap-1.5",
|
|
113
|
-
"font-medium",
|
|
114
|
-
"border",
|
|
115
|
-
"transition-all",
|
|
116
|
-
"duration-200",
|
|
117
|
-
"ease-in-out",
|
|
118
|
-
"select-none",
|
|
119
|
-
"cursor-default",
|
|
120
|
-
e(h)[L()],
|
|
121
|
-
e(w)[X()],
|
|
122
|
-
e(j)[M()],
|
|
123
|
-
B() ? "cursor-pointer hover:opacity-80" : ""
|
|
124
|
-
].join(" "));
|
|
125
|
-
}
|
|
126
|
-
), ie(() => E(L()), () => {
|
|
127
|
-
H(Z, [
|
|
128
|
-
"flex-shrink-0",
|
|
129
|
-
L() === "sm" ? "w-3 h-3" : L() === "md" ? "w-4 h-4" : "w-5 h-5"
|
|
130
|
-
].join(" "));
|
|
131
|
-
}), ie(() => E(L()), () => {
|
|
132
|
-
H(V, [
|
|
133
|
-
"flex-shrink-0",
|
|
134
|
-
"ml-1",
|
|
135
|
-
"hover:bg-white/10",
|
|
136
|
-
"rounded-full",
|
|
137
|
-
"p-0.5",
|
|
138
|
-
"transition-colors",
|
|
139
|
-
"duration-150",
|
|
140
|
-
"ease-in-out",
|
|
141
|
-
L() === "sm" ? "w-3 h-3" : L() === "md" ? "w-4 h-4" : "w-5 h-5"
|
|
142
|
-
].join(" "));
|
|
143
|
-
}), Te(), ke();
|
|
144
|
-
var K = et(), ne = a(K);
|
|
145
|
-
{
|
|
146
|
-
var _ = (k) => {
|
|
147
|
-
var I = Ue(), U = ue(I), re = a(U);
|
|
148
|
-
{
|
|
149
|
-
var te = (l) => {
|
|
150
|
-
var D = Ye();
|
|
151
|
-
f(() => C(
|
|
152
|
-
D,
|
|
153
|
-
1,
|
|
154
|
-
`w-2 h-2 rounded-full bg-current ${e(m), E(L()), W(() => e(m)[L()]) ?? ""}`,
|
|
155
|
-
"svelte-14njway"
|
|
156
|
-
)), n(l, D);
|
|
157
|
-
};
|
|
158
|
-
R(re, (l) => {
|
|
159
|
-
G() && l(te);
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
var O = d(re, 2);
|
|
163
|
-
{
|
|
164
|
-
var g = (l) => {
|
|
165
|
-
var D = Ze(), Q = a(D);
|
|
166
|
-
f(() => {
|
|
167
|
-
C(D, 0, `${e(Z) ?? ""} text-current`, "svelte-14njway"), J(Q, "d", s());
|
|
168
|
-
}), n(l, D);
|
|
169
|
-
};
|
|
170
|
-
R(O, (l) => {
|
|
171
|
-
s() && S() === "left" && l(g);
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
var v = d(O, 2);
|
|
175
|
-
ce(v, t, "default", {}, null);
|
|
176
|
-
var c = d(v, 2);
|
|
177
|
-
{
|
|
178
|
-
var o = (l) => {
|
|
179
|
-
var D = qe(), Q = a(D);
|
|
180
|
-
f(() => {
|
|
181
|
-
C(D, 0, `${e(Z) ?? ""} text-current`, "svelte-14njway"), J(Q, "d", s());
|
|
182
|
-
}), n(l, D);
|
|
183
|
-
};
|
|
184
|
-
R(c, (l) => {
|
|
185
|
-
s() && S() === "right" && l(o);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
var u = d(U, 2);
|
|
189
|
-
f(() => {
|
|
190
|
-
C(U, 1, fe(e(F)), "svelte-14njway"), C(u, 1, fe(e(V)), "svelte-14njway");
|
|
191
|
-
}), $("click", U, z), $("keydown", U, r), $("click", u, q), $("keydown", u, r), n(k, I);
|
|
192
|
-
}, T = (k) => {
|
|
193
|
-
var I = $e(), U = a(I);
|
|
194
|
-
{
|
|
195
|
-
var re = (o) => {
|
|
196
|
-
var u = Je();
|
|
197
|
-
f(() => C(
|
|
198
|
-
u,
|
|
199
|
-
1,
|
|
200
|
-
`w-2 h-2 rounded-full bg-current ${e(m), E(L()), W(() => e(m)[L()]) ?? ""}`,
|
|
201
|
-
"svelte-14njway"
|
|
202
|
-
)), n(o, u);
|
|
203
|
-
};
|
|
204
|
-
R(U, (o) => {
|
|
205
|
-
G() && o(re);
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
var te = d(U, 2);
|
|
209
|
-
{
|
|
210
|
-
var O = (o) => {
|
|
211
|
-
var u = Ke(), l = a(u);
|
|
212
|
-
f(() => {
|
|
213
|
-
C(u, 0, `${e(Z) ?? ""} text-current`, "svelte-14njway"), J(l, "d", s());
|
|
214
|
-
}), n(o, u);
|
|
215
|
-
};
|
|
216
|
-
R(te, (o) => {
|
|
217
|
-
s() && S() === "left" && o(O);
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
var g = d(te, 2);
|
|
221
|
-
ce(g, t, "default", {}, null);
|
|
222
|
-
var v = d(g, 2);
|
|
223
|
-
{
|
|
224
|
-
var c = (o) => {
|
|
225
|
-
var u = Qe(), l = a(u);
|
|
226
|
-
f(() => {
|
|
227
|
-
C(u, 0, `${e(Z) ?? ""} text-current`, "svelte-14njway"), J(l, "d", s());
|
|
228
|
-
}), n(o, u);
|
|
229
|
-
};
|
|
230
|
-
R(v, (o) => {
|
|
231
|
-
s() && S() === "right" && o(c);
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
f(() => C(I, 1, fe(e(F)), "svelte-14njway")), n(k, I);
|
|
235
|
-
};
|
|
236
|
-
R(ne, (k) => {
|
|
237
|
-
B() ? k(_) : k(T, !1);
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
n(se, K), he();
|
|
241
|
-
}
|
|
242
|
-
var at = y("<h1><!></h1>"), st = y("<h2><!></h2>"), rt = y("<h3><!></h3>"), nt = y("<h4><!></h4>"), it = y("<h5><!></h5>"), ot = y("<h6><!></h6>");
|
|
243
|
-
function Xt(se, t) {
|
|
244
|
-
ye(t, !1);
|
|
245
|
-
const h = ee();
|
|
246
|
-
let w = x(t, "level", 8, 1), j = x(t, "text", 8, ""), m = x(t, "color", 8, "text-text"), F = x(t, "spacing", 8, "normal");
|
|
247
|
-
const Z = {
|
|
248
|
-
1: "!text-6xl md:!text-7xl font-bold leading-tight block",
|
|
249
|
-
2: "!text-4xl md:!text-5xl font-bold leading-tight block",
|
|
250
|
-
3: "!text-3xl md:!text-4xl font-semibold leading-snug block",
|
|
251
|
-
4: "!text-2xl md:!text-3xl font-semibold leading-snug block",
|
|
252
|
-
5: "!text-xl md:!text-2xl font-medium leading-normal block",
|
|
253
|
-
6: "!text-lg md:!text-xl font-medium leading-normal block"
|
|
254
|
-
}, V = {
|
|
255
|
-
tight: {
|
|
256
|
-
1: "mb-2",
|
|
257
|
-
2: "mb-3",
|
|
258
|
-
3: "mb-2",
|
|
259
|
-
4: "mb-2",
|
|
260
|
-
5: "mb-1",
|
|
261
|
-
6: "mb-1"
|
|
262
|
-
},
|
|
263
|
-
normal: {
|
|
264
|
-
1: "mb-4",
|
|
265
|
-
2: "mb-4",
|
|
266
|
-
3: "mb-3",
|
|
267
|
-
4: "mb-3",
|
|
268
|
-
5: "mb-2",
|
|
269
|
-
6: "mb-2"
|
|
270
|
-
},
|
|
271
|
-
loose: {
|
|
272
|
-
1: "mb-6",
|
|
273
|
-
2: "mb-6",
|
|
274
|
-
3: "mb-4",
|
|
275
|
-
4: "mb-4",
|
|
276
|
-
5: "mb-3",
|
|
277
|
-
6: "mb-3"
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
ie(
|
|
281
|
-
() => (E(w()), E(m()), E(F())),
|
|
282
|
-
() => {
|
|
283
|
-
H(h, `${Z[w()]} font-title ${m()} ${V[F()][w()]}`);
|
|
284
|
-
}
|
|
285
|
-
), Te();
|
|
286
|
-
var X = xe(), L = ue(X);
|
|
287
|
-
{
|
|
288
|
-
var M = (B) => {
|
|
289
|
-
var s = at(), S = a(s);
|
|
290
|
-
ce(S, t, "default", {}, (P) => {
|
|
291
|
-
var q = be();
|
|
292
|
-
f(() => A(q, j())), n(P, q);
|
|
293
|
-
}), f(() => C(s, 1, fe(e(h)))), n(B, s);
|
|
294
|
-
}, G = (B) => {
|
|
295
|
-
var s = xe(), S = ue(s);
|
|
296
|
-
{
|
|
297
|
-
var P = (z) => {
|
|
298
|
-
var r = st(), K = a(r);
|
|
299
|
-
ce(K, t, "default", {}, (ne) => {
|
|
300
|
-
var _ = be();
|
|
301
|
-
f(() => A(_, j())), n(ne, _);
|
|
302
|
-
}), f(() => C(r, 1, fe(e(h)))), n(z, r);
|
|
303
|
-
}, q = (z) => {
|
|
304
|
-
var r = xe(), K = ue(r);
|
|
305
|
-
{
|
|
306
|
-
var ne = (T) => {
|
|
307
|
-
var k = rt(), I = a(k);
|
|
308
|
-
ce(I, t, "default", {}, (U) => {
|
|
309
|
-
var re = be();
|
|
310
|
-
f(() => A(re, j())), n(U, re);
|
|
311
|
-
}), f(() => C(k, 1, fe(e(h)))), n(T, k);
|
|
312
|
-
}, _ = (T) => {
|
|
313
|
-
var k = xe(), I = ue(k);
|
|
314
|
-
{
|
|
315
|
-
var U = (te) => {
|
|
316
|
-
var O = nt(), g = a(O);
|
|
317
|
-
ce(g, t, "default", {}, (v) => {
|
|
318
|
-
var c = be();
|
|
319
|
-
f(() => A(c, j())), n(v, c);
|
|
320
|
-
}), f(() => C(O, 1, fe(e(h)))), n(te, O);
|
|
321
|
-
}, re = (te) => {
|
|
322
|
-
var O = xe(), g = ue(O);
|
|
323
|
-
{
|
|
324
|
-
var v = (o) => {
|
|
325
|
-
var u = it(), l = a(u);
|
|
326
|
-
ce(l, t, "default", {}, (D) => {
|
|
327
|
-
var Q = be();
|
|
328
|
-
f(() => A(Q, j())), n(D, Q);
|
|
329
|
-
}), f(() => C(u, 1, fe(e(h)))), n(o, u);
|
|
330
|
-
}, c = (o) => {
|
|
331
|
-
var u = xe(), l = ue(u);
|
|
332
|
-
{
|
|
333
|
-
var D = (Q) => {
|
|
334
|
-
var de = ot(), pe = a(de);
|
|
335
|
-
ce(pe, t, "default", {}, (we) => {
|
|
336
|
-
var le = be();
|
|
337
|
-
f(() => A(le, j())), n(we, le);
|
|
338
|
-
}), f(() => C(de, 1, fe(e(h)))), n(Q, de);
|
|
339
|
-
};
|
|
340
|
-
R(
|
|
341
|
-
l,
|
|
342
|
-
(Q) => {
|
|
343
|
-
w() === 6 && Q(D);
|
|
344
|
-
},
|
|
345
|
-
!0
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
|
-
n(o, u);
|
|
349
|
-
};
|
|
350
|
-
R(
|
|
351
|
-
g,
|
|
352
|
-
(o) => {
|
|
353
|
-
w() === 5 ? o(v) : o(c, !1);
|
|
354
|
-
},
|
|
355
|
-
!0
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
|
-
n(te, O);
|
|
359
|
-
};
|
|
360
|
-
R(
|
|
361
|
-
I,
|
|
362
|
-
(te) => {
|
|
363
|
-
w() === 4 ? te(U) : te(re, !1);
|
|
364
|
-
},
|
|
365
|
-
!0
|
|
366
|
-
);
|
|
367
|
-
}
|
|
368
|
-
n(T, k);
|
|
369
|
-
};
|
|
370
|
-
R(
|
|
371
|
-
K,
|
|
372
|
-
(T) => {
|
|
373
|
-
w() === 3 ? T(ne) : T(_, !1);
|
|
374
|
-
},
|
|
375
|
-
!0
|
|
376
|
-
);
|
|
377
|
-
}
|
|
378
|
-
n(z, r);
|
|
379
|
-
};
|
|
380
|
-
R(
|
|
381
|
-
S,
|
|
382
|
-
(z) => {
|
|
383
|
-
w() === 2 ? z(P) : z(q, !1);
|
|
384
|
-
},
|
|
385
|
-
!0
|
|
386
|
-
);
|
|
387
|
-
}
|
|
388
|
-
n(B, s);
|
|
389
|
-
};
|
|
390
|
-
R(L, (B) => {
|
|
391
|
-
w() === 1 ? B(M) : B(G, !1);
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
n(se, X), he();
|
|
395
|
-
}
|
|
396
|
-
var lt = y('<img alt="" class="absolute inset-0 w-full h-full object-cover animate-pulse"/>'), dt = y('<img class="w-full h-full object-cover transition-opacity duration-300"/>'), ct = y('<div class="absolute inset-0 flex items-center justify-center" style="background-color: rgb(var(--color-surface-secondary)); color: rgb(var(--color-text-secondary));"><svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l2.586-2.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg></div>'), vt = y("<div><!> <!> <!></div>");
|
|
397
|
-
function Gt(se, t) {
|
|
398
|
-
ye(t, !1);
|
|
399
|
-
let h = x(t, "src", 8), w = x(t, "alt", 8, ""), j = x(t, "width", 8, "100%"), m = x(t, "height", 8, "auto"), F = x(t, "loading", 8, "lazy"), Z = x(t, "className", 8, ""), V = x(t, "placeholder", 8, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PC9zdmc+"), X = ee(!1), L = ee(!1), M = ee(!1), G = ee();
|
|
400
|
-
Ie(() => {
|
|
401
|
-
if (F() === "lazy") {
|
|
402
|
-
const _ = new IntersectionObserver(
|
|
403
|
-
(T) => {
|
|
404
|
-
T.forEach((k) => {
|
|
405
|
-
k.isIntersecting && (H(M, !0), _.unobserve(k.target));
|
|
406
|
-
});
|
|
407
|
-
},
|
|
408
|
-
{ rootMargin: "50px" }
|
|
409
|
-
);
|
|
410
|
-
return e(G) && _.observe(e(G)), () => _.disconnect();
|
|
411
|
-
} else
|
|
412
|
-
H(M, !0);
|
|
413
|
-
});
|
|
414
|
-
function B() {
|
|
415
|
-
H(X, !0);
|
|
416
|
-
}
|
|
417
|
-
function s() {
|
|
418
|
-
H(L, !0), console.warn("Failed to load image:", h());
|
|
419
|
-
}
|
|
420
|
-
ke();
|
|
421
|
-
var S = vt(), P = a(S);
|
|
422
|
-
{
|
|
423
|
-
var q = (_) => {
|
|
424
|
-
var T = lt();
|
|
425
|
-
f(() => J(T, "src", V())), n(_, T);
|
|
426
|
-
};
|
|
427
|
-
R(P, (_) => {
|
|
428
|
-
!e(X) && !e(L) && _(q);
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
var z = d(P, 2);
|
|
432
|
-
{
|
|
433
|
-
var r = (_) => {
|
|
434
|
-
var T = dt();
|
|
435
|
-
f(() => {
|
|
436
|
-
J(T, "src", h()), J(T, "alt", w()), J(T, "loading", F()), _e(T, `opacity: ${e(X) ? 1 : 0};`);
|
|
437
|
-
}), $("load", T, B), $("error", T, s), n(_, T);
|
|
438
|
-
};
|
|
439
|
-
R(z, (_) => {
|
|
440
|
-
e(M) && !e(L) && _(r);
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
var K = d(z, 2);
|
|
444
|
-
{
|
|
445
|
-
var ne = (_) => {
|
|
446
|
-
var T = ct();
|
|
447
|
-
n(_, T);
|
|
448
|
-
};
|
|
449
|
-
R(K, (_) => {
|
|
450
|
-
e(L) && _(ne);
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
Se(S, (_) => H(G, _), () => e(G)), f(() => {
|
|
454
|
-
C(S, 1, `relative overflow-hidden ${Z() ?? ""}`), _e(S, `width: ${(typeof j() == "number" ? j() + "px" : j()) ?? ""}; height: ${(typeof m() == "number" ? m() + "px" : m()) ?? ""};`);
|
|
455
|
-
}), n(se, S), he();
|
|
456
|
-
}
|
|
457
|
-
var mt = y('<div class="fixed bottom-4 left-4 p-4 rounded-lg text-xs font-mono z-50 max-w-xs" style="background-color: rgb(var(--color-surface-elevated)); color: rgb(var(--color-text));"><div class="flex items-center justify-between mb-2"><h3 class="font-bold"> </h3> <button class="hover:opacity-80" style="color: rgb(var(--color-text-secondary));">×</button></div> <div class="space-y-1"><div> </div> <div> </div> <div> </div> <div> </div> <div class="pt-1" style="border-top-color: rgb(var(--color-border));"><div class="font-semibold"> </div></div></div></div>');
|
|
458
|
-
function Yt(se, t) {
|
|
459
|
-
ye(t, !1);
|
|
460
|
-
let h = x(t, "isVisible", 12, !1), w = x(t, "showInDev", 8, !0), j = x(t, "title", 8, "Debug Panel"), m = ee({
|
|
461
|
-
domContentLoaded: 0,
|
|
462
|
-
loadComplete: 0,
|
|
463
|
-
firstPaint: 0,
|
|
464
|
-
firstContentfulPaint: 0,
|
|
465
|
-
largestContentfulPaint: 0,
|
|
466
|
-
cumulativeLayoutShift: 0
|
|
467
|
-
});
|
|
468
|
-
Ie(() => {
|
|
469
|
-
if (typeof window < "u" && "PerformanceObserver" in window) {
|
|
470
|
-
const B = [], s = new PerformanceObserver((z) => {
|
|
471
|
-
for (const r of z.getEntries())
|
|
472
|
-
r.name === "first-paint" && oe(m, e(m).firstPaint = r.startTime);
|
|
473
|
-
});
|
|
474
|
-
s.observe({ entryTypes: ["paint"] }), B.push(s);
|
|
475
|
-
const S = new PerformanceObserver((z) => {
|
|
476
|
-
for (const r of z.getEntries())
|
|
477
|
-
r.name === "first-contentful-paint" && oe(m, e(m).firstContentfulPaint = r.startTime);
|
|
478
|
-
});
|
|
479
|
-
S.observe({ entryTypes: ["paint"] }), B.push(S);
|
|
480
|
-
const P = new PerformanceObserver((z) => {
|
|
481
|
-
const r = z.getEntries(), K = r[r.length - 1];
|
|
482
|
-
oe(m, e(m).largestContentfulPaint = K.startTime);
|
|
483
|
-
});
|
|
484
|
-
P.observe({ entryTypes: ["largest-contentful-paint"] }), B.push(P);
|
|
485
|
-
const q = new PerformanceObserver((z) => {
|
|
486
|
-
for (const r of z.getEntries())
|
|
487
|
-
r.hadRecentInput || oe(m, e(m).cumulativeLayoutShift += r.value);
|
|
488
|
-
});
|
|
489
|
-
return q.observe({ entryTypes: ["layout-shift"] }), B.push(q), () => {
|
|
490
|
-
B.forEach((z) => z.disconnect());
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
const M = () => {
|
|
494
|
-
oe(m, e(m).domContentLoaded = performance.now());
|
|
495
|
-
}, G = () => {
|
|
496
|
-
oe(m, e(m).loadComplete = performance.now());
|
|
497
|
-
};
|
|
498
|
-
return window.addEventListener("DOMContentLoaded", M), window.addEventListener("load", G), w(), () => {
|
|
499
|
-
window.removeEventListener("DOMContentLoaded", M), window.removeEventListener("load", G);
|
|
500
|
-
};
|
|
501
|
-
});
|
|
502
|
-
function F(M) {
|
|
503
|
-
return `${Math.round(M)}ms`;
|
|
504
|
-
}
|
|
505
|
-
function Z() {
|
|
506
|
-
const M = e(m).firstContentfulPaint, G = e(m).largestContentfulPaint, B = e(m).cumulativeLayoutShift;
|
|
507
|
-
let s = 100;
|
|
508
|
-
return M > 1800 && (s -= 20), G > 2500 && (s -= 30), B > 0.1 && (s -= 25), e(m).loadComplete > 3e3 && (s -= 25), s >= 90 ? "🟢 Excellent" : s >= 70 ? "🟡 Good" : s >= 50 ? "🟠 Needs Improvement" : "🔴 Poor";
|
|
509
|
-
}
|
|
510
|
-
ke();
|
|
511
|
-
var V = xe(), X = ue(V);
|
|
512
|
-
{
|
|
513
|
-
var L = (M) => {
|
|
514
|
-
var G = mt(), B = a(G), s = a(B), S = a(s), P = d(s, 2), q = d(B, 2), z = a(q), r = a(z), K = d(z, 2), ne = a(K), _ = d(K, 2), T = a(_), k = d(_, 2), I = a(k), U = d(k, 2), re = a(U), te = a(re);
|
|
515
|
-
f(
|
|
516
|
-
(O, g, v, c, o) => {
|
|
517
|
-
A(S, j()), A(r, `FCP: ${O ?? ""}`), A(ne, `LCP: ${g ?? ""}`), A(T, `CLS: ${v ?? ""}`), A(I, `Load: ${c ?? ""}`), A(te, o);
|
|
518
|
-
},
|
|
519
|
-
[
|
|
520
|
-
() => (e(m), W(() => F(e(m).firstContentfulPaint))),
|
|
521
|
-
() => (e(m), W(() => F(e(m).largestContentfulPaint))),
|
|
522
|
-
() => (e(m), W(() => e(m).cumulativeLayoutShift.toFixed(3))),
|
|
523
|
-
() => (e(m), W(() => F(e(m).loadComplete))),
|
|
524
|
-
() => W(Z)
|
|
525
|
-
]
|
|
526
|
-
), $("click", P, () => h(!1)), n(M, G);
|
|
527
|
-
};
|
|
528
|
-
R(X, (M) => {
|
|
529
|
-
h() && M(L);
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
n(se, V), he();
|
|
533
|
-
}
|
|
534
|
-
var ut = y('<span class="text-sm svelte-1nnpss" style="color: rgb(var(--color-text-secondary));"> </span>'), ft = y('<div class="flex justify-between items-center mb-2 svelte-1nnpss"><label class="text-sm font-medium svelte-1nnpss" style="color: rgb(var(--color-text));"> </label> <!></div>'), xt = y('<div class="absolute inset-0 flex items-center justify-center svelte-1nnpss"><span class="text-xs font-medium svelte-1nnpss" style="color: rgb(var(--color-text-inverse));"> </span></div>'), gt = y('<div class="relative svelte-1nnpss"><div><div role="progressbar" aria-valuemin="0"></div></div> <!></div>'), pt = y('<span style="color: rgb(var(--color-text));"> </span>'), bt = y('<div class="relative inline-block svelte-1nnpss"><svg viewBox="0 0 44 44" role="progressbar" aria-valuemin="0"><circle cx="22" cy="22" r="20" stroke="currentColor" stroke-width="4" fill="none" class="text-border svelte-1nnpss"></circle><circle cx="22" cy="22" r="20" stroke="currentColor" stroke-width="4" fill="none" stroke-linecap="round"></circle></svg> <div class="absolute inset-0 flex items-center justify-center svelte-1nnpss"><!></div></div>'), ht = y("<div><!> <!> <!></div>");
|
|
535
|
-
const yt = {
|
|
536
|
-
hash: "svelte-1nnpss",
|
|
537
|
-
code: `
|
|
538
|
-
/* Striped animation */
|
|
539
|
-
@keyframes svelte-1nnpss-stripes {
|
|
540
|
-
0% {
|
|
541
|
-
background-position: 0 0;
|
|
542
|
-
}
|
|
543
|
-
100% {
|
|
544
|
-
background-position: 40px 0;
|
|
545
|
-
}
|
|
546
|
-
}.bg-stripes.svelte-1nnpss {background-image:linear-gradient(
|
|
547
|
-
45deg,
|
|
548
|
-
rgba(255, 255, 255, 0.15) 25%,
|
|
549
|
-
transparent 25%,
|
|
550
|
-
transparent 50%,
|
|
551
|
-
rgba(255, 255, 255, 0.15) 50%,
|
|
552
|
-
rgba(255, 255, 255, 0.15) 75%,
|
|
553
|
-
transparent 75%,
|
|
554
|
-
transparent
|
|
555
|
-
);background-size:40px 40px;
|
|
556
|
-
animation: svelte-1nnpss-stripes 1s linear infinite;}
|
|
557
|
-
|
|
558
|
-
/* Smooth transitions */.progress-bar.svelte-1nnpss {transition:width 0.3s ease-out;}.progress-circle.svelte-1nnpss {transition:stroke-dashoffset 0.3s ease-out;}
|
|
559
|
-
|
|
560
|
-
/* Focus styles for accessibility */[role="progressbar"].svelte-1nnpss:focus {outline:2px solid var(--color-primary-500);outline-offset:2px;}
|
|
561
|
-
|
|
562
|
-
/* Animation for completion */.progress-complete.svelte-1nnpss {
|
|
563
|
-
animation: svelte-1nnpss-progress-complete 0.5s ease-out;}
|
|
564
|
-
|
|
565
|
-
@keyframes svelte-1nnpss-progress-complete {
|
|
566
|
-
0% {
|
|
567
|
-
transform: scale(1);
|
|
568
|
-
}
|
|
569
|
-
50% {
|
|
570
|
-
transform: scale(1.05);
|
|
571
|
-
}
|
|
572
|
-
100% {
|
|
573
|
-
transform: scale(1);
|
|
574
|
-
}
|
|
575
|
-
}`
|
|
576
|
-
};
|
|
577
|
-
function Zt(se, t) {
|
|
578
|
-
ye(t, !1), Me(se, yt);
|
|
579
|
-
const h = ee(), w = ee(), j = ee(), m = ee(), F = ee();
|
|
580
|
-
let Z = x(t, "value", 8, 0), V = x(t, "max", 8, 100), X = x(t, "size", 8, "md"), L = x(t, "variant", 8, "default"), M = x(t, "shape", 8, "linear"), G = x(t, "animated", 8, !0), B = x(t, "striped", 8, !1), s = x(t, "showValue", 8, !1), S = x(t, "label", 8, ""), P = x(t, "className", 8, "");
|
|
581
|
-
const q = Be();
|
|
582
|
-
let z = `progress-${Math.random().toString(36).substr(2, 9)}`;
|
|
583
|
-
const r = {
|
|
584
|
-
sm: { linear: "h-1", circular: "w-8 h-8", text: "text-xs" },
|
|
585
|
-
md: { linear: "h-2", circular: "w-12 h-12", text: "text-sm" },
|
|
586
|
-
lg: { linear: "h-3", circular: "w-16 h-16", text: "text-base" }
|
|
587
|
-
}, K = {
|
|
588
|
-
default: "bg-primary",
|
|
589
|
-
success: "bg-success",
|
|
590
|
-
warning: "bg-warning",
|
|
591
|
-
error: "bg-error",
|
|
592
|
-
info: "bg-info"
|
|
593
|
-
}, ne = {
|
|
594
|
-
default: "bg-surface-tertiary",
|
|
595
|
-
success: "bg-success-surface",
|
|
596
|
-
warning: "bg-warning-surface",
|
|
597
|
-
error: "bg-error-surface",
|
|
598
|
-
info: "bg-info-surface"
|
|
599
|
-
};
|
|
600
|
-
ie(() => (E(Z()), E(V())), () => {
|
|
601
|
-
H(h, Math.min(Math.max(Z() / V() * 100, 0), 100));
|
|
602
|
-
}), ie(() => e(h), () => {
|
|
603
|
-
H(w, e(h) >= 100);
|
|
604
|
-
}), ie(
|
|
605
|
-
() => (e(w), E(Z()), E(V())),
|
|
606
|
-
() => {
|
|
607
|
-
e(w) && q("complete", { value: Z(), max: V() });
|
|
608
|
-
}
|
|
609
|
-
), ie(() => E(M()), () => {
|
|
610
|
-
H(j, M() === "circular" ? 2 * Math.PI * 20 : 0);
|
|
611
|
-
}), ie(() => e(j), () => {
|
|
612
|
-
H(m, e(j));
|
|
613
|
-
}), ie(() => (e(j), e(h)), () => {
|
|
614
|
-
H(F, e(j) - e(h) / 100 * e(j));
|
|
615
|
-
}), Te(), ke();
|
|
616
|
-
var _ = ht(), T = a(_);
|
|
617
|
-
{
|
|
618
|
-
var k = (O) => {
|
|
619
|
-
var g = ft(), v = a(g), c = a(v), o = d(v, 2);
|
|
620
|
-
{
|
|
621
|
-
var u = (l) => {
|
|
622
|
-
var D = ut(), Q = a(D);
|
|
623
|
-
f((de) => A(Q, `${de ?? ""}%`), [
|
|
624
|
-
() => (e(h), W(() => Math.round(e(h))))
|
|
625
|
-
]), n(l, D);
|
|
626
|
-
};
|
|
627
|
-
R(o, (l) => {
|
|
628
|
-
s() && l(u);
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
f(() => {
|
|
632
|
-
J(v, "for", z), A(c, S());
|
|
633
|
-
}), n(O, g);
|
|
634
|
-
};
|
|
635
|
-
R(T, (O) => {
|
|
636
|
-
S() && O(k);
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
var I = d(T, 2);
|
|
640
|
-
{
|
|
641
|
-
var U = (O) => {
|
|
642
|
-
var g = gt(), v = a(g), c = a(v), o = d(v, 2);
|
|
643
|
-
{
|
|
644
|
-
var u = (l) => {
|
|
645
|
-
var D = xt(), Q = a(D), de = a(Q);
|
|
646
|
-
f((pe) => A(de, `${pe ?? ""}%`), [
|
|
647
|
-
() => (e(h), W(() => Math.round(e(h))))
|
|
648
|
-
]), n(l, D);
|
|
649
|
-
};
|
|
650
|
-
R(o, (l) => {
|
|
651
|
-
s() && X() === "lg" && l(u);
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
f(
|
|
655
|
-
(l) => {
|
|
656
|
-
C(
|
|
657
|
-
v,
|
|
658
|
-
1,
|
|
659
|
-
`
|
|
660
|
-
w-full rounded-full overflow-hidden
|
|
661
|
-
${E(X()), W(() => r[X()].linear) ?? ""}
|
|
662
|
-
${E(L()), W(() => ne[L()]) ?? ""}
|
|
663
|
-
`,
|
|
664
|
-
"svelte-1nnpss"
|
|
665
|
-
), J(c, "id", z), C(
|
|
666
|
-
c,
|
|
667
|
-
1,
|
|
668
|
-
`
|
|
669
|
-
h-full rounded-full transition-all duration-300 ease-out
|
|
670
|
-
${E(L()), W(() => K[L()]) ?? ""}
|
|
671
|
-
${G() ? "animate-pulse" : ""}
|
|
672
|
-
${B() ? "bg-stripes" : ""}
|
|
673
|
-
`,
|
|
674
|
-
"svelte-1nnpss"
|
|
675
|
-
), _e(c, `width: ${e(h) ?? ""}%`), J(c, "aria-valuenow", Z()), J(c, "aria-valuemax", V()), J(c, "aria-label", l);
|
|
676
|
-
},
|
|
677
|
-
[
|
|
678
|
-
() => (E(S()), e(h), W(() => S() || `Progress: ${Math.round(e(h))}%`))
|
|
679
|
-
]
|
|
680
|
-
), n(O, g);
|
|
681
|
-
}, re = (O) => {
|
|
682
|
-
var g = xe(), v = ue(g);
|
|
683
|
-
{
|
|
684
|
-
var c = (o) => {
|
|
685
|
-
var u = bt(), l = a(u), D = d(a(l)), Q = d(l, 2), de = a(Q);
|
|
686
|
-
{
|
|
687
|
-
var pe = (le) => {
|
|
688
|
-
var ge = pt(), p = a(ge);
|
|
689
|
-
f(
|
|
690
|
-
(i) => {
|
|
691
|
-
C(
|
|
692
|
-
ge,
|
|
693
|
-
1,
|
|
694
|
-
`font-medium ${E(X()), W(() => r[X()].text) ?? ""}`,
|
|
695
|
-
"svelte-1nnpss"
|
|
696
|
-
), A(p, `${i ?? ""}%`);
|
|
697
|
-
},
|
|
698
|
-
[
|
|
699
|
-
() => (e(h), W(() => Math.round(e(h))))
|
|
700
|
-
]
|
|
701
|
-
), n(le, ge);
|
|
702
|
-
}, we = (le) => {
|
|
703
|
-
var ge = xe(), p = ue(ge);
|
|
704
|
-
ce(p, t, "center", {}, null), n(le, ge);
|
|
705
|
-
};
|
|
706
|
-
R(de, (le) => {
|
|
707
|
-
s() ? le(pe) : le(we, !1);
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
f(
|
|
711
|
-
(le) => {
|
|
712
|
-
J(l, "id", z), C(
|
|
713
|
-
l,
|
|
714
|
-
0,
|
|
715
|
-
`transform -rotate-90 ${E(X()), W(() => r[X()].circular) ?? ""}`,
|
|
716
|
-
"svelte-1nnpss"
|
|
717
|
-
), J(l, "aria-valuenow", Z()), J(l, "aria-valuemax", V()), J(l, "aria-label", le), J(D, "stroke-dasharray", e(m)), J(D, "stroke-dashoffset", e(F)), C(
|
|
718
|
-
D,
|
|
719
|
-
0,
|
|
720
|
-
`
|
|
721
|
-
transition-all duration-300 ease-out
|
|
722
|
-
${E(L()), W(() => K[L()]) ?? ""}
|
|
723
|
-
${G() ? "animate-pulse" : ""}
|
|
724
|
-
`,
|
|
725
|
-
"svelte-1nnpss"
|
|
726
|
-
);
|
|
727
|
-
},
|
|
728
|
-
[
|
|
729
|
-
() => (E(S()), e(h), W(() => S() || `Progress: ${Math.round(e(h))}%`))
|
|
730
|
-
]
|
|
731
|
-
), n(o, u);
|
|
732
|
-
};
|
|
733
|
-
R(
|
|
734
|
-
v,
|
|
735
|
-
(o) => {
|
|
736
|
-
M() === "circular" && o(c);
|
|
737
|
-
},
|
|
738
|
-
!0
|
|
739
|
-
);
|
|
740
|
-
}
|
|
741
|
-
n(O, g);
|
|
742
|
-
};
|
|
743
|
-
R(I, (O) => {
|
|
744
|
-
M() === "linear" ? O(U) : O(re, !1);
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
var te = d(I, 2);
|
|
748
|
-
ce(te, t, "default", {}, null), f(() => C(_, 1, `progress-container ${P() ?? ""}`, "svelte-1nnpss")), n(se, _), he();
|
|
749
|
-
}
|
|
750
|
-
var wt = y('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), _t = y('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), kt = y('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), zt = y("<div></div>"), Ct = y("<div></div>"), jt = y("<div></div>"), St = y('<div class="flex items-center space-x-4"><span class="text-tertiary text-sm w-12"> </span> <span> </span></div>'), Tt = y('<div class="flex items-center space-x-4"><span class="text-tertiary text-sm w-12"> </span> <span class="text-secondary text-sm w-20"> </span> <div></div></div>'), Pt = y('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Lt = y('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Et = y('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Mt = y('<div class="min-h-screen bg-primary p-8"><div class="max-w-6xl mx-auto space-y-8"><div class="flex justify-between items-center mb-8"><div><h1 class="text-4xl font-bold text-primary mb-2">Tailwind Scale Demo</h1> <p class="text-lg text-secondary">Comprehensive scales supporting light and dark modes</p></div> <!></div> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Color Scales</h2> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Primary Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Secondary Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Neutral Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Semantic Colors</h3> <div class="grid grid-cols-3 gap-4"><div class="space-y-2"><h4 class="text-sm font-medium text-primary">Success</h4> <div class="grid grid-cols-5 gap-1"></div></div> <div class="space-y-2"><h4 class="text-sm font-medium text-primary">Warning</h4> <div class="grid grid-cols-5 gap-1"></div></div> <div class="space-y-2"><h4 class="text-sm font-medium text-primary">Error</h4> <div class="grid grid-cols-5 gap-1"></div></div></div></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Background & Surface Colors</h2> <div class="grid grid-cols-2 gap-6"><div class="space-y-4"><h3 class="text-xl font-medium text-primary">Background Colors</h3> <div class="space-y-3"><div class="bg-primary p-4 rounded-lg border border-primary"><p class="text-inverse font-medium">Primary Background</p> <p class="text-inverse text-sm opacity-80">bg-primary</p></div> <div class="bg-secondary p-4 rounded-lg border border-primary"><p class="text-primary font-medium">Secondary Background</p> <p class="text-secondary text-sm">bg-secondary</p></div> <div class="bg-tertiary p-4 rounded-lg border border-primary"><p class="text-primary font-medium">Tertiary Background</p> <p class="text-secondary text-sm">bg-tertiary</p></div></div></div> <div class="space-y-4"><h3 class="text-xl font-medium text-primary">Surface Colors</h3> <div class="space-y-3"><div class="bg-surface-primary p-4 rounded-lg border border-primary shadow-adaptive-sm"><p class="text-primary font-medium">Primary Surface</p> <p class="text-secondary text-sm">bg-surface-primary</p></div> <div class="bg-surface-secondary p-4 rounded-lg border border-primary shadow-adaptive-sm"><p class="text-primary font-medium">Secondary Surface</p> <p class="text-secondary text-sm">bg-surface-secondary</p></div> <div class="bg-surface-elevated p-4 rounded-lg border border-primary shadow-adaptive-md"><p class="text-primary font-medium">Elevated Surface</p> <p class="text-secondary text-sm">bg-surface-elevated</p></div></div></div></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Typography Scale</h2> <div class="space-y-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Spacing Scale</h2> <div class="space-y-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Border Radius Scale</h2> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Shadow Scale</h2> <div class="grid grid-cols-2 md:grid-cols-4 gap-6"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Animation Scale</h2> <div class="grid grid-cols-2 md:grid-cols-3 gap-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Component Examples</h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"><div class="space-y-4"><h3 class="text-xl font-medium text-primary">Cards</h3> <div class="space-y-3"><div class="card p-4"><h4 class="text-lg font-medium text-primary mb-2">Standard Card</h4> <p class="text-secondary">This is a standard card with adaptive styling.</p></div> <div class="card-elevated p-4"><h4 class="text-lg font-medium text-primary mb-2">Elevated Card</h4> <p class="text-secondary">This is an elevated card with more shadow.</p></div></div></div> <div class="space-y-4"><h3 class="text-xl font-medium text-primary">Buttons</h3> <div class="space-y-3"><button class="button-primary">Primary Button</button> <button class="button-secondary">Secondary Button</button> <div class="flex space-x-2"><button class="px-3 py-1 text-sm rounded-md transition-colors" style="background-color: rgb(var(--color-success)); color: rgb(var(--color-text-inverse));">Success</button> <button class="px-3 py-1 text-sm rounded-md transition-colors" style="background-color: rgb(var(--color-warning)); color: rgb(var(--color-text-inverse));">Warning</button> <button class="px-3 py-1 text-sm rounded-md transition-colors" style="background-color: rgb(var(--color-error)); color: rgb(var(--color-text-inverse));">Error</button></div></div></div></div></section></div></div>');
|
|
751
|
-
function qt(se) {
|
|
752
|
-
var t = Mt(), h = a(t), w = a(h), j = d(a(w), 2);
|
|
753
|
-
Xe(j, { size: "lg", variant: "outline" });
|
|
754
|
-
var m = d(w, 2), F = d(a(m), 2), Z = d(a(F), 2);
|
|
755
|
-
ve(Z, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], me, (g, v) => {
|
|
756
|
-
var c = wt(), o = a(c), u = d(o, 2), l = a(u);
|
|
757
|
-
f(() => {
|
|
758
|
-
C(o, 1, `w-16 h-16 rounded-lg bg-primary-${v ?? ""} border border-primary mb-2`), A(l, v);
|
|
759
|
-
}), n(g, c);
|
|
760
|
-
});
|
|
761
|
-
var V = d(F, 2), X = d(a(V), 2);
|
|
762
|
-
ve(X, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], me, (g, v) => {
|
|
763
|
-
var c = _t(), o = a(c), u = d(o, 2), l = a(u);
|
|
764
|
-
f(() => {
|
|
765
|
-
C(o, 1, `w-16 h-16 rounded-lg bg-secondary-${v ?? ""} border border-primary mb-2`), A(l, v);
|
|
766
|
-
}), n(g, c);
|
|
767
|
-
});
|
|
768
|
-
var L = d(V, 2), M = d(a(L), 2);
|
|
769
|
-
ve(M, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], me, (g, v) => {
|
|
770
|
-
var c = kt(), o = a(c), u = d(o, 2), l = a(u);
|
|
771
|
-
f(() => {
|
|
772
|
-
C(o, 1, `w-16 h-16 rounded-lg bg-neutral-${v ?? ""} border border-primary mb-2`), A(l, v);
|
|
773
|
-
}), n(g, c);
|
|
774
|
-
});
|
|
775
|
-
var G = d(L, 2), B = d(a(G), 2), s = a(B), S = d(a(s), 2);
|
|
776
|
-
ve(S, 4, () => [400, 500, 600, 700, 800], me, (g, v) => {
|
|
777
|
-
var c = zt();
|
|
778
|
-
f(() => C(c, 1, `w-8 h-8 rounded bg-success-${v ?? ""} border border-primary`)), n(g, c);
|
|
779
|
-
});
|
|
780
|
-
var P = d(s, 2), q = d(a(P), 2);
|
|
781
|
-
ve(q, 4, () => [400, 500, 600, 700, 800], me, (g, v) => {
|
|
782
|
-
var c = Ct();
|
|
783
|
-
f(() => C(c, 1, `w-8 h-8 rounded bg-warning-${v ?? ""} border border-primary`)), n(g, c);
|
|
784
|
-
});
|
|
785
|
-
var z = d(P, 2), r = d(a(z), 2);
|
|
786
|
-
ve(r, 4, () => [400, 500, 600, 700, 800], me, (g, v) => {
|
|
787
|
-
var c = jt();
|
|
788
|
-
f(() => C(c, 1, `w-8 h-8 rounded bg-error-${v ?? ""} border border-primary`)), n(g, c);
|
|
789
|
-
});
|
|
790
|
-
var K = d(m, 4), ne = d(a(K), 2);
|
|
791
|
-
ve(
|
|
792
|
-
ne,
|
|
793
|
-
4,
|
|
794
|
-
() => [
|
|
795
|
-
{ size: "2xs", text: "Extra Small Text", class: "text-2xs" },
|
|
796
|
-
{ size: "xs", text: "Small Text", class: "text-xs" },
|
|
797
|
-
{ size: "sm", text: "Small Medium Text", class: "text-sm" },
|
|
798
|
-
{ size: "base", text: "Base Text", class: "text-base" },
|
|
799
|
-
{ size: "lg", text: "Large Text", class: "text-lg" },
|
|
800
|
-
{ size: "xl", text: "Extra Large Text", class: "text-xl" },
|
|
801
|
-
{ size: "2xl", text: "2X Large Text", class: "text-2xl" },
|
|
802
|
-
{ size: "3xl", text: "3X Large Text", class: "text-3xl" },
|
|
803
|
-
{ size: "4xl", text: "4X Large Text", class: "text-4xl" },
|
|
804
|
-
{ size: "5xl", text: "5X Large Text", class: "text-5xl" },
|
|
805
|
-
{ size: "6xl", text: "6X Large Text", class: "text-6xl" }
|
|
806
|
-
],
|
|
807
|
-
me,
|
|
808
|
-
(g, v) => {
|
|
809
|
-
var c = St(), o = a(c), u = a(o), l = d(o, 2), D = a(l);
|
|
810
|
-
f(() => {
|
|
811
|
-
A(u, v.size), C(l, 1, `${v.class ?? ""} text-primary`), A(D, v.text);
|
|
812
|
-
}), n(g, c);
|
|
813
|
-
}
|
|
814
|
-
);
|
|
815
|
-
var _ = d(K, 2), T = d(a(_), 2);
|
|
816
|
-
ve(
|
|
817
|
-
T,
|
|
818
|
-
4,
|
|
819
|
-
() => [
|
|
820
|
-
{ size: "1", value: "0.25rem", class: "w-1" },
|
|
821
|
-
{ size: "2", value: "0.5rem", class: "w-2" },
|
|
822
|
-
{ size: "4", value: "1rem", class: "w-4" },
|
|
823
|
-
{ size: "8", value: "2rem", class: "w-8" },
|
|
824
|
-
{ size: "16", value: "4rem", class: "w-16" },
|
|
825
|
-
{ size: "32", value: "8rem", class: "w-32" },
|
|
826
|
-
{ size: "64", value: "16rem", class: "w-64" },
|
|
827
|
-
{ size: "128", value: "32rem", class: "w-128" },
|
|
828
|
-
{ size: "256", value: "64rem", class: "w-256" }
|
|
829
|
-
],
|
|
830
|
-
me,
|
|
831
|
-
(g, v) => {
|
|
832
|
-
var c = Tt(), o = a(c), u = a(o), l = d(o, 2), D = a(l), Q = d(l, 2);
|
|
833
|
-
f(() => {
|
|
834
|
-
A(u, v.size), A(D, v.value), C(Q, 1, `${v.class ?? ""} h-4 bg-primary-500 rounded`);
|
|
835
|
-
}), n(g, c);
|
|
836
|
-
}
|
|
837
|
-
);
|
|
838
|
-
var k = d(_, 2), I = d(a(k), 2);
|
|
839
|
-
ve(
|
|
840
|
-
I,
|
|
841
|
-
4,
|
|
842
|
-
() => [
|
|
843
|
-
{ size: "none", class: "rounded-none" },
|
|
844
|
-
{ size: "sm", class: "rounded-sm" },
|
|
845
|
-
{ size: "DEFAULT", class: "rounded" },
|
|
846
|
-
{ size: "md", class: "rounded-md" },
|
|
847
|
-
{ size: "lg", class: "rounded-lg" },
|
|
848
|
-
{ size: "xl", class: "rounded-xl" },
|
|
849
|
-
{ size: "2xl", class: "rounded-2xl" },
|
|
850
|
-
{ size: "3xl", class: "rounded-3xl" },
|
|
851
|
-
{ size: "full", class: "rounded-full" }
|
|
852
|
-
],
|
|
853
|
-
me,
|
|
854
|
-
(g, v) => {
|
|
855
|
-
var c = Pt(), o = a(c), u = d(o, 2), l = a(u);
|
|
856
|
-
f(() => {
|
|
857
|
-
C(o, 1, `w-16 h-16 bg-primary-500 ${v.class ?? ""} mx-auto`), A(l, v.size);
|
|
858
|
-
}), n(g, c);
|
|
859
|
-
}
|
|
860
|
-
);
|
|
861
|
-
var U = d(k, 2), re = d(a(U), 2);
|
|
862
|
-
ve(
|
|
863
|
-
re,
|
|
864
|
-
4,
|
|
865
|
-
() => [
|
|
866
|
-
{ name: "xs", class: "shadow-xs" },
|
|
867
|
-
{ name: "sm", class: "shadow-sm" },
|
|
868
|
-
{ name: "DEFAULT", class: "shadow" },
|
|
869
|
-
{ name: "md", class: "shadow-md" },
|
|
870
|
-
{ name: "lg", class: "shadow-lg" },
|
|
871
|
-
{ name: "xl", class: "shadow-xl" },
|
|
872
|
-
{ name: "2xl", class: "shadow-2xl" },
|
|
873
|
-
{ name: "Adaptive", class: "shadow-adaptive-lg" }
|
|
874
|
-
],
|
|
875
|
-
me,
|
|
876
|
-
(g, v) => {
|
|
877
|
-
var c = Lt(), o = a(c), u = d(o, 2), l = a(u);
|
|
878
|
-
f(() => {
|
|
879
|
-
C(o, 1, `w-20 h-20 bg-surface-primary border border-primary ${v.class ?? ""} mx-auto`), A(l, v.name);
|
|
880
|
-
}), n(g, c);
|
|
881
|
-
}
|
|
882
|
-
);
|
|
883
|
-
var te = d(U, 2), O = d(a(te), 2);
|
|
884
|
-
ve(
|
|
885
|
-
O,
|
|
886
|
-
4,
|
|
887
|
-
() => [
|
|
888
|
-
{ name: "Fade In", class: "animate-fade-in" },
|
|
889
|
-
{ name: "Slide Up", class: "animate-slide-in-up" },
|
|
890
|
-
{ name: "Slide Down", class: "animate-slide-in-down" },
|
|
891
|
-
{ name: "Scale In", class: "animate-scale-in" },
|
|
892
|
-
{ name: "Bounce", class: "animate-bounce-gentle" },
|
|
893
|
-
{ name: "Pulse", class: "animate-pulse-slow" }
|
|
894
|
-
],
|
|
895
|
-
me,
|
|
896
|
-
(g, v) => {
|
|
897
|
-
var c = Et(), o = a(c), u = d(o, 2), l = a(u);
|
|
898
|
-
f(() => {
|
|
899
|
-
C(o, 1, `w-16 h-16 bg-primary-500 rounded-lg ${v.class ?? ""} mx-auto`), A(l, v.name);
|
|
900
|
-
}), n(g, c);
|
|
901
|
-
}
|
|
902
|
-
), n(se, t);
|
|
903
|
-
}
|
|
904
|
-
var Bt = y("<div></div>");
|
|
905
|
-
function Ut(se, t) {
|
|
906
|
-
let h = x(t, "width", 8, "100%"), w = x(t, "height", 8, "1rem"), j = x(t, "borderRadius", 8, "0.5rem"), m = x(t, "className", 8, "");
|
|
907
|
-
var F = Bt();
|
|
908
|
-
f(() => {
|
|
909
|
-
C(F, 1, `animate-pulse ${m() ?? ""}`), _e(F, `width: ${h() ?? ""}; height: ${w() ?? ""}; border-radius: ${j() ?? ""}; background-color: rgb(var(--color-surface-secondary));`);
|
|
910
|
-
}), n(se, F);
|
|
911
|
-
}
|
|
912
|
-
var It = y('<button type="button" class="inline-block svelte-13nzt82"><!></button>'), Dt = y('<div role="button" tabindex="0" class="inline-block svelte-13nzt82"><!></div>'), Ot = y("<div></div>"), At = y('<div role="tooltip"><div class="relative svelte-13nzt82"> <!></div></div>'), Nt = y("<!> <!>", 1);
|
|
913
|
-
const Rt = {
|
|
914
|
-
hash: "svelte-13nzt82",
|
|
915
|
-
code: `
|
|
916
|
-
/* Ensure tooltip is above other elements */.tooltip-container {z-index:1000;}
|
|
917
|
-
|
|
918
|
-
/* Smooth transitions */.tooltip-enter.svelte-13nzt82 {
|
|
919
|
-
animation: svelte-13nzt82-tooltip-enter 0.2s ease-out;}.tooltip-exit.svelte-13nzt82 {
|
|
920
|
-
animation: svelte-13nzt82-tooltip-exit 0.15s ease-in;}
|
|
921
|
-
|
|
922
|
-
@keyframes svelte-13nzt82-tooltip-enter {
|
|
923
|
-
0% {
|
|
924
|
-
opacity: 0;
|
|
925
|
-
transform: scale(0.95);
|
|
926
|
-
}
|
|
927
|
-
100% {
|
|
928
|
-
opacity: 1;
|
|
929
|
-
transform: scale(1);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
@keyframes svelte-13nzt82-tooltip-exit {
|
|
934
|
-
0% {
|
|
935
|
-
opacity: 1;
|
|
936
|
-
transform: scale(1);
|
|
937
|
-
}
|
|
938
|
-
100% {
|
|
939
|
-
opacity: 0;
|
|
940
|
-
transform: scale(0.95);
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
/* Arrow positioning */.tooltip-arrow.svelte-13nzt82 {position:absolute;width:0;height:0;}`
|
|
945
|
-
};
|
|
946
|
-
function Jt(se, t) {
|
|
947
|
-
ye(t, !1), Me(se, Rt);
|
|
948
|
-
let h = x(t, "content", 8, ""), w = x(t, "placement", 8, "top"), j = x(t, "trigger", 8, "hover"), m = x(t, "disabled", 8, !1), F = x(t, "delay", 8, 200), Z = x(t, "maxWidth", 8, "200px"), V = x(t, "variant", 8, "default"), X = x(t, "size", 8, "md"), L = x(t, "arrow", 8, !0), M = x(t, "interactive", 8, !1), G = x(t, "className", 8, "");
|
|
949
|
-
const B = Be();
|
|
950
|
-
let s = ee(), S = ee(), P = ee(!1), q, z, r;
|
|
951
|
-
const K = {
|
|
952
|
-
sm: "px-2 py-1 text-xs",
|
|
953
|
-
md: "px-3 py-1.5 text-sm",
|
|
954
|
-
lg: "px-4 py-2 text-base"
|
|
955
|
-
}, ne = {
|
|
956
|
-
default: "bg-surface-elevated text-primary border-primary shadow-adaptive-lg",
|
|
957
|
-
dark: "bg-surface text-inverse border-primary shadow-adaptive-lg",
|
|
958
|
-
light: "bg-surface text-primary border-primary shadow-adaptive-lg",
|
|
959
|
-
info: "bg-info text-inverse border-info shadow-adaptive-lg",
|
|
960
|
-
success: "bg-success text-inverse border-success shadow-adaptive-lg",
|
|
961
|
-
warning: "bg-warning text-inverse border-warning shadow-adaptive-lg",
|
|
962
|
-
error: "bg-error text-inverse border-error shadow-adaptive-lg"
|
|
963
|
-
};
|
|
964
|
-
function _() {
|
|
965
|
-
if (!e(S) || !e(s) || !De()) return { top: 0, left: 0 };
|
|
966
|
-
const p = Ge();
|
|
967
|
-
if (!p) return { top: 0, left: 0 };
|
|
968
|
-
r = e(S).getBoundingClientRect();
|
|
969
|
-
const i = e(s).getBoundingClientRect(), N = p.scrollY, b = p.scrollX, ze = p.innerWidth, Ce = p.innerHeight;
|
|
970
|
-
let Y = 0, ae = 0;
|
|
971
|
-
switch (w()) {
|
|
972
|
-
case "top":
|
|
973
|
-
Y = r.top + N - i.height - 8, ae = r.left + b + (r.width - i.width) / 2;
|
|
974
|
-
break;
|
|
975
|
-
case "top-start":
|
|
976
|
-
Y = r.top + N - i.height - 8, ae = r.left + b;
|
|
977
|
-
break;
|
|
978
|
-
case "top-end":
|
|
979
|
-
Y = r.top + N - i.height - 8, ae = r.right + b - i.width;
|
|
980
|
-
break;
|
|
981
|
-
case "bottom":
|
|
982
|
-
Y = r.bottom + N + 8, ae = r.left + b + (r.width - i.width) / 2;
|
|
983
|
-
break;
|
|
984
|
-
case "bottom-start":
|
|
985
|
-
Y = r.bottom + N + 8, ae = r.left + b;
|
|
986
|
-
break;
|
|
987
|
-
case "bottom-end":
|
|
988
|
-
Y = r.bottom + N + 8, ae = r.right + b - i.width;
|
|
989
|
-
break;
|
|
990
|
-
case "left":
|
|
991
|
-
Y = r.top + N + (r.height - i.height) / 2, ae = r.left + b - i.width - 8;
|
|
992
|
-
break;
|
|
993
|
-
case "left-start":
|
|
994
|
-
Y = r.top + N, ae = r.left + b - i.width - 8;
|
|
995
|
-
break;
|
|
996
|
-
case "left-end":
|
|
997
|
-
Y = r.bottom + N - i.height, ae = r.left + b - i.width - 8;
|
|
998
|
-
break;
|
|
999
|
-
case "right":
|
|
1000
|
-
Y = r.top + N + (r.height - i.height) / 2, ae = r.right + b + 8;
|
|
1001
|
-
break;
|
|
1002
|
-
case "right-start":
|
|
1003
|
-
Y = r.top + N, ae = r.right + b + 8;
|
|
1004
|
-
break;
|
|
1005
|
-
case "right-end":
|
|
1006
|
-
Y = r.bottom + N - i.height, ae = r.right + b + 8;
|
|
1007
|
-
break;
|
|
1008
|
-
}
|
|
1009
|
-
return ae < 8 && (ae = 8), ae + i.width > ze - 8 && (ae = ze - i.width - 8), Y < 8 && (Y = 8), Y + i.height > Ce + N - 8 && (Y = Ce + N - i.height - 8), { top: Y, left: ae };
|
|
1010
|
-
}
|
|
1011
|
-
function T(p) {
|
|
1012
|
-
m() || e(P) || (je(z), q = Oe(
|
|
1013
|
-
() => {
|
|
1014
|
-
if (H(P, !0), B("show", { event: p }), !Ee(() => {
|
|
1015
|
-
const N = _();
|
|
1016
|
-
e(s) && (oe(s, e(s).style.top = `${N.top}px`), oe(s, e(s).style.left = `${N.left}px`));
|
|
1017
|
-
})) {
|
|
1018
|
-
const N = _();
|
|
1019
|
-
e(s) && (oe(s, e(s).style.top = `${N.top}px`), oe(s, e(s).style.left = `${N.left}px`));
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
F()
|
|
1023
|
-
));
|
|
1024
|
-
}
|
|
1025
|
-
function k(p) {
|
|
1026
|
-
e(P) && (je(q), z = Oe(
|
|
1027
|
-
() => {
|
|
1028
|
-
H(P, !1), B("hide", { event: p });
|
|
1029
|
-
},
|
|
1030
|
-
M() ? 300 : 0
|
|
1031
|
-
));
|
|
1032
|
-
}
|
|
1033
|
-
function I(p) {
|
|
1034
|
-
j() === "click" && (e(P) ? k(p) : T(p));
|
|
1035
|
-
}
|
|
1036
|
-
function U(p) {
|
|
1037
|
-
j() === "click" && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), e(P) ? k(p) : T(p));
|
|
1038
|
-
}
|
|
1039
|
-
function re(p) {
|
|
1040
|
-
j() === "focus" && T(p);
|
|
1041
|
-
}
|
|
1042
|
-
function te(p) {
|
|
1043
|
-
j() === "focus" && k(p);
|
|
1044
|
-
}
|
|
1045
|
-
function O(p) {
|
|
1046
|
-
j() === "hover" && T(p);
|
|
1047
|
-
}
|
|
1048
|
-
function g(p) {
|
|
1049
|
-
j() === "hover" && k(p);
|
|
1050
|
-
}
|
|
1051
|
-
function v() {
|
|
1052
|
-
M() && clearTimeout(z);
|
|
1053
|
-
}
|
|
1054
|
-
function c(p) {
|
|
1055
|
-
M() && k(p);
|
|
1056
|
-
}
|
|
1057
|
-
function o() {
|
|
1058
|
-
m() || H(P, !0);
|
|
1059
|
-
}
|
|
1060
|
-
function u() {
|
|
1061
|
-
H(P, !1);
|
|
1062
|
-
}
|
|
1063
|
-
function l() {
|
|
1064
|
-
e(P) ? u() : o();
|
|
1065
|
-
}
|
|
1066
|
-
Ie(() => () => {
|
|
1067
|
-
je(q), je(z);
|
|
1068
|
-
}), ie(
|
|
1069
|
-
() => (e(P), e(s), Ee),
|
|
1070
|
-
() => {
|
|
1071
|
-
if (e(P) && e(s) && De() && !Ee(() => {
|
|
1072
|
-
const i = _();
|
|
1073
|
-
e(s) && (oe(s, e(s).style.top = `${i.top}px`), oe(s, e(s).style.left = `${i.left}px`));
|
|
1074
|
-
})) {
|
|
1075
|
-
const i = _();
|
|
1076
|
-
e(s) && (oe(s, e(s).style.top = `${i.top}px`), oe(s, e(s).style.left = `${i.left}px`));
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
), Te();
|
|
1080
|
-
var D = { show: o, hide: u, toggle: l };
|
|
1081
|
-
ke();
|
|
1082
|
-
var Q = Nt(), de = ue(Q);
|
|
1083
|
-
{
|
|
1084
|
-
var pe = (p) => {
|
|
1085
|
-
var i = It(), N = a(i);
|
|
1086
|
-
ce(N, t, "default", {}, null), Se(i, (b) => H(S, b), () => e(S)), f(() => J(i, "aria-describedby", e(P) ? "tooltip-{content}" : void 0)), $("click", i, (b) => I(b)), $("keydown", i, (b) => U(b)), $("focus", i, (b) => re(b)), $("blur", i, (b) => te(b)), $("mouseenter", i, (b) => O(b)), $("mouseleave", i, (b) => g(b)), n(p, i);
|
|
1087
|
-
}, we = (p) => {
|
|
1088
|
-
var i = Dt(), N = a(i);
|
|
1089
|
-
ce(N, t, "default", {}, null), Se(i, (b) => H(S, b), () => e(S)), f(() => J(i, "aria-describedby", e(P) ? "tooltip-{content}" : void 0)), $("click", i, (b) => I(b)), $("keydown", i, (b) => U(b)), $("focus", i, (b) => re(b)), $("blur", i, (b) => te(b)), $("mouseenter", i, (b) => O(b)), $("mouseleave", i, (b) => g(b)), n(p, i);
|
|
1090
|
-
};
|
|
1091
|
-
R(de, (p) => {
|
|
1092
|
-
j() === "click" ? p(pe) : p(we, !1);
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
var le = d(de, 2);
|
|
1096
|
-
{
|
|
1097
|
-
var ge = (p) => {
|
|
1098
|
-
var i = At(), N = a(i), b = a(N), ze = d(b);
|
|
1099
|
-
{
|
|
1100
|
-
var Ce = (Y) => {
|
|
1101
|
-
var ae = Ot();
|
|
1102
|
-
f(
|
|
1103
|
-
(Ae, Ne, Re, Fe, We) => C(
|
|
1104
|
-
ae,
|
|
1105
|
-
1,
|
|
1106
|
-
`
|
|
1107
|
-
absolute w-2 h-2 transform rotate-45
|
|
1108
|
-
${Ae ?? ""}
|
|
1109
|
-
${Ne ?? ""}
|
|
1110
|
-
${Re ?? ""}
|
|
1111
|
-
${Fe ?? ""}
|
|
1112
|
-
${We ?? ""}
|
|
1113
|
-
`,
|
|
1114
|
-
"svelte-13nzt82"
|
|
1115
|
-
),
|
|
1116
|
-
[
|
|
1117
|
-
() => (E(V()), W(() => ne[V()].split(" ")[0])),
|
|
1118
|
-
() => (E(w()), W(() => w().includes("top") ? "bottom-[-4px] left-1/2 -translate-x-1/2" : "")),
|
|
1119
|
-
() => (E(w()), W(() => w().includes("bottom") ? "top-[-4px] left-1/2 -translate-x-1/2" : "")),
|
|
1120
|
-
() => (E(w()), W(() => w().includes("left") ? "right-[-4px] top-1/2 -translate-y-1/2" : "")),
|
|
1121
|
-
() => (E(w()), W(() => w().includes("right") ? "left-[-4px] top-1/2 -translate-y-1/2" : ""))
|
|
1122
|
-
]
|
|
1123
|
-
), n(Y, ae);
|
|
1124
|
-
};
|
|
1125
|
-
R(ze, (Y) => {
|
|
1126
|
-
L() && Y(Ce);
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
Se(i, (Y) => H(s, Y), () => e(s)), f(() => {
|
|
1130
|
-
J(i, "id", `tooltip-${h() ?? ""}`), C(
|
|
1131
|
-
i,
|
|
1132
|
-
1,
|
|
1133
|
-
`
|
|
1134
|
-
fixed z-tooltip
|
|
1135
|
-
${E(X()), W(() => K[X()]) ?? ""}
|
|
1136
|
-
${E(V()), W(() => ne[V()]) ?? ""}
|
|
1137
|
-
border rounded-lg shadow-adaptive-lg
|
|
1138
|
-
${G() ?? ""}
|
|
1139
|
-
`,
|
|
1140
|
-
"svelte-13nzt82"
|
|
1141
|
-
), _e(i, `max-width: ${Z() ?? ""};`), A(b, `${h() ?? ""} `);
|
|
1142
|
-
}), $("mouseenter", i, v), $("mouseleave", i, c), He(3, i, () => Ve, () => ({
|
|
1143
|
-
x: w().includes("left") ? -10 : w().includes("right") ? 10 : 0,
|
|
1144
|
-
y: w().includes("top") ? -10 : w().includes("bottom") ? 10 : 0,
|
|
1145
|
-
duration: 200
|
|
1146
|
-
})), n(p, i);
|
|
1147
|
-
};
|
|
1148
|
-
R(le, (p) => {
|
|
1149
|
-
e(P) && h() && p(ge);
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
return n(se, Q), Le(t, "show", o), Le(t, "hide", u), Le(t, "toggle", l), he(D);
|
|
1153
|
-
}
|
|
1154
|
-
export {
|
|
1155
|
-
Vt as B,
|
|
1156
|
-
Xt as H,
|
|
1157
|
-
Gt as O,
|
|
1158
|
-
Yt as P,
|
|
1159
|
-
qt as S,
|
|
1160
|
-
Jt as T,
|
|
1161
|
-
Zt as a,
|
|
1162
|
-
Ut as b
|
|
1163
|
-
};
|