@proyecto-viviana/ui 0.1.1 → 0.1.3

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.
Files changed (66) hide show
  1. package/dist/index.d.ts +649 -51
  2. package/dist/index.js +232 -185
  3. package/dist/index.jsx +1533 -0
  4. package/package.json +9 -7
  5. package/dist/alert/index.d.ts +0 -12
  6. package/dist/alert/index.d.ts.map +0 -1
  7. package/dist/avatar/index.d.ts +0 -17
  8. package/dist/avatar/index.d.ts.map +0 -1
  9. package/dist/badge/index.d.ts +0 -12
  10. package/dist/badge/index.d.ts.map +0 -1
  11. package/dist/button/Button.d.ts +0 -19
  12. package/dist/button/Button.d.ts.map +0 -1
  13. package/dist/button/index.d.ts +0 -3
  14. package/dist/button/index.d.ts.map +0 -1
  15. package/dist/button/types.d.ts +0 -23
  16. package/dist/button/types.d.ts.map +0 -1
  17. package/dist/checkbox/index.d.ts +0 -43
  18. package/dist/checkbox/index.d.ts.map +0 -1
  19. package/dist/custom/calendar-card/index.d.ts +0 -12
  20. package/dist/custom/calendar-card/index.d.ts.map +0 -1
  21. package/dist/custom/chip/index.d.ts +0 -11
  22. package/dist/custom/chip/index.d.ts.map +0 -1
  23. package/dist/custom/conversation/index.d.ts +0 -32
  24. package/dist/custom/conversation/index.d.ts.map +0 -1
  25. package/dist/custom/event-card/index.d.ts +0 -26
  26. package/dist/custom/event-card/index.d.ts.map +0 -1
  27. package/dist/custom/lateral-nav/index.d.ts +0 -32
  28. package/dist/custom/lateral-nav/index.d.ts.map +0 -1
  29. package/dist/custom/logo/index.d.ts +0 -26
  30. package/dist/custom/logo/index.d.ts.map +0 -1
  31. package/dist/custom/nav-header/index.d.ts +0 -12
  32. package/dist/custom/nav-header/index.d.ts.map +0 -1
  33. package/dist/custom/page-layout/index.d.ts +0 -11
  34. package/dist/custom/page-layout/index.d.ts.map +0 -1
  35. package/dist/custom/profile-card/index.d.ts +0 -12
  36. package/dist/custom/profile-card/index.d.ts.map +0 -1
  37. package/dist/custom/project-card/index.d.ts +0 -24
  38. package/dist/custom/project-card/index.d.ts.map +0 -1
  39. package/dist/custom/timeline-item/index.d.ts +0 -18
  40. package/dist/custom/timeline-item/index.d.ts.map +0 -1
  41. package/dist/dialog/index.d.ts +0 -18
  42. package/dist/dialog/index.d.ts.map +0 -1
  43. package/dist/icon/icons/GitHubIcon.d.ts +0 -7
  44. package/dist/icon/icons/GitHubIcon.d.ts.map +0 -1
  45. package/dist/icon/index.d.ts +0 -28
  46. package/dist/icon/index.d.ts.map +0 -1
  47. package/dist/index.d.ts.map +0 -1
  48. package/dist/index.js.map +0 -1
  49. package/dist/link/index.d.ts +0 -39
  50. package/dist/link/index.d.ts.map +0 -1
  51. package/dist/progress-bar/index.d.ts +0 -49
  52. package/dist/progress-bar/index.d.ts.map +0 -1
  53. package/dist/radio/index.d.ts +0 -43
  54. package/dist/radio/index.d.ts.map +0 -1
  55. package/dist/separator/index.d.ts +0 -42
  56. package/dist/separator/index.d.ts.map +0 -1
  57. package/dist/switch/ToggleSwitch.d.ts +0 -28
  58. package/dist/switch/ToggleSwitch.d.ts.map +0 -1
  59. package/dist/switch/index.d.ts +0 -26
  60. package/dist/switch/index.d.ts.map +0 -1
  61. package/dist/test-utils/index.d.ts +0 -44
  62. package/dist/test-utils/index.d.ts.map +0 -1
  63. package/dist/textfield/index.d.ts +0 -31
  64. package/dist/textfield/index.d.ts.map +0 -1
  65. package/dist/tooltip/index.d.ts +0 -17
  66. package/dist/tooltip/index.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { createComponent, mergeProps as mergeProps$1, template, insert, effect, className, addEventListener, delegateEvents, setAttribute, memo, spread, setStyleProperty } from 'solid-js/web';
2
- import { mergeProps, splitProps, Show, createSignal, createEffect, createContext, useContext, createMemo, For } from 'solid-js';
1
+ import { delegateEvents, createComponent, mergeProps as mergeProps$1, template, insert, effect, className, addEventListener, setAttribute, memo, spread, setStyleProperty } from 'solid-js/web';
2
+ import { createContext, mergeProps, splitProps, Show, createSignal, createEffect, useContext, createMemo, For } from 'solid-js';
3
3
  import { Button as Button$1, ToggleSwitch as ToggleSwitch$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, RadioGroup as RadioGroup$1, Radio as Radio$1, Link as Link$1 } from '@proyecto-viviana/solidaria-components';
4
4
  import { createTextField, createFocusRing, createProgressBar, createSeparator } from '@proyecto-viviana/solidaria';
5
5
 
6
+ // src/button/Button.tsx
6
7
  function Button(props) {
7
8
  const defaultProps = {
8
9
  variant: "primary",
@@ -40,9 +41,9 @@ function Button(props) {
40
41
  }
41
42
  }));
42
43
  }
