zabi-components 2.1.1 → 2.2.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.
- package/dist/Checkbox-D2PLqgxA.js +307 -0
- package/dist/OptimizedImage-B5NMIuac.js +593 -0
- package/dist/atoms/index.js +2 -2
- package/dist/index/index.js +30 -30
- package/dist/molecules/index.js +1 -1
- package/package.json +4 -3
- package/dist/Checkbox-Dwvh3lCd.js +0 -302
- package/dist/OptimizedImage-8a380fXi.js +0 -593
|
@@ -0,0 +1,593 @@
|
|
|
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 "./Checkbox-D2PLqgxA.js";
|
|
3
|
+
import "svelte";
|
|
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
|
+
function Ue(z, e) {
|
|
6
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, [
|
|
7
|
+
"value",
|
|
8
|
+
"options",
|
|
9
|
+
"placeholder",
|
|
10
|
+
"label",
|
|
11
|
+
"disabled",
|
|
12
|
+
"size"
|
|
13
|
+
]);
|
|
14
|
+
q(e, !1);
|
|
15
|
+
const l = S(), o = S();
|
|
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
|
+
typeof window < "u" ? k(m, `select-${Math.random().toString(36).substr(2, 9)}`) : k(m, `select-ssr-${Date.now()}`);
|
|
18
|
+
function g(w) {
|
|
19
|
+
const c = w.target;
|
|
20
|
+
a(c.value);
|
|
21
|
+
}
|
|
22
|
+
R(() => {
|
|
23
|
+
}, () => {
|
|
24
|
+
k(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
|
+
}), R(() => (t(l), N(y())), () => {
|
|
30
|
+
k(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)[y()]
|
|
35
|
+
].join(" "));
|
|
36
|
+
}), W(), O();
|
|
37
|
+
var n = ye(), d = v(n);
|
|
38
|
+
{
|
|
39
|
+
var h = (w) => {
|
|
40
|
+
var c = pe(), Y = v(c);
|
|
41
|
+
M(() => {
|
|
42
|
+
Z(c, "for", t(m)), I(Y, p());
|
|
43
|
+
}), i(w, c);
|
|
44
|
+
};
|
|
45
|
+
T(d, (w) => {
|
|
46
|
+
p() && w(h);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
var x = D(d, 2);
|
|
50
|
+
B(x, () => ({
|
|
51
|
+
id: t(m),
|
|
52
|
+
value: a(),
|
|
53
|
+
disabled: _(),
|
|
54
|
+
class: t(o),
|
|
55
|
+
...u
|
|
56
|
+
}));
|
|
57
|
+
var P = v(x);
|
|
58
|
+
{
|
|
59
|
+
var j = (w) => {
|
|
60
|
+
var c = _e(), Y = v(c);
|
|
61
|
+
c.value = c.__value = "", M(() => I(Y, b())), i(w, c);
|
|
62
|
+
};
|
|
63
|
+
T(P, (w) => {
|
|
64
|
+
b() && !a() && w(j);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var X = D(P);
|
|
68
|
+
de(X, 1, r, (w) => w.value, (w, c) => {
|
|
69
|
+
var Y = xe(), E = v(Y), F = {};
|
|
70
|
+
M(() => {
|
|
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
|
+
}), i(w, Y);
|
|
73
|
+
}), ee("change", x, g), i(z, n), V();
|
|
74
|
+
}
|
|
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
|
+
function We(z, e) {
|
|
77
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["checked", "disabled", "label"]);
|
|
78
|
+
q(e, !1);
|
|
79
|
+
const l = S(), o = S();
|
|
80
|
+
let a = s(e, "checked", 12, !1), r = s(e, "disabled", 8, !1), b = s(e, "label", 8, "");
|
|
81
|
+
function p(d) {
|
|
82
|
+
r() || a(!a());
|
|
83
|
+
}
|
|
84
|
+
R(() => (N(a()), N(r())), () => {
|
|
85
|
+
k(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
|
+
}), R(() => N(a()), () => {
|
|
93
|
+
k(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(), O();
|
|
99
|
+
var _ = ze(), y = v(_);
|
|
100
|
+
B(y, () => ({
|
|
101
|
+
type: "button",
|
|
102
|
+
role: "switch",
|
|
103
|
+
"aria-checked": a(),
|
|
104
|
+
"aria-label": b() || "Toggle",
|
|
105
|
+
disabled: r(),
|
|
106
|
+
class: t(l),
|
|
107
|
+
...u
|
|
108
|
+
}));
|
|
109
|
+
var m = v(y), g = D(y, 2);
|
|
110
|
+
{
|
|
111
|
+
var n = (d) => {
|
|
112
|
+
var h = we(), x = v(h);
|
|
113
|
+
M(() => I(x, b())), i(d, h);
|
|
114
|
+
};
|
|
115
|
+
T(g, (d) => {
|
|
116
|
+
b() && d(n);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
M(() => ne(m, 1, ve(t(o)))), ee("click", y, p), i(z, _), V();
|
|
120
|
+
}
|
|
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
|
+
function Ze(z, e) {
|
|
123
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "label", "disabled"]);
|
|
124
|
+
q(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
|
+
];
|
|
136
|
+
let b = S();
|
|
137
|
+
typeof window < "u" ? k(b, `color-picker-${Math.random().toString(36).substr(2, 9)}`) : k(b, `color-picker-ssr-${Date.now()}`), O();
|
|
138
|
+
var p = Pe(), _ = v(p);
|
|
139
|
+
{
|
|
140
|
+
var y = (g) => {
|
|
141
|
+
var n = ke(), d = v(n);
|
|
142
|
+
M(() => {
|
|
143
|
+
Z(n, "for", t(b)), I(d, o());
|
|
144
|
+
}), i(g, n);
|
|
145
|
+
};
|
|
146
|
+
T(_, (g) => {
|
|
147
|
+
o() && g(y);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
var m = D(_, 2);
|
|
151
|
+
B(m, () => ({
|
|
152
|
+
id: t(b),
|
|
153
|
+
class: "grid grid-cols-4 gap-2",
|
|
154
|
+
role: "radiogroup",
|
|
155
|
+
...u
|
|
156
|
+
})), de(m, 5, () => r, ue, (g, n) => {
|
|
157
|
+
var d = $e();
|
|
158
|
+
B(d, () => ({
|
|
159
|
+
type: "button",
|
|
160
|
+
class: `w-12 h-12 rounded-lg border-2 transition-all ${N(l()), t(n), A(() => l() === t(n).value ? "border-blue-500 ring-2 ring-blue-200" : "border-gray-300 hover:border-gray-400") ?? ""}`,
|
|
161
|
+
style: `background-color: ${t(n), A(() => t(n).value) ?? ""};`,
|
|
162
|
+
disabled: a(),
|
|
163
|
+
role: "radio",
|
|
164
|
+
"aria-checked": (N(l()), t(n), A(() => l() === t(n).value)),
|
|
165
|
+
"aria-label": (t(n), A(() => t(n).label)),
|
|
166
|
+
...u
|
|
167
|
+
}));
|
|
168
|
+
var h = v(d);
|
|
169
|
+
{
|
|
170
|
+
var x = (P) => {
|
|
171
|
+
var j = Ce();
|
|
172
|
+
i(P, j);
|
|
173
|
+
};
|
|
174
|
+
T(h, (P) => {
|
|
175
|
+
N(l()), t(n), A(() => l() === t(n).value) && P(x);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
ee("click", d, () => l(t(n).value)), i(g, d);
|
|
179
|
+
}), i(z, p), V();
|
|
180
|
+
}
|
|
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
|
+
function et(z, e) {
|
|
183
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["title", "image", "interactive", "variant", "size"]);
|
|
184
|
+
q(e, !1);
|
|
185
|
+
const l = S(), o = S(), a = S(), r = S();
|
|
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
|
+
R(() => {
|
|
188
|
+
}, () => {
|
|
189
|
+
k(l, { sm: "p-3", md: "p-4", lg: "p-6" });
|
|
190
|
+
}), R(() => N(y()), () => {
|
|
191
|
+
k(o, ge(y()));
|
|
192
|
+
}), R(
|
|
193
|
+
() => (N(_()), t(l), N(m()), t(o)),
|
|
194
|
+
() => {
|
|
195
|
+
k(a, [
|
|
196
|
+
"rounded-lg transition-all duration-200",
|
|
197
|
+
"hover:shadow-adaptive-md",
|
|
198
|
+
_() ? "cursor-pointer hover:scale-[1.02]" : "",
|
|
199
|
+
t(l)[m()],
|
|
200
|
+
t(o)
|
|
201
|
+
].join(" "));
|
|
202
|
+
}
|
|
203
|
+
), R(() => {
|
|
204
|
+
}, () => {
|
|
205
|
+
k(r, "text-lg font-semibold mb-2 text-primary");
|
|
206
|
+
}), W(), O();
|
|
207
|
+
var g = Te();
|
|
208
|
+
B(g, () => ({ class: t(a), ...u }));
|
|
209
|
+
var n = v(g);
|
|
210
|
+
{
|
|
211
|
+
var d = (j) => {
|
|
212
|
+
var X = je();
|
|
213
|
+
M(() => {
|
|
214
|
+
Z(X, "src", p()), Z(X, "alt", b());
|
|
215
|
+
}), i(j, X);
|
|
216
|
+
};
|
|
217
|
+
T(n, (j) => {
|
|
218
|
+
p() && j(d);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
var h = D(n, 2);
|
|
222
|
+
{
|
|
223
|
+
var x = (j) => {
|
|
224
|
+
var X = Se(), w = v(X);
|
|
225
|
+
M(() => {
|
|
226
|
+
ne(X, 1, ve(t(r))), I(w, b());
|
|
227
|
+
}), i(j, X);
|
|
228
|
+
};
|
|
229
|
+
T(h, (j) => {
|
|
230
|
+
b() && j(x);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
var P = D(h, 2);
|
|
234
|
+
G(P, e, "default", {}), i(z, g), V();
|
|
235
|
+
}
|
|
236
|
+
var Be = f('<button><!> <span class="ml-1 text-xs">×</span></button>'), Me = f("<span><!></span>");
|
|
237
|
+
function tt(z, e) {
|
|
238
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["variant", "size", "closable"]);
|
|
239
|
+
q(e, !1);
|
|
240
|
+
const l = S(), o = S(), a = S();
|
|
241
|
+
let r = s(e, "variant", 8, "default"), b = s(e, "size", 8, "md"), p = s(e, "closable", 8, !1);
|
|
242
|
+
function _(d) {
|
|
243
|
+
d.stopPropagation();
|
|
244
|
+
}
|
|
245
|
+
R(() => {
|
|
246
|
+
}, () => {
|
|
247
|
+
k(l, {
|
|
248
|
+
sm: "px-2 py-0.5 text-xs",
|
|
249
|
+
md: "px-3 py-1 text-sm",
|
|
250
|
+
lg: "px-4 py-1.5 text-base"
|
|
251
|
+
});
|
|
252
|
+
}), R(() => {
|
|
253
|
+
}, () => {
|
|
254
|
+
k(o, {
|
|
255
|
+
default: "bg-gray-100 text-gray-800 border-gray-300",
|
|
256
|
+
success: "bg-green-100 text-green-800 border-green-300",
|
|
257
|
+
warning: "bg-yellow-100 text-yellow-800 border-yellow-300",
|
|
258
|
+
error: "bg-red-100 text-red-800 border-red-300",
|
|
259
|
+
info: "bg-blue-100 text-blue-800 border-blue-300"
|
|
260
|
+
});
|
|
261
|
+
}), R(
|
|
262
|
+
() => (t(l), N(b()), t(o), N(r()), N(p())),
|
|
263
|
+
() => {
|
|
264
|
+
k(a, [
|
|
265
|
+
"inline-flex items-center gap-1 font-medium border rounded-md",
|
|
266
|
+
t(l)[b()],
|
|
267
|
+
t(o)[r()],
|
|
268
|
+
p() ? "cursor-pointer hover:opacity-80" : ""
|
|
269
|
+
].join(" "));
|
|
270
|
+
}
|
|
271
|
+
), W(), O();
|
|
272
|
+
var y = H(), m = L(y);
|
|
273
|
+
{
|
|
274
|
+
var g = (d) => {
|
|
275
|
+
var h = Be();
|
|
276
|
+
B(h, () => ({ type: "button", class: t(a), ...u }));
|
|
277
|
+
var x = v(h);
|
|
278
|
+
G(x, e, "default", {}), ee("click", h, _), i(d, h);
|
|
279
|
+
}, n = (d) => {
|
|
280
|
+
var h = Me();
|
|
281
|
+
B(h, () => ({ class: t(a), ...u }));
|
|
282
|
+
var x = v(h);
|
|
283
|
+
G(x, e, "default", {}), i(d, h);
|
|
284
|
+
};
|
|
285
|
+
T(m, (d) => {
|
|
286
|
+
p() ? d(g) : d(n, !1);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
i(z, y), V();
|
|
290
|
+
}
|
|
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
|
+
function at(z, e) {
|
|
293
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["level", "text"]);
|
|
294
|
+
q(e, !1);
|
|
295
|
+
const l = S(), o = S();
|
|
296
|
+
let a = s(e, "level", 8, 1), r = s(e, "text", 8, "");
|
|
297
|
+
R(() => {
|
|
298
|
+
}, () => {
|
|
299
|
+
k(l, {
|
|
300
|
+
1: "text-4xl font-bold",
|
|
301
|
+
2: "text-3xl font-bold",
|
|
302
|
+
3: "text-2xl font-semibold",
|
|
303
|
+
4: "text-xl font-semibold",
|
|
304
|
+
5: "text-lg font-medium",
|
|
305
|
+
6: "text-base font-medium"
|
|
306
|
+
});
|
|
307
|
+
}), R(() => (t(l), N(a())), () => {
|
|
308
|
+
k(o, ["text-gray-900", t(l)[a()]].join(" "));
|
|
309
|
+
}), W(), O();
|
|
310
|
+
var b = H(), p = L(b);
|
|
311
|
+
{
|
|
312
|
+
var _ = (m) => {
|
|
313
|
+
var g = Ne();
|
|
314
|
+
B(g, () => ({ class: t(o), ...u }));
|
|
315
|
+
var n = v(g), d = D(n);
|
|
316
|
+
G(d, e, "default", {}), M(() => I(n, r())), i(m, g);
|
|
317
|
+
}, y = (m) => {
|
|
318
|
+
var g = H(), n = L(g);
|
|
319
|
+
{
|
|
320
|
+
var d = (x) => {
|
|
321
|
+
var P = Xe();
|
|
322
|
+
B(P, () => ({ class: t(o), ...u }));
|
|
323
|
+
var j = v(P), X = D(j);
|
|
324
|
+
G(X, e, "default", {}), M(() => I(j, r())), i(x, P);
|
|
325
|
+
}, h = (x) => {
|
|
326
|
+
var P = H(), j = L(P);
|
|
327
|
+
{
|
|
328
|
+
var X = (c) => {
|
|
329
|
+
var Y = Ye();
|
|
330
|
+
B(Y, () => ({ class: t(o), ...u }));
|
|
331
|
+
var E = v(Y), F = D(E);
|
|
332
|
+
G(F, e, "default", {}), M(() => I(E, r())), i(c, Y);
|
|
333
|
+
}, w = (c) => {
|
|
334
|
+
var Y = H(), E = L(Y);
|
|
335
|
+
{
|
|
336
|
+
var F = (J) => {
|
|
337
|
+
var K = De();
|
|
338
|
+
B(K, () => ({ class: t(o), ...u }));
|
|
339
|
+
var te = v(K), le = D(te);
|
|
340
|
+
G(le, e, "default", {}), M(() => I(te, r())), i(J, K);
|
|
341
|
+
}, ce = (J) => {
|
|
342
|
+
var K = H(), te = L(K);
|
|
343
|
+
{
|
|
344
|
+
var le = (Q) => {
|
|
345
|
+
var U = Ie();
|
|
346
|
+
B(U, () => ({ class: t(o), ...u }));
|
|
347
|
+
var ae = v(U), se = D(ae);
|
|
348
|
+
G(se, e, "default", {}), M(() => I(ae, r())), i(Q, U);
|
|
349
|
+
}, be = (Q) => {
|
|
350
|
+
var U = H(), ae = L(U);
|
|
351
|
+
{
|
|
352
|
+
var se = (re) => {
|
|
353
|
+
var oe = Re();
|
|
354
|
+
B(oe, () => ({ class: t(o), ...u }));
|
|
355
|
+
var ie = v(oe), fe = D(ie);
|
|
356
|
+
G(fe, e, "default", {}), M(() => I(ie, r())), i(re, oe);
|
|
357
|
+
};
|
|
358
|
+
T(
|
|
359
|
+
ae,
|
|
360
|
+
(re) => {
|
|
361
|
+
a() === 6 && re(se);
|
|
362
|
+
},
|
|
363
|
+
!0
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
i(Q, U);
|
|
367
|
+
};
|
|
368
|
+
T(
|
|
369
|
+
te,
|
|
370
|
+
(Q) => {
|
|
371
|
+
a() === 5 ? Q(le) : Q(be, !1);
|
|
372
|
+
},
|
|
373
|
+
!0
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
i(J, K);
|
|
377
|
+
};
|
|
378
|
+
T(
|
|
379
|
+
E,
|
|
380
|
+
(J) => {
|
|
381
|
+
a() === 4 ? J(F) : J(ce, !1);
|
|
382
|
+
},
|
|
383
|
+
!0
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
i(c, Y);
|
|
387
|
+
};
|
|
388
|
+
T(
|
|
389
|
+
j,
|
|
390
|
+
(c) => {
|
|
391
|
+
a() === 3 ? c(X) : c(w, !1);
|
|
392
|
+
},
|
|
393
|
+
!0
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
i(x, P);
|
|
397
|
+
};
|
|
398
|
+
T(
|
|
399
|
+
n,
|
|
400
|
+
(x) => {
|
|
401
|
+
a() === 2 ? x(d) : x(h, !1);
|
|
402
|
+
},
|
|
403
|
+
!0
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
i(m, g);
|
|
407
|
+
};
|
|
408
|
+
T(p, (m) => {
|
|
409
|
+
a() === 1 ? m(_) : m(y, !1);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
i(z, b), V();
|
|
413
|
+
}
|
|
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
|
+
function lt(z, e) {
|
|
416
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["value", "max", "size", "label"]);
|
|
417
|
+
q(e, !1);
|
|
418
|
+
const l = S(), o = S();
|
|
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
|
+
typeof window < "u" ? k(_, `progress-${Math.random().toString(36).substr(2, 9)}`) : k(_, `progress-ssr-${Date.now()}`), R(() => (N(a()), N(r())), () => {
|
|
421
|
+
k(l, Math.min(Math.max(a() / r() * 100, 0), 100));
|
|
422
|
+
}), R(() => {
|
|
423
|
+
}, () => {
|
|
424
|
+
k(o, { sm: "h-1", md: "h-2", lg: "h-3" });
|
|
425
|
+
}), W(), O();
|
|
426
|
+
var y = Ge(), m = v(y);
|
|
427
|
+
{
|
|
428
|
+
var g = (h) => {
|
|
429
|
+
var x = Ae(), P = v(x), j = v(P), X = D(P, 2), w = v(X);
|
|
430
|
+
M(
|
|
431
|
+
(c) => {
|
|
432
|
+
Z(P, "for", t(_)), I(j, p()), I(w, `${c ?? ""}%`);
|
|
433
|
+
},
|
|
434
|
+
[
|
|
435
|
+
() => (t(l), A(() => Math.round(t(l))))
|
|
436
|
+
]
|
|
437
|
+
), i(h, x);
|
|
438
|
+
};
|
|
439
|
+
T(m, (h) => {
|
|
440
|
+
p() && h(g);
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
var n = D(m, 2);
|
|
444
|
+
B(n, () => ({
|
|
445
|
+
id: t(_),
|
|
446
|
+
class: `w-full bg-gray-200 rounded-full overflow-hidden ${t(o), N(b()), A(() => t(o)[b()]) ?? ""}`,
|
|
447
|
+
role: "progressbar",
|
|
448
|
+
"aria-valuenow": a(),
|
|
449
|
+
"aria-valuemin": "0",
|
|
450
|
+
"aria-valuemax": r(),
|
|
451
|
+
...u
|
|
452
|
+
}));
|
|
453
|
+
var d = v(n);
|
|
454
|
+
M(() => me(d, `width: ${t(l) ?? ""}%`)), i(z, y), V();
|
|
455
|
+
}
|
|
456
|
+
var He = f("<div></div>");
|
|
457
|
+
function st(z, e) {
|
|
458
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = 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 = He();
|
|
461
|
+
B(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 Le = f('<button type="button" class="ml-3 text-gray-400 hover:text-gray-600" aria-label="Close notification">×</button>'), Oe = f('<div><div class="flex items-start"><div class="flex-1"><p> </p></div> <!></div></div>');
|
|
468
|
+
function rt(z, e) {
|
|
469
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["message", "type", "closable"]);
|
|
470
|
+
let l = s(e, "message", 8, ""), o = s(e, "type", 8, "info"), a = s(e, "closable", 8, !0), r = S(!0);
|
|
471
|
+
const b = {
|
|
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 p() {
|
|
478
|
+
k(r, !1);
|
|
479
|
+
}
|
|
480
|
+
var _ = H(), y = L(_);
|
|
481
|
+
{
|
|
482
|
+
var m = (g) => {
|
|
483
|
+
var n = Oe();
|
|
484
|
+
B(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), h = v(d), x = v(h), P = v(x), j = D(h, 2);
|
|
490
|
+
{
|
|
491
|
+
var X = (w) => {
|
|
492
|
+
var c = Le();
|
|
493
|
+
ee("click", c, p), i(w, c);
|
|
494
|
+
};
|
|
495
|
+
T(j, (w) => {
|
|
496
|
+
a() && w(X);
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
M(() => {
|
|
500
|
+
ne(x, 1, `text-sm ${N(o()), A(() => b[o()]) ?? ""}`), I(P, l());
|
|
501
|
+
}), i(g, n);
|
|
502
|
+
};
|
|
503
|
+
T(y, (g) => {
|
|
504
|
+
t(r) && g(m);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
i(z, _);
|
|
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>'), qe = f("<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(e, ["children", "$$slots", "$$events", "$$legacy"]), u = C($, ["content", "placement"]);
|
|
539
|
+
he(z, Ee);
|
|
540
|
+
let l = s(e, "content", 8, ""), o = s(e, "placement", 8, "top");
|
|
541
|
+
var a = qe();
|
|
542
|
+
B(
|
|
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
|
+
G(r, e, "default", {});
|
|
555
|
+
var b = D(r, 2);
|
|
556
|
+
{
|
|
557
|
+
var p = (_) => {
|
|
558
|
+
var y = Ve(), m = v(y);
|
|
559
|
+
M(() => I(m, l())), i(_, y);
|
|
560
|
+
};
|
|
561
|
+
T(b, (_) => {
|
|
562
|
+
l() && _(p);
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
i(z, a);
|
|
566
|
+
}
|
|
567
|
+
var Fe = f("<img/>");
|
|
568
|
+
function nt(z, e) {
|
|
569
|
+
const $ = C(e, ["children", "$$slots", "$$events", "$$legacy"]), u = 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"), b = s(e, "className", 8, "");
|
|
571
|
+
var p = Fe();
|
|
572
|
+
B(p, () => ({
|
|
573
|
+
src: l(),
|
|
574
|
+
alt: o(),
|
|
575
|
+
class: `w-full h-auto object-cover ${b() ?? ""}`,
|
|
576
|
+
style: `width: ${(typeof a() == "number" ? a() + "px" : a()) ?? ""}; height: ${(typeof r() == "number" ? r() + "px" : r()) ?? ""};`,
|
|
577
|
+
loading: "lazy",
|
|
578
|
+
...u
|
|
579
|
+
})), i(z, p);
|
|
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
|
+
};
|
package/dist/atoms/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 C, C as c, I as n, T as B } from "../Checkbox-
|
|
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-B5NMIuac.js";
|
|
2
|
+
import { B as C, C as c, I as n, T as B } from "../Checkbox-D2PLqgxA.js";
|
|
3
3
|
import { T as k } from "../ThemeToggle-Cm25ThjX.js";
|
|
4
4
|
export {
|
|
5
5
|
s as Badge,
|
package/dist/index/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { B as b, C as I, a as
|
|
3
|
-
import { T as
|
|
4
|
-
import { Alert as
|
|
1
|
+
import { B as d, C as g, I as m, T as c, d as p, c as C, a as u, g as f, b as T } from "../Checkbox-D2PLqgxA.js";
|
|
2
|
+
import { B as b, C as I, a as w, H as B, O as D, P as S, S as V, b as $, T as F, c as h, d as k } from "../OptimizedImage-B5NMIuac.js";
|
|
3
|
+
import { T as M } from "../ThemeToggle-Cm25ThjX.js";
|
|
4
|
+
import { Alert as O, ContactForm as P, Dropdown as R, Form as j, ImageUpload as y, Layout as A, Modal as E, SlideUp as H, Tabs as U } from "../molecules/index.js";
|
|
5
5
|
import { N as z, a as L } from "../Navigation-BxP-osMQ.js";
|
|
6
|
-
const t = (a = "id") => `${a}-${Math.random().toString(36).substr(2, 9)}`, s = (...a) => a.filter(Boolean).join(" "), o = (a) => {
|
|
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(" "), o = (a) => {
|
|
7
7
|
const e = new FormData(a);
|
|
8
8
|
return Object.fromEntries(e.entries());
|
|
9
9
|
}, r = (a) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a), n = (a) => a != null && a !== "";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
O as Alert,
|
|
12
12
|
b as Badge,
|
|
13
|
-
|
|
13
|
+
d as Button,
|
|
14
14
|
I as Card,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
g as Checkbox,
|
|
16
|
+
w as ColorPicker,
|
|
17
|
+
P as ContactForm,
|
|
18
|
+
R as Dropdown,
|
|
19
|
+
j as Form,
|
|
20
|
+
B as Heading,
|
|
21
|
+
y as ImageUpload,
|
|
22
|
+
m as Input,
|
|
23
|
+
A as Layout,
|
|
24
|
+
E as Modal,
|
|
25
25
|
z as Navbar,
|
|
26
26
|
L as Navigation,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
D as OptimizedImage,
|
|
28
|
+
S as Progress,
|
|
29
|
+
V as Select,
|
|
30
|
+
$ as Skeleton,
|
|
31
|
+
H as SlideUp,
|
|
32
|
+
U as Tabs,
|
|
33
33
|
c as Textarea,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
M as ThemeToggle,
|
|
35
|
+
F as Toast,
|
|
36
|
+
h as Toggle,
|
|
37
|
+
k as Tooltip,
|
|
38
38
|
s as cn,
|
|
39
39
|
t as createId,
|
|
40
40
|
p as createVariantClassMap,
|
|
41
41
|
C as getAllVariantClasses,
|
|
42
|
-
|
|
42
|
+
u as getCardVariantClasses,
|
|
43
43
|
o as getFormData,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
f as getInputVariantClasses,
|
|
45
|
+
T as getVariantClasses,
|
|
46
46
|
r as validateEmail,
|
|
47
47
|
n as validateRequired
|
|
48
48
|
};
|
package/dist/molecules/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as T, F as ie, G as le, H as de, I as ce, J as Y, y as ve, K as ue, w as E, L as fe, S as me, l as F, p as w, i as oe, f as z, a as ee, s as N, e as S, c as m, d as V, g as W, h as a, z as H, A as se, b as O, x as P, k as f, m as A, o as U, D, j as y, C as G, M as be, n as R, v as J, q as ge, r as pe, u as te, N as X, O as K } from "../props-B4BdFk2B.js";
|
|
2
|
-
import { e as ne, B as Z, I as ae, T as xe, C as he } from "../Checkbox-
|
|
2
|
+
import { e as ne, B as Z, I as ae, T as xe, C as he } from "../Checkbox-D2PLqgxA.js";
|
|
3
3
|
function we(n, e, s = !1, t = !1, v = !1) {
|
|
4
4
|
var r = n, g = "";
|
|
5
5
|
T(() => {
|