zabi-components 1.0.3 → 1.0.4

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,7 +1,7 @@
1
- import { a as ue, p as h, i as oe, f as _, b as ne, c as N, s as te, d as Be, t as I, e as D, g as m, h as ie, j as le, k as g, l as e, m as U, n as d, o as w, q as G, u as o, r as f, v as q, w as me, x as fe, y as re, z as be, A as Ye, B as ae, C as ve, D as Ie, E as ge, F as Se, G as L } from "./x-DpVwziig.js";
1
+ import { a as ue, p as h, i as oe, f as _, b as ne, c as N, s as te, d as Be, t as I, e as D, g as f, h as ie, j as le, k as g, l as e, m as U, n as d, o as w, q as G, u as o, r as m, v as q, w as fe, x as me, y as re, z as be, A as Ye, B as ae, C as ve, D as Ie, E as ge, F as Se, G as L } from "./x-DpVwziig.js";
2
2
  import { createEventDispatcher as he, onMount as se } from "svelte";
3
3
  import { T as Ae, a as De } from "./Toast-DXZ9gllw.js";
4
- var Fe = _('<button type="button" class="text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"> </button>'), Oe = _('<img class="h-8 w-8 svelte-1r8bk40"/>'), Pe = _('<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>'), Re = fe('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" class="svelte-1r8bk40"></path>'), qe = fe('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" class="svelte-1r8bk40"></path>'), Ge = _('<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>'), Ke = _('<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);
4
+ var Fe = _('<button type="button" class="text-xl font-bold text-primary hover:text-primary-hover transition-colors svelte-1r8bk40"> </button>'), Oe = _('<img class="h-8 w-8 svelte-1r8bk40"/>'), Pe = _('<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>'), Re = me('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" class="svelte-1r8bk40"></path>'), qe = me('<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" class="svelte-1r8bk40"></path>'), Ge = _('<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>'), Ke = _('<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);
5
5
  const Je = {
6
6
  hash: "svelte-1r8bk40",
7
7
  code: `
@@ -81,34 +81,34 @@ function et(B, a) {
81
81
  var t = He(), u = ne(t), K = d(u), O = d(K), H = d(O), V = d(H);
82
82
  {
83
83
  var W = (r) => {
84
- var v = me(), P = ne(v);
84
+ var v = fe(), P = ne(v);
85
85
  {
86
86
  var $ = (A) => {
87
87
  var E = Fe(), Q = d(E);
88
- I(() => ae(Q, s())), D("click", E, S), m(A, E);
88
+ I(() => ae(Q, s())), D("click", E, S), f(A, E);
89
89
  }, je = (A) => {
90
90
  var E = Pe(), Q = d(E);
91
91
  {
92
92
  var Ee = (R) => {
93
93
  var ee = Oe();
94
94
  I(() => {
95
- q(ee, "src", (f(s()), o(() => s().logo))), q(ee, "alt", (f(s()), o(() => s().text)));
96
- }), m(R, ee);
95
+ q(ee, "src", (m(s()), o(() => s().logo))), q(ee, "alt", (m(s()), o(() => s().text)));
96
+ }), f(R, ee);
97
97
  };
98
98
  N(Q, (R) => {
99
- f(s()), o(() => s().logo) && R(Ee);
99
+ m(s()), o(() => s().logo) && R(Ee);
100
100
  });
101
101
  }
102
102
  var Le = w(Q, 2), Ne = d(Le);
103
103
  I(() => {
104
- q(E, "href", (f(s()), o(() => s().href || "#"))), ae(Ne, (f(s()), o(() => s().text)));
105
- }), D("click", E, (R) => S(R)), m(A, E);
104
+ q(E, "href", (m(s()), o(() => s().href || "#"))), ae(Ne, (m(s()), o(() => s().text)));
105
+ }), D("click", E, (R) => S(R)), f(A, E);
106
106
  };
107
107
  N(P, (A) => {
108
108
  typeof s() == "string" ? A($) : A(je, !1);
109
109
  });
110
110
  }
111
- m(r, v);
111
+ f(r, v);
112
112
  };
113
113
  N(V, (r) => {
114
114
  s() && r(W);
@@ -131,10 +131,10 @@ function et(B, a) {
131
131
  {
132
132
  var we = (r) => {
133
133
  var v = Re();
134
- m(r, v);
134
+ f(r, v);
135
135
  }, _e = (r) => {
136
136
  var v = qe();
137
- m(r, v);
137
+ f(r, v);
138
138
  };
139
139
  N(ye, (r) => {
140
140
  e(i) ? r(we) : r(_e, !1);
@@ -144,7 +144,7 @@ function et(B, a) {
144
144
  {
145
145
  var Te = (r) => {
146
146
  var v = Ge(), P = d(v), $ = d(P);
147
- te($, a, "mobile-nav", {}, null), re(3, v, () => be, () => ({ y: -20, duration: 200 })), m(r, v);
147
+ te($, a, "mobile-nav", {}, null), re(3, v, () => be, () => ({ y: -20, duration: 200 })), f(r, v);
148
148
  };
149
149
  N(Me, (r) => {
150
150
  e(i) && r(Te);
@@ -155,7 +155,7 @@ function et(B, a) {
155
155
  {
156
156
  var ze = (r) => {
157
157
  var v = Ke();
158
- D("click", v, () => g(i, !1)), D("keydown", v, (P) => P.key === "Escape" && g(i, !1)), re(3, v, () => Ye, () => ({ duration: 200 })), m(r, v);
158
+ D("click", v, () => g(i, !1)), D("keydown", v, (P) => P.key === "Escape" && g(i, !1)), re(3, v, () => Ye, () => ({ duration: 200 })), f(r, v);
159
159
  };
160
160
  N(Ce, (r) => {
161
161
  e(i) && r(ze);
@@ -167,8 +167,8 @@ function et(B, a) {
167
167
  1,
168
168
  `
169
169
  navbar
170
- ${f(c()), o(() => Y[c()]) ?? ""}
171
- ${f(M()), o(() => z[M()]) ?? ""}
170
+ ${m(c()), o(() => Y[c()]) ?? ""}
171
+ ${m(M()), o(() => z[M()]) ?? ""}
172
172
  ${e(C) ? "backdrop-blur-sm bg-surface/95" : ""}
173
173
  transition-all duration-200
174
174
  ${b() ?? ""}
@@ -177,10 +177,10 @@ function et(B, a) {
177
177
  ), G(
178
178
  O,
179
179
  1,
180
- `flex items-center justify-between ${f(T()), o(() => y[T()]) ?? ""}`,
180
+ `flex items-center justify-between ${m(T()), o(() => y[T()]) ?? ""}`,
181
181
  "svelte-1r8bk40"
182
182
  ), q(Z, "aria-expanded", e(i));
183
- }), D("click", Z, l), m(B, t), ie();
183
+ }), D("click", Z, l), f(B, t), ie();
184
184
  }
