zabi-components 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Tabs-Cmmn5ILE.js +865 -0
- package/dist/{Toast-DwMSanZj.js → Toast-DXZ9gllw.js} +1 -1
- package/dist/{ToastManager-BpADCnfN.js → ToastManager-t1UT0is1.js} +2 -2
- package/dist/{Toggle-L79m_T4s.js → Toggle-CPFNTShj.js} +1053 -1017
- package/dist/{Tooltip-CYzYtAt2.js → Tooltip-B-wUMg6c.js} +430 -438
- package/dist/atoms/index.js +3 -3
- package/dist/index/index.js +5 -5
- package/dist/molecules/index.js +2 -2
- package/dist/organisms/index.js +1 -1
- package/dist/{x-DaAXsWcz.js → x-DpVwziig.js} +4 -4
- package/package.json +4 -4
- package/dist/Tabs-DRnimczL.js +0 -889
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Te, p as
|
|
2
|
-
import { createEventDispatcher as Pe, onMount as
|
|
3
|
-
import { T as
|
|
4
|
-
var
|
|
1
|
+
import { a as Te, p as m, C as ie, D as ze, i as we, f as _, c as H, g as r, h as pe, j as he, r as C, l as e, m as Y, n as a, k as O, b as me, o as i, s as ne, t as p, q as S, F as oe, e as R, u as X, x as Se, v as J, _ as Fe, w as ge, W as ye, B as W, d as je, P as ke, $ as ue, E as ce, Z as ve, G as Le, y as qe, z as Re } from "./x-DpVwziig.js";
|
|
2
|
+
import { createEventDispatcher as Pe, onMount as Be } from "svelte";
|
|
3
|
+
import { T as We } from "./Toast-DXZ9gllw.js";
|
|
4
|
+
var He = _("<div></div>"), Oe = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ve = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Xe = _('<button type="button"><!> <!> <!> <!></button> <button type="button" aria-label="Close badge"><svg class="w-full h-full svelte-14njway" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" class="svelte-14njway"></path></svg></button>', 1), Ze = _("<div></div>"), Ge = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ye = Se('<svg fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" class="svelte-14njway"></path></svg>'), Ue = _("<span><!> <!> <!> <!></span>"), Je = _('<div class="inline-flex items-center gap-1 svelte-14njway"><!></div>');
|
|
5
5
|
const Ke = {
|
|
6
6
|
hash: "svelte-14njway",
|
|
7
7
|
code: `
|
|
@@ -60,27 +60,27 @@ const Ke = {
|
|
|
60
60
|
}
|
|
61
61
|
}`
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function Ht(K, t) {
|
|
64
64
|
he(t, !1), Te(K, Ke);
|
|
65
|
-
const y =
|
|
66
|
-
let q =
|
|
65
|
+
const y = Y(), w = Y(), j = Y(), u = Y(), L = Y(), B = Y(), F = Y();
|
|
66
|
+
let q = m(t, "variant", 8, "default"), T = m(t, "size", 8, "md"), k = m(t, "shape", 8, "rounded"), P = m(t, "dot", 8, !1), D = m(t, "closable", 8, !1), d = m(t, "icon", 8, void 0), E = m(t, "iconPosition", 8, "left");
|
|
67
67
|
const M = Pe();
|
|
68
|
-
function Q(
|
|
69
|
-
|
|
68
|
+
function Q(x) {
|
|
69
|
+
x.stopPropagation(), M("close", { event: x });
|
|
70
70
|
}
|
|
71
|
-
function A(
|
|
72
|
-
M("click", { event:
|
|
71
|
+
function A(x) {
|
|
72
|
+
M("click", { event: x });
|
|
73
73
|
}
|
|
74
74
|
ie(() => {
|
|
75
75
|
}, () => {
|
|
76
|
-
|
|
76
|
+
O(y, {
|
|
77
77
|
sm: "px-2 py-0.5 text-xs",
|
|
78
78
|
md: "px-3 py-1 text-sm",
|
|
79
79
|
lg: "px-4 py-1.5 text-base"
|
|
80
80
|
});
|
|
81
81
|
}), ie(() => {
|
|
82
82
|
}, () => {
|
|
83
|
-
|
|
83
|
+
O(w, {
|
|
84
84
|
default: "bg-surface-secondary text-primary border border-primary",
|
|
85
85
|
success: "bg-success-surface text-success-text border border-success/30",
|
|
86
86
|
warning: "bg-warning-surface text-warning-text border border-warning/30",
|
|
@@ -90,18 +90,18 @@ function Wt(K, t) {
|
|
|
90
90
|
});
|
|
91
91
|
}), ie(() => {
|
|
92
92
|
}, () => {
|
|
93
|
-
|
|
93
|
+
O(j, {
|
|
94
94
|
rounded: "rounded-md",
|
|
95
95
|
pill: "rounded-full",
|
|
96
96
|
square: "rounded-none"
|
|
97
97
|
});
|
|
98
98
|
}), ie(() => {
|
|
99
99
|
}, () => {
|
|
100
|
-
|
|
100
|
+
O(u, { sm: "w-1.5 h-1.5", md: "w-2 h-2", lg: "w-2.5 h-2.5" });
|
|
101
101
|
}), ie(
|
|
102
|
-
() => (e(y), C(
|
|
102
|
+
() => (e(y), C(T()), e(w), C(q()), e(j), C(k()), C(D())),
|
|
103
103
|
() => {
|
|
104
|
-
|
|
104
|
+
O(L, [
|
|
105
105
|
"inline-flex",
|
|
106
106
|
"items-center",
|
|
107
107
|
"gap-1.5",
|
|
@@ -112,19 +112,19 @@ function Wt(K, t) {
|
|
|
112
112
|
"ease-in-out",
|
|
113
113
|
"select-none",
|
|
114
114
|
"cursor-default",
|
|
115
|
-
e(y)[
|
|
115
|
+
e(y)[T()],
|
|
116
116
|
e(w)[q()],
|
|
117
|
-
e(
|
|
118
|
-
|
|
117
|
+
e(j)[k()],
|
|
118
|
+
D() ? "cursor-pointer hover:opacity-80" : ""
|
|
119
119
|
].join(" "));
|
|
120
120
|
}
|
|
121
|
-
), ie(() => C(
|
|
122
|
-
|
|
121
|
+
), ie(() => C(T()), () => {
|
|
122
|
+
O(B, [
|
|
123
123
|
"flex-shrink-0",
|
|
124
|
-
|
|
124
|
+
T() === "sm" ? "w-3 h-3" : T() === "md" ? "w-4 h-4" : "w-5 h-5"
|
|
125
125
|
].join(" "));
|
|
126
|
-
}), ie(() => C(
|
|
127
|
-
|
|
126
|
+
}), ie(() => C(T()), () => {
|
|
127
|
+
O(F, [
|
|
128
128
|
"flex-shrink-0",
|
|
129
129
|
"ml-1",
|
|
130
130
|
"hover:bg-white/10",
|
|
@@ -133,204 +133,196 @@ function Wt(K, t) {
|
|
|
133
133
|
"transition-colors",
|
|
134
134
|
"duration-150",
|
|
135
135
|
"ease-in-out",
|
|
136
|
-
|
|
136
|
+
T() === "sm" ? "w-3 h-3" : T() === "md" ? "w-4 h-4" : "w-5 h-5"
|
|
137
137
|
].join(" "));
|
|
138
138
|
}), ze(), we();
|
|
139
139
|
var f = Je(), N = a(f);
|
|
140
140
|
{
|
|
141
|
-
var te = (
|
|
142
|
-
var
|
|
141
|
+
var te = (x) => {
|
|
142
|
+
var I = Xe(), V = me(I), $ = a(V);
|
|
143
143
|
{
|
|
144
144
|
var ee = (o) => {
|
|
145
|
-
var v =
|
|
146
|
-
|
|
145
|
+
var v = He();
|
|
146
|
+
p(() => S(
|
|
147
147
|
v,
|
|
148
148
|
1,
|
|
149
|
-
`w-2 h-2 rounded-full bg-current ${e(
|
|
149
|
+
`w-2 h-2 rounded-full bg-current ${e(u), C(T()), X(() => e(u)[T()]) ?? ""}`,
|
|
150
150
|
"svelte-14njway"
|
|
151
151
|
)), r(o, v);
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
H($, (o) => {
|
|
154
|
+
P() && o(ee);
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
var U = i($, 2);
|
|
158
158
|
{
|
|
159
|
-
var
|
|
160
|
-
var v =
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
var b = (o) => {
|
|
160
|
+
var v = Oe(), Z = a(v);
|
|
161
|
+
p(() => {
|
|
162
|
+
S(v, 0, oe(e(B)), "svelte-14njway"), J(Z, "d", d());
|
|
163
163
|
}), r(o, v);
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
d() &&
|
|
165
|
+
H(U, (o) => {
|
|
166
|
+
d() && E() === "left" && o(b);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
ne(
|
|
171
|
-
var c = i(
|
|
169
|
+
var h = i(U, 2);
|
|
170
|
+
ne(h, t, "default", {}, null);
|
|
171
|
+
var c = i(h, 2);
|
|
172
172
|
{
|
|
173
173
|
var s = (o) => {
|
|
174
|
-
var v =
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
var v = Ve(), Z = a(v);
|
|
175
|
+
p(() => {
|
|
176
|
+
S(v, 0, oe(e(B)), "svelte-14njway"), J(Z, "d", d());
|
|
177
177
|
}), r(o, v);
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
d() &&
|
|
179
|
+
H(c, (o) => {
|
|
180
|
+
d() && E() === "right" && o(s);
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
var n = i(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}), R("click",
|
|
187
|
-
},
|
|
188
|
-
var
|
|
183
|
+
var n = i(V, 2);
|
|
184
|
+
p(() => {
|
|
185
|
+
S(V, 1, oe(e(L)), "svelte-14njway"), S(n, 1, oe(e(F)), "svelte-14njway");
|
|
186
|
+
}), R("click", V, A), R("keydown", V, (o) => o.key === "Enter" && A(o)), R("click", n, Q), R("keydown", n, (o) => o.key === "Enter" && Q(o)), r(x, I);
|
|
187
|
+
}, z = (x) => {
|
|
188
|
+
var I = Ue(), V = a(I);
|
|
189
189
|
{
|
|
190
190
|
var $ = (s) => {
|
|
191
|
-
var n =
|
|
192
|
-
|
|
191
|
+
var n = Ze();
|
|
192
|
+
p(() => S(
|
|
193
193
|
n,
|
|
194
194
|
1,
|
|
195
|
-
`w-2 h-2 rounded-full bg-current ${e(
|
|
195
|
+
`w-2 h-2 rounded-full bg-current ${e(u), C(T()), X(() => e(u)[T()]) ?? ""}`,
|
|
196
196
|
"svelte-14njway"
|
|
197
197
|
)), r(s, n);
|
|
198
198
|
};
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
H(V, (s) => {
|
|
200
|
+
P() && s($);
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
var ee = i(
|
|
203
|
+
var ee = i(V, 2);
|
|
204
204
|
{
|
|
205
205
|
var U = (s) => {
|
|
206
206
|
var n = Ge(), o = a(n);
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
p(() => {
|
|
208
|
+
S(n, 0, oe(e(B)), "svelte-14njway"), J(o, "d", d());
|
|
209
209
|
}), r(s, n);
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
d() &&
|
|
211
|
+
H(ee, (s) => {
|
|
212
|
+
d() && E() === "left" && s(U);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
ne(
|
|
217
|
-
var
|
|
215
|
+
var b = i(ee, 2);
|
|
216
|
+
ne(b, t, "default", {}, null);
|
|
217
|
+
var h = i(b, 2);
|
|
218
218
|
{
|
|
219
219
|
var c = (s) => {
|
|
220
|
-
var n =
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
var n = Ye(), o = a(n);
|
|
221
|
+
p(() => {
|
|
222
|
+
S(n, 0, oe(e(B)), "svelte-14njway"), J(o, "d", d());
|
|
223
223
|
}), r(s, n);
|
|
224
224
|
};
|
|
225
|
-
|
|
226
|
-
d() &&
|
|
225
|
+
H(h, (s) => {
|
|
226
|
+
d() && E() === "right" && s(c);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
p(() => S(I, 1, oe(e(L)), "svelte-14njway")), r(x, I);
|
|
230
230
|
};
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
H(N, (x) => {
|
|
232
|
+
D() ? x(te) : x(z, !1);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
r(K, f), pe();
|
|
236
236
|
}
|
|
237
|
-
var Qe =
|
|
237
|
+
var Qe = _('<div class="absolute inset-0 bg-surface/50 rounded-lg flex items-center justify-center" aria-hidden="true"><div class="animate-spin rounded-full h-6 w-6 border-2 border-tertiary border-t-transparent"></div></div>'), $e = _('<div><div class="card-header svelte-1qx5g6b"><!></div> <div class="card-content svelte-1qx5g6b"><!></div> <div class="card-footer svelte-1qx5g6b"><!></div> <!></div>');
|
|
238
238
|
const et = {
|
|
239
239
|
hash: "svelte-1qx5g6b",
|
|
240
240
|
code: ".card-header.svelte-1qx5g6b:empty {display:none;}.card-content.svelte-1qx5g6b:empty {display:none;}.card-footer.svelte-1qx5g6b:empty {display:none;}"
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function Ot(K, t) {
|
|
243
243
|
he(t, !1), Te(K, et);
|
|
244
|
-
const y =
|
|
245
|
-
let
|
|
246
|
-
const
|
|
244
|
+
const y = Y(), w = Y();
|
|
245
|
+
let j = m(t, "variant", 8, "default"), u = m(t, "density", 8, "comfortable"), L = m(t, "disabled", 8, !1), B = m(t, "loading", 8, !1), F = m(t, "className", 8, ""), q = m(t, "ariaLabel", 8, ""), T = m(t, "ariaDescribedBy", 8, "");
|
|
246
|
+
const k = Pe(), P = {
|
|
247
247
|
compact: "p-3 sm:p-4 rounded-md shadow-sm",
|
|
248
248
|
comfortable: "p-4 sm:p-6 rounded-lg shadow-sm sm:shadow-md",
|
|
249
249
|
spacious: "p-6 sm:p-8 rounded-xl shadow-md sm:shadow-lg"
|
|
250
|
-
},
|
|
250
|
+
}, D = {
|
|
251
251
|
default: "bg-card border border-primary",
|
|
252
|
-
|
|
252
|
+
outlined: "bg-card border-2 border-primary",
|
|
253
|
+
elevated: "bg-card border border-primary shadow-lg",
|
|
254
|
+
filled: "bg-surface-secondary border border-primary"
|
|
253
255
|
};
|
|
254
|
-
function d(
|
|
255
|
-
if (
|
|
256
|
-
|
|
256
|
+
function d(b) {
|
|
257
|
+
if (L() || B()) {
|
|
258
|
+
b.preventDefault();
|
|
257
259
|
return;
|
|
258
260
|
}
|
|
259
|
-
|
|
261
|
+
k("click", b);
|
|
260
262
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
263
|
-
if (_() === "interactive" && (x.key === "Enter" || x.key === " ")) {
|
|
264
|
-
x.preventDefault();
|
|
265
|
-
const p = new MouseEvent("click", { bubbles: !0, cancelable: !0, clientX: 0, clientY: 0 });
|
|
266
|
-
d(p);
|
|
267
|
-
}
|
|
268
|
-
x.key === "Escape" && x.target.blur();
|
|
269
|
-
}
|
|
263
|
+
function E(b) {
|
|
264
|
+
L() || B() || b.key === "Escape" && b.target.blur();
|
|
270
265
|
}
|
|
271
|
-
function M(
|
|
272
|
-
!
|
|
266
|
+
function M(b) {
|
|
267
|
+
!L() && !B() && k("focus", b);
|
|
273
268
|
}
|
|
274
|
-
function Q(
|
|
275
|
-
!
|
|
269
|
+
function Q(b) {
|
|
270
|
+
!L() && !B() && k("blur", b);
|
|
276
271
|
}
|
|
277
|
-
function A(
|
|
278
|
-
!
|
|
272
|
+
function A(b) {
|
|
273
|
+
!L() && !B() && k("hover", b);
|
|
279
274
|
}
|
|
280
|
-
function f(
|
|
281
|
-
!
|
|
275
|
+
function f(b) {
|
|
276
|
+
!L() && !B() && k("leave", b);
|
|
282
277
|
}
|
|
283
278
|
ie(
|
|
284
|
-
() => (C(
|
|
279
|
+
() => (C(j()), C(u()), C(L()), C(B()), C(F())),
|
|
285
280
|
() => {
|
|
286
|
-
|
|
281
|
+
O(y, [
|
|
287
282
|
"transition-all duration-200",
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
283
|
+
D[j()],
|
|
284
|
+
P[u()],
|
|
285
|
+
L() ? "opacity-50 cursor-not-allowed" : "",
|
|
286
|
+
B() ? "animate-pulse" : "",
|
|
292
287
|
F()
|
|
293
288
|
].filter(Boolean).join(" "));
|
|
294
289
|
}
|
|
295
290
|
), ie(
|
|
296
|
-
() => (C(
|
|
291
|
+
() => (C(B()), C(q()), C(T())),
|
|
297
292
|
() => {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
tabindex: _() === "interactive" ? T() ? -1 : 0 : void 0,
|
|
301
|
-
"aria-disabled": _() === "interactive" ? T() : void 0,
|
|
302
|
-
"aria-busy": L(),
|
|
293
|
+
O(w, {
|
|
294
|
+
"aria-busy": B(),
|
|
303
295
|
"aria-label": q() || void 0,
|
|
304
|
-
"aria-describedby":
|
|
296
|
+
"aria-describedby": T() || void 0
|
|
305
297
|
});
|
|
306
298
|
}
|
|
307
299
|
), ze(), we();
|
|
308
300
|
var N = $e();
|
|
309
301
|
Fe(N, () => ({ class: e(y), ...e(w) }), void 0, void 0, "svelte-1qx5g6b");
|
|
310
|
-
var te = a(N),
|
|
311
|
-
ne(
|
|
312
|
-
var
|
|
313
|
-
ne(
|
|
314
|
-
var
|
|
302
|
+
var te = a(N), z = a(te);
|
|
303
|
+
ne(z, t, "header", {}, null);
|
|
304
|
+
var x = i(te, 2), I = a(x);
|
|
305
|
+
ne(I, t, "default", {}, null);
|
|
306
|
+
var V = i(x, 2), $ = a(V);
|
|
315
307
|
ne($, t, "footer", {}, null);
|
|
316
|
-
var ee = i(
|
|
308
|
+
var ee = i(V, 2);
|
|
317
309
|
{
|
|
318
|
-
var U = (
|
|
319
|
-
var
|
|
320
|
-
r(
|
|
310
|
+
var U = (b) => {
|
|
311
|
+
var h = Qe();
|
|
312
|
+
r(b, h);
|
|
321
313
|
};
|
|
322
|
-
|
|
323
|
-
|
|
314
|
+
H(ee, (b) => {
|
|
315
|
+
B() && b(U);
|
|
324
316
|
});
|
|
325
317
|
}
|
|
326
|
-
R("click", N, d), R("mouseenter", N, A), R("mouseleave", N, f), R("keydown", N,
|
|
318
|
+
R("click", N, d), R("mouseenter", N, A), R("mouseleave", N, f), R("keydown", N, E), R("focus", N, M), R("blur", N, Q), r(K, N), pe();
|
|
327
319
|
}
|
|
328
|
-
var tt =
|
|
329
|
-
function
|
|
320
|
+
var tt = _("<h1><!></h1>"), at = _("<h2><!></h2>"), st = _("<h3><!></h3>"), rt = _("<h4><!></h4>"), it = _("<h5><!></h5>"), nt = _("<h6><!></h6>");
|
|
321
|
+
function Vt(K, t) {
|
|
330
322
|
he(t, !1);
|
|
331
|
-
const y =
|
|
332
|
-
let w =
|
|
333
|
-
const
|
|
323
|
+
const y = Y();
|
|
324
|
+
let w = m(t, "level", 8, 1), j = m(t, "text", 8, ""), u = m(t, "color", 8, "text-white"), L = m(t, "spacing", 8, "normal");
|
|
325
|
+
const B = {
|
|
334
326
|
1: "!text-6xl md:!text-7xl font-bold leading-tight block",
|
|
335
327
|
2: "!text-4xl md:!text-5xl font-bold leading-tight block",
|
|
336
328
|
3: "!text-3xl md:!text-4xl font-semibold leading-snug block",
|
|
@@ -364,186 +356,186 @@ function Ot(K, t) {
|
|
|
364
356
|
}
|
|
365
357
|
};
|
|
366
358
|
ie(
|
|
367
|
-
() => (C(w()), C(
|
|
359
|
+
() => (C(w()), C(u()), C(L())),
|
|
368
360
|
() => {
|
|
369
|
-
|
|
361
|
+
O(y, `${B[w()]} font-title ${u()} ${F[L()][w()]}`);
|
|
370
362
|
}
|
|
371
363
|
), ze();
|
|
372
|
-
var q = ge(),
|
|
364
|
+
var q = ge(), T = me(q);
|
|
373
365
|
{
|
|
374
|
-
var
|
|
375
|
-
var d = tt(),
|
|
376
|
-
ne(
|
|
366
|
+
var k = (D) => {
|
|
367
|
+
var d = tt(), E = a(d);
|
|
368
|
+
ne(E, t, "default", {}, (M) => {
|
|
377
369
|
var Q = ye();
|
|
378
|
-
|
|
379
|
-
}),
|
|
380
|
-
},
|
|
381
|
-
var d = ge(),
|
|
370
|
+
p(() => W(Q, j())), r(M, Q);
|
|
371
|
+
}), p(() => S(d, 1, oe(e(y)))), r(D, d);
|
|
372
|
+
}, P = (D) => {
|
|
373
|
+
var d = ge(), E = me(d);
|
|
382
374
|
{
|
|
383
375
|
var M = (A) => {
|
|
384
376
|
var f = at(), N = a(f);
|
|
385
377
|
ne(N, t, "default", {}, (te) => {
|
|
386
|
-
var
|
|
387
|
-
|
|
388
|
-
}),
|
|
378
|
+
var z = ye();
|
|
379
|
+
p(() => W(z, j())), r(te, z);
|
|
380
|
+
}), p(() => S(f, 1, oe(e(y)))), r(A, f);
|
|
389
381
|
}, Q = (A) => {
|
|
390
|
-
var f = ge(), N =
|
|
382
|
+
var f = ge(), N = me(f);
|
|
391
383
|
{
|
|
392
|
-
var te = (
|
|
393
|
-
var
|
|
394
|
-
ne(
|
|
384
|
+
var te = (x) => {
|
|
385
|
+
var I = st(), V = a(I);
|
|
386
|
+
ne(V, t, "default", {}, ($) => {
|
|
395
387
|
var ee = ye();
|
|
396
|
-
|
|
397
|
-
}),
|
|
398
|
-
},
|
|
399
|
-
var
|
|
388
|
+
p(() => W(ee, j())), r($, ee);
|
|
389
|
+
}), p(() => S(I, 1, oe(e(y)))), r(x, I);
|
|
390
|
+
}, z = (x) => {
|
|
391
|
+
var I = ge(), V = me(I);
|
|
400
392
|
{
|
|
401
393
|
var $ = (U) => {
|
|
402
|
-
var
|
|
403
|
-
ne(
|
|
394
|
+
var b = rt(), h = a(b);
|
|
395
|
+
ne(h, t, "default", {}, (c) => {
|
|
404
396
|
var s = ye();
|
|
405
|
-
|
|
406
|
-
}),
|
|
397
|
+
p(() => W(s, j())), r(c, s);
|
|
398
|
+
}), p(() => S(b, 1, oe(e(y)))), r(U, b);
|
|
407
399
|
}, ee = (U) => {
|
|
408
|
-
var
|
|
400
|
+
var b = ge(), h = me(b);
|
|
409
401
|
{
|
|
410
402
|
var c = (n) => {
|
|
411
403
|
var o = it(), v = a(o);
|
|
412
|
-
ne(v, t, "default", {}, (
|
|
404
|
+
ne(v, t, "default", {}, (Z) => {
|
|
413
405
|
var re = ye();
|
|
414
|
-
|
|
415
|
-
}),
|
|
406
|
+
p(() => W(re, j())), r(Z, re);
|
|
407
|
+
}), p(() => S(o, 1, oe(e(y)))), r(n, o);
|
|
416
408
|
}, s = (n) => {
|
|
417
|
-
var o = ge(), v =
|
|
409
|
+
var o = ge(), v = me(o);
|
|
418
410
|
{
|
|
419
|
-
var
|
|
411
|
+
var Z = (re) => {
|
|
420
412
|
var de = nt(), be = a(de);
|
|
421
413
|
ne(be, t, "default", {}, (_e) => {
|
|
422
414
|
var le = ye();
|
|
423
|
-
|
|
424
|
-
}),
|
|
415
|
+
p(() => W(le, j())), r(_e, le);
|
|
416
|
+
}), p(() => S(de, 1, oe(e(y)))), r(re, de);
|
|
425
417
|
};
|
|
426
|
-
|
|
418
|
+
H(
|
|
427
419
|
v,
|
|
428
420
|
(re) => {
|
|
429
|
-
w() === 6 && re(
|
|
421
|
+
w() === 6 && re(Z);
|
|
430
422
|
},
|
|
431
423
|
!0
|
|
432
424
|
);
|
|
433
425
|
}
|
|
434
426
|
r(n, o);
|
|
435
427
|
};
|
|
436
|
-
|
|
437
|
-
|
|
428
|
+
H(
|
|
429
|
+
h,
|
|
438
430
|
(n) => {
|
|
439
431
|
w() === 5 ? n(c) : n(s, !1);
|
|
440
432
|
},
|
|
441
433
|
!0
|
|
442
434
|
);
|
|
443
435
|
}
|
|
444
|
-
r(U,
|
|
436
|
+
r(U, b);
|
|
445
437
|
};
|
|
446
|
-
|
|
447
|
-
|
|
438
|
+
H(
|
|
439
|
+
V,
|
|
448
440
|
(U) => {
|
|
449
441
|
w() === 4 ? U($) : U(ee, !1);
|
|
450
442
|
},
|
|
451
443
|
!0
|
|
452
444
|
);
|
|
453
445
|
}
|
|
454
|
-
r(
|
|
446
|
+
r(x, I);
|
|
455
447
|
};
|
|
456
|
-
|
|
448
|
+
H(
|
|
457
449
|
N,
|
|
458
|
-
(
|
|
459
|
-
w() === 3 ?
|
|
450
|
+
(x) => {
|
|
451
|
+
w() === 3 ? x(te) : x(z, !1);
|
|
460
452
|
},
|
|
461
453
|
!0
|
|
462
454
|
);
|
|
463
455
|
}
|
|
464
456
|
r(A, f);
|
|
465
457
|
};
|
|
466
|
-
|
|
467
|
-
|
|
458
|
+
H(
|
|
459
|
+
E,
|
|
468
460
|
(A) => {
|
|
469
461
|
w() === 2 ? A(M) : A(Q, !1);
|
|
470
462
|
},
|
|
471
463
|
!0
|
|
472
464
|
);
|
|
473
465
|
}
|
|
474
|
-
r(
|
|
466
|
+
r(D, d);
|
|
475
467
|
};
|
|
476
|
-
|
|
477
|
-
w() === 1 ?
|
|
468
|
+
H(T, (D) => {
|
|
469
|
+
w() === 1 ? D(k) : D(P, !1);
|
|
478
470
|
});
|
|
479
471
|
}
|
|
480
472
|
r(K, q), pe();
|
|
481
473
|
}
|
|
482
|
-
var lt =
|
|
474
|
+
var lt = _('<img alt="" class="absolute inset-0 w-full h-full object-cover animate-pulse"/>'), ot = _('<img class="w-full h-full object-cover transition-opacity duration-300"/>'), dt = _('<div class="absolute inset-0 bg-gray-200 flex items-center justify-center text-gray-500"><svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l2.586-2.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg></div>'), ct = _("<div><!> <!> <!></div>");
|
|
483
475
|
function Xt(K, t) {
|
|
484
476
|
he(t, !1);
|
|
485
|
-
let y =
|
|
486
|
-
|
|
487
|
-
if (
|
|
488
|
-
const
|
|
489
|
-
(
|
|
490
|
-
|
|
491
|
-
|
|
477
|
+
let y = m(t, "src", 8), w = m(t, "alt", 8, ""), j = m(t, "width", 8, "100%"), u = m(t, "height", 8, "auto"), L = m(t, "loading", 8, "lazy"), B = m(t, "className", 8, ""), F = m(t, "placeholder", 8, "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjNmNGY2Ii8+PC9zdmc+"), q = Y(!1), T = Y(!1), k = Y(!1), P = Y();
|
|
478
|
+
Be(() => {
|
|
479
|
+
if (L() === "lazy") {
|
|
480
|
+
const z = new IntersectionObserver(
|
|
481
|
+
(x) => {
|
|
482
|
+
x.forEach((I) => {
|
|
483
|
+
I.isIntersecting && (O(k, !0), z.unobserve(I.target));
|
|
492
484
|
});
|
|
493
485
|
},
|
|
494
486
|
{ rootMargin: "50px" }
|
|
495
487
|
);
|
|
496
|
-
return e(
|
|
488
|
+
return e(P) && z.observe(e(P)), () => z.disconnect();
|
|
497
489
|
} else
|
|
498
|
-
|
|
490
|
+
O(k, !0);
|
|
499
491
|
});
|
|
500
|
-
function
|
|
501
|
-
|
|
492
|
+
function D() {
|
|
493
|
+
O(q, !0);
|
|
502
494
|
}
|
|
503
495
|
function d() {
|
|
504
|
-
|
|
496
|
+
O(T, !0), console.warn("Failed to load image:", y());
|
|
505
497
|
}
|
|
506
498
|
we();
|
|
507
|
-
var
|
|
499
|
+
var E = ct(), M = a(E);
|
|
508
500
|
{
|
|
509
|
-
var Q = (
|
|
510
|
-
var
|
|
511
|
-
|
|
501
|
+
var Q = (z) => {
|
|
502
|
+
var x = lt();
|
|
503
|
+
p(() => J(x, "src", F())), r(z, x);
|
|
512
504
|
};
|
|
513
|
-
|
|
514
|
-
!e(q) && !e(
|
|
505
|
+
H(M, (z) => {
|
|
506
|
+
!e(q) && !e(T) && z(Q);
|
|
515
507
|
});
|
|
516
508
|
}
|
|
517
509
|
var A = i(M, 2);
|
|
518
510
|
{
|
|
519
|
-
var f = (
|
|
520
|
-
var
|
|
521
|
-
|
|
522
|
-
J(
|
|
523
|
-
}), R("load",
|
|
511
|
+
var f = (z) => {
|
|
512
|
+
var x = ot();
|
|
513
|
+
p(() => {
|
|
514
|
+
J(x, "src", y()), J(x, "alt", w()), J(x, "loading", L()), ke(x, `opacity: ${e(q) ? 1 : 0};`);
|
|
515
|
+
}), R("load", x, D), R("error", x, d), r(z, x);
|
|
524
516
|
};
|
|
525
|
-
|
|
526
|
-
e(
|
|
517
|
+
H(A, (z) => {
|
|
518
|
+
e(k) && !e(T) && z(f);
|
|
527
519
|
});
|
|
528
520
|
}
|
|
529
521
|
var N = i(A, 2);
|
|
530
522
|
{
|
|
531
|
-
var te = (
|
|
532
|
-
var
|
|
533
|
-
r(
|
|
523
|
+
var te = (z) => {
|
|
524
|
+
var x = dt();
|
|
525
|
+
r(z, x);
|
|
534
526
|
};
|
|
535
|
-
|
|
536
|
-
e(
|
|
527
|
+
H(N, (z) => {
|
|
528
|
+
e(T) && z(te);
|
|
537
529
|
});
|
|
538
530
|
}
|
|
539
|
-
je(
|
|
540
|
-
|
|
541
|
-
}), r(K,
|
|
531
|
+
je(E, (z) => O(P, z), () => e(P)), p(() => {
|
|
532
|
+
S(E, 1, `relative overflow-hidden ${B() ?? ""}`), ke(E, `width: ${(typeof j() == "number" ? j() + "px" : j()) ?? ""}; height: ${(typeof u() == "number" ? u() + "px" : u()) ?? ""};`);
|
|
533
|
+
}), r(K, E), pe();
|
|
542
534
|
}
|
|
543
|
-
var vt =
|
|
544
|
-
function
|
|
535
|
+
var vt = _('<div class="fixed bottom-4 left-4 bg-black/80 text-white p-4 rounded-lg text-xs font-mono z-50 max-w-xs"><div class="flex items-center justify-between mb-2"><h3 class="font-bold"> </h3> <button class="text-gray-400 hover:text-white">×</button></div> <div class="space-y-1"><div> </div> <div> </div> <div> </div> <div> </div> <div class="pt-1 border-t border-gray-600"><div class="font-semibold"> </div></div></div></div>');
|
|
536
|
+
function Zt(K, t) {
|
|
545
537
|
he(t, !1);
|
|
546
|
-
let y =
|
|
538
|
+
let y = m(t, "isVisible", 12, !1), w = m(t, "showInDev", 8, !0), j = m(t, "title", 8, "Debug Panel"), u = Y({
|
|
547
539
|
domContentLoaded: 0,
|
|
548
540
|
loadComplete: 0,
|
|
549
541
|
firstPaint: 0,
|
|
@@ -551,58 +543,58 @@ function Yt(K, t) {
|
|
|
551
543
|
largestContentfulPaint: 0,
|
|
552
544
|
cumulativeLayoutShift: 0
|
|
553
545
|
});
|
|
554
|
-
|
|
555
|
-
typeof window < "u" && "PerformanceObserver" in window && (new PerformanceObserver((
|
|
556
|
-
for (const
|
|
557
|
-
|
|
558
|
-
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((
|
|
559
|
-
for (const
|
|
560
|
-
|
|
561
|
-
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
}).observe({ entryTypes: ["largest-contentful-paint"] }), new PerformanceObserver((
|
|
565
|
-
for (const
|
|
566
|
-
|
|
546
|
+
Be(() => {
|
|
547
|
+
typeof window < "u" && "PerformanceObserver" in window && (new PerformanceObserver((k) => {
|
|
548
|
+
for (const P of k.getEntries())
|
|
549
|
+
P.name === "first-paint" && ue(u, e(u).firstPaint = P.startTime);
|
|
550
|
+
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((k) => {
|
|
551
|
+
for (const P of k.getEntries())
|
|
552
|
+
P.name === "first-contentful-paint" && ue(u, e(u).firstContentfulPaint = P.startTime);
|
|
553
|
+
}).observe({ entryTypes: ["paint"] }), new PerformanceObserver((k) => {
|
|
554
|
+
const P = k.getEntries(), D = P[P.length - 1];
|
|
555
|
+
ue(u, e(u).largestContentfulPaint = D.startTime);
|
|
556
|
+
}).observe({ entryTypes: ["largest-contentful-paint"] }), new PerformanceObserver((k) => {
|
|
557
|
+
for (const P of k.getEntries())
|
|
558
|
+
P.hadRecentInput || ue(u, e(u).cumulativeLayoutShift += P.value);
|
|
567
559
|
}).observe({ entryTypes: ["layout-shift"] })), window.addEventListener("DOMContentLoaded", () => {
|
|
568
|
-
|
|
560
|
+
ue(u, e(u).domContentLoaded = performance.now());
|
|
569
561
|
}), window.addEventListener("load", () => {
|
|
570
|
-
|
|
562
|
+
ue(u, e(u).loadComplete = performance.now());
|
|
571
563
|
}), w();
|
|
572
564
|
});
|
|
573
|
-
function
|
|
574
|
-
return `${Math.round(
|
|
565
|
+
function L(k) {
|
|
566
|
+
return `${Math.round(k)}ms`;
|
|
575
567
|
}
|
|
576
|
-
function
|
|
577
|
-
const
|
|
568
|
+
function B() {
|
|
569
|
+
const k = e(u).firstContentfulPaint, P = e(u).largestContentfulPaint, D = e(u).cumulativeLayoutShift;
|
|
578
570
|
let d = 100;
|
|
579
|
-
return
|
|
571
|
+
return k > 1800 && (d -= 20), P > 2500 && (d -= 30), D > 0.1 && (d -= 25), e(u).loadComplete > 3e3 && (d -= 25), d >= 90 ? "🟢 Excellent" : d >= 70 ? "🟡 Good" : d >= 50 ? "🟠 Needs Improvement" : "🔴 Poor";
|
|
580
572
|
}
|
|
581
573
|
we();
|
|
582
|
-
var F = ge(), q =
|
|
574
|
+
var F = ge(), q = me(F);
|
|
583
575
|
{
|
|
584
|
-
var
|
|
585
|
-
var
|
|
586
|
-
|
|
587
|
-
(
|
|
588
|
-
|
|
576
|
+
var T = (k) => {
|
|
577
|
+
var P = vt(), D = a(P), d = a(D), E = a(d), M = i(d, 2), Q = i(D, 2), A = a(Q), f = a(A), N = i(A, 2), te = a(N), z = i(N, 2), x = a(z), I = i(z, 2), V = a(I), $ = i(I, 2), ee = a($), U = a(ee);
|
|
578
|
+
p(
|
|
579
|
+
(b, h, c, s, n) => {
|
|
580
|
+
W(E, j()), W(f, `FCP: ${b ?? ""}`), W(te, `LCP: ${h ?? ""}`), W(x, `CLS: ${c ?? ""}`), W(V, `Load: ${s ?? ""}`), W(U, n);
|
|
589
581
|
},
|
|
590
582
|
[
|
|
591
|
-
() => (e(
|
|
592
|
-
() => (e(
|
|
593
|
-
() => (e(
|
|
594
|
-
() => (e(
|
|
595
|
-
() => X(
|
|
583
|
+
() => (e(u), X(() => L(e(u).firstContentfulPaint))),
|
|
584
|
+
() => (e(u), X(() => L(e(u).largestContentfulPaint))),
|
|
585
|
+
() => (e(u), X(() => e(u).cumulativeLayoutShift.toFixed(3))),
|
|
586
|
+
() => (e(u), X(() => L(e(u).loadComplete))),
|
|
587
|
+
() => X(B)
|
|
596
588
|
]
|
|
597
|
-
), R("click", M, () => y(!1)), r(
|
|
589
|
+
), R("click", M, () => y(!1)), r(k, P);
|
|
598
590
|
};
|
|
599
|
-
|
|
600
|
-
y() &&
|
|
591
|
+
H(q, (k) => {
|
|
592
|
+
y() && k(T);
|
|
601
593
|
});
|
|
602
594
|
}
|
|
603
595
|
r(K, F), pe();
|
|
604
596
|
}
|
|
605
|
-
var
|
|
597
|
+
var mt = _('<span class="text-sm text-secondary svelte-1nnpss"> </span>'), ut = _('<div class="flex justify-between items-center mb-2 svelte-1nnpss"><label class="text-sm font-medium text-primary svelte-1nnpss"> </label> <!></div>'), ft = _('<div class="absolute inset-0 flex items-center justify-center svelte-1nnpss"><span class="text-xs font-medium text-white svelte-1nnpss"> </span></div>'), gt = _('<div class="relative svelte-1nnpss"><div><div role="progressbar" aria-valuemin="0"></div></div> <!></div>'), xt = _("<span> </span>"), bt = _('<div class="relative inline-block svelte-1nnpss"><svg viewBox="0 0 44 44" role="progressbar" aria-valuemin="0"><circle cx="22" cy="22" r="20" stroke="currentColor" stroke-width="4" fill="none" class="text-neutral-200 dark:text-neutral-700 svelte-1nnpss"></circle><circle cx="22" cy="22" r="20" stroke="currentColor" stroke-width="4" fill="none" stroke-linecap="round"></circle></svg> <div class="absolute inset-0 flex items-center justify-center svelte-1nnpss"><!></div></div>'), pt = _("<div><!> <!> <!></div>");
|
|
606
598
|
const ht = {
|
|
607
599
|
hash: "svelte-1nnpss",
|
|
608
600
|
code: `
|
|
@@ -647,8 +639,8 @@ const ht = {
|
|
|
647
639
|
};
|
|
648
640
|
function Gt(K, t) {
|
|
649
641
|
he(t, !1), Te(K, ht);
|
|
650
|
-
const y =
|
|
651
|
-
let
|
|
642
|
+
const y = Y(), w = Y(), j = Y(), u = Y(), L = Y();
|
|
643
|
+
let B = m(t, "value", 8, 0), F = m(t, "max", 8, 100), q = m(t, "size", 8, "md"), T = m(t, "variant", 8, "default"), k = m(t, "shape", 8, "linear"), P = m(t, "animated", 8, !0), D = m(t, "striped", 8, !1), d = m(t, "showValue", 8, !1), E = m(t, "label", 8, ""), M = m(t, "className", 8, "");
|
|
652
644
|
const Q = Pe();
|
|
653
645
|
let A = `progress-${Math.random().toString(36).substr(2, 9)}`;
|
|
654
646
|
const f = {
|
|
@@ -668,98 +660,98 @@ function Gt(K, t) {
|
|
|
668
660
|
error: "bg-error-surface",
|
|
669
661
|
info: "bg-info-surface"
|
|
670
662
|
};
|
|
671
|
-
ie(() => (C(
|
|
672
|
-
|
|
663
|
+
ie(() => (C(B()), C(F())), () => {
|
|
664
|
+
O(y, Math.min(Math.max(B() / F() * 100, 0), 100));
|
|
673
665
|
}), ie(() => e(y), () => {
|
|
674
|
-
|
|
666
|
+
O(w, e(y) >= 100);
|
|
675
667
|
}), ie(
|
|
676
|
-
() => (e(w), C(
|
|
668
|
+
() => (e(w), C(B()), C(F())),
|
|
677
669
|
() => {
|
|
678
|
-
e(w) && Q("complete", { value:
|
|
670
|
+
e(w) && Q("complete", { value: B(), max: F() });
|
|
679
671
|
}
|
|
680
|
-
), ie(() => C(
|
|
681
|
-
|
|
682
|
-
}), ie(() => e(
|
|
683
|
-
|
|
684
|
-
}), ie(() => (e(
|
|
685
|
-
|
|
672
|
+
), ie(() => C(k()), () => {
|
|
673
|
+
O(j, k() === "circular" ? 2 * Math.PI * 20 : 0);
|
|
674
|
+
}), ie(() => e(j), () => {
|
|
675
|
+
O(u, e(j));
|
|
676
|
+
}), ie(() => (e(j), e(y)), () => {
|
|
677
|
+
O(L, e(j) - e(y) / 100 * e(j));
|
|
686
678
|
}), ze(), we();
|
|
687
|
-
var
|
|
679
|
+
var z = pt(), x = a(z);
|
|
688
680
|
{
|
|
689
|
-
var
|
|
690
|
-
var
|
|
681
|
+
var I = (b) => {
|
|
682
|
+
var h = ut(), c = a(h), s = a(c), n = i(c, 2);
|
|
691
683
|
{
|
|
692
684
|
var o = (v) => {
|
|
693
|
-
var
|
|
694
|
-
|
|
685
|
+
var Z = mt(), re = a(Z);
|
|
686
|
+
p((de) => W(re, `${de ?? ""}%`), [
|
|
695
687
|
() => (e(y), X(() => Math.round(e(y))))
|
|
696
|
-
]), r(v,
|
|
688
|
+
]), r(v, Z);
|
|
697
689
|
};
|
|
698
|
-
|
|
690
|
+
H(n, (v) => {
|
|
699
691
|
d() && v(o);
|
|
700
692
|
});
|
|
701
693
|
}
|
|
702
|
-
|
|
703
|
-
J(c, "for", A),
|
|
704
|
-
}), r(
|
|
694
|
+
p(() => {
|
|
695
|
+
J(c, "for", A), W(s, E());
|
|
696
|
+
}), r(b, h);
|
|
705
697
|
};
|
|
706
|
-
|
|
707
|
-
|
|
698
|
+
H(x, (b) => {
|
|
699
|
+
E() && b(I);
|
|
708
700
|
});
|
|
709
701
|
}
|
|
710
|
-
var
|
|
702
|
+
var V = i(x, 2);
|
|
711
703
|
{
|
|
712
|
-
var $ = (
|
|
713
|
-
var
|
|
704
|
+
var $ = (b) => {
|
|
705
|
+
var h = gt(), c = a(h), s = a(c), n = i(c, 2);
|
|
714
706
|
{
|
|
715
707
|
var o = (v) => {
|
|
716
|
-
var
|
|
717
|
-
|
|
708
|
+
var Z = ft(), re = a(Z), de = a(re);
|
|
709
|
+
p((be) => W(de, `${be ?? ""}%`), [
|
|
718
710
|
() => (e(y), X(() => Math.round(e(y))))
|
|
719
|
-
]), r(v,
|
|
711
|
+
]), r(v, Z);
|
|
720
712
|
};
|
|
721
|
-
|
|
713
|
+
H(n, (v) => {
|
|
722
714
|
d() && q() === "lg" && v(o);
|
|
723
715
|
});
|
|
724
716
|
}
|
|
725
|
-
|
|
717
|
+
p(
|
|
726
718
|
(v) => {
|
|
727
|
-
|
|
719
|
+
S(
|
|
728
720
|
c,
|
|
729
721
|
1,
|
|
730
722
|
`
|
|
731
723
|
w-full rounded-full overflow-hidden
|
|
732
724
|
${C(q()), X(() => f[q()].linear) ?? ""}
|
|
733
|
-
${C(
|
|
725
|
+
${C(T()), X(() => te[T()]) ?? ""}
|
|
734
726
|
`,
|
|
735
727
|
"svelte-1nnpss"
|
|
736
|
-
), J(s, "id", A),
|
|
728
|
+
), J(s, "id", A), S(
|
|
737
729
|
s,
|
|
738
730
|
1,
|
|
739
731
|
`
|
|
740
732
|
h-full rounded-full transition-all duration-300 ease-out
|
|
741
|
-
${C(
|
|
742
|
-
${
|
|
743
|
-
${
|
|
733
|
+
${C(T()), X(() => N[T()]) ?? ""}
|
|
734
|
+
${P() ? "animate-pulse" : ""}
|
|
735
|
+
${D() ? "bg-stripes" : ""}
|
|
744
736
|
`,
|
|
745
737
|
"svelte-1nnpss"
|
|
746
|
-
), ke(s, `width: ${e(y) ?? ""}%`), J(s, "aria-valuenow",
|
|
738
|
+
), ke(s, `width: ${e(y) ?? ""}%`), J(s, "aria-valuenow", B()), J(s, "aria-valuemax", F()), J(s, "aria-label", v);
|
|
747
739
|
},
|
|
748
740
|
[
|
|
749
|
-
() => (C(
|
|
741
|
+
() => (C(E()), e(y), X(() => E() || `Progress: ${Math.round(e(y))}%`))
|
|
750
742
|
]
|
|
751
|
-
), r(
|
|
752
|
-
}, ee = (
|
|
753
|
-
var
|
|
743
|
+
), r(b, h);
|
|
744
|
+
}, ee = (b) => {
|
|
745
|
+
var h = ge(), c = me(h);
|
|
754
746
|
{
|
|
755
747
|
var s = (n) => {
|
|
756
|
-
var o = bt(), v = a(o),
|
|
748
|
+
var o = bt(), v = a(o), Z = i(a(v)), re = i(v, 2), de = a(re);
|
|
757
749
|
{
|
|
758
750
|
var be = (le) => {
|
|
759
751
|
var xe = xt(), l = a(xe);
|
|
760
|
-
|
|
752
|
+
p(
|
|
761
753
|
(g) => {
|
|
762
|
-
|
|
754
|
+
S(
|
|
763
755
|
xe,
|
|
764
756
|
1,
|
|
765
757
|
`
|
|
@@ -767,101 +759,101 @@ function Gt(K, t) {
|
|
|
767
759
|
${C(q()), X(() => f[q()].text) ?? ""}
|
|
768
760
|
`,
|
|
769
761
|
"svelte-1nnpss"
|
|
770
|
-
),
|
|
762
|
+
), W(l, `${g ?? ""}%`);
|
|
771
763
|
},
|
|
772
764
|
[
|
|
773
765
|
() => (e(y), X(() => Math.round(e(y))))
|
|
774
766
|
]
|
|
775
767
|
), r(le, xe);
|
|
776
768
|
}, _e = (le) => {
|
|
777
|
-
var xe = ge(), l =
|
|
769
|
+
var xe = ge(), l = me(xe);
|
|
778
770
|
ne(l, t, "center", {}, null), r(le, xe);
|
|
779
771
|
};
|
|
780
|
-
|
|
772
|
+
H(de, (le) => {
|
|
781
773
|
d() ? le(be) : le(_e, !1);
|
|
782
774
|
});
|
|
783
775
|
}
|
|
784
|
-
|
|
776
|
+
p(
|
|
785
777
|
(le) => {
|
|
786
|
-
J(v, "id", A),
|
|
778
|
+
J(v, "id", A), S(
|
|
787
779
|
v,
|
|
788
780
|
0,
|
|
789
781
|
`transform -rotate-90 ${C(q()), X(() => f[q()].circular) ?? ""}`,
|
|
790
782
|
"svelte-1nnpss"
|
|
791
|
-
), J(v, "aria-valuenow",
|
|
792
|
-
|
|
783
|
+
), J(v, "aria-valuenow", B()), J(v, "aria-valuemax", F()), J(v, "aria-label", le), J(Z, "stroke-dasharray", e(u)), J(Z, "stroke-dashoffset", e(L)), S(
|
|
784
|
+
Z,
|
|
793
785
|
0,
|
|
794
786
|
`
|
|
795
787
|
transition-all duration-300 ease-out
|
|
796
|
-
${C(
|
|
797
|
-
${
|
|
788
|
+
${C(T()), X(() => N[T()]) ?? ""}
|
|
789
|
+
${P() ? "animate-pulse" : ""}
|
|
798
790
|
`,
|
|
799
791
|
"svelte-1nnpss"
|
|
800
792
|
);
|
|
801
793
|
},
|
|
802
794
|
[
|
|
803
|
-
() => (C(
|
|
795
|
+
() => (C(E()), e(y), X(() => E() || `Progress: ${Math.round(e(y))}%`))
|
|
804
796
|
]
|
|
805
797
|
), r(n, o);
|
|
806
798
|
};
|
|
807
|
-
|
|
799
|
+
H(
|
|
808
800
|
c,
|
|
809
801
|
(n) => {
|
|
810
|
-
|
|
802
|
+
k() === "circular" && n(s);
|
|
811
803
|
},
|
|
812
804
|
!0
|
|
813
805
|
);
|
|
814
806
|
}
|
|
815
|
-
r(
|
|
807
|
+
r(b, h);
|
|
816
808
|
};
|
|
817
|
-
|
|
818
|
-
|
|
809
|
+
H(V, (b) => {
|
|
810
|
+
k() === "linear" ? b($) : b(ee, !1);
|
|
819
811
|
});
|
|
820
812
|
}
|
|
821
|
-
var U = i(
|
|
822
|
-
ne(U, t, "default", {}, null),
|
|
813
|
+
var U = i(V, 2);
|
|
814
|
+
ne(U, t, "default", {}, null), p(() => S(z, 1, `progress-container ${M() ?? ""}`, "svelte-1nnpss")), r(K, z), pe();
|
|
823
815
|
}
|
|
824
|
-
var yt =
|
|
825
|
-
function
|
|
826
|
-
var t =
|
|
827
|
-
|
|
828
|
-
var
|
|
829
|
-
ce(
|
|
816
|
+
var yt = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), wt = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), _t = _('<div class="text-center"><div></div> <p class="text-xs text-tertiary"> </p></div>'), kt = _("<div></div>"), zt = _("<div></div>"), Ct = _("<div></div>"), jt = _('<div class="flex items-center space-x-4"><span class="text-tertiary text-sm w-12"> </span> <span> </span></div>'), Tt = _('<div class="flex items-center space-x-4"><span class="text-tertiary text-sm w-12"> </span> <span class="text-secondary text-sm w-20"> </span> <div></div></div>'), St = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Pt = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Lt = _('<div class="text-center space-y-2"><div></div> <p class="text-xs text-tertiary"> </p></div>'), Bt = _('<div class="min-h-screen bg-primary p-8"><div class="max-w-6xl mx-auto space-y-8"><div class="flex justify-between items-center mb-8"><div><h1 class="text-4xl font-bold text-primary mb-2">Tailwind Scale Demo</h1> <p class="text-lg text-secondary">Comprehensive scales supporting light and dark modes</p></div> <!></div> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Color Scales</h2> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Primary Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Secondary Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Neutral Scale</h3> <div class="grid grid-cols-11 gap-2"></div></div> <div class="space-y-3"><h3 class="text-xl font-medium text-primary">Semantic Colors</h3> <div class="grid grid-cols-3 gap-4"><div class="space-y-2"><h4 class="text-sm font-medium text-primary">Success</h4> <div class="grid grid-cols-5 gap-1"></div></div> <div class="space-y-2"><h4 class="text-sm font-medium text-primary">Warning</h4> <div class="grid grid-cols-5 gap-1"></div></div> <div class="space-y-2"><h4 class="text-sm font-medium text-primary">Error</h4> <div class="grid grid-cols-5 gap-1"></div></div></div></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Background & Surface Colors</h2> <div class="grid grid-cols-2 gap-6"><div class="space-y-4"><h3 class="text-xl font-medium text-primary">Background Colors</h3> <div class="space-y-3"><div class="bg-primary p-4 rounded-lg border border-primary"><p class="text-inverse font-medium">Primary Background</p> <p class="text-inverse text-sm opacity-80">bg-primary</p></div> <div class="bg-secondary p-4 rounded-lg border border-primary"><p class="text-primary font-medium">Secondary Background</p> <p class="text-secondary text-sm">bg-secondary</p></div> <div class="bg-tertiary p-4 rounded-lg border border-primary"><p class="text-primary font-medium">Tertiary Background</p> <p class="text-secondary text-sm">bg-tertiary</p></div></div></div> <div class="space-y-4"><h3 class="text-xl font-medium text-primary">Surface Colors</h3> <div class="space-y-3"><div class="bg-surface-primary p-4 rounded-lg border border-primary shadow-adaptive-sm"><p class="text-primary font-medium">Primary Surface</p> <p class="text-secondary text-sm">bg-surface-primary</p></div> <div class="bg-surface-secondary p-4 rounded-lg border border-primary shadow-adaptive-sm"><p class="text-primary font-medium">Secondary Surface</p> <p class="text-secondary text-sm">bg-surface-secondary</p></div> <div class="bg-surface-elevated p-4 rounded-lg border border-primary shadow-adaptive-md"><p class="text-primary font-medium">Elevated Surface</p> <p class="text-secondary text-sm">bg-surface-elevated</p></div></div></div></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Typography Scale</h2> <div class="space-y-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Spacing Scale</h2> <div class="space-y-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Border Radius Scale</h2> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Shadow Scale</h2> <div class="grid grid-cols-2 md:grid-cols-4 gap-6"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Animation Scale</h2> <div class="grid grid-cols-2 md:grid-cols-3 gap-4"></div></section> <section class="space-y-6"><h2 class="text-3xl font-semibold text-primary mb-4">Component Examples</h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"><div class="space-y-4"><h3 class="text-xl font-medium text-primary">Cards</h3> <div class="space-y-3"><div class="card p-4"><h4 class="text-lg font-medium text-primary mb-2">Standard Card</h4> <p class="text-secondary">This is a standard card with adaptive styling.</p></div> <div class="card-elevated p-4"><h4 class="text-lg font-medium text-primary mb-2">Elevated Card</h4> <p class="text-secondary">This is an elevated card with more shadow.</p></div></div></div> <div class="space-y-4"><h3 class="text-xl font-medium text-primary">Buttons</h3> <div class="space-y-3"><button class="button-primary">Primary Button</button> <button class="button-secondary">Secondary Button</button> <div class="flex space-x-2"><button class="px-3 py-1 text-sm bg-success-500 hover:bg-success-600 text-white rounded-md transition-colors">Success</button> <button class="px-3 py-1 text-sm bg-warning-500 hover:bg-warning-600 text-white rounded-md transition-colors">Warning</button> <button class="px-3 py-1 text-sm bg-error-500 hover:bg-error-600 text-white rounded-md transition-colors">Error</button></div></div></div></div></section></div></div>');
|
|
817
|
+
function Yt(K) {
|
|
818
|
+
var t = Bt(), y = a(t), w = a(y), j = i(a(w), 2);
|
|
819
|
+
We(j, { size: "lg", variant: "outline" });
|
|
820
|
+
var u = i(w, 2), L = i(a(u), 2), B = i(a(L), 2);
|
|
821
|
+
ce(B, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
|
|
830
822
|
var s = yt(), n = a(s), o = i(n, 2), v = a(o);
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
}), r(
|
|
823
|
+
p(() => {
|
|
824
|
+
S(n, 1, `w-16 h-16 rounded-lg bg-primary-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
825
|
+
}), r(h, s);
|
|
834
826
|
});
|
|
835
|
-
var F = i(
|
|
836
|
-
ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (
|
|
827
|
+
var F = i(L, 2), q = i(a(F), 2);
|
|
828
|
+
ce(q, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
|
|
837
829
|
var s = wt(), n = a(s), o = i(n, 2), v = a(o);
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}), r(
|
|
830
|
+
p(() => {
|
|
831
|
+
S(n, 1, `w-16 h-16 rounded-lg bg-secondary-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
832
|
+
}), r(h, s);
|
|
841
833
|
});
|
|
842
|
-
var
|
|
843
|
-
ce(
|
|
834
|
+
var T = i(F, 2), k = i(a(T), 2);
|
|
835
|
+
ce(k, 4, () => [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], ve, (h, c) => {
|
|
844
836
|
var s = _t(), n = a(s), o = i(n, 2), v = a(o);
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
}), r(
|
|
837
|
+
p(() => {
|
|
838
|
+
S(n, 1, `w-16 h-16 rounded-lg bg-neutral-${c ?? ""} border border-primary mb-2`), W(v, c);
|
|
839
|
+
}), r(h, s);
|
|
848
840
|
});
|
|
849
|
-
var
|
|
850
|
-
ce(
|
|
841
|
+
var P = i(T, 2), D = i(a(P), 2), d = a(D), E = i(a(d), 2);
|
|
842
|
+
ce(E, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
|
|
851
843
|
var s = kt();
|
|
852
|
-
|
|
844
|
+
p(() => S(s, 1, `w-8 h-8 rounded bg-success-${c ?? ""} border border-primary`)), r(h, s);
|
|
853
845
|
});
|
|
854
846
|
var M = i(d, 2), Q = i(a(M), 2);
|
|
855
|
-
ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (
|
|
847
|
+
ce(Q, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
|
|
856
848
|
var s = zt();
|
|
857
|
-
|
|
849
|
+
p(() => S(s, 1, `w-8 h-8 rounded bg-warning-${c ?? ""} border border-primary`)), r(h, s);
|
|
858
850
|
});
|
|
859
851
|
var A = i(M, 2), f = i(a(A), 2);
|
|
860
|
-
ce(f, 4, () => [400, 500, 600, 700, 800], ve, (
|
|
852
|
+
ce(f, 4, () => [400, 500, 600, 700, 800], ve, (h, c) => {
|
|
861
853
|
var s = Ct();
|
|
862
|
-
|
|
854
|
+
p(() => S(s, 1, `w-8 h-8 rounded bg-error-${c ?? ""} border border-primary`)), r(h, s);
|
|
863
855
|
});
|
|
864
|
-
var N = i(
|
|
856
|
+
var N = i(u, 4), te = i(a(N), 2);
|
|
865
857
|
ce(
|
|
866
858
|
te,
|
|
867
859
|
4,
|
|
@@ -879,16 +871,16 @@ function Zt(K) {
|
|
|
879
871
|
{ size: "6xl", text: "6X Large Text", class: "text-6xl" }
|
|
880
872
|
],
|
|
881
873
|
ve,
|
|
882
|
-
(
|
|
883
|
-
var s = jt(), n = a(s), o = a(n), v = i(n, 2),
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}), r(
|
|
874
|
+
(h, c) => {
|
|
875
|
+
var s = jt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v);
|
|
876
|
+
p(() => {
|
|
877
|
+
W(o, c.size), S(v, 1, `${c.class ?? ""} text-primary`), W(Z, c.text);
|
|
878
|
+
}), r(h, s);
|
|
887
879
|
}
|
|
888
880
|
);
|
|
889
|
-
var
|
|
881
|
+
var z = i(N, 2), x = i(a(z), 2);
|
|
890
882
|
ce(
|
|
891
|
-
|
|
883
|
+
x,
|
|
892
884
|
4,
|
|
893
885
|
() => [
|
|
894
886
|
{ size: "1", value: "0.25rem", class: "w-1" },
|
|
@@ -902,16 +894,16 @@ function Zt(K) {
|
|
|
902
894
|
{ size: "256", value: "64rem", class: "w-256" }
|
|
903
895
|
],
|
|
904
896
|
ve,
|
|
905
|
-
(
|
|
906
|
-
var s = Tt(), n = a(s), o = a(n), v = i(n, 2),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
}), r(
|
|
897
|
+
(h, c) => {
|
|
898
|
+
var s = Tt(), n = a(s), o = a(n), v = i(n, 2), Z = a(v), re = i(v, 2);
|
|
899
|
+
p(() => {
|
|
900
|
+
W(o, c.size), W(Z, c.value), S(re, 1, `${c.class ?? ""} h-4 bg-primary-500 rounded`);
|
|
901
|
+
}), r(h, s);
|
|
910
902
|
}
|
|
911
903
|
);
|
|
912
|
-
var
|
|
904
|
+
var I = i(z, 2), V = i(a(I), 2);
|
|
913
905
|
ce(
|
|
914
|
-
|
|
906
|
+
V,
|
|
915
907
|
4,
|
|
916
908
|
() => [
|
|
917
909
|
{ size: "none", class: "rounded-none" },
|
|
@@ -925,14 +917,14 @@ function Zt(K) {
|
|
|
925
917
|
{ size: "full", class: "rounded-full" }
|
|
926
918
|
],
|
|
927
919
|
ve,
|
|
928
|
-
(
|
|
920
|
+
(h, c) => {
|
|
929
921
|
var s = St(), n = a(s), o = i(n, 2), v = a(o);
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}), r(
|
|
922
|
+
p(() => {
|
|
923
|
+
S(n, 1, `w-16 h-16 bg-primary-500 ${c.class ?? ""} mx-auto`), W(v, c.size);
|
|
924
|
+
}), r(h, s);
|
|
933
925
|
}
|
|
934
926
|
);
|
|
935
|
-
var $ = i(
|
|
927
|
+
var $ = i(I, 2), ee = i(a($), 2);
|
|
936
928
|
ce(
|
|
937
929
|
ee,
|
|
938
930
|
4,
|
|
@@ -947,16 +939,16 @@ function Zt(K) {
|
|
|
947
939
|
{ name: "Adaptive", class: "shadow-adaptive-lg" }
|
|
948
940
|
],
|
|
949
941
|
ve,
|
|
950
|
-
(
|
|
942
|
+
(h, c) => {
|
|
951
943
|
var s = Pt(), n = a(s), o = i(n, 2), v = a(o);
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}), r(
|
|
944
|
+
p(() => {
|
|
945
|
+
S(n, 1, `w-20 h-20 bg-surface-primary border border-primary ${c.class ?? ""} mx-auto`), W(v, c.name);
|
|
946
|
+
}), r(h, s);
|
|
955
947
|
}
|
|
956
948
|
);
|
|
957
|
-
var U = i($, 2),
|
|
949
|
+
var U = i($, 2), b = i(a(U), 2);
|
|
958
950
|
ce(
|
|
959
|
-
|
|
951
|
+
b,
|
|
960
952
|
4,
|
|
961
953
|
() => [
|
|
962
954
|
{ name: "Fade In", class: "animate-fade-in" },
|
|
@@ -967,23 +959,23 @@ function Zt(K) {
|
|
|
967
959
|
{ name: "Pulse", class: "animate-pulse-slow" }
|
|
968
960
|
],
|
|
969
961
|
ve,
|
|
970
|
-
(
|
|
971
|
-
var s =
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}), r(
|
|
962
|
+
(h, c) => {
|
|
963
|
+
var s = Lt(), n = a(s), o = i(n, 2), v = a(o);
|
|
964
|
+
p(() => {
|
|
965
|
+
S(n, 1, `w-16 h-16 bg-primary-500 rounded-lg ${c.class ?? ""} mx-auto`), W(v, c.name);
|
|
966
|
+
}), r(h, s);
|
|
975
967
|
}
|
|
976
968
|
), r(K, t);
|
|
977
969
|
}
|
|
978
|
-
var
|
|
970
|
+
var Et = _("<div></div>");
|
|
979
971
|
function Ut(K, t) {
|
|
980
|
-
let y =
|
|
981
|
-
var
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}), r(K,
|
|
972
|
+
let y = m(t, "width", 8, "100%"), w = m(t, "height", 8, "1rem"), j = m(t, "borderRadius", 8, "0.5rem"), u = m(t, "className", 8, "");
|
|
973
|
+
var L = Et();
|
|
974
|
+
p(() => {
|
|
975
|
+
S(L, 1, `animate-pulse bg-stone-800 ${u() ?? ""}`), ke(L, `width: ${y() ?? ""}; height: ${w() ?? ""}; border-radius: ${j() ?? ""};`);
|
|
976
|
+
}), r(K, L);
|
|
985
977
|
}
|
|
986
|
-
var Mt =
|
|
978
|
+
var Mt = _('<button type="button" class="inline-block svelte-13nzt82"><!></button>'), It = _('<div role="button" tabindex="0" class="inline-block svelte-13nzt82"><!></div>'), Dt = _("<div></div>"), At = _('<div role="tooltip"><div class="relative svelte-13nzt82"> <!></div></div>'), Nt = _("<!> <!>", 1);
|
|
987
979
|
const Ft = {
|
|
988
980
|
hash: "svelte-13nzt82",
|
|
989
981
|
code: `
|
|
@@ -1019,9 +1011,9 @@ const Ft = {
|
|
|
1019
1011
|
};
|
|
1020
1012
|
function Jt(K, t) {
|
|
1021
1013
|
he(t, !1), Te(K, Ft);
|
|
1022
|
-
let y =
|
|
1023
|
-
const
|
|
1024
|
-
let d =
|
|
1014
|
+
let y = m(t, "content", 8, ""), w = m(t, "placement", 8, "top"), j = m(t, "trigger", 8, "hover"), u = m(t, "disabled", 8, !1), L = m(t, "delay", 8, 200), B = m(t, "maxWidth", 8, "200px"), F = m(t, "variant", 8, "default"), q = m(t, "size", 8, "md"), T = m(t, "arrow", 8, !0), k = m(t, "interactive", 8, !1), P = m(t, "className", 8, "");
|
|
1015
|
+
const D = Pe();
|
|
1016
|
+
let d = Y(), E = Y(), M = Y(!1), Q, A, f;
|
|
1025
1017
|
const N = {
|
|
1026
1018
|
sm: "px-2 py-1 text-xs",
|
|
1027
1019
|
md: "px-3 py-1.5 text-sm",
|
|
@@ -1035,9 +1027,9 @@ function Jt(K, t) {
|
|
|
1035
1027
|
warning: "bg-warning text-inverse border-warning shadow-adaptive-lg",
|
|
1036
1028
|
error: "bg-error text-inverse border-error shadow-adaptive-lg"
|
|
1037
1029
|
};
|
|
1038
|
-
function
|
|
1039
|
-
if (!e(
|
|
1040
|
-
f = e(
|
|
1030
|
+
function z() {
|
|
1031
|
+
if (!e(E) || !e(d)) return { top: 0, left: 0 };
|
|
1032
|
+
f = e(E).getBoundingClientRect();
|
|
1041
1033
|
const l = e(d).getBoundingClientRect(), g = window.scrollY, se = window.scrollX, fe = window.innerWidth, Ce = window.innerHeight;
|
|
1042
1034
|
let ae = 0, G = 0;
|
|
1043
1035
|
switch (w()) {
|
|
@@ -1080,79 +1072,79 @@ function Jt(K, t) {
|
|
|
1080
1072
|
}
|
|
1081
1073
|
return G < 8 && (G = 8), G + l.width > fe - 8 && (G = fe - l.width - 8), ae < 8 && (ae = 8), ae + l.height > Ce + g - 8 && (ae = Ce + g - l.height - 8), { top: ae, left: G };
|
|
1082
1074
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1075
|
+
function x(l) {
|
|
1076
|
+
u() || e(M) || (clearTimeout(A), Q = setTimeout(
|
|
1085
1077
|
() => {
|
|
1086
|
-
|
|
1087
|
-
const g =
|
|
1088
|
-
e(d) && (
|
|
1078
|
+
O(M, !0), D("show", l), requestAnimationFrame(() => {
|
|
1079
|
+
const g = z();
|
|
1080
|
+
e(d) && (ue(d, e(d).style.top = `${g.top}px`), ue(d, e(d).style.left = `${g.left}px`));
|
|
1089
1081
|
});
|
|
1090
1082
|
},
|
|
1091
|
-
|
|
1083
|
+
L()
|
|
1092
1084
|
));
|
|
1093
1085
|
}
|
|
1094
|
-
function
|
|
1086
|
+
function I(l) {
|
|
1095
1087
|
e(M) && (clearTimeout(Q), A = setTimeout(
|
|
1096
1088
|
() => {
|
|
1097
|
-
|
|
1089
|
+
O(M, !1), D("hide", l);
|
|
1098
1090
|
},
|
|
1099
|
-
|
|
1091
|
+
k() ? 300 : 0
|
|
1100
1092
|
));
|
|
1101
1093
|
}
|
|
1102
|
-
function
|
|
1103
|
-
|
|
1094
|
+
function V(l) {
|
|
1095
|
+
j() === "click" && (e(M) ? I(l) : x(l));
|
|
1104
1096
|
}
|
|
1105
1097
|
function $(l) {
|
|
1106
|
-
|
|
1098
|
+
j() === "click" && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), e(M) ? I(l) : x(l));
|
|
1107
1099
|
}
|
|
1108
1100
|
function ee(l) {
|
|
1109
|
-
|
|
1101
|
+
j() === "focus" && x(l);
|
|
1110
1102
|
}
|
|
1111
1103
|
function U(l) {
|
|
1112
|
-
|
|
1104
|
+
j() === "focus" && I(l);
|
|
1113
1105
|
}
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1106
|
+
function b(l) {
|
|
1107
|
+
j() === "hover" && x(l);
|
|
1116
1108
|
}
|
|
1117
|
-
function
|
|
1118
|
-
|
|
1109
|
+
function h(l) {
|
|
1110
|
+
j() === "hover" && I(l);
|
|
1119
1111
|
}
|
|
1120
1112
|
function c() {
|
|
1121
|
-
|
|
1113
|
+
k() && clearTimeout(A);
|
|
1122
1114
|
}
|
|
1123
1115
|
function s(l) {
|
|
1124
|
-
|
|
1116
|
+
k() && I(l);
|
|
1125
1117
|
}
|
|
1126
1118
|
function n() {
|
|
1127
|
-
|
|
1119
|
+
u() || O(M, !0);
|
|
1128
1120
|
}
|
|
1129
1121
|
function o() {
|
|
1130
|
-
|
|
1122
|
+
O(M, !1);
|
|
1131
1123
|
}
|
|
1132
1124
|
function v() {
|
|
1133
1125
|
e(M) ? o() : n();
|
|
1134
1126
|
}
|
|
1135
|
-
|
|
1127
|
+
Be(() => () => {
|
|
1136
1128
|
clearTimeout(Q), clearTimeout(A);
|
|
1137
1129
|
}), ie(() => (e(M), e(d)), () => {
|
|
1138
1130
|
e(M) && e(d) && requestAnimationFrame(() => {
|
|
1139
|
-
const l =
|
|
1140
|
-
|
|
1131
|
+
const l = z();
|
|
1132
|
+
ue(d, e(d).style.top = `${l.top}px`), ue(d, e(d).style.left = `${l.left}px`);
|
|
1141
1133
|
});
|
|
1142
1134
|
}), ze();
|
|
1143
|
-
var
|
|
1135
|
+
var Z = { show: n, hide: o, toggle: v };
|
|
1144
1136
|
we();
|
|
1145
|
-
var re = Nt(), de =
|
|
1137
|
+
var re = Nt(), de = me(re);
|
|
1146
1138
|
{
|
|
1147
1139
|
var be = (l) => {
|
|
1148
1140
|
var g = Mt(), se = a(g);
|
|
1149
|
-
ne(se, t, "default", {}, null), je(g, (fe) =>
|
|
1141
|
+
ne(se, t, "default", {}, null), je(g, (fe) => O(E, fe), () => e(E)), p(() => J(g, "aria-describedby", e(M) ? "tooltip-{content}" : void 0)), R("click", g, V), R("keydown", g, $), R("focus", g, ee), R("blur", g, U), R("mouseenter", g, b), R("mouseleave", g, h), r(l, g);
|
|
1150
1142
|
}, _e = (l) => {
|
|
1151
|
-
var g =
|
|
1152
|
-
ne(se, t, "default", {}, null), je(g, (fe) =>
|
|
1143
|
+
var g = It(), se = a(g);
|
|
1144
|
+
ne(se, t, "default", {}, null), je(g, (fe) => O(E, fe), () => e(E)), p(() => J(g, "aria-describedby", e(M) ? "tooltip-{content}" : void 0)), R("click", g, V), R("keydown", g, $), R("focus", g, ee), R("blur", g, U), R("mouseenter", g, b), R("mouseleave", g, h), r(l, g);
|
|
1153
1145
|
};
|
|
1154
|
-
|
|
1155
|
-
|
|
1146
|
+
H(de, (l) => {
|
|
1147
|
+
j() === "click" ? l(be) : l(_e, !1);
|
|
1156
1148
|
});
|
|
1157
1149
|
}
|
|
1158
1150
|
var le = i(de, 2);
|
|
@@ -1161,16 +1153,16 @@ function Jt(K, t) {
|
|
|
1161
1153
|
var g = At(), se = a(g), fe = a(se), Ce = i(fe);
|
|
1162
1154
|
{
|
|
1163
1155
|
var ae = (G) => {
|
|
1164
|
-
var
|
|
1165
|
-
|
|
1166
|
-
(Me,
|
|
1167
|
-
|
|
1156
|
+
var Ee = Dt();
|
|
1157
|
+
p(
|
|
1158
|
+
(Me, Ie, De, Ae, Ne) => S(
|
|
1159
|
+
Ee,
|
|
1168
1160
|
1,
|
|
1169
1161
|
`
|
|
1170
1162
|
absolute w-2 h-2 transform rotate-45
|
|
1171
1163
|
${Me ?? ""}
|
|
1172
|
-
${De ?? ""}
|
|
1173
1164
|
${Ie ?? ""}
|
|
1165
|
+
${De ?? ""}
|
|
1174
1166
|
${Ae ?? ""}
|
|
1175
1167
|
${Ne ?? ""}
|
|
1176
1168
|
`,
|
|
@@ -1183,14 +1175,14 @@ function Jt(K, t) {
|
|
|
1183
1175
|
() => (C(w()), X(() => w().includes("left") ? "right-[-4px] top-1/2 -translate-y-1/2" : "")),
|
|
1184
1176
|
() => (C(w()), X(() => w().includes("right") ? "left-[-4px] top-1/2 -translate-y-1/2" : ""))
|
|
1185
1177
|
]
|
|
1186
|
-
), r(G,
|
|
1178
|
+
), r(G, Ee);
|
|
1187
1179
|
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1180
|
+
H(Ce, (G) => {
|
|
1181
|
+
T() && G(ae);
|
|
1190
1182
|
});
|
|
1191
1183
|
}
|
|
1192
|
-
je(g, (G) =>
|
|
1193
|
-
J(g, "id", `tooltip-${y() ?? ""}`),
|
|
1184
|
+
je(g, (G) => O(d, G), () => e(d)), p(() => {
|
|
1185
|
+
J(g, "id", `tooltip-${y() ?? ""}`), S(
|
|
1194
1186
|
g,
|
|
1195
1187
|
1,
|
|
1196
1188
|
`
|
|
@@ -1198,29 +1190,29 @@ function Jt(K, t) {
|
|
|
1198
1190
|
${C(q()), X(() => N[q()]) ?? ""}
|
|
1199
1191
|
${C(F()), X(() => te[F()]) ?? ""}
|
|
1200
1192
|
border rounded-lg shadow-adaptive-lg
|
|
1201
|
-
${
|
|
1193
|
+
${P() ?? ""}
|
|
1202
1194
|
`,
|
|
1203
1195
|
"svelte-13nzt82"
|
|
1204
|
-
), ke(g, `max-width: ${
|
|
1196
|
+
), ke(g, `max-width: ${B() ?? ""};`), W(fe, `${y() ?? ""} `);
|
|
1205
1197
|
}), R("mouseenter", g, c), R("mouseleave", g, s), qe(3, g, () => Re, () => ({
|
|
1206
1198
|
x: w().includes("left") ? -10 : w().includes("right") ? 10 : 0,
|
|
1207
1199
|
y: w().includes("top") ? -10 : w().includes("bottom") ? 10 : 0,
|
|
1208
1200
|
duration: 200
|
|
1209
1201
|
})), r(l, g);
|
|
1210
1202
|
};
|
|
1211
|
-
|
|
1203
|
+
H(le, (l) => {
|
|
1212
1204
|
e(M) && y() && l(xe);
|
|
1213
1205
|
});
|
|
1214
1206
|
}
|
|
1215
|
-
return r(K, re),
|
|
1207
|
+
return r(K, re), Le(t, "show", n), Le(t, "hide", o), Le(t, "toggle", v), pe(Z);
|
|
1216
1208
|
}
|
|
1217
1209
|
export {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1210
|
+
Ht as B,
|
|
1211
|
+
Ot as C,
|
|
1212
|
+
Vt as H,
|
|
1221
1213
|
Xt as O,
|
|
1222
|
-
|
|
1223
|
-
|
|
1214
|
+
Zt as P,
|
|
1215
|
+
Yt as S,
|
|
1224
1216
|
Jt as T,
|
|
1225
1217
|
Gt as a,
|
|
1226
1218
|
Ut as b
|