@proyecto-viviana/ui 0.1.3 → 0.1.5
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 +924 -578
- package/dist/index.js.map +1 -0
- package/dist/index.ssr.js +1657 -0
- package/dist/index.ssr.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,16 +1,16 @@
|
|
|
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
|
-
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
|
-
import { createTextField, createFocusRing, createProgressBar, createSeparator } from '@proyecto-viviana/solidaria';
|
|
5
|
-
|
|
6
1
|
// src/button/Button.tsx
|
|
2
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
4
|
+
import { memo as _$memo } from "solid-js/web";
|
|
5
|
+
import { splitProps, mergeProps as solidMergeProps } from "solid-js";
|
|
6
|
+
import { Button as HeadlessButton } from "@proyecto-viviana/solidaria-components";
|
|
7
7
|
function Button(props) {
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
variant: "primary",
|
|
10
10
|
buttonStyle: "fill",
|
|
11
11
|
size: "md"
|
|
12
12
|
};
|
|
13
|
-
const merged =
|
|
13
|
+
const merged = solidMergeProps(defaultProps, props);
|
|
14
14
|
const [local, headlessProps] = splitProps(merged, ["children", "variant", "buttonStyle", "size", "fullWidth", "staticColor", "class"]);
|
|
15
15
|
const getClassName = (renderProps) => {
|
|
16
16
|
const classList = ["vui-button", `vui-button--${local.buttonStyle}`, `vui-button--${local.variant}`, `vui-button--${local.size}`];
|
|
@@ -25,7 +25,7 @@ function Button(props) {
|
|
|
25
25
|
}
|
|
26
26
|
return classList.join(" ");
|
|
27
27
|
};
|
|
28
|
-
return createComponent(
|
|
28
|
+
return _$createComponent(HeadlessButton, _$mergeProps(headlessProps, {
|
|
29
29
|
"class": getClassName,
|
|
30
30
|
get ["data-variant"]() {
|
|
31
31
|
return local.variant;
|
|
@@ -41,8 +41,17 @@ function Button(props) {
|
|
|
41
41
|
}
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
|
|
45
|
+
// src/badge/index.tsx
|
|
46
|
+
import { template as _$template } from "solid-js/web";
|
|
47
|
+
import { className as _$className } from "solid-js/web";
|
|
48
|
+
import { effect as _$effect } from "solid-js/web";
|
|
49
|
+
import { createComponent as _$createComponent2 } from "solid-js/web";
|
|
50
|
+
import { getNextElement as _$getNextElement } from "solid-js/web";
|
|
51
|
+
import { insert as _$insert } from "solid-js/web";
|
|
52
|
+
import { Show } from "solid-js";
|
|
53
|
+
var _tmpl$ = /* @__PURE__ */ _$template(`<span>`);
|
|
54
|
+
var _tmpl$2 = /* @__PURE__ */ _$template(`<div>`);
|
|
46
55
|
var variantStyles = {
|
|
47
56
|
primary: "bg-primary-500 text-white",
|
|
48
57
|
secondary: "bg-bg-300 text-primary-300",
|
|
@@ -60,8 +69,8 @@ function Badge(props) {
|
|
|
60
69
|
const variant = () => props.variant ?? "accent";
|
|
61
70
|
const size = () => props.size ?? "md";
|
|
62
71
|
return (() => {
|
|
63
|
-
var _el$ = _tmpl$2
|
|
64
|
-
insert(_el$,
|
|
72
|
+
var _el$ = _$getNextElement(_tmpl$2);
|
|
73
|
+
_$insert(_el$, _$createComponent2(Show, {
|
|
65
74
|
get when() {
|
|
66
75
|
return props.count !== void 0;
|
|
67
76
|
},
|
|
@@ -69,19 +78,32 @@ function Badge(props) {
|
|
|
69
78
|
return props.children;
|
|
70
79
|
},
|
|
71
80
|
get children() {
|
|
72
|
-
var _el$2 = _tmpl$
|
|
73
|
-
insert(_el$2, () => props.count);
|
|
81
|
+
var _el$2 = _$getNextElement(_tmpl$);
|
|
82
|
+
_$insert(_el$2, () => props.count);
|
|
74
83
|
return _el$2;
|
|
75
84
|
}
|
|
76
85
|
}));
|
|
77
|
-
effect(() => className(_el$, `flex items-center justify-center rounded-full border-b border-white font-semibold ${variantStyles[variant()]} ${sizeStyles[size()]} ${props.class ?? ""}`));
|
|
86
|
+
_$effect(() => _$className(_el$, `flex items-center justify-center rounded-full border-b border-white font-semibold ${variantStyles[variant()]} ${sizeStyles[size()]} ${props.class ?? ""}`));
|
|
78
87
|
return _el$;
|
|
79
88
|
})();
|
|
80
89
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
|
|
91
|
+
// src/alert/index.tsx
|
|
92
|
+
import { template as _$template2 } from "solid-js/web";
|
|
93
|
+
import { delegateEvents as _$delegateEvents } from "solid-js/web";
|
|
94
|
+
import { className as _$className2 } from "solid-js/web";
|
|
95
|
+
import { effect as _$effect2 } from "solid-js/web";
|
|
96
|
+
import { getNextMarker as _$getNextMarker } from "solid-js/web";
|
|
97
|
+
import { runHydrationEvents as _$runHydrationEvents } from "solid-js/web";
|
|
98
|
+
import { addEventListener as _$addEventListener } from "solid-js/web";
|
|
99
|
+
import { createComponent as _$createComponent3 } from "solid-js/web";
|
|
100
|
+
import { getNextElement as _$getNextElement2 } from "solid-js/web";
|
|
101
|
+
import { insert as _$insert2 } from "solid-js/web";
|
|
102
|
+
import { Show as Show2 } from "solid-js";
|
|
103
|
+
var _tmpl$3 = /* @__PURE__ */ _$template2(`<span class="font-semibold font-jost">`);
|
|
104
|
+
var _tmpl$22 = /* @__PURE__ */ _$template2(`<span class=opacity-50>|`);
|
|
105
|
+
var _tmpl$32 = /* @__PURE__ */ _$template2(`<button class="hover:opacity-70 transition-opacity ml-2"aria-label=Dismiss>\u2715`);
|
|
106
|
+
var _tmpl$4 = /* @__PURE__ */ _$template2(`<div role=alert><div class="flex items-center gap-3 flex-1"><!$><!/><div class=flex-1></div><!$><!/>`);
|
|
85
107
|
var variantStyles2 = {
|
|
86
108
|
info: "bg-primary-700 text-primary-200 border border-primary-500",
|
|
87
109
|
success: "bg-success-600 text-success-100 border border-success-400",
|
|
@@ -91,39 +113,51 @@ var variantStyles2 = {
|
|
|
91
113
|
function Alert(props) {
|
|
92
114
|
const variant = () => props.variant ?? "info";
|
|
93
115
|
return (() => {
|
|
94
|
-
var _el$ = _tmpl$4
|
|
95
|
-
|
|
116
|
+
var _el$ = _$getNextElement2(_tmpl$4), _el$2 = _el$.firstChild, _el$7 = _el$2.firstChild, [_el$8, _co$] = _$getNextMarker(_el$7.nextSibling), _el$5 = _el$8.nextSibling, _el$9 = _el$5.nextSibling, [_el$0, _co$2] = _$getNextMarker(_el$9.nextSibling);
|
|
117
|
+
_$insert2(_el$2, _$createComponent3(Show2, {
|
|
96
118
|
get when() {
|
|
97
119
|
return props.title;
|
|
98
120
|
},
|
|
99
121
|
get children() {
|
|
100
122
|
return [(() => {
|
|
101
|
-
var _el$3 = _tmpl$3
|
|
102
|
-
|
|
123
|
+
var _el$3 = _$getNextElement2(_tmpl$3);
|
|
124
|
+
_$insert2(_el$3, () => props.title);
|
|
103
125
|
return _el$3;
|
|
104
|
-
})(), _tmpl$22
|
|
126
|
+
})(), _$getNextElement2(_tmpl$22)];
|
|
105
127
|
}
|
|
106
|
-
}), _el$
|
|
107
|
-
|
|
108
|
-
|
|
128
|
+
}), _el$8, _co$);
|
|
129
|
+
_$insert2(_el$5, () => props.children);
|
|
130
|
+
_$insert2(_el$2, _$createComponent3(Show2, {
|
|
109
131
|
get when() {
|
|
110
132
|
return props.dismissible;
|
|
111
133
|
},
|
|
112
134
|
get children() {
|
|
113
|
-
var _el$6 = _tmpl$32
|
|
114
|
-
addEventListener(_el$6, "click", props.onDismiss, true);
|
|
135
|
+
var _el$6 = _$getNextElement2(_tmpl$32);
|
|
136
|
+
_$addEventListener(_el$6, "click", props.onDismiss, true);
|
|
137
|
+
_$runHydrationEvents();
|
|
115
138
|
return _el$6;
|
|
116
139
|
}
|
|
117
|
-
}),
|
|
118
|
-
|
|
140
|
+
}), _el$0, _co$2);
|
|
141
|
+
_$effect2(() => _$className2(_el$, `flex items-center min-h-[50px] font-normal rounded-lg px-4 py-2 ${variantStyles2[variant()]} ${props.class ?? ""}`));
|
|
119
142
|
return _el$;
|
|
120
143
|
})();
|
|
121
144
|
}
|
|
122
|
-
delegateEvents(["click"]);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
145
|
+
_$delegateEvents(["click"]);
|
|
146
|
+
|
|
147
|
+
// src/avatar/index.tsx
|
|
148
|
+
import { template as _$template3 } from "solid-js/web";
|
|
149
|
+
import { getNextMarker as _$getNextMarker2 } from "solid-js/web";
|
|
150
|
+
import { className as _$className3 } from "solid-js/web";
|
|
151
|
+
import { insert as _$insert3 } from "solid-js/web";
|
|
152
|
+
import { createComponent as _$createComponent4 } from "solid-js/web";
|
|
153
|
+
import { setAttribute as _$setAttribute } from "solid-js/web";
|
|
154
|
+
import { effect as _$effect3 } from "solid-js/web";
|
|
155
|
+
import { getNextElement as _$getNextElement3 } from "solid-js/web";
|
|
156
|
+
import { Show as Show3 } from "solid-js";
|
|
157
|
+
var _tmpl$5 = /* @__PURE__ */ _$template3(`<img class="w-full h-full object-cover">`);
|
|
158
|
+
var _tmpl$23 = /* @__PURE__ */ _$template3(`<span>`);
|
|
159
|
+
var _tmpl$33 = /* @__PURE__ */ _$template3(`<div><div></div><!$><!/>`);
|
|
160
|
+
var _tmpl$42 = /* @__PURE__ */ _$template3(`<div class="flex -space-x-2">`);
|
|
127
161
|
var sizeStyles2 = {
|
|
128
162
|
xs: {
|
|
129
163
|
container: "w-6 h-6",
|
|
@@ -160,25 +194,25 @@ function Avatar(props) {
|
|
|
160
194
|
return "?";
|
|
161
195
|
};
|
|
162
196
|
return (() => {
|
|
163
|
-
var _el$ = _tmpl$33
|
|
164
|
-
|
|
197
|
+
var _el$ = _$getNextElement3(_tmpl$33), _el$2 = _el$.firstChild, _el$5 = _el$2.nextSibling, [_el$6, _co$] = _$getNextMarker2(_el$5.nextSibling);
|
|
198
|
+
_$insert3(_el$2, _$createComponent4(Show3, {
|
|
165
199
|
get when() {
|
|
166
200
|
return props.src;
|
|
167
201
|
},
|
|
168
202
|
get fallback() {
|
|
169
203
|
return (() => {
|
|
170
|
-
var _el$
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return _el$
|
|
204
|
+
var _el$7 = _$getNextElement3(_tmpl$23);
|
|
205
|
+
_$insert3(_el$7, initials);
|
|
206
|
+
_$effect3(() => _$className3(_el$7, `${styles().text} font-medium text-primary-300`));
|
|
207
|
+
return _el$7;
|
|
174
208
|
})();
|
|
175
209
|
},
|
|
176
210
|
get children() {
|
|
177
|
-
var _el$3 = _tmpl$5
|
|
178
|
-
|
|
211
|
+
var _el$3 = _$getNextElement3(_tmpl$5);
|
|
212
|
+
_$effect3((_p$) => {
|
|
179
213
|
var _v$ = props.src, _v$2 = props.alt ?? "Avatar";
|
|
180
|
-
_v$ !== _p$.e && setAttribute(_el$3, "src", _p$.e = _v$);
|
|
181
|
-
_v$2 !== _p$.t && setAttribute(_el$3, "alt", _p$.t = _v$2);
|
|
214
|
+
_v$ !== _p$.e && _$setAttribute(_el$3, "src", _p$.e = _v$);
|
|
215
|
+
_v$2 !== _p$.t && _$setAttribute(_el$3, "alt", _p$.t = _v$2);
|
|
182
216
|
return _p$;
|
|
183
217
|
}, {
|
|
184
218
|
e: void 0,
|
|
@@ -187,20 +221,20 @@ function Avatar(props) {
|
|
|
187
221
|
return _el$3;
|
|
188
222
|
}
|
|
189
223
|
}));
|
|
190
|
-
|
|
224
|
+
_$insert3(_el$, _$createComponent4(Show3, {
|
|
191
225
|
get when() {
|
|
192
226
|
return props.online !== void 0;
|
|
193
227
|
},
|
|
194
228
|
get children() {
|
|
195
|
-
var _el$4 = _tmpl$23
|
|
196
|
-
|
|
229
|
+
var _el$4 = _$getNextElement3(_tmpl$23);
|
|
230
|
+
_$effect3(() => _$className3(_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
231
|
return _el$4;
|
|
198
232
|
}
|
|
199
|
-
}),
|
|
200
|
-
|
|
233
|
+
}), _el$6, _co$);
|
|
234
|
+
_$effect3((_p$) => {
|
|
201
235
|
var _v$3 = `relative inline-block ${props.class ?? ""}`, _v$4 = `${styles().container} rounded-full overflow-hidden bg-bg-200 flex items-center justify-center ring-2 ring-accent/50`;
|
|
202
|
-
_v$3 !== _p$.e &&
|
|
203
|
-
_v$4 !== _p$.t &&
|
|
236
|
+
_v$3 !== _p$.e && _$className3(_el$, _p$.e = _v$3);
|
|
237
|
+
_v$4 !== _p$.t && _$className3(_el$2, _p$.t = _v$4);
|
|
204
238
|
return _p$;
|
|
205
239
|
}, {
|
|
206
240
|
e: void 0,
|
|
@@ -211,13 +245,36 @@ function Avatar(props) {
|
|
|
211
245
|
}
|
|
212
246
|
function AvatarGroup(props) {
|
|
213
247
|
return (() => {
|
|
214
|
-
var _el$
|
|
215
|
-
|
|
216
|
-
return _el$
|
|
248
|
+
var _el$8 = _$getNextElement3(_tmpl$42);
|
|
249
|
+
_$insert3(_el$8, () => props.children);
|
|
250
|
+
return _el$8;
|
|
217
251
|
})();
|
|
218
252
|
}
|
|
219
|
-
|
|
220
|
-
|
|
253
|
+
|
|
254
|
+
// src/switch/index.tsx
|
|
255
|
+
import { template as _$template5 } from "solid-js/web";
|
|
256
|
+
import { delegateEvents as _$delegateEvents2 } from "solid-js/web";
|
|
257
|
+
import { className as _$className5 } from "solid-js/web";
|
|
258
|
+
import { effect as _$effect5 } from "solid-js/web";
|
|
259
|
+
import { getNextElement as _$getNextElement5 } from "solid-js/web";
|
|
260
|
+
import { runHydrationEvents as _$runHydrationEvents2 } from "solid-js/web";
|
|
261
|
+
import { insert as _$insert5 } from "solid-js/web";
|
|
262
|
+
import { memo as _$memo3 } from "solid-js/web";
|
|
263
|
+
import { createSignal, createEffect } from "solid-js";
|
|
264
|
+
|
|
265
|
+
// src/switch/ToggleSwitch.tsx
|
|
266
|
+
import { template as _$template4 } from "solid-js/web";
|
|
267
|
+
import { insert as _$insert4 } from "solid-js/web";
|
|
268
|
+
import { memo as _$memo2 } from "solid-js/web";
|
|
269
|
+
import { className as _$className4 } from "solid-js/web";
|
|
270
|
+
import { effect as _$effect4 } from "solid-js/web";
|
|
271
|
+
import { getNextElement as _$getNextElement4 } from "solid-js/web";
|
|
272
|
+
import { createComponent as _$createComponent5 } from "solid-js/web";
|
|
273
|
+
import { mergeProps as _$mergeProps2 } from "solid-js/web";
|
|
274
|
+
import { splitProps as splitProps2, mergeProps as solidMergeProps2 } from "solid-js";
|
|
275
|
+
import { ToggleSwitch as HeadlessToggleSwitch } from "@proyecto-viviana/solidaria-components";
|
|
276
|
+
var _tmpl$6 = /* @__PURE__ */ _$template4(`<span><span>`);
|
|
277
|
+
var _tmpl$24 = /* @__PURE__ */ _$template4(`<span class=text-primary-200>`);
|
|
221
278
|
var sizeStyles3 = {
|
|
222
279
|
sm: {
|
|
223
280
|
track: "h-5 w-9",
|
|
@@ -239,8 +296,8 @@ function ToggleSwitch(props) {
|
|
|
239
296
|
const defaultProps = {
|
|
240
297
|
size: "md"
|
|
241
298
|
};
|
|
242
|
-
const merged =
|
|
243
|
-
const [local, headlessProps] =
|
|
299
|
+
const merged = solidMergeProps2(defaultProps, props);
|
|
300
|
+
const [local, headlessProps] = splitProps2(merged, ["size", "class", "children"]);
|
|
244
301
|
const size = () => sizeStyles3[local.size];
|
|
245
302
|
const getClassName = (renderProps) => {
|
|
246
303
|
const base = "inline-flex items-center gap-2 cursor-pointer";
|
|
@@ -248,30 +305,30 @@ function ToggleSwitch(props) {
|
|
|
248
305
|
const custom = local.class || "";
|
|
249
306
|
return [base, disabledClass, custom].filter(Boolean).join(" ");
|
|
250
307
|
};
|
|
251
|
-
return
|
|
308
|
+
return _$createComponent5(HeadlessToggleSwitch, _$mergeProps2(headlessProps, {
|
|
252
309
|
"class": getClassName,
|
|
253
310
|
children: (renderProps) => [(() => {
|
|
254
|
-
var _el$ = _tmpl$6
|
|
255
|
-
|
|
311
|
+
var _el$ = _$getNextElement4(_tmpl$6), _el$2 = _el$.firstChild;
|
|
312
|
+
_$effect4((_p$) => {
|
|
256
313
|
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
|
-
_v$ !== _p$.e &&
|
|
258
|
-
_v$2 !== _p$.t &&
|
|
314
|
+
_v$ !== _p$.e && _$className4(_el$, _p$.e = _v$);
|
|
315
|
+
_v$2 !== _p$.t && _$className4(_el$2, _p$.t = _v$2);
|
|
259
316
|
return _p$;
|
|
260
317
|
}, {
|
|
261
318
|
e: void 0,
|
|
262
319
|
t: void 0
|
|
263
320
|
});
|
|
264
321
|
return _el$;
|
|
265
|
-
})(),
|
|
266
|
-
var _el$3 = _tmpl$24
|
|
267
|
-
|
|
322
|
+
})(), _$memo2(() => _$memo2(() => !!local.children)() && (() => {
|
|
323
|
+
var _el$3 = _$getNextElement4(_tmpl$24);
|
|
324
|
+
_$insert4(_el$3, () => local.children);
|
|
268
325
|
return _el$3;
|
|
269
326
|
})())]
|
|
270
327
|
}));
|
|
271
328
|
}
|
|
272
329
|
|
|
273
330
|
// src/switch/index.tsx
|
|
274
|
-
var _tmpl$7 = /* @__PURE__ */
|
|
331
|
+
var _tmpl$7 = /* @__PURE__ */ _$template5(`<div><div></div><div class="flex z-10 h-8 justify-around"><button type=button><span></span></button><button type=button><span>`);
|
|
275
332
|
function TabSwitch(props) {
|
|
276
333
|
const [leftSelected, setLeftSelected] = createSignal(props.value ? props.value === props.options[0]?.value : true);
|
|
277
334
|
createEffect(() => {
|
|
@@ -292,16 +349,16 @@ function TabSwitch(props) {
|
|
|
292
349
|
const textSelected = "font-extrabold text-primary-300";
|
|
293
350
|
const textUnselected = "font-medium text-primary-600 tracking-wider";
|
|
294
351
|
return (() => {
|
|
295
|
-
var _el$ = _tmpl$7
|
|
352
|
+
var _el$ = _$getNextElement5(_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;
|
|
296
353
|
_el$.$$click = toggle;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
354
|
+
_$insert5(_el$5, () => props.options[0]?.label ?? "TENDENCIAS");
|
|
355
|
+
_$insert5(_el$7, () => props.options[1]?.label ?? "\xDALTIMOS");
|
|
356
|
+
_$effect5((_p$) => {
|
|
300
357
|
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
|
-
_v$ !== _p$.e &&
|
|
302
|
-
_v$2 !== _p$.t &&
|
|
303
|
-
_v$3 !== _p$.a &&
|
|
304
|
-
_v$4 !== _p$.o &&
|
|
358
|
+
_v$ !== _p$.e && _$className5(_el$, _p$.e = _v$);
|
|
359
|
+
_v$2 !== _p$.t && _$className5(_el$2, _p$.t = _v$2);
|
|
360
|
+
_v$3 !== _p$.a && _$className5(_el$4, _p$.a = _v$3);
|
|
361
|
+
_v$4 !== _p$.o && _$className5(_el$6, _p$.o = _v$4);
|
|
305
362
|
return _p$;
|
|
306
363
|
}, {
|
|
307
364
|
e: void 0,
|
|
@@ -309,17 +366,31 @@ function TabSwitch(props) {
|
|
|
309
366
|
a: void 0,
|
|
310
367
|
o: void 0
|
|
311
368
|
});
|
|
369
|
+
_$runHydrationEvents2();
|
|
312
370
|
return _el$;
|
|
313
371
|
})();
|
|
314
372
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
373
|
+
_$delegateEvents2(["click"]);
|
|
374
|
+
|
|
375
|
+
// src/checkbox/index.tsx
|
|
376
|
+
import { template as _$template6 } from "solid-js/web";
|
|
377
|
+
import { memo as _$memo4 } from "solid-js/web";
|
|
378
|
+
import { className as _$className6 } from "solid-js/web";
|
|
379
|
+
import { insert as _$insert6 } from "solid-js/web";
|
|
380
|
+
import { createComponent as _$createComponent6 } from "solid-js/web";
|
|
381
|
+
import { mergeProps as _$mergeProps3 } from "solid-js/web";
|
|
382
|
+
import { setAttribute as _$setAttribute2 } from "solid-js/web";
|
|
383
|
+
import { effect as _$effect6 } from "solid-js/web";
|
|
384
|
+
import { getNextElement as _$getNextElement6 } from "solid-js/web";
|
|
385
|
+
import { splitProps as splitProps3, mergeProps as solidMergeProps3, Show as Show4 } from "solid-js";
|
|
386
|
+
import { Checkbox as HeadlessCheckbox, CheckboxGroup as HeadlessCheckboxGroup } from "@proyecto-viviana/solidaria-components";
|
|
387
|
+
var _tmpl$8 = /* @__PURE__ */ _$template6(`<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>`);
|
|
388
|
+
var _tmpl$25 = /* @__PURE__ */ _$template6(`<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>`);
|
|
389
|
+
var _tmpl$34 = /* @__PURE__ */ _$template6(`<span>`);
|
|
390
|
+
var _tmpl$43 = /* @__PURE__ */ _$template6(`<span class="text-sm font-medium text-primary-200">`);
|
|
391
|
+
var _tmpl$52 = /* @__PURE__ */ _$template6(`<div class="flex flex-col gap-2">`);
|
|
392
|
+
var _tmpl$62 = /* @__PURE__ */ _$template6(`<span class="text-sm text-primary-400">`);
|
|
393
|
+
var _tmpl$72 = /* @__PURE__ */ _$template6(`<span class="text-sm text-danger-400">`);
|
|
323
394
|
var sizeStyles4 = {
|
|
324
395
|
sm: {
|
|
325
396
|
box: "h-4 w-4",
|
|
@@ -339,15 +410,15 @@ var sizeStyles4 = {
|
|
|
339
410
|
};
|
|
340
411
|
function CheckIcon(props) {
|
|
341
412
|
return (() => {
|
|
342
|
-
var _el$ = _tmpl$8
|
|
343
|
-
|
|
413
|
+
var _el$ = _$getNextElement6(_tmpl$8);
|
|
414
|
+
_$effect6(() => _$setAttribute2(_el$, "class", props.class));
|
|
344
415
|
return _el$;
|
|
345
416
|
})();
|
|
346
417
|
}
|
|
347
418
|
function IndeterminateIcon(props) {
|
|
348
419
|
return (() => {
|
|
349
|
-
var _el$2 = _tmpl$25
|
|
350
|
-
|
|
420
|
+
var _el$2 = _$getNextElement6(_tmpl$25);
|
|
421
|
+
_$effect6(() => _$setAttribute2(_el$2, "class", props.class));
|
|
351
422
|
return _el$2;
|
|
352
423
|
})();
|
|
353
424
|
}
|
|
@@ -355,8 +426,8 @@ function Checkbox(props) {
|
|
|
355
426
|
const defaultProps = {
|
|
356
427
|
size: "md"
|
|
357
428
|
};
|
|
358
|
-
const merged =
|
|
359
|
-
const [local, headlessProps] =
|
|
429
|
+
const merged = solidMergeProps3(defaultProps, props);
|
|
430
|
+
const [local, headlessProps] = splitProps3(merged, ["size", "class", "children"]);
|
|
360
431
|
const size = () => sizeStyles4[local.size];
|
|
361
432
|
const getClassName = (renderProps) => {
|
|
362
433
|
const base = "inline-flex items-center gap-2 cursor-pointer";
|
|
@@ -364,7 +435,7 @@ function Checkbox(props) {
|
|
|
364
435
|
const custom = local.class || "";
|
|
365
436
|
return [base, disabledClass, custom].filter(Boolean).join(" ");
|
|
366
437
|
};
|
|
367
|
-
return
|
|
438
|
+
return _$createComponent6(HeadlessCheckbox, _$mergeProps3(headlessProps, {
|
|
368
439
|
"class": getClassName,
|
|
369
440
|
children: (renderProps) => {
|
|
370
441
|
const boxClasses = () => {
|
|
@@ -395,36 +466,36 @@ function Checkbox(props) {
|
|
|
395
466
|
return [base, sizeClass, disabledClass].filter(Boolean).join(" ");
|
|
396
467
|
};
|
|
397
468
|
return [(() => {
|
|
398
|
-
var _el$3 = _tmpl$34
|
|
399
|
-
|
|
469
|
+
var _el$3 = _$getNextElement6(_tmpl$34);
|
|
470
|
+
_$insert6(_el$3, _$createComponent6(Show4, {
|
|
400
471
|
get when() {
|
|
401
472
|
return !renderProps.isIndeterminate;
|
|
402
473
|
},
|
|
403
474
|
get fallback() {
|
|
404
|
-
return
|
|
475
|
+
return _$createComponent6(IndeterminateIcon, {
|
|
405
476
|
get ["class"]() {
|
|
406
477
|
return iconClasses();
|
|
407
478
|
}
|
|
408
479
|
});
|
|
409
480
|
},
|
|
410
481
|
get children() {
|
|
411
|
-
return
|
|
482
|
+
return _$createComponent6(CheckIcon, {
|
|
412
483
|
get ["class"]() {
|
|
413
484
|
return iconClasses();
|
|
414
485
|
}
|
|
415
486
|
});
|
|
416
487
|
}
|
|
417
488
|
}));
|
|
418
|
-
|
|
489
|
+
_$effect6(() => _$className6(_el$3, boxClasses()));
|
|
419
490
|
return _el$3;
|
|
420
|
-
})(),
|
|
491
|
+
})(), _$createComponent6(Show4, {
|
|
421
492
|
get when() {
|
|
422
493
|
return local.children;
|
|
423
494
|
},
|
|
424
495
|
get children() {
|
|
425
|
-
var _el$4 = _tmpl$34
|
|
426
|
-
|
|
427
|
-
|
|
496
|
+
var _el$4 = _$getNextElement6(_tmpl$34);
|
|
497
|
+
_$insert6(_el$4, () => local.children);
|
|
498
|
+
_$effect6(() => _$className6(_el$4, labelClasses()));
|
|
428
499
|
return _el$4;
|
|
429
500
|
}
|
|
430
501
|
})];
|
|
@@ -432,55 +503,67 @@ function Checkbox(props) {
|
|
|
432
503
|
}));
|
|
433
504
|
}
|
|
434
505
|
function CheckboxGroup(props) {
|
|
435
|
-
const [local, headlessProps] =
|
|
506
|
+
const [local, headlessProps] = splitProps3(props, ["class", "children", "label", "description", "errorMessage"]);
|
|
436
507
|
const getClassName = (renderProps) => {
|
|
437
508
|
const base = "flex flex-col gap-2";
|
|
438
509
|
const disabledClass = renderProps.isDisabled ? "opacity-50" : "";
|
|
439
510
|
const custom = local.class || "";
|
|
440
511
|
return [base, disabledClass, custom].filter(Boolean).join(" ");
|
|
441
512
|
};
|
|
442
|
-
const renderChildren = (renderProps) => [
|
|
513
|
+
const renderChildren = (renderProps) => [_$createComponent6(Show4, {
|
|
443
514
|
get when() {
|
|
444
515
|
return local.label;
|
|
445
516
|
},
|
|
446
517
|
get children() {
|
|
447
|
-
var _el$5 = _tmpl$43
|
|
448
|
-
|
|
518
|
+
var _el$5 = _$getNextElement6(_tmpl$43);
|
|
519
|
+
_$insert6(_el$5, () => local.label);
|
|
449
520
|
return _el$5;
|
|
450
521
|
}
|
|
451
522
|
}), (() => {
|
|
452
|
-
var _el$6 = _tmpl$52
|
|
453
|
-
|
|
523
|
+
var _el$6 = _$getNextElement6(_tmpl$52);
|
|
524
|
+
_$insert6(_el$6, () => local.children);
|
|
454
525
|
return _el$6;
|
|
455
|
-
})(),
|
|
526
|
+
})(), _$createComponent6(Show4, {
|
|
456
527
|
get when() {
|
|
457
|
-
return
|
|
528
|
+
return _$memo4(() => !!local.description)() && !renderProps.isInvalid;
|
|
458
529
|
},
|
|
459
530
|
get children() {
|
|
460
|
-
var _el$7 = _tmpl$62
|
|
461
|
-
|
|
531
|
+
var _el$7 = _$getNextElement6(_tmpl$62);
|
|
532
|
+
_$insert6(_el$7, () => local.description);
|
|
462
533
|
return _el$7;
|
|
463
534
|
}
|
|
464
|
-
}),
|
|
535
|
+
}), _$createComponent6(Show4, {
|
|
465
536
|
get when() {
|
|
466
|
-
return
|
|
537
|
+
return _$memo4(() => !!local.errorMessage)() && renderProps.isInvalid;
|
|
467
538
|
},
|
|
468
539
|
get children() {
|
|
469
|
-
var _el$8 = _tmpl$72
|
|
470
|
-
|
|
540
|
+
var _el$8 = _$getNextElement6(_tmpl$72);
|
|
541
|
+
_$insert6(_el$8, () => local.errorMessage);
|
|
471
542
|
return _el$8;
|
|
472
543
|
}
|
|
473
544
|
})];
|
|
474
|
-
return
|
|
545
|
+
return _$createComponent6(HeadlessCheckboxGroup, _$mergeProps3(headlessProps, {
|
|
475
546
|
"class": getClassName,
|
|
476
547
|
children: renderChildren
|
|
477
548
|
}));
|
|
478
549
|
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
550
|
+
|
|
551
|
+
// src/radio/index.tsx
|
|
552
|
+
import { template as _$template7 } from "solid-js/web";
|
|
553
|
+
import { className as _$className7 } from "solid-js/web";
|
|
554
|
+
import { effect as _$effect7 } from "solid-js/web";
|
|
555
|
+
import { mergeProps as _$mergeProps4 } from "solid-js/web";
|
|
556
|
+
import { memo as _$memo5 } from "solid-js/web";
|
|
557
|
+
import { createComponent as _$createComponent7 } from "solid-js/web";
|
|
558
|
+
import { getNextElement as _$getNextElement7 } from "solid-js/web";
|
|
559
|
+
import { insert as _$insert7 } from "solid-js/web";
|
|
560
|
+
import { Show as Show5, createContext, useContext, splitProps as splitProps4 } from "solid-js";
|
|
561
|
+
import { RadioGroup as HeadlessRadioGroup, Radio as HeadlessRadio } from "@proyecto-viviana/solidaria-components";
|
|
562
|
+
var _tmpl$9 = /* @__PURE__ */ _$template7(`<span class="text-primary-200 font-medium mb-1">`);
|
|
563
|
+
var _tmpl$26 = /* @__PURE__ */ _$template7(`<span class="text-primary-400 text-sm">`);
|
|
564
|
+
var _tmpl$35 = /* @__PURE__ */ _$template7(`<span class="text-danger-400 text-sm">`);
|
|
565
|
+
var _tmpl$44 = /* @__PURE__ */ _$template7(`<span><span>`);
|
|
566
|
+
var _tmpl$53 = /* @__PURE__ */ _$template7(`<span>`);
|
|
484
567
|
var RadioSizeContext = createContext("md");
|
|
485
568
|
var sizeStyles5 = {
|
|
486
569
|
sm: {
|
|
@@ -500,7 +583,7 @@ var sizeStyles5 = {
|
|
|
500
583
|
}
|
|
501
584
|
};
|
|
502
585
|
function RadioGroup(props) {
|
|
503
|
-
const [local, headlessProps] =
|
|
586
|
+
const [local, headlessProps] = splitProps4(props, ["size", "class", "label", "description", "errorMessage", "children"]);
|
|
504
587
|
const size = local.size ?? "md";
|
|
505
588
|
const customClass = local.class ?? "";
|
|
506
589
|
const getClassName = (renderProps) => {
|
|
@@ -509,38 +592,38 @@ function RadioGroup(props) {
|
|
|
509
592
|
const disabledClass = renderProps.isDisabled ? "opacity-50" : "";
|
|
510
593
|
return [base, orientationClass, disabledClass, customClass].filter(Boolean).join(" ");
|
|
511
594
|
};
|
|
512
|
-
const renderChildren = (renderProps) => [
|
|
595
|
+
const renderChildren = (renderProps) => [_$createComponent7(Show5, {
|
|
513
596
|
get when() {
|
|
514
597
|
return local.label;
|
|
515
598
|
},
|
|
516
599
|
get children() {
|
|
517
|
-
var _el$ = _tmpl$9
|
|
518
|
-
|
|
600
|
+
var _el$ = _$getNextElement7(_tmpl$9);
|
|
601
|
+
_$insert7(_el$, () => local.label);
|
|
519
602
|
return _el$;
|
|
520
603
|
}
|
|
521
|
-
}),
|
|
604
|
+
}), _$memo5(() => _$memo5(() => typeof local.children === "function")() ? local.children(renderProps) : local.children), _$createComponent7(Show5, {
|
|
522
605
|
get when() {
|
|
523
|
-
return
|
|
606
|
+
return _$memo5(() => !!local.description)() && !renderProps.isInvalid;
|
|
524
607
|
},
|
|
525
608
|
get children() {
|
|
526
|
-
var _el$2 = _tmpl$26
|
|
527
|
-
|
|
609
|
+
var _el$2 = _$getNextElement7(_tmpl$26);
|
|
610
|
+
_$insert7(_el$2, () => local.description);
|
|
528
611
|
return _el$2;
|
|
529
612
|
}
|
|
530
|
-
}),
|
|
613
|
+
}), _$createComponent7(Show5, {
|
|
531
614
|
get when() {
|
|
532
|
-
return
|
|
615
|
+
return _$memo5(() => !!local.errorMessage)() && renderProps.isInvalid;
|
|
533
616
|
},
|
|
534
617
|
get children() {
|
|
535
|
-
var _el$3 = _tmpl$35
|
|
536
|
-
|
|
618
|
+
var _el$3 = _$getNextElement7(_tmpl$35);
|
|
619
|
+
_$insert7(_el$3, () => local.errorMessage);
|
|
537
620
|
return _el$3;
|
|
538
621
|
}
|
|
539
622
|
})];
|
|
540
|
-
return
|
|
623
|
+
return _$createComponent7(RadioSizeContext.Provider, {
|
|
541
624
|
value: size,
|
|
542
625
|
get children() {
|
|
543
|
-
return
|
|
626
|
+
return _$createComponent7(HeadlessRadioGroup, _$mergeProps4(headlessProps, {
|
|
544
627
|
"class": getClassName,
|
|
545
628
|
"data-size": size,
|
|
546
629
|
children: renderChildren
|
|
@@ -562,7 +645,7 @@ function Radio(props) {
|
|
|
562
645
|
children,
|
|
563
646
|
...headlessProps
|
|
564
647
|
} = props;
|
|
565
|
-
return
|
|
648
|
+
return _$createComponent7(HeadlessRadio, _$mergeProps4(headlessProps, {
|
|
566
649
|
"class": getClassName,
|
|
567
650
|
children: (renderProps) => {
|
|
568
651
|
const circleClasses = () => {
|
|
@@ -594,31 +677,54 @@ function Radio(props) {
|
|
|
594
677
|
};
|
|
595
678
|
const resolvedChildren = typeof children === "function" ? children(renderProps) : children;
|
|
596
679
|
return [(() => {
|
|
597
|
-
var _el$4 = _tmpl$44
|
|
598
|
-
|
|
680
|
+
var _el$4 = _$getNextElement7(_tmpl$44), _el$5 = _el$4.firstChild;
|
|
681
|
+
_$effect7((_p$) => {
|
|
599
682
|
var _v$ = circleClasses(), _v$2 = dotClasses();
|
|
600
|
-
_v$ !== _p$.e &&
|
|
601
|
-
_v$2 !== _p$.t &&
|
|
683
|
+
_v$ !== _p$.e && _$className7(_el$4, _p$.e = _v$);
|
|
684
|
+
_v$2 !== _p$.t && _$className7(_el$5, _p$.t = _v$2);
|
|
602
685
|
return _p$;
|
|
603
686
|
}, {
|
|
604
687
|
e: void 0,
|
|
605
688
|
t: void 0
|
|
606
689
|
});
|
|
607
690
|
return _el$4;
|
|
608
|
-
})(),
|
|
691
|
+
})(), _$createComponent7(Show5, {
|
|
609
692
|
when: resolvedChildren,
|
|
610
693
|
get children() {
|
|
611
|
-
var _el$6 = _tmpl$53
|
|
612
|
-
|
|
613
|
-
|
|
694
|
+
var _el$6 = _$getNextElement7(_tmpl$53);
|
|
695
|
+
_$insert7(_el$6, resolvedChildren);
|
|
696
|
+
_$effect7(() => _$className7(_el$6, labelClasses()));
|
|
614
697
|
return _el$6;
|
|
615
698
|
}
|
|
616
699
|
})];
|
|
617
700
|
}
|
|
618
701
|
}));
|
|
619
702
|
}
|
|
620
|
-
|
|
621
|
-
|
|
703
|
+
|
|
704
|
+
// src/dialog/index.tsx
|
|
705
|
+
import { template as _$template9 } from "solid-js/web";
|
|
706
|
+
import { className as _$className9 } from "solid-js/web";
|
|
707
|
+
import { effect as _$effect9 } from "solid-js/web";
|
|
708
|
+
import { getNextMarker as _$getNextMarker4 } from "solid-js/web";
|
|
709
|
+
import { memo as _$memo7 } from "solid-js/web";
|
|
710
|
+
import { createComponent as _$createComponent8 } from "solid-js/web";
|
|
711
|
+
import { getNextElement as _$getNextElement9 } from "solid-js/web";
|
|
712
|
+
import { insert as _$insert9 } from "solid-js/web";
|
|
713
|
+
import { Show as Show6 } from "solid-js";
|
|
714
|
+
|
|
715
|
+
// src/custom/chip/index.tsx
|
|
716
|
+
import { template as _$template8 } from "solid-js/web";
|
|
717
|
+
import { delegateEvents as _$delegateEvents3 } from "solid-js/web";
|
|
718
|
+
import { className as _$className8 } from "solid-js/web";
|
|
719
|
+
import { effect as _$effect8 } from "solid-js/web";
|
|
720
|
+
import { getNextElement as _$getNextElement8 } from "solid-js/web";
|
|
721
|
+
import { runHydrationEvents as _$runHydrationEvents3 } from "solid-js/web";
|
|
722
|
+
import { getNextMarker as _$getNextMarker3 } from "solid-js/web";
|
|
723
|
+
import { insert as _$insert8 } from "solid-js/web";
|
|
724
|
+
import { memo as _$memo6 } from "solid-js/web";
|
|
725
|
+
import { addEventListener as _$addEventListener2 } from "solid-js/web";
|
|
726
|
+
var _tmpl$10 = /* @__PURE__ */ _$template8(`<button><!$><!/><span>`);
|
|
727
|
+
var _tmpl$27 = /* @__PURE__ */ _$template8(`<span class=mr-1.5>`);
|
|
622
728
|
var variantStyles3 = {
|
|
623
729
|
primary: "bg-primary-700 text-primary-200 shadow-primary-chip",
|
|
624
730
|
secondary: "bg-primary-600 text-primary-100 hover:bg-primary-500",
|
|
@@ -628,55 +734,56 @@ var variantStyles3 = {
|
|
|
628
734
|
function Chip(props) {
|
|
629
735
|
const variant = () => props.variant ?? "primary";
|
|
630
736
|
return (() => {
|
|
631
|
-
var _el$ = _tmpl$10(), _el$2 = _el
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
var _c$ =
|
|
737
|
+
var _el$ = _$getNextElement8(_tmpl$10), _el$3 = _el$.firstChild, [_el$4, _co$] = _$getNextMarker3(_el$3.nextSibling), _el$2 = _el$4.nextSibling;
|
|
738
|
+
_$addEventListener2(_el$, "click", props.onClick, true);
|
|
739
|
+
_$insert8(_el$, (() => {
|
|
740
|
+
var _c$ = _$memo6(() => !!props.icon);
|
|
635
741
|
return () => _c$() && (() => {
|
|
636
|
-
var _el$
|
|
637
|
-
|
|
638
|
-
return _el$
|
|
742
|
+
var _el$5 = _$getNextElement8(_tmpl$27);
|
|
743
|
+
_$insert8(_el$5, () => props.icon);
|
|
744
|
+
return _el$5;
|
|
639
745
|
})();
|
|
640
|
-
})(), _el$
|
|
641
|
-
|
|
642
|
-
|
|
746
|
+
})(), _el$4, _co$);
|
|
747
|
+
_$insert8(_el$2, () => props.text);
|
|
748
|
+
_$effect8(() => _$className8(_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 ?? ""}`));
|
|
749
|
+
_$runHydrationEvents3();
|
|
643
750
|
return _el$;
|
|
644
751
|
})();
|
|
645
752
|
}
|
|
646
|
-
|
|
753
|
+
_$delegateEvents3(["click"]);
|
|
647
754
|
|
|
648
755
|
// src/dialog/index.tsx
|
|
649
|
-
var _tmpl$11 = /* @__PURE__ */
|
|
650
|
-
var _tmpl$28 = /* @__PURE__ */
|
|
651
|
-
var _tmpl$36 = /* @__PURE__ */
|
|
652
|
-
var _tmpl$45 = /* @__PURE__ */
|
|
756
|
+
var _tmpl$11 = /* @__PURE__ */ _$template9(`<span class="text-base font-normal text-primary-300">`);
|
|
757
|
+
var _tmpl$28 = /* @__PURE__ */ _$template9(`<div class="flex flex-1 flex-row items-end justify-center gap-5 py-5"><!$><!/><!$><!/>`);
|
|
758
|
+
var _tmpl$36 = /* @__PURE__ */ _$template9(`<div class="relative bottom-4 right-4 w-full"><div class="flex flex-row justify-end gap-2 pr-4">`);
|
|
759
|
+
var _tmpl$45 = /* @__PURE__ */ _$template9(`<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"></div><!$><!/></div></div><!$><!/>`);
|
|
653
760
|
function Dialog(props) {
|
|
654
761
|
return (() => {
|
|
655
|
-
var _el$ = _tmpl$45
|
|
656
|
-
|
|
657
|
-
|
|
762
|
+
var _el$ = _$getNextElement9(_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, _el$13 = _el$9.nextSibling, [_el$14, _co$3] = _$getNextMarker4(_el$13.nextSibling), _el$17 = _el$7.nextSibling, [_el$18, _co$4] = _$getNextMarker4(_el$17.nextSibling);
|
|
763
|
+
_$insert9(_el$2, () => props.title);
|
|
764
|
+
_$insert9(_el$5, _$createComponent8(Show6, {
|
|
658
765
|
get when() {
|
|
659
766
|
return props.subtitle;
|
|
660
767
|
},
|
|
661
768
|
get children() {
|
|
662
|
-
var _el$6 = _tmpl$11
|
|
663
|
-
|
|
769
|
+
var _el$6 = _$getNextElement9(_tmpl$11);
|
|
770
|
+
_$insert9(_el$6, () => props.subtitle);
|
|
664
771
|
return _el$6;
|
|
665
772
|
}
|
|
666
773
|
}));
|
|
667
|
-
|
|
668
|
-
|
|
774
|
+
_$insert9(_el$9, () => props.children);
|
|
775
|
+
_$insert9(_el$8, _$createComponent8(Show6, {
|
|
669
776
|
get when() {
|
|
670
777
|
return props.primaryAction || props.secondaryAction;
|
|
671
778
|
},
|
|
672
779
|
get children() {
|
|
673
|
-
var _el$0 = _tmpl$28();
|
|
674
|
-
|
|
780
|
+
var _el$0 = _$getNextElement9(_tmpl$28), _el$1 = _el$0.firstChild, [_el$10, _co$] = _$getNextMarker4(_el$1.nextSibling), _el$11 = _el$10.nextSibling, [_el$12, _co$2] = _$getNextMarker4(_el$11.nextSibling);
|
|
781
|
+
_$insert9(_el$0, _$createComponent8(Show6, {
|
|
675
782
|
get when() {
|
|
676
783
|
return props.secondaryAction;
|
|
677
784
|
},
|
|
678
785
|
get children() {
|
|
679
|
-
return
|
|
786
|
+
return _$createComponent8(Button, {
|
|
680
787
|
variant: "primary",
|
|
681
788
|
buttonStyle: "outline",
|
|
682
789
|
get onPress() {
|
|
@@ -687,13 +794,13 @@ function Dialog(props) {
|
|
|
687
794
|
}
|
|
688
795
|
});
|
|
689
796
|
}
|
|
690
|
-
}),
|
|
691
|
-
|
|
797
|
+
}), _el$10, _co$);
|
|
798
|
+
_$insert9(_el$0, _$createComponent8(Show6, {
|
|
692
799
|
get when() {
|
|
693
800
|
return props.primaryAction;
|
|
694
801
|
},
|
|
695
802
|
get children() {
|
|
696
|
-
return
|
|
803
|
+
return _$createComponent8(Button, {
|
|
697
804
|
variant: "primary",
|
|
698
805
|
get onPress() {
|
|
699
806
|
return props.primaryAction.onClick;
|
|
@@ -703,36 +810,55 @@ function Dialog(props) {
|
|
|
703
810
|
}
|
|
704
811
|
});
|
|
705
812
|
}
|
|
706
|
-
}),
|
|
813
|
+
}), _el$12, _co$2);
|
|
707
814
|
return _el$0;
|
|
708
815
|
}
|
|
709
|
-
}),
|
|
710
|
-
|
|
816
|
+
}), _el$14, _co$3);
|
|
817
|
+
_$insert9(_el$, _$createComponent8(Show6, {
|
|
711
818
|
get when() {
|
|
712
|
-
return
|
|
819
|
+
return _$memo7(() => !!props.tags)() && props.tags.length > 0;
|
|
713
820
|
},
|
|
714
821
|
get children() {
|
|
715
|
-
var _el$
|
|
716
|
-
|
|
822
|
+
var _el$15 = _$getNextElement9(_tmpl$36), _el$16 = _el$15.firstChild;
|
|
823
|
+
_$insert9(_el$16, () => props.tags.map((tag) => _$createComponent8(Chip, {
|
|
717
824
|
variant: "primary",
|
|
718
825
|
text: tag
|
|
719
826
|
})));
|
|
720
|
-
return _el$
|
|
827
|
+
return _el$15;
|
|
721
828
|
}
|
|
722
|
-
}),
|
|
723
|
-
|
|
829
|
+
}), _el$18, _co$4);
|
|
830
|
+
_$effect9(() => _$className9(_el$, `flex flex-col w-full max-w-[540px] ${props.class ?? ""}`));
|
|
724
831
|
return _el$;
|
|
725
832
|
})();
|
|
726
833
|
}
|
|
727
|
-
|
|
834
|
+
|
|
835
|
+
// src/icon/index.tsx
|
|
836
|
+
import { template as _$template11 } from "solid-js/web";
|
|
837
|
+
import { delegateEvents as _$delegateEvents4 } from "solid-js/web";
|
|
838
|
+
import { className as _$className10 } from "solid-js/web";
|
|
839
|
+
import { effect as _$effect11 } from "solid-js/web";
|
|
840
|
+
import { getNextElement as _$getNextElement11 } from "solid-js/web";
|
|
841
|
+
import { runHydrationEvents as _$runHydrationEvents4 } from "solid-js/web";
|
|
842
|
+
import { getNextMarker as _$getNextMarker5 } from "solid-js/web";
|
|
843
|
+
import { insert as _$insert10 } from "solid-js/web";
|
|
844
|
+
import { createComponent as _$createComponent9 } from "solid-js/web";
|
|
845
|
+
import { memo as _$memo8 } from "solid-js/web";
|
|
846
|
+
import { addEventListener as _$addEventListener3 } from "solid-js/web";
|
|
847
|
+
|
|
848
|
+
// src/icon/icons/GitHubIcon.tsx
|
|
849
|
+
import { template as _$template10 } from "solid-js/web";
|
|
850
|
+
import { setAttribute as _$setAttribute3 } from "solid-js/web";
|
|
851
|
+
import { effect as _$effect10 } from "solid-js/web";
|
|
852
|
+
import { getNextElement as _$getNextElement10 } from "solid-js/web";
|
|
853
|
+
var _tmpl$12 = /* @__PURE__ */ _$template10(`<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
854
|
function GitHubIcon(props) {
|
|
729
855
|
return (() => {
|
|
730
|
-
var _el$ = _tmpl$12
|
|
731
|
-
|
|
856
|
+
var _el$ = _$getNextElement10(_tmpl$12);
|
|
857
|
+
_$effect10((_p$) => {
|
|
732
858
|
var _v$ = props.size, _v$2 = props.size, _v$3 = props.color;
|
|
733
|
-
_v$ !== _p$.e &&
|
|
734
|
-
_v$2 !== _p$.t &&
|
|
735
|
-
_v$3 !== _p$.a &&
|
|
859
|
+
_v$ !== _p$.e && _$setAttribute3(_el$, "width", _p$.e = _v$);
|
|
860
|
+
_v$2 !== _p$.t && _$setAttribute3(_el$, "height", _p$.t = _v$2);
|
|
861
|
+
_v$3 !== _p$.a && _$setAttribute3(_el$, "fill", _p$.a = _v$3);
|
|
736
862
|
return _p$;
|
|
737
863
|
}, {
|
|
738
864
|
e: void 0,
|
|
@@ -744,29 +870,29 @@ function GitHubIcon(props) {
|
|
|
744
870
|
}
|
|
745
871
|
|
|
746
872
|
// src/icon/index.tsx
|
|
747
|
-
var _tmpl$13 = /* @__PURE__ */
|
|
748
|
-
var _tmpl$29 = /* @__PURE__ */
|
|
873
|
+
var _tmpl$13 = /* @__PURE__ */ _$template11(`<div><!$><!/><div class=vui-icon__main>`);
|
|
874
|
+
var _tmpl$29 = /* @__PURE__ */ _$template11(`<div class=vui-icon__shadow>`);
|
|
749
875
|
function Icon(props) {
|
|
750
876
|
const size = () => props.size ?? 24;
|
|
751
877
|
const color = () => props.color ?? "var(--color-primary-500)";
|
|
752
878
|
const IconComponent = props.icon;
|
|
753
879
|
return (() => {
|
|
754
|
-
var _el$ = _tmpl$13(), _el$2 = _el
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
var _c$ =
|
|
880
|
+
var _el$ = _$getNextElement11(_tmpl$13), _el$3 = _el$.firstChild, [_el$4, _co$] = _$getNextMarker5(_el$3.nextSibling), _el$2 = _el$4.nextSibling;
|
|
881
|
+
_$addEventListener3(_el$, "click", props.onClick, true);
|
|
882
|
+
_$insert10(_el$, (() => {
|
|
883
|
+
var _c$ = _$memo8(() => !!props.withShadow);
|
|
758
884
|
return () => _c$() && (() => {
|
|
759
|
-
var _el$
|
|
760
|
-
|
|
885
|
+
var _el$5 = _$getNextElement11(_tmpl$29);
|
|
886
|
+
_$insert10(_el$5, _$createComponent9(IconComponent, {
|
|
761
887
|
get size() {
|
|
762
888
|
return size();
|
|
763
889
|
},
|
|
764
890
|
color: "var(--color-accent)"
|
|
765
891
|
}));
|
|
766
|
-
return _el$
|
|
892
|
+
return _el$5;
|
|
767
893
|
})();
|
|
768
|
-
})(), _el$
|
|
769
|
-
|
|
894
|
+
})(), _el$4, _co$);
|
|
895
|
+
_$insert10(_el$2, _$createComponent9(IconComponent, {
|
|
770
896
|
get size() {
|
|
771
897
|
return size();
|
|
772
898
|
},
|
|
@@ -774,22 +900,30 @@ function Icon(props) {
|
|
|
774
900
|
return color();
|
|
775
901
|
}
|
|
776
902
|
}));
|
|
777
|
-
|
|
903
|
+
_$effect11(() => _$className10(_el$, `vui-icon ${props.withShadow ? "vui-icon--with-shadow" : ""} ${props.class ?? ""}`));
|
|
904
|
+
_$runHydrationEvents4();
|
|
778
905
|
return _el$;
|
|
779
906
|
})();
|
|
780
907
|
}
|
|
781
|
-
|
|
782
|
-
|
|
908
|
+
_$delegateEvents4(["click"]);
|
|
909
|
+
|
|
910
|
+
// src/tooltip/index.tsx
|
|
911
|
+
import { template as _$template12 } from "solid-js/web";
|
|
912
|
+
import { className as _$className11 } from "solid-js/web";
|
|
913
|
+
import { effect as _$effect12 } from "solid-js/web";
|
|
914
|
+
import { getNextElement as _$getNextElement12 } from "solid-js/web";
|
|
915
|
+
import { insert as _$insert11 } from "solid-js/web";
|
|
916
|
+
var _tmpl$14 = /* @__PURE__ */ _$template12(`<div><div class=vui-tooltip__trigger></div><div><span>`);
|
|
783
917
|
function Tooltip(props) {
|
|
784
918
|
const position = () => props.position ?? "bottom";
|
|
785
919
|
return (() => {
|
|
786
|
-
var _el$ = _tmpl$14
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
920
|
+
var _el$ = _$getNextElement12(_tmpl$14), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
921
|
+
_$insert11(_el$2, () => props.children);
|
|
922
|
+
_$insert11(_el$4, () => props.label);
|
|
923
|
+
_$effect12((_p$) => {
|
|
790
924
|
var _v$ = `vui-tooltip ${props.class ?? ""}`, _v$2 = `vui-tooltip__content vui-tooltip__content--${position()}`;
|
|
791
|
-
_v$ !== _p$.e &&
|
|
792
|
-
_v$2 !== _p$.t &&
|
|
925
|
+
_v$ !== _p$.e && _$className11(_el$, _p$.e = _v$);
|
|
926
|
+
_v$2 !== _p$.t && _$className11(_el$3, _p$.t = _v$2);
|
|
793
927
|
return _p$;
|
|
794
928
|
}, {
|
|
795
929
|
e: void 0,
|
|
@@ -798,6 +932,26 @@ function Tooltip(props) {
|
|
|
798
932
|
return _el$;
|
|
799
933
|
})();
|
|
800
934
|
}
|
|
935
|
+
|
|
936
|
+
// src/textfield/index.tsx
|
|
937
|
+
import { template as _$template13 } from "solid-js/web";
|
|
938
|
+
import { setAttribute as _$setAttribute4 } from "solid-js/web";
|
|
939
|
+
import { className as _$className12 } from "solid-js/web";
|
|
940
|
+
import { effect as _$effect13 } from "solid-js/web";
|
|
941
|
+
import { memo as _$memo9 } from "solid-js/web";
|
|
942
|
+
import { runHydrationEvents as _$runHydrationEvents5 } from "solid-js/web";
|
|
943
|
+
import { getNextMarker as _$getNextMarker6 } from "solid-js/web";
|
|
944
|
+
import { insert as _$insert12 } from "solid-js/web";
|
|
945
|
+
import { createComponent as _$createComponent10 } from "solid-js/web";
|
|
946
|
+
import { getNextElement as _$getNextElement13 } from "solid-js/web";
|
|
947
|
+
import { spread as _$spread } from "solid-js/web";
|
|
948
|
+
import { mergeProps as _$mergeProps5 } from "solid-js/web";
|
|
949
|
+
import { splitProps as splitProps5, mergeProps as solidMergeProps4, Show as Show7 } from "solid-js";
|
|
950
|
+
import { createTextField, createFocusRing } from "@proyecto-viviana/solidaria";
|
|
951
|
+
|
|
952
|
+
// ../solid-stately/dist/index.js
|
|
953
|
+
import { createSignal as createSignal2, createUniqueId, untrack } from "solid-js";
|
|
954
|
+
import { isServer } from "solid-js/web";
|
|
801
955
|
function access(value) {
|
|
802
956
|
return typeof value === "function" ? value() : value;
|
|
803
957
|
}
|
|
@@ -805,18 +959,19 @@ function createTextFieldState(props = {}) {
|
|
|
805
959
|
const getProps = () => access(props);
|
|
806
960
|
const initialProps = getProps();
|
|
807
961
|
const initialValue = initialProps.value ?? initialProps.defaultValue ?? "";
|
|
808
|
-
const [internalValue, setInternalValue] =
|
|
962
|
+
const [internalValue, setInternalValue] = createSignal2(initialValue);
|
|
809
963
|
const isControlled = () => getProps().value !== void 0;
|
|
810
964
|
const value = () => {
|
|
811
965
|
const p = getProps();
|
|
812
966
|
return isControlled() ? p.value ?? "" : internalValue();
|
|
813
967
|
};
|
|
814
968
|
function setValue(newValue) {
|
|
969
|
+
var _a;
|
|
815
970
|
const p = getProps();
|
|
816
971
|
if (!isControlled()) {
|
|
817
972
|
setInternalValue(newValue);
|
|
818
973
|
}
|
|
819
|
-
p.onChange
|
|
974
|
+
(_a = p.onChange) == null ? void 0 : _a.call(p, newValue);
|
|
820
975
|
}
|
|
821
976
|
return {
|
|
822
977
|
value,
|
|
@@ -825,10 +980,10 @@ function createTextFieldState(props = {}) {
|
|
|
825
980
|
}
|
|
826
981
|
|
|
827
982
|
// src/textfield/index.tsx
|
|
828
|
-
var _tmpl$15 = /* @__PURE__ */
|
|
829
|
-
var _tmpl$210 = /* @__PURE__ */
|
|
830
|
-
var _tmpl$37 = /* @__PURE__ */
|
|
831
|
-
var _tmpl$46 = /* @__PURE__ */
|
|
983
|
+
var _tmpl$15 = /* @__PURE__ */ _$template13(`<span class="text-danger-400 ml-0.5">*`);
|
|
984
|
+
var _tmpl$210 = /* @__PURE__ */ _$template13(`<label><!$><!/><!$><!/>`);
|
|
985
|
+
var _tmpl$37 = /* @__PURE__ */ _$template13(`<p>`);
|
|
986
|
+
var _tmpl$46 = /* @__PURE__ */ _$template13(`<div><!$><!/><input><!$><!/><!$><!/>`);
|
|
832
987
|
var sizeStyles6 = {
|
|
833
988
|
sm: {
|
|
834
989
|
input: "h-8 px-2 text-sm",
|
|
@@ -851,8 +1006,8 @@ function TextField(props) {
|
|
|
851
1006
|
size: "md",
|
|
852
1007
|
variant: "outline"
|
|
853
1008
|
};
|
|
854
|
-
const merged =
|
|
855
|
-
const [local, ariaProps] =
|
|
1009
|
+
const merged = solidMergeProps4(defaultProps, props);
|
|
1010
|
+
const [local, ariaProps] = splitProps5(merged, ["size", "variant", "class", "label", "description", "errorMessage"]);
|
|
856
1011
|
const size = () => sizeStyles6[local.size];
|
|
857
1012
|
const state = createTextFieldState(() => ({
|
|
858
1013
|
value: ariaProps.value,
|
|
@@ -946,74 +1101,77 @@ function TextField(props) {
|
|
|
946
1101
|
return rest;
|
|
947
1102
|
};
|
|
948
1103
|
return (() => {
|
|
949
|
-
var _el$ = _tmpl$46(), _el$4 = _el
|
|
950
|
-
|
|
1104
|
+
var _el$ = _$getNextElement13(_tmpl$46), _el$1 = _el$.firstChild, [_el$10, _co$3] = _$getNextMarker6(_el$1.nextSibling), _el$8 = _el$10.nextSibling, _el$11 = _el$8.nextSibling, [_el$12, _co$4] = _$getNextMarker6(_el$11.nextSibling), _el$13 = _el$12.nextSibling, [_el$14, _co$5] = _$getNextMarker6(_el$13.nextSibling);
|
|
1105
|
+
_$insert12(_el$, _$createComponent10(Show7, {
|
|
951
1106
|
get when() {
|
|
952
1107
|
return local.label;
|
|
953
1108
|
},
|
|
954
1109
|
get children() {
|
|
955
|
-
var _el$2 = _tmpl$210();
|
|
956
|
-
spread(_el$2,
|
|
1110
|
+
var _el$2 = _$getNextElement13(_tmpl$210), _el$4 = _el$2.firstChild, [_el$5, _co$] = _$getNextMarker6(_el$4.nextSibling), _el$6 = _el$5.nextSibling, [_el$7, _co$2] = _$getNextMarker6(_el$6.nextSibling);
|
|
1111
|
+
_$spread(_el$2, _$mergeProps5(cleanLabelProps, {
|
|
957
1112
|
get ["class"]() {
|
|
958
1113
|
return labelClasses();
|
|
959
1114
|
}
|
|
960
1115
|
}), false, true);
|
|
961
|
-
|
|
962
|
-
|
|
1116
|
+
_$insert12(_el$2, () => local.label, _el$5, _co$);
|
|
1117
|
+
_$insert12(_el$2, _$createComponent10(Show7, {
|
|
963
1118
|
get when() {
|
|
964
1119
|
return ariaProps.isRequired;
|
|
965
1120
|
},
|
|
966
1121
|
get children() {
|
|
967
|
-
return _tmpl$15
|
|
1122
|
+
return _$getNextElement13(_tmpl$15);
|
|
968
1123
|
}
|
|
969
|
-
}),
|
|
1124
|
+
}), _el$7, _co$2);
|
|
1125
|
+
_$runHydrationEvents5();
|
|
970
1126
|
return _el$2;
|
|
971
1127
|
}
|
|
972
|
-
}), _el$
|
|
973
|
-
spread(_el$
|
|
1128
|
+
}), _el$10, _co$3);
|
|
1129
|
+
_$spread(_el$8, _$mergeProps5(cleanInputProps, {
|
|
974
1130
|
get ["class"]() {
|
|
975
1131
|
return inputClasses();
|
|
976
1132
|
}
|
|
977
1133
|
}), false, false);
|
|
978
|
-
|
|
1134
|
+
_$insert12(_el$, _$createComponent10(Show7, {
|
|
979
1135
|
get when() {
|
|
980
|
-
return
|
|
1136
|
+
return _$memo9(() => !!local.description)() && !textFieldAria.isInvalid;
|
|
981
1137
|
},
|
|
982
1138
|
get children() {
|
|
983
|
-
var _el$
|
|
984
|
-
spread(_el$
|
|
1139
|
+
var _el$9 = _$getNextElement13(_tmpl$37);
|
|
1140
|
+
_$spread(_el$9, _$mergeProps5(cleanDescriptionProps, {
|
|
985
1141
|
get ["class"]() {
|
|
986
1142
|
return descriptionClasses();
|
|
987
1143
|
}
|
|
988
1144
|
}), false, true);
|
|
989
|
-
|
|
990
|
-
|
|
1145
|
+
_$insert12(_el$9, () => local.description);
|
|
1146
|
+
_$runHydrationEvents5();
|
|
1147
|
+
return _el$9;
|
|
991
1148
|
}
|
|
992
|
-
}),
|
|
993
|
-
|
|
1149
|
+
}), _el$12, _co$4);
|
|
1150
|
+
_$insert12(_el$, _$createComponent10(Show7, {
|
|
994
1151
|
get when() {
|
|
995
|
-
return
|
|
1152
|
+
return _$memo9(() => !!local.errorMessage)() && textFieldAria.isInvalid;
|
|
996
1153
|
},
|
|
997
1154
|
get children() {
|
|
998
|
-
var _el$
|
|
999
|
-
spread(_el$
|
|
1155
|
+
var _el$0 = _$getNextElement13(_tmpl$37);
|
|
1156
|
+
_$spread(_el$0, _$mergeProps5(cleanErrorMessageProps, {
|
|
1000
1157
|
get ["class"]() {
|
|
1001
1158
|
return errorClasses();
|
|
1002
1159
|
}
|
|
1003
1160
|
}), false, true);
|
|
1004
|
-
|
|
1005
|
-
|
|
1161
|
+
_$insert12(_el$0, () => local.errorMessage);
|
|
1162
|
+
_$runHydrationEvents5();
|
|
1163
|
+
return _el$0;
|
|
1006
1164
|
}
|
|
1007
|
-
}),
|
|
1008
|
-
|
|
1165
|
+
}), _el$14, _co$5);
|
|
1166
|
+
_$effect13((_p$) => {
|
|
1009
1167
|
var _v$ = containerClasses(), _v$2 = ariaProps.isDisabled || void 0, _v$3 = textFieldAria.isInvalid || void 0, _v$4 = ariaProps.isReadOnly || void 0, _v$5 = ariaProps.isRequired || void 0, _v$6 = isFocused() || void 0, _v$7 = isFocusVisible() || void 0;
|
|
1010
|
-
_v$ !== _p$.e &&
|
|
1011
|
-
_v$2 !== _p$.t &&
|
|
1012
|
-
_v$3 !== _p$.a &&
|
|
1013
|
-
_v$4 !== _p$.o &&
|
|
1014
|
-
_v$5 !== _p$.i &&
|
|
1015
|
-
_v$6 !== _p$.n &&
|
|
1016
|
-
_v$7 !== _p$.s &&
|
|
1168
|
+
_v$ !== _p$.e && _$className12(_el$, _p$.e = _v$);
|
|
1169
|
+
_v$2 !== _p$.t && _$setAttribute4(_el$, "data-disabled", _p$.t = _v$2);
|
|
1170
|
+
_v$3 !== _p$.a && _$setAttribute4(_el$, "data-invalid", _p$.a = _v$3);
|
|
1171
|
+
_v$4 !== _p$.o && _$setAttribute4(_el$, "data-readonly", _p$.o = _v$4);
|
|
1172
|
+
_v$5 !== _p$.i && _$setAttribute4(_el$, "data-required", _p$.i = _v$5);
|
|
1173
|
+
_v$6 !== _p$.n && _$setAttribute4(_el$, "data-focused", _p$.n = _v$6);
|
|
1174
|
+
_v$7 !== _p$.s && _$setAttribute4(_el$, "data-focus-visible", _p$.s = _v$7);
|
|
1017
1175
|
return _p$;
|
|
1018
1176
|
}, {
|
|
1019
1177
|
e: void 0,
|
|
@@ -1024,16 +1182,23 @@ function TextField(props) {
|
|
|
1024
1182
|
n: void 0,
|
|
1025
1183
|
s: void 0
|
|
1026
1184
|
});
|
|
1185
|
+
_$runHydrationEvents5();
|
|
1027
1186
|
return _el$;
|
|
1028
1187
|
})();
|
|
1029
1188
|
}
|
|
1189
|
+
|
|
1190
|
+
// src/link/index.tsx
|
|
1191
|
+
import { createComponent as _$createComponent11 } from "solid-js/web";
|
|
1192
|
+
import { mergeProps as _$mergeProps6 } from "solid-js/web";
|
|
1193
|
+
import { splitProps as splitProps6 } from "solid-js";
|
|
1194
|
+
import { Link as HeadlessLink } from "@proyecto-viviana/solidaria-components";
|
|
1030
1195
|
var variantStyles4 = {
|
|
1031
1196
|
primary: "text-accent hover:text-accent-300",
|
|
1032
1197
|
secondary: "text-primary-300 hover:text-primary-200",
|
|
1033
1198
|
subtle: "text-primary-400 hover:text-primary-300"
|
|
1034
1199
|
};
|
|
1035
1200
|
function Link(props) {
|
|
1036
|
-
const [local, headlessProps] =
|
|
1201
|
+
const [local, headlessProps] = splitProps6(props, ["variant", "isStandalone", "isQuiet", "class", "children"]);
|
|
1037
1202
|
const variant = local.variant ?? "primary";
|
|
1038
1203
|
const customClass = local.class ?? "";
|
|
1039
1204
|
const getClassName = (renderProps) => {
|
|
@@ -1051,17 +1216,33 @@ function Link(props) {
|
|
|
1051
1216
|
const pressedClass = renderProps.isPressed ? "opacity-80" : "";
|
|
1052
1217
|
return [base, variantClass, underlineClass, weightClass, focusClass, disabledClass, pressedClass, customClass].filter(Boolean).join(" ");
|
|
1053
1218
|
};
|
|
1054
|
-
return
|
|
1219
|
+
return _$createComponent11(HeadlessLink, _$mergeProps6(headlessProps, {
|
|
1055
1220
|
"class": getClassName,
|
|
1056
1221
|
get children() {
|
|
1057
1222
|
return local.children;
|
|
1058
1223
|
}
|
|
1059
1224
|
}));
|
|
1060
1225
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1226
|
+
|
|
1227
|
+
// src/progress-bar/index.tsx
|
|
1228
|
+
import { template as _$template14 } from "solid-js/web";
|
|
1229
|
+
import { setStyleProperty as _$setStyleProperty } from "solid-js/web";
|
|
1230
|
+
import { runHydrationEvents as _$runHydrationEvents6 } from "solid-js/web";
|
|
1231
|
+
import { className as _$className13 } from "solid-js/web";
|
|
1232
|
+
import { effect as _$effect14 } from "solid-js/web";
|
|
1233
|
+
import { getNextMarker as _$getNextMarker7 } from "solid-js/web";
|
|
1234
|
+
import { createComponent as _$createComponent12 } from "solid-js/web";
|
|
1235
|
+
import { getNextElement as _$getNextElement14 } from "solid-js/web";
|
|
1236
|
+
import { insert as _$insert13 } from "solid-js/web";
|
|
1237
|
+
import { memo as _$memo10 } from "solid-js/web";
|
|
1238
|
+
import { spread as _$spread2 } from "solid-js/web";
|
|
1239
|
+
import { mergeProps as _$mergeProps7 } from "solid-js/web";
|
|
1240
|
+
import { splitProps as splitProps7, Show as Show8, createMemo } from "solid-js";
|
|
1241
|
+
import { createProgressBar } from "@proyecto-viviana/solidaria";
|
|
1242
|
+
var _tmpl$16 = /* @__PURE__ */ _$template14(`<span class="text-primary-200 font-medium">`);
|
|
1243
|
+
var _tmpl$211 = /* @__PURE__ */ _$template14(`<span class=text-primary-300>`);
|
|
1244
|
+
var _tmpl$38 = /* @__PURE__ */ _$template14(`<div><!$><!/><!$><!/>`);
|
|
1245
|
+
var _tmpl$47 = /* @__PURE__ */ _$template14(`<div><!$><!/><div><div>`);
|
|
1065
1246
|
var sizeStyles7 = {
|
|
1066
1247
|
sm: {
|
|
1067
1248
|
track: "h-1",
|
|
@@ -1087,7 +1268,7 @@ function clamp(value, min, max) {
|
|
|
1087
1268
|
return Math.min(Math.max(value, min), max);
|
|
1088
1269
|
}
|
|
1089
1270
|
function ProgressBar(props) {
|
|
1090
|
-
const [local, ariaProps] =
|
|
1271
|
+
const [local, ariaProps] = splitProps7(props, ["size", "variant", "label", "showValueLabel", "class"]);
|
|
1091
1272
|
const size = () => local.size ?? "md";
|
|
1092
1273
|
const variant = () => local.variant ?? "primary";
|
|
1093
1274
|
const isIndeterminate = () => ariaProps.isIndeterminate ?? false;
|
|
@@ -1128,58 +1309,69 @@ function ProgressBar(props) {
|
|
|
1128
1309
|
const valueText = () => progressAria.progressBarProps["aria-valuetext"];
|
|
1129
1310
|
const sizeConfig = () => sizeStyles7[size()];
|
|
1130
1311
|
return (() => {
|
|
1131
|
-
var _el$ = _tmpl$47
|
|
1132
|
-
|
|
1312
|
+
var _el$ = _$getNextElement14(_tmpl$47), _el$1 = _el$.firstChild, [_el$10, _co$3] = _$getNextMarker7(_el$1.nextSibling), _el$9 = _el$10.nextSibling, _el$0 = _el$9.firstChild;
|
|
1313
|
+
_$spread2(_el$, _$mergeProps7(() => progressAria.progressBarProps, {
|
|
1133
1314
|
get ["class"]() {
|
|
1134
1315
|
return `w-full ${local.class ?? ""}`;
|
|
1135
1316
|
}
|
|
1136
1317
|
}), false, true);
|
|
1137
|
-
|
|
1318
|
+
_$insert13(_el$, _$createComponent12(Show8, {
|
|
1138
1319
|
get when() {
|
|
1139
1320
|
return local.label || showValueLabel();
|
|
1140
1321
|
},
|
|
1141
1322
|
get children() {
|
|
1142
|
-
var _el$2 = _tmpl$38();
|
|
1143
|
-
|
|
1323
|
+
var _el$2 = _$getNextElement14(_tmpl$38), _el$5 = _el$2.firstChild, [_el$6, _co$] = _$getNextMarker7(_el$5.nextSibling), _el$7 = _el$6.nextSibling, [_el$8, _co$2] = _$getNextMarker7(_el$7.nextSibling);
|
|
1324
|
+
_$insert13(_el$2, _$createComponent12(Show8, {
|
|
1144
1325
|
get when() {
|
|
1145
1326
|
return local.label;
|
|
1146
1327
|
},
|
|
1147
1328
|
get children() {
|
|
1148
|
-
var _el$3 = _tmpl$16
|
|
1149
|
-
|
|
1329
|
+
var _el$3 = _$getNextElement14(_tmpl$16);
|
|
1330
|
+
_$insert13(_el$3, () => local.label);
|
|
1150
1331
|
return _el$3;
|
|
1151
1332
|
}
|
|
1152
|
-
}),
|
|
1153
|
-
|
|
1333
|
+
}), _el$6, _co$);
|
|
1334
|
+
_$insert13(_el$2, _$createComponent12(Show8, {
|
|
1154
1335
|
get when() {
|
|
1155
|
-
return
|
|
1336
|
+
return _$memo10(() => !!showValueLabel())() && !isIndeterminate();
|
|
1156
1337
|
},
|
|
1157
1338
|
get children() {
|
|
1158
|
-
var _el$4 = _tmpl$211
|
|
1159
|
-
|
|
1339
|
+
var _el$4 = _$getNextElement14(_tmpl$211);
|
|
1340
|
+
_$insert13(_el$4, valueText);
|
|
1160
1341
|
return _el$4;
|
|
1161
1342
|
}
|
|
1162
|
-
}),
|
|
1163
|
-
|
|
1343
|
+
}), _el$8, _co$2);
|
|
1344
|
+
_$effect14(() => _$className13(_el$2, `flex justify-between items-center mb-1 ${sizeConfig().text}`));
|
|
1164
1345
|
return _el$2;
|
|
1165
1346
|
}
|
|
1166
|
-
}), _el$
|
|
1167
|
-
|
|
1347
|
+
}), _el$10, _co$3);
|
|
1348
|
+
_$effect14((_p$) => {
|
|
1168
1349
|
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()}%`;
|
|
1169
|
-
_v$ !== _p$.e &&
|
|
1170
|
-
_v$2 !== _p$.t &&
|
|
1171
|
-
_v$3 !== _p$.a && setStyleProperty(_el$
|
|
1350
|
+
_v$ !== _p$.e && _$className13(_el$9, _p$.e = _v$);
|
|
1351
|
+
_v$2 !== _p$.t && _$className13(_el$0, _p$.t = _v$2);
|
|
1352
|
+
_v$3 !== _p$.a && _$setStyleProperty(_el$0, "width", _p$.a = _v$3);
|
|
1172
1353
|
return _p$;
|
|
1173
1354
|
}, {
|
|
1174
1355
|
e: void 0,
|
|
1175
1356
|
t: void 0,
|
|
1176
1357
|
a: void 0
|
|
1177
1358
|
});
|
|
1359
|
+
_$runHydrationEvents6();
|
|
1178
1360
|
return _el$;
|
|
1179
1361
|
})();
|
|
1180
1362
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1363
|
+
|
|
1364
|
+
// src/separator/index.tsx
|
|
1365
|
+
import { template as _$template15 } from "solid-js/web";
|
|
1366
|
+
import { createComponent as _$createComponent13 } from "solid-js/web";
|
|
1367
|
+
import { getNextElement as _$getNextElement15 } from "solid-js/web";
|
|
1368
|
+
import { runHydrationEvents as _$runHydrationEvents7 } from "solid-js/web";
|
|
1369
|
+
import { spread as _$spread3 } from "solid-js/web";
|
|
1370
|
+
import { mergeProps as _$mergeProps8 } from "solid-js/web";
|
|
1371
|
+
import { splitProps as splitProps8, createMemo as createMemo2, Show as Show9 } from "solid-js";
|
|
1372
|
+
import { createSeparator } from "@proyecto-viviana/solidaria";
|
|
1373
|
+
var _tmpl$17 = /* @__PURE__ */ _$template15(`<div>`);
|
|
1374
|
+
var _tmpl$212 = /* @__PURE__ */ _$template15(`<hr>`);
|
|
1183
1375
|
var variantStyles6 = {
|
|
1184
1376
|
default: "bg-bg-100",
|
|
1185
1377
|
subtle: "bg-bg-200",
|
|
@@ -1196,11 +1388,11 @@ var verticalSizeStyles = {
|
|
|
1196
1388
|
lg: "w-1"
|
|
1197
1389
|
};
|
|
1198
1390
|
function Separator(props) {
|
|
1199
|
-
const [local, ariaProps] =
|
|
1391
|
+
const [local, ariaProps] = splitProps8(props, ["orientation", "variant", "size", "class"]);
|
|
1200
1392
|
const orientation = () => local.orientation ?? "horizontal";
|
|
1201
1393
|
const variant = () => local.variant ?? "default";
|
|
1202
1394
|
const size = () => local.size ?? "md";
|
|
1203
|
-
const elementType =
|
|
1395
|
+
const elementType = createMemo2(() => {
|
|
1204
1396
|
if (orientation() === "vertical") {
|
|
1205
1397
|
return "div";
|
|
1206
1398
|
}
|
|
@@ -1217,7 +1409,7 @@ function Separator(props) {
|
|
|
1217
1409
|
return ariaProps["aria-label"];
|
|
1218
1410
|
}
|
|
1219
1411
|
});
|
|
1220
|
-
const className =
|
|
1412
|
+
const className = createMemo2(() => {
|
|
1221
1413
|
const isVertical = orientation() === "vertical";
|
|
1222
1414
|
const sizeStyles8 = isVertical ? verticalSizeStyles : horizontalSizeStyles;
|
|
1223
1415
|
const base = [
|
|
@@ -1237,61 +1429,77 @@ function Separator(props) {
|
|
|
1237
1429
|
} = separatorAria.separatorProps;
|
|
1238
1430
|
return props2;
|
|
1239
1431
|
};
|
|
1240
|
-
return
|
|
1432
|
+
return _$createComponent13(Show9, {
|
|
1241
1433
|
get when() {
|
|
1242
1434
|
return orientation() === "vertical";
|
|
1243
1435
|
},
|
|
1244
1436
|
get fallback() {
|
|
1245
1437
|
return (() => {
|
|
1246
|
-
var _el$2 = _tmpl$212
|
|
1247
|
-
|
|
1438
|
+
var _el$2 = _$getNextElement15(_tmpl$212);
|
|
1439
|
+
_$spread3(_el$2, _$mergeProps8(getAriaProps, {
|
|
1248
1440
|
get ["class"]() {
|
|
1249
1441
|
return className();
|
|
1250
1442
|
}
|
|
1251
1443
|
}), false, false);
|
|
1444
|
+
_$runHydrationEvents7();
|
|
1252
1445
|
return _el$2;
|
|
1253
1446
|
})();
|
|
1254
1447
|
},
|
|
1255
1448
|
get children() {
|
|
1256
|
-
var _el$ = _tmpl$17
|
|
1257
|
-
|
|
1449
|
+
var _el$ = _$getNextElement15(_tmpl$17);
|
|
1450
|
+
_$spread3(_el$, _$mergeProps8(getAriaProps, {
|
|
1258
1451
|
get ["class"]() {
|
|
1259
1452
|
return className();
|
|
1260
1453
|
}
|
|
1261
1454
|
}), false, false);
|
|
1455
|
+
_$runHydrationEvents7();
|
|
1262
1456
|
return _el$;
|
|
1263
1457
|
}
|
|
1264
1458
|
});
|
|
1265
1459
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1460
|
+
|
|
1461
|
+
// src/custom/nav-header/index.tsx
|
|
1462
|
+
import { template as _$template16 } from "solid-js/web";
|
|
1463
|
+
import { delegateEvents as _$delegateEvents5 } from "solid-js/web";
|
|
1464
|
+
import { className as _$className14 } from "solid-js/web";
|
|
1465
|
+
import { getNextMarker as _$getNextMarker8 } from "solid-js/web";
|
|
1466
|
+
import { runHydrationEvents as _$runHydrationEvents8 } from "solid-js/web";
|
|
1467
|
+
import { addEventListener as _$addEventListener4 } from "solid-js/web";
|
|
1468
|
+
import { insert as _$insert14 } from "solid-js/web";
|
|
1469
|
+
import { createComponent as _$createComponent14 } from "solid-js/web";
|
|
1470
|
+
import { setAttribute as _$setAttribute5 } from "solid-js/web";
|
|
1471
|
+
import { effect as _$effect15 } from "solid-js/web";
|
|
1472
|
+
import { getNextElement as _$getNextElement16 } from "solid-js/web";
|
|
1473
|
+
import { Show as Show10 } from "solid-js";
|
|
1474
|
+
var _tmpl$18 = /* @__PURE__ */ _$template16(`<img class="h-[42px] w-auto">`);
|
|
1475
|
+
var _tmpl$213 = /* @__PURE__ */ _$template16(`<button class="md:hidden flex items-center justify-center">`);
|
|
1476
|
+
var _tmpl$39 = /* @__PURE__ */ _$template16(`<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"><!$><!/><!$><!/>`);
|
|
1477
|
+
var _tmpl$48 = /* @__PURE__ */ _$template16(`<span class="text-[34px] font-light text-primary-700 flex items-center">`);
|
|
1270
1478
|
function NavHeader(props) {
|
|
1271
1479
|
return (() => {
|
|
1272
|
-
var _el$ = _tmpl$39
|
|
1273
|
-
|
|
1480
|
+
var _el$ = _$getNextElement16(_tmpl$39), _el$2 = _el$.firstChild, _el$4 = _el$2.nextSibling, _el$6 = _el$4.firstChild, [_el$7, _co$] = _$getNextMarker8(_el$6.nextSibling), _el$8 = _el$7.nextSibling, [_el$9, _co$2] = _$getNextMarker8(_el$8.nextSibling);
|
|
1481
|
+
_$insert14(_el$2, _$createComponent14(Show10, {
|
|
1274
1482
|
get when() {
|
|
1275
1483
|
return props.logo;
|
|
1276
1484
|
},
|
|
1277
1485
|
get fallback() {
|
|
1278
|
-
return
|
|
1486
|
+
return _$createComponent14(Show10, {
|
|
1279
1487
|
get when() {
|
|
1280
1488
|
return props.logoText;
|
|
1281
1489
|
},
|
|
1282
1490
|
get children() {
|
|
1283
|
-
var _el$
|
|
1284
|
-
|
|
1285
|
-
return _el$
|
|
1491
|
+
var _el$0 = _$getNextElement16(_tmpl$48);
|
|
1492
|
+
_$insert14(_el$0, () => props.logoText);
|
|
1493
|
+
return _el$0;
|
|
1286
1494
|
}
|
|
1287
1495
|
});
|
|
1288
1496
|
},
|
|
1289
1497
|
get children() {
|
|
1290
|
-
var _el$3 = _tmpl$18
|
|
1291
|
-
|
|
1498
|
+
var _el$3 = _$getNextElement16(_tmpl$18);
|
|
1499
|
+
_$effect15((_p$) => {
|
|
1292
1500
|
var _v$ = props.logo, _v$2 = props.logoAlt ?? "Logo";
|
|
1293
|
-
_v$ !== _p$.e &&
|
|
1294
|
-
_v$2 !== _p$.t &&
|
|
1501
|
+
_v$ !== _p$.e && _$setAttribute5(_el$3, "src", _p$.e = _v$);
|
|
1502
|
+
_v$2 !== _p$.t && _$setAttribute5(_el$3, "alt", _p$.t = _v$2);
|
|
1295
1503
|
return _p$;
|
|
1296
1504
|
}, {
|
|
1297
1505
|
e: void 0,
|
|
@@ -1300,34 +1508,46 @@ function NavHeader(props) {
|
|
|
1300
1508
|
return _el$3;
|
|
1301
1509
|
}
|
|
1302
1510
|
}));
|
|
1303
|
-
|
|
1304
|
-
|
|
1511
|
+
_$insert14(_el$4, () => props.children, _el$7, _co$);
|
|
1512
|
+
_$insert14(_el$4, _$createComponent14(Show10, {
|
|
1305
1513
|
get when() {
|
|
1306
1514
|
return props.menuIcon;
|
|
1307
1515
|
},
|
|
1308
1516
|
get children() {
|
|
1309
|
-
var _el$5 = _tmpl$213
|
|
1310
|
-
|
|
1311
|
-
|
|
1517
|
+
var _el$5 = _$getNextElement16(_tmpl$213);
|
|
1518
|
+
_$addEventListener4(_el$5, "click", props.onMenuClick, true);
|
|
1519
|
+
_$insert14(_el$5, () => props.menuIcon);
|
|
1520
|
+
_$runHydrationEvents8();
|
|
1312
1521
|
return _el$5;
|
|
1313
1522
|
}
|
|
1314
|
-
}),
|
|
1315
|
-
|
|
1523
|
+
}), _el$9, _co$2);
|
|
1524
|
+
_$effect15(() => _$className14(_el$, `flex items-center bg-bg-400 h-[70px] border-b-4 border-accent-500 ${props.class ?? ""}`));
|
|
1316
1525
|
return _el$;
|
|
1317
1526
|
})();
|
|
1318
1527
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1528
|
+
_$delegateEvents5(["click"]);
|
|
1529
|
+
|
|
1530
|
+
// src/custom/lateral-nav/index.tsx
|
|
1531
|
+
import { template as _$template17 } from "solid-js/web";
|
|
1532
|
+
import { createComponent as _$createComponent15 } from "solid-js/web";
|
|
1533
|
+
import { setAttribute as _$setAttribute6 } from "solid-js/web";
|
|
1534
|
+
import { className as _$className15 } from "solid-js/web";
|
|
1535
|
+
import { effect as _$effect16 } from "solid-js/web";
|
|
1536
|
+
import { getNextElement as _$getNextElement17 } from "solid-js/web";
|
|
1537
|
+
import { getNextMarker as _$getNextMarker9 } from "solid-js/web";
|
|
1538
|
+
import { insert as _$insert15 } from "solid-js/web";
|
|
1539
|
+
import { Show as Show11, For } from "solid-js";
|
|
1540
|
+
var _tmpl$19 = /* @__PURE__ */ _$template17(`<li><span class="text-lg font-bold text-primary-200"></span><!$><!/>`);
|
|
1541
|
+
var _tmpl$214 = /* @__PURE__ */ _$template17(`<a>`);
|
|
1542
|
+
var _tmpl$310 = /* @__PURE__ */ _$template17(`<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"><!$><!/><!$><!/>`);
|
|
1543
|
+
var _tmpl$49 = /* @__PURE__ */ _$template17(`<li>`);
|
|
1544
|
+
var _tmpl$54 = /* @__PURE__ */ _$template17(`<div>`);
|
|
1325
1545
|
function NavItem(props) {
|
|
1326
1546
|
return (() => {
|
|
1327
|
-
var _el$ = _tmpl$19
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1547
|
+
var _el$ = _$getNextElement17(_tmpl$19), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, [_el$4, _co$] = _$getNextMarker9(_el$3.nextSibling);
|
|
1548
|
+
_$insert15(_el$2, () => props.title);
|
|
1549
|
+
_$insert15(_el$, () => props.children, _el$4, _co$);
|
|
1550
|
+
_$effect16(() => _$className15(_el$, `flex items-center ${props.class ?? ""}`));
|
|
1331
1551
|
return _el$;
|
|
1332
1552
|
})();
|
|
1333
1553
|
}
|
|
@@ -1335,40 +1555,40 @@ function NavLink(props) {
|
|
|
1335
1555
|
const activeStyles = "font-medium text-primary-300 underline underline-offset-4";
|
|
1336
1556
|
const inactiveStyles = "font-normal text-gray-200 underline-offset-4 hover:text-gray-100 hover:underline";
|
|
1337
1557
|
return (() => {
|
|
1338
|
-
var _el$
|
|
1339
|
-
|
|
1340
|
-
|
|
1558
|
+
var _el$5 = _$getNextElement17(_tmpl$214);
|
|
1559
|
+
_$insert15(_el$5, () => props.children);
|
|
1560
|
+
_$effect16((_p$) => {
|
|
1341
1561
|
var _v$ = props.href, _v$2 = `${props.active ? activeStyles : inactiveStyles} ${props.class ?? ""}`;
|
|
1342
|
-
_v$ !== _p$.e &&
|
|
1343
|
-
_v$2 !== _p$.t &&
|
|
1562
|
+
_v$ !== _p$.e && _$setAttribute6(_el$5, "href", _p$.e = _v$);
|
|
1563
|
+
_v$2 !== _p$.t && _$className15(_el$5, _p$.t = _v$2);
|
|
1344
1564
|
return _p$;
|
|
1345
1565
|
}, {
|
|
1346
1566
|
e: void 0,
|
|
1347
1567
|
t: void 0
|
|
1348
1568
|
});
|
|
1349
|
-
return _el$
|
|
1569
|
+
return _el$5;
|
|
1350
1570
|
})();
|
|
1351
1571
|
}
|
|
1352
1572
|
function NavSection(props) {
|
|
1353
1573
|
return (() => {
|
|
1354
|
-
var _el$
|
|
1355
|
-
|
|
1574
|
+
var _el$6 = _$getNextElement17(_tmpl$310), _el$12 = _el$6.firstChild, [_el$13, _co$4] = _$getNextMarker9(_el$12.nextSibling), _el$7 = _el$13.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.firstChild, [_el$1, _co$2] = _$getNextMarker9(_el$0.nextSibling), _el$10 = _el$1.nextSibling, [_el$11, _co$3] = _$getNextMarker9(_el$10.nextSibling);
|
|
1575
|
+
_$insert15(_el$6, _$createComponent15(NavItem, {
|
|
1356
1576
|
get title() {
|
|
1357
1577
|
return props.title;
|
|
1358
1578
|
}
|
|
1359
|
-
}), _el$
|
|
1360
|
-
|
|
1579
|
+
}), _el$13, _co$4);
|
|
1580
|
+
_$insert15(_el$9, _$createComponent15(Show11, {
|
|
1361
1581
|
get when() {
|
|
1362
1582
|
return props.links;
|
|
1363
1583
|
},
|
|
1364
1584
|
get children() {
|
|
1365
|
-
return
|
|
1585
|
+
return _$createComponent15(For, {
|
|
1366
1586
|
get each() {
|
|
1367
1587
|
return props.links;
|
|
1368
1588
|
},
|
|
1369
1589
|
children: (link) => (() => {
|
|
1370
|
-
var _el$
|
|
1371
|
-
|
|
1590
|
+
var _el$14 = _$getNextElement17(_tmpl$49);
|
|
1591
|
+
_$insert15(_el$14, _$createComponent15(NavLink, {
|
|
1372
1592
|
get href() {
|
|
1373
1593
|
return link.href;
|
|
1374
1594
|
},
|
|
@@ -1379,62 +1599,72 @@ function NavSection(props) {
|
|
|
1379
1599
|
return link.label;
|
|
1380
1600
|
}
|
|
1381
1601
|
}));
|
|
1382
|
-
return _el$
|
|
1602
|
+
return _el$14;
|
|
1383
1603
|
})()
|
|
1384
1604
|
});
|
|
1385
1605
|
}
|
|
1386
|
-
}),
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
return _el$
|
|
1606
|
+
}), _el$1, _co$2);
|
|
1607
|
+
_$insert15(_el$9, () => props.children, _el$11, _co$3);
|
|
1608
|
+
_$effect16(() => _$className15(_el$6, props.class ?? ""));
|
|
1609
|
+
return _el$6;
|
|
1390
1610
|
})();
|
|
1391
1611
|
}
|
|
1392
1612
|
function LateralNav(props) {
|
|
1393
1613
|
const bgColor = () => props.transparent ? "" : "bg-bg-200";
|
|
1394
1614
|
return (() => {
|
|
1395
|
-
var _el$
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
return _el$
|
|
1615
|
+
var _el$15 = _$getNextElement17(_tmpl$54);
|
|
1616
|
+
_$insert15(_el$15, () => props.children);
|
|
1617
|
+
_$effect16(() => _$className15(_el$15, `hidden w-[300px] md:block ${bgColor()} m-0 border-r border-primary-600 p-3 ${props.class ?? ""}`));
|
|
1618
|
+
return _el$15;
|
|
1399
1619
|
})();
|
|
1400
1620
|
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1621
|
+
|
|
1622
|
+
// src/custom/timeline-item/index.tsx
|
|
1623
|
+
import { template as _$template18 } from "solid-js/web";
|
|
1624
|
+
import { className as _$className16 } from "solid-js/web";
|
|
1625
|
+
import { effect as _$effect17 } from "solid-js/web";
|
|
1626
|
+
import { getNextMarker as _$getNextMarker10 } from "solid-js/web";
|
|
1627
|
+
import { createComponent as _$createComponent16 } from "solid-js/web";
|
|
1628
|
+
import { getNextElement as _$getNextElement18 } from "solid-js/web";
|
|
1629
|
+
import { insert as _$insert16 } from "solid-js/web";
|
|
1630
|
+
import { Show as Show12 } from "solid-js";
|
|
1631
|
+
var _tmpl$20 = /* @__PURE__ */ _$template18(`<span class="font-semibold text-accent-200">`);
|
|
1632
|
+
var _tmpl$215 = /* @__PURE__ */ _$template18(`<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
1633
|
var eventMessages = {
|
|
1404
1634
|
follow: (left, right) => [(() => {
|
|
1405
|
-
var _el$ = _tmpl$20
|
|
1406
|
-
|
|
1635
|
+
var _el$ = _$getNextElement18(_tmpl$20);
|
|
1636
|
+
_$insert16(_el$, left);
|
|
1407
1637
|
return _el$;
|
|
1408
1638
|
})(), " ha empezado a seguir a ", (() => {
|
|
1409
|
-
var _el$2 = _tmpl$20
|
|
1410
|
-
|
|
1639
|
+
var _el$2 = _$getNextElement18(_tmpl$20);
|
|
1640
|
+
_$insert16(_el$2, right);
|
|
1411
1641
|
return _el$2;
|
|
1412
1642
|
})()],
|
|
1413
1643
|
like: (left, right) => [(() => {
|
|
1414
|
-
var _el$3 = _tmpl$20
|
|
1415
|
-
|
|
1644
|
+
var _el$3 = _$getNextElement18(_tmpl$20);
|
|
1645
|
+
_$insert16(_el$3, left);
|
|
1416
1646
|
return _el$3;
|
|
1417
1647
|
})(), " le ha dado like a ", (() => {
|
|
1418
|
-
var _el$4 = _tmpl$20
|
|
1419
|
-
|
|
1648
|
+
var _el$4 = _$getNextElement18(_tmpl$20);
|
|
1649
|
+
_$insert16(_el$4, right);
|
|
1420
1650
|
return _el$4;
|
|
1421
1651
|
})()],
|
|
1422
1652
|
comment: (left, right) => [(() => {
|
|
1423
|
-
var _el$5 = _tmpl$20
|
|
1424
|
-
|
|
1653
|
+
var _el$5 = _$getNextElement18(_tmpl$20);
|
|
1654
|
+
_$insert16(_el$5, left);
|
|
1425
1655
|
return _el$5;
|
|
1426
1656
|
})(), " ha comentado en ", (() => {
|
|
1427
|
-
var _el$6 = _tmpl$20
|
|
1428
|
-
|
|
1657
|
+
var _el$6 = _$getNextElement18(_tmpl$20);
|
|
1658
|
+
_$insert16(_el$6, right);
|
|
1429
1659
|
return _el$6;
|
|
1430
1660
|
})()],
|
|
1431
1661
|
event: (left, right) => [(() => {
|
|
1432
|
-
var _el$7 = _tmpl$20
|
|
1433
|
-
|
|
1662
|
+
var _el$7 = _$getNextElement18(_tmpl$20);
|
|
1663
|
+
_$insert16(_el$7, left);
|
|
1434
1664
|
return _el$7;
|
|
1435
1665
|
})(), " asistir\xE1 al evento de ", (() => {
|
|
1436
|
-
var _el$8 = _tmpl$20
|
|
1437
|
-
|
|
1666
|
+
var _el$8 = _$getNextElement18(_tmpl$20);
|
|
1667
|
+
_$insert16(_el$8, right);
|
|
1438
1668
|
return _el$8;
|
|
1439
1669
|
})()],
|
|
1440
1670
|
custom: () => null
|
|
@@ -1444,13 +1674,13 @@ function TimelineItem(props) {
|
|
|
1444
1674
|
const leftName = () => props.leftUser?.name ?? "";
|
|
1445
1675
|
const rightName = () => props.rightUser?.name ?? "";
|
|
1446
1676
|
return (() => {
|
|
1447
|
-
var _el$9 = _tmpl$215
|
|
1448
|
-
|
|
1677
|
+
var _el$9 = _$getNextElement18(_tmpl$215), _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild, [_el$10, _co$] = _$getNextMarker10(_el$1.nextSibling), _el$11 = _el$10.nextSibling, [_el$12, _co$2] = _$getNextMarker10(_el$11.nextSibling), _el$13 = _el$12.nextSibling, [_el$14, _co$3] = _$getNextMarker10(_el$13.nextSibling), _el$15 = _el$0.nextSibling, _el$16 = _el$15.firstChild;
|
|
1678
|
+
_$insert16(_el$0, _$createComponent16(Show12, {
|
|
1449
1679
|
get when() {
|
|
1450
1680
|
return props.leftUser;
|
|
1451
1681
|
},
|
|
1452
1682
|
get children() {
|
|
1453
|
-
return
|
|
1683
|
+
return _$createComponent16(Avatar, {
|
|
1454
1684
|
get src() {
|
|
1455
1685
|
return props.leftUser.avatar;
|
|
1456
1686
|
},
|
|
@@ -1459,21 +1689,21 @@ function TimelineItem(props) {
|
|
|
1459
1689
|
}
|
|
1460
1690
|
});
|
|
1461
1691
|
}
|
|
1462
|
-
}),
|
|
1463
|
-
|
|
1692
|
+
}), _el$10, _co$);
|
|
1693
|
+
_$insert16(_el$0, _$createComponent16(Show12, {
|
|
1464
1694
|
get when() {
|
|
1465
1695
|
return props.icon;
|
|
1466
1696
|
},
|
|
1467
1697
|
get children() {
|
|
1468
1698
|
return props.icon;
|
|
1469
1699
|
}
|
|
1470
|
-
}),
|
|
1471
|
-
|
|
1700
|
+
}), _el$12, _co$2);
|
|
1701
|
+
_$insert16(_el$0, _$createComponent16(Show12, {
|
|
1472
1702
|
get when() {
|
|
1473
1703
|
return props.rightUser;
|
|
1474
1704
|
},
|
|
1475
1705
|
get children() {
|
|
1476
|
-
return
|
|
1706
|
+
return _$createComponent16(Avatar, {
|
|
1477
1707
|
get src() {
|
|
1478
1708
|
return props.rightUser.avatar;
|
|
1479
1709
|
},
|
|
@@ -1482,8 +1712,8 @@ function TimelineItem(props) {
|
|
|
1482
1712
|
}
|
|
1483
1713
|
});
|
|
1484
1714
|
}
|
|
1485
|
-
}),
|
|
1486
|
-
|
|
1715
|
+
}), _el$14, _co$3);
|
|
1716
|
+
_$insert16(_el$16, _$createComponent16(Show12, {
|
|
1487
1717
|
get when() {
|
|
1488
1718
|
return props.message;
|
|
1489
1719
|
},
|
|
@@ -1494,22 +1724,36 @@ function TimelineItem(props) {
|
|
|
1494
1724
|
return props.message;
|
|
1495
1725
|
}
|
|
1496
1726
|
}));
|
|
1497
|
-
|
|
1727
|
+
_$effect17(() => _$className16(_el$9, `inline-flex w-auto flex-col gap-5 rounded-2xl border border-primary-700 bg-bg-200 p-5 hover:bg-bg-300 transition-colors ${props.class ?? ""}`));
|
|
1498
1728
|
return _el$9;
|
|
1499
1729
|
})();
|
|
1500
1730
|
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1731
|
+
|
|
1732
|
+
// src/custom/conversation/index.tsx
|
|
1733
|
+
import { template as _$template19 } from "solid-js/web";
|
|
1734
|
+
import { delegateEvents as _$delegateEvents6 } from "solid-js/web";
|
|
1735
|
+
import { className as _$className17 } from "solid-js/web";
|
|
1736
|
+
import { effect as _$effect18 } from "solid-js/web";
|
|
1737
|
+
import { runHydrationEvents as _$runHydrationEvents9 } from "solid-js/web";
|
|
1738
|
+
import { memo as _$memo11 } from "solid-js/web";
|
|
1739
|
+
import { getNextMarker as _$getNextMarker11 } from "solid-js/web";
|
|
1740
|
+
import { getNextElement as _$getNextElement19 } from "solid-js/web";
|
|
1741
|
+
import { insert as _$insert17 } from "solid-js/web";
|
|
1742
|
+
import { createComponent as _$createComponent17 } from "solid-js/web";
|
|
1743
|
+
import { addEventListener as _$addEventListener5 } from "solid-js/web";
|
|
1744
|
+
import { Show as Show13, For as For2 } from "solid-js";
|
|
1745
|
+
var _tmpl$21 = /* @__PURE__ */ _$template19(`<span class="text-xs text-primary-500">`);
|
|
1746
|
+
var _tmpl$216 = /* @__PURE__ */ _$template19(`<p class="text-sm text-primary-400 truncate">`);
|
|
1747
|
+
var _tmpl$311 = /* @__PURE__ */ _$template19(`<span class="flex h-5 w-5 items-center justify-center rounded-full bg-accent text-xs font-bold text-white">`);
|
|
1748
|
+
var _tmpl$410 = /* @__PURE__ */ _$template19(`<button><!$><!/><div class="flex-1 min-w-0"><div class="flex items-center justify-between"><span class="font-semibold text-primary-100 truncate"></span><!$><!/></div><!$><!/></div><!$><!/>`);
|
|
1749
|
+
var _tmpl$55 = /* @__PURE__ */ _$template19(`<span>`);
|
|
1750
|
+
var _tmpl$63 = /* @__PURE__ */ _$template19(`<div><div><p></p><!$><!/>`);
|
|
1751
|
+
var _tmpl$73 = /* @__PURE__ */ _$template19(`<div>`);
|
|
1508
1752
|
function ConversationPreview(props) {
|
|
1509
1753
|
return (() => {
|
|
1510
|
-
var _el$ = _tmpl$410
|
|
1511
|
-
|
|
1512
|
-
|
|
1754
|
+
var _el$ = _$getNextElement19(_tmpl$410), _el$10 = _el$.firstChild, [_el$11, _co$3] = _$getNextMarker11(_el$10.nextSibling), _el$2 = _el$11.nextSibling, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$4.nextSibling, [_el$7, _co$] = _$getNextMarker11(_el$6.nextSibling), _el$9 = _el$3.nextSibling, [_el$0, _co$2] = _$getNextMarker11(_el$9.nextSibling), _el$12 = _el$2.nextSibling, [_el$13, _co$4] = _$getNextMarker11(_el$12.nextSibling);
|
|
1755
|
+
_$addEventListener5(_el$, "click", props.onClick, true);
|
|
1756
|
+
_$insert17(_el$, _$createComponent17(Avatar, {
|
|
1513
1757
|
get src() {
|
|
1514
1758
|
return props.user.avatar;
|
|
1515
1759
|
},
|
|
@@ -1520,78 +1764,79 @@ function ConversationPreview(props) {
|
|
|
1520
1764
|
return props.user.online;
|
|
1521
1765
|
},
|
|
1522
1766
|
size: "md"
|
|
1523
|
-
}), _el$
|
|
1524
|
-
|
|
1525
|
-
|
|
1767
|
+
}), _el$11, _co$3);
|
|
1768
|
+
_$insert17(_el$4, () => props.user.name);
|
|
1769
|
+
_$insert17(_el$3, _$createComponent17(Show13, {
|
|
1526
1770
|
get when() {
|
|
1527
1771
|
return props.timestamp;
|
|
1528
1772
|
},
|
|
1529
1773
|
get children() {
|
|
1530
|
-
var _el$5 = _tmpl$21
|
|
1531
|
-
|
|
1774
|
+
var _el$5 = _$getNextElement19(_tmpl$21);
|
|
1775
|
+
_$insert17(_el$5, () => props.timestamp);
|
|
1532
1776
|
return _el$5;
|
|
1533
1777
|
}
|
|
1534
|
-
}),
|
|
1535
|
-
|
|
1778
|
+
}), _el$7, _co$);
|
|
1779
|
+
_$insert17(_el$2, _$createComponent17(Show13, {
|
|
1536
1780
|
get when() {
|
|
1537
1781
|
return props.lastMessage;
|
|
1538
1782
|
},
|
|
1539
1783
|
get children() {
|
|
1540
|
-
var _el$
|
|
1541
|
-
|
|
1542
|
-
return _el$
|
|
1784
|
+
var _el$8 = _$getNextElement19(_tmpl$216);
|
|
1785
|
+
_$insert17(_el$8, () => props.lastMessage);
|
|
1786
|
+
return _el$8;
|
|
1543
1787
|
}
|
|
1544
|
-
}),
|
|
1545
|
-
|
|
1788
|
+
}), _el$0, _co$2);
|
|
1789
|
+
_$insert17(_el$, _$createComponent17(Show13, {
|
|
1546
1790
|
get when() {
|
|
1547
|
-
return
|
|
1791
|
+
return _$memo11(() => !!props.unreadCount)() && props.unreadCount > 0;
|
|
1548
1792
|
},
|
|
1549
1793
|
get children() {
|
|
1550
|
-
var _el$
|
|
1551
|
-
|
|
1552
|
-
return _el$
|
|
1794
|
+
var _el$1 = _$getNextElement19(_tmpl$311);
|
|
1795
|
+
_$insert17(_el$1, () => props.unreadCount);
|
|
1796
|
+
return _el$1;
|
|
1553
1797
|
}
|
|
1554
|
-
}),
|
|
1555
|
-
|
|
1798
|
+
}), _el$13, _co$4);
|
|
1799
|
+
_$effect18(() => _$className17(_el$, `flex w-full items-center gap-3 rounded-xl p-3 hover:bg-bg-300 transition-colors text-left ${props.class ?? ""}`));
|
|
1800
|
+
_$runHydrationEvents9();
|
|
1556
1801
|
return _el$;
|
|
1557
1802
|
})();
|
|
1558
1803
|
}
|
|
1559
1804
|
function ConversationBubble(props) {
|
|
1560
1805
|
const isUser = () => props.sender === "user";
|
|
1561
1806
|
return (() => {
|
|
1562
|
-
var _el$
|
|
1563
|
-
|
|
1564
|
-
|
|
1807
|
+
var _el$14 = _$getNextElement19(_tmpl$63), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$18 = _el$16.nextSibling, [_el$19, _co$5] = _$getNextMarker11(_el$18.nextSibling);
|
|
1808
|
+
_$insert17(_el$16, () => props.content);
|
|
1809
|
+
_$insert17(_el$15, _$createComponent17(Show13, {
|
|
1565
1810
|
get when() {
|
|
1566
1811
|
return props.timestamp;
|
|
1567
1812
|
},
|
|
1568
1813
|
get children() {
|
|
1569
|
-
var _el$
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
return _el$
|
|
1814
|
+
var _el$17 = _$getNextElement19(_tmpl$55);
|
|
1815
|
+
_$insert17(_el$17, () => props.timestamp);
|
|
1816
|
+
_$effect18(() => _$className17(_el$17, `text-xs ${isUser() ? "text-white/70" : "text-primary-500"}`));
|
|
1817
|
+
return _el$17;
|
|
1573
1818
|
}
|
|
1574
|
-
}),
|
|
1575
|
-
|
|
1819
|
+
}), _el$19, _co$5);
|
|
1820
|
+
_$effect18((_p$) => {
|
|
1576
1821
|
var _v$ = `flex ${isUser() ? "justify-end" : "justify-start"} ${props.class ?? ""}`, _v$2 = `max-w-[70%] rounded-2xl px-4 py-2 ${isUser() ? "bg-accent text-white rounded-br-sm" : "bg-bg-300 text-primary-100 rounded-bl-sm"}`;
|
|
1577
|
-
_v$ !== _p$.e &&
|
|
1578
|
-
_v$2 !== _p$.t &&
|
|
1822
|
+
_v$ !== _p$.e && _$className17(_el$14, _p$.e = _v$);
|
|
1823
|
+
_v$2 !== _p$.t && _$className17(_el$15, _p$.t = _v$2);
|
|
1579
1824
|
return _p$;
|
|
1580
1825
|
}, {
|
|
1581
1826
|
e: void 0,
|
|
1582
1827
|
t: void 0
|
|
1583
1828
|
});
|
|
1584
|
-
return _el$
|
|
1829
|
+
return _el$14;
|
|
1585
1830
|
})();
|
|
1586
1831
|
}
|
|
1587
1832
|
function Conversation(props) {
|
|
1588
1833
|
return (() => {
|
|
1589
|
-
var _el$
|
|
1590
|
-
|
|
1834
|
+
var _el$20 = _$getNextElement19(_tmpl$73);
|
|
1835
|
+
_$insert17(_el$20, _$createComponent17(For2, {
|
|
1591
1836
|
get each() {
|
|
1592
1837
|
return props.messages;
|
|
1593
1838
|
},
|
|
1594
|
-
children: (message) =>
|
|
1839
|
+
children: (message) => _$createComponent17(ConversationBubble, {
|
|
1595
1840
|
get content() {
|
|
1596
1841
|
return message.content;
|
|
1597
1842
|
},
|
|
@@ -1603,16 +1848,26 @@ function Conversation(props) {
|
|
|
1603
1848
|
}
|
|
1604
1849
|
})
|
|
1605
1850
|
}));
|
|
1606
|
-
|
|
1607
|
-
return _el$
|
|
1851
|
+
_$effect18(() => _$className17(_el$20, `flex flex-col gap-2 p-4 ${props.class ?? ""}`));
|
|
1852
|
+
return _el$20;
|
|
1608
1853
|
})();
|
|
1609
1854
|
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1855
|
+
_$delegateEvents6(["click"]);
|
|
1856
|
+
|
|
1857
|
+
// src/custom/profile-card/index.tsx
|
|
1858
|
+
import { template as _$template20 } from "solid-js/web";
|
|
1859
|
+
import { className as _$className18 } from "solid-js/web";
|
|
1860
|
+
import { effect as _$effect19 } from "solid-js/web";
|
|
1861
|
+
import { getNextMarker as _$getNextMarker12 } from "solid-js/web";
|
|
1862
|
+
import { getNextElement as _$getNextElement20 } from "solid-js/web";
|
|
1863
|
+
import { insert as _$insert18 } from "solid-js/web";
|
|
1864
|
+
import { createComponent as _$createComponent18 } from "solid-js/web";
|
|
1865
|
+
import { Show as Show14 } from "solid-js";
|
|
1866
|
+
var _tmpl$30 = /* @__PURE__ */ _$template20(`<p class="text-primary-300 text-sm mt-1 line-clamp-2">`);
|
|
1867
|
+
var _tmpl$217 = /* @__PURE__ */ _$template20(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> seguidores`);
|
|
1868
|
+
var _tmpl$312 = /* @__PURE__ */ _$template20(`<span class=text-primary-300><span class="font-semibold text-primary-100"></span> siguiendo`);
|
|
1869
|
+
var _tmpl$411 = /* @__PURE__ */ _$template20(`<div class="mt-4 flex gap-2">`);
|
|
1870
|
+
var _tmpl$56 = /* @__PURE__ */ _$template20(`<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"><!$><!/><!$><!/></div></div></div><!$><!/>`);
|
|
1616
1871
|
function ProfileCard(props) {
|
|
1617
1872
|
const formatNumber = (num) => {
|
|
1618
1873
|
if (num >= 1e6) return `${(num / 1e6).toFixed(1)}M`;
|
|
@@ -1620,8 +1875,8 @@ function ProfileCard(props) {
|
|
|
1620
1875
|
return num.toString();
|
|
1621
1876
|
};
|
|
1622
1877
|
return (() => {
|
|
1623
|
-
var _el$ = _tmpl$56
|
|
1624
|
-
|
|
1878
|
+
var _el$ = _$getNextElement20(_tmpl$56), _el$2 = _el$.firstChild, _el$15 = _el$2.firstChild, [_el$16, _co$4] = _$getNextMarker12(_el$15.nextSibling), _el$3 = _el$16.nextSibling, _el$4 = _el$3.firstChild, _el$13 = _el$4.nextSibling, [_el$14, _co$3] = _$getNextMarker12(_el$13.nextSibling), _el$6 = _el$14.nextSibling, _el$1 = _el$6.firstChild, [_el$10, _co$] = _$getNextMarker12(_el$1.nextSibling), _el$11 = _el$10.nextSibling, [_el$12, _co$2] = _$getNextMarker12(_el$11.nextSibling), _el$18 = _el$2.nextSibling, [_el$19, _co$5] = _$getNextMarker12(_el$18.nextSibling);
|
|
1879
|
+
_$insert18(_el$2, _$createComponent18(Avatar, {
|
|
1625
1880
|
get src() {
|
|
1626
1881
|
return props.avatar;
|
|
1627
1882
|
},
|
|
@@ -1629,64 +1884,79 @@ function ProfileCard(props) {
|
|
|
1629
1884
|
return props.username;
|
|
1630
1885
|
},
|
|
1631
1886
|
size: "lg"
|
|
1632
|
-
}), _el$
|
|
1633
|
-
|
|
1634
|
-
|
|
1887
|
+
}), _el$16, _co$4);
|
|
1888
|
+
_$insert18(_el$4, () => props.username);
|
|
1889
|
+
_$insert18(_el$3, _$createComponent18(Show14, {
|
|
1635
1890
|
get when() {
|
|
1636
1891
|
return props.bio;
|
|
1637
1892
|
},
|
|
1638
1893
|
get children() {
|
|
1639
|
-
var _el$5 = _tmpl$30
|
|
1640
|
-
|
|
1894
|
+
var _el$5 = _$getNextElement20(_tmpl$30);
|
|
1895
|
+
_$insert18(_el$5, () => props.bio);
|
|
1641
1896
|
return _el$5;
|
|
1642
1897
|
}
|
|
1643
|
-
}), _el$
|
|
1644
|
-
|
|
1898
|
+
}), _el$14, _co$3);
|
|
1899
|
+
_$insert18(_el$6, _$createComponent18(Show14, {
|
|
1645
1900
|
get when() {
|
|
1646
1901
|
return props.followers !== void 0;
|
|
1647
1902
|
},
|
|
1648
1903
|
get children() {
|
|
1649
|
-
var _el$7 = _tmpl$217
|
|
1650
|
-
|
|
1904
|
+
var _el$7 = _$getNextElement20(_tmpl$217), _el$8 = _el$7.firstChild;
|
|
1905
|
+
_$insert18(_el$8, () => formatNumber(props.followers));
|
|
1651
1906
|
return _el$7;
|
|
1652
1907
|
}
|
|
1653
|
-
}),
|
|
1654
|
-
|
|
1908
|
+
}), _el$10, _co$);
|
|
1909
|
+
_$insert18(_el$6, _$createComponent18(Show14, {
|
|
1655
1910
|
get when() {
|
|
1656
1911
|
return props.following !== void 0;
|
|
1657
1912
|
},
|
|
1658
1913
|
get children() {
|
|
1659
|
-
var _el$9 = _tmpl$312
|
|
1660
|
-
|
|
1914
|
+
var _el$9 = _$getNextElement20(_tmpl$312), _el$0 = _el$9.firstChild;
|
|
1915
|
+
_$insert18(_el$0, () => formatNumber(props.following));
|
|
1661
1916
|
return _el$9;
|
|
1662
1917
|
}
|
|
1663
|
-
}),
|
|
1664
|
-
|
|
1918
|
+
}), _el$12, _co$2);
|
|
1919
|
+
_$insert18(_el$, _$createComponent18(Show14, {
|
|
1665
1920
|
get when() {
|
|
1666
1921
|
return props.actions;
|
|
1667
1922
|
},
|
|
1668
1923
|
get children() {
|
|
1669
|
-
var _el$
|
|
1670
|
-
|
|
1671
|
-
return _el$
|
|
1924
|
+
var _el$17 = _$getNextElement20(_tmpl$411);
|
|
1925
|
+
_$insert18(_el$17, () => props.actions);
|
|
1926
|
+
return _el$17;
|
|
1672
1927
|
}
|
|
1673
|
-
}),
|
|
1674
|
-
|
|
1928
|
+
}), _el$19, _co$5);
|
|
1929
|
+
_$effect19(() => _$className18(_el$, `bg-bg-200 rounded-xl p-4 ${props.class ?? ""}`));
|
|
1675
1930
|
return _el$;
|
|
1676
1931
|
})();
|
|
1677
1932
|
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1933
|
+
|
|
1934
|
+
// src/custom/event-card/index.tsx
|
|
1935
|
+
import { template as _$template21 } from "solid-js/web";
|
|
1936
|
+
import { delegateEvents as _$delegateEvents7 } from "solid-js/web";
|
|
1937
|
+
import { runHydrationEvents as _$runHydrationEvents10 } from "solid-js/web";
|
|
1938
|
+
import { addEventListener as _$addEventListener6 } from "solid-js/web";
|
|
1939
|
+
import { className as _$className19 } from "solid-js/web";
|
|
1940
|
+
import { getNextMarker as _$getNextMarker13 } from "solid-js/web";
|
|
1941
|
+
import { memo as _$memo12 } from "solid-js/web";
|
|
1942
|
+
import { insert as _$insert19 } from "solid-js/web";
|
|
1943
|
+
import { createComponent as _$createComponent19 } from "solid-js/web";
|
|
1944
|
+
import { setAttribute as _$setAttribute7 } from "solid-js/web";
|
|
1945
|
+
import { effect as _$effect20 } from "solid-js/web";
|
|
1946
|
+
import { getNextElement as _$getNextElement21 } from "solid-js/web";
|
|
1947
|
+
import { Show as Show15, For as For3 } from "solid-js";
|
|
1948
|
+
var _tmpl$31 = /* @__PURE__ */ _$template21(`<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">`);
|
|
1949
|
+
var _tmpl$218 = /* @__PURE__ */ _$template21(`<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">`);
|
|
1950
|
+
var _tmpl$313 = /* @__PURE__ */ _$template21(`<div class="flex items-center gap-1.5"><span class=text-accent>@</span><span>`);
|
|
1951
|
+
var _tmpl$412 = /* @__PURE__ */ _$template21(`<div class="flex items-center gap-1.5"><span class=text-accent>\u23F1</span><span>`);
|
|
1952
|
+
var _tmpl$57 = /* @__PURE__ */ _$template21(`<div class="flex items-center gap-4 mt-3 text-sm text-primary-300"><!$><!/><!$><!/>`);
|
|
1953
|
+
var _tmpl$64 = /* @__PURE__ */ _$template21(`<span class="ml-2 text-sm text-primary-300">+<!$><!/> m\xE1s`);
|
|
1954
|
+
var _tmpl$74 = /* @__PURE__ */ _$template21(`<div class="flex items-center mt-3"><div class="flex -space-x-2"></div><!$><!/>`);
|
|
1955
|
+
var _tmpl$82 = /* @__PURE__ */ _$template21(`<div class="mt-4 flex gap-2">`);
|
|
1956
|
+
var _tmpl$92 = /* @__PURE__ */ _$template21(`<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"></h3><!$><!/><!$><!/><!$><!/>`);
|
|
1957
|
+
var _tmpl$0 = /* @__PURE__ */ _$template21(`<div class="w-12 h-12 rounded-lg overflow-hidden flex-shrink-0"><img class="w-full h-full object-cover">`);
|
|
1958
|
+
var _tmpl$1 = /* @__PURE__ */ _$template21(`<p class="text-sm text-primary-300 truncate">`);
|
|
1959
|
+
var _tmpl$102 = /* @__PURE__ */ _$template21(`<button><!$><!/><div class="flex-1 min-w-0"><h4 class="font-medium text-primary-100 truncate"></h4><!$><!/>`);
|
|
1690
1960
|
function EventCard(props) {
|
|
1691
1961
|
const displayedAttendees = () => props.attendees?.slice(0, 3) ?? [];
|
|
1692
1962
|
const remainingCount = () => {
|
|
@@ -1695,18 +1965,18 @@ function EventCard(props) {
|
|
|
1695
1965
|
return total - displayed;
|
|
1696
1966
|
};
|
|
1697
1967
|
return (() => {
|
|
1698
|
-
var _el$ = _tmpl$92
|
|
1699
|
-
|
|
1968
|
+
var _el$ = _$getNextElement21(_tmpl$92), _el$35 = _el$.firstChild, [_el$36, _co$8] = _$getNextMarker13(_el$35.nextSibling), _el$37 = _el$36.nextSibling, [_el$38, _co$9] = _$getNextMarker13(_el$37.nextSibling), _el$8 = _el$38.nextSibling, _el$9 = _el$8.firstChild, _el$29 = _el$9.nextSibling, [_el$30, _co$5] = _$getNextMarker13(_el$29.nextSibling), _el$31 = _el$30.nextSibling, [_el$32, _co$6] = _$getNextMarker13(_el$31.nextSibling), _el$33 = _el$32.nextSibling, [_el$34, _co$7] = _$getNextMarker13(_el$33.nextSibling);
|
|
1969
|
+
_$insert19(_el$, _$createComponent19(Show15, {
|
|
1700
1970
|
get when() {
|
|
1701
1971
|
return props.decorationImage;
|
|
1702
1972
|
},
|
|
1703
1973
|
get children() {
|
|
1704
|
-
var _el$2 = _tmpl$31
|
|
1705
|
-
|
|
1974
|
+
var _el$2 = _$getNextElement21(_tmpl$31), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling;
|
|
1975
|
+
_$effect20((_p$) => {
|
|
1706
1976
|
var _v$ = props.decorationImage, _v$2 = props.decorationImage, _v$3 = props.decorationImage;
|
|
1707
|
-
_v$ !== _p$.e &&
|
|
1708
|
-
_v$2 !== _p$.t &&
|
|
1709
|
-
_v$3 !== _p$.a &&
|
|
1977
|
+
_v$ !== _p$.e && _$setAttribute7(_el$3, "src", _p$.e = _v$);
|
|
1978
|
+
_v$2 !== _p$.t && _$setAttribute7(_el$4, "src", _p$.t = _v$2);
|
|
1979
|
+
_v$3 !== _p$.a && _$setAttribute7(_el$5, "src", _p$.a = _v$3);
|
|
1710
1980
|
return _p$;
|
|
1711
1981
|
}, {
|
|
1712
1982
|
e: void 0,
|
|
@@ -1715,17 +1985,17 @@ function EventCard(props) {
|
|
|
1715
1985
|
});
|
|
1716
1986
|
return _el$2;
|
|
1717
1987
|
}
|
|
1718
|
-
}), _el$8);
|
|
1719
|
-
|
|
1988
|
+
}), _el$36, _co$8);
|
|
1989
|
+
_$insert19(_el$, _$createComponent19(Show15, {
|
|
1720
1990
|
get when() {
|
|
1721
1991
|
return props.image;
|
|
1722
1992
|
},
|
|
1723
1993
|
get children() {
|
|
1724
|
-
var _el$6 = _tmpl$218
|
|
1725
|
-
|
|
1994
|
+
var _el$6 = _$getNextElement21(_tmpl$218), _el$7 = _el$6.firstChild;
|
|
1995
|
+
_$effect20((_p$) => {
|
|
1726
1996
|
var _v$4 = props.image, _v$5 = props.title;
|
|
1727
|
-
_v$4 !== _p$.e &&
|
|
1728
|
-
_v$5 !== _p$.t &&
|
|
1997
|
+
_v$4 !== _p$.e && _$setAttribute7(_el$7, "src", _p$.e = _v$4);
|
|
1998
|
+
_v$5 !== _p$.t && _$setAttribute7(_el$7, "alt", _p$.t = _v$5);
|
|
1729
1999
|
return _p$;
|
|
1730
2000
|
}, {
|
|
1731
2001
|
e: void 0,
|
|
@@ -1733,48 +2003,48 @@ function EventCard(props) {
|
|
|
1733
2003
|
});
|
|
1734
2004
|
return _el$6;
|
|
1735
2005
|
}
|
|
1736
|
-
}), _el$
|
|
1737
|
-
|
|
1738
|
-
|
|
2006
|
+
}), _el$38, _co$9);
|
|
2007
|
+
_$insert19(_el$9, () => props.title);
|
|
2008
|
+
_$insert19(_el$8, _$createComponent19(Show15, {
|
|
1739
2009
|
get when() {
|
|
1740
2010
|
return props.date || props.author;
|
|
1741
2011
|
},
|
|
1742
2012
|
get children() {
|
|
1743
|
-
var _el$0 = _tmpl$57();
|
|
1744
|
-
|
|
2013
|
+
var _el$0 = _$getNextElement21(_tmpl$57), _el$15 = _el$0.firstChild, [_el$16, _co$] = _$getNextMarker13(_el$15.nextSibling), _el$17 = _el$16.nextSibling, [_el$18, _co$2] = _$getNextMarker13(_el$17.nextSibling);
|
|
2014
|
+
_$insert19(_el$0, _$createComponent19(Show15, {
|
|
1745
2015
|
get when() {
|
|
1746
2016
|
return props.author;
|
|
1747
2017
|
},
|
|
1748
2018
|
get children() {
|
|
1749
|
-
var _el$1 = _tmpl$313
|
|
1750
|
-
|
|
2019
|
+
var _el$1 = _$getNextElement21(_tmpl$313), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
2020
|
+
_$insert19(_el$11, () => props.author);
|
|
1751
2021
|
return _el$1;
|
|
1752
2022
|
}
|
|
1753
|
-
}),
|
|
1754
|
-
|
|
2023
|
+
}), _el$16, _co$);
|
|
2024
|
+
_$insert19(_el$0, _$createComponent19(Show15, {
|
|
1755
2025
|
get when() {
|
|
1756
2026
|
return props.date;
|
|
1757
2027
|
},
|
|
1758
2028
|
get children() {
|
|
1759
|
-
var _el$12 = _tmpl$412
|
|
1760
|
-
|
|
2029
|
+
var _el$12 = _$getNextElement21(_tmpl$412), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling;
|
|
2030
|
+
_$insert19(_el$14, () => props.date);
|
|
1761
2031
|
return _el$12;
|
|
1762
2032
|
}
|
|
1763
|
-
}),
|
|
2033
|
+
}), _el$18, _co$2);
|
|
1764
2034
|
return _el$0;
|
|
1765
2035
|
}
|
|
1766
|
-
}),
|
|
1767
|
-
|
|
2036
|
+
}), _el$30, _co$5);
|
|
2037
|
+
_$insert19(_el$8, _$createComponent19(Show15, {
|
|
1768
2038
|
get when() {
|
|
1769
2039
|
return displayedAttendees().length > 0;
|
|
1770
2040
|
},
|
|
1771
2041
|
get children() {
|
|
1772
|
-
var _el$
|
|
1773
|
-
|
|
2042
|
+
var _el$19 = _$getNextElement21(_tmpl$74), _el$20 = _el$19.firstChild, _el$26 = _el$20.nextSibling, [_el$27, _co$4] = _$getNextMarker13(_el$26.nextSibling);
|
|
2043
|
+
_$insert19(_el$20, _$createComponent19(For3, {
|
|
1774
2044
|
get each() {
|
|
1775
2045
|
return displayedAttendees();
|
|
1776
2046
|
},
|
|
1777
|
-
children: (attendee) =>
|
|
2047
|
+
children: (attendee) => _$createComponent19(Avatar, {
|
|
1778
2048
|
get src() {
|
|
1779
2049
|
return attendee.avatar;
|
|
1780
2050
|
},
|
|
@@ -1784,77 +2054,90 @@ function EventCard(props) {
|
|
|
1784
2054
|
size: "sm"
|
|
1785
2055
|
})
|
|
1786
2056
|
}));
|
|
1787
|
-
|
|
2057
|
+
_$insert19(_el$19, _$createComponent19(Show15, {
|
|
1788
2058
|
get when() {
|
|
1789
2059
|
return remainingCount() > 0;
|
|
1790
2060
|
},
|
|
1791
2061
|
get children() {
|
|
1792
|
-
var _el$
|
|
1793
|
-
|
|
1794
|
-
return _el$
|
|
2062
|
+
var _el$21 = _$getNextElement21(_tmpl$64), _el$22 = _el$21.firstChild, _el$24 = _el$22.nextSibling, [_el$25, _co$3] = _$getNextMarker13(_el$24.nextSibling), _el$23 = _el$25.nextSibling;
|
|
2063
|
+
_$insert19(_el$21, remainingCount, _el$25, _co$3);
|
|
2064
|
+
return _el$21;
|
|
1795
2065
|
}
|
|
1796
|
-
}),
|
|
1797
|
-
return _el$
|
|
2066
|
+
}), _el$27, _co$4);
|
|
2067
|
+
return _el$19;
|
|
1798
2068
|
}
|
|
1799
|
-
}),
|
|
1800
|
-
|
|
2069
|
+
}), _el$32, _co$6);
|
|
2070
|
+
_$insert19(_el$8, _$createComponent19(Show15, {
|
|
1801
2071
|
get when() {
|
|
1802
2072
|
return props.actions;
|
|
1803
2073
|
},
|
|
1804
2074
|
get children() {
|
|
1805
|
-
var _el$
|
|
1806
|
-
|
|
1807
|
-
return _el$
|
|
2075
|
+
var _el$28 = _$getNextElement21(_tmpl$82);
|
|
2076
|
+
_$insert19(_el$28, () => props.actions);
|
|
2077
|
+
return _el$28;
|
|
1808
2078
|
}
|
|
1809
|
-
}),
|
|
1810
|
-
|
|
2079
|
+
}), _el$34, _co$7);
|
|
2080
|
+
_$effect20(() => _$className19(_el$, `relative bg-bg-200 rounded-3xl overflow-hidden ${props.class ?? ""}`));
|
|
1811
2081
|
return _el$;
|
|
1812
2082
|
})();
|
|
1813
2083
|
}
|
|
1814
2084
|
function EventListItem(props) {
|
|
1815
2085
|
return (() => {
|
|
1816
|
-
var _el$
|
|
1817
|
-
|
|
1818
|
-
|
|
2086
|
+
var _el$39 = _$getNextElement21(_tmpl$102), _el$47 = _el$39.firstChild, [_el$48, _co$1] = _$getNextMarker13(_el$47.nextSibling), _el$42 = _el$48.nextSibling, _el$43 = _el$42.firstChild, _el$45 = _el$43.nextSibling, [_el$46, _co$0] = _$getNextMarker13(_el$45.nextSibling);
|
|
2087
|
+
_$addEventListener6(_el$39, "click", props.onClick, true);
|
|
2088
|
+
_$insert19(_el$39, _$createComponent19(Show15, {
|
|
1819
2089
|
get when() {
|
|
1820
2090
|
return props.image;
|
|
1821
2091
|
},
|
|
1822
2092
|
get children() {
|
|
1823
|
-
var _el$
|
|
1824
|
-
|
|
2093
|
+
var _el$40 = _$getNextElement21(_tmpl$0), _el$41 = _el$40.firstChild;
|
|
2094
|
+
_$effect20((_p$) => {
|
|
1825
2095
|
var _v$6 = props.image, _v$7 = props.title;
|
|
1826
|
-
_v$6 !== _p$.e &&
|
|
1827
|
-
_v$7 !== _p$.t &&
|
|
2096
|
+
_v$6 !== _p$.e && _$setAttribute7(_el$41, "src", _p$.e = _v$6);
|
|
2097
|
+
_v$7 !== _p$.t && _$setAttribute7(_el$41, "alt", _p$.t = _v$7);
|
|
1828
2098
|
return _p$;
|
|
1829
2099
|
}, {
|
|
1830
2100
|
e: void 0,
|
|
1831
2101
|
t: void 0
|
|
1832
2102
|
});
|
|
1833
|
-
return _el$
|
|
2103
|
+
return _el$40;
|
|
1834
2104
|
}
|
|
1835
|
-
}), _el$
|
|
1836
|
-
|
|
1837
|
-
|
|
2105
|
+
}), _el$48, _co$1);
|
|
2106
|
+
_$insert19(_el$43, () => props.title);
|
|
2107
|
+
_$insert19(_el$42, _$createComponent19(Show15, {
|
|
1838
2108
|
get when() {
|
|
1839
2109
|
return props.subtitle;
|
|
1840
2110
|
},
|
|
1841
2111
|
get children() {
|
|
1842
|
-
var _el$
|
|
1843
|
-
|
|
1844
|
-
return _el$
|
|
2112
|
+
var _el$44 = _$getNextElement21(_tmpl$1);
|
|
2113
|
+
_$insert19(_el$44, () => props.subtitle);
|
|
2114
|
+
return _el$44;
|
|
1845
2115
|
}
|
|
1846
|
-
}),
|
|
1847
|
-
|
|
1848
|
-
|
|
2116
|
+
}), _el$46, _co$0);
|
|
2117
|
+
_$effect20(() => _$className19(_el$39, `flex items-center gap-3 w-full p-2 rounded-lg hover:bg-bg-300 transition-colors text-left ${props.class ?? ""}`));
|
|
2118
|
+
_$runHydrationEvents10();
|
|
2119
|
+
return _el$39;
|
|
1849
2120
|
})();
|
|
1850
2121
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
2122
|
+
_$delegateEvents7(["click"]);
|
|
2123
|
+
|
|
2124
|
+
// src/custom/calendar-card/index.tsx
|
|
2125
|
+
import { template as _$template22 } from "solid-js/web";
|
|
2126
|
+
import { className as _$className20 } from "solid-js/web";
|
|
2127
|
+
import { getNextMarker as _$getNextMarker14 } from "solid-js/web";
|
|
2128
|
+
import { insert as _$insert20 } from "solid-js/web";
|
|
2129
|
+
import { memo as _$memo13 } from "solid-js/web";
|
|
2130
|
+
import { createComponent as _$createComponent20 } from "solid-js/web";
|
|
2131
|
+
import { setAttribute as _$setAttribute8 } from "solid-js/web";
|
|
2132
|
+
import { effect as _$effect21 } from "solid-js/web";
|
|
2133
|
+
import { getNextElement as _$getNextElement22 } from "solid-js/web";
|
|
2134
|
+
import { Show as Show16, For as For4 } from "solid-js";
|
|
2135
|
+
var _tmpl$40 = /* @__PURE__ */ _$template22(`<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">`);
|
|
2136
|
+
var _tmpl$219 = /* @__PURE__ */ _$template22(`<div class="absolute bottom-[-20px] h-[30px] w-full"><div class="flex h-full w-full flex-1 justify-end gap-1">`);
|
|
2137
|
+
var _tmpl$314 = /* @__PURE__ */ _$template22(`<span class="font-semibold text-accent-200"><!$><!/> m\xE1s`);
|
|
2138
|
+
var _tmpl$413 = /* @__PURE__ */ _$template22(`<div class="flex flex-1"><span class="text-base font-normal text-primary-500">seguida por <!$><!/><!$><!/>`);
|
|
2139
|
+
var _tmpl$58 = /* @__PURE__ */ _$template22(`<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"></span></div><!$><!/>`);
|
|
2140
|
+
var _tmpl$65 = /* @__PURE__ */ _$template22(`<span class="font-semibold text-accent-200">`);
|
|
1858
2141
|
function CalendarCard(props) {
|
|
1859
2142
|
const displayedFollowers = () => props.followers?.slice(0, 2) ?? [];
|
|
1860
2143
|
const remainingCount = () => {
|
|
@@ -1863,17 +2146,17 @@ function CalendarCard(props) {
|
|
|
1863
2146
|
return total - displayed;
|
|
1864
2147
|
};
|
|
1865
2148
|
return (() => {
|
|
1866
|
-
var _el$ = _tmpl$58
|
|
1867
|
-
|
|
2149
|
+
var _el$ = _$getNextElement22(_tmpl$58), _el$24 = _el$.firstChild, [_el$25, _co$6] = _$getNextMarker14(_el$24.nextSibling), _el$4 = _el$25.nextSibling, _el$22 = _el$4.firstChild, [_el$23, _co$5] = _$getNextMarker14(_el$22.nextSibling), _el$7 = _el$23.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$20 = _el$8.nextSibling, [_el$21, _co$4] = _$getNextMarker14(_el$20.nextSibling);
|
|
2150
|
+
_$insert20(_el$, _$createComponent20(Show16, {
|
|
1868
2151
|
get when() {
|
|
1869
2152
|
return props.image;
|
|
1870
2153
|
},
|
|
1871
2154
|
get children() {
|
|
1872
|
-
var _el$2 = _tmpl$40
|
|
1873
|
-
|
|
2155
|
+
var _el$2 = _$getNextElement22(_tmpl$40), _el$3 = _el$2.firstChild;
|
|
2156
|
+
_$effect21((_p$) => {
|
|
1874
2157
|
var _v$ = props.image, _v$2 = props.title;
|
|
1875
|
-
_v$ !== _p$.e &&
|
|
1876
|
-
_v$2 !== _p$.t &&
|
|
2158
|
+
_v$ !== _p$.e && _$setAttribute8(_el$3, "src", _p$.e = _v$);
|
|
2159
|
+
_v$2 !== _p$.t && _$setAttribute8(_el$3, "alt", _p$.t = _v$2);
|
|
1877
2160
|
return _p$;
|
|
1878
2161
|
}, {
|
|
1879
2162
|
e: void 0,
|
|
@@ -1881,62 +2164,70 @@ function CalendarCard(props) {
|
|
|
1881
2164
|
});
|
|
1882
2165
|
return _el$2;
|
|
1883
2166
|
}
|
|
1884
|
-
}), _el$
|
|
1885
|
-
|
|
2167
|
+
}), _el$25, _co$6);
|
|
2168
|
+
_$insert20(_el$4, _$createComponent20(Show16, {
|
|
1886
2169
|
get when() {
|
|
1887
|
-
return
|
|
2170
|
+
return _$memo13(() => !!props.tags)() && props.tags.length > 0;
|
|
1888
2171
|
},
|
|
1889
2172
|
get children() {
|
|
1890
|
-
var _el$5 = _tmpl$219
|
|
1891
|
-
|
|
2173
|
+
var _el$5 = _$getNextElement22(_tmpl$219), _el$6 = _el$5.firstChild;
|
|
2174
|
+
_$insert20(_el$6, _$createComponent20(For4, {
|
|
1892
2175
|
get each() {
|
|
1893
2176
|
return props.tags;
|
|
1894
2177
|
},
|
|
1895
|
-
children: (tag) =>
|
|
2178
|
+
children: (tag) => _$createComponent20(Chip, {
|
|
1896
2179
|
text: tag,
|
|
1897
2180
|
variant: "primary"
|
|
1898
2181
|
})
|
|
1899
2182
|
}));
|
|
1900
2183
|
return _el$5;
|
|
1901
2184
|
}
|
|
1902
|
-
}), _el$
|
|
1903
|
-
|
|
1904
|
-
|
|
2185
|
+
}), _el$23, _co$5);
|
|
2186
|
+
_$insert20(_el$9, () => props.title);
|
|
2187
|
+
_$insert20(_el$7, _$createComponent20(Show16, {
|
|
1905
2188
|
get when() {
|
|
1906
2189
|
return displayedFollowers().length > 0;
|
|
1907
2190
|
},
|
|
1908
2191
|
get children() {
|
|
1909
|
-
var _el$0 = _tmpl$413
|
|
1910
|
-
|
|
2192
|
+
var _el$0 = _$getNextElement22(_tmpl$413), _el$1 = _el$0.firstChild, _el$10 = _el$1.firstChild, _el$16 = _el$10.nextSibling, [_el$17, _co$2] = _$getNextMarker14(_el$16.nextSibling), _el$18 = _el$17.nextSibling, [_el$19, _co$3] = _$getNextMarker14(_el$18.nextSibling);
|
|
2193
|
+
_$insert20(_el$1, _$createComponent20(For4, {
|
|
1911
2194
|
get each() {
|
|
1912
2195
|
return displayedFollowers();
|
|
1913
2196
|
},
|
|
1914
2197
|
children: (follower, index) => [(() => {
|
|
1915
|
-
var _el$
|
|
1916
|
-
|
|
1917
|
-
return _el$
|
|
1918
|
-
})(),
|
|
1919
|
-
}),
|
|
1920
|
-
|
|
2198
|
+
var _el$26 = _$getNextElement22(_tmpl$65);
|
|
2199
|
+
_$insert20(_el$26, () => follower.name);
|
|
2200
|
+
return _el$26;
|
|
2201
|
+
})(), _$memo13(() => index() < displayedFollowers().length - 1 && ", ")]
|
|
2202
|
+
}), _el$17, _co$2);
|
|
2203
|
+
_$insert20(_el$1, _$createComponent20(Show16, {
|
|
1921
2204
|
get when() {
|
|
1922
2205
|
return remainingCount() > 0;
|
|
1923
2206
|
},
|
|
1924
2207
|
get children() {
|
|
1925
2208
|
return [" ", "y ", (() => {
|
|
1926
|
-
var _el$12 = _tmpl$314(), _el$13 = _el$
|
|
1927
|
-
|
|
2209
|
+
var _el$12 = _$getNextElement22(_tmpl$314), _el$14 = _el$12.firstChild, [_el$15, _co$] = _$getNextMarker14(_el$14.nextSibling), _el$13 = _el$15.nextSibling;
|
|
2210
|
+
_$insert20(_el$12, remainingCount, _el$15, _co$);
|
|
1928
2211
|
return _el$12;
|
|
1929
2212
|
})()];
|
|
1930
2213
|
}
|
|
1931
|
-
}),
|
|
2214
|
+
}), _el$19, _co$3);
|
|
1932
2215
|
return _el$0;
|
|
1933
2216
|
}
|
|
1934
|
-
}),
|
|
1935
|
-
|
|
2217
|
+
}), _el$21, _co$4);
|
|
2218
|
+
_$effect21(() => _$className20(_el$, `flex h-[100px] w-full max-w-[500px] items-center rounded-xl border border-primary-600 border-b-accent-500 bg-bg-300 p-2 ${props.class ?? ""}`));
|
|
1936
2219
|
return _el$;
|
|
1937
2220
|
})();
|
|
1938
2221
|
}
|
|
1939
|
-
|
|
2222
|
+
|
|
2223
|
+
// src/custom/logo/index.tsx
|
|
2224
|
+
import { template as _$template23 } from "solid-js/web";
|
|
2225
|
+
import { setAttribute as _$setAttribute9 } from "solid-js/web";
|
|
2226
|
+
import { className as _$className21 } from "solid-js/web";
|
|
2227
|
+
import { effect as _$effect22 } from "solid-js/web";
|
|
2228
|
+
import { getNextElement as _$getNextElement23 } from "solid-js/web";
|
|
2229
|
+
import { insert as _$insert21 } from "solid-js/web";
|
|
2230
|
+
var _tmpl$41 = /* @__PURE__ */ _$template23(`<span><span class=vui-logo__first></span><span class=vui-logo__second>`);
|
|
1940
2231
|
function Logo(props) {
|
|
1941
2232
|
const sizeClass = () => {
|
|
1942
2233
|
switch (props.size) {
|
|
@@ -1954,13 +2245,13 @@ function Logo(props) {
|
|
|
1954
2245
|
const firstWord = () => props.firstWord ?? "Proyecto";
|
|
1955
2246
|
const secondWord = () => props.secondWord ?? "Viviana";
|
|
1956
2247
|
return (() => {
|
|
1957
|
-
var _el$ = _tmpl$41
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2248
|
+
var _el$ = _$getNextElement23(_tmpl$41), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
2249
|
+
_$insert21(_el$2, firstWord);
|
|
2250
|
+
_$insert21(_el$3, secondWord);
|
|
2251
|
+
_$effect22((_p$) => {
|
|
1961
2252
|
var _v$ = `vui-logo ${sizeClass()} ${props.class ?? ""}`, _v$2 = secondWord();
|
|
1962
|
-
_v$ !== _p$.e &&
|
|
1963
|
-
_v$2 !== _p$.t &&
|
|
2253
|
+
_v$ !== _p$.e && _$className21(_el$, _p$.e = _v$);
|
|
2254
|
+
_v$2 !== _p$.t && _$setAttribute9(_el$3, "data-text", _p$.t = _v$2);
|
|
1964
2255
|
return _p$;
|
|
1965
2256
|
}, {
|
|
1966
2257
|
e: void 0,
|
|
@@ -1969,23 +2260,31 @@ function Logo(props) {
|
|
|
1969
2260
|
return _el$;
|
|
1970
2261
|
})();
|
|
1971
2262
|
}
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2263
|
+
|
|
2264
|
+
// src/custom/project-card/index.tsx
|
|
2265
|
+
import { template as _$template24 } from "solid-js/web";
|
|
2266
|
+
import { className as _$className22 } from "solid-js/web";
|
|
2267
|
+
import { setAttribute as _$setAttribute10 } from "solid-js/web";
|
|
2268
|
+
import { effect as _$effect23 } from "solid-js/web";
|
|
2269
|
+
import { getNextElement as _$getNextElement24 } from "solid-js/web";
|
|
2270
|
+
import { insert as _$insert22 } from "solid-js/web";
|
|
2271
|
+
var _tmpl$50 = /* @__PURE__ */ _$template24(`<div class=vui-project-card__tooltip><span>`);
|
|
2272
|
+
var _tmpl$220 = /* @__PURE__ */ _$template24(`<img class=vui-project-card__image>`);
|
|
2273
|
+
var _tmpl$315 = /* @__PURE__ */ _$template24(`<a target=_blank rel="noopener noreferrer">`);
|
|
2274
|
+
var _tmpl$414 = /* @__PURE__ */ _$template24(`<div>`);
|
|
1976
2275
|
function ProjectCard(props) {
|
|
1977
2276
|
const size = () => props.size ?? "sm";
|
|
1978
2277
|
const inactive = () => props.inactive ?? false;
|
|
1979
2278
|
const cardContent = () => [(() => {
|
|
1980
|
-
var _el$ = _tmpl$50
|
|
1981
|
-
|
|
2279
|
+
var _el$ = _$getNextElement24(_tmpl$50), _el$2 = _el$.firstChild;
|
|
2280
|
+
_$insert22(_el$2, () => props.name);
|
|
1982
2281
|
return _el$;
|
|
1983
2282
|
})(), (() => {
|
|
1984
|
-
var _el$3 = _tmpl$220
|
|
1985
|
-
|
|
2283
|
+
var _el$3 = _$getNextElement24(_tmpl$220);
|
|
2284
|
+
_$effect23((_p$) => {
|
|
1986
2285
|
var _v$ = props.imageSrc, _v$2 = props.imageAlt ?? props.name;
|
|
1987
|
-
_v$ !== _p$.e &&
|
|
1988
|
-
_v$2 !== _p$.t &&
|
|
2286
|
+
_v$ !== _p$.e && _$setAttribute10(_el$3, "src", _p$.e = _v$);
|
|
2287
|
+
_v$2 !== _p$.t && _$setAttribute10(_el$3, "alt", _p$.t = _v$2);
|
|
1989
2288
|
return _p$;
|
|
1990
2289
|
}, {
|
|
1991
2290
|
e: void 0,
|
|
@@ -1996,12 +2295,12 @@ function ProjectCard(props) {
|
|
|
1996
2295
|
const cardClasses = () => `vui-project-card vui-project-card--${size()} ${inactive() ? "vui-project-card--inactive" : ""} ${props.class ?? ""}`;
|
|
1997
2296
|
if (props.href) {
|
|
1998
2297
|
return (() => {
|
|
1999
|
-
var _el$4 = _tmpl$315
|
|
2000
|
-
|
|
2001
|
-
|
|
2298
|
+
var _el$4 = _$getNextElement24(_tmpl$315);
|
|
2299
|
+
_$insert22(_el$4, cardContent);
|
|
2300
|
+
_$effect23((_p$) => {
|
|
2002
2301
|
var _v$3 = props.href, _v$4 = cardClasses();
|
|
2003
|
-
_v$3 !== _p$.e &&
|
|
2004
|
-
_v$4 !== _p$.t &&
|
|
2302
|
+
_v$3 !== _p$.e && _$setAttribute10(_el$4, "href", _p$.e = _v$3);
|
|
2303
|
+
_v$4 !== _p$.t && _$className22(_el$4, _p$.t = _v$4);
|
|
2005
2304
|
return _p$;
|
|
2006
2305
|
}, {
|
|
2007
2306
|
e: void 0,
|
|
@@ -2011,25 +2310,72 @@ function ProjectCard(props) {
|
|
|
2011
2310
|
})();
|
|
2012
2311
|
}
|
|
2013
2312
|
return (() => {
|
|
2014
|
-
var _el$5 = _tmpl$414
|
|
2015
|
-
|
|
2016
|
-
|
|
2313
|
+
var _el$5 = _$getNextElement24(_tmpl$414);
|
|
2314
|
+
_$insert22(_el$5, cardContent);
|
|
2315
|
+
_$effect23(() => _$className22(_el$5, cardClasses()));
|
|
2017
2316
|
return _el$5;
|
|
2018
2317
|
})();
|
|
2019
2318
|
}
|
|
2020
|
-
|
|
2319
|
+
|
|
2320
|
+
// src/custom/page-layout/index.tsx
|
|
2321
|
+
import { template as _$template25 } from "solid-js/web";
|
|
2322
|
+
import { getNextElement as _$getNextElement25 } from "solid-js/web";
|
|
2323
|
+
import { runHydrationEvents as _$runHydrationEvents11 } from "solid-js/web";
|
|
2324
|
+
import { insert as _$insert23 } from "solid-js/web";
|
|
2325
|
+
import { spread as _$spread4 } from "solid-js/web";
|
|
2326
|
+
import { mergeProps as _$mergeProps9 } from "solid-js/web";
|
|
2327
|
+
import { splitProps as splitProps9 } from "solid-js";
|
|
2328
|
+
var _tmpl$51 = /* @__PURE__ */ _$template25(`<div>`);
|
|
2021
2329
|
function PageLayout(props) {
|
|
2022
|
-
const [local, rest] =
|
|
2330
|
+
const [local, rest] = splitProps9(props, ["children", "class"]);
|
|
2023
2331
|
return (() => {
|
|
2024
|
-
var _el$ = _tmpl$51
|
|
2025
|
-
|
|
2332
|
+
var _el$ = _$getNextElement25(_tmpl$51);
|
|
2333
|
+
_$spread4(_el$, _$mergeProps9({
|
|
2026
2334
|
get ["class"]() {
|
|
2027
2335
|
return `vui-page ${local.class ?? ""}`;
|
|
2028
2336
|
}
|
|
2029
2337
|
}, rest), false, true);
|
|
2030
|
-
|
|
2338
|
+
_$insert23(_el$, () => local.children);
|
|
2339
|
+
_$runHydrationEvents11();
|
|
2031
2340
|
return _el$;
|
|
2032
2341
|
})();
|
|
2033
2342
|
}
|
|
2034
|
-
|
|
2035
|
-
|
|
2343
|
+
export {
|
|
2344
|
+
Alert,
|
|
2345
|
+
Avatar,
|
|
2346
|
+
AvatarGroup,
|
|
2347
|
+
Badge,
|
|
2348
|
+
Button,
|
|
2349
|
+
CalendarCard,
|
|
2350
|
+
Checkbox,
|
|
2351
|
+
CheckboxGroup,
|
|
2352
|
+
Chip,
|
|
2353
|
+
Conversation,
|
|
2354
|
+
ConversationBubble,
|
|
2355
|
+
ConversationPreview,
|
|
2356
|
+
Dialog,
|
|
2357
|
+
EventCard,
|
|
2358
|
+
EventListItem,
|
|
2359
|
+
GitHubIcon,
|
|
2360
|
+
Icon,
|
|
2361
|
+
LateralNav,
|
|
2362
|
+
Link,
|
|
2363
|
+
Logo,
|
|
2364
|
+
NavHeader,
|
|
2365
|
+
NavItem,
|
|
2366
|
+
NavLink,
|
|
2367
|
+
NavSection,
|
|
2368
|
+
PageLayout,
|
|
2369
|
+
ProfileCard,
|
|
2370
|
+
ProgressBar,
|
|
2371
|
+
ProjectCard,
|
|
2372
|
+
Radio,
|
|
2373
|
+
RadioGroup,
|
|
2374
|
+
Separator,
|
|
2375
|
+
TabSwitch,
|
|
2376
|
+
TextField,
|
|
2377
|
+
TimelineItem,
|
|
2378
|
+
ToggleSwitch,
|
|
2379
|
+
Tooltip
|
|
2380
|
+
};
|
|
2381
|
+
//# sourceMappingURL=index.js.map
|