185
185
  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>");
186
186
  function tt(B, a) {
@@ -211,14 +211,14 @@ function tt(B, a) {
211
211
  return p[l] || p.default;
212
212
  }
213
213
  function y(l) {
214
- c("remove", { id: l });
214
+ c("close");
215
215
  }
216
216
  ve(
217
- () => (f(s()), f(T())),
217
+ () => (m(s()), m(T())),
218
218
  () => {
219
219
  s().length > T() && s(s().slice(-T()));
220
220
  }
221
- ), ve(() => f(s()), () => {
221
+ ), ve(() => m(s()), () => {
222
222
  s().length > 0 && s().forEach((l) => {
223
223
  l.duration && l.duration > 0 && setTimeout(
224
224
  () => {
@@ -228,7 +228,7 @@ function tt(B, a) {
228
228
  );
229
229
  });
230
230
  }), Ie(), oe();
231
- var z = me(), Y = ne(z);
231
+ var z = fe(), Y = ne(z);
232
232
  {
233
233
  var S = (l) => {
234
234
  var j = Ue();
@@ -242,14 +242,14 @@ function tt(B, a) {
242
242
  () => Se((e(n), o(() => C(e(n).type)))),
243
243
  () => (e(n), o(() => k(e(n).type)))
244
244
  ]
245
- ), D("click", W, () => y(e(n).id)), re(3, t, () => be, () => ({ x: M().includes("right") ? 300 : -300, duration: 300 })), m(x, t);
246
- }), I(() => G(j, 1, `${f(M()), o(() => i[M()]) ?? ""} z-50 max-w-sm w-full space-y-2`)), m(l, j);
245
+ ), D("click", W, () => y(e(n).id)), re(3, t, () => be, () => ({ x: M().includes("right") ? 300 : -300, duration: 300 })), f(x, t);
246
+ }), I(() => G(j, 1, `${m(M()), o(() => i[M()]) ?? ""} z-50 max-w-sm w-full space-y-2`)), f(l, j);
247
247
  };
248
248
  N(Y, (l) => {
249
- f(s()), o(() => s().length > 0) && l(S);
249
+ m(s()), o(() => s().length > 0) && l(S);
250
250
  });
251
251
  }
252
- m(B, z), ie();
252
+ f(B, z), ie();
253
253
  }
254
254
  var Ve = _("<div></div>");
255
255
  const We = {
@@ -345,7 +345,7 @@ function nt(B, a) {
345
345
  },
346
346
  $$events: { close: S, click: l }
347
347
  });
348
- }), I(() => G(x, 1, `toast-manager fixed inset-0 pointer-events-none z-notification ${T() ?? ""}`, "svelte-1hjxuh0")), m(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), ie(j);
348
+ }), I(() => G(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), ie(j);
349
349
  }
350
350
  export {
351
351
  et as N,