zabi-components 3.0.2 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,85 +1,52 @@
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
- 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;
1
+ import { o as te, K as ae, L as re, M as oe, S as ne, p as b, f as _, a as A, q as j, b as s, c as G, d as V, r as Y, w as M, h as r, i as S, g as N, v as F, I as R, y as x, H as I, D, t as E, C as U, B as P, F as ie, G as se, z as W, N as K, e as Z, s as $, E as ee, x as le } from "../props-BKbHJRuR.js";
2
+ import { f as J, h as de, B as H, e as ce, I as Q, T as ve, C as ue } from "../CodeBlock-Bbv6JfD2.js";
3
+ function X(t, e) {
4
+ return t === e || (t == null ? void 0 : t[ne]) === e;
37
5
  }
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));
6
+ function me(t = {}, e, a, o) {
7
+ return te(() => {
8
+ var i, n;
9
+ return ae(() => {
10
+ i = n, n = [], oe(() => {
11
+ t !== a(...n) && (e(t, ...n), i && X(a(...i), t) && e(null, ...i));
44
12
  });
45
13
  }), () => {
46
- fe(() => {
47
- r && se(s(...r), n) && e(null, ...r);
14
+ re(() => {
15
+ n && X(a(...n), t) && e(null, ...n);
48
16
  });
49
17
  };
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
- };
18
+ }), t;
60
19
  }
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());
20
+ var fe = _("<form><!></form>");
21
+ function be(t, e) {
22
+ V(e, !0);
23
+ let a = b(e, "method", 3, "post"), o = b(e, "action", 3, ""), i = b(e, "className", 3, ""), n = Y(e, [
24
+ "$$slots",
25
+ "$$events",
26
+ "$$legacy",
27
+ "method",
28
+ "action",
29
+ "className",
30
+ "onsubmit",
31
+ "children"
32
+ ]);
33
+ function g(u) {
34
+ const h = new FormData(u.target);
35
+ Object.fromEntries(h.entries()), e.onsubmit && e.onsubmit(u);
69
36
  }
70
- te();
71
- var i = _e();
72
- Q(i, () => ({
73
- method: c(),
74
- action: r(),
75
- class: `space-y-4 ${h() ?? ""}`,
76
- ...t
37
+ var c = fe();
38
+ A(c, () => ({
39
+ method: a(),
40
+ action: o(),
41
+ class: `space-y-4 ${i() ?? ""}`,
42
+ onsubmit: g,
43
+ ...n
77
44
  }));
78
- var u = a(i);
79
- L(u, e, "default", {}), N("submit", i, ye(o)), b(n, i), H();
45
+ var d = r(c);
46
+ j(d, () => e.children ?? M), s(t, c), G();
80
47
  }
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 = {
48
+ var ge = _('<header class="layout-header svelte-wzmt5k"><!></header> <main class="layout-main svelte-wzmt5k"><!></main> <footer class="layout-footer svelte-wzmt5k"><!></footer>', 1), xe = _('<aside class="layout-sidebar svelte-wzmt5k"><!></aside> <main class="layout-main svelte-wzmt5k"><!></main>', 1), he = _('<div class="layout-grid svelte-wzmt5k"><!></div>'), pe = _("<div><!></div>");
49
+ const we = {
83
50
  hash: "svelte-wzmt5k",
84
51
  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
52
 
@@ -89,147 +56,161 @@ const Me = {
89
56
  @media (min-width: 1024px) {.layout-grid.svelte-wzmt5k {grid-template-columns:repeat(3, minmax(0, 1fr))}
90
57
  }.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
58
  };
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,
59
+ function rt(t, e) {
60
+ J(t, we);
61
+ let a = b(e, "variant", 3, "main"), o = b(e, "gap", 3, "md"), i = b(e, "className", 3, ""), n = Y(e, [
62
+ "$$slots",
63
+ "$$events",
64
+ "$$legacy",
65
+ "variant",
66
+ "gap",
67
+ "className",
68
+ "children",
69
+ "header",
70
+ "main",
71
+ "footer",
72
+ "sidebar"
73
+ ]), g = F(() => `gap-${o()}`);
74
+ var c = pe();
75
+ A(
76
+ c,
103
77
  () => ({
104
- class: `layout layout-${r() ?? ""} ${m(c) ?? ""} ${o() ?? ""}`,
105
- ...t
78
+ class: `layout layout-${a() ?? ""} ${N(g) ?? ""} ${i() ?? ""}`,
79
+ ...n
106
80
  }),
107
81
  void 0,
108
82
  void 0,
109
83
  "svelte-wzmt5k"
110
84
  );
111
- var u = a(i);
85
+ var d = r(c);
112
86
  {
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);
87
+ var u = (m) => {
88
+ var f = ge(), k = R(f), p = r(k);
89
+ j(p, () => e.header ?? M);
90
+ var w = x(k, 2), y = r(w);
91
+ j(y, () => e.main ?? M);
92
+ var v = x(w, 2), q = r(v);
93
+ j(q, () => e.footer ?? M), s(m, f);
94
+ }, h = (m) => {
95
+ var f = I(), k = R(f);
122
96
  {
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);
97
+ var p = (y) => {
98
+ var v = xe(), q = R(v), z = r(q);
99
+ j(z, () => e.sidebar ?? M);
100
+ var L = x(q, 2), B = r(L);
101
+ j(B, () => e.main ?? M), s(y, v);
102
+ }, w = (y) => {
103
+ var v = I(), q = R(v);
130
104
  {
131
- var $ = (M) => {
132
- var C = Ce(), O = a(C);
133
- L(O, e, "default", {}), b(M, C);
105
+ var z = (L) => {
106
+ var B = he(), O = r(B);
107
+ j(O, () => e.children ?? M), s(L, B);
134
108
  };
135
- j(
109
+ S(
136
110
  q,
137
- (M) => {
138
- r() === "grid" && M($);
111
+ (L) => {
112
+ a() === "grid" && L(z);
139
113
  },
140
114
  !0
141
115
  );
142
116
  }
143
- b(f, z);
117
+ s(y, v);
144
118
  };
145
- j(
146
- p,
147
- (f) => {
148
- r() === "sidebar" ? f(v) : f(y, !1);
119
+ S(
120
+ k,
121
+ (y) => {
122
+ a() === "sidebar" ? y(p) : y(w, !1);
149
123
  },
150
124
  !0
151
125
  );
152
126
  }
153
- b(l, x);
127
+ s(m, f);
154
128
  };
155
- j(u, (l) => {
156
- r() === "main" ? l(g) : l(d, !1);
129
+ S(d, (m) => {
130
+ a() === "main" ? m(u) : m(h, !1);
157
131
  });
158
132
  }
159
- b(n, i), H();
133
+ s(t, c);
160
134
  }
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();
135
+ function ye(t, e) {
136
+ t.target === t.currentTarget && e();
137
+ }
138
+ function _e(t, e) {
139
+ t.key === "Escape" && e();
140
+ }
141
+ var ke = _('<div class="flex justify-end gap-3 p-6 border-t border-gray-200"><!></div>'), qe = _('<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>');
142
+ function ot(t, e) {
143
+ let a = b(e, "isOpen", 7, !1), o = b(e, "title", 3, "");
144
+ function i() {
145
+ a(!1);
173
146
  }
174
- var i = W(), u = D(i);
147
+ var n = I(), g = R(n);
175
148
  {
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);
149
+ var c = (d) => {
150
+ var u = qe();
151
+ u.__click = [ye, i], u.__keydown = [_e, i];
152
+ var h = r(u), m = r(h), f = r(m), k = r(f), p = x(f, 2);
153
+ p.__click = i;
154
+ var w = x(m, 2), y = r(w);
155
+ j(y, () => e.children ?? M);
156
+ var v = x(w, 2);
180
157
  {
181
- var M = (C) => {
182
- var O = Le(), F = a(O);
183
- L(F, e, "footer", {}), b(C, O);
158
+ var q = (z) => {
159
+ var L = ke(), B = r(L);
160
+ j(B, () => e.footer ?? M), s(z, L);
184
161
  };
185
- j($, (C) => {
186
- T(() => s.footer) && C(M);
162
+ S(v, (z) => {
163
+ e.footer && z(q);
187
164
  });
188
165
  }
189
- S(() => U(y, c())), N("click", f, r), N("click", l, h), N("keydown", l, o), b(d, l);
166
+ E(() => U(k, o())), s(d, u);
190
167
  };
191
- j(u, (d) => {
192
- t() && d(g);
168
+ S(g, (d) => {
169
+ a() && d(c);
193
170
  });
194
171
  }
195
- b(n, i);
172
+ s(t, n);
196
173
  }
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();
174
+ D(["click", "keydown"]);
175
+ function ze(t, e) {
176
+ t.target === t.currentTarget && e();
177
+ }
178
+ function Ce(t, e) {
179
+ t.key === "Escape" && e();
180
+ }
181
+ var Le = _('<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 = _('<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);
182
+ function nt(t, e) {
183
+ let a = b(e, "isOpen", 7, !1), o = b(e, "title", 3, "");
184
+ function i() {
185
+ a(!1);
208
186
  }
209
- var o = W(), i = D(o);
187
+ var n = I(), g = R(n);
210
188
  {
211
- var u = (g) => {
212
- var d = je(), l = D(d), x = _(l, 2), p = a(x);
189
+ var c = (d) => {
190
+ var u = je(), h = R(u);
191
+ h.__click = [ze, i], h.__keydown = [Ce, i];
192
+ var m = x(h, 2), f = r(m);
213
193
  {
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);
194
+ var k = (y) => {
195
+ var v = Le(), q = r(v), z = r(q), L = x(q, 2);
196
+ L.__click = i, E(() => U(z, o())), s(y, v);
217
197
  };
218
- j(p, (z) => {
219
- t() && z(v);
198
+ S(f, (y) => {
199
+ o() && y(k);
220
200
  });
221
201
  }
222
- var y = _(p, 2), f = a(y);
223
- L(f, e, "default", {}), N("click", l, r), N("keydown", l, h), b(g, d);
202
+ var p = x(f, 2), w = r(p);
203
+ j(w, () => e.children ?? M), s(d, u);
224
204
  };
225
- j(i, (g) => {
226
- s() && g(u);
205
+ S(g, (d) => {
206
+ a() && d(c);
227
207
  });
228
208
  }
229
- b(n, o);
209
+ s(t, n);
230
210
  }
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 = {
211
+ D(["click", "keydown"]);
212
+ var Me = _('<div class="dropdown-content opacity-100 visible transform-none group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-1o1q13x"><!></div>'), Ne = _('<div class="dropdown-container group relative inline-block svelte-1o1q13x"><!> <!></div>');
213
+ const Se = {
233
214
  hash: "svelte-1o1q13x",
234
215
  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
216
  0 4px 6px -2px rgba(0, 0, 0, 0.05);min-width:12rem;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
@@ -247,322 +228,353 @@ const Oe = {
247
228
  .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
229
  .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
230
  };
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);
231
+ function it(t, e) {
232
+ J(t, Se);
233
+ let a = b(e, "isOpen", 3, !1), o = b(e, "placement", 3, "bottom-start");
234
+ var i = Ne(), n = r(i);
235
+ j(n, () => e.trigger ?? M);
236
+ var g = x(n, 2);
256
237
  {
257
- var o = (i) => {
258
- var u = Ee(), g = a(u);
259
- L(g, e, "default", {}), b(i, u);
238
+ var c = (d) => {
239
+ var u = Me(), h = r(u);
240
+ j(h, () => e.children ?? M), s(d, u);
260
241
  };
261
- j(h, (i) => {
262
- s() && i(o);
242
+ S(g, (d) => {
243
+ a() && d(c);
263
244
  });
264
245
  }
265
- S(() => K(c, "data-placement", t())), b(n, c);
246
+ E(() => P(i, "data-placement", o())), s(t, i);
266
247
  }
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);
248
+ function Be(t, e, a, o) {
249
+ if (t.key === "ArrowLeft" || t.key === "ArrowRight") {
250
+ const i = e().findIndex((c) => c.id === a()), n = t.key === "ArrowLeft" ? -1 : 1, g = (i + n + e().length) % e().length;
251
+ o(e()[g].id);
273
252
  }
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
- }
253
+ }
254
+ var Ee = (t, e, a) => e(N(a).id), Re = _('<button type="button" role="tab"> </button>'), Ue = _('<div class="tabs-container"><div class="flex border-b border-gray-200" role="tablist" tabindex="0"></div> <div class="mt-4"><!></div></div>');
255
+ function st(t, e) {
256
+ V(e, !0);
257
+ let a = b(e, "tabs", 19, () => []), o = b(e, "activeTab", 7, ""), i = b(e, "variant", 3, "default");
258
+ function n(h) {
259
+ o(h);
279
260
  }
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);
261
+ var g = Ue(), c = r(g);
262
+ c.__keydown = [Be, a, o, n], ie(c, 21, a, se, (h, m) => {
263
+ var f = Re();
264
+ f.__click = [Ee, n, m];
265
+ var k = r(f);
266
+ E(() => {
267
+ W(f, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${o() === N(m).id ? i() === "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"}`), f.disabled = N(m).disabled, P(f, "aria-selected", o() === N(m).id), U(k, N(m).label);
268
+ }), s(h, f);
287
269
  });
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();
270
+ var d = x(c, 2), u = r(d);
271
+ j(u, () => e.children ?? M, () => ({ activeTab: o() })), s(t, g), G();
299
272
  }
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">
273
+ D(["keydown", "click"]);
274
+ function Oe(t) {
275
+ }
276
+ var Te = _('<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>'), De = _('<h4 class="font-semibold text-sm mb-1 text-inherit"> </h4>'), Pe = _('<p class="text-sm leading-relaxed text-inherit"> </p>'), Fe = _('<div><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
277
+ function lt(t, e) {
278
+ let a = b(e, "variant", 3, "info"), o = b(e, "title", 3, ""), i = b(e, "message", 3, ""), n = b(e, "closable", 3, !1), g = b(e, "className", 3, ""), c = Y(e, [
279
+ "$$slots",
280
+ "$$events",
281
+ "$$legacy",
282
+ "variant",
283
+ "title",
284
+ "message",
285
+ "closable",
286
+ "className",
287
+ "children"
288
+ ]), d = F(() => ({
289
+ info: "bg-info-surface text-info-text border border-info",
290
+ success: "bg-success-surface text-success-text border border-success",
291
+ warning: "bg-warning-surface text-warning-text border border-warning",
292
+ error: "bg-error-surface text-error-text border border-error"
293
+ })), u = F(() => a() === "success" || a() === "info" ? "status" : "alert"), h = F(() => ({
294
+ info: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
322
295
  <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
296
  </svg>`,
324
- success: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
297
+ success: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
325
298
  <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
299
  </svg>`,
327
- warning: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
300
+ warning: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
328
301
  <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
302
  </svg>`,
330
- error: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
303
+ error: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
331
304
  <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
305
  </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",
306
+ }));
307
+ var m = Fe();
308
+ A(m, () => ({
309
+ class: `relative rounded-md p-4 border ${N(d)[a()] ?? ""} transition-all duration-200 motion-reduce:transition-none ${g() ?? ""}`,
310
+ role: N(u),
311
+ "aria-live": a() === "success" || a() === "info" ? "polite" : "assertive",
340
312
  "aria-atomic": "true",
341
- ...t
313
+ ...c
342
314
  }));
343
- var p = a(x);
315
+ var f = r(m);
344
316
  {
345
- var v = (E) => {
346
- var B = Ie();
347
- N("click", B, l), b(E, B);
317
+ var k = (l) => {
318
+ var C = Te();
319
+ C.__click = [Oe], s(l, C);
348
320
  };
349
- j(p, (E) => {
350
- g() && E(v);
321
+ S(f, (l) => {
322
+ n() && l(k);
351
323
  });
352
324
  }
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);
325
+ var p = x(f, 2), w = r(p), y = r(w);
326
+ de(y, () => N(h)[a()]);
327
+ var v = x(w, 2), q = r(v);
356
328
  {
357
- var M = (E) => {
358
- var B = Pe(), X = a(B);
359
- S(() => U(X, i())), b(E, B);
329
+ var z = (l) => {
330
+ var C = De(), T = r(C);
331
+ E(() => U(T, o())), s(l, C);
360
332
  };
361
- j($, (E) => {
362
- i() && E(M);
333
+ S(q, (l) => {
334
+ o() && l(z);
363
335
  });
364
336
  }
365
- var C = _($, 2);
337
+ var L = x(q, 2);
366
338
  {
367
- var O = (E) => {
368
- var B = Ae(), X = a(B);
369
- S(() => U(X, u())), b(E, B);
339
+ var B = (l) => {
340
+ var C = Pe(), T = r(C);
341
+ E(() => U(T, i())), s(l, C);
370
342
  };
371
- j(C, (E) => {
372
- u() && E(O);
343
+ S(L, (l) => {
344
+ i() && l(B);
373
345
  });
374
346
  }
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();
347
+ var O = x(L, 2);
348
+ j(O, () => e.children ?? M), E(() => W(p, 1, `flex items-start gap-3 ${n() ? "pr-8" : ""}`)), s(t, m);
377
349
  }
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);
350
+ D(["click"]);
351
+ function Ie(t, e) {
352
+ const a = t.target;
353
+ if (!a.files || a.files.length === 0) return;
354
+ const o = a.files[0];
355
+ if (typeof URL < "u" && URL.createObjectURL) {
356
+ const i = URL.createObjectURL(o);
357
+ e(i);
386
358
  }
387
- function i() {
388
- s() && URL.revokeObjectURL(s()), s(null);
359
+ }
360
+ var Ae = _('<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>'), Ye = (t, e) => t.key === "Enter" && e(), Ke = _('<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>'), He = _('<div class="space-y-3"><!> <input type="file" class="hidden"/></div>');
361
+ function dt(t, e) {
362
+ let a = b(e, "value", 7, null), o = b(e, "disabled", 3, !1), i = b(e, "accept", 3, "image/*"), n = b(e, "placeholder", 3, "No image selected"), g = Z(void 0);
363
+ function c() {
364
+ a() && typeof URL < "u" && URL.revokeObjectURL && URL.revokeObjectURL(a()), a(null);
389
365
  }
390
- function u() {
391
- var v;
392
- (v = m(h)) == null || v.click();
366
+ function d() {
367
+ var p;
368
+ (p = N(g)) == null || p.click();
393
369
  }
394
- var g = Ye(), d = a(g);
370
+ var u = He(), h = r(u);
395
371
  {
396
- var l = (v) => {
397
- var y = Re(), f = a(y), z = _(f, 2), q = a(z), $ = a(q);
398
- ee($, {
372
+ var m = (p) => {
373
+ var w = Ae(), y = r(w), v = x(y, 2), q = r(v), z = r(q);
374
+ H(z, {
399
375
  variant: "secondary",
400
376
  size: "sm",
377
+ onclick: d,
401
378
  get disabled() {
402
- return t();
379
+ return o();
403
380
  },
404
- $$events: { click: u },
405
- children: (C, O) => {
406
- var F = Z("Change");
407
- b(C, F);
381
+ children: (B, O) => {
382
+ var l = K("Change");
383
+ s(B, l);
408
384
  },
409
385
  $$slots: { default: !0 }
410
386
  });
411
- var M = _($, 2);
412
- ee(M, {
387
+ var L = x(z, 2);
388
+ H(L, {
413
389
  variant: "danger",
414
390
  size: "sm",
391
+ onclick: c,
415
392
  get disabled() {
416
- return t();
393
+ return o();
417
394
  },
418
- $$events: { click: i },
419
- children: (C, O) => {
420
- var F = Z("Remove");
421
- b(C, F);
395
+ children: (B, O) => {
396
+ var l = K("Remove");
397
+ s(B, l);
422
398
  },
423
399
  $$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);
400
+ }), E(() => P(y, "src", a())), s(p, w);
401
+ }, f = (p) => {
402
+ var w = Ke();
403
+ w.__click = d, w.__keydown = [Ye, d];
404
+ var y = r(w), v = x(r(y), 2), q = r(v), z = r(q);
405
+ E(() => U(z, n())), s(p, w);
428
406
  };
429
- j(d, (v) => {
430
- s() ? v(l) : v(x, !1);
407
+ S(h, (p) => {
408
+ a() ? p(m) : p(f, !1);
431
409
  });
432
410
  }
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);
411
+ var k = x(h, 2);
412
+ k.__change = [Ie, a], me(k, (p) => $(g, p), () => N(g)), E(() => P(k, "accept", i())), s(t, u);
435
413
  }
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,
414
+ D(["click", "keydown", "change"]);
415
+ var Ge = _('<p class="text-sm text-text-secondary mt-1"> </p>'), Ve = (t, e) => $(e, !N(e)), We = ee('<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg> Preview', 1), Je = ee('<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"></path></svg> Code', 1), Qe = _('<div class="component-preview svelte-1uavm9q"><!></div>'), Xe = _('<div><div class="px-6 py-4 border-b border-border bg-surface-secondary"><div class="flex items-center justify-between"><div><h3 class="text-lg font-semibold text-text"> </h3> <!></div> <button class="flex items-center gap-2 px-3 py-1.5 text-sm text-text-secondary hover:text-text hover:bg-surface rounded-md transition-colors duration-200"><!></button></div></div> <div class="p-6"><!></div></div>');
416
+ const Ze = {
417
+ hash: "svelte-1uavm9q",
418
+ code: ".component-preview.svelte-1uavm9q {display:flex;min-height:100px;align-items:center;justify-content:center}"
419
+ };
420
+ function ct(t, e) {
421
+ J(t, Ze);
422
+ let a = b(e, "description", 3, ""), o = b(e, "language", 3, "svelte"), i = b(e, "className", 3, ""), n = Y(e, [
423
+ "$$slots",
424
+ "$$events",
425
+ "$$legacy",
426
+ "title",
427
+ "description",
428
+ "code",
429
+ "language",
430
+ "className",
431
+ "children"
432
+ ]), g = Z(!1);
433
+ var c = Xe();
434
+ A(
435
+ c,
458
436
  () => ({
459
- type: "checkbox",
460
- id: m(i),
461
- checked: r(),
462
- disabled: h(),
463
- class: m(c),
464
- ...t
437
+ class: `component-demo bg-surface border border-border rounded-lg overflow-hidden ${i() ?? ""}`,
438
+ ...n
465
439
  }),
466
440
  void 0,
467
441
  void 0,
468
- void 0,
469
- !0
442
+ "svelte-1uavm9q"
470
443
  );
471
- var l = _(d, 2);
444
+ var d = r(c), u = r(d), h = r(u), m = r(h), f = r(m), k = x(m, 2);
472
445
  {
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);
446
+ var p = (l) => {
447
+ var C = Ge(), T = r(C);
448
+ E(() => U(T, a())), s(l, C);
478
449
  };
479
- j(l, (p) => {
480
- o() && p(x);
450
+ S(k, (l) => {
451
+ a() && l(p);
481
452
  });
482
453
  }
483
- N("change", d, u), b(n, g), H();
454
+ var w = x(h, 2);
455
+ w.__click = [Ve, g];
456
+ var y = r(w);
457
+ {
458
+ var v = (l) => {
459
+ var C = We();
460
+ s(l, C);
461
+ }, q = (l) => {
462
+ var C = Je();
463
+ s(l, C);
464
+ };
465
+ S(y, (l) => {
466
+ N(g) ? l(v) : l(q, !1);
467
+ });
468
+ }
469
+ var z = x(d, 2), L = r(z);
470
+ {
471
+ var B = (l) => {
472
+ ce(l, {
473
+ get code() {
474
+ return e.code;
475
+ },
476
+ get language() {
477
+ return o();
478
+ }
479
+ });
480
+ }, O = (l) => {
481
+ var C = Qe(), T = r(C);
482
+ j(T, () => e.children ?? M), s(l, C);
483
+ };
484
+ S(L, (l) => {
485
+ N(g) ? l(B) : l(O, !1);
486
+ });
487
+ }
488
+ E(() => {
489
+ U(f, e.title), P(w, "aria-label", N(g) ? "Show preview" : "Show code");
490
+ }), s(t, c);
484
491
  }
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
492
+ D(["click"]);
493
+ var $e = _('<div class="space-y-4"><!> <!> <!> <!></div> <div class="pt-4"><!></div>', 1), et = _(`<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
494
  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;
495
+ function vt(t, e) {
496
+ V(e, !0);
497
+ let a = b(e, "className", 3, ""), o = le({ name: "", email: "", message: "", subscribe: !1 });
498
+ function i(c) {
499
+ const d = new FormData(c.target), u = {
500
+ name: d.get("name") || "",
501
+ email: d.get("email") || "",
502
+ message: d.get("message") || "",
503
+ subscribe: d.get("subscribe") === "on" || !1
504
+ };
505
+ console.log("Form submitted with data:", u);
491
506
  }
492
- var r = Ve(), h = _(a(r), 2);
493
- ke(h, {
507
+ var n = et(), g = x(r(n), 2);
508
+ be(g, {
509
+ onsubmit: i,
494
510
  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, {
511
+ children: (c, d) => {
512
+ var u = $e(), h = R(u), m = r(h);
513
+ Q(m, {
499
514
  type: "text",
515
+ name: "name",
500
516
  label: "Name",
501
517
  placeholder: "Enter your name",
502
518
  get value() {
503
- return m(t), T(() => m(t).name);
519
+ return o.name;
504
520
  },
505
- $$events: {
506
- input: (f) => V(t, m(t).name = f.target.value)
507
- }
521
+ oninput: (v) => o.name = v.target.value
508
522
  });
509
- var l = _(d, 2);
510
- oe(l, {
523
+ var f = x(m, 2);
524
+ Q(f, {
511
525
  type: "email",
526
+ name: "email",
512
527
  label: "Email",
513
528
  placeholder: "Enter your email",
514
529
  get value() {
515
- return m(t), T(() => m(t).email);
530
+ return o.email;
516
531
  },
517
- $$events: {
518
- input: (f) => V(t, m(t).email = f.target.value)
519
- }
532
+ oninput: (v) => o.email = v.target.value
520
533
  });
521
- var x = _(l, 2);
522
- xe(x, {
534
+ var k = x(f, 2);
535
+ ve(k, {
536
+ name: "message",
523
537
  label: "Message",
524
538
  placeholder: "Enter your message",
525
539
  rows: 4,
526
540
  get value() {
527
- return m(t), T(() => m(t).message);
541
+ return o.message;
528
542
  },
529
- $$events: {
530
- input: (f) => V(t, m(t).message = f.target.value)
531
- }
543
+ oninput: (v) => o.message = v.target.value
532
544
  });
533
- var p = _(x, 2);
534
- Ge(p, {
545
+ var p = x(k, 2);
546
+ ue(p, {
547
+ name: "subscribe",
535
548
  label: "Subscribe to updates",
536
549
  get checked() {
537
- return m(t), T(() => m(t).subscribe);
550
+ return o.subscribe;
538
551
  },
539
- $$events: {
540
- change: (f) => V(t, m(t).subscribe = f.target.checked)
541
- }
552
+ onchange: (v) => o.subscribe = v.target.checked
542
553
  });
543
- var v = _(g, 2), y = a(v);
544
- ee(y, {
554
+ var w = x(h, 2), y = r(w);
555
+ H(y, {
545
556
  type: "submit",
546
557
  variant: "primary",
547
558
  size: "md",
548
- children: (f, z) => {
549
- var q = Z("Send Message");
550
- b(f, q);
559
+ children: (v, q) => {
560
+ var z = K("Send Message");
561
+ s(v, z);
551
562
  },
552
563
  $$slots: { default: !0 }
553
- }), b(o, u);
564
+ }), s(c, u);
554
565
  },
555
566
  $$slots: { default: !0 }
556
- }), S(() => re(r, 1, `max-w-md mx-auto ${s() ?? ""}`)), b(n, r);
567
+ }), E(() => W(n, 1, `max-w-md mx-auto ${a() ?? ""}`)), s(t, n), G();
557
568
  }
558
569
  export {
559
- rt as Alert,
560
- st as ContactForm,
561
- tt as Dropdown,
562
- ke as Form,
563
- ot as ImageUpload,
564
- Xe as Layout,
565
- Ze as Modal,
566
- et as SlideUp,
567
- at as Tabs
570
+ lt as Alert,
571
+ ct as ComponentDemo,
572
+ vt as ContactForm,
573
+ it as Dropdown,
574
+ be as Form,
575
+ dt as ImageUpload,
576
+ rt as Layout,
577
+ ot as Modal,
578
+ nt as SlideUp,
579
+ st as Tabs
568
580
  };