zabi-components 3.0.2 → 4.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/README.md +118 -28
- package/dist/CodeBlock-pT5-FgZd.js +431 -0
- package/dist/ContactForm-CHI_jeFY.js +580 -0
- package/dist/FeatureCard-iBFGbgVE.js +656 -0
- package/dist/Navigation-BOT-UHg0.js +104 -0
- package/dist/ThemeToggle-BlNPkAQy.js +48 -0
- package/dist/atoms/index.js +16 -13
- package/dist/index/index.js +55 -39
- package/dist/molecules/index.js +11 -566
- package/dist/organisms/index.js +1 -1
- package/dist/ssr-safe-bsWGK4V4.js +2232 -0
- package/dist/zabi-components.css +1 -1
- package/package.json +3 -3
- package/dist/Navigation-BxP-osMQ.js +0 -78
- package/dist/OptimizedImage-Dio4ZB9h.js +0 -593
- package/dist/Textarea-DP1BihDh.js +0 -259
- package/dist/ThemeToggle-Cm25ThjX.js +0 -42
- package/dist/props-B4BdFk2B.js +0 -2339
package/dist/molecules/index.js
CHANGED
|
@@ -1,568 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as ne, B as ee, I as oe, T as xe } from "../Textarea-DP1BihDh.js";
|
|
3
|
-
function pe(n, e, s = !1, t = !1, c = !1) {
|
|
4
|
-
var r = n, h = "";
|
|
5
|
-
S(() => {
|
|
6
|
-
var o = (
|
|
7
|
-
/** @type {Effect} */
|
|
8
|
-
ie
|
|
9
|
-
);
|
|
10
|
-
if (h !== (h = e() ?? "") && (o.nodes_start !== null && (le(
|
|
11
|
-
o.nodes_start,
|
|
12
|
-
/** @type {TemplateNode} */
|
|
13
|
-
o.nodes_end
|
|
14
|
-
), o.nodes_start = o.nodes_end = null), h !== "")) {
|
|
15
|
-
var i = h + "";
|
|
16
|
-
s ? i = `<svg>${i}</svg>` : t && (i = `<math>${i}</math>`);
|
|
17
|
-
var u = de(i);
|
|
18
|
-
if ((s || t) && (u = /** @type {Element} */
|
|
19
|
-
J(u)), ce(
|
|
20
|
-
/** @type {TemplateNode} */
|
|
21
|
-
J(u),
|
|
22
|
-
/** @type {TemplateNode} */
|
|
23
|
-
u.lastChild
|
|
24
|
-
), s || t)
|
|
25
|
-
for (; J(u); )
|
|
26
|
-
r.before(
|
|
27
|
-
/** @type {Node} */
|
|
28
|
-
J(u)
|
|
29
|
-
);
|
|
30
|
-
else
|
|
31
|
-
r.before(u);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function se(n, e) {
|
|
36
|
-
return n === e || (n == null ? void 0 : n[me]) === e;
|
|
37
|
-
}
|
|
38
|
-
function we(n = {}, e, s, t) {
|
|
39
|
-
return ve(() => {
|
|
40
|
-
var c, r;
|
|
41
|
-
return ue(() => {
|
|
42
|
-
c = r, r = [], T(() => {
|
|
43
|
-
n !== s(...r) && (e(n, ...r), c && se(s(...c), n) && e(null, ...c));
|
|
44
|
-
});
|
|
45
|
-
}), () => {
|
|
46
|
-
fe(() => {
|
|
47
|
-
r && se(s(...r), n) && e(null, ...r);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
}), n;
|
|
51
|
-
}
|
|
52
|
-
function ye(n) {
|
|
53
|
-
return function(...e) {
|
|
54
|
-
var s = (
|
|
55
|
-
/** @type {Event} */
|
|
56
|
-
e[0]
|
|
57
|
-
);
|
|
58
|
-
return s.preventDefault(), n == null ? void 0 : n.apply(this, e);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
var _e = k("<form><!></form>");
|
|
62
|
-
function ke(n, e) {
|
|
63
|
-
const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["method", "action", "className"]);
|
|
64
|
-
G(e, !1);
|
|
65
|
-
let c = w(e, "method", 8, "post"), r = w(e, "action", 8, ""), h = w(e, "className", 8, "");
|
|
66
|
-
function o(g) {
|
|
67
|
-
const d = new FormData(g.target);
|
|
68
|
-
Object.fromEntries(d.entries());
|
|
69
|
-
}
|
|
70
|
-
te();
|
|
71
|
-
var i = _e();
|
|
72
|
-
Q(i, () => ({
|
|
73
|
-
method: c(),
|
|
74
|
-
action: r(),
|
|
75
|
-
class: `space-y-4 ${h() ?? ""}`,
|
|
76
|
-
...t
|
|
77
|
-
}));
|
|
78
|
-
var u = a(i);
|
|
79
|
-
L(u, e, "default", {}), N("submit", i, ye(o)), b(n, i), H();
|
|
80
|
-
}
|
|
81
|
-
var ze = k('<header class="layout-header svelte-wzmt5k"><!></header> <main class="layout-main svelte-wzmt5k"><!></main> <footer class="layout-footer svelte-wzmt5k"><!></footer>', 1), qe = k('<aside class="layout-sidebar svelte-wzmt5k"><!></aside> <main class="layout-main svelte-wzmt5k"><!></main>', 1), Ce = k('<div class="layout-grid svelte-wzmt5k"><!></div>'), $e = k("<div><!></div>");
|
|
82
|
-
const Me = {
|
|
83
|
-
hash: "svelte-wzmt5k",
|
|
84
|
-
code: `.layout.svelte-wzmt5k {min-height:100vh}.layout-main.svelte-wzmt5k {display:flex;flex-direction:column}.layout-sidebar.svelte-wzmt5k {width:16rem;border-right-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface-secondary))}.layout-grid.svelte-wzmt5k {display:grid;grid-template-columns:repeat(1, minmax(0, 1fr))}
|
|
85
|
-
|
|
86
|
-
@media (min-width: 768px) {.layout-grid.svelte-wzmt5k {grid-template-columns:repeat(2, minmax(0, 1fr))}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@media (min-width: 1024px) {.layout-grid.svelte-wzmt5k {grid-template-columns:repeat(3, minmax(0, 1fr))}
|
|
90
|
-
}.layout-header.svelte-wzmt5k {border-bottom-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface));padding:1rem}.layout-footer.svelte-wzmt5k {margin-top:auto;border-top-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface-secondary));padding:1rem}`
|
|
91
|
-
};
|
|
92
|
-
function Xe(n, e) {
|
|
93
|
-
const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["variant", "gap", "className"]);
|
|
94
|
-
G(e, !1), ne(n, Me);
|
|
95
|
-
const c = I();
|
|
96
|
-
let r = w(e, "variant", 8, "main"), h = w(e, "gap", 8, "md"), o = w(e, "className", 8, "");
|
|
97
|
-
Y(() => R(h()), () => {
|
|
98
|
-
P(c, `gap-${h()}`);
|
|
99
|
-
}), ae();
|
|
100
|
-
var i = $e();
|
|
101
|
-
Q(
|
|
102
|
-
i,
|
|
103
|
-
() => ({
|
|
104
|
-
class: `layout layout-${r() ?? ""} ${m(c) ?? ""} ${o() ?? ""}`,
|
|
105
|
-
...t
|
|
106
|
-
}),
|
|
107
|
-
void 0,
|
|
108
|
-
void 0,
|
|
109
|
-
"svelte-wzmt5k"
|
|
110
|
-
);
|
|
111
|
-
var u = a(i);
|
|
112
|
-
{
|
|
113
|
-
var g = (l) => {
|
|
114
|
-
var x = ze(), p = D(x), v = a(p);
|
|
115
|
-
L(v, e, "header", {});
|
|
116
|
-
var y = _(p, 2), f = a(y);
|
|
117
|
-
L(f, e, "main", {});
|
|
118
|
-
var z = _(y, 2), q = a(z);
|
|
119
|
-
L(q, e, "footer", {}), b(l, x);
|
|
120
|
-
}, d = (l) => {
|
|
121
|
-
var x = W(), p = D(x);
|
|
122
|
-
{
|
|
123
|
-
var v = (f) => {
|
|
124
|
-
var z = qe(), q = D(z), $ = a(q);
|
|
125
|
-
L($, e, "sidebar", {});
|
|
126
|
-
var M = _(q, 2), C = a(M);
|
|
127
|
-
L(C, e, "main", {}), b(f, z);
|
|
128
|
-
}, y = (f) => {
|
|
129
|
-
var z = W(), q = D(z);
|
|
130
|
-
{
|
|
131
|
-
var $ = (M) => {
|
|
132
|
-
var C = Ce(), O = a(C);
|
|
133
|
-
L(O, e, "default", {}), b(M, C);
|
|
134
|
-
};
|
|
135
|
-
j(
|
|
136
|
-
q,
|
|
137
|
-
(M) => {
|
|
138
|
-
r() === "grid" && M($);
|
|
139
|
-
},
|
|
140
|
-
!0
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
b(f, z);
|
|
144
|
-
};
|
|
145
|
-
j(
|
|
146
|
-
p,
|
|
147
|
-
(f) => {
|
|
148
|
-
r() === "sidebar" ? f(v) : f(y, !1);
|
|
149
|
-
},
|
|
150
|
-
!0
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
b(l, x);
|
|
154
|
-
};
|
|
155
|
-
j(u, (l) => {
|
|
156
|
-
r() === "main" ? l(g) : l(d, !1);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
b(n, i), H();
|
|
160
|
-
}
|
|
161
|
-
var Le = k('<div class="flex justify-end gap-3 p-6 border-t border-gray-200"><!></div>'), Ne = k('<div class="fixed inset-0 bg-black/50 flex items-center justify-center p-4 z-50" role="dialog" aria-modal="true" tabindex="-1"><div class="bg-white rounded-lg shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto"><div class="flex items-center justify-between p-6 border-b border-gray-200"><h2 class="text-xl font-semibold text-gray-900"> </h2> <button type="button" class="text-gray-400 hover:text-gray-600 text-2xl" aria-label="Close">×</button></div> <div class="p-6"><!></div> <!></div></div>');
|
|
162
|
-
function Ze(n, e) {
|
|
163
|
-
const s = be(e);
|
|
164
|
-
let t = w(e, "isOpen", 12, !1), c = w(e, "title", 8, "");
|
|
165
|
-
function r() {
|
|
166
|
-
t(!1);
|
|
167
|
-
}
|
|
168
|
-
function h(d) {
|
|
169
|
-
d.target === d.currentTarget && r();
|
|
170
|
-
}
|
|
171
|
-
function o(d) {
|
|
172
|
-
d.key === "Escape" && r();
|
|
173
|
-
}
|
|
174
|
-
var i = W(), u = D(i);
|
|
175
|
-
{
|
|
176
|
-
var g = (d) => {
|
|
177
|
-
var l = Ne(), x = a(l), p = a(x), v = a(p), y = a(v), f = _(v, 2), z = _(p, 2), q = a(z);
|
|
178
|
-
L(q, e, "default", {});
|
|
179
|
-
var $ = _(z, 2);
|
|
180
|
-
{
|
|
181
|
-
var M = (C) => {
|
|
182
|
-
var O = Le(), F = a(O);
|
|
183
|
-
L(F, e, "footer", {}), b(C, O);
|
|
184
|
-
};
|
|
185
|
-
j($, (C) => {
|
|
186
|
-
T(() => s.footer) && C(M);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
S(() => U(y, c())), N("click", f, r), N("click", l, h), N("keydown", l, o), b(d, l);
|
|
190
|
-
};
|
|
191
|
-
j(u, (d) => {
|
|
192
|
-
t() && d(g);
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
b(n, i);
|
|
196
|
-
}
|
|
197
|
-
var Se = k('<div class="flex items-center justify-between p-4 border-b border-gray-200"><h3 class="text-lg font-semibold text-gray-900"> </h3> <button type="button" class="text-gray-400 hover:text-gray-600 text-2xl" aria-label="Close">×</button></div>'), je = k('<div class="fixed inset-0 bg-black/50 z-50" role="dialog" aria-modal="true" tabindex="-1"></div> <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 rounded-t-xl shadow-xl z-50 max-h-[80vh] overflow-y-auto" role="dialog" aria-modal="true"><!> <div class="p-4"><!></div></div>', 1);
|
|
198
|
-
function et(n, e) {
|
|
199
|
-
let s = w(e, "isOpen", 12, !1), t = w(e, "title", 8, "");
|
|
200
|
-
function c() {
|
|
201
|
-
s(!1);
|
|
202
|
-
}
|
|
203
|
-
function r(g) {
|
|
204
|
-
g.target === g.currentTarget && c();
|
|
205
|
-
}
|
|
206
|
-
function h(g) {
|
|
207
|
-
g.key === "Escape" && c();
|
|
208
|
-
}
|
|
209
|
-
var o = W(), i = D(o);
|
|
210
|
-
{
|
|
211
|
-
var u = (g) => {
|
|
212
|
-
var d = je(), l = D(d), x = _(l, 2), p = a(x);
|
|
213
|
-
{
|
|
214
|
-
var v = (z) => {
|
|
215
|
-
var q = Se(), $ = a(q), M = a($), C = _($, 2);
|
|
216
|
-
S(() => U(M, t())), N("click", C, c), b(z, q);
|
|
217
|
-
};
|
|
218
|
-
j(p, (z) => {
|
|
219
|
-
t() && z(v);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
var y = _(p, 2), f = a(y);
|
|
223
|
-
L(f, e, "default", {}), N("click", l, r), N("keydown", l, h), b(g, d);
|
|
224
|
-
};
|
|
225
|
-
j(i, (g) => {
|
|
226
|
-
s() && g(u);
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
b(n, o);
|
|
230
|
-
}
|
|
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 Oe = {
|
|
233
|
-
hash: "svelte-1o1q13x",
|
|
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
|
-
0 4px 6px -2px rgba(0, 0, 0, 0.05);min-width:12rem;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
|
|
236
|
-
visibility 0.2s ease-in-out,
|
|
237
|
-
transform 0.2s ease-in-out;}
|
|
238
|
-
|
|
239
|
-
/* Positioning based on data-placement */.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {top:calc(100% + 8px);left:0;transform:translateY(4px);}.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {top:calc(100% + 8px);right:0;transform:translateY(4px);}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {bottom:calc(100% + 8px);left:0;transform:translateY(-4px);}.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {bottom:calc(100% + 8px);right:0;transform:translateY(-4px);}
|
|
240
|
-
|
|
241
|
-
/* Show on hover/focus */.dropdown-container.svelte-1o1q13x:hover .dropdown-content:where(.svelte-1o1q13x),
|
|
242
|
-
.dropdown-container.svelte-1o1q13x:focus-within .dropdown-content:where(.svelte-1o1q13x) {opacity:1;visibility:visible;transform:translateY(0);}
|
|
243
|
-
|
|
244
|
-
/* Arrow styling */.dropdown-content.svelte-1o1q13x::before {content:"";position:absolute;width:0;height:0;border-style:solid;border-width:6px;border-color:transparent;}.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x
|
|
245
|
-
.dropdown-content:where(.svelte-1o1q13x)::before,
|
|
246
|
-
.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {top:-6px;border-bottom-color:white;}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before,
|
|
247
|
-
.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {bottom:-6px;border-top-color:white;}.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x
|
|
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
|
-
};
|
|
250
|
-
function tt(n, e) {
|
|
251
|
-
ne(n, Oe);
|
|
252
|
-
let s = w(e, "isOpen", 8, !1), t = w(e, "placement", 8, "bottom-start");
|
|
253
|
-
var c = Te(), r = a(c);
|
|
254
|
-
L(r, e, "trigger", {});
|
|
255
|
-
var h = _(r, 2);
|
|
256
|
-
{
|
|
257
|
-
var o = (i) => {
|
|
258
|
-
var u = Ee(), g = a(u);
|
|
259
|
-
L(g, e, "default", {}), b(i, u);
|
|
260
|
-
};
|
|
261
|
-
j(h, (i) => {
|
|
262
|
-
s() && i(o);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
S(() => K(c, "data-placement", t())), b(n, c);
|
|
266
|
-
}
|
|
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
|
-
function at(n, e) {
|
|
269
|
-
G(e, !1);
|
|
270
|
-
let s = w(e, "tabs", 24, () => []), t = w(e, "activeTab", 12, ""), c = w(e, "variant", 8, "default");
|
|
271
|
-
function r(d) {
|
|
272
|
-
t(d);
|
|
273
|
-
}
|
|
274
|
-
function h(d) {
|
|
275
|
-
if (d.key === "ArrowLeft" || d.key === "ArrowRight") {
|
|
276
|
-
const l = s().findIndex((v) => v.id === t()), x = d.key === "ArrowLeft" ? -1 : 1, p = (l + x + s().length) % s().length;
|
|
277
|
-
r(s()[p].id);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
te();
|
|
281
|
-
var o = De(), i = a(o);
|
|
282
|
-
ge(i, 5, s, he, (d, l) => {
|
|
283
|
-
var x = Be(), p = a(x);
|
|
284
|
-
S(() => {
|
|
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
|
-
}), N("click", x, () => r(m(l).id)), b(d, x);
|
|
287
|
-
});
|
|
288
|
-
var u = _(i, 2), g = a(u);
|
|
289
|
-
L(
|
|
290
|
-
g,
|
|
291
|
-
e,
|
|
292
|
-
"default",
|
|
293
|
-
{
|
|
294
|
-
get activeTab() {
|
|
295
|
-
return t();
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
), N("keydown", i, h), b(n, o), H();
|
|
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>'), Fe = k('<div><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
|
|
301
|
-
function rt(n, e) {
|
|
302
|
-
const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["variant", "title", "message", "closable", "className"]);
|
|
303
|
-
G(e, !1);
|
|
304
|
-
const c = I(), r = I(), h = I();
|
|
305
|
-
let o = w(e, "variant", 8, "info"), i = w(e, "title", 8, ""), u = w(e, "message", 8, ""), g = w(e, "closable", 8, !1), d = w(e, "className", 8, "");
|
|
306
|
-
function l(E) {
|
|
307
|
-
}
|
|
308
|
-
Y(() => {
|
|
309
|
-
}, () => {
|
|
310
|
-
P(c, {
|
|
311
|
-
info: "bg-info-surface text-info-text border border-info",
|
|
312
|
-
success: "bg-success-surface text-success-text border border-success",
|
|
313
|
-
warning: "bg-warning-surface text-warning-text border border-warning",
|
|
314
|
-
error: "bg-error-surface text-error-text border border-error"
|
|
315
|
-
});
|
|
316
|
-
}), Y(() => R(o()), () => {
|
|
317
|
-
P(r, o() === "success" || o() === "info" ? "status" : "alert");
|
|
318
|
-
}), Y(() => {
|
|
319
|
-
}, () => {
|
|
320
|
-
P(h, {
|
|
321
|
-
info: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
322
|
-
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
|
|
323
|
-
</svg>`,
|
|
324
|
-
success: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
325
|
-
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
|
326
|
-
</svg>`,
|
|
327
|
-
warning: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
328
|
-
<path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
|
|
329
|
-
</svg>`,
|
|
330
|
-
error: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
|
|
331
|
-
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd" />
|
|
332
|
-
</svg>`
|
|
333
|
-
});
|
|
334
|
-
}), ae();
|
|
335
|
-
var x = Fe();
|
|
336
|
-
Q(x, () => ({
|
|
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
|
-
role: m(r),
|
|
339
|
-
"aria-live": o() === "success" || o() === "info" ? "polite" : "assertive",
|
|
340
|
-
"aria-atomic": "true",
|
|
341
|
-
...t
|
|
342
|
-
}));
|
|
343
|
-
var p = a(x);
|
|
344
|
-
{
|
|
345
|
-
var v = (E) => {
|
|
346
|
-
var B = Ie();
|
|
347
|
-
N("click", B, l), b(E, B);
|
|
348
|
-
};
|
|
349
|
-
j(p, (E) => {
|
|
350
|
-
g() && E(v);
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
var y = _(p, 2), f = a(y), z = a(f);
|
|
354
|
-
pe(z, () => (m(h), R(o()), T(() => m(h)[o()])));
|
|
355
|
-
var q = _(f, 2), $ = a(q);
|
|
356
|
-
{
|
|
357
|
-
var M = (E) => {
|
|
358
|
-
var B = Pe(), X = a(B);
|
|
359
|
-
S(() => U(X, i())), b(E, B);
|
|
360
|
-
};
|
|
361
|
-
j($, (E) => {
|
|
362
|
-
i() && E(M);
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
var C = _($, 2);
|
|
366
|
-
{
|
|
367
|
-
var O = (E) => {
|
|
368
|
-
var B = Ae(), X = a(B);
|
|
369
|
-
S(() => U(X, u())), b(E, B);
|
|
370
|
-
};
|
|
371
|
-
j(C, (E) => {
|
|
372
|
-
u() && E(O);
|
|
373
|
-
});
|
|
374
|
-
}
|
|
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
|
-
}
|
|
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
|
-
function ot(n, e) {
|
|
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
|
-
function o(v) {
|
|
382
|
-
const y = v.target;
|
|
383
|
-
if (!y.files || y.files.length === 0) return;
|
|
384
|
-
const f = y.files[0], z = URL.createObjectURL(f);
|
|
385
|
-
s(z);
|
|
386
|
-
}
|
|
387
|
-
function i() {
|
|
388
|
-
s() && URL.revokeObjectURL(s()), s(null);
|
|
389
|
-
}
|
|
390
|
-
function u() {
|
|
391
|
-
var v;
|
|
392
|
-
(v = m(h)) == null || v.click();
|
|
393
|
-
}
|
|
394
|
-
var g = Ye(), d = a(g);
|
|
395
|
-
{
|
|
396
|
-
var l = (v) => {
|
|
397
|
-
var y = Re(), f = a(y), z = _(f, 2), q = a(z), $ = a(q);
|
|
398
|
-
ee($, {
|
|
399
|
-
variant: "secondary",
|
|
400
|
-
size: "sm",
|
|
401
|
-
get disabled() {
|
|
402
|
-
return t();
|
|
403
|
-
},
|
|
404
|
-
$$events: { click: u },
|
|
405
|
-
children: (C, O) => {
|
|
406
|
-
var F = Z("Change");
|
|
407
|
-
b(C, F);
|
|
408
|
-
},
|
|
409
|
-
$$slots: { default: !0 }
|
|
410
|
-
});
|
|
411
|
-
var M = _($, 2);
|
|
412
|
-
ee(M, {
|
|
413
|
-
variant: "danger",
|
|
414
|
-
size: "sm",
|
|
415
|
-
get disabled() {
|
|
416
|
-
return t();
|
|
417
|
-
},
|
|
418
|
-
$$events: { click: i },
|
|
419
|
-
children: (C, O) => {
|
|
420
|
-
var F = Z("Remove");
|
|
421
|
-
b(C, F);
|
|
422
|
-
},
|
|
423
|
-
$$slots: { default: !0 }
|
|
424
|
-
}), S(() => K(f, "src", s())), b(v, y);
|
|
425
|
-
}, x = (v) => {
|
|
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
|
-
};
|
|
429
|
-
j(d, (v) => {
|
|
430
|
-
s() ? v(l) : v(x, !1);
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
var p = _(d, 2);
|
|
434
|
-
we(p, (v) => P(h, v), () => m(h)), S(() => K(p, "accept", c())), N("change", p, o), b(n, g);
|
|
435
|
-
}
|
|
436
|
-
var Ke = k('<label class="text-sm font-medium cursor-pointer"> </label>'), He = k('<div class="flex items-center gap-2"><input/> <!></div>');
|
|
437
|
-
function Ge(n, e) {
|
|
438
|
-
const s = A(e, ["children", "$$slots", "$$events", "$$legacy"]), t = A(s, ["checked", "disabled", "label"]);
|
|
439
|
-
G(e, !1);
|
|
440
|
-
const c = I();
|
|
441
|
-
let r = w(e, "checked", 12, !1), h = w(e, "disabled", 8, !1), o = w(e, "label", 8, ""), i = I();
|
|
442
|
-
typeof window < "u" ? P(i, `checkbox-${Math.random().toString(36).substr(2, 9)}`) : P(i, `checkbox-ssr-${Date.now()}`);
|
|
443
|
-
function u(p) {
|
|
444
|
-
const v = p.target;
|
|
445
|
-
r(v.checked);
|
|
446
|
-
}
|
|
447
|
-
Y(() => {
|
|
448
|
-
}, () => {
|
|
449
|
-
P(c, [
|
|
450
|
-
"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded",
|
|
451
|
-
"focus:ring-blue-500 focus:ring-2",
|
|
452
|
-
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
453
|
-
].join(" "));
|
|
454
|
-
}), ae(), te();
|
|
455
|
-
var g = He(), d = a(g);
|
|
456
|
-
Q(
|
|
457
|
-
d,
|
|
458
|
-
() => ({
|
|
459
|
-
type: "checkbox",
|
|
460
|
-
id: m(i),
|
|
461
|
-
checked: r(),
|
|
462
|
-
disabled: h(),
|
|
463
|
-
class: m(c),
|
|
464
|
-
...t
|
|
465
|
-
}),
|
|
466
|
-
void 0,
|
|
467
|
-
void 0,
|
|
468
|
-
void 0,
|
|
469
|
-
!0
|
|
470
|
-
);
|
|
471
|
-
var l = _(d, 2);
|
|
472
|
-
{
|
|
473
|
-
var x = (p) => {
|
|
474
|
-
var v = Ke(), y = a(v);
|
|
475
|
-
S(() => {
|
|
476
|
-
K(v, "for", m(i)), U(y, o());
|
|
477
|
-
}), b(p, v);
|
|
478
|
-
};
|
|
479
|
-
j(l, (p) => {
|
|
480
|
-
o() && p(x);
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
N("change", d, u), b(n, g), H();
|
|
484
|
-
}
|
|
485
|
-
var Je = k('<div class="space-y-4"><!> <!> <!> <!></div> <div class="pt-4"><!></div>', 1), Ve = k(`<div><div class="mb-6"><h2 class="text-2xl font-bold text-text mb-2">Get in Touch</h2> <p class="text-text-secondary">We'd love to hear from you. Send us a message and we'll respond as
|
|
486
|
-
soon as possible.</p></div> <!></div>`);
|
|
487
|
-
function st(n, e) {
|
|
488
|
-
let s = w(e, "className", 8, ""), t = I({ name: "", email: "", message: "", subscribe: !1 });
|
|
489
|
-
function c(o) {
|
|
490
|
-
o.detail.data.name, o.detail.data.email, o.detail.data.message, o.detail.data.subscribe;
|
|
491
|
-
}
|
|
492
|
-
var r = Ve(), h = _(a(r), 2);
|
|
493
|
-
ke(h, {
|
|
494
|
-
className: "space-y-4",
|
|
495
|
-
$$events: { submit: c },
|
|
496
|
-
children: (o, i) => {
|
|
497
|
-
var u = Je(), g = D(u), d = a(g);
|
|
498
|
-
oe(d, {
|
|
499
|
-
type: "text",
|
|
500
|
-
label: "Name",
|
|
501
|
-
placeholder: "Enter your name",
|
|
502
|
-
get value() {
|
|
503
|
-
return m(t), T(() => m(t).name);
|
|
504
|
-
},
|
|
505
|
-
$$events: {
|
|
506
|
-
input: (f) => V(t, m(t).name = f.target.value)
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
var l = _(d, 2);
|
|
510
|
-
oe(l, {
|
|
511
|
-
type: "email",
|
|
512
|
-
label: "Email",
|
|
513
|
-
placeholder: "Enter your email",
|
|
514
|
-
get value() {
|
|
515
|
-
return m(t), T(() => m(t).email);
|
|
516
|
-
},
|
|
517
|
-
$$events: {
|
|
518
|
-
input: (f) => V(t, m(t).email = f.target.value)
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
var x = _(l, 2);
|
|
522
|
-
xe(x, {
|
|
523
|
-
label: "Message",
|
|
524
|
-
placeholder: "Enter your message",
|
|
525
|
-
rows: 4,
|
|
526
|
-
get value() {
|
|
527
|
-
return m(t), T(() => m(t).message);
|
|
528
|
-
},
|
|
529
|
-
$$events: {
|
|
530
|
-
input: (f) => V(t, m(t).message = f.target.value)
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
var p = _(x, 2);
|
|
534
|
-
Ge(p, {
|
|
535
|
-
label: "Subscribe to updates",
|
|
536
|
-
get checked() {
|
|
537
|
-
return m(t), T(() => m(t).subscribe);
|
|
538
|
-
},
|
|
539
|
-
$$events: {
|
|
540
|
-
change: (f) => V(t, m(t).subscribe = f.target.checked)
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
var v = _(g, 2), y = a(v);
|
|
544
|
-
ee(y, {
|
|
545
|
-
type: "submit",
|
|
546
|
-
variant: "primary",
|
|
547
|
-
size: "md",
|
|
548
|
-
children: (f, z) => {
|
|
549
|
-
var q = Z("Send Message");
|
|
550
|
-
b(f, q);
|
|
551
|
-
},
|
|
552
|
-
$$slots: { default: !0 }
|
|
553
|
-
}), b(o, u);
|
|
554
|
-
},
|
|
555
|
-
$$slots: { default: !0 }
|
|
556
|
-
}), S(() => re(r, 1, `max-w-md mx-auto ${s() ?? ""}`)), b(n, r);
|
|
557
|
-
}
|
|
1
|
+
import { A as s, C as e, a as m, D as r, F as t, I as p, L as d, M as l, S as n, T as C } from "../ContactForm-CHI_jeFY.js";
|
|
558
2
|
export {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
3
|
+
s as Alert,
|
|
4
|
+
e as ComponentDemo,
|
|
5
|
+
m as ContactForm,
|
|
6
|
+
r as Dropdown,
|
|
7
|
+
t as Form,
|
|
8
|
+
p as ImageUpload,
|
|
9
|
+
d as Layout,
|
|
10
|
+
l as Modal,
|
|
11
|
+
n as SlideUp,
|
|
12
|
+
C as Tabs
|
|
568
13
|
};
|
package/dist/organisms/index.js
CHANGED