zabi-components 1.0.5 → 1.0.6

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.
@@ -1,4 +1,4 @@
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";
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 p, 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>');
@@ -65,11 +65,11 @@ function Ht(K, t) {
65
65
  const y = Y(), w = Y(), j = Y(), m = Y(), L = Y(), B = Y(), F = Y();
66
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(b) {
69
- b.stopPropagation(), M("close", { event: b });
68
+ function Q(g) {
69
+ g.stopPropagation(), M("close", { event: g });
70
70
  }
71
- function A(b) {
72
- M("click", { event: b });
71
+ function A(g) {
72
+ M("click", { event: g });
73
73
  }
74
74
  ie(() => {
75
75
  }, () => {
@@ -138,12 +138,12 @@ function Ht(K, t) {
138
138
  }), ze(), we();
139
139
  var f = Je(), N = a(f);
140
140
  {
141
- var te = (b) => {
141
+ var te = (g) => {
142
142
  var I = Xe(), V = ue(I), $ = a(V);
143
143
  {
144
144
  var ee = (o) => {
145
145
  var v = He();
146
- h(() => S(
146
+ p(() => S(
147
147
  v,
148
148
  1,
149
149
  `w-2 h-2 rounded-full bg-current ${e(m), C(T()), X(() => e(m)[T()]) ?? ""}`,
@@ -156,23 +156,23 @@ function Ht(K, t) {
156
156
  }
157
157
  var U = i($, 2);
158
158
  {
159
- var p = (o) => {
159
+ var b = (o) => {
160
160
  var v = Oe(), Z = a(v);
161
- h(() => {
161
+ p(() => {
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(p);
166
+ d() && E() === "left" && o(b);
167
167
  });
168
168
  }
169
- var g = i(U, 2);
170
- ne(g, t, "default", {}, null);
171
- var c = i(g, 2);
169
+ var h = i(U, 2);
170
+ ne(h, t, "default", {}, null);
171
+ var c = i(h, 2);
172
172
  {
173
173
  var s = (o) => {
174
174
  var v = Ve(), Z = a(v);
175
- h(() => {
175
+ p(() => {
176
176
  S(v, 0, oe(e(B)), "svelte-14njway"), J(Z, "d", d());
177
177
  }), r(o, v);
178
178
  };
@@ -181,15 +181,15 @@ function Ht(K, t) {
181
181
  });
182
182
  }
183
183
  var n = i(V, 2);
184
- h(() => {
184
+ p(() => {
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(b, I);
187
- }, z = (b) => {
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(g, I);
187
+ }, z = (g) => {
188
188
  var I = Ue(), V = a(I);
189
189
  {
190
190
  var $ = (s) => {
191
191
  var n = Ze();
192
- h(() => S(
192
+ p(() => S(
193
193
  n,
194
194
  1,
195
195
  `w-2 h-2 rounded-full bg-current ${e(m), C(T()), X(() => e(m)[T()]) ?? ""}`,
@@ -204,7 +204,7 @@ function Ht(K, t) {
204
204
  {
205
205
  var U = (s) => {
206
206
  var n = Ge(), o = a(n);
207
- h(() => {
207
+ p(() => {
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 p = i(ee, 2);
216
- ne(p, t, "default", {}, null);
217
- var g = i(p, 2);
215
+ var b = i(ee, 2);
216
+ ne(b, t, "default", {}, null);
217
+ var h = i(b, 2);
218
218
  {
219
219
  var c = (s) => {
220
220
  var n = Ye(), o = a(n);
221
- h(() => {
221
+ p(() => {
222
222
  S(n, 0, oe(e(B)), "svelte-14njway"), J(o, "d", d());
223
223
  }), r(s, n);
224
224
  };
225
- H(g, (s) => {
225
+ H(h, (s) => {
226
226
  d() && E() === "right" && s(c);
227
227
  });
228
228
  }
229
- h(() => S(I, 1, oe(e(L)), "svelte-14njway")), r(b, I);
229
+ p(() => S(I, 1, oe(e(L)), "svelte-14njway")), r(g, I);
230
230
  };
231
- H(N, (b) => {
232
- D() ? b(te) : b(z, !1);
231
+ H(N, (g) => {
232
+ D() ? g(te) : g(z, !1);
233
233
  });
234
234
  }
235
235
  r(K, f), pe();
@@ -248,28 +248,27 @@ function Ot(K, t) {
248
248
  elevated: "bg-[var(--zabi-surface)] border border-[var(--zabi-border)] shadow-md",
249
249
  outlined: "bg-[var(--zabi-surface)] border-2 border-[var(--zabi-border)] shadow-sm"
250
250
  };
251
- function d(p) {
252
- var g;
251
+ function d(b) {
253
252
  if (L() || B()) {
254
- p.preventDefault();
253
+ b.preventDefault();
255
254
  return;
256
255
  }
257
- k("click", { value: !0, event: ((g = p.detail) == null ? void 0 : g.event) || p });
256
+ k("click", { value: !0, event: b });
258
257
  }
259
- function E(p) {
260
- L() || B() || p.key === "Escape" && p.target.blur();
258
+ function E(b) {
259
+ L() || B() || b.key === "Escape" && b.target.blur();
261
260
  }
262
- function M(p) {
263
- !L() && !B() && k("focus", { event: p });
261
+ function M(b) {
262
+ !L() && !B() && k("focus", { event: b });
264
263
  }
265
- function Q(p) {
266
- !L() && !B() && k("blur", { event: p });
264
+ function Q(b) {
265
+ !L() && !B() && k("blur", { event: b });
267
266
  }
268
- function A(p) {
269
- !L() && !B() && k("hover", { event: p });
267
+ function A(b) {
268
+ !L() && !B() && k("hover", { event: b });
270
269
  }
271
- function f(p) {
272
- !L() && !B() && k("leave", { event: p });
270
+ function f(b) {
271
+ !L() && !B() && k("leave", { event: b });
273
272
  }
274
273
  ie(
275
274
  () => (C(j()), C(m()), C(L()), C(B()), C(F())),
@@ -297,18 +296,18 @@ function Ot(K, t) {
297
296
  Fe(N, () => ({ class: e(y), ...e(w) }), void 0, void 0, "svelte-1qx5g6b");
298
297
  var te = a(N), z = a(te);
299
298
  ne(z, t, "header", {}, null);
300
- var b = i(te, 2), I = a(b);
299
+ var g = i(te, 2), I = a(g);
301
300
  ne(I, t, "default", {}, null);
302
- var V = i(b, 2), $ = a(V);
301
+ var V = i(g, 2), $ = a(V);
303
302
  ne($, t, "footer", {}, null);
304
303
  var ee = i(V, 2);
305
304
  {
306
- var U = (p) => {
307
- var g = Qe();
308
- r(p, g);
305
+ var U = (b) => {
306
+ var h = Qe();
307
+ r(b, h);
309
308
  };
310
- H(ee, (p) => {
311
- B() && p(U);
309
+ H(ee, (b) => {
310
+ B() && b(U);
312
311
  });
313
312
  }
314
313
  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();
@@ -363,8 +362,8 @@ function Vt(K, t) {
363
362
  var d = tt(), E = a(d);
364
363
  ne(E, t, "default", {}, (M) => {
365
364
  var Q = ye();
366
- h(() => W(Q, j())), r(M, Q);
367
- }), h(() => S(d, 1, oe(e(y)))), r(D, d);
365
+ p(() => W(Q, j())), r(M, Q);
366
+ }), p(() => S(d, 1, oe(e(y)))), r(D, d);
368
367
  }, P = (D) => {
369
368
  var d = xe(), E = ue(d);
370
369
  {
@@ -372,35 +371,35 @@ function Vt(K, t) {
372
371
  var f = at(), N = a(f);
373
372
  ne(N, t, "default", {}, (te) => {
374
373
  var z = ye();
375
- h(() => W(z, j())), r(te, z);
376
- }), h(() => S(f, 1, oe(e(y)))), r(A, f);
374
+ p(() => W(z, j())), r(te, z);
375
+ }), p(() => S(f, 1, oe(e(y)))), r(A, f);
377
376
  }, Q = (A) => {
378
377
  var f = xe(), N = ue(f);
379
378
  {
380
- var te = (b) => {
379
+ var te = (g) => {
381
380
  var I = st(), V = a(I);
382
381
  ne(V, t, "default", {}, ($) => {
383
382
  var ee = ye();
384
- h(() => W(ee, j())), r($, ee);
385
- }), h(() => S(I, 1, oe(e(y)))), r(b, I);
386
- }, z = (b) => {
383
+ p(() => W(ee, j())), r($, ee);
384
+ }), p(() => S(I, 1, oe(e(y)))), r(g, I);
385
+ }, z = (g) => {
387
386
  var I = xe(), V = ue(I);
388
387
  {
389
388
  var $ = (U) => {
390
- var p = rt(), g = a(p);
391
- ne(g, t, "default", {}, (c) => {
389
+ var b = rt(), h = a(b);
390
+ ne(h, t, "default", {}, (c) => {
392
391
  var s = ye();
393
- h(() => W(s, j())), r(c, s);
394
- }), h(() => S(p, 1, oe(e(y)))), r(U, p);
392
+ p(() => W(s, j())), r(c, s);
393
+ }), p(() => S(b, 1, oe(e(y)))), r(U, b);
395
394
  }, ee = (U) => {
396
- var p = xe(), g = ue(p);
395
+ var b = xe(), h = ue(b);
397
396
  {
398
397
  var c = (n) => {
399
398
  var o = it(), v = a(o);
400
399
  ne(v, t, "default", {}, (Z) => {
401
400
  var re = ye();
402
- h(() => W(re, j())), r(Z, re);
403
- }), h(() => S(o, 1, oe(e(y)))), r(n, o);
401
+ p(() => W(re, j())), r(Z, re);
402
+ }), p(() => S(o, 1, oe(e(y)))), r(n, o);
404
403
  }, s = (n) => {
405
404
  var o = xe(), v = ue(o);
406
405
  {
@@ -408,8 +407,8 @@ function Vt(K, t) {
408
407
  var de = nt(), be = a(de);
409
408
  ne(be, t, "default", {}, (_e) => {
410
409
  var le = ye();
411
- h(() => W(le, j())), r(_e, le);
412
- }), h(() => S(de, 1, oe(e(y)))), r(re, de);
410
+ p(() => W(le, j())), r(_e, le);
411
+ }), p(() => S(de, 1, oe(e(y)))), r(re, de);
413
412
  };
414
413
  H(
415
414
  v,
@@ -422,14 +421,14 @@ function Vt(K, t) {
422
421
  r(n, o);
423
422
  };
424
423
  H(
425
- g,
424
+ h,
426
425
  (n) => {
427
426
  w() === 5 ? n(c) : n(s, !1);
428
427
  },
429
428
  !0
430
429
  );
431
430
  }
432
- r(U, p);
431
+ r(U, b);
433
432
  };
434
433
  H(
435
434
  V,
@@ -439,12 +438,12 @@ function Vt(K, t) {
439
438
  !0
440
439
  );
441
440
  }
442
- r(b, I);
441
+ r(g, I);
443
442
  };
444
443
  H(
445
444
  N,
446
- (b) => {
447
- w() === 3 ? b(te) : b(z, !1);
445
+ (g) => {
446
+ w() === 3 ? g(te) : g(z, !1);
448
447
  },
449
448
  !0
450
449
  );
@@ -474,8 +473,8 @@ function Xt(K, t) {
474
473
  Be(() => {
475
474
  if (L() === "lazy") {
476
475
  const z = new IntersectionObserver(
477
- (b) => {
478
- b.forEach((I) => {
476
+ (g) => {
477
+ g.forEach((I) => {
479
478
  I.isIntersecting && (O(k, !0), z.unobserve(I.target));
480
479
  });
481
480
  },
@@ -495,8 +494,8 @@ function Xt(K, t) {
495
494
  var E = ct(), M = a(E);
496
495
  {
497
496
  var Q = (z) => {
498
- var b = lt();
499
- h(() => J(b, "src", F())), r(z, b);
497
+ var g = lt();
498
+ p(() => J(g, "src", F())), r(z, g);
500
499
  };
501
500
  H(M, (z) => {
502
501
  !e(q) && !e(T) && z(Q);
@@ -505,10 +504,10 @@ function Xt(K, t) {
505
504
  var A = i(M, 2);
506
505
  {
507
506
  var f = (z) => {
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);
507
+ var g = ot();
508
+ p(() => {
509
+ J(g, "src", y()), J(g, "alt", w()), J(g, "loading", L()), ke(g, `opacity: ${e(q) ? 1 : 0};`);
510
+ }), R("load", g, D), R("error", g, d), r(z, g);
512
511
  };
513
512
  H(A, (z) => {
514
513
  e(k) && !e(T) && z(f);
@@ -517,14 +516,14 @@ function Xt(K, t) {
517
516
  var N = i(A, 2);
518
517
  {
519
518
  var te = (z) => {
520
- var b = dt();
521
- r(z, b);
519
+ var g = dt();
520
+ r(z, g);
522
521
  };
523
522
  H(N, (z) => {
524
523
  e(T) && z(te);
525
524
  });
526
525
  }
527
- je(E, (z) => O(P, z), () => e(P)), h(() => {
526
+ je(E, (z) => O(P, z), () => e(P)), p(() => {
528
527
  S(E, 1, `relative overflow-hidden ${B() ?? ""}`), ke(E, `width: ${(typeof j() == "number" ? j() + "px" : j()) ?? ""}; height: ${(typeof m() == "number" ? m() + "px" : m()) ?? ""};`);
529
528
  }), r(K, E), pe();
530
529
  }
@@ -570,10 +569,10 @@ function Zt(K, t) {
570
569
  var F = xe(), q = ue(F);
571
570
  {
572
571
  var T = (k) => {
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);
572
+ 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), g = a(z), I = i(z, 2), V = a(I), $ = i(I, 2), ee = a($), U = a(ee);
573
+ p(
574
+ (b, h, c, s, n) => {
575
+ W(E, j()), W(f, `FCP: ${b ?? ""}`), W(te, `LCP: ${h ?? ""}`), W(g, `CLS: ${c ?? ""}`), W(V, `Load: ${s ?? ""}`), W(U, n);
577
576
  },
578
577
  [
579
578
  () => (e(m), X(() => L(e(m).firstContentfulPaint))),
@@ -672,14 +671,14 @@ function Gt(K, t) {
672
671
  }), ie(() => (e(j), e(y)), () => {
673
672
  O(L, e(j) - e(y) / 100 * e(j));
674
673
  }), ze(), we();
675
- var z = pt(), b = a(z);
674
+ var z = pt(), g = a(z);
676
675
  {
677
- var I = (p) => {
678
- var g = mt(), c = a(g), s = a(c), n = i(c, 2);
676
+ var I = (b) => {
677
+ var h = mt(), c = a(h), s = a(c), n = i(c, 2);
679
678
  {
680
679
  var o = (v) => {
681
680
  var Z = ut(), re = a(Z);
682
- h((de) => W(re, `${de ?? ""}%`), [
681
+ p((de) => W(re, `${de ?? ""}%`), [
683
682
  () => (e(y), X(() => Math.round(e(y))))
684
683
  ]), r(v, Z);
685
684
  };
@@ -687,22 +686,22 @@ function Gt(K, t) {
687
686
  d() && v(o);
688
687
  });
689
688
  }
690
- h(() => {
689
+ p(() => {
691
690
  J(c, "for", A), W(s, E());
692
- }), r(p, g);
691
+ }), r(b, h);
693
692
  };
694
- H(b, (p) => {
695
- E() && p(I);
693
+ H(g, (b) => {
694
+ E() && b(I);
696
695
  });
697
696
  }
698
- var V = i(b, 2);
697
+ var V = i(g, 2);
699
698
  {
700
- var $ = (p) => {
701
- var g = xt(), c = a(g), s = a(c), n = i(c, 2);
699
+ var $ = (b) => {
700
+ var h = xt(), c = a(h), s = a(c), n = i(c, 2);
702
701
  {
703
702
  var o = (v) => {
704
703
  var Z = ft(), re = a(Z), de = a(re);
705
- h((be) => W(de, `${be ?? ""}%`), [
704
+ p((be) => W(de, `${be ?? ""}%`), [
706
705
  () => (e(y), X(() => Math.round(e(y))))
707
706
  ]), r(v, Z);
708
707
  };
@@ -710,7 +709,7 @@ function Gt(K, t) {
710
709
  d() && q() === "lg" && v(o);
711
710
  });
712
711
  }
713
- h(
712
+ p(
714
713
  (v) => {
715
714
  S(
716
715
  c,
@@ -736,16 +735,16 @@ function Gt(K, t) {
736
735
  [
737
736
  () => (C(E()), e(y), X(() => E() || `Progress: ${Math.round(e(y))}%`))
738
737
  ]
739
- ), r(p, g);
740
- }, ee = (p) => {
741
- var g = xe(), c = ue(g);
738
+ ), r(b, h);
739
+ }, ee = (b) => {
740
+ var h = xe(), c = ue(h);
742
741
  {
743
742
  var s = (n) => {
744
743
  var o = bt(), v = a(o), Z = i(a(v)), re = i(v, 2), de = a(re);
745
744
  {
746
745
  var be = (le) => {
747
746
  var ge = gt(), l = a(ge);
748
- h(
747
+ p(
749
748
  (x) => {
750
749
  S(
751
750
  ge,
@@ -769,7 +768,7 @@ function Gt(K, t) {
769
768
  d() ? le(be) : le(_e, !1);
770
769
  });
771
770
  }
772
- h(
771
+ p(
773
772
  (le) => {
774
773
  J(v, "id", A), S(
775
774
  v,
@@ -800,54 +799,54 @@ function Gt(K, t) {
800
799
  !0
801
800
  );
802
801
  }
803
- r(p, g);
802
+ r(b, h);
804
803
  };
805
- H(V, (p) => {
806
- k() === "linear" ? p($) : p(ee, !1);
804
+ H(V, (b) => {
805
+ k() === "linear" ? b($) : b(ee, !1);
807
806
  });
808
807
  }
809
808
  var U = i(V, 2);
810
- ne(U, t, "default", {}, null), h(() => S(z, 1, `progress-container ${M() ?? ""}`, "svelte-1nnpss")), r(K, z), pe();
809
+ ne(U, t, "default", {}, null), p(() => S(z, 1, `progress-container ${M() ?? ""}`, "svelte-1nnpss")), r(K, z), pe();
811
810
  }
812
811
  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>');
813
812
  function Yt(K) {
814
813
  var t = Bt(), y = a(t), w = a(y), j = i(a(w), 2);
815
814
  We(j, { size: "lg", variant: "outline" });
816
815
  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) => {
816
+ ce(B, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
818
817
  var s = yt(), n = a(s), o = i(n, 2), v = a(o);
819
- h(() => {
818
+ p(() => {
820
819
  S(n, 1, `w-16 h-16 rounded-lg bg-primary-${c ?? ""} border border-primary mb-2`), W(v, c);
821
- }), r(g, s);
820
+ }), r(h, s);
822
821
  });
823
822
  var F = i(L, 2), q = i(a(F), 2);
824
- ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (g, c) => {
823
+ ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
825
824
  var s = wt(), n = a(s), o = i(n, 2), v = a(o);
826
- h(() => {
825
+ p(() => {
827
826
  S(n, 1, `w-16 h-16 rounded-lg bg-secondary-${c ?? ""} border border-primary mb-2`), W(v, c);
828
- }), r(g, s);
827
+ }), r(h, s);
829
828
  });
830
829
  var T = i(F, 2), k = i(a(T), 2);
831
- ce(k, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (g, c) => {
830
+ ce(k, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
832
831
  var s = _t(), n = a(s), o = i(n, 2), v = a(o);
833
- h(() => {
832
+ p(() => {
834
833
  S(n, 1, `w-16 h-16 rounded-lg bg-neutral-${c ?? ""} border border-primary mb-2`), W(v, c);
835
- }), r(g, s);
834
+ }), r(h, s);
836
835
  });
837
836
  var P = i(T, 2), D = i(a(P), 2), d = a(D), E = i(a(d), 2);
838
- ce(E, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
837
+ ce(E, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
839
838
  var s = kt();
840
- h(() => S(s, 1, `w-8 h-8 rounded bg-success-${c ?? ""} border border-primary`)), r(g, s);
839
+ p(() => S(s, 1, `w-8 h-8 rounded bg-success-${c ?? ""} border border-primary`)), r(h, s);
841
840
  });
842
841
  var M = i(d, 2), Q = i(a(M), 2);
843
- ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
842
+ ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
844
843
  var s = zt();
845
- h(() => S(s, 1, `w-8 h-8 rounded bg-warning-${c ?? ""} border border-primary`)), r(g, s);
844
+ p(() => S(s, 1, `w-8 h-8 rounded bg-warning-${c ?? ""} border border-primary`)), r(h, s);
846
845
  });
847
846
  var A = i(M, 2), f = i(a(A), 2);
848
- ce(f, 4, () => [400, 500, 600, 700, 800], ve, (g, c) => {
847
+ ce(f, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
849
848
  var s = Ct();
850
- h(() => S(s, 1, `w-8 h-8 rounded bg-error-${c ?? ""} border border-primary`)), r(g, s);
849
+ p(() => S(s, 1, `w-8 h-8 rounded bg-error-${c ?? ""} border border-primary`)), r(h, s);
851
850
  });
852
851
  var N = i(m, 4), te = i(a(N), 2);
853
852
  ce(
@@ -867,16 +866,16 @@ function Yt(K) {
867
866
  { size: "6xl", text: "6X Large Text", class: "text-6xl" }
868
867
  ],
869
868
  ve,
870
- (g, c) => {
869
+ (h, c) => {
871
870
  var s = jt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v);
872
- h(() => {
871
+ p(() => {
873
872
  W(o, c.size), S(v, 1, `${c.class ?? ""} text-primary`), W(Z, c.text);
874
- }), r(g, s);
873
+ }), r(h, s);
875
874
  }
876
875
  );
877
- var z = i(N, 2), b = i(a(z), 2);
876
+ var z = i(N, 2), g = i(a(z), 2);
878
877
  ce(
879
- b,
878
+ g,
880
879
  4,
881
880
  () => [
882
881
  { size: "1", value: "0.25rem", class: "w-1" },
@@ -890,11 +889,11 @@ function Yt(K) {
890
889
  { size: "256", value: "64rem", class: "w-256" }
891
890
  ],
892
891
  ve,
893
- (g, c) => {
892
+ (h, c) => {
894
893
  var s = Tt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v), re = i(v, 2);
895
- h(() => {
894
+ p(() => {
896
895
  W(o, c.size), W(Z, c.value), S(re, 1, `${c.class ?? ""} h-4 bg-primary-500 rounded`);
897
- }), r(g, s);
896
+ }), r(h, s);
898
897
  }
899
898
  );
900
899
  var I = i(z, 2), V = i(a(I), 2);
@@ -913,11 +912,11 @@ function Yt(K) {
913
912
  { size: "full", class: "rounded-full" }
914
913
  ],
915
914
  ve,
916
- (g, c) => {
915
+ (h, c) => {
917
916
  var s = St(), n = a(s), o = i(n, 2), v = a(o);
918
- h(() => {
917
+ p(() => {
919
918
  S(n, 1, `w-16 h-16 bg-primary-500 ${c.class ?? ""} mx-auto`), W(v, c.size);
920
- }), r(g, s);
919
+ }), r(h, s);
921
920
  }
922
921
  );
923
922
  var $ = i(I, 2), ee = i(a($), 2);
@@ -935,16 +934,16 @@ function Yt(K) {
935
934
  { name: "Adaptive", class: "shadow-adaptive-lg" }
936
935
  ],
937
936
  ve,
938
- (g, c) => {
937
+ (h, c) => {
939
938
  var s = Pt(), n = a(s), o = i(n, 2), v = a(o);
940
- h(() => {
939
+ p(() => {
941
940
  S(n, 1, `w-20 h-20 bg-surface-primary border border-primary ${c.class ?? ""} mx-auto`), W(v, c.name);
942
- }), r(g, s);
941
+ }), r(h, s);
943
942
  }
944
943
  );
945
- var U = i($, 2), p = i(a(U), 2);
944
+ var U = i($, 2), b = i(a(U), 2);
946
945
  ce(
947
- p,
946
+ b,
948
947
  4,
949
948
  () => [
950
949
  { name: "Fade In", class: "animate-fade-in" },
@@ -955,11 +954,11 @@ function Yt(K) {
955
954
  { name: "Pulse", class: "animate-pulse-slow" }
956
955
  ],
957
956
  ve,
958
- (g, c) => {
957
+ (h, c) => {
959
958
  var s = Lt(), n = a(s), o = i(n, 2), v = a(o);
960
- h(() => {
959
+ p(() => {
961
960
  S(n, 1, `w-16 h-16 bg-primary-500 rounded-lg ${c.class ?? ""} mx-auto`), W(v, c.name);
962
- }), r(g, s);
961
+ }), r(h, s);
963
962
  }
964
963
  ), r(K, t);
965
964
  }
@@ -967,7 +966,7 @@ var Et = _("<div></div>");
967
966
  function Ut(K, t) {
968
967
  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, "");
969
968
  var L = Et();
970
- h(() => {
969
+ p(() => {
971
970
  S(L, 1, `animate-pulse bg-stone-800 ${m() ?? ""}`), ke(L, `width: ${y() ?? ""}; height: ${w() ?? ""}; border-radius: ${j() ?? ""};`);
972
971
  }), r(K, L);
973
972
  }
@@ -1068,10 +1067,10 @@ function Jt(K, t) {
1068
1067
  }
1069
1068
  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 };
1070
1069
  }
1071
- function b(l) {
1070
+ function g(l) {
1072
1071
  m() || e(M) || (clearTimeout(A), Q = setTimeout(
1073
1072
  () => {
1074
- O(M, !0), D("show", l), requestAnimationFrame(() => {
1073
+ O(M, !0), D("show", { event: l }), requestAnimationFrame(() => {
1075
1074
  const x = z();
1076
1075
  e(d) && (me(d, e(d).style.top = `${x.top}px`), me(d, e(d).style.left = `${x.left}px`));
1077
1076
  });
@@ -1082,27 +1081,27 @@ function Jt(K, t) {
1082
1081
  function I(l) {
1083
1082
  e(M) && (clearTimeout(Q), A = setTimeout(
1084
1083
  () => {
1085
- O(M, !1), D("hide", l);
1084
+ O(M, !1), D("hide", { event: l });
1086
1085
  },
1087
1086
  k() ? 300 : 0
1088
1087
  ));
1089
1088
  }
1090
1089
  function V(l) {
1091
- j() === "click" && (e(M) ? I(l) : b(l));
1090
+ j() === "click" && (e(M) ? I(l) : g(l));
1092
1091
  }
1093
1092
  function $(l) {
1094
- j() === "click" && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e(M) ? I(l) : b(l));
1093
+ j() === "click" && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e(M) ? I(l) : g(l));
1095
1094
  }
1096
1095
  function ee(l) {
1097
- j() === "focus" && b(l);
1096
+ j() === "focus" && g(l);
1098
1097
  }
1099
1098
  function U(l) {
1100
1099
  j() === "focus" && I(l);
1101
1100
  }
1102
- function p(l) {
1103
- j() === "hover" && b(l);
1101
+ function b(l) {
1102
+ j() === "hover" && g(l);
1104
1103
  }
1105
- function g(l) {
1104
+ function h(l) {
1106
1105
  j() === "hover" && I(l);
1107
1106
  }
1108
1107
  function c() {
@@ -1134,10 +1133,10 @@ function Jt(K, t) {
1134
1133
  {
1135
1134
  var be = (l) => {
1136
1135
  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);
1136
+ ne(se, t, "default", {}, null), je(x, (fe) => O(E, fe), () => e(E)), p(() => 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, b), R("mouseleave", x, h), r(l, x);
1138
1137
  }, _e = (l) => {
1139
1138
  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);
1139
+ ne(se, t, "default", {}, null), je(x, (fe) => O(E, fe), () => e(E)), p(() => 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, b), R("mouseleave", x, h), r(l, x);
1141
1140
  };
1142
1141
  H(de, (l) => {
1143
1142
  j() === "click" ? l(be) : l(_e, !1);
@@ -1150,7 +1149,7 @@ function Jt(K, t) {
1150
1149
  {
1151
1150
  var ae = (G) => {
1152
1151
  var Ee = Dt();
1153
- h(
1152
+ p(
1154
1153
  (Me, Ie, De, Ae, Ne) => S(
1155
1154
  Ee,
1156
1155
  1,
@@ -1177,7 +1176,7 @@ function Jt(K, t) {
1177
1176
  T() && G(ae);
1178
1177
  });
1179
1178
  }
1180
- je(x, (G) => O(d, G), () => e(d)), h(() => {
1179
+ je(x, (G) => O(d, G), () => e(d)), p(() => {
1181
1180
  J(x, "id", `tooltip-${y() ?? ""}`), S(
1182
1181
  x,
1183
1182
  1,