zabi-components 2.0.3 → 2.1.1

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.
@@ -0,0 +1,593 @@
1
+ import { l as k, p as s, z as A, A as W, i as V, f as b, b as j, a as S, q as de, e as ee, c as i, d as q, g as D, x as B, k as t, j as X, m as I, h as v, o as R, t as T, v as Z, n as Y, w as G, u as ne, B as ve, r as fe, s as H, C as L, D as O, E as me } from "./props-B4BdFk2B.js";
2
+ import { a as ge, e as he } from "./Checkbox-Dwvh3lCd.js";
3
+ import "svelte";
4
+ var pe = b('<label class="block text-sm font-medium text-gray-700 mb-1"> </label>'), _e = b("<option disabled> </option>"), xe = b("<option> </option>"), ye = b("<div><!> <select><!><!></select></div>");
5
+ function Ue(z, e) {
6
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, [
7
+ "value",
8
+ "options",
9
+ "placeholder",
10
+ "label",
11
+ "disabled",
12
+ "size"
13
+ ]);
14
+ D(e, !1);
15
+ const l = I(), o = I();
16
+ let a = s(e, "value", 12, void 0), r = s(e, "options", 24, () => []), f = s(e, "placeholder", 8, "Select an option"), h = s(e, "label", 8, ""), y = s(e, "disabled", 8, !1), x = s(e, "size", 8, "md");
17
+ const p = `select-${Math.random().toString(36).substr(2, 9)}`;
18
+ function m(w) {
19
+ const c = w.target;
20
+ a(c.value);
21
+ }
22
+ A(() => {
23
+ }, () => {
24
+ R(l, {
25
+ sm: "px-3 py-1.5 text-sm",
26
+ md: "px-4 py-2 text-sm",
27
+ lg: "px-5 py-3 text-base"
28
+ });
29
+ }), A(() => (t(l), B(x())), () => {
30
+ R(o, [
31
+ "w-full border border-gray-300 rounded-md bg-white",
32
+ "focus:ring-2 focus:ring-blue-500 focus:border-blue-500",
33
+ "disabled:opacity-50 disabled:cursor-not-allowed",
34
+ t(l)[x()]
35
+ ].join(" "));
36
+ }), W(), V();
37
+ var n = ye(), d = v(n);
38
+ {
39
+ var g = (w) => {
40
+ var c = pe(), N = v(c);
41
+ T(() => {
42
+ Z(c, "for", p), Y(N, h());
43
+ }), i(w, c);
44
+ };
45
+ j(d, (w) => {
46
+ h() && w(g);
47
+ });
48
+ }
49
+ var _ = X(d, 2);
50
+ S(_, () => ({
51
+ id: p,
52
+ value: a(),
53
+ disabled: y(),
54
+ class: t(o),
55
+ ...u
56
+ }));
57
+ var $ = v(_);
58
+ {
59
+ var P = (w) => {
60
+ var c = _e(), N = v(c);
61
+ c.value = c.__value = "", T(() => Y(N, f())), i(w, c);
62
+ };
63
+ j($, (w) => {
64
+ f() && !a() && w(P);
65
+ });
66
+ }
67
+ var M = X($);
68
+ de(M, 1, r, (w) => w.value, (w, c) => {
69
+ var N = xe(), E = v(N), F = {};
70
+ T(() => {
71
+ N.disabled = (t(c), G(() => t(c).disabled)), Y(E, (t(c), G(() => t(c).label))), F !== (F = (t(c), G(() => t(c).value))) && (N.value = (N.__value = (t(c), G(() => t(c).value))) ?? "");
72
+ }), i(w, N);
73
+ }), ee("change", _, m), i(z, n), q();
74
+ }
75
+ var we = b('<span class="text-sm font-medium text-gray-700"> </span>'), ze = b('<div class="flex items-center gap-3"><button><span></span></button> <!></div>');
76
+ function We(z, e) {
77
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["checked", "disabled", "label"]);
78
+ D(e, !1);
79
+ const l = I(), o = I();
80
+ let a = s(e, "checked", 12, !1), r = s(e, "disabled", 8, !1), f = s(e, "label", 8, "");
81
+ function h(d) {
82
+ r() || a(!a());
83
+ }
84
+ A(() => (B(a()), B(r())), () => {
85
+ R(l, [
86
+ "relative inline-flex w-11 h-6 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent",
87
+ "transition-colors duration-200 ease-in-out",
88
+ "focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
89
+ a() ? "bg-blue-600" : "bg-gray-200",
90
+ r() ? "opacity-50 cursor-not-allowed" : ""
91
+ ].join(" "));
92
+ }), A(() => B(a()), () => {
93
+ R(o, [
94
+ "pointer-events-none inline-block w-5 h-5 transform rounded-full bg-white shadow-lg",
95
+ "transition duration-200 ease-in-out",
96
+ a() ? "translate-x-5" : "translate-x-0"
97
+ ].join(" "));
98
+ }), W(), V();
99
+ var y = ze(), x = v(y);
100
+ S(x, () => ({
101
+ type: "button",
102
+ role: "switch",
103
+ "aria-checked": a(),
104
+ "aria-label": f() || "Toggle",
105
+ disabled: r(),
106
+ class: t(l),
107
+ ...u
108
+ }));
109
+ var p = v(x), m = X(x, 2);
110
+ {
111
+ var n = (d) => {
112
+ var g = we(), _ = v(g);
113
+ T(() => Y(_, f())), i(d, g);
114
+ };
115
+ j(m, (d) => {
116
+ f() && d(n);
117
+ });
118
+ }
119
+ T(() => ne(p, 1, ve(t(o)))), ee("click", x, h), i(z, y), q();
120
+ }
121
+ var ke = b('<label class="block text-sm font-medium text-gray-700"> </label>'), Ce = b('<span class="text-white text-lg">✓</span>'), $e = b("<button><!></button>"), Pe = b('<div class="space-y-2"><!> <div></div></div>');
122
+ function Ze(z, e) {
123
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["value", "label", "disabled"]);
124
+ D(e, !1);
125
+ let l = s(e, "value", 12, ""), o = s(e, "label", 8, ""), a = s(e, "disabled", 8, !1);
126
+ const r = [
127
+ { label: "Red", value: "#ef4444" },
128
+ { label: "Blue", value: "#3b82f6" },
129
+ { label: "Green", value: "#10b981" },
130
+ { label: "Yellow", value: "#f59e0b" },
131
+ { label: "Purple", value: "#8b5cf6" },
132
+ { label: "Pink", value: "#ec4899" },
133
+ { label: "Gray", value: "#6b7280" },
134
+ { label: "Black", value: "#000000" }
135
+ ], f = `color-picker-${Math.random().toString(36).substr(2, 9)}`;
136
+ V();
137
+ var h = Pe(), y = v(h);
138
+ {
139
+ var x = (m) => {
140
+ var n = ke(), d = v(n);
141
+ T(() => {
142
+ Z(n, "for", f), Y(d, o());
143
+ }), i(m, n);
144
+ };
145
+ j(y, (m) => {
146
+ o() && m(x);
147
+ });
148
+ }
149
+ var p = X(y, 2);
150
+ S(p, () => ({
151
+ id: f,
152
+ class: "grid grid-cols-4 gap-2",
153
+ role: "radiogroup",
154
+ ...u
155
+ })), de(p, 5, () => r, fe, (m, n) => {
156
+ var d = $e();
157
+ S(d, () => ({
158
+ type: "button",
159
+ class: `w-12 h-12 rounded-lg border-2 transition-all ${B(l()), t(n), G(() => l() === t(n).value ? "border-blue-500 ring-2 ring-blue-200" : "border-gray-300 hover:border-gray-400") ?? ""}`,
160
+ style: `background-color: ${t(n), G(() => t(n).value) ?? ""};`,
161
+ disabled: a(),
162
+ role: "radio",
163
+ "aria-checked": (B(l()), t(n), G(() => l() === t(n).value)),
164
+ "aria-label": (t(n), G(() => t(n).label)),
165
+ ...u
166
+ }));
167
+ var g = v(d);
168
+ {
169
+ var _ = ($) => {
170
+ var P = Ce();
171
+ i($, P);
172
+ };
173
+ j(g, ($) => {
174
+ B(l()), t(n), G(() => l() === t(n).value) && $(_);
175
+ });
176
+ }
177
+ ee("click", d, () => l(t(n).value)), i(m, d);
178
+ }), i(z, h), q();
179
+ }
180
+ var je = b('<img class="w-full h-48 object-cover rounded-md mb-4"/>'), Se = b("<h3> </h3>"), Te = b("<div><!> <!> <!></div>");
181
+ function et(z, e) {
182
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["title", "image", "interactive", "variant", "size"]);
183
+ D(e, !1);
184
+ const l = I(), o = I(), a = I(), r = I();
185
+ let f = s(e, "title", 8, ""), h = s(e, "image", 8, ""), y = s(e, "interactive", 8, !1), x = s(e, "variant", 8, "default"), p = s(e, "size", 8, "md");
186
+ A(() => {
187
+ }, () => {
188
+ R(l, { sm: "p-3", md: "p-4", lg: "p-6" });
189
+ }), A(() => B(x()), () => {
190
+ R(o, ge(x()));
191
+ }), A(
192
+ () => (B(y()), t(l), B(p()), t(o)),
193
+ () => {
194
+ R(a, [
195
+ "rounded-lg transition-all duration-200",
196
+ "hover:shadow-adaptive-md",
197
+ y() ? "cursor-pointer hover:scale-[1.02]" : "",
198
+ t(l)[p()],
199
+ t(o)
200
+ ].join(" "));
201
+ }
202
+ ), A(() => {
203
+ }, () => {
204
+ R(r, "text-lg font-semibold mb-2 text-primary");
205
+ }), W(), V();
206
+ var m = Te();
207
+ S(m, () => ({ class: t(a), ...u }));
208
+ var n = v(m);
209
+ {
210
+ var d = (P) => {
211
+ var M = je();
212
+ T(() => {
213
+ Z(M, "src", h()), Z(M, "alt", f());
214
+ }), i(P, M);
215
+ };
216
+ j(n, (P) => {
217
+ h() && P(d);
218
+ });
219
+ }
220
+ var g = X(n, 2);
221
+ {
222
+ var _ = (P) => {
223
+ var M = Se(), w = v(M);
224
+ T(() => {
225
+ ne(M, 1, ve(t(r))), Y(w, f());
226
+ }), i(P, M);
227
+ };
228
+ j(g, (P) => {
229
+ f() && P(_);
230
+ });
231
+ }
232
+ var $ = X(g, 2);
233
+ H($, e, "default", {}), i(z, m), q();
234
+ }
235
+ var Be = b('<button><!> <span class="ml-1 text-xs">×</span></button>'), Me = b("<span><!></span>");
236
+ function tt(z, e) {
237
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["variant", "size", "closable"]);
238
+ D(e, !1);
239
+ const l = I(), o = I(), a = I();
240
+ let r = s(e, "variant", 8, "default"), f = s(e, "size", 8, "md"), h = s(e, "closable", 8, !1);
241
+ function y(d) {
242
+ d.stopPropagation();
243
+ }
244
+ A(() => {
245
+ }, () => {
246
+ R(l, {
247
+ sm: "px-2 py-0.5 text-xs",
248
+ md: "px-3 py-1 text-sm",
249
+ lg: "px-4 py-1.5 text-base"
250
+ });
251
+ }), A(() => {
252
+ }, () => {
253
+ R(o, {
254
+ default: "bg-gray-100 text-gray-800 border-gray-300",
255
+ success: "bg-green-100 text-green-800 border-green-300",
256
+ warning: "bg-yellow-100 text-yellow-800 border-yellow-300",
257
+ error: "bg-red-100 text-red-800 border-red-300",
258
+ info: "bg-blue-100 text-blue-800 border-blue-300"
259
+ });
260
+ }), A(
261
+ () => (t(l), B(f()), t(o), B(r()), B(h())),
262
+ () => {
263
+ R(a, [
264
+ "inline-flex items-center gap-1 font-medium border rounded-md",
265
+ t(l)[f()],
266
+ t(o)[r()],
267
+ h() ? "cursor-pointer hover:opacity-80" : ""
268
+ ].join(" "));
269
+ }
270
+ ), W(), V();
271
+ var x = L(), p = O(x);
272
+ {
273
+ var m = (d) => {
274
+ var g = Be();
275
+ S(g, () => ({ type: "button", class: t(a), ...u }));
276
+ var _ = v(g);
277
+ H(_, e, "default", {}), ee("click", g, y), i(d, g);
278
+ }, n = (d) => {
279
+ var g = Me();
280
+ S(g, () => ({ class: t(a), ...u }));
281
+ var _ = v(g);
282
+ H(_, e, "default", {}), i(d, g);
283
+ };
284
+ j(p, (d) => {
285
+ h() ? d(m) : d(n, !1);
286
+ });
287
+ }
288
+ i(z, x), q();
289
+ }
290
+ var Ne = b("<h1> <!></h1>"), Xe = b("<h2> <!></h2>"), Ye = b("<h3> <!></h3>"), Ie = b("<h4> <!></h4>"), Re = b("<h5> <!></h5>"), Ae = b("<h6> <!></h6>");
291
+ function at(z, e) {
292
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["level", "text"]);
293
+ D(e, !1);
294
+ const l = I(), o = I();
295
+ let a = s(e, "level", 8, 1), r = s(e, "text", 8, "");
296
+ A(() => {
297
+ }, () => {
298
+ R(l, {
299
+ 1: "text-4xl font-bold",
300
+ 2: "text-3xl font-bold",
301
+ 3: "text-2xl font-semibold",
302
+ 4: "text-xl font-semibold",
303
+ 5: "text-lg font-medium",
304
+ 6: "text-base font-medium"
305
+ });
306
+ }), A(() => (t(l), B(a())), () => {
307
+ R(o, ["text-gray-900", t(l)[a()]].join(" "));
308
+ }), W(), V();
309
+ var f = L(), h = O(f);
310
+ {
311
+ var y = (p) => {
312
+ var m = Ne();
313
+ S(m, () => ({ class: t(o), ...u }));
314
+ var n = v(m), d = X(n);
315
+ H(d, e, "default", {}), T(() => Y(n, r())), i(p, m);
316
+ }, x = (p) => {
317
+ var m = L(), n = O(m);
318
+ {
319
+ var d = (_) => {
320
+ var $ = Xe();
321
+ S($, () => ({ class: t(o), ...u }));
322
+ var P = v($), M = X(P);
323
+ H(M, e, "default", {}), T(() => Y(P, r())), i(_, $);
324
+ }, g = (_) => {
325
+ var $ = L(), P = O($);
326
+ {
327
+ var M = (c) => {
328
+ var N = Ye();
329
+ S(N, () => ({ class: t(o), ...u }));
330
+ var E = v(N), F = X(E);
331
+ H(F, e, "default", {}), T(() => Y(E, r())), i(c, N);
332
+ }, w = (c) => {
333
+ var N = L(), E = O(N);
334
+ {
335
+ var F = (J) => {
336
+ var K = Ie();
337
+ S(K, () => ({ class: t(o), ...u }));
338
+ var te = v(K), le = X(te);
339
+ H(le, e, "default", {}), T(() => Y(te, r())), i(J, K);
340
+ }, ce = (J) => {
341
+ var K = L(), te = O(K);
342
+ {
343
+ var le = (Q) => {
344
+ var U = Re();
345
+ S(U, () => ({ class: t(o), ...u }));
346
+ var ae = v(U), se = X(ae);
347
+ H(se, e, "default", {}), T(() => Y(ae, r())), i(Q, U);
348
+ }, be = (Q) => {
349
+ var U = L(), ae = O(U);
350
+ {
351
+ var se = (re) => {
352
+ var oe = Ae();
353
+ S(oe, () => ({ class: t(o), ...u }));
354
+ var ie = v(oe), ue = X(ie);
355
+ H(ue, e, "default", {}), T(() => Y(ie, r())), i(re, oe);
356
+ };
357
+ j(
358
+ ae,
359
+ (re) => {
360
+ a() === 6 && re(se);
361
+ },
362
+ !0
363
+ );
364
+ }
365
+ i(Q, U);
366
+ };
367
+ j(
368
+ te,
369
+ (Q) => {
370
+ a() === 5 ? Q(le) : Q(be, !1);
371
+ },
372
+ !0
373
+ );
374
+ }
375
+ i(J, K);
376
+ };
377
+ j(
378
+ E,
379
+ (J) => {
380
+ a() === 4 ? J(F) : J(ce, !1);
381
+ },
382
+ !0
383
+ );
384
+ }
385
+ i(c, N);
386
+ };
387
+ j(
388
+ P,
389
+ (c) => {
390
+ a() === 3 ? c(M) : c(w, !1);
391
+ },
392
+ !0
393
+ );
394
+ }
395
+ i(_, $);
396
+ };
397
+ j(
398
+ n,
399
+ (_) => {
400
+ a() === 2 ? _(d) : _(g, !1);
401
+ },
402
+ !0
403
+ );
404
+ }
405
+ i(p, m);
406
+ };
407
+ j(h, (p) => {
408
+ a() === 1 ? p(y) : p(x, !1);
409
+ });
410
+ }
411
+ i(z, f), q();
412
+ }
413
+ var Ge = b('<div class="flex justify-between items-center mb-2"><label class="text-sm font-medium text-gray-700"> </label> <span class="text-sm text-gray-500"> </span></div>'), He = b('<div><!> <div><div class="h-full bg-blue-600 rounded-full"></div></div></div>');
414
+ function lt(z, e) {
415
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["value", "max", "size", "label"]);
416
+ D(e, !1);
417
+ const l = I(), o = I();
418
+ let a = s(e, "value", 8, 0), r = s(e, "max", 8, 100), f = s(e, "size", 8, "md"), h = s(e, "label", 8, "");
419
+ const y = `progress-${Math.random().toString(36).substr(2, 9)}`;
420
+ A(() => (B(a()), B(r())), () => {
421
+ R(l, Math.min(Math.max(a() / r() * 100, 0), 100));
422
+ }), A(() => {
423
+ }, () => {
424
+ R(o, { sm: "h-1", md: "h-2", lg: "h-3" });
425
+ }), W(), V();
426
+ var x = He(), p = v(x);
427
+ {
428
+ var m = (g) => {
429
+ var _ = Ge(), $ = v(_), P = v($), M = X($, 2), w = v(M);
430
+ T(
431
+ (c) => {
432
+ Z($, "for", y), Y(P, h()), Y(w, `${c ?? ""}%`);
433
+ },
434
+ [
435
+ () => (t(l), G(() => Math.round(t(l))))
436
+ ]
437
+ ), i(g, _);
438
+ };
439
+ j(p, (g) => {
440
+ h() && g(m);
441
+ });
442
+ }
443
+ var n = X(p, 2);
444
+ S(n, () => ({
445
+ id: y,
446
+ class: `w-full bg-gray-200 rounded-full overflow-hidden ${t(o), B(f()), G(() => t(o)[f()]) ?? ""}`,
447
+ role: "progressbar",
448
+ "aria-valuenow": a(),
449
+ "aria-valuemin": "0",
450
+ "aria-valuemax": r(),
451
+ ...u
452
+ }));
453
+ var d = v(n);
454
+ T(() => me(d, `width: ${t(l) ?? ""}%`)), i(z, x), q();
455
+ }
456
+ var Le = b("<div></div>");
457
+ function st(z, e) {
458
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["width", "height", "className"]);
459
+ let l = s(e, "width", 8, "100%"), o = s(e, "height", 8, "1rem"), a = s(e, "className", 8, "");
460
+ var r = Le();
461
+ S(r, () => ({
462
+ class: `animate-pulse bg-gray-200 rounded ${a() ?? ""}`,
463
+ style: `width: ${l() ?? ""}; height: ${o() ?? ""};`,
464
+ ...u
465
+ })), i(z, r);
466
+ }
467
+ var Oe = b('<button type="button" class="ml-3 text-gray-400 hover:text-gray-600" aria-label="Close notification">×</button>'), Ve = b('<div><div class="flex items-start"><div class="flex-1"><p> </p></div> <!></div></div>');
468
+ function rt(z, e) {
469
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["message", "type", "closable"]);
470
+ let l = s(e, "message", 8, ""), o = s(e, "type", 8, "info"), a = s(e, "closable", 8, !0), r = I(!0);
471
+ const f = {
472
+ success: "bg-green-100 border-green-300 text-green-800",
473
+ error: "bg-red-100 border-red-300 text-red-800",
474
+ warning: "bg-yellow-100 border-yellow-300 text-yellow-800",
475
+ info: "bg-blue-100 border-blue-300 text-blue-800"
476
+ };
477
+ function h() {
478
+ R(r, !1);
479
+ }
480
+ var y = L(), x = O(y);
481
+ {
482
+ var p = (m) => {
483
+ var n = Ve();
484
+ S(n, () => ({
485
+ class: "fixed top-4 right-4 max-w-sm w-full bg-white border rounded-lg shadow-lg p-4 z-50",
486
+ role: "alert",
487
+ ...u
488
+ }));
489
+ var d = v(n), g = v(d), _ = v(g), $ = v(_), P = X(g, 2);
490
+ {
491
+ var M = (w) => {
492
+ var c = Oe();
493
+ ee("click", c, h), i(w, c);
494
+ };
495
+ j(P, (w) => {
496
+ a() && w(M);
497
+ });
498
+ }
499
+ T(() => {
500
+ ne(_, 1, `text-sm ${B(o()), G(() => f[o()]) ?? ""}`), Y($, l());
501
+ }), i(m, n);
502
+ };
503
+ j(x, (m) => {
504
+ t(r) && m(p);
505
+ });
506
+ }
507
+ i(z, y);
508
+ }
509
+ var qe = b('<div class="tooltip group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-13nzt82"> </div>'), De = b("<div><!> <!></div>");
510
+ const Ee = {
511
+ hash: "svelte-13nzt82",
512
+ code: `.tooltip-container.svelte-13nzt82 {position:relative;display:inline-block;}.tooltip.svelte-13nzt82 {position:absolute;z-index:50;padding:0.5rem 0.75rem;background-color:#1f2937;color:white;border-radius:0.375rem;font-size:0.875rem;line-height:1.25rem;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
513
+ visibility 0.2s ease-in-out;pointer-events:none;max-width:200px;word-wrap:break-word;white-space:normal;}
514
+
515
+ /* Top placement */.tooltip-container[data-placement="top"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82) {bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:0.5rem;}
516
+
517
+ /* Bottom placement */.tooltip-container[data-placement="bottom"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82) {top:100%;left:50%;transform:translateX(-50%);margin-top:0.5rem;}
518
+
519
+ /* Left placement */.tooltip-container[data-placement="left"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82) {right:100%;top:50%;transform:translateY(-50%);margin-right:0.5rem;}
520
+
521
+ /* Right placement */.tooltip-container[data-placement="right"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82) {left:100%;top:50%;transform:translateY(-50%);margin-left:0.5rem;}
522
+
523
+ /* Arrow styles using CSS pseudo-elements */.tooltip.svelte-13nzt82::before {content:"";position:absolute;width:0;height:0;border:4px solid transparent;}
524
+
525
+ /* Top arrow */.tooltip-container[data-placement="top"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82)::before {top:100%;left:50%;transform:translateX(-50%);border-top-color:#1f2937;}
526
+
527
+ /* Bottom arrow */.tooltip-container[data-placement="bottom"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82)::before {bottom:100%;left:50%;transform:translateX(-50%);border-bottom-color:#1f2937;}
528
+
529
+ /* Left arrow */.tooltip-container[data-placement="left"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82)::before {left:100%;top:50%;transform:translateY(-50%);border-left-color:#1f2937;}
530
+
531
+ /* Right arrow */.tooltip-container[data-placement="right"].svelte-13nzt82 .tooltip:where(.svelte-13nzt82)::before {right:100%;top:50%;transform:translateY(-50%);border-right-color:#1f2937;}
532
+
533
+ /* Responsive adjustments */
534
+ @media (max-width: 640px) {.tooltip.svelte-13nzt82 {max-width:calc(100vw - 2rem);left:50% !important;right:auto !important;transform:translateX(-50%) !important;margin:0.5rem 0 !important;}.tooltip.svelte-13nzt82::before {display:none;}
535
+ }`
536
+ };
537
+ function ot(z, e) {
538
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["content", "placement"]);
539
+ he(z, Ee);
540
+ let l = s(e, "content", 8, ""), o = s(e, "placement", 8, "top");
541
+ var a = De();
542
+ S(
543
+ a,
544
+ () => ({
545
+ class: "tooltip-container group relative inline-block",
546
+ "data-placement": o(),
547
+ ...u
548
+ }),
549
+ void 0,
550
+ void 0,
551
+ "svelte-13nzt82"
552
+ );
553
+ var r = v(a);
554
+ H(r, e, "default", {});
555
+ var f = X(r, 2);
556
+ {
557
+ var h = (y) => {
558
+ var x = qe(), p = v(x);
559
+ T(() => Y(p, l())), i(y, x);
560
+ };
561
+ j(f, (y) => {
562
+ l() && y(h);
563
+ });
564
+ }
565
+ i(z, a);
566
+ }
567
+ var Fe = b("<img/>");
568
+ function nt(z, e) {
569
+ const C = k(e, ["children", "$$slots", "$$events", "$$legacy"]), u = k(C, ["src", "alt", "width", "height", "className"]);
570
+ let l = s(e, "src", 8), o = s(e, "alt", 8, ""), a = s(e, "width", 8, "100%"), r = s(e, "height", 8, "auto"), f = s(e, "className", 8, "");
571
+ var h = Fe();
572
+ S(h, () => ({
573
+ src: l(),
574
+ alt: o(),
575
+ class: `w-full h-auto object-cover ${f() ?? ""}`,
576
+ style: `width: ${(typeof a() == "number" ? a() + "px" : a()) ?? ""}; height: ${(typeof r() == "number" ? r() + "px" : r()) ?? ""};`,
577
+ loading: "lazy",
578
+ ...u
579
+ })), i(z, h);
580
+ }
581
+ export {
582
+ tt as B,
583
+ et as C,
584
+ at as H,
585
+ nt as O,
586
+ lt as P,
587
+ Ue as S,
588
+ rt as T,
589
+ Ze as a,
590
+ st as b,
591
+ We as c,
592
+ ot as d
593
+ };
@@ -0,0 +1,42 @@
1
+ import { l as c, p as h, i as v, f as n, a as b, b as k, e as _, c as r, d as y, g as T, h as w } from "./props-B4BdFk2B.js";
2
+ import { onMount as x } from "svelte";
3
+ var D = n('<span class="text-lg">☀️</span>'), S = n('<span class="text-lg">🌙</span>'), $ = n("<button><!></button>");
4
+ function L(i, o) {
5
+ const d = c(o, ["children", "$$slots", "$$events", "$$legacy"]), m = c(d, ["isDark"]);
6
+ T(o, !1);
7
+ let t = h(o, "isDark", 12, !1);
8
+ x(() => {
9
+ const e = localStorage.getItem("theme"), a = window.matchMedia("(prefers-color-scheme: dark)").matches;
10
+ t(e === "dark" || !e && a), l();
11
+ });
12
+ function g(e) {
13
+ t(!t()), l(), localStorage.setItem("theme", t() ? "dark" : "light");
14
+ }
15
+ function l() {
16
+ t() ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
17
+ }
18
+ v();
19
+ var s = $();
20
+ b(s, () => ({
21
+ class: "w-10 h-10 bg-gray-100 hover:bg-gray-200 border border-gray-300 rounded-lg flex items-center justify-center text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500",
22
+ "aria-label": t() ? "Switch to light mode" : "Switch to dark mode",
23
+ ...m
24
+ }));
25
+ var f = w(s);
26
+ {
27
+ var p = (e) => {
28
+ var a = D();
29
+ r(e, a);
30
+ }, u = (e) => {
31
+ var a = S();
32
+ r(e, a);
33
+ };
34
+ k(f, (e) => {
35
+ t() ? e(p) : e(u, !1);
36
+ });
37
+ }
38
+ _("click", s, g), r(i, s), y();
39
+ }
40
+ export {
41
+ L as T
42
+ };
@@ -1,26 +1,21 @@
1
- import { B as s, C as o, a as t, H as r, I as n, b as i, c as g, O as l, P as m, d as T, S as p, e as c, f as d, T as x, g as f, h as C, i as I, j as u } from "../PerformanceMonitor-CZWEjSY0.js";
2
- import { B as P, C as S } from "../Card-YmnHW5Dv.js";
3
- import { T as k } from "../ThemeToggle-Dt8hE3_o.js";
1
+ import { B as s, C as o, a as r, H as t, O as T, P as g, S as l, b as m, T as p, c as d, d as i } from "../OptimizedImage-8a380fXi.js";
2
+ import { B as C, C as c, I as n, T as B } from "../Checkbox-Dwvh3lCd.js";
3
+ import { T as k } from "../ThemeToggle-Cm25ThjX.js";
4
4
  export {
5
5
  s as Badge,
6
- P as Button,
7
- S as Card,
8
- o as Checkbox,
9
- t as ColorPicker,
10
- r as Heading,
6
+ C as Button,
7
+ o as Card,
8
+ c as Checkbox,
9
+ r as ColorPicker,
10
+ t as Heading,
11
11
  n as Input,
12
- i as InputActions,
13
- g as InputValidation,
14
- l as OptimizedImage,
15
- m as PerformanceMonitor,
16
- T as Progress,
17
- p as ScaleDemo,
18
- c as Select,
19
- d as Skeleton,
20
- x as TextAlignment,
21
- f as Textarea,
12
+ T as OptimizedImage,
13
+ g as Progress,
14
+ l as Select,
15
+ m as Skeleton,
16
+ B as Textarea,
22
17
  k as ThemeToggle,
23
- C as Toast,
24
- I as Toggle,
25
- u as Tooltip
18
+ p as Toast,
19
+ d as Toggle,
20
+ i as Tooltip
26
21
  };