zabi-components 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Navigation-BxP-osMQ.js +78 -0
- package/dist/{OptimizedImage-CWv4Xphx.js → OptimizedImage-Dio4ZB9h.js} +23 -23
- package/dist/{Textarea-B0T7x4TT.js → Textarea-DP1BihDh.js} +1 -1
- package/dist/{ThemeToggle-2HEU5v1Q.js → ThemeToggle-Cm25ThjX.js} +1 -1
- package/dist/atoms/index.js +3 -3
- package/dist/index/index.js +4 -4
- package/dist/molecules/index.js +40 -40
- package/dist/organisms/index.js +1 -1
- package/dist/{props-DyILkQVH.js → props-B4BdFk2B.js} +84 -85
- package/package.json +1 -1
- package/dist/Navigation-A1Skrbs5.js +0 -81
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { l as p, p as l, f as u, a as G, s as f, b as P, t as z, e as j, c as b, h as a, j as i, k as s, m as ea, n as H, o as ta, q as sa, r as ra, u as E, v as va, w as $, x as ia } from "./props-B4BdFk2B.js";
|
|
2
|
+
import { T as F } from "./ThemeToggle-Cm25ThjX.js";
|
|
3
|
+
var na = u('<div class="mt-2"><!></div>'), la = u('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), da = u('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
|
|
4
|
+
function _a(y, e) {
|
|
5
|
+
const k = p(e, ["children", "$$slots", "$$events", "$$legacy"]), T = p(k, ["brand", "showThemeToggle", "className"]);
|
|
6
|
+
let _ = l(e, "brand", 8, ""), x = l(e, "showThemeToggle", 8, !0), m = l(e, "className", 8, ""), d = ea(!1);
|
|
7
|
+
function o() {
|
|
8
|
+
ta(d, !s(d));
|
|
9
|
+
}
|
|
10
|
+
function g() {
|
|
11
|
+
}
|
|
12
|
+
var n = da();
|
|
13
|
+
G(n, () => ({
|
|
14
|
+
class: `bg-white border-b border-gray-200 sticky top-0 z-50 ${m() ?? ""}`,
|
|
15
|
+
...T
|
|
16
|
+
}));
|
|
17
|
+
var t = a(n), c = a(t), r = a(c), h = a(r), w = a(h), C = i(r, 2), I = a(C), J = a(I);
|
|
18
|
+
f(J, e, "nav", {});
|
|
19
|
+
var M = i(C, 2), K = a(M), q = a(K);
|
|
20
|
+
f(q, e, "actions", {});
|
|
21
|
+
var L = i(q, 2);
|
|
22
|
+
{
|
|
23
|
+
var Q = (v) => {
|
|
24
|
+
F(v, {});
|
|
25
|
+
};
|
|
26
|
+
P(L, (v) => {
|
|
27
|
+
x() && v(Q);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
var R = i(M, 2), S = a(R), U = i(c, 2);
|
|
31
|
+
{
|
|
32
|
+
var V = (v) => {
|
|
33
|
+
var B = la(), W = a(B), D = a(W);
|
|
34
|
+
f(D, e, "nav", {});
|
|
35
|
+
var X = i(D, 2), O = a(X);
|
|
36
|
+
f(O, e, "actions", {});
|
|
37
|
+
var Y = i(O, 2);
|
|
38
|
+
{
|
|
39
|
+
var Z = (N) => {
|
|
40
|
+
var A = na(), aa = a(A);
|
|
41
|
+
F(aa, {}), b(N, A);
|
|
42
|
+
};
|
|
43
|
+
P(Y, (N) => {
|
|
44
|
+
x() && N(Z);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
b(v, B);
|
|
48
|
+
};
|
|
49
|
+
P(U, (v) => {
|
|
50
|
+
s(d) && v(V);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
z(() => H(w, _())), j("click", h, g), j("click", S, o), b(y, n);
|
|
54
|
+
}
|
|
55
|
+
var oa = u("<li><a> </a></li>"), ca = u("<nav><ul></ul></nav>");
|
|
56
|
+
function xa(y, e) {
|
|
57
|
+
const k = p(e, ["children", "$$slots", "$$events", "$$legacy"]), T = p(k, ["variant", "items", "currentPath"]);
|
|
58
|
+
let _ = l(e, "variant", 8, "header"), x = l(e, "items", 24, () => []), m = l(e, "currentPath", 8, "");
|
|
59
|
+
function d(n, t) {
|
|
60
|
+
t.preventDefault();
|
|
61
|
+
}
|
|
62
|
+
var o = ca();
|
|
63
|
+
G(o, () => ({
|
|
64
|
+
class: `navigation navigation-${_() ?? ""}`,
|
|
65
|
+
...T
|
|
66
|
+
}));
|
|
67
|
+
var g = a(o);
|
|
68
|
+
sa(g, 5, x, ra, (n, t) => {
|
|
69
|
+
var c = oa(), r = a(c), h = a(r);
|
|
70
|
+
z(() => {
|
|
71
|
+
va(r, "href", (s(t), $(() => s(t).href))), E(r, 1, `px-3 py-2 text-sm font-medium rounded-md transition-colors ${ia(m()), s(t), $(() => m() === s(t).href ? "bg-blue-100 text-blue-700" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100") ?? ""}`), H(h, (s(t), $(() => s(t).label)));
|
|
72
|
+
}), j("click", r, (w) => d(s(t), w)), b(n, c);
|
|
73
|
+
}), z(() => E(g, 1, `flex ${_() === "sidebar" ? "flex-col space-y-2" : "space-x-6"}`)), b(y, o);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
_a as N,
|
|
77
|
+
xa as a
|
|
78
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as C, p as s, o as k,
|
|
2
|
-
import { a as ge, e as he } from "./Textarea-
|
|
1
|
+
import { l as C, p as s, o as k, z as R, A as W, i as O, f, b as T, a as B, q as de, e as ee, c as i, d as V, g as q, m as S, x as N, k as t, j as D, h as v, t as M, v as Z, n as I, w as A, u as ne, B as ve, r as ue, s as G, C as H, D as L, E as me } from "./props-B4BdFk2B.js";
|
|
2
|
+
import { a as ge, e as he } from "./Textarea-DP1BihDh.js";
|
|
3
3
|
import "svelte";
|
|
4
4
|
var pe = f('<label class="block text-sm font-medium text-gray-700 mb-1"> </label>'), _e = f("<option disabled> </option>"), xe = f("<option> </option>"), ye = f("<div><!> <select><!><!></select></div>");
|
|
5
5
|
function Ue(z, e) {
|
|
@@ -11,7 +11,7 @@ function Ue(z, e) {
|
|
|
11
11
|
"disabled",
|
|
12
12
|
"size"
|
|
13
13
|
]);
|
|
14
|
-
|
|
14
|
+
q(e, !1);
|
|
15
15
|
const l = S(), o = S();
|
|
16
16
|
let a = s(e, "value", 12, void 0), r = s(e, "options", 24, () => []), b = s(e, "placeholder", 8, "Select an option"), p = s(e, "label", 8, ""), _ = s(e, "disabled", 8, !1), y = s(e, "size", 8, "md"), m = S();
|
|
17
17
|
typeof window < "u" ? k(m, `select-${Math.random().toString(36).substr(2, 9)}`) : k(m, `select-ssr-${Date.now()}`);
|
|
@@ -66,16 +66,16 @@ function Ue(z, e) {
|
|
|
66
66
|
}
|
|
67
67
|
var X = D(P);
|
|
68
68
|
de(X, 1, r, (w) => w.value, (w, c) => {
|
|
69
|
-
var Y = xe(),
|
|
69
|
+
var Y = xe(), E = v(Y), F = {};
|
|
70
70
|
M(() => {
|
|
71
|
-
Y.disabled = (t(c), A(() => t(c).disabled)), I(
|
|
71
|
+
Y.disabled = (t(c), A(() => t(c).disabled)), I(E, (t(c), A(() => t(c).label))), F !== (F = (t(c), A(() => t(c).value))) && (Y.value = (Y.__value = (t(c), A(() => t(c).value))) ?? "");
|
|
72
72
|
}), i(w, Y);
|
|
73
73
|
}), ee("change", x, g), i(z, n), V();
|
|
74
74
|
}
|
|
75
75
|
var we = f('<span class="text-sm font-medium text-gray-700"> </span>'), ze = f('<div class="flex items-center gap-3"><button><span></span></button> <!></div>');
|
|
76
76
|
function We(z, e) {
|
|
77
77
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["checked", "disabled", "label"]);
|
|
78
|
-
|
|
78
|
+
q(e, !1);
|
|
79
79
|
const l = S(), o = S();
|
|
80
80
|
let a = s(e, "checked", 12, !1), r = s(e, "disabled", 8, !1), b = s(e, "label", 8, "");
|
|
81
81
|
function p(d) {
|
|
@@ -121,7 +121,7 @@ function We(z, e) {
|
|
|
121
121
|
var ke = f('<label class="block text-sm font-medium text-gray-700"> </label>'), Ce = f('<span class="text-white text-lg">✓</span>'), $e = f("<button><!></button>"), Pe = f('<div class="space-y-2"><!> <div></div></div>');
|
|
122
122
|
function Ze(z, e) {
|
|
123
123
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "label", "disabled"]);
|
|
124
|
-
|
|
124
|
+
q(e, !1);
|
|
125
125
|
let l = s(e, "value", 12, ""), o = s(e, "label", 8, ""), a = s(e, "disabled", 8, !1);
|
|
126
126
|
const r = [
|
|
127
127
|
{ label: "Red", value: "#ef4444" },
|
|
@@ -181,7 +181,7 @@ function Ze(z, e) {
|
|
|
181
181
|
var je = f('<img class="w-full h-48 object-cover rounded-md mb-4"/>'), Se = f("<h3> </h3>"), Te = f("<div><!> <!> <!></div>");
|
|
182
182
|
function et(z, e) {
|
|
183
183
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["title", "image", "interactive", "variant", "size"]);
|
|
184
|
-
|
|
184
|
+
q(e, !1);
|
|
185
185
|
const l = S(), o = S(), a = S(), r = S();
|
|
186
186
|
let b = s(e, "title", 8, ""), p = s(e, "image", 8, ""), _ = s(e, "interactive", 8, !1), y = s(e, "variant", 8, "default"), m = s(e, "size", 8, "md");
|
|
187
187
|
R(() => {
|
|
@@ -236,7 +236,7 @@ function et(z, e) {
|
|
|
236
236
|
var Be = f('<button><!> <span class="ml-1 text-xs">×</span></button>'), Me = f("<span><!></span>");
|
|
237
237
|
function tt(z, e) {
|
|
238
238
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["variant", "size", "closable"]);
|
|
239
|
-
|
|
239
|
+
q(e, !1);
|
|
240
240
|
const l = S(), o = S(), a = S();
|
|
241
241
|
let r = s(e, "variant", 8, "default"), b = s(e, "size", 8, "md"), p = s(e, "closable", 8, !1);
|
|
242
242
|
function _(d) {
|
|
@@ -291,7 +291,7 @@ function tt(z, e) {
|
|
|
291
291
|
var Ne = f("<h1> <!></h1>"), Xe = f("<h2> <!></h2>"), Ye = f("<h3> <!></h3>"), De = f("<h4> <!></h4>"), Ie = f("<h5> <!></h5>"), Re = f("<h6> <!></h6>");
|
|
292
292
|
function at(z, e) {
|
|
293
293
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["level", "text"]);
|
|
294
|
-
|
|
294
|
+
q(e, !1);
|
|
295
295
|
const l = S(), o = S();
|
|
296
296
|
let a = s(e, "level", 8, 1), r = s(e, "text", 8, "");
|
|
297
297
|
R(() => {
|
|
@@ -328,12 +328,12 @@ function at(z, e) {
|
|
|
328
328
|
var X = (c) => {
|
|
329
329
|
var Y = Ye();
|
|
330
330
|
B(Y, () => ({ class: t(o), ...u }));
|
|
331
|
-
var
|
|
332
|
-
G(
|
|
331
|
+
var E = v(Y), F = D(E);
|
|
332
|
+
G(F, e, "default", {}), M(() => I(E, r())), i(c, Y);
|
|
333
333
|
}, w = (c) => {
|
|
334
|
-
var Y = H(),
|
|
334
|
+
var Y = H(), E = L(Y);
|
|
335
335
|
{
|
|
336
|
-
var
|
|
336
|
+
var F = (J) => {
|
|
337
337
|
var K = De();
|
|
338
338
|
B(K, () => ({ class: t(o), ...u }));
|
|
339
339
|
var te = v(K), le = D(te);
|
|
@@ -376,9 +376,9 @@ function at(z, e) {
|
|
|
376
376
|
i(J, K);
|
|
377
377
|
};
|
|
378
378
|
T(
|
|
379
|
-
|
|
379
|
+
E,
|
|
380
380
|
(J) => {
|
|
381
|
-
a() === 4 ? J(
|
|
381
|
+
a() === 4 ? J(F) : J(ce, !1);
|
|
382
382
|
},
|
|
383
383
|
!0
|
|
384
384
|
);
|
|
@@ -414,7 +414,7 @@ function at(z, e) {
|
|
|
414
414
|
var Ae = f('<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>'), Ge = f('<div><!> <div><div class="h-full bg-blue-600 rounded-full"></div></div></div>');
|
|
415
415
|
function lt(z, e) {
|
|
416
416
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "max", "size", "label"]);
|
|
417
|
-
|
|
417
|
+
q(e, !1);
|
|
418
418
|
const l = S(), o = S();
|
|
419
419
|
let a = s(e, "value", 8, 0), r = s(e, "max", 8, 100), b = s(e, "size", 8, "md"), p = s(e, "label", 8, ""), _ = S();
|
|
420
420
|
typeof window < "u" ? k(_, `progress-${Math.random().toString(36).substr(2, 9)}`) : k(_, `progress-ssr-${Date.now()}`), R(() => (N(a()), N(r())), () => {
|
|
@@ -506,8 +506,8 @@ function rt(z, e) {
|
|
|
506
506
|
}
|
|
507
507
|
i(z, _);
|
|
508
508
|
}
|
|
509
|
-
var Ve = f('<div class="tooltip group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-13nzt82"> </div>'),
|
|
510
|
-
const
|
|
509
|
+
var Ve = f('<div class="tooltip group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-13nzt82"> </div>'), qe = f("<div><!> <!></div>");
|
|
510
|
+
const Ee = {
|
|
511
511
|
hash: "svelte-13nzt82",
|
|
512
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
513
|
visibility 0.2s ease-in-out;pointer-events:none;max-width:200px;word-wrap:break-word;white-space:normal;}
|
|
@@ -536,9 +536,9 @@ const Fe = {
|
|
|
536
536
|
};
|
|
537
537
|
function ot(z, e) {
|
|
538
538
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["content", "placement"]);
|
|
539
|
-
he(z,
|
|
539
|
+
he(z, Ee);
|
|
540
540
|
let l = s(e, "content", 8, ""), o = s(e, "placement", 8, "top");
|
|
541
|
-
var a =
|
|
541
|
+
var a = qe();
|
|
542
542
|
B(
|
|
543
543
|
a,
|
|
544
544
|
() => ({
|
|
@@ -564,11 +564,11 @@ function ot(z, e) {
|
|
|
564
564
|
}
|
|
565
565
|
i(z, a);
|
|
566
566
|
}
|
|
567
|
-
var
|
|
567
|
+
var Fe = f("<img/>");
|
|
568
568
|
function nt(z, e) {
|
|
569
569
|
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["src", "alt", "width", "height", "className"]);
|
|
570
570
|
let l = s(e, "src", 8), o = s(e, "alt", 8, ""), a = s(e, "width", 8, "100%"), r = s(e, "height", 8, "auto"), b = s(e, "className", 8, "");
|
|
571
|
-
var p =
|
|
571
|
+
var p = Fe();
|
|
572
572
|
B(p, () => ({
|
|
573
573
|
src: l(),
|
|
574
574
|
alt: o(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as W, l as C, p as s, z as f, A, i as T, f as B, a as q, s as X, c as V, d as E, g as R, x as y, k as t, m as o, h as k, o as i, b as F, e as G, j as H, t as J, v as K, u as L, B as O, n as Q } from "./props-B4BdFk2B.js";
|
|
2
2
|
function se(a, e) {
|
|
3
3
|
W(() => {
|
|
4
4
|
var r = a.getRootNode(), d = (
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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
2
|
import { onMount as x } from "svelte";
|
|
3
3
|
var D = n('<span class="text-lg">☀️</span>'), S = n('<span class="text-lg">🌙</span>'), $ = n("<button><!></button>");
|
|
4
4
|
function L(i, o) {
|
package/dist/atoms/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
import { B as x, I as B, T as c } from "../Textarea-
|
|
3
|
-
import { T as C } from "../ThemeToggle-
|
|
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-Dio4ZB9h.js";
|
|
2
|
+
import { B as x, I as B, T as c } from "../Textarea-DP1BihDh.js";
|
|
3
|
+
import { T as C } from "../ThemeToggle-Cm25ThjX.js";
|
|
4
4
|
export {
|
|
5
5
|
s as Badge,
|
|
6
6
|
x as Button,
|
package/dist/index/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as d, I as g, T as m, d as c, c as p, a as u, g as f, b as C } from "../Textarea-
|
|
2
|
-
import { B as x, C as b, a as I, H as w, O as B, P as D, S, b as V, T as $, c as F, d as v } from "../OptimizedImage-
|
|
3
|
-
import { T as N } from "../ThemeToggle-
|
|
1
|
+
import { B as d, I as g, T as m, d as c, c as p, a as u, g as f, b as C } from "../Textarea-DP1BihDh.js";
|
|
2
|
+
import { B as x, C as b, a as I, H as w, O as B, P as D, S, b as V, T as $, c as F, d as v } from "../OptimizedImage-Dio4ZB9h.js";
|
|
3
|
+
import { T as N } from "../ThemeToggle-Cm25ThjX.js";
|
|
4
4
|
import { Alert as P, ContactForm as R, Dropdown as h, Form as j, ImageUpload as k, Layout as y, Modal as A, SlideUp as E, Tabs as H } from "../molecules/index.js";
|
|
5
|
-
import { N as q, a as z } from "../Navigation-
|
|
5
|
+
import { N as q, a as z } from "../Navigation-BxP-osMQ.js";
|
|
6
6
|
const t = (a = "id") => typeof window < "u" ? `${a}-${Math.random().toString(36).substr(2, 9)}` : `${a}-ssr-${Date.now()}`, s = (...a) => a.filter(Boolean).join(" "), r = (a) => {
|
|
7
7
|
const e = new FormData(a);
|
|
8
8
|
return Object.fromEntries(e.entries());
|
package/dist/molecules/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as S,
|
|
2
|
-
import { e as ne, B as ee, I as oe, T as xe } from "../Textarea-
|
|
1
|
+
import { t as S, F as ie, G as le, H as de, I as ce, J, y as ve, K as ue, w as T, L as fe, S as me, l as A, p as w, i as te, f as k, a as Q, s as L, e as N, c as b, d as H, g as G, h as a, z as Y, A as ae, b as j, x as R, k as m, m as I, o as P, D, j as _, C as W, M as be, n as U, v as K, q as ge, r as he, u as re, N as Z, O as V } from "../props-B4BdFk2B.js";
|
|
2
|
+
import { e as ne, B as ee, I as oe, T as xe } from "../Textarea-DP1BihDh.js";
|
|
3
3
|
function pe(n, e, s = !1, t = !1, c = !1) {
|
|
4
4
|
var r = n, h = "";
|
|
5
5
|
S(() => {
|
|
@@ -94,7 +94,7 @@ function Xe(n, e) {
|
|
|
94
94
|
G(e, !1), ne(n, Me);
|
|
95
95
|
const c = I();
|
|
96
96
|
let r = w(e, "variant", 8, "main"), h = w(e, "gap", 8, "md"), o = w(e, "className", 8, "");
|
|
97
|
-
Y(() =>
|
|
97
|
+
Y(() => R(h()), () => {
|
|
98
98
|
P(c, `gap-${h()}`);
|
|
99
99
|
}), ae();
|
|
100
100
|
var i = $e();
|
|
@@ -129,8 +129,8 @@ function Xe(n, e) {
|
|
|
129
129
|
var z = W(), q = D(z);
|
|
130
130
|
{
|
|
131
131
|
var $ = (M) => {
|
|
132
|
-
var C = Ce(),
|
|
133
|
-
L(
|
|
132
|
+
var C = Ce(), O = a(C);
|
|
133
|
+
L(O, e, "default", {}), b(M, C);
|
|
134
134
|
};
|
|
135
135
|
j(
|
|
136
136
|
q,
|
|
@@ -179,14 +179,14 @@ function Ze(n, e) {
|
|
|
179
179
|
var $ = _(z, 2);
|
|
180
180
|
{
|
|
181
181
|
var M = (C) => {
|
|
182
|
-
var
|
|
183
|
-
L(
|
|
182
|
+
var O = Le(), F = a(O);
|
|
183
|
+
L(F, e, "footer", {}), b(C, O);
|
|
184
184
|
};
|
|
185
185
|
j($, (C) => {
|
|
186
186
|
T(() => s.footer) && C(M);
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
S(() =>
|
|
189
|
+
S(() => U(y, c())), N("click", f, r), N("click", l, h), N("keydown", l, o), b(d, l);
|
|
190
190
|
};
|
|
191
191
|
j(u, (d) => {
|
|
192
192
|
t() && d(g);
|
|
@@ -213,7 +213,7 @@ function et(n, e) {
|
|
|
213
213
|
{
|
|
214
214
|
var v = (z) => {
|
|
215
215
|
var q = Se(), $ = a(q), M = a($), C = _($, 2);
|
|
216
|
-
S(() =>
|
|
216
|
+
S(() => U(M, t())), N("click", C, c), b(z, q);
|
|
217
217
|
};
|
|
218
218
|
j(p, (z) => {
|
|
219
219
|
t() && z(v);
|
|
@@ -229,7 +229,7 @@ function et(n, e) {
|
|
|
229
229
|
b(n, o);
|
|
230
230
|
}
|
|
231
231
|
var Ee = k('<div class="dropdown-content group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-1o1q13x"><!></div>'), Te = k('<div class="dropdown-container group relative inline-block svelte-1o1q13x"><!> <!></div>');
|
|
232
|
-
const
|
|
232
|
+
const Oe = {
|
|
233
233
|
hash: "svelte-1o1q13x",
|
|
234
234
|
code: `.dropdown-container.svelte-1o1q13x {position:relative;display:inline-block;}.dropdown-content.svelte-1o1q13x {position:absolute;z-index:50;background-color:white;border:1px solid #e5e7eb;border-radius:0.5rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
235
235
|
0 4px 6px -2px rgba(0, 0, 0, 0.05);min-width:12rem;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
|
|
@@ -248,7 +248,7 @@ const Be = {
|
|
|
248
248
|
.dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}`
|
|
249
249
|
};
|
|
250
250
|
function tt(n, e) {
|
|
251
|
-
ne(n,
|
|
251
|
+
ne(n, Oe);
|
|
252
252
|
let s = w(e, "isOpen", 8, !1), t = w(e, "placement", 8, "bottom-start");
|
|
253
253
|
var c = Te(), r = a(c);
|
|
254
254
|
L(r, e, "trigger", {});
|
|
@@ -264,7 +264,7 @@ function tt(n, e) {
|
|
|
264
264
|
}
|
|
265
265
|
S(() => K(c, "data-placement", t())), b(n, c);
|
|
266
266
|
}
|
|
267
|
-
var
|
|
267
|
+
var Be = k('<button type="button" role="tab"> </button>'), De = k('<div class="tabs-container"><div class="flex border-b border-gray-200" role="tablist" tabindex="0"></div> <div class="mt-4"><!></div></div>');
|
|
268
268
|
function at(n, e) {
|
|
269
269
|
G(e, !1);
|
|
270
270
|
let s = w(e, "tabs", 24, () => []), t = w(e, "activeTab", 12, ""), c = w(e, "variant", 8, "default");
|
|
@@ -280,9 +280,9 @@ function at(n, e) {
|
|
|
280
280
|
te();
|
|
281
281
|
var o = De(), i = a(o);
|
|
282
282
|
ge(i, 5, s, he, (d, l) => {
|
|
283
|
-
var x =
|
|
283
|
+
var x = Be(), p = a(x);
|
|
284
284
|
S(() => {
|
|
285
|
-
re(x, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${
|
|
285
|
+
re(x, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${R(t()), m(l), R(c()), T(() => t() === m(l).id ? c() === "pills" ? "bg-blue-100 text-blue-700 border-blue-500" : "border-blue-500 text-blue-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300") ?? ""}`), x.disabled = (m(l), T(() => m(l).disabled)), K(x, "aria-selected", (R(t()), m(l), T(() => t() === m(l).id))), U(p, (m(l), T(() => m(l).label)));
|
|
286
286
|
}), N("click", x, () => r(m(l).id)), b(d, x);
|
|
287
287
|
});
|
|
288
288
|
var u = _(i, 2), g = a(u);
|
|
@@ -297,7 +297,7 @@ function at(n, e) {
|
|
|
297
297
|
}
|
|
298
298
|
), N("keydown", i, h), b(n, o), H();
|
|
299
299
|
}
|
|
300
|
-
var Ie = k('<button class="absolute top-2 right-2 z-10 w-6 h-6 flex items-center justify-center rounded-full text-text-secondary hover:text-primary transition-colors duration-200 motion-reduce:transition-none group focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2" aria-label="Dismiss alert" type="button"><svg class="w-4 h-4 text-current group-hover:scale-110 transition-transform duration-200 motion-reduce:transition-none" 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>'), Pe = k('<h4 class="font-semibold text-sm mb-1" style="color: inherit;"> </h4>'), Ae = k('<p class="text-sm leading-relaxed" style="color: inherit;"> </p>'),
|
|
300
|
+
var Ie = k('<button class="absolute top-2 right-2 z-10 w-6 h-6 flex items-center justify-center rounded-full text-text-secondary hover:text-primary transition-colors duration-200 motion-reduce:transition-none group focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2" aria-label="Dismiss alert" type="button"><svg class="w-4 h-4 text-current group-hover:scale-110 transition-transform duration-200 motion-reduce:transition-none" 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>'), Pe = k('<h4 class="font-semibold text-sm mb-1" style="color: inherit;"> </h4>'), Ae = k('<p class="text-sm leading-relaxed" style="color: inherit;"> </p>'), Fe = k('<div><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
|
|
301
301
|
function rt(n, e) {
|
|
302
302
|
const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["variant", "title", "message", "closable", "className"]);
|
|
303
303
|
G(e, !1);
|
|
@@ -313,7 +313,7 @@ function rt(n, e) {
|
|
|
313
313
|
warning: "bg-warning-surface text-warning-text border border-warning",
|
|
314
314
|
error: "bg-error-surface text-error-text border border-error"
|
|
315
315
|
});
|
|
316
|
-
}), Y(() =>
|
|
316
|
+
}), Y(() => R(o()), () => {
|
|
317
317
|
P(r, o() === "success" || o() === "info" ? "status" : "alert");
|
|
318
318
|
}), Y(() => {
|
|
319
319
|
}, () => {
|
|
@@ -332,9 +332,9 @@ function rt(n, e) {
|
|
|
332
332
|
</svg>`
|
|
333
333
|
});
|
|
334
334
|
}), ae();
|
|
335
|
-
var x =
|
|
335
|
+
var x = Fe();
|
|
336
336
|
Q(x, () => ({
|
|
337
|
-
class: `relative rounded-md p-4 border ${m(c),
|
|
337
|
+
class: `relative rounded-md p-4 border ${m(c), R(o()), T(() => m(c)[o()]) ?? ""} transition-all duration-200 motion-reduce:transition-none ${d() ?? ""}`,
|
|
338
338
|
role: m(r),
|
|
339
339
|
"aria-live": o() === "success" || o() === "info" ? "polite" : "assertive",
|
|
340
340
|
"aria-atomic": "true",
|
|
@@ -343,20 +343,20 @@ function rt(n, e) {
|
|
|
343
343
|
var p = a(x);
|
|
344
344
|
{
|
|
345
345
|
var v = (E) => {
|
|
346
|
-
var
|
|
347
|
-
N("click",
|
|
346
|
+
var B = Ie();
|
|
347
|
+
N("click", B, l), b(E, B);
|
|
348
348
|
};
|
|
349
349
|
j(p, (E) => {
|
|
350
350
|
g() && E(v);
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
var y = _(p, 2), f = a(y), z = a(f);
|
|
354
|
-
pe(z, () => (m(h),
|
|
354
|
+
pe(z, () => (m(h), R(o()), T(() => m(h)[o()])));
|
|
355
355
|
var q = _(f, 2), $ = a(q);
|
|
356
356
|
{
|
|
357
357
|
var M = (E) => {
|
|
358
|
-
var
|
|
359
|
-
S(() =>
|
|
358
|
+
var B = Pe(), X = a(B);
|
|
359
|
+
S(() => U(X, i())), b(E, B);
|
|
360
360
|
};
|
|
361
361
|
j($, (E) => {
|
|
362
362
|
i() && E(M);
|
|
@@ -364,18 +364,18 @@ function rt(n, e) {
|
|
|
364
364
|
}
|
|
365
365
|
var C = _($, 2);
|
|
366
366
|
{
|
|
367
|
-
var
|
|
368
|
-
var
|
|
369
|
-
S(() =>
|
|
367
|
+
var O = (E) => {
|
|
368
|
+
var B = Ae(), X = a(B);
|
|
369
|
+
S(() => U(X, u())), b(E, B);
|
|
370
370
|
};
|
|
371
371
|
j(C, (E) => {
|
|
372
|
-
u() && E(
|
|
372
|
+
u() && E(O);
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
var
|
|
376
|
-
L(
|
|
375
|
+
var F = _(C, 2);
|
|
376
|
+
L(F, e, "default", {}), S(() => re(y, 1, `flex items-start gap-3 ${g() ? "pr-8" : ""}`)), b(n, x), H();
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var Re = k('<div class="relative group"><img alt="" class="w-full h-32 object-cover rounded-lg border border-gray-300"/> <div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-lg flex items-center justify-center"><div class="flex gap-2"><!> <!></div></div></div>'), Ue = k('<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-gray-400 transition-colors cursor-pointer" role="button" tabindex="0"><div class="space-y-3"><div class="w-12 h-12 mx-auto bg-gray-100 rounded-lg flex items-center justify-center"><span class="text-2xl">📷</span></div> <div><p class="font-medium text-gray-900"> </p> <p class="text-sm text-gray-500">Click to choose a file</p></div></div></div>'), Ye = k('<div class="space-y-3"><!> <input type="file" class="hidden"/></div>');
|
|
379
379
|
function ot(n, e) {
|
|
380
380
|
let s = w(e, "value", 12, null), t = w(e, "disabled", 8, !1), c = w(e, "accept", 8, "image/*"), r = w(e, "placeholder", 8, "No image selected"), h = I();
|
|
381
381
|
function o(v) {
|
|
@@ -394,7 +394,7 @@ function ot(n, e) {
|
|
|
394
394
|
var g = Ye(), d = a(g);
|
|
395
395
|
{
|
|
396
396
|
var l = (v) => {
|
|
397
|
-
var y =
|
|
397
|
+
var y = Re(), f = a(y), z = _(f, 2), q = a(z), $ = a(q);
|
|
398
398
|
ee($, {
|
|
399
399
|
variant: "secondary",
|
|
400
400
|
size: "sm",
|
|
@@ -402,9 +402,9 @@ function ot(n, e) {
|
|
|
402
402
|
return t();
|
|
403
403
|
},
|
|
404
404
|
$$events: { click: u },
|
|
405
|
-
children: (C,
|
|
406
|
-
var
|
|
407
|
-
b(C,
|
|
405
|
+
children: (C, O) => {
|
|
406
|
+
var F = Z("Change");
|
|
407
|
+
b(C, F);
|
|
408
408
|
},
|
|
409
409
|
$$slots: { default: !0 }
|
|
410
410
|
});
|
|
@@ -416,15 +416,15 @@ function ot(n, e) {
|
|
|
416
416
|
return t();
|
|
417
417
|
},
|
|
418
418
|
$$events: { click: i },
|
|
419
|
-
children: (C,
|
|
420
|
-
var
|
|
421
|
-
b(C,
|
|
419
|
+
children: (C, O) => {
|
|
420
|
+
var F = Z("Remove");
|
|
421
|
+
b(C, F);
|
|
422
422
|
},
|
|
423
423
|
$$slots: { default: !0 }
|
|
424
424
|
}), S(() => K(f, "src", s())), b(v, y);
|
|
425
425
|
}, x = (v) => {
|
|
426
|
-
var y =
|
|
427
|
-
S(() =>
|
|
426
|
+
var y = Ue(), f = a(y), z = _(a(f), 2), q = a(z), $ = a(q);
|
|
427
|
+
S(() => U($, r())), N("click", y, u), N("keydown", y, (M) => M.key === "Enter" && u()), b(v, y);
|
|
428
428
|
};
|
|
429
429
|
j(d, (v) => {
|
|
430
430
|
s() ? v(l) : v(x, !1);
|
|
@@ -473,7 +473,7 @@ function Ge(n, e) {
|
|
|
473
473
|
var x = (p) => {
|
|
474
474
|
var v = Ke(), y = a(v);
|
|
475
475
|
S(() => {
|
|
476
|
-
K(v, "for", m(i)),
|
|
476
|
+
K(v, "for", m(i)), U(y, o());
|
|
477
477
|
}), b(p, v);
|
|
478
478
|
};
|
|
479
479
|
j(l, (p) => {
|
package/dist/organisms/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function rn() {
|
|
|
13
13
|
}
|
|
14
14
|
rn();
|
|
15
15
|
const rt = 1, nt = 2, or = 4, nn = 8, fn = 16, ln = 1, un = 2, cr = 4, an = 8, sn = 16, on = 1, cn = 2, I = Symbol(), vn = "http://www.w3.org/1999/xhtml", _n = "@attach", vr = !1;
|
|
16
|
-
var it = Array.isArray, dn = Array.prototype.indexOf, _r = Array.from, yt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, dr = Object.getOwnPropertyDescriptors, pn = Object.prototype, hn = Array.prototype,
|
|
16
|
+
var it = Array.isArray, dn = Array.prototype.indexOf, _r = Array.from, yt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, dr = Object.getOwnPropertyDescriptors, pn = Object.prototype, hn = Array.prototype, Ct = Object.getPrototypeOf;
|
|
17
17
|
const wn = () => {
|
|
18
18
|
};
|
|
19
19
|
function bn(e) {
|
|
@@ -29,7 +29,7 @@ function pr() {
|
|
|
29
29
|
});
|
|
30
30
|
return { promise: r, resolve: e, reject: t };
|
|
31
31
|
}
|
|
32
|
-
const L = 2,
|
|
32
|
+
const L = 2, Pt = 4, ft = 8, _e = 16, J = 32, Ce = 64, hr = 128, q = 256, We = 512, P = 1024, x = 2048, X = 4096, $ = 8192, de = 16384, Rt = 32768, kt = 65536, zt = 1 << 17, gn = 1 << 18, lt = 1 << 19, wr = 1 << 20, At = 1 << 21, ut = 1 << 22, oe = 1 << 23, ue = Symbol("$state"), En = Symbol("legacy props"), yn = Symbol(""), De = new class extends Error {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
Re(this, "name", "StaleReactionError");
|
|
@@ -57,10 +57,10 @@ function In(e) {
|
|
|
57
57
|
function Nn() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Cn() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Pn() {
|
|
64
64
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
65
65
|
}
|
|
66
66
|
function Rn() {
|
|
@@ -76,13 +76,13 @@ function Mn(e, t) {
|
|
|
76
76
|
function gr(e) {
|
|
77
77
|
return !Mn(e, this.v);
|
|
78
78
|
}
|
|
79
|
-
let
|
|
79
|
+
let C = null;
|
|
80
80
|
function Ze(e) {
|
|
81
|
-
|
|
81
|
+
C = e;
|
|
82
82
|
}
|
|
83
83
|
function ki(e, t = !1, r) {
|
|
84
|
-
|
|
85
|
-
p:
|
|
84
|
+
C = {
|
|
85
|
+
p: C,
|
|
86
86
|
c: null,
|
|
87
87
|
e: null,
|
|
88
88
|
s: e,
|
|
@@ -93,18 +93,18 @@ function ki(e, t = !1, r) {
|
|
|
93
93
|
function Mi(e) {
|
|
94
94
|
var t = (
|
|
95
95
|
/** @type {ComponentContext} */
|
|
96
|
-
|
|
96
|
+
C
|
|
97
97
|
), r = t.e;
|
|
98
98
|
if (r !== null) {
|
|
99
99
|
t.e = null;
|
|
100
100
|
for (var n of r)
|
|
101
|
-
|
|
101
|
+
Cr(n);
|
|
102
102
|
}
|
|
103
|
-
return
|
|
103
|
+
return C = t.p, /** @type {T} */
|
|
104
104
|
{};
|
|
105
105
|
}
|
|
106
106
|
function Ve() {
|
|
107
|
-
return !qe ||
|
|
107
|
+
return !qe || C !== null && C.l === null;
|
|
108
108
|
}
|
|
109
109
|
let we = [];
|
|
110
110
|
function Dn() {
|
|
@@ -320,11 +320,11 @@ ye = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), xe = new WeakMap(),
|
|
|
320
320
|
*/
|
|
321
321
|
Tt = function(t) {
|
|
322
322
|
var s;
|
|
323
|
-
t.f ^=
|
|
323
|
+
t.f ^= P;
|
|
324
324
|
for (var r = t.first; r !== null; ) {
|
|
325
|
-
var n = r.f, i = (n & (J |
|
|
325
|
+
var n = r.f, i = (n & (J | Ce)) !== 0, f = i && (n & P) !== 0, l = f || (n & $) !== 0 || this.skipped_effects.has(r);
|
|
326
326
|
if (!l && r.fn !== null) {
|
|
327
|
-
i ? r.f ^=
|
|
327
|
+
i ? r.f ^= P : (n & Pt) !== 0 ? O(this, se).push(r) : (n & P) === 0 && ((n & ut) !== 0 && ((s = r.b) != null && s.is_pending()) ? O(this, Ae).push(r) : $e(r) && ((r.f & _e) !== 0 && O(this, Te).push(r), Ne(r)));
|
|
328
328
|
var a = r.first;
|
|
329
329
|
if (a !== null) {
|
|
330
330
|
r = a;
|
|
@@ -340,7 +340,7 @@ Tt = function(t) {
|
|
|
340
340
|
*/
|
|
341
341
|
Ge = function(t) {
|
|
342
342
|
for (const r of t)
|
|
343
|
-
((r.f & x) !== 0 ? O(this, je) : O(this, Ue)).push(r), k(r,
|
|
343
|
+
((r.f & x) !== 0 ? O(this, je) : O(this, Ue)).push(r), k(r, P);
|
|
344
344
|
t.length = 0;
|
|
345
345
|
}, /**
|
|
346
346
|
* Append and remove branches to/from the DOM
|
|
@@ -437,9 +437,9 @@ function ve(e) {
|
|
|
437
437
|
var r = t.f;
|
|
438
438
|
if (St && t === S && (r & _e) !== 0)
|
|
439
439
|
return;
|
|
440
|
-
if ((r & (
|
|
441
|
-
if ((r &
|
|
442
|
-
t.f ^=
|
|
440
|
+
if ((r & (Ce | J)) !== 0) {
|
|
441
|
+
if ((r & P) === 0) return;
|
|
442
|
+
t.f ^= P;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
ie.push(t);
|
|
@@ -467,7 +467,7 @@ function mr(e, t, r) {
|
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
function Un() {
|
|
470
|
-
var e = S, t = A, r =
|
|
470
|
+
var e = S, t = A, r = C, n = N;
|
|
471
471
|
return function() {
|
|
472
472
|
W(e), G(t), Ze(r), n == null || n.activate();
|
|
473
473
|
};
|
|
@@ -482,7 +482,7 @@ function st(e) {
|
|
|
482
482
|
A
|
|
483
483
|
) : null;
|
|
484
484
|
return S === null || r !== null && (r.f & q) !== 0 ? t |= q : S.f |= lt, {
|
|
485
|
-
ctx:
|
|
485
|
+
ctx: C,
|
|
486
486
|
deps: null,
|
|
487
487
|
effects: null,
|
|
488
488
|
equals: br,
|
|
@@ -588,7 +588,7 @@ function Lt(e) {
|
|
|
588
588
|
function Tr(e) {
|
|
589
589
|
var t = Lt(e);
|
|
590
590
|
if (e.equals(t) || (e.v = t, e.wv = Ur()), !pe) {
|
|
591
|
-
var r = (le || (e.f & q) !== 0) && e.deps !== null ? X :
|
|
591
|
+
var r = (le || (e.f & q) !== 0) && e.deps !== null ? X : P;
|
|
592
592
|
k(e, r);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
@@ -614,7 +614,7 @@ function ne(e, t) {
|
|
|
614
614
|
function Bn(e, t = !1, r = !0) {
|
|
615
615
|
var i;
|
|
616
616
|
const n = Oe(e);
|
|
617
|
-
return t || (n.equals = gr), qe && r &&
|
|
617
|
+
return t || (n.equals = gr), qe && r && C !== null && C.l !== null && ((i = C.l).s ?? (i.s = [])).push(n), n;
|
|
618
618
|
}
|
|
619
619
|
function Di(e, t) {
|
|
620
620
|
return Y(
|
|
@@ -625,7 +625,7 @@ function Di(e, t) {
|
|
|
625
625
|
function Y(e, t, r = !1) {
|
|
626
626
|
A !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
627
627
|
// to ensure we error if state is set inside an inspect effect
|
|
628
|
-
(!K || (A.f & zt) !== 0) && Ve() && (A.f & (L | _e | ut | zt)) !== 0 && !(D != null && D.includes(e)) &&
|
|
628
|
+
(!K || (A.f & zt) !== 0) && Ve() && (A.f & (L | _e | ut | zt)) !== 0 && !(D != null && D.includes(e)) && Pn();
|
|
629
629
|
let n = r ? be(t) : t;
|
|
630
630
|
return Le(e, n);
|
|
631
631
|
}
|
|
@@ -637,7 +637,7 @@ function Le(e, t) {
|
|
|
637
637
|
n.capture(e, r), (e.f & L) !== 0 && ((e.f & x) !== 0 && Lt(
|
|
638
638
|
/** @type {Derived} */
|
|
639
639
|
e
|
|
640
|
-
), k(e, (e.f & q) === 0 ?
|
|
640
|
+
), k(e, (e.f & q) === 0 ? P : X)), e.wv = Ur(), Or(e, x), Ve() && S !== null && (S.f & P) !== 0 && (S.f & (J | Ce)) === 0 && (U === null ? ti([e]) : U.push(e));
|
|
641
641
|
}
|
|
642
642
|
return t;
|
|
643
643
|
}
|
|
@@ -672,7 +672,7 @@ function Or(e, t) {
|
|
|
672
672
|
function be(e) {
|
|
673
673
|
if (typeof e != "object" || e === null || ue in e)
|
|
674
674
|
return e;
|
|
675
|
-
const t =
|
|
675
|
+
const t = Ct(e);
|
|
676
676
|
if (t !== pn && t !== hn)
|
|
677
677
|
return e;
|
|
678
678
|
var r = /* @__PURE__ */ new Map(), n = it(e), i = /* @__PURE__ */ ne(0), f = ce, l = (a) => {
|
|
@@ -796,7 +796,7 @@ function be(e) {
|
|
|
796
796
|
return u;
|
|
797
797
|
},
|
|
798
798
|
setPrototypeOf() {
|
|
799
|
-
|
|
799
|
+
Cn();
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
);
|
|
@@ -880,7 +880,7 @@ function Q(e, t, r, n = !0) {
|
|
|
880
880
|
var i = S;
|
|
881
881
|
i !== null && (i.f & $) !== 0 && (e |= $);
|
|
882
882
|
var f = {
|
|
883
|
-
ctx:
|
|
883
|
+
ctx: C,
|
|
884
884
|
deps: null,
|
|
885
885
|
nodes_start: null,
|
|
886
886
|
nodes_end: null,
|
|
@@ -907,7 +907,7 @@ function Q(e, t, r, n = !0) {
|
|
|
907
907
|
if (n) {
|
|
908
908
|
var l = f;
|
|
909
909
|
if (r && l.deps === null && l.teardown === null && l.nodes_start === null && l.first === l.last && // either `null`, or a singular child
|
|
910
|
-
(l.f & lt) === 0 && (l = l.first), l !== null && (l.parent = i, i !== null && Wn(l, i), A !== null && (A.f & L) !== 0 && (e &
|
|
910
|
+
(l.f & lt) === 0 && (l = l.first), l !== null && (l.parent = i, i !== null && Wn(l, i), A !== null && (A.f & L) !== 0 && (e & Ce) === 0)) {
|
|
911
911
|
var a = (
|
|
912
912
|
/** @type {Derived} */
|
|
913
913
|
A
|
|
@@ -919,7 +919,7 @@ function Q(e, t, r, n = !0) {
|
|
|
919
919
|
}
|
|
920
920
|
function xt(e) {
|
|
921
921
|
const t = Q(ft, null, !1);
|
|
922
|
-
return k(t,
|
|
922
|
+
return k(t, P), t.teardown = e, t;
|
|
923
923
|
}
|
|
924
924
|
function Xt(e) {
|
|
925
925
|
Nr();
|
|
@@ -930,25 +930,25 @@ function Xt(e) {
|
|
|
930
930
|
if (r) {
|
|
931
931
|
var n = (
|
|
932
932
|
/** @type {ComponentContext} */
|
|
933
|
-
|
|
933
|
+
C
|
|
934
934
|
);
|
|
935
935
|
(n.e ?? (n.e = [])).push(e);
|
|
936
936
|
} else
|
|
937
|
-
return
|
|
937
|
+
return Cr(e);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
return Q(
|
|
939
|
+
function Cr(e) {
|
|
940
|
+
return Q(Pt | wr, e, !1);
|
|
941
941
|
}
|
|
942
942
|
function Zn(e) {
|
|
943
943
|
return Nr(), Q(ft | wr, e, !0);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
946
|
-
return Q(
|
|
945
|
+
function Pr(e) {
|
|
946
|
+
return Q(Pt, e, !1);
|
|
947
947
|
}
|
|
948
948
|
function ji(e, t) {
|
|
949
949
|
var r = (
|
|
950
950
|
/** @type {ComponentContextLegacy} */
|
|
951
|
-
|
|
951
|
+
C
|
|
952
952
|
), n = { effect: null, ran: !1, deps: e };
|
|
953
953
|
r.l.$.push(n), n.effect = Rr(() => {
|
|
954
954
|
e(), !n.ran && (n.ran = !0, vt(t));
|
|
@@ -957,13 +957,13 @@ function ji(e, t) {
|
|
|
957
957
|
function Ui() {
|
|
958
958
|
var e = (
|
|
959
959
|
/** @type {ComponentContextLegacy} */
|
|
960
|
-
|
|
960
|
+
C
|
|
961
961
|
);
|
|
962
962
|
Rr(() => {
|
|
963
963
|
for (var t of e.l.$) {
|
|
964
964
|
t.deps();
|
|
965
965
|
var r = t.effect;
|
|
966
|
-
(r.f &
|
|
966
|
+
(r.f & P) !== 0 && k(r, X), $e(r) && Ne(r), t.ran = !1;
|
|
967
967
|
}
|
|
968
968
|
});
|
|
969
969
|
}
|
|
@@ -1005,7 +1005,7 @@ function Mr(e, t = !1) {
|
|
|
1005
1005
|
i.abort(De);
|
|
1006
1006
|
});
|
|
1007
1007
|
var n = r.next;
|
|
1008
|
-
(r.f &
|
|
1008
|
+
(r.f & Ce) !== 0 ? r.parent = null : z(r, t), r = n;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
function Xn(e) {
|
|
@@ -1073,7 +1073,7 @@ function Ut(e) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
function xr(e, t) {
|
|
1075
1075
|
if ((e.f & $) !== 0) {
|
|
1076
|
-
e.f ^= $, (e.f &
|
|
1076
|
+
e.f ^= $, (e.f & P) === 0 && (k(e, x), ve(e));
|
|
1077
1077
|
for (var r = e.first; r !== null; ) {
|
|
1078
1078
|
var n = r.next, i = (r.f & kt) !== 0 || (r.f & J) !== 0;
|
|
1079
1079
|
xr(r, i ? t : !1), r = n;
|
|
@@ -1143,7 +1143,7 @@ function $e(e) {
|
|
|
1143
1143
|
), f.wv > e.wv)
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
}
|
|
1146
|
-
(!n || S !== null && !le) && k(e,
|
|
1146
|
+
(!n || S !== null && !le) && k(e, P);
|
|
1147
1147
|
}
|
|
1148
1148
|
return !1;
|
|
1149
1149
|
}
|
|
@@ -1157,7 +1157,7 @@ function qr(e, t, r = !0) {
|
|
|
1157
1157
|
f,
|
|
1158
1158
|
t,
|
|
1159
1159
|
!1
|
|
1160
|
-
) : t === f && (r ? k(f, x) : (f.f &
|
|
1160
|
+
) : t === f && (r ? k(f, x) : (f.f & P) !== 0 && k(f, X), ve(
|
|
1161
1161
|
/** @type {Effect} */
|
|
1162
1162
|
f
|
|
1163
1163
|
));
|
|
@@ -1165,9 +1165,9 @@ function qr(e, t, r = !0) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
function Vr(e) {
|
|
1167
1167
|
var b;
|
|
1168
|
-
var t = M, r = F, n = U, i = A, f = le, l = D, a =
|
|
1168
|
+
var t = M, r = F, n = U, i = A, f = le, l = D, a = C, u = K, s = ce, c = e.f;
|
|
1169
1169
|
M = /** @type {null | Value[]} */
|
|
1170
|
-
null, F = 0, U = null, le = (c & q) !== 0 && (K || !Ee || A === null), A = (c & (J |
|
|
1170
|
+
null, F = 0, U = null, le = (c & q) !== 0 && (K || !Ee || A === null), A = (c & (J | Ce)) === 0 ? e : null, D = null, Ze(e.ctx), K = !1, ce = ++Fe, e.ac !== null && (Ft(() => {
|
|
1171
1171
|
e.ac.abort(De);
|
|
1172
1172
|
}), e.ac = null);
|
|
1173
1173
|
try {
|
|
@@ -1235,7 +1235,7 @@ function et(e, t) {
|
|
|
1235
1235
|
function Ne(e) {
|
|
1236
1236
|
var t = e.f;
|
|
1237
1237
|
if ((t & de) === 0) {
|
|
1238
|
-
k(e,
|
|
1238
|
+
k(e, P);
|
|
1239
1239
|
var r = S, n = Ee;
|
|
1240
1240
|
S = e, Ee = !0;
|
|
1241
1241
|
try {
|
|
@@ -1279,7 +1279,7 @@ function R(e) {
|
|
|
1279
1279
|
l = /** @type {Derived} */
|
|
1280
1280
|
e;
|
|
1281
1281
|
var u = l.v;
|
|
1282
|
-
return ((l.f &
|
|
1282
|
+
return ((l.f & P) === 0 && l.reactions !== null || Br(l)) && (u = Lt(l)), ae.set(l, u), u;
|
|
1283
1283
|
}
|
|
1284
1284
|
} else r && (l = /** @type {Derived} */
|
|
1285
1285
|
e, $e(l) && Tr(l));
|
|
@@ -1330,7 +1330,7 @@ function It(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1330
1330
|
It(e[n], t);
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
}
|
|
1333
|
-
const r =
|
|
1333
|
+
const r = Ct(e);
|
|
1334
1334
|
if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
|
|
1335
1335
|
const n = dr(r);
|
|
1336
1336
|
for (let i in n) {
|
|
@@ -1721,18 +1721,18 @@ function hi(e, t, r, n, i, f, l, a, u) {
|
|
|
1721
1721
|
T.push(y), p = y, o = y.next;
|
|
1722
1722
|
}
|
|
1723
1723
|
if (o !== null || b !== void 0) {
|
|
1724
|
-
for (var
|
|
1725
|
-
(o.e.f & $) === 0 &&
|
|
1726
|
-
var pt =
|
|
1724
|
+
for (var Pe = b === void 0 ? [] : _r(b); o !== null; )
|
|
1725
|
+
(o.e.f & $) === 0 && Pe.push(o), o = o.next;
|
|
1726
|
+
var pt = Pe.length;
|
|
1727
1727
|
if (pt > 0) {
|
|
1728
1728
|
var Jr = (l & or) !== 0 && v === 0 ? i : null;
|
|
1729
1729
|
if (s) {
|
|
1730
1730
|
for (E = 0; E < pt; E += 1)
|
|
1731
|
-
($t =
|
|
1731
|
+
($t = Pe[E].a) == null || $t.measure();
|
|
1732
1732
|
for (E = 0; E < pt; E += 1)
|
|
1733
|
-
(Ht =
|
|
1733
|
+
(Ht = Pe[E].a) == null || Ht.fix();
|
|
1734
1734
|
}
|
|
1735
|
-
pi(r,
|
|
1735
|
+
pi(r, Pe, Jr);
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
s && at(() => {
|
|
@@ -1815,7 +1815,7 @@ function wi(e, t) {
|
|
|
1815
1815
|
var r = void 0, n;
|
|
1816
1816
|
ct(() => {
|
|
1817
1817
|
r !== (r = t()) && (n && (z(n), n = null), r && (n = Ie(() => {
|
|
1818
|
-
|
|
1818
|
+
Pr(() => (
|
|
1819
1819
|
/** @type {(node: Element) => void} */
|
|
1820
1820
|
r(e)
|
|
1821
1821
|
));
|
|
@@ -2086,7 +2086,7 @@ function Xi(e, t, r = [], n = [], i, f = !1, l = !1) {
|
|
|
2086
2086
|
/** @type {HTMLSelectElement} */
|
|
2087
2087
|
e
|
|
2088
2088
|
);
|
|
2089
|
-
|
|
2089
|
+
Pr(() => {
|
|
2090
2090
|
Nt(
|
|
2091
2091
|
_,
|
|
2092
2092
|
/** @type {Record<string | symbol, any>} */
|
|
@@ -2117,14 +2117,14 @@ function Zr(e) {
|
|
|
2117
2117
|
n = dr(i);
|
|
2118
2118
|
for (var l in n)
|
|
2119
2119
|
n[l].set && r.push(l);
|
|
2120
|
-
i =
|
|
2120
|
+
i = Ct(i);
|
|
2121
2121
|
}
|
|
2122
2122
|
return r;
|
|
2123
2123
|
}
|
|
2124
2124
|
function Qi(e = !1) {
|
|
2125
2125
|
const t = (
|
|
2126
2126
|
/** @type {ComponentContextLegacy} */
|
|
2127
|
-
|
|
2127
|
+
C
|
|
2128
2128
|
), r = t.l.u;
|
|
2129
2129
|
if (!r) return;
|
|
2130
2130
|
let n = () => ii(t.s);
|
|
@@ -2177,7 +2177,7 @@ const Ni = {
|
|
|
2177
2177
|
if (!(t in e.special)) {
|
|
2178
2178
|
var n = S;
|
|
2179
2179
|
try {
|
|
2180
|
-
W(e.parent_effect), e.special[t] =
|
|
2180
|
+
W(e.parent_effect), e.special[t] = Ci(
|
|
2181
2181
|
{
|
|
2182
2182
|
get [t]() {
|
|
2183
2183
|
return e.props[t];
|
|
@@ -2229,7 +2229,7 @@ function ef(e, t) {
|
|
|
2229
2229
|
Ni
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Ci(e, t, r, n) {
|
|
2233
2233
|
var h;
|
|
2234
2234
|
var i = !qe || (r & un) !== 0, f = (r & an) !== 0, l = (r & sn) !== 0, a = (
|
|
2235
2235
|
/** @type {V} */
|
|
@@ -2294,22 +2294,21 @@ function Pi(e, t, r, n) {
|
|
|
2294
2294
|
);
|
|
2295
2295
|
}
|
|
2296
2296
|
export {
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
Di as P,
|
|
2297
|
+
Ui as A,
|
|
2298
|
+
gi as B,
|
|
2299
|
+
Hi as C,
|
|
2300
|
+
Fi as D,
|
|
2301
|
+
Ai as E,
|
|
2302
|
+
S as F,
|
|
2303
|
+
Qn as G,
|
|
2304
|
+
si as H,
|
|
2305
|
+
tt as I,
|
|
2306
|
+
Qe as J,
|
|
2307
|
+
Rr as K,
|
|
2308
|
+
at as L,
|
|
2309
|
+
Ji as M,
|
|
2310
|
+
$i as N,
|
|
2311
|
+
Di as O,
|
|
2313
2312
|
ue as S,
|
|
2314
2313
|
Xi as a,
|
|
2315
2314
|
zi as b,
|
|
@@ -2326,15 +2325,15 @@ export {
|
|
|
2326
2325
|
Bn as m,
|
|
2327
2326
|
Ki as n,
|
|
2328
2327
|
Y as o,
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2328
|
+
Ci as p,
|
|
2329
|
+
Wi as q,
|
|
2330
|
+
Gi as r,
|
|
2332
2331
|
Zi as s,
|
|
2333
2332
|
qi as t,
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2333
|
+
mi as u,
|
|
2334
|
+
lr as v,
|
|
2335
|
+
vt as w,
|
|
2336
|
+
ii as x,
|
|
2337
|
+
Pr as y,
|
|
2338
|
+
ji as z
|
|
2340
2339
|
};
|
package/package.json
CHANGED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { l as k, p as n, f as x, a as F, s as y, b as N, t as $, e as O, c as u, h as a, j as i, k as s, m as ea, n as G, o as ta, q as sa, r as ra, u as va, v as A, w as ia, x as P, y as la } from "./props-DyILkQVH.js";
|
|
2
|
-
import { T as E } from "./ThemeToggle-2HEU5v1Q.js";
|
|
3
|
-
var na = x('<div class="mt-2"><!></div>'), da = x('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), oa = x('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
|
|
4
|
-
function ga(d, e) {
|
|
5
|
-
const o = k(e, ["children", "$$slots", "$$events", "$$legacy"]), T = k(o, ["brand", "showThemeToggle", "className"]);
|
|
6
|
-
let g = n(e, "brand", 8, ""), m = n(e, "showThemeToggle", 8, !0), h = n(e, "className", 8, ""), c = ea(!1);
|
|
7
|
-
function _() {
|
|
8
|
-
ta(c, !s(c));
|
|
9
|
-
}
|
|
10
|
-
function f() {
|
|
11
|
-
}
|
|
12
|
-
var l = oa();
|
|
13
|
-
F(l, () => ({
|
|
14
|
-
class: `bg-white border-b border-gray-200 sticky top-0 z-50 ${h() ?? ""}`,
|
|
15
|
-
...T
|
|
16
|
-
}));
|
|
17
|
-
var t = a(l), b = a(t), r = a(b), p = a(r), H = a(p), z = i(r, 2), I = a(z), J = a(I);
|
|
18
|
-
y(J, e, "nav", {});
|
|
19
|
-
var j = i(z, 2), K = a(j), C = a(K);
|
|
20
|
-
y(C, e, "actions", {});
|
|
21
|
-
var L = i(C, 2);
|
|
22
|
-
{
|
|
23
|
-
var Q = (v) => {
|
|
24
|
-
E(v, {});
|
|
25
|
-
};
|
|
26
|
-
N(L, (v) => {
|
|
27
|
-
m() && v(Q);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
var R = i(j, 2), S = a(R), U = i(b, 2);
|
|
31
|
-
{
|
|
32
|
-
var V = (v) => {
|
|
33
|
-
var M = da(), W = a(M), q = a(W);
|
|
34
|
-
y(q, e, "nav", {});
|
|
35
|
-
var X = i(q, 2), B = a(X);
|
|
36
|
-
y(B, e, "actions", {});
|
|
37
|
-
var Y = i(B, 2);
|
|
38
|
-
{
|
|
39
|
-
var Z = (w) => {
|
|
40
|
-
var D = na(), aa = a(D);
|
|
41
|
-
E(aa, {}), u(w, D);
|
|
42
|
-
};
|
|
43
|
-
N(Y, (w) => {
|
|
44
|
-
m() && w(Z);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
u(v, M);
|
|
48
|
-
};
|
|
49
|
-
N(U, (v) => {
|
|
50
|
-
s(c) && v(V);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
$(() => G(H, g())), O("click", p, f), O("click", S, _), u(d, l);
|
|
54
|
-
}
|
|
55
|
-
var ca = (d, e, o) => e(s(o), d), _a = x("<li><a> </a></li>"), ba = x("<nav><ul></ul></nav>");
|
|
56
|
-
function ma(d, e) {
|
|
57
|
-
const o = k(e, ["children", "$$slots", "$$events", "$$legacy"]), T = k(o, ["variant", "items", "currentPath"]);
|
|
58
|
-
let g = n(e, "variant", 8, "header"), m = n(e, "items", 24, () => []), h = n(e, "currentPath", 8, "");
|
|
59
|
-
function c(l, t) {
|
|
60
|
-
t.preventDefault();
|
|
61
|
-
}
|
|
62
|
-
var _ = ba();
|
|
63
|
-
F(_, () => ({
|
|
64
|
-
class: `navigation navigation-${g() ?? ""}`,
|
|
65
|
-
...T
|
|
66
|
-
}));
|
|
67
|
-
var f = a(_);
|
|
68
|
-
ra(f, 5, m, va, (l, t) => {
|
|
69
|
-
var b = _a(), r = a(b);
|
|
70
|
-
r.__click = [ca, c, t];
|
|
71
|
-
var p = a(r);
|
|
72
|
-
$(() => {
|
|
73
|
-
ia(r, "href", (s(t), P(() => s(t).href))), A(r, 1, `px-3 py-2 text-sm font-medium rounded-md transition-colors ${la(h()), s(t), P(() => h() === s(t).href ? "bg-blue-100 text-blue-700" : "text-gray-600 hover:text-gray-900 hover:bg-gray-100") ?? ""}`), G(p, (s(t), P(() => s(t).label)));
|
|
74
|
-
}), u(l, b);
|
|
75
|
-
}), $(() => A(f, 1, `flex ${g() === "sidebar" ? "flex-col space-y-2" : "space-x-6"}`)), u(d, _);
|
|
76
|
-
}
|
|
77
|
-
sa(["click"]);
|
|
78
|
-
export {
|
|
79
|
-
ga as N,
|
|
80
|
-
ma as a
|
|
81
|
-
};
|