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