43
-
44
- var _tmpl$$o = /* @__PURE__ */ template(`<span>`), _tmpl$2$j = /* @__PURE__ */ template(`<div>`);
45
- const variantStyles$5 = {
44
+ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
45
+ var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
46
+ var variantStyles = {
46
47
  primary: "bg-primary-500 text-white",
47
48
  secondary: "bg-bg-300 text-primary-300",
48
49
  accent: "bg-accent-300 text-black",
@@ -50,7 +51,7 @@ const variantStyles$5 = {
50
51
  warning: "bg-warning-400 text-black",
51
52
  danger: "bg-danger-400 text-white"
52
53
  };
53
- const sizeStyles$6 = {
54
+ var sizeStyles = {
54
55
  sm: "w-5 h-5 text-xs",
55
56
  md: "w-7 h-7 text-xs",
56
57
  lg: "w-9 h-9 text-sm"
@@ -59,7 +60,7 @@ function Badge(props) {
59
60
  const variant = () => props.variant ?? "accent";
60
61
  const size = () => props.size ?? "md";
61
62
  return (() => {
62
- var _el$ = _tmpl$2$j();
63
+ var _el$ = _tmpl$2();
63
64
  insert(_el$, createComponent(Show, {
64
65
  get when() {
65
66
  return props.count !== void 0;
@@ -68,18 +69,20 @@ function Badge(props) {
68
69
  return props.children;
69
70
  },
70
71
  get children() {
71
- var _el$2 = _tmpl$$o();
72
+ var _el$2 = _tmpl$();
72
73
  insert(_el$2, () => props.count);
73
74
  return _el$2;
74
75
  }
75
76
  }));
76
- effect(() => className(_el$, `flex items-center justify-center rounded-full border-b border-white font-semibold ${variantStyles$5[variant()]} ${sizeStyles$6[size()]} ${props.class ?? ""}`));
77
+ effect(() => className(_el$, `flex items-center justify-center rounded-full border-b border-white font-semibold ${variantStyles[variant()]} ${sizeStyles[size()]} ${props.class ?? ""}`));
77
78
  return _el$;
78
79
  })();
79
80
  }
80
-
81
- var _tmpl$$n = /* @__PURE__ */ template(`<span class="font-semibold font-jost">`), _tmpl$2$i = /* @__PURE__ */ template(`<span class=opacity-50>|`), _tmpl$3$d = /* @__PURE__ */ template(`<button class="hover:opacity-70 transition-opacity ml-2"aria-label=Dismiss>✕`), _tmpl$4$d = /* @__PURE__ */ template(`<div role=alert><div class="flex items-center gap-3 flex-1"><div class=flex-1>`);
82
- const variantStyles$4 = {
81
+ var _tmpl$3 = /* @__PURE__ */ template(`<span class="font-semibold font-jost">`);
82
+ var _tmpl$22 = /* @__PURE__ */ template(`<span class=opacity-50>|`);
83
+ var _tmpl$32 = /* @__PURE__ */ template(`<button class="hover:opacity-70 transition-opacity ml-2"aria-label=Dismiss>\u2715`);
84
+ var _tmpl$4 = /* @__PURE__ */ template(`<div role=alert><div class="flex items-center gap-3 flex-1"><div class=flex-1>`);
85
+ var variantStyles2 = {
83
86
  info: "bg-primary-700 text-primary-200 border border-primary-500",
84
87
  success: "bg-success-600 text-success-100 border border-success-400",
85
88
  warning: "bg-warning-600 text-warning-100 border border-warning-400",
@@ -88,17 +91,17 @@ const variantStyles$4 = {
88
91
  function Alert(props) {
89
92
  const variant = () => props.variant ?? "info";
90
93
  return (() => {
91
- var _el$ = _tmpl$4$d(), _el$2 = _el$.firstChild, _el$5 = _el$2.firstChild;
94
+ var _el$ = _tmpl$4(), _el$2 = _el$.firstChild, _el$5 = _el$2.firstChild;
92
95
  insert(_el$2, createComponent(Show, {
93
96
  get when() {
94
97
  return props.title;
95
98
  },
96
99
  get children() {
97
100
  return [(() => {
98
- var _el$3 = _tmpl$$n();
101
+ var _el$3 = _tmpl$3();
99
102
  insert(_el$3, () => props.title);
100
103
  return _el$3;
101
- })(), _tmpl$2$i()];
104
+ })(), _tmpl$22()];
102
105
  }
103
106
  }), _el$5);
104
107
  insert(_el$5, () => props.children);
@@ -107,19 +110,21 @@ function Alert(props) {
107
110
  return props.dismissible;
108
111
  },
109
112
  get children() {
110
- var _el$6 = _tmpl$3$d();
113
+ var _el$6 = _tmpl$32();
111
114
  addEventListener(_el$6, "click", props.onDismiss, true);
112
115
  return _el$6;
113
116
  }
114
117
  }), null);
115
- effect(() => className(_el$, `flex items-center min-h-[50px] font-normal rounded-lg px-4 py-2 ${variantStyles$4[variant()]} ${props.class ?? ""}`));
118
+ effect(() => className(_el$, `flex items-center min-h-[50px] font-normal rounded-lg px-4 py-2 ${variantStyles2[variant()]} ${props.class ?? ""}`));
116
119
  return _el$;
117
120
  })();
118
121
  }
119
122
  delegateEvents(["click"]);
120
-
121
- var _tmpl$$m = /* @__PURE__ */ template(`<img class="w-full h-full object-cover">`), _tmpl$2$h = /* @__PURE__ */ template(`<span>`), _tmpl$3$c = /* @__PURE__ */ template(`<div><div>`), _tmpl$4$c = /* @__PURE__ */ template(`<div class="flex -space-x-2">`);
122
- const sizeStyles$5 = {
123
+ var _tmpl$5 = /* @__PURE__ */ template(`<img class="w-full h-full object-cover">`);
124
+ var _tmpl$23 = /* @__PURE__ */ template(`<span>`);
125
+ var _tmpl$33 = /* @__PURE__ */ template(`<div><div>`);
126
+ var _tmpl$42 = /* @__PURE__ */ template(`<div class="flex -space-x-2">`);
127
+ var sizeStyles2 = {
123
128
  xs: {
124
129
  container: "w-6 h-6",
125
130
  text: "text-xs",
@@ -148,28 +153,28 @@ const sizeStyles$5 = {
148
153
  };
149
154
  function Avatar(props) {
150
155
  const size = () => props.size ?? "md";
151
- const styles = () => sizeStyles$5[size()];
156
+ const styles = () => sizeStyles2[size()];
152
157
  const initials = () => {
153
158
  if (props.fallback) return props.fallback.slice(0, 2).toUpperCase();
154
159
  if (props.alt) return props.alt.slice(0, 2).toUpperCase();
155
160
  return "?";
156
161
  };
157
162
  return (() => {
158
- var _el$ = _tmpl$3$c(), _el$2 = _el$.firstChild;
163
+ var _el$ = _tmpl$33(), _el$2 = _el$.firstChild;
159
164
  insert(_el$2, createComponent(Show, {
160
165
  get when() {
161
166
  return props.src;
162
167
  },
163
168
  get fallback() {
164
169
  return (() => {
165
- var _el$5 = _tmpl$2$h();
170
+ var _el$5 = _tmpl$23();
166
171
  insert(_el$5, initials);
167
172
  effect(() => className(_el$5, `${styles().text} font-medium text-primary-300`));
168
173
  return _el$5;
169
174
  })();
170
175
  },
171
176
  get children() {
172
- var _el$3 = _tmpl$$m();
177
+ var _el$3 = _tmpl$5();
173
178
  effect((_p$) => {
174
179
  var _v$ = props.src, _v$2 = props.alt ?? "Avatar";
175
180
  _v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
@@ -187,7 +192,7 @@ function Avatar(props) {
187
192
  return props.online !== void 0;
188
193
  },
189
194
  get children() {
190
- var _el$4 = _tmpl$2$h();
195
+ var _el$4 = _tmpl$23();
191
196
  effect(() => className(_el$4, `absolute bottom-0 right-0 ${styles().indicator} rounded-full ring-2 ring-bg-400 ${props.online ? "bg-success-400" : "bg-bg-light"}`));
192
197
  return _el$4;
193
198
  }
@@ -206,14 +211,14 @@ function Avatar(props) {
206
211
  }
207
212
  function AvatarGroup(props) {
208
213
  return (() => {
209
- var _el$6 = _tmpl$4$c();
214
+ var _el$6 = _tmpl$42();
210
215
  insert(_el$6, () => props.children);
211
216
  return _el$6;
212
217
  })();
213
218
  }
214
-
215
- var _tmpl$$l = /* @__PURE__ */ template(`<span><span>`), _tmpl$2$g = /* @__PURE__ */ template(`<span class=text-primary-200>`);
216
- const sizeStyles$4 = {
219
+ var _tmpl$6 = /* @__PURE__ */ template(`<span><span>`);
220
+ var _tmpl$24 = /* @__PURE__ */ template(`<span class=text-primary-200>`);
221
+ var sizeStyles3 = {
217
222
  sm: {
218
223
  track: "h-5 w-9",
219
224
  thumb: "h-4 w-4",
@@ -236,7 +241,7 @@ function ToggleSwitch(props) {
236
241
  };
237
242
  const merged = mergeProps(defaultProps, props);
238
243
  const [local, headlessProps] = splitProps(merged, ["size", "class", "children"]);
239
- const size = () => sizeStyles$4[local.size];
244
+ const size = () => sizeStyles3[local.size];
240
245
  const getClassName = (renderProps) => {
241
246
  const base = "inline-flex items-center gap-2 cursor-pointer";
242
247
  const disabledClass = renderProps.isDisabled ? "cursor-not-allowed opacity-50" : "";
@@ -246,7 +251,7 @@ function ToggleSwitch(props) {
246
251
  return createComponent(ToggleSwitch$1, mergeProps$1(headlessProps, {
247
252
  "class": getClassName,
248
253
  children: (renderProps) => [(() => {
249
- var _el$ = _tmpl$$l(), _el$2 = _el$.firstChild;
254
+ var _el$ = _tmpl$6(), _el$2 = _el$.firstChild;
250
255
  effect((_p$) => {
251
256
  var _v$ = ["relative rounded-full transition-colors duration-200", "focus-within:ring-2 focus-within:ring-accent-300 focus-within:ring-offset-2 focus-within:ring-offset-bg-400", size().track, renderProps.isSelected ? "bg-accent" : "bg-bg-300", renderProps.isDisabled ? "cursor-not-allowed" : "cursor-pointer"].join(" "), _v$2 = ["absolute top-0.5 left-0.5 rounded-full bg-white shadow transition-transform duration-200", size().thumb, renderProps.isSelected ? size().translate : "translate-x-0"].join(" ");
252
257
  _v$ !== _p$.e && className(_el$, _p$.e = _v$);
@@ -258,14 +263,15 @@ function ToggleSwitch(props) {
258
263
  });
259
264
  return _el$;
260
265
  })(), memo(() => memo(() => !!local.children)() && (() => {
261
- var _el$3 = _tmpl$2$g();
266
+ var _el$3 = _tmpl$24();
262
267
  insert(_el$3, () => local.children);
263
268
  return _el$3;
264
269
  })())]
265
270
  }));
266
271
  }
267
272
 
268
- var _tmpl$$k = /* @__PURE__ */ template(`<div><div></div><div class="flex z-10 h-8 justify-around"><button type=button><span></span></button><button type=button><span>`);
273
+ // src/switch/index.tsx
274
+ var _tmpl$7 = /* @__PURE__ */ template(`<div><div></div><div class="flex z-10 h-8 justify-around"><button type=button><span></span></button><button type=button><span>`);
269
275
  function TabSwitch(props) {
270
276
  const [leftSelected, setLeftSelected] = createSignal(props.value ? props.value === props.options[0]?.value : true);
271
277
  createEffect(() => {
@@ -286,10 +292,10 @@ function TabSwitch(props) {
286
292
  const textSelected = "font-extrabold text-primary-300";
287
293
  const textUnselected = "font-medium text-primary-600 tracking-wider";
288
294
  return (() => {
289
- var _el$ = _tmpl$$k(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling, _el$7 = _el$6.firstChild;
295
+ var _el$ = _tmpl$7(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling, _el$7 = _el$6.firstChild;
290
296
  _el$.$$click = toggle;
291
297
  insert(_el$5, () => props.options[0]?.label ?? "TENDENCIAS");
292
- insert(_el$7, () => props.options[1]?.label ?? "ÚLTIMOS");
298
+ insert(_el$7, () => props.options[1]?.label ?? "\xDALTIMOS");
293
299
  effect((_p$) => {
294
300
  var _v$ = `relative bg-bg-400 rounded-full w-[250px] cursor-pointer ${props.class ?? ""}`, _v$2 = `${leftSelected() ? leftSelectedStyle : rightSelectedStyle} transition-all duration-500 ease-in-out z-0 absolute bg-primary-600 rounded-full h-8 border-accent-300`, _v$3 = `${leftSelected() ? textSelected : textUnselected} transition-all ease-in-out duration-500 z-10 text-lg flex justify-center items-center pointer-events-none`, _v$4 = `${leftSelected() ? textUnselected : textSelected} transition-all ease-in-out duration-500 z-10 text-lg flex justify-center items-center pointer-events-none`;
295
301
  _v$ !== _p$.e && className(_el$, _p$.e = _v$);
@@ -307,9 +313,14 @@ function TabSwitch(props) {
307
313
  })();
308
314
  }
309
315
  delegateEvents(["click"]);
310
-
311
- var _tmpl$$j = /* @__PURE__ */ template(`<svg viewBox="0 0 12 10"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 5L4.5 8.5L11 1"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`), _tmpl$2$f = /* @__PURE__ */ template(`<svg viewBox="0 0 12 2"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1H11"stroke=currentColor stroke-width=2 stroke-linecap=round>`), _tmpl$3$b = /* @__PURE__ */ template(`<span>`), _tmpl$4$b = /* @__PURE__ */ template(`<span class="text-sm font-medium text-primary-200">`), _tmpl$5$6 = /* @__PURE__ */ template(`<div class="flex flex-col gap-2">`), _tmpl$6$3 = /* @__PURE__ */ template(`<span class="text-sm text-primary-400">`), _tmpl$7$2 = /* @__PURE__ */ template(`<span class="text-sm text-danger-400">`);
312
- const sizeStyles$3 = {
316
+ var _tmpl$8 = /* @__PURE__ */ template(`<svg viewBox="0 0 12 10"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 5L4.5 8.5L11 1"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
317
+ var _tmpl$25 = /* @__PURE__ */ template(`<svg viewBox="0 0 12 2"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1H11"stroke=currentColor stroke-width=2 stroke-linecap=round>`);
318
+ var _tmpl$34 = /* @__PURE__ */ template(`<span>`);
319
+ var _tmpl$43 = /* @__PURE__ */ template(`<span class="text-sm font-medium text-primary-200">`);
320
+ var _tmpl$52 = /* @__PURE__ */ template(`<div class="flex flex-col gap-2">`);
321
+ var _tmpl$62 = /* @__PURE__ */ template(`<span class="text-sm text-primary-400">`);
322
+ var _tmpl$72 = /* @__PURE__ */ template(`<span class="text-sm text-danger-400">`);
323
+ var sizeStyles4 = {
313
324
  sm: {
314
325
  box: "h-4 w-4",
315
326
  icon: "h-3 w-3",
@@ -328,14 +339,14 @@ const sizeStyles$3 = {
328
339
  };
329
340
  function CheckIcon(props) {
330
341
  return (() => {
331
- var _el$ = _tmpl$$j();
342
+ var _el$ = _tmpl$8();
332
343
  effect(() => setAttribute(_el$, "class", props.class));
333
344
  return _el$;
334
345
  })();
335
346
  }
336
347
  function IndeterminateIcon(props) {
337
348
  return (() => {
338
- var _el$2 = _tmpl$2$f();
349
+ var _el$2 = _tmpl$25();
339
350
  effect(() => setAttribute(_el$2, "class", props.class));
340
351
  return _el$2;
341
352
  })();
@@ -346,7 +357,7 @@ function Checkbox(props) {
346
357
  };
347
358
  const merged = mergeProps(defaultProps, props);
348
359
  const [local, headlessProps] = splitProps(merged, ["size", "class", "children"]);
349
- const size = () => sizeStyles$3[local.size];
360
+ const size = () => sizeStyles4[local.size];
350
361
  const getClassName = (renderProps) => {
351
362
  const base = "inline-flex items-center gap-2 cursor-pointer";
352
363
  const disabledClass = renderProps.isDisabled ? "cursor-not-allowed opacity-50" : "";
@@ -384,7 +395,7 @@ function Checkbox(props) {
384
395
  return [base, sizeClass, disabledClass].filter(Boolean).join(" ");
385
396
  };
386
397
  return [(() => {
387
- var _el$3 = _tmpl$3$b();
398
+ var _el$3 = _tmpl$34();
388
399
  insert(_el$3, createComponent(Show, {
389
400
  get when() {
390
401
  return !renderProps.isIndeterminate;
@@ -411,7 +422,7 @@ function Checkbox(props) {
411
422
  return local.children;
412
423
  },
413
424
  get children() {
414
- var _el$4 = _tmpl$3$b();
425
+ var _el$4 = _tmpl$34();
415
426
  insert(_el$4, () => local.children);
416
427
  effect(() => className(_el$4, labelClasses()));
417
428
  return _el$4;
@@ -433,12 +444,12 @@ function CheckboxGroup(props) {
433
444
  return local.label;
434
445
  },
435
446
  get children() {
436
- var _el$5 = _tmpl$4$b();
447
+ var _el$5 = _tmpl$43();
437
448
  insert(_el$5, () => local.label);
438
449
  return _el$5;
439
450
  }
440
451
  }), (() => {
441
- var _el$6 = _tmpl$5$6();
452
+ var _el$6 = _tmpl$52();
442
453
  insert(_el$6, () => local.children);
443
454
  return _el$6;
444
455
  })(), createComponent(Show, {
@@ -446,7 +457,7 @@ function CheckboxGroup(props) {
446
457
  return memo(() => !!local.description)() && !renderProps.isInvalid;
447
458
  },
448
459
  get children() {
449
- var _el$7 = _tmpl$6$3();
460
+ var _el$7 = _tmpl$62();
450
461
  insert(_el$7, () => local.description);
451
462
  return _el$7;
452
463
  }
@@ -455,7 +466,7 @@ function CheckboxGroup(props) {
455
466
  return memo(() => !!local.errorMessage)() && renderProps.isInvalid;
456
467
  },
457
468
  get children() {
458
- var _el$8 = _tmpl$7$2();
469
+ var _el$8 = _tmpl$72();
459
470
  insert(_el$8, () => local.errorMessage);
460
471
  return _el$8;
461
472
  }
@@ -465,10 +476,13 @@ function CheckboxGroup(props) {
465
476
  children: renderChildren
466
477
  }));
467
478
  }
468
-
469
- var _tmpl$$i = /* @__PURE__ */ template(`<span class="text-primary-200 font-medium mb-1">`), _tmpl$2$e = /* @__PURE__ */ template(`<span class="text-primary-400 text-sm">`), _tmpl$3$a = /* @__PURE__ */ template(`<span class="text-danger-400 text-sm">`), _tmpl$4$a = /* @__PURE__ */ template(`<span><span>`), _tmpl$5$5 = /* @__PURE__ */ template(`<span>`);
470
- const RadioSizeContext = createContext("md");
471
- const sizeStyles$2 = {
479
+ var _tmpl$9 = /* @__PURE__ */ template(`<span class="text-primary-200 font-medium mb-1">`);
480
+ var _tmpl$26 = /* @__PURE__ */ template(`<span class="text-primary-400 text-sm">`);
481
+ var _tmpl$35 = /* @__PURE__ */ template(`<span class="text-danger-400 text-sm">`);
482
+ var _tmpl$44 = /* @__PURE__ */ template(`<span><span>`);
483
+ var _tmpl$53 = /* @__PURE__ */ template(`<span>`);
484
+ var RadioSizeContext = createContext("md");
485
+ var sizeStyles5 = {
472
486
  sm: {
473
487
  circle: "h-4 w-4",
474
488
  dot: "h-2 w-2",
@@ -500,7 +514,7 @@ function RadioGroup(props) {
500
514
  return local.label;
501
515
  },
502
516
  get children() {
503
- var _el$ = _tmpl$$i();
517
+ var _el$ = _tmpl$9();
504
518
  insert(_el$, () => local.label);
505
519
  return _el$;
506
520
  }
@@ -509,7 +523,7 @@ function RadioGroup(props) {
509
523
  return memo(() => !!local.description)() && !renderProps.isInvalid;
510
524
  },
511
525
  get children() {
512
- var _el$2 = _tmpl$2$e();
526
+ var _el$2 = _tmpl$26();
513
527
  insert(_el$2, () => local.description);
514
528
  return _el$2;
515
529
  }
@@ -518,7 +532,7 @@ function RadioGroup(props) {
518
532
  return memo(() => !!local.errorMessage)() && renderProps.isInvalid;
519
533
  },
520
534
  get children() {
521
- var _el$3 = _tmpl$3$a();
535
+ var _el$3 = _tmpl$35();
522
536
  insert(_el$3, () => local.errorMessage);
523
537
  return _el$3;
524
538
  }
@@ -536,7 +550,7 @@ function RadioGroup(props) {
536
550
  }
537
551
  function Radio(props) {
538
552
  const sizeFromContext = useContext(RadioSizeContext);
539
- const size = () => sizeStyles$2[sizeFromContext];
553
+ const size = () => sizeStyles5[sizeFromContext];
540
554
  const customClass = props.class ?? "";
541
555
  const getClassName = (renderProps) => {
542
556
  const base = "inline-flex items-center gap-2 cursor-pointer";
@@ -580,7 +594,7 @@ function Radio(props) {
580
594
  };
581
595
  const resolvedChildren = typeof children === "function" ? children(renderProps) : children;
582
596
  return [(() => {
583
- var _el$4 = _tmpl$4$a(), _el$5 = _el$4.firstChild;
597
+ var _el$4 = _tmpl$44(), _el$5 = _el$4.firstChild;
584
598
  effect((_p$) => {
585
599
  var _v$ = circleClasses(), _v$2 = dotClasses();
586
600
  _v$ !== _p$.e && className(_el$4, _p$.e = _v$);
@@ -594,7 +608,7 @@ function Radio(props) {
594
608
  })(), createComponent(Show, {
595
609
  when: resolvedChildren,
596
610
  get children() {
597
- var _el$6 = _tmpl$5$5();
611
+ var _el$6 = _tmpl$53();
598
612
  insert(_el$6, resolvedChildren);
599
613
  effect(() => className(_el$6, labelClasses()));
600
614
  return _el$6;
@@ -603,9 +617,9 @@ function Radio(props) {
603
617
  }
604
618
  }));
605
619
  }
606
-
607
- var _tmpl$$h = /* @__PURE__ */ template(`<button><span>`), _tmpl$2$d = /* @__PURE__ */ template(`<span class=mr-1.5>`);
608
- const variantStyles$3 = {
620
+ var _tmpl$10 = /* @__PURE__ */ template(`<button><span>`);
621
+ var _tmpl$27 = /* @__PURE__ */ template(`<span class=mr-1.5>`);
622
+ var variantStyles3 = {
609
623
  primary: "bg-primary-700 text-primary-200 shadow-primary-chip",
610
624
  secondary: "bg-primary-600 text-primary-100 hover:bg-primary-500",
611
625
  accent: "bg-accent text-white",
@@ -614,34 +628,38 @@ const variantStyles$3 = {
614
628
  function Chip(props) {
615
629
  const variant = () => props.variant ?? "primary";
616
630
  return (() => {
617
- var _el$ = _tmpl$$h(), _el$2 = _el$.firstChild;
631
+ var _el$ = _tmpl$10(), _el$2 = _el$.firstChild;
618
632
  addEventListener(_el$, "click", props.onClick, true);
619
633
  insert(_el$, (() => {
620
634
  var _c$ = memo(() => !!props.icon);
621
635
  return () => _c$() && (() => {
622
- var _el$3 = _tmpl$2$d();
636
+ var _el$3 = _tmpl$27();
623
637
  insert(_el$3, () => props.icon);
624
638
  return _el$3;
625
639
  })();
626
640
  })(), _el$2);
627
641
  insert(_el$2, () => props.text);
628
- effect(() => className(_el$, `flex justify-center items-center h-6 w-auto rounded-full px-4 py-1 font-medium text-sm tracking-wide transition-colors ${variantStyles$3[variant()]} ${props.class ?? ""}`));
642
+ effect(() => className(_el$, `flex justify-center items-center h-6 w-auto rounded-full px-4 py-1 font-medium text-sm tracking-wide transition-colors ${variantStyles3[variant()]} ${props.class ?? ""}`));
629
643
  return _el$;
630
644
  })();
631
645
  }
632
646
  delegateEvents(["click"]);
633
647
 
634
- var _tmpl$$g = /* @__PURE__ */ template(`<span class="text-base font-normal text-primary-300">`), _tmpl$2$c = /* @__PURE__ */ template(`<div class="flex flex-1 flex-row items-end justify-center gap-5 py-5">`), _tmpl$3$9 = /* @__PURE__ */ template(`<div class="relative bottom-4 right-4 w-full"><div class="flex flex-row justify-end gap-2 pr-4">`), _tmpl$4$9 = /* @__PURE__ */ template(`<div><span class="relative left-8 top-4 bg-gradient-to-b from-primary-100 to-primary-500 bg-clip-text text-4xl font-extrabold text-transparent"></span><div class="flex h-[50px] flex-col justify-end rounded-t-[26px] bg-primary-800"><div class="flex h-[40px] flex-col justify-end rounded-t-[30px] bg-primary-600"><div class="flex h-[20px] items-center justify-end rounded-t-[100px] bg-primary-700 pr-4"></div></div></div><div class="mt-1 flex min-h-[200px] flex-col rounded-b-[26px] rounded-t-lg border-b border-accent-500 bg-bg-300"><div class="flex flex-1 flex-col p-4"><div class="text-lg text-gray-100">`);
648
+ // src/dialog/index.tsx
649
+ var _tmpl$11 = /* @__PURE__ */ template(`<span class="text-base font-normal text-primary-300">`);
650
+ var _tmpl$28 = /* @__PURE__ */ template(`<div class="flex flex-1 flex-row items-end justify-center gap-5 py-5">`);
651
+ var _tmpl$36 = /* @__PURE__ */ template(`<div class="relative bottom-4 right-4 w-full"><div class="flex flex-row justify-end gap-2 pr-4">`);
652
+ var _tmpl$45 = /* @__PURE__ */ template(`<div><span class="relative left-8 top-4 bg-gradient-to-b from-primary-100 to-primary-500 bg-clip-text text-4xl font-extrabold text-transparent"></span><div class="flex h-[50px] flex-col justify-end rounded-t-[26px] bg-primary-800"><div class="flex h-[40px] flex-col justify-end rounded-t-[30px] bg-primary-600"><div class="flex h-[20px] items-center justify-end rounded-t-[100px] bg-primary-700 pr-4"></div></div></div><div class="mt-1 flex min-h-[200px] flex-col rounded-b-[26px] rounded-t-lg border-b border-accent-500 bg-bg-300"><div class="flex flex-1 flex-col p-4"><div class="text-lg text-gray-100">`);
635
653
  function Dialog(props) {
636
654
  return (() => {
637
- var _el$ = _tmpl$4$9(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$3.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild;
655
+ var _el$ = _tmpl$45(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$3.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild;
638
656
  insert(_el$2, () => props.title);
639
657
  insert(_el$5, createComponent(Show, {
640
658
  get when() {
641
659
  return props.subtitle;
642
660
  },
643
661
  get children() {
644
- var _el$6 = _tmpl$$g();
662
+ var _el$6 = _tmpl$11();
645
663
  insert(_el$6, () => props.subtitle);
646
664
  return _el$6;
647
665
  }
@@ -652,7 +670,7 @@ function Dialog(props) {
652
670
  return props.primaryAction || props.secondaryAction;
653
671
  },
654
672
  get children() {
655
- var _el$0 = _tmpl$2$c();
673
+ var _el$0 = _tmpl$28();
656
674
  insert(_el$0, createComponent(Show, {
657
675
  get when() {
658
676
  return props.secondaryAction;
@@ -694,7 +712,7 @@ function Dialog(props) {
694
712
  return memo(() => !!props.tags)() && props.tags.length > 0;
695
713
  },
696
714
  get children() {
697
- var _el$1 = _tmpl$3$9(), _el$10 = _el$1.firstChild;
715
+ var _el$1 = _tmpl$36(), _el$10 = _el$1.firstChild;
698
716
  insert(_el$10, () => props.tags.map((tag) => createComponent(Chip, {
699
717
  variant: "primary",
700
718
  text: tag
@@ -706,11 +724,10 @@ function Dialog(props) {
706
724
  return _el$;
707
725
  })();
708
726
  }
709
-
710
- var _tmpl$$f = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"aria-hidden=true><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z">`);
727
+ var _tmpl$12 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"aria-hidden=true><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z">`);
711
728
  function GitHubIcon(props) {
712
729
  return (() => {
713
- var _el$ = _tmpl$$f();
730
+ var _el$ = _tmpl$12();
714
731
  effect((_p$) => {
715
732
  var _v$ = props.size, _v$2 = props.size, _v$3 = props.color;
716
733
  _v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
@@ -726,18 +743,20 @@ function GitHubIcon(props) {
726
743
  })();
727
744
  }
728
745
 
729
- var _tmpl$$e = /* @__PURE__ */ template(`<div><div class=vui-icon__main>`), _tmpl$2$b = /* @__PURE__ */ template(`<div class=vui-icon__shadow>`);
746
+ // src/icon/index.tsx
747
+ var _tmpl$13 = /* @__PURE__ */ template(`<div><div class=vui-icon__main>`);
748
+ var _tmpl$29 = /* @__PURE__ */ template(`<div class=vui-icon__shadow>`);
730
749
  function Icon(props) {
731
750
  const size = () => props.size ?? 24;
732
751
  const color = () => props.color ?? "var(--color-primary-500)";
733
752
  const IconComponent = props.icon;
734
753
  return (() => {
735
- var _el$ = _tmpl$$e(), _el$2 = _el$.firstChild;
754
+ var _el$ = _tmpl$13(), _el$2 = _el$.firstChild;
736
755
  addEventListener(_el$, "click", props.onClick, true);
737
756
  insert(_el$, (() => {
738
757
  var _c$ = memo(() => !!props.withShadow);
739
758
  return () => _c$() && (() => {
740
- var _el$3 = _tmpl$2$b();
759
+ var _el$3 = _tmpl$29();
741
760
  insert(_el$3, createComponent(IconComponent, {
742
761
  get size() {
743
762
  return size();
@@ -760,12 +779,11 @@ function Icon(props) {
760
779
  })();
761
780
  }
762
781
  delegateEvents(["click"]);
763
-
764
- var _tmpl$$d = /* @__PURE__ */ template(`<div><div class=vui-tooltip__trigger></div><div><span>`);
782
+ var _tmpl$14 = /* @__PURE__ */ template(`<div><div class=vui-tooltip__trigger></div><div><span>`);
765
783
  function Tooltip(props) {
766
784
  const position = () => props.position ?? "bottom";
767
785
  return (() => {
768
- var _el$ = _tmpl$$d(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
786
+ var _el$ = _tmpl$14(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
769
787
  insert(_el$2, () => props.children);
770
788
  insert(_el$4, () => props.label);
771
789
  effect((_p$) => {
@@ -780,11 +798,9 @@ function Tooltip(props) {
780
798
  return _el$;
781
799
  })();
782
800
  }
783
-
784
801
  function access(value) {
785
802
  return typeof value === "function" ? value() : value;
786
803
  }
787
-
788
804
  function createTextFieldState(props = {}) {
789
805
  const getProps = () => access(props);
790
806
  const initialProps = getProps();
@@ -808,8 +824,12 @@ function createTextFieldState(props = {}) {
808
824
  };
809
825
  }
810
826
 
811
- var _tmpl$$c = /* @__PURE__ */ template(`<span class="text-danger-400 ml-0.5">*`), _tmpl$2$a = /* @__PURE__ */ template(`<label>`), _tmpl$3$8 = /* @__PURE__ */ template(`<p>`), _tmpl$4$8 = /* @__PURE__ */ template(`<div><input>`);
812
- const sizeStyles$1 = {
827
+ // src/textfield/index.tsx
828
+ var _tmpl$15 = /* @__PURE__ */ template(`<span class="text-danger-400 ml-0.5">*`);
829
+ var _tmpl$210 = /* @__PURE__ */ template(`<label>`);
830
+ var _tmpl$37 = /* @__PURE__ */ template(`<p>`);
831
+ var _tmpl$46 = /* @__PURE__ */ template(`<div><input>`);
832
+ var sizeStyles6 = {
813
833
  sm: {
814
834
  input: "h-8 px-2 text-sm",
815
835
  label: "text-sm",
@@ -833,7 +853,7 @@ function TextField(props) {
833
853
  };
834
854
  const merged = mergeProps(defaultProps, props);
835
855
  const [local, ariaProps] = splitProps(merged, ["size", "variant", "class", "label", "description", "errorMessage"]);
836
- const size = () => sizeStyles$1[local.size];
856
+ const size = () => sizeStyles6[local.size];
837
857
  const state = createTextFieldState(() => ({
838
858
  value: ariaProps.value,
839
859
  defaultValue: ariaProps.defaultValue,
@@ -926,13 +946,13 @@ function TextField(props) {
926
946
  return rest;
927
947
  };
928
948
  return (() => {
929
- var _el$ = _tmpl$4$8(), _el$4 = _el$.firstChild;
949
+ var _el$ = _tmpl$46(), _el$4 = _el$.firstChild;
930
950
  insert(_el$, createComponent(Show, {
931
951
  get when() {
932
952
  return local.label;
933
953
  },
934
954
  get children() {
935
- var _el$2 = _tmpl$2$a();
955
+ var _el$2 = _tmpl$210();
936
956
  spread(_el$2, mergeProps$1(cleanLabelProps, {
937
957
  get ["class"]() {
938
958
  return labelClasses();
@@ -944,7 +964,7 @@ function TextField(props) {
944
964
  return ariaProps.isRequired;
945
965
  },
946
966
  get children() {
947
- return _tmpl$$c();
967
+ return _tmpl$15();
948
968
  }
949
969
  }), null);
950
970
  return _el$2;
@@ -960,7 +980,7 @@ function TextField(props) {
960
980
  return memo(() => !!local.description)() && !textFieldAria.isInvalid;
961
981
  },
962
982
  get children() {
963
- var _el$5 = _tmpl$3$8();
983
+ var _el$5 = _tmpl$37();
964
984
  spread(_el$5, mergeProps$1(cleanDescriptionProps, {
965
985
  get ["class"]() {
966
986
  return descriptionClasses();
@@ -975,7 +995,7 @@ function TextField(props) {
975
995
  return memo(() => !!local.errorMessage)() && textFieldAria.isInvalid;
976
996
  },
977
997
  get children() {
978
- var _el$6 = _tmpl$3$8();
998
+ var _el$6 = _tmpl$37();
979
999
  spread(_el$6, mergeProps$1(cleanErrorMessageProps, {
980
1000
  get ["class"]() {
981
1001
  return errorClasses();
@@ -1007,8 +1027,7 @@ function TextField(props) {
1007
1027
  return _el$;
1008
1028
  })();
1009
1029
  }
1010
-
1011
- const variantStyles$2 = {
1030
+ var variantStyles4 = {
1012
1031
  primary: "text-accent hover:text-accent-300",
1013
1032
  secondary: "text-primary-300 hover:text-primary-200",
1014
1033
  subtle: "text-primary-400 hover:text-primary-300"
@@ -1019,7 +1038,7 @@ function Link(props) {
1019
1038
  const customClass = local.class ?? "";
1020
1039
  const getClassName = (renderProps) => {
1021
1040
  const base = "transition-colors duration-200 cursor-pointer rounded-sm outline-none";
1022
- const variantClass = variantStyles$2[variant];
1041
+ const variantClass = variantStyles4[variant];
1023
1042
  let underlineClass;
1024
1043
  if (local.isStandalone && local.isQuiet) {
1025
1044
  underlineClass = renderProps.isHovered || renderProps.isFocusVisible ? "underline" : "no-underline";
@@ -1039,9 +1058,11 @@ function Link(props) {
1039
1058
  }
1040
1059
  }));
1041
1060
  }
1042
-
1043
- var _tmpl$$b = /* @__PURE__ */ template(`<span class="text-primary-200 font-medium">`), _tmpl$2$9 = /* @__PURE__ */ template(`<span class=text-primary-300>`), _tmpl$3$7 = /* @__PURE__ */ template(`<div>`), _tmpl$4$7 = /* @__PURE__ */ template(`<div><div><div>`);
1044
- const sizeStyles = {
1061
+ var _tmpl$16 = /* @__PURE__ */ template(`<span class="text-primary-200 font-medium">`);
1062
+ var _tmpl$211 = /* @__PURE__ */ template(`<span class=text-primary-300>`);
1063
+ var _tmpl$38 = /* @__PURE__ */ template(`<div>`);
1064
+ var _tmpl$47 = /* @__PURE__ */ template(`<div><div><div>`);
1065
+ var sizeStyles7 = {
1045
1066
  sm: {
1046
1067
  track: "h-1",
1047
1068
  text: "text-xs"
@@ -1055,7 +1076,7 @@ const sizeStyles = {
1055
1076
  text: "text-base"
1056
1077
  }
1057
1078
  };
1058
- const variantStyles$1 = {
1079
+ var variantStyles5 = {
1059
1080
  primary: "bg-primary-500",
1060
1081
  accent: "bg-accent",
1061
1082
  success: "bg-green-500",
@@ -1105,9 +1126,9 @@ function ProgressBar(props) {
1105
1126
  return (clampedValue - minValue) / (maxValue - minValue) * 100;
1106
1127
  });
1107
1128
  const valueText = () => progressAria.progressBarProps["aria-valuetext"];
1108
- const sizeConfig = () => sizeStyles[size()];
1129
+ const sizeConfig = () => sizeStyles7[size()];
1109
1130
  return (() => {
1110
- var _el$ = _tmpl$4$7(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
1131
+ var _el$ = _tmpl$47(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
1111
1132
  spread(_el$, mergeProps$1(() => progressAria.progressBarProps, {
1112
1133
  get ["class"]() {
1113
1134
  return `w-full ${local.class ?? ""}`;
@@ -1118,13 +1139,13 @@ function ProgressBar(props) {
1118
1139
  return local.label || showValueLabel();
1119
1140
  },
1120
1141
  get children() {
1121
- var _el$2 = _tmpl$3$7();
1142
+ var _el$2 = _tmpl$38();
1122
1143
  insert(_el$2, createComponent(Show, {
1123
1144
  get when() {
1124
1145
  return local.label;
1125
1146
  },
1126
1147
  get children() {
1127
- var _el$3 = _tmpl$$b();
1148
+ var _el$3 = _tmpl$16();
1128
1149
  insert(_el$3, () => local.label);
1129
1150
  return _el$3;
1130
1151
  }
@@ -1134,7 +1155,7 @@ function ProgressBar(props) {
1134
1155
  return memo(() => !!showValueLabel())() && !isIndeterminate();
1135
1156
  },
1136
1157
  get children() {
1137
- var _el$4 = _tmpl$2$9();
1158
+ var _el$4 = _tmpl$211();
1138
1159
  insert(_el$4, valueText);
1139
1160
  return _el$4;
1140
1161
  }
@@ -1144,7 +1165,7 @@ function ProgressBar(props) {
1144
1165
  }
1145
1166
  }), _el$5);
1146
1167
  effect((_p$) => {
1147
- var _v$ = `w-full ${sizeConfig().track} bg-bg-300 rounded-full overflow-hidden`, _v$2 = `h-full rounded-full transition-all duration-300 ${variantStyles$1[variant()]} ${isIndeterminate() ? "animate-progress-indeterminate" : ""}`, _v$3 = isIndeterminate() ? "30%" : `${percentage()}%`;
1168
+ var _v$ = `w-full ${sizeConfig().track} bg-bg-300 rounded-full overflow-hidden`, _v$2 = `h-full rounded-full transition-all duration-300 ${variantStyles5[variant()]} ${isIndeterminate() ? "animate-progress-indeterminate" : ""}`, _v$3 = isIndeterminate() ? "30%" : `${percentage()}%`;
1148
1169
  _v$ !== _p$.e && className(_el$5, _p$.e = _v$);
1149
1170
  _v$2 !== _p$.t && className(_el$6, _p$.t = _v$2);
1150
1171
  _v$3 !== _p$.a && setStyleProperty(_el$6, "width", _p$.a = _v$3);
@@ -1157,19 +1178,19 @@ function ProgressBar(props) {
1157
1178
  return _el$;
1158
1179
  })();
1159
1180
  }
1160
-
1161
- var _tmpl$$a = /* @__PURE__ */ template(`<div>`), _tmpl$2$8 = /* @__PURE__ */ template(`<hr>`);
1162
- const variantStyles = {
1181
+ var _tmpl$17 = /* @__PURE__ */ template(`<div>`);
1182
+ var _tmpl$212 = /* @__PURE__ */ template(`<hr>`);
1183
+ var variantStyles6 = {
1163
1184
  default: "bg-bg-100",
1164
1185
  subtle: "bg-bg-200",
1165
1186
  strong: "bg-primary-600"
1166
1187
  };
1167
- const horizontalSizeStyles = {
1188
+ var horizontalSizeStyles = {
1168
1189
  sm: "h-px",
1169
1190
  md: "h-0.5",
1170
1191
  lg: "h-1"
1171
1192
  };
1172
- const verticalSizeStyles = {
1193
+ var verticalSizeStyles = {
1173
1194
  sm: "w-px",
1174
1195
  md: "w-0.5",
1175
1196
  lg: "w-1"
@@ -1198,10 +1219,10 @@ function Separator(props) {
1198
1219
  });
1199
1220
  const className = createMemo(() => {
1200
1221
  const isVertical = orientation() === "vertical";
1201
- const sizeStyles = isVertical ? verticalSizeStyles : horizontalSizeStyles;
1222
+ const sizeStyles8 = isVertical ? verticalSizeStyles : horizontalSizeStyles;
1202
1223
  const base = [
1203
- variantStyles[variant()],
1204
- sizeStyles[size()],
1224
+ variantStyles6[variant()],
1225
+ sizeStyles8[size()],
1205
1226
  isVertical ? "h-full self-stretch" : "w-full",
1206
1227
  "border-0",
1207
1228
  // Reset hr default border
@@ -1222,7 +1243,7 @@ function Separator(props) {
1222
1243
  },
1223
1244
  get fallback() {
1224
1245
  return (() => {
1225
- var _el$2 = _tmpl$2$8();
1246
+ var _el$2 = _tmpl$212();
1226
1247
  spread(_el$2, mergeProps$1(getAriaProps, {
1227
1248
  get ["class"]() {
1228
1249
  return className();
@@ -1232,7 +1253,7 @@ function Separator(props) {
1232
1253
  })();
1233
1254
  },
1234
1255
  get children() {
1235
- var _el$ = _tmpl$$a();
1256
+ var _el$ = _tmpl$17();
1236
1257
  spread(_el$, mergeProps$1(getAriaProps, {
1237
1258
  get ["class"]() {
1238
1259
  return className();
@@ -1242,11 +1263,13 @@ function Separator(props) {
1242
1263
  }
1243
1264
  });
1244
1265
  }
1245
-
1246
- var _tmpl$$9 = /* @__PURE__ */ template(`<img class="h-[42px] w-auto">`), _tmpl$2$7 = /* @__PURE__ */ template(`<button class="md:hidden flex items-center justify-center">`), _tmpl$3$6 = /* @__PURE__ */ template(`<nav><div class="pl-1 md:pl-8 flex items-center"></div><div class="flex-1 flex justify-end items-center pr-1 md:pr-8">`), _tmpl$4$6 = /* @__PURE__ */ template(`<span class="text-[34px] font-light text-primary-700 flex items-center">`);
1266
+ var _tmpl$18 = /* @__PURE__ */ template(`<img class="h-[42px] w-auto">`);
1267
+ var _tmpl$213 = /* @__PURE__ */ template(`<button class="md:hidden flex items-center justify-center">`);
1268
+ var _tmpl$39 = /* @__PURE__ */ template(`<nav><div class="pl-1 md:pl-8 flex items-center"></div><div class="flex-1 flex justify-end items-center pr-1 md:pr-8">`);
1269
+ var _tmpl$48 = /* @__PURE__ */ template(`<span class="text-[34px] font-light text-primary-700 flex items-center">`);
1247
1270
  function NavHeader(props) {
1248
1271
  return (() => {
1249
- var _el$ = _tmpl$3$6(), _el$2 = _el$.firstChild, _el$4 = _el$2.nextSibling;
1272
+ var _el$ = _tmpl$39(), _el$2 = _el$.firstChild, _el$4 = _el$2.nextSibling;
1250
1273
  insert(_el$2, createComponent(Show, {
1251
1274
  get when() {
1252
1275
  return props.logo;
@@ -1257,14 +1280,14 @@ function NavHeader(props) {
1257
1280
  return props.logoText;
1258
1281
  },
1259
1282
  get children() {
1260
- var _el$6 = _tmpl$4$6();
1283
+ var _el$6 = _tmpl$48();
1261
1284
  insert(_el$6, () => props.logoText);
1262
1285
  return _el$6;
1263
1286
  }
1264
1287
  });
1265
1288
  },
1266
1289
  get children() {
1267
- var _el$3 = _tmpl$$9();
1290
+ var _el$3 = _tmpl$18();
1268
1291
  effect((_p$) => {
1269
1292
  var _v$ = props.logo, _v$2 = props.logoAlt ?? "Logo";
1270
1293
  _v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
@@ -1283,7 +1306,7 @@ function NavHeader(props) {
1283
1306
  return props.menuIcon;
1284
1307
  },
1285
1308
  get children() {
1286
- var _el$5 = _tmpl$2$7();
1309
+ var _el$5 = _tmpl$213();
1287
1310
  addEventListener(_el$5, "click", props.onMenuClick, true);
1288
1311
  insert(_el$5, () => props.menuIcon);
1289
1312
  return _el$5;
@@ -1294,11 +1317,14 @@ function NavHeader(props) {
1294
1317
  })();
1295
1318
  }
1296
1319
  delegateEvents(["click"]);
1297
-
1298
- var _tmpl$$8 = /* @__PURE__ */ template(`<li><span class="text-lg font-bold text-primary-200">`), _tmpl$2$6 = /* @__PURE__ */ template(`<a>`), _tmpl$3$5 = /* @__PURE__ */ template(`<div><div class="flex h-full"><div class="h-5 w-1 bg-accent-300"></div><ul class="flex h-full flex-1 flex-col gap-1 pl-4">`), _tmpl$4$5 = /* @__PURE__ */ template(`<li>`), _tmpl$5$4 = /* @__PURE__ */ template(`<div>`);
1320
+ var _tmpl$19 = /* @__PURE__ */ template(`<li><span class="text-lg font-bold text-primary-200">`);
1321
+ var _tmpl$214 = /* @__PURE__ */ template(`<a>`);
1322
+ var _tmpl$310 = /* @__PURE__ */ template(`<div><div class="flex h-full"><div class="h-5 w-1 bg-accent-300"></div><ul class="flex h-full flex-1 flex-col gap-1 pl-4">`);
1323
+ var _tmpl$49 = /* @__PURE__ */ template(`<li>`);
1324
+ var _tmpl$54 = /* @__PURE__ */ template(`<div>`);
1299
1325
  function NavItem(props) {
1300
1326
  return (() => {
1301
- var _el$ = _tmpl$$8(), _el$2 = _el$.firstChild;
1327
+ var _el$ = _tmpl$19(), _el$2 = _el$.firstChild;
1302
1328
  insert(_el$2, () => props.title);
1303
1329
  insert(_el$, () => props.children, null);
1304
1330
  effect(() => className(_el$, `flex items-center ${props.class ?? ""}`));
@@ -1309,7 +1335,7 @@ function NavLink(props) {
1309
1335
  const activeStyles = "font-medium text-primary-300 underline underline-offset-4";
1310
1336
  const inactiveStyles = "font-normal text-gray-200 underline-offset-4 hover:text-gray-100 hover:underline";
1311
1337
  return (() => {
1312
- var _el$3 = _tmpl$2$6();
1338
+ var _el$3 = _tmpl$214();
1313
1339
  insert(_el$3, () => props.children);
1314
1340
  effect((_p$) => {
1315
1341
  var _v$ = props.href, _v$2 = `${props.active ? activeStyles : inactiveStyles} ${props.class ?? ""}`;
@@ -1325,7 +1351,7 @@ function NavLink(props) {
1325
1351
  }
1326
1352
  function NavSection(props) {
1327
1353
  return (() => {
1328
- var _el$4 = _tmpl$3$5(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
1354
+ var _el$4 = _tmpl$310(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
1329
1355
  insert(_el$4, createComponent(NavItem, {
1330
1356
  get title() {
1331
1357
  return props.title;
@@ -1341,7 +1367,7 @@ function NavSection(props) {
1341
1367
  return props.links;
1342
1368
  },
1343
1369
  children: (link) => (() => {
1344
- var _el$8 = _tmpl$4$5();
1370
+ var _el$8 = _tmpl$49();
1345
1371
  insert(_el$8, createComponent(NavLink, {
1346
1372
  get href() {
1347
1373
  return link.href;
@@ -1366,48 +1392,48 @@ function NavSection(props) {
1366
1392
  function LateralNav(props) {
1367
1393
  const bgColor = () => props.transparent ? "" : "bg-bg-200";
1368
1394
  return (() => {
1369
- var _el$9 = _tmpl$5$4();
1395
+ var _el$9 = _tmpl$54();
1370
1396
  insert(_el$9, () => props.children);
1371
1397
  effect(() => className(_el$9, `hidden w-[300px] md:block ${bgColor()} m-0 border-r border-primary-600 p-3 ${props.class ?? ""}`));
1372
1398
  return _el$9;
1373
1399
  })();
1374
1400
  }
1375
-
1376
- var _tmpl$$7 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200">`), _tmpl$2$5 = /* @__PURE__ */ template(`<div><div class="flex items-center justify-around gap-3"></div><div class="flex items-center justify-center gap-3 text-center"><span class="font-light text-primary-300">`);
1377
- const eventMessages = {
1401
+ var _tmpl$20 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200">`);
1402
+ var _tmpl$215 = /* @__PURE__ */ template(`<div><div class="flex items-center justify-around gap-3"></div><div class="flex items-center justify-center gap-3 text-center"><span class="font-light text-primary-300">`);
1403
+ var eventMessages = {
1378
1404
  follow: (left, right) => [(() => {
1379
- var _el$ = _tmpl$$7();
1405
+ var _el$ = _tmpl$20();
1380
1406
  insert(_el$, left);
1381
1407
  return _el$;
1382
1408
  })(), " ha empezado a seguir a ", (() => {
1383
- var _el$2 = _tmpl$$7();
1409
+ var _el$2 = _tmpl$20();
1384
1410
  insert(_el$2, right);
1385
1411
  return _el$2;
1386
1412
  })()],
1387
1413
  like: (left, right) => [(() => {
1388
- var _el$3 = _tmpl$$7();
1414
+ var _el$3 = _tmpl$20();
1389
1415
  insert(_el$3, left);
1390
1416
  return _el$3;
1391
1417
  })(), " le ha dado like a ", (() => {
1392
- var _el$4 = _tmpl$$7();
1418
+ var _el$4 = _tmpl$20();
1393
1419
  insert(_el$4, right);
1394
1420
  return _el$4;
1395
1421
  })()],
1396
1422
  comment: (left, right) => [(() => {
1397
- var _el$5 = _tmpl$$7();
1423
+ var _el$5 = _tmpl$20();
1398
1424
  insert(_el$5, left);
1399
1425
  return _el$5;
1400
1426
  })(), " ha comentado en ", (() => {
1401
- var _el$6 = _tmpl$$7();
1427
+ var _el$6 = _tmpl$20();
1402
1428
  insert(_el$6, right);
1403
1429
  return _el$6;
1404
1430
  })()],
1405
1431
  event: (left, right) => [(() => {
1406
- var _el$7 = _tmpl$$7();
1432
+ var _el$7 = _tmpl$20();
1407
1433
  insert(_el$7, left);
1408
1434
  return _el$7;
1409
- })(), " asistirá al evento de ", (() => {
1410
- var _el$8 = _tmpl$$7();
1435
+ })(), " asistir\xE1 al evento de ", (() => {
1436
+ var _el$8 = _tmpl$20();
1411
1437
  insert(_el$8, right);
1412
1438
  return _el$8;
1413
1439
  })()],
@@ -1418,7 +1444,7 @@ function TimelineItem(props) {
1418
1444
  const leftName = () => props.leftUser?.name ?? "";
1419
1445
  const rightName = () => props.rightUser?.name ?? "";
1420
1446
  return (() => {
1421
- var _el$9 = _tmpl$2$5(), _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.firstChild;
1447
+ var _el$9 = _tmpl$215(), _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.firstChild;
1422
1448
  insert(_el$0, createComponent(Show, {
1423
1449
  get when() {
1424
1450
  return props.leftUser;
@@ -1472,11 +1498,16 @@ function TimelineItem(props) {
1472
1498
  return _el$9;
1473
1499
  })();
1474
1500
  }
1475
-
1476
- var _tmpl$$6 = /* @__PURE__ */ template(`<span class="text-xs text-primary-500">`), _tmpl$2$4 = /* @__PURE__ */ template(`<p class="text-sm text-primary-400 truncate">`), _tmpl$3$4 = /* @__PURE__ */ template(`<span class="flex h-5 w-5 items-center justify-center rounded-full bg-accent text-xs font-bold text-white">`), _tmpl$4$4 = /* @__PURE__ */ template(`<button><div class="flex-1 min-w-0"><div class="flex items-center justify-between"><span class="font-semibold text-primary-100 truncate">`), _tmpl$5$3 = /* @__PURE__ */ template(`<span>`), _tmpl$6$2 = /* @__PURE__ */ template(`<div><div><p>`), _tmpl$7$1 = /* @__PURE__ */ template(`<div>`);
1501
+ var _tmpl$21 = /* @__PURE__ */ template(`<span class="text-xs text-primary-500">`);
1502
+ var _tmpl$216 = /* @__PURE__ */ template(`<p class="text-sm text-primary-400 truncate">`);
1503
+ var _tmpl$311 = /* @__PURE__ */ template(`<span class="flex h-5 w-5 items-center justify-center rounded-full bg-accent text-xs font-bold text-white">`);
1504
+ var _tmpl$410 = /* @__PURE__ */ template(`<button><div class="flex-1 min-w-0"><div class="flex items-center justify-between"><span class="font-semibold text-primary-100 truncate">`);
1505
+ var _tmpl$55 = /* @__PURE__ */ template(`<span>`);
1506
+ var _tmpl$63 = /* @__PURE__ */ template(`<div><div><p>`);
1507
+ var _tmpl$73 = /* @__PURE__ */ template(`<div>`);
1477
1508
  function ConversationPreview(props) {
1478
1509
  return (() => {
1479
- var _el$ = _tmpl$4$4(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild;
1510
+ var _el$ = _tmpl$410(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild;
1480
1511
  addEventListener(_el$, "click", props.onClick, true);
1481
1512
  insert(_el$, createComponent(Avatar, {
1482
1513
  get src() {
@@ -1496,7 +1527,7 @@ function ConversationPreview(props) {
1496
1527
  return props.timestamp;
1497
1528
  },
1498
1529
  get children() {
1499
- var _el$5 = _tmpl$$6();
1530
+ var _el$5 = _tmpl$21();
1500
1531
  insert(_el$5, () => props.timestamp);
1501
1532
  return _el$5;
1502
1533
  }
@@ -1506,7 +1537,7 @@ function ConversationPreview(props) {
1506
1537
  return props.lastMessage;
1507
1538
  },
1508
1539
  get children() {
1509
- var _el$6 = _tmpl$2$4();
1540
+ var _el$6 = _tmpl$216();
1510
1541
  insert(_el$6, () => props.lastMessage);
1511
1542
  return _el$6;
1512
1543
  }
@@ -1516,7 +1547,7 @@ function ConversationPreview(props) {
1516
1547
  return memo(() => !!props.unreadCount)() && props.unreadCount > 0;
1517
1548
  },
1518
1549
  get children() {
1519
- var _el$7 = _tmpl$3$4();
1550
+ var _el$7 = _tmpl$311();
1520
1551
  insert(_el$7, () => props.unreadCount);
1521
1552
  return _el$7;
1522
1553
  }
@@ -1528,14 +1559,14 @@ function ConversationPreview(props) {
1528
1559
  function ConversationBubble(props) {
1529
1560
  const isUser = () => props.sender === "user";
1530
1561
  return (() => {
1531
- var _el$8 = _tmpl$6$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild;
1562
+ var _el$8 = _tmpl$63(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild;
1532
1563
  insert(_el$0, () => props.content);
1533
1564
  insert(_el$9, createComponent(Show, {
1534
1565
  get when() {
1535
1566
  return props.timestamp;
1536
1567
  },
1537
1568
  get children() {
1538
- var _el$1 = _tmpl$5$3();
1569
+ var _el$1 = _tmpl$55();
1539
1570
  insert(_el$1, () => props.timestamp);
1540
1571
  effect(() => className(_el$1, `text-xs ${isUser() ? "text-white/70" : "text-primary-500"}`));
1541
1572
  return _el$1;
@@ -1555,7 +1586,7 @@ function ConversationBubble(props) {
1555
1586
  }
1556
1587
  function Conversation(props) {
1557
1588
  return (() => {
1558
- var _el$10 = _tmpl$7$1();
1589
+ var _el$10 = _tmpl$73();
1559
1590
  insert(_el$10, createComponent(For, {
1560
1591
  get each() {
1561
1592
  return props.messages;
@@ -1577,8 +1608,11 @@ function Conversation(props) {
1577
1608
  })();
1578
1609
  }
1579
1610
  delegateEvents(["click"]);
1580
-
1581
- var _tmpl$$5 = /* @__PURE__ */ template(`<p class="text-primary-300 text-sm mt-1 line-clamp-2">`), _tmpl$2$3 = /* @__PURE__ */ template(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> seguidores`), _tmpl$3$3 = /* @__PURE__ */ template(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> siguiendo`), _tmpl$4$3 = /* @__PURE__ */ template(`<div class="mt-4 flex gap-2">`), _tmpl$5$2 = /* @__PURE__ */ template(`<div><div class="flex items-start gap-4"><div class="flex-1 min-w-0"><h3 class="font-semibold text-primary-100 text-lg truncate"></h3><div class="flex gap-4 mt-2 text-sm">`);
1611
+ var _tmpl$30 = /* @__PURE__ */ template(`<p class="text-primary-300 text-sm mt-1 line-clamp-2">`);
1612
+ var _tmpl$217 = /* @__PURE__ */ template(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> seguidores`);
1613
+ var _tmpl$312 = /* @__PURE__ */ template(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> siguiendo`);
1614
+ var _tmpl$411 = /* @__PURE__ */ template(`<div class="mt-4 flex gap-2">`);
1615
+ var _tmpl$56 = /* @__PURE__ */ template(`<div><div class="flex items-start gap-4"><div class="flex-1 min-w-0"><h3 class="font-semibold text-primary-100 text-lg truncate"></h3><div class="flex gap-4 mt-2 text-sm">`);
1582
1616
  function ProfileCard(props) {
1583
1617
  const formatNumber = (num) => {
1584
1618
  if (num >= 1e6) return `${(num / 1e6).toFixed(1)}M`;
@@ -1586,7 +1620,7 @@ function ProfileCard(props) {
1586
1620
  return num.toString();
1587
1621
  };
1588
1622
  return (() => {
1589
- var _el$ = _tmpl$5$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$4.nextSibling;
1623
+ var _el$ = _tmpl$56(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$4.nextSibling;
1590
1624
  insert(_el$2, createComponent(Avatar, {
1591
1625
  get src() {
1592
1626
  return props.avatar;
@@ -1602,7 +1636,7 @@ function ProfileCard(props) {
1602
1636
  return props.bio;
1603
1637
  },
1604
1638
  get children() {
1605
- var _el$5 = _tmpl$$5();
1639
+ var _el$5 = _tmpl$30();
1606
1640
  insert(_el$5, () => props.bio);
1607
1641
  return _el$5;
1608
1642
  }
@@ -1612,7 +1646,7 @@ function ProfileCard(props) {
1612
1646
  return props.followers !== void 0;
1613
1647
  },
1614
1648
  get children() {
1615
- var _el$7 = _tmpl$2$3(), _el$8 = _el$7.firstChild;
1649
+ var _el$7 = _tmpl$217(), _el$8 = _el$7.firstChild;
1616
1650
  insert(_el$8, () => formatNumber(props.followers));
1617
1651
  return _el$7;
1618
1652
  }
@@ -1622,7 +1656,7 @@ function ProfileCard(props) {
1622
1656
  return props.following !== void 0;
1623
1657
  },
1624
1658
  get children() {
1625
- var _el$9 = _tmpl$3$3(), _el$0 = _el$9.firstChild;
1659
+ var _el$9 = _tmpl$312(), _el$0 = _el$9.firstChild;
1626
1660
  insert(_el$0, () => formatNumber(props.following));
1627
1661
  return _el$9;
1628
1662
  }
@@ -1632,7 +1666,7 @@ function ProfileCard(props) {
1632
1666
  return props.actions;
1633
1667
  },
1634
1668
  get children() {
1635
- var _el$1 = _tmpl$4$3();
1669
+ var _el$1 = _tmpl$411();
1636
1670
  insert(_el$1, () => props.actions);
1637
1671
  return _el$1;
1638
1672
  }
@@ -1641,8 +1675,18 @@ function ProfileCard(props) {
1641
1675
  return _el$;
1642
1676
  })();
1643
1677
  }
1644
-
1645
- var _tmpl$$4 = /* @__PURE__ */ template(`<div class="absolute -top-2 -right-2 z-10 flex flex-col gap-1"><img alt class="w-8 h-8 object-contain"><img alt class="w-6 h-6 object-contain ml-2"><img alt class="w-5 h-5 object-contain">`), _tmpl$2$2 = /* @__PURE__ */ template(`<div class="relative h-32 w-full"><img class="w-full h-full object-cover"><div class="absolute inset-0 bg-gradient-to-t from-bg-200 via-transparent to-transparent">`), _tmpl$3$2 = /* @__PURE__ */ template(`<div class="flex items-center gap-1.5"><span class=text-accent>@</span><span>`), _tmpl$4$2 = /* @__PURE__ */ template(`<div class="flex items-center gap-1.5"><span class=text-accent>⏱</span><span>`), _tmpl$5$1 = /* @__PURE__ */ template(`<div class="flex items-center gap-4 mt-3 text-sm text-primary-300">`), _tmpl$6$1 = /* @__PURE__ */ template(`<span class="ml-2 text-sm text-primary-300">+<!> más`), _tmpl$7 = /* @__PURE__ */ template(`<div class="flex items-center mt-3"><div class="flex -space-x-2">`), _tmpl$8 = /* @__PURE__ */ template(`<div class="mt-4 flex gap-2">`), _tmpl$9 = /* @__PURE__ */ template(`<div><div class="p-4 pt-2"><h3 class="font-bold text-xl leading-tight bg-gradient-to-r from-accent to-accent-300 bg-clip-text text-transparent">`), _tmpl$0 = /* @__PURE__ */ template(`<div class="w-12 h-12 rounded-lg overflow-hidden flex-shrink-0"><img class="w-full h-full object-cover">`), _tmpl$1 = /* @__PURE__ */ template(`<p class="text-sm text-primary-300 truncate">`), _tmpl$10 = /* @__PURE__ */ template(`<button><div class="flex-1 min-w-0"><h4 class="font-medium text-primary-100 truncate">`);
1678
+ var _tmpl$31 = /* @__PURE__ */ template(`<div class="absolute -top-2 -right-2 z-10 flex flex-col gap-1"><img alt class="w-8 h-8 object-contain"><img alt class="w-6 h-6 object-contain ml-2"><img alt class="w-5 h-5 object-contain">`);
1679
+ var _tmpl$218 = /* @__PURE__ */ template(`<div class="relative h-32 w-full"><img class="w-full h-full object-cover"><div class="absolute inset-0 bg-gradient-to-t from-bg-200 via-transparent to-transparent">`);
1680
+ var _tmpl$313 = /* @__PURE__ */ template(`<div class="flex items-center gap-1.5"><span class=text-accent>@</span><span>`);
1681
+ var _tmpl$412 = /* @__PURE__ */ template(`<div class="flex items-center gap-1.5"><span class=text-accent>\u23F1</span><span>`);
1682
+ var _tmpl$57 = /* @__PURE__ */ template(`<div class="flex items-center gap-4 mt-3 text-sm text-primary-300">`);
1683
+ var _tmpl$64 = /* @__PURE__ */ template(`<span class="ml-2 text-sm text-primary-300">+<!> m\xE1s`);
1684
+ var _tmpl$74 = /* @__PURE__ */ template(`<div class="flex items-center mt-3"><div class="flex -space-x-2">`);
1685
+ var _tmpl$82 = /* @__PURE__ */ template(`<div class="mt-4 flex gap-2">`);
1686
+ var _tmpl$92 = /* @__PURE__ */ template(`<div><div class="p-4 pt-2"><h3 class="font-bold text-xl leading-tight bg-gradient-to-r from-accent to-accent-300 bg-clip-text text-transparent">`);
1687
+ var _tmpl$0 = /* @__PURE__ */ template(`<div class="w-12 h-12 rounded-lg overflow-hidden flex-shrink-0"><img class="w-full h-full object-cover">`);
1688
+ var _tmpl$1 = /* @__PURE__ */ template(`<p class="text-sm text-primary-300 truncate">`);
1689
+ var _tmpl$102 = /* @__PURE__ */ template(`<button><div class="flex-1 min-w-0"><h4 class="font-medium text-primary-100 truncate">`);
1646
1690
  function EventCard(props) {
1647
1691
  const displayedAttendees = () => props.attendees?.slice(0, 3) ?? [];
1648
1692
  const remainingCount = () => {
@@ -1651,13 +1695,13 @@ function EventCard(props) {
1651
1695
  return total - displayed;
1652
1696
  };
1653
1697
  return (() => {
1654
- var _el$ = _tmpl$9(), _el$8 = _el$.firstChild, _el$9 = _el$8.firstChild;
1698
+ var _el$ = _tmpl$92(), _el$8 = _el$.firstChild, _el$9 = _el$8.firstChild;
1655
1699
  insert(_el$, createComponent(Show, {
1656
1700
  get when() {
1657
1701
  return props.decorationImage;
1658
1702
  },
1659
1703
  get children() {
1660
- var _el$2 = _tmpl$$4(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling;
1704
+ var _el$2 = _tmpl$31(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling;
1661
1705
  effect((_p$) => {
1662
1706
  var _v$ = props.decorationImage, _v$2 = props.decorationImage, _v$3 = props.decorationImage;
1663
1707
  _v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
@@ -1677,7 +1721,7 @@ function EventCard(props) {
1677
1721
  return props.image;
1678
1722
  },
1679
1723
  get children() {
1680
- var _el$6 = _tmpl$2$2(), _el$7 = _el$6.firstChild;
1724
+ var _el$6 = _tmpl$218(), _el$7 = _el$6.firstChild;
1681
1725
  effect((_p$) => {
1682
1726
  var _v$4 = props.image, _v$5 = props.title;
1683
1727
  _v$4 !== _p$.e && setAttribute(_el$7, "src", _p$.e = _v$4);
@@ -1696,13 +1740,13 @@ function EventCard(props) {
1696
1740
  return props.date || props.author;
1697
1741
  },
1698
1742
  get children() {
1699
- var _el$0 = _tmpl$5$1();
1743
+ var _el$0 = _tmpl$57();
1700
1744
  insert(_el$0, createComponent(Show, {
1701
1745
  get when() {
1702
1746
  return props.author;
1703
1747
  },
1704
1748
  get children() {
1705
- var _el$1 = _tmpl$3$2(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
1749
+ var _el$1 = _tmpl$313(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
1706
1750
  insert(_el$11, () => props.author);
1707
1751
  return _el$1;
1708
1752
  }
@@ -1712,7 +1756,7 @@ function EventCard(props) {
1712
1756
  return props.date;
1713
1757
  },
1714
1758
  get children() {
1715
- var _el$12 = _tmpl$4$2(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling;
1759
+ var _el$12 = _tmpl$412(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling;
1716
1760
  insert(_el$14, () => props.date);
1717
1761
  return _el$12;
1718
1762
  }
@@ -1725,7 +1769,7 @@ function EventCard(props) {
1725
1769
  return displayedAttendees().length > 0;
1726
1770
  },
1727
1771
  get children() {
1728
- var _el$15 = _tmpl$7(), _el$16 = _el$15.firstChild;
1772
+ var _el$15 = _tmpl$74(), _el$16 = _el$15.firstChild;
1729
1773
  insert(_el$16, createComponent(For, {
1730
1774
  get each() {
1731
1775
  return displayedAttendees();
@@ -1745,7 +1789,7 @@ function EventCard(props) {
1745
1789
  return remainingCount() > 0;
1746
1790
  },
1747
1791
  get children() {
1748
- var _el$17 = _tmpl$6$1(), _el$18 = _el$17.firstChild, _el$20 = _el$18.nextSibling; _el$20.nextSibling;
1792
+ var _el$17 = _tmpl$64(), _el$18 = _el$17.firstChild, _el$20 = _el$18.nextSibling;
1749
1793
  insert(_el$17, remainingCount, _el$20);
1750
1794
  return _el$17;
1751
1795
  }
@@ -1758,7 +1802,7 @@ function EventCard(props) {
1758
1802
  return props.actions;
1759
1803
  },
1760
1804
  get children() {
1761
- var _el$21 = _tmpl$8();
1805
+ var _el$21 = _tmpl$82();
1762
1806
  insert(_el$21, () => props.actions);
1763
1807
  return _el$21;
1764
1808
  }
@@ -1769,7 +1813,7 @@ function EventCard(props) {
1769
1813
  }
1770
1814
  function EventListItem(props) {
1771
1815
  return (() => {
1772
- var _el$22 = _tmpl$10(), _el$25 = _el$22.firstChild, _el$26 = _el$25.firstChild;
1816
+ var _el$22 = _tmpl$102(), _el$25 = _el$22.firstChild, _el$26 = _el$25.firstChild;
1773
1817
  addEventListener(_el$22, "click", props.onClick, true);
1774
1818
  insert(_el$22, createComponent(Show, {
1775
1819
  get when() {
@@ -1805,8 +1849,12 @@ function EventListItem(props) {
1805
1849
  })();
1806
1850
  }
1807
1851
  delegateEvents(["click"]);
1808
-
1809
- var _tmpl$$3 = /* @__PURE__ */ template(`<div class="relative h-[80px] w-[80px] flex-shrink-0 overflow-hidden rounded-xl border-2 border-accent-200"><img class="h-full w-full object-cover">`), _tmpl$2$1 = /* @__PURE__ */ template(`<div class="absolute bottom-[-20px] h-[30px] w-full"><div class="flex h-full w-full flex-1 justify-end gap-1">`), _tmpl$3$1 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200"> más`), _tmpl$4$1 = /* @__PURE__ */ template(`<div class="flex flex-1"><span class="text-base font-normal text-primary-500">seguida por `), _tmpl$5 = /* @__PURE__ */ template(`<div><div class="relative h-full flex-1 flex-col pl-3"><div class="flex h-full flex-col items-end justify-center pb-3 pr-5 pt-2"><div class="flex flex-1"><span class="text-lg font-semibold text-white drop-shadow-sm">`), _tmpl$6 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200">`);
1852
+ var _tmpl$40 = /* @__PURE__ */ template(`<div class="relative h-[80px] w-[80px] flex-shrink-0 overflow-hidden rounded-xl border-2 border-accent-200"><img class="h-full w-full object-cover">`);
1853
+ var _tmpl$219 = /* @__PURE__ */ template(`<div class="absolute bottom-[-20px] h-[30px] w-full"><div class="flex h-full w-full flex-1 justify-end gap-1">`);
1854
+ var _tmpl$314 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200"> m\xE1s`);
1855
+ var _tmpl$413 = /* @__PURE__ */ template(`<div class="flex flex-1"><span class="text-base font-normal text-primary-500">seguida por `);
1856
+ var _tmpl$58 = /* @__PURE__ */ template(`<div><div class="relative h-full flex-1 flex-col pl-3"><div class="flex h-full flex-col items-end justify-center pb-3 pr-5 pt-2"><div class="flex flex-1"><span class="text-lg font-semibold text-white drop-shadow-sm">`);
1857
+ var _tmpl$65 = /* @__PURE__ */ template(`<span class="font-semibold text-accent-200">`);
1810
1858
  function CalendarCard(props) {
1811
1859
  const displayedFollowers = () => props.followers?.slice(0, 2) ?? [];
1812
1860
  const remainingCount = () => {
@@ -1815,13 +1863,13 @@ function CalendarCard(props) {
1815
1863
  return total - displayed;
1816
1864
  };
1817
1865
  return (() => {
1818
- var _el$ = _tmpl$5(), _el$4 = _el$.firstChild, _el$7 = _el$4.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild;
1866
+ var _el$ = _tmpl$58(), _el$4 = _el$.firstChild, _el$7 = _el$4.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild;
1819
1867
  insert(_el$, createComponent(Show, {
1820
1868
  get when() {
1821
1869
  return props.image;
1822
1870
  },
1823
1871
  get children() {
1824
- var _el$2 = _tmpl$$3(), _el$3 = _el$2.firstChild;
1872
+ var _el$2 = _tmpl$40(), _el$3 = _el$2.firstChild;
1825
1873
  effect((_p$) => {
1826
1874
  var _v$ = props.image, _v$2 = props.title;
1827
1875
  _v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
@@ -1839,7 +1887,7 @@ function CalendarCard(props) {
1839
1887
  return memo(() => !!props.tags)() && props.tags.length > 0;
1840
1888
  },
1841
1889
  get children() {
1842
- var _el$5 = _tmpl$2$1(), _el$6 = _el$5.firstChild;
1890
+ var _el$5 = _tmpl$219(), _el$6 = _el$5.firstChild;
1843
1891
  insert(_el$6, createComponent(For, {
1844
1892
  get each() {
1845
1893
  return props.tags;
@@ -1858,13 +1906,13 @@ function CalendarCard(props) {
1858
1906
  return displayedFollowers().length > 0;
1859
1907
  },
1860
1908
  get children() {
1861
- var _el$0 = _tmpl$4$1(), _el$1 = _el$0.firstChild; _el$1.firstChild;
1909
+ var _el$0 = _tmpl$413(), _el$1 = _el$0.firstChild;
1862
1910
  insert(_el$1, createComponent(For, {
1863
1911
  get each() {
1864
1912
  return displayedFollowers();
1865
1913
  },
1866
1914
  children: (follower, index) => [(() => {
1867
- var _el$14 = _tmpl$6();
1915
+ var _el$14 = _tmpl$65();
1868
1916
  insert(_el$14, () => follower.name);
1869
1917
  return _el$14;
1870
1918
  })(), memo(() => index() < displayedFollowers().length - 1 && ", ")]
@@ -1875,7 +1923,7 @@ function CalendarCard(props) {
1875
1923
  },
1876
1924
  get children() {
1877
1925
  return [" ", "y ", (() => {
1878
- var _el$12 = _tmpl$3$1(), _el$13 = _el$12.firstChild;
1926
+ var _el$12 = _tmpl$314(), _el$13 = _el$12.firstChild;
1879
1927
  insert(_el$12, remainingCount, _el$13);
1880
1928
  return _el$12;
1881
1929
  })()];
@@ -1888,8 +1936,7 @@ function CalendarCard(props) {
1888
1936
  return _el$;
1889
1937
  })();
1890
1938
  }
1891
-
1892
- var _tmpl$$2 = /* @__PURE__ */ template(`<span><span class=vui-logo__first></span><span class=vui-logo__second>`);
1939
+ var _tmpl$41 = /* @__PURE__ */ template(`<span><span class=vui-logo__first></span><span class=vui-logo__second>`);
1893
1940
  function Logo(props) {
1894
1941
  const sizeClass = () => {
1895
1942
  switch (props.size) {
@@ -1907,7 +1954,7 @@ function Logo(props) {
1907
1954
  const firstWord = () => props.firstWord ?? "Proyecto";
1908
1955
  const secondWord = () => props.secondWord ?? "Viviana";
1909
1956
  return (() => {
1910
- var _el$ = _tmpl$$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
1957
+ var _el$ = _tmpl$41(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
1911
1958
  insert(_el$2, firstWord);
1912
1959
  insert(_el$3, secondWord);
1913
1960
  effect((_p$) => {
@@ -1922,17 +1969,19 @@ function Logo(props) {
1922
1969
  return _el$;
1923
1970
  })();
1924
1971
  }
1925
-
1926
- var _tmpl$$1 = /* @__PURE__ */ template(`<div class=vui-project-card__tooltip><span>`), _tmpl$2 = /* @__PURE__ */ template(`<img class=vui-project-card__image>`), _tmpl$3 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`), _tmpl$4 = /* @__PURE__ */ template(`<div>`);
1972
+ var _tmpl$50 = /* @__PURE__ */ template(`<div class=vui-project-card__tooltip><span>`);
1973
+ var _tmpl$220 = /* @__PURE__ */ template(`<img class=vui-project-card__image>`);
1974
+ var _tmpl$315 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`);
1975
+ var _tmpl$414 = /* @__PURE__ */ template(`<div>`);
1927
1976
  function ProjectCard(props) {
1928
1977
  const size = () => props.size ?? "sm";
1929
1978
  const inactive = () => props.inactive ?? false;
1930
1979
  const cardContent = () => [(() => {
1931
- var _el$ = _tmpl$$1(), _el$2 = _el$.firstChild;
1980
+ var _el$ = _tmpl$50(), _el$2 = _el$.firstChild;
1932
1981
  insert(_el$2, () => props.name);
1933
1982
  return _el$;
1934
1983
  })(), (() => {
1935
- var _el$3 = _tmpl$2();
1984
+ var _el$3 = _tmpl$220();
1936
1985
  effect((_p$) => {
1937
1986
  var _v$ = props.imageSrc, _v$2 = props.imageAlt ?? props.name;
1938
1987
  _v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
@@ -1947,7 +1996,7 @@ function ProjectCard(props) {
1947
1996
  const cardClasses = () => `vui-project-card vui-project-card--${size()} ${inactive() ? "vui-project-card--inactive" : ""} ${props.class ?? ""}`;
1948
1997
  if (props.href) {
1949
1998
  return (() => {
1950
- var _el$4 = _tmpl$3();
1999
+ var _el$4 = _tmpl$315();
1951
2000
  insert(_el$4, cardContent);
1952
2001
  effect((_p$) => {
1953
2002
  var _v$3 = props.href, _v$4 = cardClasses();
@@ -1962,18 +2011,17 @@ function ProjectCard(props) {
1962
2011
  })();
1963
2012
  }
1964
2013
  return (() => {
1965
- var _el$5 = _tmpl$4();
2014
+ var _el$5 = _tmpl$414();
1966
2015
  insert(_el$5, cardContent);
1967
2016
  effect(() => className(_el$5, cardClasses()));
1968
2017
  return _el$5;
1969
2018
  })();
1970
2019
  }
1971
-
1972
- var _tmpl$ = /* @__PURE__ */ template(`<div>`);
2020
+ var _tmpl$51 = /* @__PURE__ */ template(`<div>`);
1973
2021
  function PageLayout(props) {
1974
2022
  const [local, rest] = splitProps(props, ["children", "class"]);
1975
2023
  return (() => {
1976
- var _el$ = _tmpl$();
2024
+ var _el$ = _tmpl$51();
1977
2025
  spread(_el$, mergeProps$1({
1978
2026
  get ["class"]() {
1979
2027
  return `vui-page ${local.class ?? ""}`;
@@ -1985,4 +2033,3 @@ function PageLayout(props) {
1985
2033
  }
1986
2034
 
1987
2035
  export { Alert, Avatar, AvatarGroup, Badge, Button, CalendarCard, Checkbox, CheckboxGroup, Chip, Conversation, ConversationBubble, ConversationPreview, Dialog, EventCard, EventListItem, GitHubIcon, Icon, LateralNav, Link, Logo, NavHeader, NavItem, NavLink, NavSection, PageLayout, ProfileCard, ProgressBar, ProjectCard, Radio, RadioGroup, Separator, TabSwitch, TextField, TimelineItem, ToggleSwitch, Tooltip };
1988
- //# sourceMappingURL=index.js.map