zabi-components 1.0.4 → 1.0.5
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 +339 -98
- package/dist/{Tabs-CQvsdYPW.js → Tabs-ksSPSd0I.js} +254 -258
- package/dist/Toggle-DYKQFP4Y.js +2277 -0
- package/dist/{Tooltip-B-wUMg6c.js → Tooltip-D6yYgExv.js} +238 -242
- package/dist/atoms/index.js +2 -2
- package/dist/index/index.js +3 -3
- package/dist/molecules/index.js +2 -2
- package/dist/zabi-components.css +1 -0
- package/package.json +1 -1
- package/dist/Toggle-DuPArdKN.js +0 -2315
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Te, p as
|
|
1
|
+
import { a as Te, p as u, C as ie, D as ze, i as we, f as _, c as H, g as r, h as pe, j as he, r as C, l as e, m as Y, n as a, k as O, b as ue, o as i, s as ne, t as h, q as S, F as oe, e as R, u as X, x as Se, v as J, _ as Fe, w as xe, W as ye, B as W, d as je, P as ke, $ as me, E as ce, Z as ve, G as Le, y as qe, z as Re } from "./x-DpVwziig.js";
|
|
2
2
|
import { createEventDispatcher as Pe, onMount as Be } from "svelte";
|
|
3
3
|
import { T as We } from "./Toast-DXZ9gllw.js";
|
|
4
4
|
var He = _("<div></div>"), Oe = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ve = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Xe = _('<button type="button"><!> <!> <!> <!></button> <button type="button" aria-label="Close badge"><svg class="w-full h-full 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), Ze = _("<div></div>"), Ge = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ye = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ue = _("<span><!> <!> <!> <!></span>"), Je = _('<div class="inline-flex items-center gap-1 svelte-14njway"><!></div>');
|
|
@@ -62,14 +62,14 @@ const Ke = {
|
|
|
62
62
|
};
|
|
63
63
|
function Ht(K, t) {
|
|
64
64
|
he(t, !1), Te(K, Ke);
|
|
65
|
-
const y = Y(), w = Y(), j = Y(),
|
|
66
|
-
let q =
|
|
65
|
+
const y = Y(), w = Y(), j = Y(), m = Y(), L = Y(), B = Y(), F = Y();
|
|
66
|
+
let q = u(t, "variant", 8, "default"), T = u(t, "size", 8, "md"), k = u(t, "shape", 8, "rounded"), P = u(t, "dot", 8, !1), D = u(t, "closable", 8, !1), d = u(t, "icon", 8, void 0), E = u(t, "iconPosition", 8, "left");
|
|
67
67
|
const M = Pe();
|
|
68
|
-
function Q(
|
|
69
|
-
|
|
68
|
+
function Q(b) {
|
|
69
|
+
b.stopPropagation(), M("close", { event: b });
|
|
70
70
|
}
|
|
71
|
-
function A(
|
|
72
|
-
M("click", { event:
|
|
71
|
+
function A(b) {
|
|
72
|
+
M("click", { event: b });
|
|
73
73
|
}
|
|
74
74
|
ie(() => {
|
|
75
75
|
}, () => {
|
|
@@ -97,7 +97,7 @@ function Ht(K, t) {
|
|
|
97
97
|
});
|
|
98
98
|
}), ie(() => {
|
|
99
99
|
}, () => {
|
|
100
|
-
O(
|
|
100
|
+
O(m, { sm: "w-1.5 h-1.5", md: "w-2 h-2", lg: "w-2.5 h-2.5" });
|
|
101
101
|
}), ie(
|
|
102
102
|
() => (e(y), C(T()), e(w), C(q()), e(j), C(k()), C(D())),
|
|
103
103
|
() => {
|
|
@@ -138,15 +138,15 @@ function Ht(K, t) {
|
|
|
138
138
|
}), ze(), we();
|
|
139
139
|
var f = Je(), N = a(f);
|
|
140
140
|
{
|
|
141
|
-
var te = (
|
|
142
|
-
var I = Xe(), V =
|
|
141
|
+
var te = (b) => {
|
|
142
|
+
var I = Xe(), V = ue(I), $ = a(V);
|
|
143
143
|
{
|
|
144
144
|
var ee = (o) => {
|
|
145
145
|
var v = He();
|
|
146
|
-
|
|
146
|
+
h(() => S(
|
|
147
147
|
v,
|
|
148
148
|
1,
|
|
149
|
-
`w-2 h-2 rounded-full bg-current ${e(
|
|
149
|
+
`w-2 h-2 rounded-full bg-current ${e(m), C(T()), X(() => e(m)[T()]) ?? ""}`,
|
|
150
150
|
"svelte-14njway"
|
|
151
151
|
)), r(o, v);
|
|
152
152
|
};
|
|
@@ -156,23 +156,23 @@ function Ht(K, t) {
|
|
|
156
156
|
}
|
|
157
157
|
var U = i($, 2);
|
|
158
158
|
{
|
|
159
|
-
var
|
|
159
|
+
var p = (o) => {
|
|
160
160
|
var v = Oe(), Z = a(v);
|
|
161
|
-
|
|
161
|
+
h(() => {
|
|
162
162
|
S(v, 0, oe(e(B)), "svelte-14njway"), J(Z, "d", d());
|
|
163
163
|
}), r(o, v);
|
|
164
164
|
};
|
|
165
165
|
H(U, (o) => {
|
|
166
|
-
d() && E() === "left" && o(
|
|
166
|
+
d() && E() === "left" && o(p);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
ne(
|
|
171
|
-
var c = i(
|
|
169
|
+
var g = i(U, 2);
|
|
170
|
+
ne(g, t, "default", {}, null);
|
|
171
|
+
var c = i(g, 2);
|
|
172
172
|
{
|
|
173
173
|
var s = (o) => {
|
|
174
174
|
var v = Ve(), Z = a(v);
|
|
175
|
-
|
|
175
|
+
h(() => {
|
|
176
176
|
S(v, 0, oe(e(B)), "svelte-14njway"), J(Z, "d", d());
|
|
177
177
|
}), r(o, v);
|
|
178
178
|
};
|
|
@@ -181,18 +181,18 @@ function Ht(K, t) {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
var n = i(V, 2);
|
|
184
|
-
|
|
184
|
+
h(() => {
|
|
185
185
|
S(V, 1, oe(e(L)), "svelte-14njway"), S(n, 1, oe(e(F)), "svelte-14njway");
|
|
186
|
-
}), R("click", V, A), R("keydown", V, (o) => o.key === "Enter" && A(o)), R("click", n, Q), R("keydown", n, (o) => o.key === "Enter" && Q(o)), r(
|
|
187
|
-
}, z = (
|
|
186
|
+
}), R("click", V, A), R("keydown", V, (o) => o.key === "Enter" && A(o)), R("click", n, Q), R("keydown", n, (o) => o.key === "Enter" && Q(o)), r(b, I);
|
|
187
|
+
}, z = (b) => {
|
|
188
188
|
var I = Ue(), V = a(I);
|
|
189
189
|
{
|
|
190
190
|
var $ = (s) => {
|
|
191
191
|
var n = Ze();
|
|
192
|
-
|
|
192
|
+
h(() => S(
|
|
193
193
|
n,
|
|
194
194
|
1,
|
|
195
|
-
`w-2 h-2 rounded-full bg-current ${e(
|
|
195
|
+
`w-2 h-2 rounded-full bg-current ${e(m), C(T()), X(() => e(m)[T()]) ?? ""}`,
|
|
196
196
|
"svelte-14njway"
|
|
197
197
|
)), r(s, n);
|
|
198
198
|
};
|
|
@@ -204,7 +204,7 @@ function Ht(K, t) {
|
|
|
204
204
|
{
|
|
205
205
|
var U = (s) => {
|
|
206
206
|
var n = Ge(), o = a(n);
|
|
207
|
-
|
|
207
|
+
h(() => {
|
|
208
208
|
S(n, 0, oe(e(B)), "svelte-14njway"), J(o, "d", d());
|
|
209
209
|
}), r(s, n);
|
|
210
210
|
};
|
|
@@ -212,24 +212,24 @@ function Ht(K, t) {
|
|
|
212
212
|
d() && E() === "left" && s(U);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
ne(
|
|
217
|
-
var
|
|
215
|
+
var p = i(ee, 2);
|
|
216
|
+
ne(p, t, "default", {}, null);
|
|
217
|
+
var g = i(p, 2);
|
|
218
218
|
{
|
|
219
219
|
var c = (s) => {
|
|
220
220
|
var n = Ye(), o = a(n);
|
|
221
|
-
|
|
221
|
+
h(() => {
|
|
222
222
|
S(n, 0, oe(e(B)), "svelte-14njway"), J(o, "d", d());
|
|
223
223
|
}), r(s, n);
|
|
224
224
|
};
|
|
225
|
-
H(
|
|
225
|
+
H(g, (s) => {
|
|
226
226
|
d() && E() === "right" && s(c);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
h(() => S(I, 1, oe(e(L)), "svelte-14njway")), r(b, I);
|
|
230
230
|
};
|
|
231
|
-
H(N, (
|
|
232
|
-
D() ?
|
|
231
|
+
H(N, (b) => {
|
|
232
|
+
D() ? b(te) : b(z, !1);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
r(K, f), pe();
|
|
@@ -242,46 +242,42 @@ const et = {
|
|
|
242
242
|
function Ot(K, t) {
|
|
243
243
|
he(t, !1), Te(K, et);
|
|
244
244
|
const y = Y(), w = Y();
|
|
245
|
-
let j =
|
|
246
|
-
const k = Pe(), P = {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}, D = {
|
|
251
|
-
default: "bg-card border border-primary",
|
|
252
|
-
outlined: "bg-card border-2 border-primary",
|
|
253
|
-
elevated: "bg-card border border-primary shadow-lg",
|
|
254
|
-
filled: "bg-surface-secondary border border-primary"
|
|
245
|
+
let j = u(t, "variant", 8, "default"), m = u(t, "density", 8, "comfortable"), L = u(t, "disabled", 8, !1), B = u(t, "loading", 8, !1), F = u(t, "className", 8, ""), q = u(t, "ariaLabel", 8, ""), T = u(t, "ariaDescribedBy", 8, "");
|
|
246
|
+
const k = Pe(), P = { compact: "p-3 rounded-md", comfortable: "p-4 rounded-lg" }, D = {
|
|
247
|
+
default: "bg-[var(--zabi-surface)] border border-[var(--zabi-border)] shadow-sm",
|
|
248
|
+
elevated: "bg-[var(--zabi-surface)] border border-[var(--zabi-border)] shadow-md",
|
|
249
|
+
outlined: "bg-[var(--zabi-surface)] border-2 border-[var(--zabi-border)] shadow-sm"
|
|
255
250
|
};
|
|
256
|
-
function d(
|
|
251
|
+
function d(p) {
|
|
252
|
+
var g;
|
|
257
253
|
if (L() || B()) {
|
|
258
|
-
|
|
254
|
+
p.preventDefault();
|
|
259
255
|
return;
|
|
260
256
|
}
|
|
261
|
-
k("click",
|
|
257
|
+
k("click", { value: !0, event: ((g = p.detail) == null ? void 0 : g.event) || p });
|
|
262
258
|
}
|
|
263
|
-
function E(
|
|
264
|
-
L() || B() ||
|
|
259
|
+
function E(p) {
|
|
260
|
+
L() || B() || p.key === "Escape" && p.target.blur();
|
|
265
261
|
}
|
|
266
|
-
function M(
|
|
267
|
-
!L() && !B() && k("focus",
|
|
262
|
+
function M(p) {
|
|
263
|
+
!L() && !B() && k("focus", { event: p });
|
|
268
264
|
}
|
|
269
|
-
function Q(
|
|
270
|
-
!L() && !B() && k("blur",
|
|
265
|
+
function Q(p) {
|
|
266
|
+
!L() && !B() && k("blur", { event: p });
|
|
271
267
|
}
|
|
272
|
-
function A(
|
|
273
|
-
!L() && !B() && k("hover",
|
|
268
|
+
function A(p) {
|
|
269
|
+
!L() && !B() && k("hover", { event: p });
|
|
274
270
|
}
|
|
275
|
-
function f(
|
|
276
|
-
!L() && !B() && k("leave",
|
|
271
|
+
function f(p) {
|
|
272
|
+
!L() && !B() && k("leave", { event: p });
|
|
277
273
|
}
|
|
278
274
|
ie(
|
|
279
|
-
() => (C(j()), C(
|
|
275
|
+
() => (C(j()), C(m()), C(L()), C(B()), C(F())),
|
|
280
276
|
() => {
|
|
281
277
|
O(y, [
|
|
282
278
|
"transition-all duration-200",
|
|
283
279
|
D[j()],
|
|
284
|
-
P[
|
|
280
|
+
P[m()],
|
|
285
281
|
L() ? "opacity-50 cursor-not-allowed" : "",
|
|
286
282
|
B() ? "animate-pulse" : "",
|
|
287
283
|
F()
|
|
@@ -301,18 +297,18 @@ function Ot(K, t) {
|
|
|
301
297
|
Fe(N, () => ({ class: e(y), ...e(w) }), void 0, void 0, "svelte-1qx5g6b");
|
|
302
298
|
var te = a(N), z = a(te);
|
|
303
299
|
ne(z, t, "header", {}, null);
|
|
304
|
-
var
|
|
300
|
+
var b = i(te, 2), I = a(b);
|
|
305
301
|
ne(I, t, "default", {}, null);
|
|
306
|
-
var V = i(
|
|
302
|
+
var V = i(b, 2), $ = a(V);
|
|
307
303
|
ne($, t, "footer", {}, null);
|
|
308
304
|
var ee = i(V, 2);
|
|
309
305
|
{
|
|
310
|
-
var U = (
|
|
311
|
-
var
|
|
312
|
-
r(
|
|
306
|
+
var U = (p) => {
|
|
307
|
+
var g = Qe();
|
|
308
|
+
r(p, g);
|
|
313
309
|
};
|
|
314
|
-
H(ee, (
|
|
315
|
-
B() &&
|
|
310
|
+
H(ee, (p) => {
|
|
311
|
+
B() && p(U);
|
|
316
312
|
});
|
|
317
313
|
}
|
|
318
314
|
R("click", N, d), R("mouseenter", N, A), R("mouseleave", N, f), R("keydown", N, E), R("focus", N, M), R("blur", N, Q), r(K, N), pe();
|
|
@@ -321,7 +317,7 @@ var tt = _("<h1><!></h1>"), at = _("<h2><!></h2>"), st = _("<h3><!></h3>"), rt =
|
|
|
321
317
|
function Vt(K, t) {
|
|
322
318
|
he(t, !1);
|
|
323
319
|
const y = Y();
|
|
324
|
-
let w =
|
|
320
|
+
let w = u(t, "level", 8, 1), j = u(t, "text", 8, ""), m = u(t, "color", 8, "text-white"), L = u(t, "spacing", 8, "normal");
|
|
325
321
|
const B = {
|
|
326
322
|
1: "!text-6xl md:!text-7xl font-bold leading-tight block",
|
|
327
323
|
2: "!text-4xl md:!text-5xl font-bold leading-tight block",
|
|
@@ -356,64 +352,64 @@ function Vt(K, t) {
|
|
|
356
352
|
}
|
|
357
353
|
};
|
|
358
354
|
ie(
|
|
359
|
-
() => (C(w()), C(
|
|
355
|
+
() => (C(w()), C(m()), C(L())),
|
|
360
356
|
() => {
|
|
361
|
-
O(y, `${B[w()]} font-title ${
|
|
357
|
+
O(y, `${B[w()]} font-title ${m()} ${F[L()][w()]}`);
|
|
362
358
|
}
|
|
363
359
|
), ze();
|
|
364
|
-
var q =
|
|
360
|
+
var q = xe(), T = ue(q);
|
|
365
361
|
{
|
|
366
362
|
var k = (D) => {
|
|
367
363
|
var d = tt(), E = a(d);
|
|
368
364
|
ne(E, t, "default", {}, (M) => {
|
|
369
365
|
var Q = ye();
|
|
370
|
-
|
|
371
|
-
}),
|
|
366
|
+
h(() => W(Q, j())), r(M, Q);
|
|
367
|
+
}), h(() => S(d, 1, oe(e(y)))), r(D, d);
|
|
372
368
|
}, P = (D) => {
|
|
373
|
-
var d =
|
|
369
|
+
var d = xe(), E = ue(d);
|
|
374
370
|
{
|
|
375
371
|
var M = (A) => {
|
|
376
372
|
var f = at(), N = a(f);
|
|
377
373
|
ne(N, t, "default", {}, (te) => {
|
|
378
374
|
var z = ye();
|
|
379
|
-
|
|
380
|
-
}),
|
|
375
|
+
h(() => W(z, j())), r(te, z);
|
|
376
|
+
}), h(() => S(f, 1, oe(e(y)))), r(A, f);
|
|
381
377
|
}, Q = (A) => {
|
|
382
|
-
var f =
|
|
378
|
+
var f = xe(), N = ue(f);
|
|
383
379
|
{
|
|
384
|
-
var te = (
|
|
380
|
+
var te = (b) => {
|
|
385
381
|
var I = st(), V = a(I);
|
|
386
382
|
ne(V, t, "default", {}, ($) => {
|
|
387
383
|
var ee = ye();
|
|
388
|
-
|
|
389
|
-
}),
|
|
390
|
-
}, z = (
|
|
391
|
-
var I =
|
|
384
|
+
h(() => W(ee, j())), r($, ee);
|
|
385
|
+
}), h(() => S(I, 1, oe(e(y)))), r(b, I);
|
|
386
|
+
}, z = (b) => {
|
|
387
|
+
var I = xe(), V = ue(I);
|
|
392
388
|
{
|
|
393
389
|
var $ = (U) => {
|
|
394
|
-
var
|
|
395
|
-
ne(
|
|
390
|
+
var p = rt(), g = a(p);
|
|
391
|
+
ne(g, t, "default", {}, (c) => {
|
|
396
392
|
var s = ye();
|
|
397
|
-
|
|
398
|
-
}),
|
|
393
|
+
h(() => W(s, j())), r(c, s);
|
|
394
|
+
}), h(() => S(p, 1, oe(e(y)))), r(U, p);
|
|
399
395
|
}, ee = (U) => {
|
|
400
|
-
var
|
|
396
|
+
var p = xe(), g = ue(p);
|
|
401
397
|
{
|
|
402
398
|
var c = (n) => {
|
|
403
399
|
var o = it(), v = a(o);
|
|
404
400
|
ne(v, t, "default", {}, (Z) => {
|
|
405
401
|
var re = ye();
|
|
406
|
-
|
|
407
|
-
}),
|
|
402
|
+
h(() => W(re, j())), r(Z, re);
|
|
403
|
+
}), h(() => S(o, 1, oe(e(y)))), r(n, o);
|
|
408
404
|
}, s = (n) => {
|
|
409
|
-
var o =
|
|
405
|
+
var o = xe(), v = ue(o);
|
|
410
406
|
{
|
|
411
407
|
var Z = (re) => {
|
|
412
408
|
var de = nt(), be = a(de);
|
|
413
409
|
ne(be, t, "default", {}, (_e) => {
|
|
414
410
|
var le = ye();
|
|
415
|
-
|
|
416
|
-
}),
|
|
411
|
+
h(() => W(le, j())), r(_e, le);
|
|
412
|
+
}), h(() => S(de, 1, oe(e(y)))), r(re, de);
|
|
417
413
|
};
|
|
418
414
|
H(
|
|
419
415
|
v,
|
|
@@ -426,14 +422,14 @@ function Vt(K, t) {
|
|
|
426
422
|
r(n, o);
|
|
427
423
|
};
|
|
428
424
|
H(
|
|
429
|
-
|
|
425
|
+
g,
|
|
430
426
|
(n) => {
|
|
431
427
|
w() === 5 ? n(c) : n(s, !1);
|
|
432
428
|
},
|
|
433
429
|
!0
|
|
434
430
|
);
|
|
435
431
|
}
|
|
436
|
-
r(U,
|
|
432
|
+
r(U, p);
|
|
437
433
|
};
|
|
438
434
|
H(
|
|
439
435
|
V,
|
|
@@ -443,12 +439,12 @@ function Vt(K, t) {
|
|
|
443
439
|
!0
|
|
444
440
|
);
|
|
445
441
|
}
|
|
446
|
-
r(
|
|
442
|
+
r(b, I);
|
|
447
443
|
};
|
|
448
444
|
H(
|
|
449
445
|
N,
|
|
450
|
-
(
|
|
451
|
-
w() === 3 ?
|
|
446
|
+
(b) => {
|
|
447
|
+
w() === 3 ? b(te) : b(z, !1);
|
|
452
448
|
},
|
|
453
449
|
!0
|
|
454
450
|
);
|
|
@@ -474,12 +470,12 @@ function Vt(K, t) {
|
|
|
474
470
|
var lt = _('<img alt="" class="absolute inset-0 w-full h-full object-cover animate-pulse"/>'), ot = _('<img class="w-full h-full object-cover transition-opacity duration-300"/>'), dt = _('<div class="absolute inset-0 bg-gray-200 flex items-center justify-center text-gray-500"><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>'), ct = _("<div><!> <!> <!></div>");
|
|
475
471
|
function Xt(K, t) {
|
|
476
472
|
he(t, !1);
|
|
477
|
-
let y =
|
|
473
|
+
let y = u(t, "src", 8), w = u(t, "alt", 8, ""), j = u(t, "width", 8, "100%"), m = u(t, "height", 8, "auto"), L = u(t, "loading", 8, "lazy"), B = u(t, "className", 8, ""), F = u(t, "placeholder", 8, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PC9zdmc+"), q = Y(!1), T = Y(!1), k = Y(!1), P = Y();
|
|
478
474
|
Be(() => {
|
|
479
475
|
if (L() === "lazy") {
|
|
480
476
|
const z = new IntersectionObserver(
|
|
481
|
-
(
|
|
482
|
-
|
|
477
|
+
(b) => {
|
|
478
|
+
b.forEach((I) => {
|
|
483
479
|
I.isIntersecting && (O(k, !0), z.unobserve(I.target));
|
|
484
480
|
});
|
|
485
481
|
},
|
|
@@ -499,8 +495,8 @@ function Xt(K, t) {
|
|
|
499
495
|
var E = ct(), M = a(E);
|
|
500
496
|
{
|
|
501
497
|
var Q = (z) => {
|
|
502
|
-
var
|
|
503
|
-
|
|
498
|
+
var b = lt();
|
|
499
|
+
h(() => J(b, "src", F())), r(z, b);
|
|
504
500
|
};
|
|
505
501
|
H(M, (z) => {
|
|
506
502
|
!e(q) && !e(T) && z(Q);
|
|
@@ -509,10 +505,10 @@ function Xt(K, t) {
|
|
|
509
505
|
var A = i(M, 2);
|
|
510
506
|
{
|
|
511
507
|
var f = (z) => {
|
|
512
|
-
var
|
|
513
|
-
|
|
514
|
-
J(
|
|
515
|
-
}), R("load",
|
|
508
|
+
var b = ot();
|
|
509
|
+
h(() => {
|
|
510
|
+
J(b, "src", y()), J(b, "alt", w()), J(b, "loading", L()), ke(b, `opacity: ${e(q) ? 1 : 0};`);
|
|
511
|
+
}), R("load", b, D), R("error", b, d), r(z, b);
|
|
516
512
|
};
|
|
517
513
|
H(A, (z) => {
|
|
518
514
|
e(k) && !e(T) && z(f);
|
|
@@ -521,21 +517,21 @@ function Xt(K, t) {
|
|
|
521
517
|
var N = i(A, 2);
|
|
522
518
|
{
|
|
523
519
|
var te = (z) => {
|
|
524
|
-
var
|
|
525
|
-
r(z,
|
|
520
|
+
var b = dt();
|
|
521
|
+
r(z, b);
|
|
526
522
|
};
|
|
527
523
|
H(N, (z) => {
|
|
528
524
|
e(T) && z(te);
|
|
529
525
|
});
|
|
530
526
|
}
|
|
531
|
-
je(E, (z) => O(P, z), () => e(P)),
|
|
532
|
-
S(E, 1, `relative overflow-hidden ${B() ?? ""}`), ke(E, `width: ${(typeof j() == "number" ? j() + "px" : j()) ?? ""}; height: ${(typeof
|
|
527
|
+
je(E, (z) => O(P, z), () => e(P)), h(() => {
|
|
528
|
+
S(E, 1, `relative overflow-hidden ${B() ?? ""}`), ke(E, `width: ${(typeof j() == "number" ? j() + "px" : j()) ?? ""}; height: ${(typeof m() == "number" ? m() + "px" : m()) ?? ""};`);
|
|
533
529
|
}), r(K, E), pe();
|
|
534
530
|
}
|
|
535
531
|
var vt = _('<div class="fixed bottom-4 left-4 bg-black/80 text-white p-4 rounded-lg text-xs font-mono z-50 max-w-xs"><div class="flex items-center justify-between mb-2"><h3 class="font-bold"> </h3> <button class="text-gray-400 hover:text-white">×</button></div> <div class="space-y-1"><div> </div> <div> </div> <div> </div> <div> </div> <div class="pt-1 border-t border-gray-600"><div class="font-semibold"> </div></div></div></div>');
|
|
536
532
|
function Zt(K, t) {
|
|
537
533
|
he(t, !1);
|
|
538
|
-
let y =
|
|
534
|
+
let y = u(t, "isVisible", 12, !1), w = u(t, "showInDev", 8, !0), j = u(t, "title", 8, "Debug Panel"), m = Y({
|
|
539
535
|
domContentLoaded: 0,
|
|
540
536
|
loadComplete: 0,
|
|
541
537
|
firstPaint: 0,
|
|
@@ -546,44 +542,44 @@ function Zt(K, t) {
|
|
|
546
542
|
Be(() => {
|
|
547
543
|
typeof window < "u" && "PerformanceObserver" in window && (new PerformanceObserver((k) => {
|
|
548
544
|
for (const P of k.getEntries())
|
|
549
|
-
P.name === "first-paint" &&
|
|
545
|
+
P.name === "first-paint" && me(m, e(m).firstPaint = P.startTime);
|
|
550
546
|
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((k) => {
|
|
551
547
|
for (const P of k.getEntries())
|
|
552
|
-
P.name === "first-contentful-paint" &&
|
|
548
|
+
P.name === "first-contentful-paint" && me(m, e(m).firstContentfulPaint = P.startTime);
|
|
553
549
|
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((k) => {
|
|
554
550
|
const P = k.getEntries(), D = P[P.length - 1];
|
|
555
|
-
|
|
551
|
+
me(m, e(m).largestContentfulPaint = D.startTime);
|
|
556
552
|
}).observe({ entryTypes: ["largest-contentful-paint"] }), new PerformanceObserver((k) => {
|
|
557
553
|
for (const P of k.getEntries())
|
|
558
|
-
P.hadRecentInput ||
|
|
554
|
+
P.hadRecentInput || me(m, e(m).cumulativeLayoutShift += P.value);
|
|
559
555
|
}).observe({ entryTypes: ["layout-shift"] })), window.addEventListener("DOMContentLoaded", () => {
|
|
560
|
-
|
|
556
|
+
me(m, e(m).domContentLoaded = performance.now());
|
|
561
557
|
}), window.addEventListener("load", () => {
|
|
562
|
-
|
|
558
|
+
me(m, e(m).loadComplete = performance.now());
|
|
563
559
|
}), w();
|
|
564
560
|
});
|
|
565
561
|
function L(k) {
|
|
566
562
|
return `${Math.round(k)}ms`;
|
|
567
563
|
}
|
|
568
564
|
function B() {
|
|
569
|
-
const k = e(
|
|
565
|
+
const k = e(m).firstContentfulPaint, P = e(m).largestContentfulPaint, D = e(m).cumulativeLayoutShift;
|
|
570
566
|
let d = 100;
|
|
571
|
-
return k > 1800 && (d -= 20), P > 2500 && (d -= 30), D > 0.1 && (d -= 25), e(
|
|
567
|
+
return k > 1800 && (d -= 20), P > 2500 && (d -= 30), D > 0.1 && (d -= 25), e(m).loadComplete > 3e3 && (d -= 25), d >= 90 ? "🟢 Excellent" : d >= 70 ? "🟡 Good" : d >= 50 ? "🟠 Needs Improvement" : "🔴 Poor";
|
|
572
568
|
}
|
|
573
569
|
we();
|
|
574
|
-
var F =
|
|
570
|
+
var F = xe(), q = ue(F);
|
|
575
571
|
{
|
|
576
572
|
var T = (k) => {
|
|
577
|
-
var P = vt(), D = a(P), d = a(D), E = a(d), M = i(d, 2), Q = i(D, 2), A = a(Q), f = a(A), N = i(A, 2), te = a(N), z = i(N, 2),
|
|
578
|
-
|
|
579
|
-
(
|
|
580
|
-
W(E, j()), W(f, `FCP: ${
|
|
573
|
+
var P = vt(), D = a(P), d = a(D), E = a(d), M = i(d, 2), Q = i(D, 2), A = a(Q), f = a(A), N = i(A, 2), te = a(N), z = i(N, 2), b = a(z), I = i(z, 2), V = a(I), $ = i(I, 2), ee = a($), U = a(ee);
|
|
574
|
+
h(
|
|
575
|
+
(p, g, c, s, n) => {
|
|
576
|
+
W(E, j()), W(f, `FCP: ${p ?? ""}`), W(te, `LCP: ${g ?? ""}`), W(b, `CLS: ${c ?? ""}`), W(V, `Load: ${s ?? ""}`), W(U, n);
|
|
581
577
|
},
|
|
582
578
|
[
|
|
583
|
-
() => (e(
|
|
584
|
-
() => (e(
|
|
585
|
-
() => (e(
|
|
586
|
-
() => (e(
|
|
579
|
+
() => (e(m), X(() => L(e(m).firstContentfulPaint))),
|
|
580
|
+
() => (e(m), X(() => L(e(m).largestContentfulPaint))),
|
|
581
|
+
() => (e(m), X(() => e(m).cumulativeLayoutShift.toFixed(3))),
|
|
582
|
+
() => (e(m), X(() => L(e(m).loadComplete))),
|
|
587
583
|
() => X(B)
|
|
588
584
|
]
|
|
589
585
|
), R("click", M, () => y(!1)), r(k, P);
|
|
@@ -594,7 +590,7 @@ function Zt(K, t) {
|
|
|
594
590
|
}
|
|
595
591
|
r(K, F), pe();
|
|
596
592
|
}
|
|
597
|
-
var
|
|
593
|
+
var ut = _('<span class="text-sm text-secondary svelte-1nnpss"> </span>'), mt = _('<div class="flex justify-between items-center mb-2 svelte-1nnpss"><label class="text-sm font-medium text-primary svelte-1nnpss"> </label> <!></div>'), ft = _('<div class="absolute inset-0 flex items-center justify-center svelte-1nnpss"><span class="text-xs font-medium text-white svelte-1nnpss"> </span></div>'), xt = _('<div class="relative svelte-1nnpss"><div><div role="progressbar" aria-valuemin="0"></div></div> <!></div>'), gt = _("<span> </span>"), bt = _('<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-neutral-200 dark:text-neutral-700 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>'), pt = _("<div><!> <!> <!></div>");
|
|
598
594
|
const ht = {
|
|
599
595
|
hash: "svelte-1nnpss",
|
|
600
596
|
code: `
|
|
@@ -639,8 +635,8 @@ const ht = {
|
|
|
639
635
|
};
|
|
640
636
|
function Gt(K, t) {
|
|
641
637
|
he(t, !1), Te(K, ht);
|
|
642
|
-
const y = Y(), w = Y(), j = Y(),
|
|
643
|
-
let B =
|
|
638
|
+
const y = Y(), w = Y(), j = Y(), m = Y(), L = Y();
|
|
639
|
+
let B = u(t, "value", 8, 0), F = u(t, "max", 8, 100), q = u(t, "size", 8, "md"), T = u(t, "variant", 8, "default"), k = u(t, "shape", 8, "linear"), P = u(t, "animated", 8, !0), D = u(t, "striped", 8, !1), d = u(t, "showValue", 8, !1), E = u(t, "label", 8, ""), M = u(t, "className", 8, "");
|
|
644
640
|
const Q = Pe();
|
|
645
641
|
let A = `progress-${Math.random().toString(36).substr(2, 9)}`;
|
|
646
642
|
const f = {
|
|
@@ -672,18 +668,18 @@ function Gt(K, t) {
|
|
|
672
668
|
), ie(() => C(k()), () => {
|
|
673
669
|
O(j, k() === "circular" ? 2 * Math.PI * 20 : 0);
|
|
674
670
|
}), ie(() => e(j), () => {
|
|
675
|
-
O(
|
|
671
|
+
O(m, e(j));
|
|
676
672
|
}), ie(() => (e(j), e(y)), () => {
|
|
677
673
|
O(L, e(j) - e(y) / 100 * e(j));
|
|
678
674
|
}), ze(), we();
|
|
679
|
-
var z = pt(),
|
|
675
|
+
var z = pt(), b = a(z);
|
|
680
676
|
{
|
|
681
|
-
var I = (
|
|
682
|
-
var
|
|
677
|
+
var I = (p) => {
|
|
678
|
+
var g = mt(), c = a(g), s = a(c), n = i(c, 2);
|
|
683
679
|
{
|
|
684
680
|
var o = (v) => {
|
|
685
|
-
var Z =
|
|
686
|
-
|
|
681
|
+
var Z = ut(), re = a(Z);
|
|
682
|
+
h((de) => W(re, `${de ?? ""}%`), [
|
|
687
683
|
() => (e(y), X(() => Math.round(e(y))))
|
|
688
684
|
]), r(v, Z);
|
|
689
685
|
};
|
|
@@ -691,22 +687,22 @@ function Gt(K, t) {
|
|
|
691
687
|
d() && v(o);
|
|
692
688
|
});
|
|
693
689
|
}
|
|
694
|
-
|
|
690
|
+
h(() => {
|
|
695
691
|
J(c, "for", A), W(s, E());
|
|
696
|
-
}), r(
|
|
692
|
+
}), r(p, g);
|
|
697
693
|
};
|
|
698
|
-
H(
|
|
699
|
-
E() &&
|
|
694
|
+
H(b, (p) => {
|
|
695
|
+
E() && p(I);
|
|
700
696
|
});
|
|
701
697
|
}
|
|
702
|
-
var V = i(
|
|
698
|
+
var V = i(b, 2);
|
|
703
699
|
{
|
|
704
|
-
var $ = (
|
|
705
|
-
var
|
|
700
|
+
var $ = (p) => {
|
|
701
|
+
var g = xt(), c = a(g), s = a(c), n = i(c, 2);
|
|
706
702
|
{
|
|
707
703
|
var o = (v) => {
|
|
708
704
|
var Z = ft(), re = a(Z), de = a(re);
|
|
709
|
-
|
|
705
|
+
h((be) => W(de, `${be ?? ""}%`), [
|
|
710
706
|
() => (e(y), X(() => Math.round(e(y))))
|
|
711
707
|
]), r(v, Z);
|
|
712
708
|
};
|
|
@@ -714,7 +710,7 @@ function Gt(K, t) {
|
|
|
714
710
|
d() && q() === "lg" && v(o);
|
|
715
711
|
});
|
|
716
712
|
}
|
|
717
|
-
|
|
713
|
+
h(
|
|
718
714
|
(v) => {
|
|
719
715
|
S(
|
|
720
716
|
c,
|
|
@@ -740,47 +736,47 @@ function Gt(K, t) {
|
|
|
740
736
|
[
|
|
741
737
|
() => (C(E()), e(y), X(() => E() || `Progress: ${Math.round(e(y))}%`))
|
|
742
738
|
]
|
|
743
|
-
), r(
|
|
744
|
-
}, ee = (
|
|
745
|
-
var
|
|
739
|
+
), r(p, g);
|
|
740
|
+
}, ee = (p) => {
|
|
741
|
+
var g = xe(), c = ue(g);
|
|
746
742
|
{
|
|
747
743
|
var s = (n) => {
|
|
748
744
|
var o = bt(), v = a(o), Z = i(a(v)), re = i(v, 2), de = a(re);
|
|
749
745
|
{
|
|
750
746
|
var be = (le) => {
|
|
751
|
-
var
|
|
752
|
-
|
|
753
|
-
(
|
|
747
|
+
var ge = gt(), l = a(ge);
|
|
748
|
+
h(
|
|
749
|
+
(x) => {
|
|
754
750
|
S(
|
|
755
|
-
|
|
751
|
+
ge,
|
|
756
752
|
1,
|
|
757
753
|
`
|
|
758
754
|
font-medium text-primary
|
|
759
755
|
${C(q()), X(() => f[q()].text) ?? ""}
|
|
760
756
|
`,
|
|
761
757
|
"svelte-1nnpss"
|
|
762
|
-
), W(l, `${
|
|
758
|
+
), W(l, `${x ?? ""}%`);
|
|
763
759
|
},
|
|
764
760
|
[
|
|
765
761
|
() => (e(y), X(() => Math.round(e(y))))
|
|
766
762
|
]
|
|
767
|
-
), r(le,
|
|
763
|
+
), r(le, ge);
|
|
768
764
|
}, _e = (le) => {
|
|
769
|
-
var
|
|
770
|
-
ne(l, t, "center", {}, null), r(le,
|
|
765
|
+
var ge = xe(), l = ue(ge);
|
|
766
|
+
ne(l, t, "center", {}, null), r(le, ge);
|
|
771
767
|
};
|
|
772
768
|
H(de, (le) => {
|
|
773
769
|
d() ? le(be) : le(_e, !1);
|
|
774
770
|
});
|
|
775
771
|
}
|
|
776
|
-
|
|
772
|
+
h(
|
|
777
773
|
(le) => {
|
|
778
774
|
J(v, "id", A), S(
|
|
779
775
|
v,
|
|
780
776
|
0,
|
|
781
777
|
`transform -rotate-90 ${C(q()), X(() => f[q()].circular) ?? ""}`,
|
|
782
778
|
"svelte-1nnpss"
|
|
783
|
-
), J(v, "aria-valuenow", B()), J(v, "aria-valuemax", F()), J(v, "aria-label", le), J(Z, "stroke-dasharray", e(
|
|
779
|
+
), J(v, "aria-valuenow", B()), J(v, "aria-valuemax", F()), J(v, "aria-label", le), J(Z, "stroke-dasharray", e(m)), J(Z, "stroke-dashoffset", e(L)), S(
|
|
784
780
|
Z,
|
|
785
781
|
0,
|
|
786
782
|
`
|
|
@@ -804,56 +800,56 @@ function Gt(K, t) {
|
|
|
804
800
|
!0
|
|
805
801
|
);
|
|
806
802
|
}
|
|
807
|
-
r(
|
|
803
|
+
r(p, g);
|
|
808
804
|
};
|
|
809
|
-
H(V, (
|
|
810
|
-
k() === "linear" ?
|
|
805
|
+
H(V, (p) => {
|
|
806
|
+
k() === "linear" ? p($) : p(ee, !1);
|
|
811
807
|
});
|
|
812
808
|
}
|
|
813
809
|
var U = i(V, 2);
|
|
814
|
-
ne(U, t, "default", {}, null),
|
|
810
|
+
ne(U, t, "default", {}, null), h(() => S(z, 1, `progress-container ${M() ?? ""}`, "svelte-1nnpss")), r(K, z), pe();
|
|
815
811
|
}
|
|
816
812
|
var yt = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), wt = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), _t = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), kt = _("<div></div>"), zt = _("<div></div>"), Ct = _("<div></div>"), jt = _('<div class="flex items-center space-x-4"><span class="text-tertiary text-sm w-12"> </span> <span> </span></div>'), Tt = _('<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>'), St = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Pt = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Lt = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Bt = _('<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 bg-success-500 hover:bg-success-600 text-white rounded-md transition-colors">Success</button> <button class="px-3 py-1 text-sm bg-warning-500 hover:bg-warning-600 text-white rounded-md transition-colors">Warning</button> <button class="px-3 py-1 text-sm bg-error-500 hover:bg-error-600 text-white rounded-md transition-colors">Error</button></div></div></div></div></section></div></div>');
|
|
817
813
|
function Yt(K) {
|
|
818
814
|
var t = Bt(), y = a(t), w = a(y), j = i(a(w), 2);
|
|
819
815
|
We(j, { size: "lg", variant: "outline" });
|
|
820
|
-
var
|
|
821
|
-
ce(B, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (
|
|
816
|
+
var m = i(w, 2), L = i(a(m), 2), B = i(a(L), 2);
|
|
817
|
+
ce(B, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (g, c) => {
|
|
822
818
|
var s = yt(), n = a(s), o = i(n, 2), v = a(o);
|
|
823
|
-
|
|
819
|
+
h(() => {
|
|
824
820
|
S(n, 1, `w-16 h-16 rounded-lg bg-primary-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
825
|
-
}), r(
|
|
821
|
+
}), r(g, s);
|
|
826
822
|
});
|
|
827
823
|
var F = i(L, 2), q = i(a(F), 2);
|
|
828
|
-
ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (
|
|
824
|
+
ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (g, c) => {
|
|
829
825
|
var s = wt(), n = a(s), o = i(n, 2), v = a(o);
|
|
830
|
-
|
|
826
|
+
h(() => {
|
|
831
827
|
S(n, 1, `w-16 h-16 rounded-lg bg-secondary-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
832
|
-
}), r(
|
|
828
|
+
}), r(g, s);
|
|
833
829
|
});
|
|
834
830
|
var T = i(F, 2), k = i(a(T), 2);
|
|
835
|
-
ce(k, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (
|
|
831
|
+
ce(k, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (g, c) => {
|
|
836
832
|
var s = _t(), n = a(s), o = i(n, 2), v = a(o);
|
|
837
|
-
|
|
833
|
+
h(() => {
|
|
838
834
|
S(n, 1, `w-16 h-16 rounded-lg bg-neutral-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
839
|
-
}), r(
|
|
835
|
+
}), r(g, s);
|
|
840
836
|
});
|
|
841
837
|
var P = i(T, 2), D = i(a(P), 2), d = a(D), E = i(a(d), 2);
|
|
842
|
-
ce(E, 4, () => [400, 500, 600, 700, 800], ve, (
|
|
838
|
+
ce(E, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
|
|
843
839
|
var s = kt();
|
|
844
|
-
|
|
840
|
+
h(() => S(s, 1, `w-8 h-8 rounded bg-success-${c ?? ""} border border-primary`)), r(g, s);
|
|
845
841
|
});
|
|
846
842
|
var M = i(d, 2), Q = i(a(M), 2);
|
|
847
|
-
ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (
|
|
843
|
+
ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
|
|
848
844
|
var s = zt();
|
|
849
|
-
|
|
845
|
+
h(() => S(s, 1, `w-8 h-8 rounded bg-warning-${c ?? ""} border border-primary`)), r(g, s);
|
|
850
846
|
});
|
|
851
847
|
var A = i(M, 2), f = i(a(A), 2);
|
|
852
|
-
ce(f, 4, () => [400, 500, 600, 700, 800], ve, (
|
|
848
|
+
ce(f, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
|
|
853
849
|
var s = Ct();
|
|
854
|
-
|
|
850
|
+
h(() => S(s, 1, `w-8 h-8 rounded bg-error-${c ?? ""} border border-primary`)), r(g, s);
|
|
855
851
|
});
|
|
856
|
-
var N = i(
|
|
852
|
+
var N = i(m, 4), te = i(a(N), 2);
|
|
857
853
|
ce(
|
|
858
854
|
te,
|
|
859
855
|
4,
|
|
@@ -871,16 +867,16 @@ function Yt(K) {
|
|
|
871
867
|
{ size: "6xl", text: "6X Large Text", class: "text-6xl" }
|
|
872
868
|
],
|
|
873
869
|
ve,
|
|
874
|
-
(
|
|
870
|
+
(g, c) => {
|
|
875
871
|
var s = jt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v);
|
|
876
|
-
|
|
872
|
+
h(() => {
|
|
877
873
|
W(o, c.size), S(v, 1, `${c.class ?? ""} text-primary`), W(Z, c.text);
|
|
878
|
-
}), r(
|
|
874
|
+
}), r(g, s);
|
|
879
875
|
}
|
|
880
876
|
);
|
|
881
|
-
var z = i(N, 2),
|
|
877
|
+
var z = i(N, 2), b = i(a(z), 2);
|
|
882
878
|
ce(
|
|
883
|
-
|
|
879
|
+
b,
|
|
884
880
|
4,
|
|
885
881
|
() => [
|
|
886
882
|
{ size: "1", value: "0.25rem", class: "w-1" },
|
|
@@ -894,11 +890,11 @@ function Yt(K) {
|
|
|
894
890
|
{ size: "256", value: "64rem", class: "w-256" }
|
|
895
891
|
],
|
|
896
892
|
ve,
|
|
897
|
-
(
|
|
893
|
+
(g, c) => {
|
|
898
894
|
var s = Tt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v), re = i(v, 2);
|
|
899
|
-
|
|
895
|
+
h(() => {
|
|
900
896
|
W(o, c.size), W(Z, c.value), S(re, 1, `${c.class ?? ""} h-4 bg-primary-500 rounded`);
|
|
901
|
-
}), r(
|
|
897
|
+
}), r(g, s);
|
|
902
898
|
}
|
|
903
899
|
);
|
|
904
900
|
var I = i(z, 2), V = i(a(I), 2);
|
|
@@ -917,11 +913,11 @@ function Yt(K) {
|
|
|
917
913
|
{ size: "full", class: "rounded-full" }
|
|
918
914
|
],
|
|
919
915
|
ve,
|
|
920
|
-
(
|
|
916
|
+
(g, c) => {
|
|
921
917
|
var s = St(), n = a(s), o = i(n, 2), v = a(o);
|
|
922
|
-
|
|
918
|
+
h(() => {
|
|
923
919
|
S(n, 1, `w-16 h-16 bg-primary-500 ${c.class ?? ""} mx-auto`), W(v, c.size);
|
|
924
|
-
}), r(
|
|
920
|
+
}), r(g, s);
|
|
925
921
|
}
|
|
926
922
|
);
|
|
927
923
|
var $ = i(I, 2), ee = i(a($), 2);
|
|
@@ -939,16 +935,16 @@ function Yt(K) {
|
|
|
939
935
|
{ name: "Adaptive", class: "shadow-adaptive-lg" }
|
|
940
936
|
],
|
|
941
937
|
ve,
|
|
942
|
-
(
|
|
938
|
+
(g, c) => {
|
|
943
939
|
var s = Pt(), n = a(s), o = i(n, 2), v = a(o);
|
|
944
|
-
|
|
940
|
+
h(() => {
|
|
945
941
|
S(n, 1, `w-20 h-20 bg-surface-primary border border-primary ${c.class ?? ""} mx-auto`), W(v, c.name);
|
|
946
|
-
}), r(
|
|
942
|
+
}), r(g, s);
|
|
947
943
|
}
|
|
948
944
|
);
|
|
949
|
-
var U = i($, 2),
|
|
945
|
+
var U = i($, 2), p = i(a(U), 2);
|
|
950
946
|
ce(
|
|
951
|
-
|
|
947
|
+
p,
|
|
952
948
|
4,
|
|
953
949
|
() => [
|
|
954
950
|
{ name: "Fade In", class: "animate-fade-in" },
|
|
@@ -959,20 +955,20 @@ function Yt(K) {
|
|
|
959
955
|
{ name: "Pulse", class: "animate-pulse-slow" }
|
|
960
956
|
],
|
|
961
957
|
ve,
|
|
962
|
-
(
|
|
958
|
+
(g, c) => {
|
|
963
959
|
var s = Lt(), n = a(s), o = i(n, 2), v = a(o);
|
|
964
|
-
|
|
960
|
+
h(() => {
|
|
965
961
|
S(n, 1, `w-16 h-16 bg-primary-500 rounded-lg ${c.class ?? ""} mx-auto`), W(v, c.name);
|
|
966
|
-
}), r(
|
|
962
|
+
}), r(g, s);
|
|
967
963
|
}
|
|
968
964
|
), r(K, t);
|
|
969
965
|
}
|
|
970
966
|
var Et = _("<div></div>");
|
|
971
967
|
function Ut(K, t) {
|
|
972
|
-
let y =
|
|
968
|
+
let y = u(t, "width", 8, "100%"), w = u(t, "height", 8, "1rem"), j = u(t, "borderRadius", 8, "0.5rem"), m = u(t, "className", 8, "");
|
|
973
969
|
var L = Et();
|
|
974
|
-
|
|
975
|
-
S(L, 1, `animate-pulse bg-stone-800 ${
|
|
970
|
+
h(() => {
|
|
971
|
+
S(L, 1, `animate-pulse bg-stone-800 ${m() ?? ""}`), ke(L, `width: ${y() ?? ""}; height: ${w() ?? ""}; border-radius: ${j() ?? ""};`);
|
|
976
972
|
}), r(K, L);
|
|
977
973
|
}
|
|
978
974
|
var Mt = _('<button type="button" class="inline-block svelte-13nzt82"><!></button>'), It = _('<div role="button" tabindex="0" class="inline-block svelte-13nzt82"><!></div>'), Dt = _("<div></div>"), At = _('<div role="tooltip"><div class="relative svelte-13nzt82"> <!></div></div>'), Nt = _("<!> <!>", 1);
|
|
@@ -1011,7 +1007,7 @@ const Ft = {
|
|
|
1011
1007
|
};
|
|
1012
1008
|
function Jt(K, t) {
|
|
1013
1009
|
he(t, !1), Te(K, Ft);
|
|
1014
|
-
let y =
|
|
1010
|
+
let y = u(t, "content", 8, ""), w = u(t, "placement", 8, "top"), j = u(t, "trigger", 8, "hover"), m = u(t, "disabled", 8, !1), L = u(t, "delay", 8, 200), B = u(t, "maxWidth", 8, "200px"), F = u(t, "variant", 8, "default"), q = u(t, "size", 8, "md"), T = u(t, "arrow", 8, !0), k = u(t, "interactive", 8, !1), P = u(t, "className", 8, "");
|
|
1015
1011
|
const D = Pe();
|
|
1016
1012
|
let d = Y(), E = Y(), M = Y(!1), Q, A, f;
|
|
1017
1013
|
const N = {
|
|
@@ -1030,54 +1026,54 @@ function Jt(K, t) {
|
|
|
1030
1026
|
function z() {
|
|
1031
1027
|
if (!e(E) || !e(d)) return { top: 0, left: 0 };
|
|
1032
1028
|
f = e(E).getBoundingClientRect();
|
|
1033
|
-
const l = e(d).getBoundingClientRect(),
|
|
1029
|
+
const l = e(d).getBoundingClientRect(), x = window.scrollY, se = window.scrollX, fe = window.innerWidth, Ce = window.innerHeight;
|
|
1034
1030
|
let ae = 0, G = 0;
|
|
1035
1031
|
switch (w()) {
|
|
1036
1032
|
case "top":
|
|
1037
|
-
ae = f.top +
|
|
1033
|
+
ae = f.top + x - l.height - 8, G = f.left + se + (f.width - l.width) / 2;
|
|
1038
1034
|
break;
|
|
1039
1035
|
case "top-start":
|
|
1040
|
-
ae = f.top +
|
|
1036
|
+
ae = f.top + x - l.height - 8, G = f.left + se;
|
|
1041
1037
|
break;
|
|
1042
1038
|
case "top-end":
|
|
1043
|
-
ae = f.top +
|
|
1039
|
+
ae = f.top + x - l.height - 8, G = f.right + se - l.width;
|
|
1044
1040
|
break;
|
|
1045
1041
|
case "bottom":
|
|
1046
|
-
ae = f.bottom +
|
|
1042
|
+
ae = f.bottom + x + 8, G = f.left + se + (f.width - l.width) / 2;
|
|
1047
1043
|
break;
|
|
1048
1044
|
case "bottom-start":
|
|
1049
|
-
ae = f.bottom +
|
|
1045
|
+
ae = f.bottom + x + 8, G = f.left + se;
|
|
1050
1046
|
break;
|
|
1051
1047
|
case "bottom-end":
|
|
1052
|
-
ae = f.bottom +
|
|
1048
|
+
ae = f.bottom + x + 8, G = f.right + se - l.width;
|
|
1053
1049
|
break;
|
|
1054
1050
|
case "left":
|
|
1055
|
-
ae = f.top +
|
|
1051
|
+
ae = f.top + x + (f.height - l.height) / 2, G = f.left + se - l.width - 8;
|
|
1056
1052
|
break;
|
|
1057
1053
|
case "left-start":
|
|
1058
|
-
ae = f.top +
|
|
1054
|
+
ae = f.top + x, G = f.left + se - l.width - 8;
|
|
1059
1055
|
break;
|
|
1060
1056
|
case "left-end":
|
|
1061
|
-
ae = f.bottom +
|
|
1057
|
+
ae = f.bottom + x - l.height, G = f.left + se - l.width - 8;
|
|
1062
1058
|
break;
|
|
1063
1059
|
case "right":
|
|
1064
|
-
ae = f.top +
|
|
1060
|
+
ae = f.top + x + (f.height - l.height) / 2, G = f.right + se + 8;
|
|
1065
1061
|
break;
|
|
1066
1062
|
case "right-start":
|
|
1067
|
-
ae = f.top +
|
|
1063
|
+
ae = f.top + x, G = f.right + se + 8;
|
|
1068
1064
|
break;
|
|
1069
1065
|
case "right-end":
|
|
1070
|
-
ae = f.bottom +
|
|
1066
|
+
ae = f.bottom + x - l.height, G = f.right + se + 8;
|
|
1071
1067
|
break;
|
|
1072
1068
|
}
|
|
1073
|
-
return G < 8 && (G = 8), G + l.width > fe - 8 && (G = fe - l.width - 8), ae < 8 && (ae = 8), ae + l.height > Ce +
|
|
1069
|
+
return G < 8 && (G = 8), G + l.width > fe - 8 && (G = fe - l.width - 8), ae < 8 && (ae = 8), ae + l.height > Ce + x - 8 && (ae = Ce + x - l.height - 8), { top: ae, left: G };
|
|
1074
1070
|
}
|
|
1075
|
-
function
|
|
1076
|
-
|
|
1071
|
+
function b(l) {
|
|
1072
|
+
m() || e(M) || (clearTimeout(A), Q = setTimeout(
|
|
1077
1073
|
() => {
|
|
1078
1074
|
O(M, !0), D("show", l), requestAnimationFrame(() => {
|
|
1079
|
-
const
|
|
1080
|
-
e(d) && (
|
|
1075
|
+
const x = z();
|
|
1076
|
+
e(d) && (me(d, e(d).style.top = `${x.top}px`), me(d, e(d).style.left = `${x.left}px`));
|
|
1081
1077
|
});
|
|
1082
1078
|
},
|
|
1083
1079
|
L()
|
|
@@ -1092,21 +1088,21 @@ function Jt(K, t) {
|
|
|
1092
1088
|
));
|
|
1093
1089
|
}
|
|
1094
1090
|
function V(l) {
|
|
1095
|
-
j() === "click" && (e(M) ? I(l) :
|
|
1091
|
+
j() === "click" && (e(M) ? I(l) : b(l));
|
|
1096
1092
|
}
|
|
1097
1093
|
function $(l) {
|
|
1098
|
-
j() === "click" && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e(M) ? I(l) :
|
|
1094
|
+
j() === "click" && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e(M) ? I(l) : b(l));
|
|
1099
1095
|
}
|
|
1100
1096
|
function ee(l) {
|
|
1101
|
-
j() === "focus" &&
|
|
1097
|
+
j() === "focus" && b(l);
|
|
1102
1098
|
}
|
|
1103
1099
|
function U(l) {
|
|
1104
1100
|
j() === "focus" && I(l);
|
|
1105
1101
|
}
|
|
1106
|
-
function
|
|
1107
|
-
j() === "hover" &&
|
|
1102
|
+
function p(l) {
|
|
1103
|
+
j() === "hover" && b(l);
|
|
1108
1104
|
}
|
|
1109
|
-
function
|
|
1105
|
+
function g(l) {
|
|
1110
1106
|
j() === "hover" && I(l);
|
|
1111
1107
|
}
|
|
1112
1108
|
function c() {
|
|
@@ -1116,7 +1112,7 @@ function Jt(K, t) {
|
|
|
1116
1112
|
k() && I(l);
|
|
1117
1113
|
}
|
|
1118
1114
|
function n() {
|
|
1119
|
-
|
|
1115
|
+
m() || O(M, !0);
|
|
1120
1116
|
}
|
|
1121
1117
|
function o() {
|
|
1122
1118
|
O(M, !1);
|
|
@@ -1129,19 +1125,19 @@ function Jt(K, t) {
|
|
|
1129
1125
|
}), ie(() => (e(M), e(d)), () => {
|
|
1130
1126
|
e(M) && e(d) && requestAnimationFrame(() => {
|
|
1131
1127
|
const l = z();
|
|
1132
|
-
|
|
1128
|
+
me(d, e(d).style.top = `${l.top}px`), me(d, e(d).style.left = `${l.left}px`);
|
|
1133
1129
|
});
|
|
1134
1130
|
}), ze();
|
|
1135
1131
|
var Z = { show: n, hide: o, toggle: v };
|
|
1136
1132
|
we();
|
|
1137
|
-
var re = Nt(), de =
|
|
1133
|
+
var re = Nt(), de = ue(re);
|
|
1138
1134
|
{
|
|
1139
1135
|
var be = (l) => {
|
|
1140
|
-
var
|
|
1141
|
-
ne(se, t, "default", {}, null), je(
|
|
1136
|
+
var x = Mt(), se = a(x);
|
|
1137
|
+
ne(se, t, "default", {}, null), je(x, (fe) => O(E, fe), () => e(E)), h(() => J(x, "aria-describedby", e(M) ? "tooltip-{content}" : void 0)), R("click", x, V), R("keydown", x, $), R("focus", x, ee), R("blur", x, U), R("mouseenter", x, p), R("mouseleave", x, g), r(l, x);
|
|
1142
1138
|
}, _e = (l) => {
|
|
1143
|
-
var
|
|
1144
|
-
ne(se, t, "default", {}, null), je(
|
|
1139
|
+
var x = It(), se = a(x);
|
|
1140
|
+
ne(se, t, "default", {}, null), je(x, (fe) => O(E, fe), () => e(E)), h(() => J(x, "aria-describedby", e(M) ? "tooltip-{content}" : void 0)), R("click", x, V), R("keydown", x, $), R("focus", x, ee), R("blur", x, U), R("mouseenter", x, p), R("mouseleave", x, g), r(l, x);
|
|
1145
1141
|
};
|
|
1146
1142
|
H(de, (l) => {
|
|
1147
1143
|
j() === "click" ? l(be) : l(_e, !1);
|
|
@@ -1149,12 +1145,12 @@ function Jt(K, t) {
|
|
|
1149
1145
|
}
|
|
1150
1146
|
var le = i(de, 2);
|
|
1151
1147
|
{
|
|
1152
|
-
var
|
|
1153
|
-
var
|
|
1148
|
+
var ge = (l) => {
|
|
1149
|
+
var x = At(), se = a(x), fe = a(se), Ce = i(fe);
|
|
1154
1150
|
{
|
|
1155
1151
|
var ae = (G) => {
|
|
1156
1152
|
var Ee = Dt();
|
|
1157
|
-
|
|
1153
|
+
h(
|
|
1158
1154
|
(Me, Ie, De, Ae, Ne) => S(
|
|
1159
1155
|
Ee,
|
|
1160
1156
|
1,
|
|
@@ -1181,9 +1177,9 @@ function Jt(K, t) {
|
|
|
1181
1177
|
T() && G(ae);
|
|
1182
1178
|
});
|
|
1183
1179
|
}
|
|
1184
|
-
je(
|
|
1185
|
-
J(
|
|
1186
|
-
|
|
1180
|
+
je(x, (G) => O(d, G), () => e(d)), h(() => {
|
|
1181
|
+
J(x, "id", `tooltip-${y() ?? ""}`), S(
|
|
1182
|
+
x,
|
|
1187
1183
|
1,
|
|
1188
1184
|
`
|
|
1189
1185
|
fixed z-tooltip
|
|
@@ -1193,15 +1189,15 @@ function Jt(K, t) {
|
|
|
1193
1189
|
${P() ?? ""}
|
|
1194
1190
|
`,
|
|
1195
1191
|
"svelte-13nzt82"
|
|
1196
|
-
), ke(
|
|
1197
|
-
}), R("mouseenter",
|
|
1192
|
+
), ke(x, `max-width: ${B() ?? ""};`), W(fe, `${y() ?? ""} `);
|
|
1193
|
+
}), R("mouseenter", x, c), R("mouseleave", x, s), qe(3, x, () => Re, () => ({
|
|
1198
1194
|
x: w().includes("left") ? -10 : w().includes("right") ? 10 : 0,
|
|
1199
1195
|
y: w().includes("top") ? -10 : w().includes("bottom") ? 10 : 0,
|
|
1200
1196
|
duration: 200
|
|
1201
|
-
})), r(l,
|
|
1197
|
+
})), r(l, x);
|
|
1202
1198
|
};
|
|
1203
1199
|
H(le, (l) => {
|
|
1204
|
-
e(M) && y() && l(
|
|
1200
|
+
e(M) && y() && l(ge);
|
|
1205
1201
|
});
|
|
1206
1202
|
}
|
|
1207
1203
|
return r(K, re), Le(t, "show", n), Le(t, "hide", o), Le(t, "toggle", v), pe(Z);
|