zabi-components 1.0.7 → 1.0.9

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,6 +1,6 @@
1
- import { j as I, I as G, H as Q, w as B, b as H, J as U, K as W, g as n, L as Z, h as N, p as c, k as D, l as g, i as $, f as x, c as p, t as w, e as E, m as ee, n as d, q as P, u as _, r as k, v as V, x as te, a as xe, o as T, s as be, y as we, z as _e, M as ke, N as je, O as Me, B as X, X as Te, P as ze } from "./x-DpVwziig.js";
1
+ import { j as I, I as G, H as Q, w as B, b as H, J as U, K as W, g as n, L as Z, h as N, p as c, k as D, l as y, i as $, f as p, c as x, t as w, e as E, m as ee, n as d, q as P, u as _, r as k, v as V, x as te, a as pe, o as T, s as be, y as we, z as _e, M as ke, N as je, O as Me, B as X, X as Te, P as ze } from "./x-Dsi-CPO3.js";
2
2
  import { onMount as ae, createEventDispatcher as Ce } from "svelte";
3
- function Ee(f, e) {
3
+ function Ee(u, e) {
4
4
  I(e, !0);
5
5
  /**
6
6
  * @license @lucide/svelte v0.544.0 - ISC
@@ -46,28 +46,28 @@ function Ee(f, e) {
46
46
  * SOFTWARE.
47
47
  *
48
48
  */
49
- let u = Z(e, ["$$slots", "$$events", "$$legacy"]);
49
+ let m = Z(e, ["$$slots", "$$events", "$$legacy"]);
50
50
  const v = [
51
51
  ["circle", { cx: "12", cy: "12", r: "10" }],
52
52
  ["path", { d: "M12 16v-4" }],
53
53
  ["path", { d: "M12 8h.01" }]
54
54
  ];
55
- G(f, Q(
55
+ G(u, Q(
56
56
  { name: "info" },
57
- () => u,
57
+ () => m,
58
58
  {
59
59
  get iconNode() {
60
60
  return v;
61
61
  },
62
- children: (r, i) => {
63
- var o = B(), l = H(o);
64
- U(l, () => e.children ?? W), n(r, o);
62
+ children: (o, i) => {
63
+ var r = B(), l = H(r);
64
+ U(l, () => e.children ?? W), n(o, r);
65
65
  },
66
66
  $$slots: { default: !0 }
67
67
  }
68
68
  )), N();
69
69
  }
70
- function Ie(f, e) {
70
+ function Ie(u, e) {
71
71
  I(e, !0);
72
72
  /**
73
73
  * @license @lucide/svelte v0.544.0 - ISC
@@ -113,7 +113,7 @@ function Ie(f, e) {
113
113
  * SOFTWARE.
114
114
  *
115
115
  */
116
- let u = Z(e, ["$$slots", "$$events", "$$legacy"]);
116
+ let m = Z(e, ["$$slots", "$$events", "$$legacy"]);
117
117
  const v = [
118
118
  [
119
119
  "path",
@@ -124,79 +124,79 @@ function Ie(f, e) {
124
124
  ["path", { d: "M12 9v4" }],
125
125
  ["path", { d: "M12 17h.01" }]
126
126
  ];
127
- G(f, Q(
127
+ G(u, Q(
128
128
  { name: "triangle-alert" },
129
- () => u,
129
+ () => m,
130
130
  {
131
131
  get iconNode() {
132
132
  return v;
133
133
  },
134
- children: (r, i) => {
135
- var o = B(), l = H(o);
136
- U(l, () => e.children ?? W), n(r, o);
134
+ children: (o, i) => {
135
+ var r = B(), l = H(r);
136
+ U(l, () => e.children ?? W), n(o, r);
137
137
  },
138
138
  $$slots: { default: !0 }
139
139
  }
140
140
  )), N();
141
141
  }
142
- var Ne = te('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'), Le = te('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'), Se = x("<button><!></button>");
143
- function Je(f, e) {
142
+ var Ne = te('<svg class="w-5 h-5 text-text" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'), Le = te('<svg class="w-5 h-5 text-text" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'), Se = p("<button><!></button>");
143
+ function Je(u, e) {
144
144
  I(e, !1);
145
- let u = c(e, "size", 8, "md"), v = c(e, "variant", 8, "default"), r = ee(!1);
145
+ let m = c(e, "size", 8, "md"), v = c(e, "variant", 8, "default"), o = ee(!1);
146
146
  const i = {
147
147
  sm: "w-8 h-8 text-sm",
148
148
  md: "w-10 h-10 text-base",
149
149
  lg: "w-12 h-12 text-lg"
150
- }, o = {
151
- default: "bg-surface-primary hover:bg-surface-secondary border border-primary shadow-adaptive-sm",
152
- minimal: "bg-transparent hover:bg-surface-secondary",
153
- outline: "bg-transparent border border-primary hover:bg-surface-secondary"
150
+ }, r = {
151
+ default: "bg-surface hover:bg-surface-hover border border-border shadow-adaptive-sm",
152
+ minimal: "bg-transparent hover:bg-surface-hover",
153
+ outline: "bg-transparent border border-border hover:bg-surface-hover"
154
154
  };
155
155
  ae(() => {
156
- const a = localStorage.getItem("theme"), y = window.matchMedia("(prefers-color-scheme: dark)").matches;
157
- D(r, a === "dark" || !a && y), j();
156
+ const a = localStorage.getItem("theme"), g = window.matchMedia("(prefers-color-scheme: dark)").matches;
157
+ D(o, a === "dark" || !a && g), j();
158
158
  });
159
159
  function l() {
160
- D(r, !g(r)), j(), localStorage.setItem("theme", g(r) ? "dark" : "light");
160
+ D(o, !y(o)), j(), localStorage.setItem("theme", y(o) ? "dark" : "light");
161
161
  }
162
162
  function j() {
163
- g(r) ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
163
+ y(o) ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
164
164
  }
165
165
  $();
166
166
  var h = Se(), L = d(h);
167
167
  {
168
168
  var S = (a) => {
169
- var y = Ne();
170
- n(a, y);
169
+ var g = Ne();
170
+ n(a, g);
171
171
  }, z = (a) => {
172
- var y = Le();
173
- n(a, y);
172
+ var g = Le();
173
+ n(a, g);
174
174
  };
175
- p(L, (a) => {
176
- g(r) ? a(S) : a(z, !1);
175
+ x(L, (a) => {
176
+ y(o) ? a(S) : a(z, !1);
177
177
  });
178
178
  }
179
179
  w(() => {
180
180
  P(h, 1, `
181
- ${k(u()), _(() => i[u()]) ?? ""}
182
- ${k(v()), _(() => o[v()]) ?? ""}
181
+ ${k(m()), _(() => i[m()]) ?? ""}
182
+ ${k(v()), _(() => r[v()]) ?? ""}
183
183
  rounded-lg
184
184
  transition-all
185
185
  duration-200
186
186
  flex
187
187
  items-center
188
188
  justify-center
189
- text-primary
190
- hover:text-primary-600
189
+ text-text
190
+ hover:text-text
191
191
  focus:outline-none
192
192
  focus:ring-2
193
- focus:ring-primary-500
193
+ focus:ring-focus-ring
194
194
  focus:ring-offset-2
195
- focus:ring-offset-surface-primary
196
- `), V(h, "aria-label", g(r) ? "Switch to light mode" : "Switch to dark mode"), V(h, "title", g(r) ? "Switch to light mode" : "Switch to dark mode");
197
- }), E("click", h, l), n(f, h), N();
195
+ focus:ring-offset-focus-ring-offset
196
+ `), V(h, "aria-label", y(o) ? "Switch to light mode" : "Switch to dark mode"), V(h, "title", y(o) ? "Switch to light mode" : "Switch to dark mode");
197
+ }), E("click", h, l), n(u, h), N();
198
198
  }
199
- var Ye = x('<div class="flex-shrink-0 mr-3 svelte-ayjeya"><!></div>'), De = x('<h4 class="text-sm font-semibold mb-1 svelte-ayjeya"> </h4>'), Pe = x('<p class="text-sm opacity-90 svelte-ayjeya"> </p>'), Be = x('<button type="button" aria-label="Close notification"><!></button>'), He = x('<div class="absolute bottom-0 left-0 right-0 h-1 bg-current opacity-20 rounded-b-lg overflow-hidden svelte-ayjeya"><div class="h-full bg-current opacity-50 animate-progress-bar svelte-ayjeya"></div></div>'), Ae = x('<div role="alert" aria-live="polite"><div class="p-4 svelte-ayjeya"><div class="flex items-start svelte-ayjeya"><!> <div class="flex-1 min-w-0 svelte-ayjeya"><!> <!> <!></div> <!></div></div> <!></div>');
199
+ var Ye = p('<div class="flex-shrink-0 mr-3 svelte-ayjeya"><!></div>'), De = p('<h4 class="text-sm font-semibold mb-1 svelte-ayjeya"> </h4>'), Pe = p('<p class="text-sm opacity-90 svelte-ayjeya"> </p>'), Be = p('<button type="button" aria-label="Close notification"><!></button>'), He = p('<div class="absolute bottom-0 left-0 right-0 h-1 bg-current opacity-20 rounded-b-lg overflow-hidden svelte-ayjeya"><div class="h-full bg-current opacity-50 animate-progress-bar svelte-ayjeya"></div></div>'), Ae = p('<div role="alert" aria-live="polite"><div class="p-4 svelte-ayjeya"><div class="flex items-start svelte-ayjeya"><!> <div class="flex-1 min-w-0 svelte-ayjeya"><!> <!> <!></div> <!></div></div> <!></div>');
200
200
  const Ke = {
201
201
  hash: "svelte-ayjeya",
202
202
  code: `
@@ -246,9 +246,9 @@ const Ke = {
246
246
  @media (max-width: 640px) {.toast-container.svelte-ayjeya {max-width:calc(100vw - 2rem);margin:0 1rem;}
247
247
  }`
248
248
  };
249
- function Oe(f, e) {
250
- I(e, !1), xe(f, Ke);
251
- let u = c(e, "id", 8, ""), v = c(e, "title", 8, ""), r = c(e, "message", 8, ""), i = c(e, "type", 8, "info"), o = c(
249
+ function Oe(u, e) {
250
+ I(e, !1), pe(u, Ke);
251
+ let m = c(e, "id", 8, ""), v = c(e, "title", 8, ""), o = c(e, "message", 8, ""), i = c(e, "type", 8, "info"), r = c(
252
252
  e,
253
253
  "duration",
254
254
  8,
@@ -257,7 +257,7 @@ function Oe(f, e) {
257
257
  ), l = c(e, "position", 8, "top-right"), j = c(e, "closable", 8, !0), h = c(e, "showIcon", 8, !0), L = c(e, "className", 8, "");
258
258
  const S = Ce();
259
259
  let z = ee(!0), a;
260
- const y = {
260
+ const g = {
261
261
  success: Me,
262
262
  error: je,
263
263
  warning: Ie,
@@ -292,28 +292,28 @@ function Oe(f, e) {
292
292
  "bottom-center": "bottom-4 left-1/2 transform -translate-x-1/2"
293
293
  };
294
294
  function C() {
295
- D(z, !1), S("close", { id: u() });
295
+ D(z, !1), S("close", { id: m() });
296
296
  }
297
297
  function A(M) {
298
298
  M.key === "Escape" && j() && C();
299
299
  }
300
- ae(() => (o() > 0 && (a = setTimeout(
300
+ ae(() => (r() > 0 && (a = setTimeout(
301
301
  () => {
302
302
  C();
303
303
  },
304
- o()
304
+ r()
305
305
  )), document.addEventListener("keydown", A), () => {
306
306
  a && clearTimeout(a), document.removeEventListener("keydown", A);
307
307
  }));
308
- function re() {
308
+ function oe() {
309
309
  a && clearTimeout(a);
310
310
  }
311
- function oe() {
312
- o() > 0 && (a = setTimeout(
311
+ function re() {
312
+ r() > 0 && (a = setTimeout(
313
313
  () => {
314
314
  C();
315
315
  },
316
- o()
316
+ r()
317
317
  ));
318
318
  }
319
319
  $();
@@ -323,9 +323,9 @@ function Oe(f, e) {
323
323
  var b = Ae(), q = d(b), le = d(q), F = d(le);
324
324
  {
325
325
  var ce = (t) => {
326
- var s = Ye(), m = d(s);
327
- ke(m, () => y[i()], (ge, pe) => {
328
- pe(ge, {
326
+ var s = Ye(), f = d(s);
327
+ ke(f, () => g[i()], (ye, xe) => {
328
+ xe(ye, {
329
329
  size: 20,
330
330
  get class() {
331
331
  return k(i()), _(() => Y[i()].icon);
@@ -333,37 +333,37 @@ function Oe(f, e) {
333
333
  });
334
334
  }), n(t, s);
335
335
  };
336
- p(F, (t) => {
336
+ x(F, (t) => {
337
337
  h() && t(ce);
338
338
  });
339
339
  }
340
340
  var J = T(F, 2), O = d(J);
341
341
  {
342
342
  var de = (t) => {
343
- var s = De(), m = d(s);
344
- w(() => X(m, v())), n(t, s);
343
+ var s = De(), f = d(s);
344
+ w(() => X(f, v())), n(t, s);
345
345
  };
346
- p(O, (t) => {
346
+ x(O, (t) => {
347
347
  v() && t(de);
348
348
  });
349
349
  }
350
350
  var R = T(O, 2);
351
351
  {
352
352
  var ve = (t) => {
353
- var s = Pe(), m = d(s);
354
- w(() => X(m, r())), n(t, s);
353
+ var s = Pe(), f = d(s);
354
+ w(() => X(f, o())), n(t, s);
355
355
  };
356
- p(R, (t) => {
357
- r() && t(ve);
356
+ x(R, (t) => {
357
+ o() && t(ve);
358
358
  });
359
359
  }
360
- var me = T(R, 2);
361
- be(me, e, "default", {}, null);
362
- var fe = T(J, 2);
360
+ var fe = T(R, 2);
361
+ be(fe, e, "default", {}, null);
362
+ var ue = T(J, 2);
363
363
  {
364
- var ue = (t) => {
365
- var s = Be(), m = d(s);
366
- Te(m, { size: 16 }), w(() => P(
364
+ var me = (t) => {
365
+ var s = Be(), f = d(s);
366
+ Te(f, { size: 16 }), w(() => P(
367
367
  s,
368
368
  1,
369
369
  `
@@ -374,18 +374,18 @@ function Oe(f, e) {
374
374
  "svelte-ayjeya"
375
375
  )), E("click", s, C), n(t, s);
376
376
  };
377
- p(fe, (t) => {
378
- j() && t(ue);
377
+ x(ue, (t) => {
378
+ j() && t(me);
379
379
  });
380
380
  }
381
381
  var he = T(q, 2);
382
382
  {
383
- var ye = (t) => {
384
- var s = He(), m = d(s);
385
- w(() => ze(m, `animation-duration: ${o() ?? ""}ms;`)), n(t, s);
383
+ var ge = (t) => {
384
+ var s = He(), f = d(s);
385
+ w(() => ze(f, `animation-duration: ${r() ?? ""}ms;`)), n(t, s);
386
386
  };
387
- p(he, (t) => {
388
- o() > 0 && t(ye);
387
+ x(he, (t) => {
388
+ r() > 0 && t(ge);
389
389
  });
390
390
  }
391
391
  w(() => P(
@@ -399,17 +399,17 @@ function Oe(f, e) {
399
399
  ${L() ?? ""}
400
400
  `,
401
401
  "svelte-ayjeya"
402
- )), E("mouseenter", b, re), E("mouseleave", b, oe), we(3, b, () => _e, () => ({
402
+ )), E("mouseenter", b, oe), E("mouseleave", b, re), we(3, b, () => _e, () => ({
403
403
  x: l().includes("right") ? 300 : l().includes("left") ? -300 : 0,
404
404
  y: l().includes("top") ? -50 : 50,
405
405
  duration: 300
406
406
  })), n(M, b);
407
407
  };
408
- p(ne, (M) => {
409
- g(z) && M(ie);
408
+ x(ne, (M) => {
409
+ y(z) && M(ie);
410
410
  });
411
411
  }
412
- n(f, K), N();
412
+ n(u, K), N();
413
413
  }
414
414
  export {
415
415
  Je as T,
@@ -1,7 +1,7 @@
1
- import { a as fe, p as h, i as ie, f as _, b as re, c as N, s as ne, d as Be, t as I, e as A, g as f, h as le, j as de, k as g, l as e, m as V, n as d, o as w, q as K, u as o, r as m, v as G, w as me, x as be, y as ae, z as ge, A as Ye, B as se, C as ue, D as Ie, E as he, F as Oe, G as L } from "./x-DpVwziig.js";
1
+ import { a as fe, p as h, i as ie, f as _, b as ne, c as N, s as re, d as Be, t as I, e as A, g as f, h as le, j as de, k as g, l as e, m as V, n as d, o as w, q as K, u as o, r as m, v as G, w as me, x as be, y as ae, z as ge, A as Ye, B as se, C as ue, D as Ie, E as he, F as Oe, G as L } from "./x-Dsi-CPO3.js";
2
2
  import { createEventDispatcher as pe, onMount as oe } from "svelte";
3
- import { T as Se, a as Ae } from "./Toast-DXZ9gllw.js";
4
- var De = _('<button type="button" class="text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"> </button>'), Fe = _('<img class="h-8 w-8 svelte-1r8bk40"/>'), Re = _('<a class="flex items-center space-x-2 text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"><!> <span class="svelte-1r8bk40"> </span></a>'), qe = be('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" class="svelte-1r8bk40"></path>'), Ge = be('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" class="svelte-1r8bk40"></path>'), Ke = _('<div id="mobile-menu" class="md:hidden border-t border-primary bg-surface svelte-1r8bk40"><div class="px-4 py-2 space-y-1 svelte-1r8bk40"><!></div></div>'), Pe = _('<div class="fixed inset-0 bg-black/50 backdrop-blur-sm z-30 md:hidden svelte-1r8bk40" role="button" tabindex="0" aria-label="Close menu"></div>'), He = _('<nav aria-label="Main navigation"><div class="max-w-7xl mx-auto svelte-1r8bk40"><div><div class="flex items-center svelte-1r8bk40"><!></div> <div class="hidden md:flex items-center space-x-8 svelte-1r8bk40"><!></div> <div class="flex items-center space-x-4 svelte-1r8bk40"><!> <!> <button type="button" class="md:hidden p-2 rounded-lg text-primary hover:bg-surface-secondary focus:outline-none focus:ring-2 focus:ring-primary svelte-1r8bk40" aria-controls="mobile-menu" aria-label="Toggle navigation menu"><svg class="w-6 h-6 svelte-1r8bk40" fill="none" stroke="currentColor" viewBox="0 0 24 24"><!></svg></button></div></div> <!></div></nav> <!>', 1);
3
+ import { T as Se, a as Ae } from "./Toast-1EMgTOM4.js";
4
+ var De = _('<button type="button" class="text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"> </button>'), Fe = _('<img class="h-8 w-8 svelte-1r8bk40"/>'), Re = _('<a class="flex items-center space-x-2 text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"><!> <span class="svelte-1r8bk40"> </span></a>'), qe = be('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" class="svelte-1r8bk40"></path>'), Ge = be('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" class="svelte-1r8bk40"></path>'), Ke = _('<div id="mobile-menu" class="md:hidden border-t border-primary bg-surface svelte-1r8bk40"><div class="px-4 py-2 space-y-1 svelte-1r8bk40"><!></div></div>'), Pe = _('<div class="fixed inset-0 bg-black/50 backdrop-blur-sm z-30 md:hidden svelte-1r8bk40" role="button" tabindex="0" aria-label="Close menu"></div>'), He = _('<nav aria-label="Main navigation"><div class="max-w-7xl mx-auto svelte-1r8bk40"><div><div class="flex items-center svelte-1r8bk40"><!></div> <div class="hidden md:flex items-center space-x-8 svelte-1r8bk40"><!></div> <div class="flex items-center space-x-4 svelte-1r8bk40"><!> <!> <button type="button" class="md:hidden p-2 rounded-lg text-primary hover:bg-surface-secondary focus:outline-none focus:ring-2 focus:ring-primary svelte-1r8bk40" aria-controls="mobile-menu" aria-label="Toggle navigation menu"><svg class="w-6 h-6 text-text svelte-1r8bk40" fill="none" stroke="currentColor" viewBox="0 0 24 24"><!></svg></button></div></div> <!></div></nav> <!>', 1);
5
5
  const Je = {
6
6
  hash: "svelte-1r8bk40",
7
7
  code: `
@@ -38,7 +38,7 @@ const Je = {
38
38
 
39
39
  /* Brand hover effects */.navbar-brand.svelte-1r8bk40:hover {transform:translateY(-1px);}
40
40
 
41
- /* Mobile menu item styles */.mobile-menu-item.svelte-1r8bk40 {display:block;border-radius:var(--radius-lg);padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:1rem;line-height:1.5rem;font-weight:500;color:rgb(var(--color-text));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}.mobile-menu-item.svelte-1r8bk40:hover {background-color:rgb(var(--color-surface-secondary));}
41
+ /* Mobile menu item styles */.mobile-menu-item.svelte-1r8bk40 {display:block;border-radius:var(--radius-lg);padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:1rem;line-height:1.5rem;font-weight:500;color:rgb(var(--color-primary));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}.mobile-menu-item.svelte-1r8bk40:hover {background-color:rgb(var(--color-surface-secondary));}
42
42
 
43
43
  /* Responsive adjustments */
44
44
  @media (max-width: 768px) {.navbar.svelte-1r8bk40 {padding-left:1rem;padding-right:1rem;}
@@ -48,7 +48,7 @@ function et(B, a) {
48
48
  de(a, !1), fe(B, Je);
49
49
  let s = h(a, "brand", 8, ""), M = h(a, "variant", 8, "default"), T = h(a, "size", 8, "md"), c = h(a, "position", 8, "sticky"), D = h(a, "showThemeToggle", 8, !0), b = h(a, "className", 8, "");
50
50
  const p = pe();
51
- let i = V(!1), C = V(!1), k = V();
51
+ let i = V(!1), C = V(!1), x = V();
52
52
  const y = { sm: "py-2 px-4", md: "py-3 px-6", lg: "py-4 px-8" }, z = {
53
53
  default: "bg-surface border-b border-primary shadow-adaptive-sm",
54
54
  transparent: "bg-transparent",
@@ -59,8 +59,8 @@ function et(B, a) {
59
59
  sticky: "sticky top-0 z-40",
60
60
  fixed: "fixed top-0 left-0 right-0 z-40"
61
61
  };
62
- function O(r) {
63
- p("brandClick", { event: r });
62
+ function O(n) {
63
+ p("brandClick", { event: n });
64
64
  }
65
65
  function l() {
66
66
  g(i, !e(i)), p("menuToggle", { isOpen: e(i) });
@@ -69,19 +69,19 @@ function et(B, a) {
69
69
  g(C, window.scrollY > 10);
70
70
  }
71
71
  oe(() => (window.addEventListener("scroll", E), () => window.removeEventListener("scroll", E)));
72
- function x(r) {
73
- r.key === "Escape" && e(i) && (g(i, !1), p("menuToggle", { isOpen: !1 }));
72
+ function k(n) {
73
+ n.key === "Escape" && e(i) && (g(i, !1), p("menuToggle", { isOpen: !1 }));
74
74
  }
75
- function n(r) {
76
- e(i) && e(k) && !e(k).contains(r.target) && (g(i, !1), p("menuToggle", { isOpen: !1 }));
75
+ function r(n) {
76
+ e(i) && e(x) && !e(x).contains(n.target) && (g(i, !1), p("menuToggle", { isOpen: !1 }));
77
77
  }
78
- oe(() => (document.addEventListener("keydown", x), document.addEventListener("click", n), () => {
79
- document.removeEventListener("keydown", x), document.removeEventListener("click", n);
78
+ oe(() => (document.addEventListener("keydown", k), document.addEventListener("click", r), () => {
79
+ document.removeEventListener("keydown", k), document.removeEventListener("click", r);
80
80
  })), ie();
81
- var t = He(), u = re(t), P = d(u), F = d(P), H = d(F), W = d(H);
81
+ var t = He(), u = ne(t), P = d(u), F = d(P), H = d(F), W = d(H);
82
82
  {
83
- var X = (r) => {
84
- var v = me(), R = re(v);
83
+ var X = (n) => {
84
+ var v = me(), R = ne(v);
85
85
  {
86
86
  var Q = (S) => {
87
87
  var j = De(), U = d(j);
@@ -108,59 +108,59 @@ function et(B, a) {
108
108
  typeof s() == "string" ? S(Q) : S(je, !1);
109
109
  });
110
110
  }
111
- f(r, v);
111
+ f(n, v);
112
112
  };
113
- N(W, (r) => {
114
- s() && r(X);
113
+ N(W, (n) => {
114
+ s() && n(X);
115
115
  });
116
116
  }
117
117
  var J = w(H, 2), Z = d(J);
118
- ne(Z, a, "nav", {}, null);
119
- var ke = w(J, 2), ce = d(ke);
118
+ re(Z, a, "nav", {}, null);
119
+ var xe = w(J, 2), ce = d(xe);
120
120
  {
121
- var xe = (r) => {
122
- Se(r, { size: "md", variant: "outline" });
121
+ var ke = (n) => {
122
+ Se(n, { size: "md", variant: "outline" });
123
123
  };
124
- N(ce, (r) => {
125
- D() && r(xe);
124
+ N(ce, (n) => {
125
+ D() && n(ke);
126
126
  });
127
127
  }
128
128
  var ve = w(ce, 2);
129
- ne(ve, a, "actions", {}, null);
129
+ re(ve, a, "actions", {}, null);
130
130
  var $ = w(ve, 2), ye = d($), we = d(ye);
131
131
  {
132
- var _e = (r) => {
132
+ var _e = (n) => {
133
133
  var v = qe();
134
- f(r, v);
135
- }, Me = (r) => {
134
+ f(n, v);
135
+ }, Me = (n) => {
136
136
  var v = Ge();
137
- f(r, v);
137
+ f(n, v);
138
138
  };
139
- N(we, (r) => {
140
- e(i) ? r(_e) : r(Me, !1);
139
+ N(we, (n) => {
140
+ e(i) ? n(_e) : n(Me, !1);
141
141
  });
142
142
  }
143
143
  var Te = w(F, 2);
144
144
  {
145
- var Ce = (r) => {
145
+ var Ce = (n) => {
146
146
  var v = Ke(), R = d(v), Q = d(R);
147
- ne(Q, a, "mobile-nav", {}, null), ae(3, v, () => ge, () => ({ y: -20, duration: 200 })), f(r, v);
147
+ re(Q, a, "mobile-nav", {}, null), ae(3, v, () => ge, () => ({ y: -20, duration: 200 })), f(n, v);
148
148
  };
149
- N(Te, (r) => {
150
- e(i) && r(Ce);
149
+ N(Te, (n) => {
150
+ e(i) && n(Ce);
151
151
  });
152
152
  }
153
- Be(u, (r) => g(k, r), () => e(k));
153
+ Be(u, (n) => g(x, n), () => e(x));
154
154
  var ze = w(u, 2);
155
155
  {
156
- var Ee = (r) => {
156
+ var Ee = (n) => {
157
157
  var v = Pe();
158
158
  A("click", v, () => g(i, !1)), A("keydown", v, (R) => {
159
159
  R.key === "Escape" && g(i, !1);
160
- }), ae(3, v, () => Ye, () => ({ duration: 200 })), f(r, v);
160
+ }), ae(3, v, () => Ye, () => ({ duration: 200 })), f(n, v);
161
161
  };
162
- N(ze, (r) => {
163
- e(i) && r(Ee);
162
+ N(ze, (n) => {
163
+ e(i) && n(Ee);
164
164
  });
165
165
  }
166
166
  I(() => {
@@ -184,16 +184,16 @@ function et(B, a) {
184
184
  ), G($, "aria-expanded", e(i));
185
185
  }), A("click", $, l), f(B, t), le();
186
186
  }
187
- var Qe = _('<div><div class="flex items-center"><svg class="w-5 h-5 mr-3 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg> <span class="text-sm font-medium flex-1"> </span></div> <button class="ml-3 flex-shrink-0 opacity-70 hover:opacity-100 transition-opacity" aria-label="Close notification"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div>'), Ue = _("<div></div>");
187
+ var Qe = _('<div><div class="flex items-center"><svg class="w-5 h-5 mr-3 flex-shrink-0 text-current" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg> <span class="text-sm font-medium flex-1"> </span></div> <button class="ml-3 flex-shrink-0 opacity-70 hover:opacity-100 transition-opacity" aria-label="Close notification"><svg class="w-4 h-4 text-current" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div>'), Ue = _("<div></div>");
188
188
  function tt(B, a) {
189
189
  de(a, !1);
190
190
  let s = h(a, "notifications", 28, () => []), M = h(a, "position", 8, "top-right"), T = h(a, "maxNotifications", 8, 5);
191
191
  const c = pe(), D = "px-4 py-3 rounded-md border flex items-center justify-between mb-3 shadow-lg", b = {
192
- success: "bg-green-100 border-green-400 text-green-700",
193
- error: "bg-red-100 border-red-400 text-red-700",
194
- warning: "bg-yellow-100 border-yellow-400 text-yellow-700",
195
- info: "bg-blue-100 border-blue-400 text-blue-700",
196
- default: "bg-gray-100 border-gray-400 text-gray-700"
192
+ success: "bg-success-surface border-success text-success-text",
193
+ error: "bg-error-surface border-error text-error-text",
194
+ warning: "bg-warning-surface border-warning text-warning-text",
195
+ info: "bg-info-surface border-info text-info-text",
196
+ default: "bg-surface border-border text-text"
197
197
  }, p = {
198
198
  success: "M5 13l4 4L19 7",
199
199
  error: "M6 18L18 6M6 6l12 12",
@@ -209,7 +209,7 @@ function tt(B, a) {
209
209
  function C(l) {
210
210
  return `${D} ${b[l] || b.default}`;
211
211
  }
212
- function k(l) {
212
+ function x(l) {
213
213
  return p[l] || p.default;
214
214
  }
215
215
  function y(l) {
@@ -230,21 +230,21 @@ function tt(B, a) {
230
230
  );
231
231
  });
232
232
  }), Ie(), ie();
233
- var z = me(), Y = re(z);
233
+ var z = me(), Y = ne(z);
234
234
  {
235
235
  var O = (l) => {
236
236
  var E = Ue();
237
- he(E, 5, s, (x) => x.id, (x, n) => {
237
+ he(E, 5, s, (k) => k.id, (k, r) => {
238
238
  var t = Qe(), u = d(t), P = d(u), F = d(P), H = w(P, 2), W = d(H), X = w(u, 2);
239
239
  I(
240
240
  (J, Z) => {
241
- K(t, 1, J), G(F, "d", Z), se(W, (e(n), o(() => e(n).message)));
241
+ K(t, 1, J), G(F, "d", Z), se(W, (e(r), o(() => e(r).message)));
242
242
  },
243
243
  [
244
- () => Oe((e(n), o(() => C(e(n).type)))),
245
- () => (e(n), o(() => k(e(n).type)))
244
+ () => Oe((e(r), o(() => C(e(r).type)))),
245
+ () => (e(r), o(() => x(e(r).type)))
246
246
  ]
247
- ), A("click", X, () => y(e(n).id)), ae(3, t, () => ge, () => ({ x: M().includes("right") ? 300 : -300, duration: 300 })), f(x, t);
247
+ ), A("click", X, () => y(e(r).id)), ae(3, t, () => ge, () => ({ x: M().includes("right") ? 300 : -300, duration: 300 })), f(k, t);
248
248
  }), I(() => K(E, 1, `${m(M()), o(() => i[M()]) ?? ""} z-50 max-w-sm w-full space-y-2`)), f(l, E);
249
249
  };
250
250
  N(Y, (l) => {
@@ -263,10 +263,10 @@ const We = {
263
263
 
264
264
  /* Stack toasts with proper spacing */.toast-manager.svelte-1hjxuh0 {display:flex;flex-direction:column;gap:0.5rem;}`
265
265
  };
266
- function nt(B, a) {
266
+ function rt(B, a) {
267
267
  de(a, !1), fe(B, We);
268
268
  let s = h(a, "position", 8, "top-right"), M = h(a, "maxToasts", 8, 5), T = h(a, "className", 8, ""), c = V([]), D = 0;
269
- function b(n) {
269
+ function b(r) {
270
270
  const t = `toast-${++D}`, u = {
271
271
  id: t,
272
272
  title: "",
@@ -275,50 +275,50 @@ function nt(B, a) {
275
275
  duration: 5e3,
276
276
  closable: !0,
277
277
  showIcon: !0,
278
- ...n
278
+ ...r
279
279
  };
280
280
  return e(c).length >= M() && g(c, e(c).slice(1)), g(c, [...e(c), u]), t;
281
281
  }
282
- function p(n, t = {}) {
283
- return b({ message: n, type: "success", ...t });
282
+ function p(r, t = {}) {
283
+ return b({ message: r, type: "success", ...t });
284
284
  }
285
- function i(n, t = {}) {
285
+ function i(r, t = {}) {
286
286
  return b({
287
- message: n,
287
+ message: r,
288
288
  type: "error",
289
289
  duration: 0,
290
290
  // Don't auto-dismiss errors
291
291
  ...t
292
292
  });
293
293
  }
294
- function C(n, t = {}) {
295
- return b({ message: n, type: "warning", ...t });
294
+ function C(r, t = {}) {
295
+ return b({ message: r, type: "warning", ...t });
296
296
  }
297
- function k(n, t = {}) {
298
- return b({ message: n, type: "info", ...t });
297
+ function x(r, t = {}) {
298
+ return b({ message: r, type: "info", ...t });
299
299
  }
300
- function y(n) {
301
- g(c, e(c).filter((t) => t.id !== n));
300
+ function y(r) {
301
+ g(c, e(c).filter((t) => t.id !== r));
302
302
  }
303
303
  function z() {
304
304
  g(c, []);
305
305
  }
306
- function Y(n, t) {
307
- g(c, e(c).map((u) => u.id === n ? { ...u, ...t } : u));
306
+ function Y(r, t) {
307
+ g(c, e(c).map((u) => u.id === r ? { ...u, ...t } : u));
308
308
  }
309
- function O(n) {
310
- y(n.detail.id);
309
+ function O(r) {
310
+ y(r.detail.id);
311
311
  }
312
- function l(n) {
312
+ function l(r) {
313
313
  }
314
- oe(() => (typeof window < "u" && (window.toast = { show: b, success: p, error: i, warning: C, info: k, close: y, closeAll: z, update: Y }), () => {
314
+ oe(() => (typeof window < "u" && (window.toast = { show: b, success: p, error: i, warning: C, info: x, close: y, closeAll: z, update: Y }), () => {
315
315
  typeof window < "u" && delete window.toast;
316
316
  }));
317
- var E = { show: b, success: p, error: i, warning: C, info: k, close: y, closeAll: z, update: Y };
317
+ var E = { show: b, success: p, error: i, warning: C, info: x, close: y, closeAll: z, update: Y };
318
318
  ie();
319
- var x = Ve();
320
- return he(x, 5, () => e(c), (n) => n.id, (n, t) => {
321
- Ae(n, {
319
+ var k = Ve();
320
+ return he(k, 5, () => e(c), (r) => r.id, (r, t) => {
321
+ Ae(r, {
322
322
  get id() {
323
323
  return e(t), o(() => e(t).id);
324
324
  },
@@ -345,10 +345,10 @@ function nt(B, a) {
345
345
  },
346
346
  $$events: { close: O, click: l }
347
347
  });
348
- }), I(() => K(x, 1, `toast-manager fixed inset-0 pointer-events-none z-notification ${T() ?? ""}`, "svelte-1hjxuh0")), f(B, x), L(a, "show", b), L(a, "success", p), L(a, "error", i), L(a, "warning", C), L(a, "info", k), L(a, "close", y), L(a, "closeAll", z), L(a, "update", Y), le(E);
348
+ }), I(() => K(k, 1, `toast-manager fixed inset-0 pointer-events-none z-notification ${T() ?? ""}`, "svelte-1hjxuh0")), f(B, k), L(a, "show", b), L(a, "success", p), L(a, "error", i), L(a, "warning", C), L(a, "info", x), L(a, "close", y), L(a, "closeAll", z), L(a, "update", Y), le(E);
349
349
  }
350
350
  export {
351
351
  et as N,
352
- nt as T,
352
+ rt as T,
353
353
  tt as a
354
354
  };