@pebble-software/bonsai 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -2
- package/dist/ast.js +1 -1
- package/dist/chunks/{builder.meta-WpXc5VBB.js → builder.meta-B7Y9M7Ab.js} +128 -122
- package/dist/chunks/builder.meta-B7Y9M7Ab.js.map +1 -0
- package/dist/chunks/create-renderer-C4nV9RV6.js +282 -0
- package/dist/chunks/create-renderer-C4nV9RV6.js.map +1 -0
- package/dist/chunks/index-CD5pykpk.js +367 -0
- package/dist/chunks/index-CD5pykpk.js.map +1 -0
- package/dist/chunks/{render-shared-Ci28BpkI.js → render-shared-Cwb527d4.js} +487 -445
- package/dist/chunks/render-shared-Cwb527d4.js.map +1 -0
- package/dist/components/core/render-shared.d.ts +25 -15
- package/dist/components/core/render-tree-client.d.ts +1 -1
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/core.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/lib/ast/evaluator.d.ts +1 -1
- package/dist/lib/ast/helpers.d.ts +3 -1
- package/dist/lib/ast/index.d.ts +1 -1
- package/dist/lib/ast/types.d.ts +4 -1
- package/dist/lib/ast/utils.d.ts +1 -1
- package/dist/lib/renderer/compile-template.d.ts +10 -2
- package/dist/lib/renderer/safe-props.d.ts +4 -0
- package/dist/presets/calendar.js.map +1 -1
- package/dist/presets/signature.js +1 -1
- package/dist/presets/signature.js.map +1 -1
- package/dist/renderer/core-registry.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/types.d.ts +8 -1
- package/package.json +7 -9
- package/dist/chunks/builder.meta-WpXc5VBB.js.map +0 -1
- package/dist/chunks/create-renderer-DHneTPd-.js +0 -280
- package/dist/chunks/create-renderer-DHneTPd-.js.map +0 -1
- package/dist/chunks/index-DzpRdatr.js +0 -359
- package/dist/chunks/index-DzpRdatr.js.map +0 -1
- package/dist/chunks/render-shared-Ci28BpkI.js.map +0 -1
|
@@ -1,101 +1,125 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { COMPONENT as
|
|
5
|
-
import { cva as
|
|
6
|
-
import { c as i, a as
|
|
7
|
-
import { Accordion as
|
|
8
|
-
import { IconChevronDown as
|
|
9
|
-
import { useWebHaptics as
|
|
10
|
-
import { Avatar as
|
|
11
|
-
import { mergeProps as
|
|
12
|
-
import { useRender as
|
|
13
|
-
import { Checkbox as
|
|
14
|
-
import { Collapsible as
|
|
15
|
-
import { Input as
|
|
16
|
-
import { OTPInput as
|
|
17
|
-
import { Progress as
|
|
18
|
-
import { Separator as
|
|
19
|
-
import { Switch as
|
|
20
|
-
import { L as
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { jsx as s, jsxs as T, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import * as D from "react";
|
|
3
|
+
import { createContext as da, useContext as ia, Fragment as ya, createElement as _ } from "react";
|
|
4
|
+
import { COMPONENT as n } from "../constants.js";
|
|
5
|
+
import { cva as f } from "class-variance-authority";
|
|
6
|
+
import { c as i, a as Ca, d as Na, B as la, e as Pa, L as Ta } from "./button-jfJanilw.js";
|
|
7
|
+
import { Accordion as A } from "@base-ui/react/accordion";
|
|
8
|
+
import { IconChevronDown as Aa, IconCheck as Oa } from "@tabler/icons-react";
|
|
9
|
+
import { useWebHaptics as U } from "web-haptics/react";
|
|
10
|
+
import { Avatar as V } from "@base-ui/react/avatar";
|
|
11
|
+
import { mergeProps as Ia } from "@base-ui/react/merge-props";
|
|
12
|
+
import { useRender as Ea } from "@base-ui/react/use-render";
|
|
13
|
+
import { Checkbox as Z } from "@base-ui/react/checkbox";
|
|
14
|
+
import { Collapsible as G } from "@base-ui/react/collapsible";
|
|
15
|
+
import { Input as Ra } from "@base-ui/react/input";
|
|
16
|
+
import { OTPInput as _a } from "input-otp";
|
|
17
|
+
import { Progress as N } from "@base-ui/react/progress";
|
|
18
|
+
import { Separator as Sa } from "@base-ui/react/separator";
|
|
19
|
+
import { Switch as aa } from "@base-ui/react/switch";
|
|
20
|
+
import { L as Va, c as L, s as La, p as ja } from "./index-CD5pykpk.js";
|
|
21
|
+
const $a = /* @__PURE__ */ new Set([
|
|
22
|
+
"__proto__",
|
|
23
|
+
"dangerouslySetInnerHTML",
|
|
24
|
+
"srcDoc",
|
|
25
|
+
"formAction",
|
|
26
|
+
"formMethod",
|
|
27
|
+
"formTarget",
|
|
28
|
+
"formEncType"
|
|
29
|
+
]), ca = /* @__PURE__ */ new Set(["href", "src", "action", "xlinkHref"]), Ba = /^(?:(?:https?|mailto|tel):|data:image\/|[^:]*(?:[/?#]|$))/i;
|
|
30
|
+
function H(a) {
|
|
31
|
+
return a == null || Ba.test(String(a)) ? a : void 0;
|
|
32
|
+
}
|
|
33
|
+
const Da = /[^.[\]]+|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/g;
|
|
34
|
+
function F(a) {
|
|
35
|
+
return a.match(Da) || [];
|
|
36
|
+
}
|
|
37
|
+
function M(a) {
|
|
26
38
|
return a.startsWith("[") && a.endsWith("]") ? a.slice(1, -1).replace(/^["']|["']$/g, "") : a;
|
|
27
39
|
}
|
|
28
|
-
function
|
|
29
|
-
const t =
|
|
30
|
-
const
|
|
31
|
-
return
|
|
40
|
+
function Ua(a) {
|
|
41
|
+
const t = F(a).map(M), e = t.map((r, o) => {
|
|
42
|
+
const d = t[o + 1];
|
|
43
|
+
return d !== void 0 && /^\d+$/.test(d);
|
|
32
44
|
});
|
|
33
45
|
return { key: a, segments: t, numericNext: e };
|
|
34
46
|
}
|
|
35
|
-
function
|
|
36
|
-
const t = typeof a == "string", e = a, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Set(),
|
|
37
|
-
let u = null;
|
|
47
|
+
function E(a) {
|
|
48
|
+
const t = typeof a == "string", e = t ? void 0 : a, r = /* @__PURE__ */ Object.create(null), o = {}, d = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ Object.create(null), c = /* @__PURE__ */ new Set();
|
|
49
|
+
let u = null, p = null;
|
|
38
50
|
if (t)
|
|
39
|
-
u =
|
|
40
|
-
else
|
|
41
|
-
for (const [h,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
u = L(a), u?.variables.forEach((z) => c.add(z));
|
|
52
|
+
else {
|
|
53
|
+
for (const [h, g] of Object.entries(e?.args ?? {})) {
|
|
54
|
+
if ($a.has(h)) continue;
|
|
55
|
+
const m = L(g);
|
|
56
|
+
if (!m) {
|
|
57
|
+
o[h] = ca.has(h) ? H(g) : g;
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
o[h] = g, r[h] = m, d.add(h), m.ast && La(m.ast) != null && (l[h] = m.content), m.variables.forEach((y) => c.add(y));
|
|
61
|
+
}
|
|
62
|
+
const z = e?.args?.onClick;
|
|
63
|
+
Array.isArray(z) && (p = z.filter(
|
|
64
|
+
(h) => typeof h?.set == "string" && h.set !== ""
|
|
65
|
+
), p.forEach((h) => L(h.to)?.variables.forEach((g) => c.add(g))));
|
|
66
|
+
}
|
|
67
|
+
const b = e?.type, x = b || "div", C = b === n.EACH, w = b === n.IF, v = e?.args, P = C ? {
|
|
68
|
+
as: v?.as,
|
|
69
|
+
indexAlias: v?.index,
|
|
70
|
+
keyExpr: v?.key,
|
|
71
|
+
rawItemsPath: l.items ?? ""
|
|
72
|
+
} : null, O = Array.from(c, Ua);
|
|
51
73
|
return {
|
|
52
74
|
source: a,
|
|
75
|
+
args: o,
|
|
53
76
|
isText: t,
|
|
54
|
-
type:
|
|
55
|
-
isEach:
|
|
77
|
+
type: x,
|
|
78
|
+
isEach: C,
|
|
56
79
|
isIf: w,
|
|
57
|
-
isImage:
|
|
58
|
-
dynamicKeys:
|
|
59
|
-
dynamicArgs:
|
|
60
|
-
argPaths:
|
|
80
|
+
isImage: b === n.IMAGE,
|
|
81
|
+
dynamicKeys: O,
|
|
82
|
+
dynamicArgs: d,
|
|
83
|
+
argPaths: l,
|
|
61
84
|
expressions: r,
|
|
62
85
|
text: u,
|
|
63
86
|
// Matches `isStaticLeaf`: control nodes always re-render, otherwise "no bindings of its own".
|
|
64
|
-
isStatic: !
|
|
65
|
-
|
|
66
|
-
|
|
87
|
+
isStatic: !C && !w && O.length === 0 && !p,
|
|
88
|
+
actions: p,
|
|
89
|
+
each: P,
|
|
90
|
+
children: t ? [] : (e?.children ?? []).map(E)
|
|
67
91
|
};
|
|
68
92
|
}
|
|
69
|
-
const
|
|
70
|
-
function
|
|
93
|
+
const ta = /* @__PURE__ */ new WeakMap(), ea = new Va(50);
|
|
94
|
+
function Ce(a) {
|
|
71
95
|
if (typeof a == "string") {
|
|
72
|
-
const r =
|
|
96
|
+
const r = ea.get(a);
|
|
73
97
|
if (r) return r;
|
|
74
98
|
const o = {
|
|
75
|
-
root:
|
|
99
|
+
root: E(a),
|
|
76
100
|
source: a
|
|
77
101
|
};
|
|
78
|
-
return
|
|
102
|
+
return ea.set(a, o), o;
|
|
79
103
|
}
|
|
80
104
|
if (a == null || typeof a != "object")
|
|
81
|
-
return { root:
|
|
82
|
-
const t =
|
|
105
|
+
return { root: E(a), source: a };
|
|
106
|
+
const t = ta.get(a);
|
|
83
107
|
if (t) return t;
|
|
84
108
|
const e = {
|
|
85
|
-
root:
|
|
109
|
+
root: E(a),
|
|
86
110
|
source: a
|
|
87
111
|
};
|
|
88
|
-
return
|
|
112
|
+
return ta.set(a, e), e;
|
|
89
113
|
}
|
|
90
|
-
function
|
|
114
|
+
function Ne(a) {
|
|
91
115
|
return a;
|
|
92
116
|
}
|
|
93
|
-
function
|
|
117
|
+
function Pe(a) {
|
|
94
118
|
return a;
|
|
95
119
|
}
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
const
|
|
120
|
+
const ua = D.forwardRef(({ ...a }, t) => /* @__PURE__ */ s("a", { ref: t, ...a }));
|
|
121
|
+
ua.displayName = "A";
|
|
122
|
+
const Ga = f("font-heading font-semibold scroll-m-20", {
|
|
99
123
|
variants: {
|
|
100
124
|
variant: {
|
|
101
125
|
h1: "text-6xl font-semibold tracking-tight",
|
|
@@ -109,18 +133,18 @@ const La = g("font-heading font-semibold scroll-m-20", {
|
|
|
109
133
|
defaultVariants: {
|
|
110
134
|
variant: "h3"
|
|
111
135
|
}
|
|
112
|
-
}),
|
|
136
|
+
}), pa = D.forwardRef(
|
|
113
137
|
({ className: a, variant: t, as: e, ...r }, o) => /* @__PURE__ */ s(
|
|
114
138
|
e || t || "h3",
|
|
115
139
|
{
|
|
116
140
|
ref: o,
|
|
117
|
-
className: i(
|
|
141
|
+
className: i(Ga({ variant: t }), a),
|
|
118
142
|
...r
|
|
119
143
|
}
|
|
120
144
|
)
|
|
121
145
|
);
|
|
122
|
-
|
|
123
|
-
const
|
|
146
|
+
pa.displayName = "H";
|
|
147
|
+
const Ha = f("text-base", {
|
|
124
148
|
variants: {
|
|
125
149
|
variant: {
|
|
126
150
|
default: "",
|
|
@@ -138,18 +162,18 @@ const $a = g("text-base", {
|
|
|
138
162
|
variant: "default",
|
|
139
163
|
size: "md"
|
|
140
164
|
}
|
|
141
|
-
}),
|
|
142
|
-
({ className: a, variant: t, size: e, as: r = "p", ...o },
|
|
165
|
+
}), ga = D.forwardRef(
|
|
166
|
+
({ className: a, variant: t, size: e, as: r = "p", ...o }, d) => /* @__PURE__ */ s(
|
|
143
167
|
r,
|
|
144
168
|
{
|
|
145
|
-
ref:
|
|
146
|
-
className: i(
|
|
169
|
+
ref: d,
|
|
170
|
+
className: i(Ha({ variant: t, size: e }), a),
|
|
147
171
|
...o
|
|
148
172
|
}
|
|
149
173
|
)
|
|
150
174
|
);
|
|
151
|
-
|
|
152
|
-
const
|
|
175
|
+
ga.displayName = "P";
|
|
176
|
+
const Fa = f("flex w-full flex-col", {
|
|
153
177
|
variants: {
|
|
154
178
|
variant: {
|
|
155
179
|
default: "",
|
|
@@ -173,7 +197,7 @@ const Ba = g("flex w-full flex-col", {
|
|
|
173
197
|
variant: "default"
|
|
174
198
|
}
|
|
175
199
|
});
|
|
176
|
-
function
|
|
200
|
+
function Ma({
|
|
177
201
|
className: a,
|
|
178
202
|
variant: t = "default",
|
|
179
203
|
raised: e,
|
|
@@ -181,14 +205,14 @@ function Da({
|
|
|
181
205
|
...o
|
|
182
206
|
}) {
|
|
183
207
|
return /* @__PURE__ */ s(
|
|
184
|
-
|
|
208
|
+
A.Root,
|
|
185
209
|
{
|
|
186
210
|
"data-slot": "accordion",
|
|
187
211
|
"data-variant": t,
|
|
188
212
|
"data-raised": e ?? void 0,
|
|
189
213
|
"data-extrude": r ?? void 0,
|
|
190
214
|
className: i(
|
|
191
|
-
|
|
215
|
+
Fa({ variant: t, raised: e, extrude: r }),
|
|
192
216
|
"group/accordion",
|
|
193
217
|
a
|
|
194
218
|
),
|
|
@@ -196,9 +220,9 @@ function Da({
|
|
|
196
220
|
}
|
|
197
221
|
);
|
|
198
222
|
}
|
|
199
|
-
function
|
|
223
|
+
function Ka({ className: a, ...t }) {
|
|
200
224
|
return /* @__PURE__ */ s(
|
|
201
|
-
|
|
225
|
+
A.Item,
|
|
202
226
|
{
|
|
203
227
|
"data-slot": "accordion-item",
|
|
204
228
|
className: i(
|
|
@@ -245,17 +269,16 @@ function Ga({ className: a, ...t }) {
|
|
|
245
269
|
}
|
|
246
270
|
);
|
|
247
271
|
}
|
|
248
|
-
function
|
|
272
|
+
function Wa({
|
|
249
273
|
className: a,
|
|
250
274
|
children: t,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
...n
|
|
275
|
+
icon: e = Aa,
|
|
276
|
+
onClick: r,
|
|
277
|
+
...o
|
|
255
278
|
}) {
|
|
256
|
-
const { trigger:
|
|
257
|
-
return /* @__PURE__ */ s(
|
|
258
|
-
|
|
279
|
+
const { trigger: d } = U();
|
|
280
|
+
return /* @__PURE__ */ s(A.Header, { className: "flex", children: /* @__PURE__ */ T(
|
|
281
|
+
A.Trigger,
|
|
259
282
|
{
|
|
260
283
|
"data-slot": "accordion-trigger",
|
|
261
284
|
className: i(
|
|
@@ -269,14 +292,14 @@ function Ua({
|
|
|
269
292
|
"group-data-[variant=separated]/accordion:pt-4",
|
|
270
293
|
a
|
|
271
294
|
),
|
|
272
|
-
onClick: (
|
|
273
|
-
|
|
295
|
+
onClick: (l) => {
|
|
296
|
+
d(Ca), r?.(l);
|
|
274
297
|
},
|
|
275
|
-
...
|
|
298
|
+
...o,
|
|
276
299
|
children: [
|
|
277
300
|
t,
|
|
278
301
|
/* @__PURE__ */ s(
|
|
279
|
-
|
|
302
|
+
e,
|
|
280
303
|
{
|
|
281
304
|
"data-slot": "accordion-trigger-icon",
|
|
282
305
|
className: i(
|
|
@@ -289,13 +312,13 @@ function Ua({
|
|
|
289
312
|
}
|
|
290
313
|
) });
|
|
291
314
|
}
|
|
292
|
-
function
|
|
315
|
+
function Xa({
|
|
293
316
|
className: a,
|
|
294
317
|
children: t,
|
|
295
318
|
...e
|
|
296
319
|
}) {
|
|
297
320
|
return /* @__PURE__ */ s(
|
|
298
|
-
|
|
321
|
+
A.Panel,
|
|
299
322
|
{
|
|
300
323
|
"data-slot": "accordion-content",
|
|
301
324
|
keepMounted: !0,
|
|
@@ -314,7 +337,7 @@ function Ha({
|
|
|
314
337
|
}
|
|
315
338
|
);
|
|
316
339
|
}
|
|
317
|
-
const
|
|
340
|
+
const qa = f(
|
|
318
341
|
"relative grid px-4 py-3 gap-0.5 rounded-base border text-left text-sm *:[svg]:row-span-2 *:[svg]:translate-y-1 *:[svg]:text-current has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-24 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5",
|
|
319
342
|
{
|
|
320
343
|
variants: {
|
|
@@ -342,7 +365,7 @@ const Fa = g(
|
|
|
342
365
|
}
|
|
343
366
|
}
|
|
344
367
|
);
|
|
345
|
-
function
|
|
368
|
+
function Ya({
|
|
346
369
|
className: a,
|
|
347
370
|
variant: t = "default",
|
|
348
371
|
size: e = "default",
|
|
@@ -355,7 +378,7 @@ function Ma({
|
|
|
355
378
|
"data-slot": "alert",
|
|
356
379
|
role: "alert",
|
|
357
380
|
className: i(
|
|
358
|
-
|
|
381
|
+
qa({ variant: t, raised: r, size: e }),
|
|
359
382
|
"group/alert",
|
|
360
383
|
a
|
|
361
384
|
),
|
|
@@ -363,7 +386,7 @@ function Ma({
|
|
|
363
386
|
}
|
|
364
387
|
);
|
|
365
388
|
}
|
|
366
|
-
const
|
|
389
|
+
const Ja = f("relative flex shrink-0 select-none", {
|
|
367
390
|
variants: {
|
|
368
391
|
size: {
|
|
369
392
|
full: "size-full",
|
|
@@ -391,34 +414,34 @@ const Wa = g("relative flex shrink-0 select-none", {
|
|
|
391
414
|
rounded: "full"
|
|
392
415
|
}
|
|
393
416
|
});
|
|
394
|
-
function
|
|
417
|
+
function Qa({
|
|
395
418
|
className: a,
|
|
396
419
|
size: t = "md",
|
|
397
420
|
rounded: e = "full",
|
|
398
421
|
raised: r,
|
|
399
422
|
src: o,
|
|
400
|
-
alt:
|
|
423
|
+
alt: d,
|
|
401
424
|
fallback: l,
|
|
402
|
-
badge:
|
|
403
|
-
children:
|
|
425
|
+
badge: c,
|
|
426
|
+
children: u,
|
|
404
427
|
...p
|
|
405
428
|
}) {
|
|
406
429
|
return /* @__PURE__ */ s(
|
|
407
|
-
|
|
430
|
+
V.Root,
|
|
408
431
|
{
|
|
409
432
|
"data-slot": "avatar",
|
|
410
433
|
"data-size": t,
|
|
411
434
|
"data-raised": r,
|
|
412
435
|
"data-rounded": e,
|
|
413
436
|
className: i(
|
|
414
|
-
|
|
437
|
+
Ja({ size: t, rounded: e, raised: r }),
|
|
415
438
|
"group/avatar",
|
|
416
439
|
a
|
|
417
440
|
),
|
|
418
441
|
...p,
|
|
419
|
-
children:
|
|
442
|
+
children: u ?? /* @__PURE__ */ T(R, { children: [
|
|
420
443
|
o && /* @__PURE__ */ s(
|
|
421
|
-
|
|
444
|
+
V.Image,
|
|
422
445
|
{
|
|
423
446
|
"data-slot": "avatar-image",
|
|
424
447
|
className: i(
|
|
@@ -429,11 +452,11 @@ function Ka({
|
|
|
429
452
|
"group-data-[rounded=full]/avatar:rounded-full"
|
|
430
453
|
),
|
|
431
454
|
src: o,
|
|
432
|
-
alt:
|
|
455
|
+
alt: d
|
|
433
456
|
}
|
|
434
457
|
),
|
|
435
458
|
l != null && /* @__PURE__ */ s(
|
|
436
|
-
|
|
459
|
+
V.Fallback,
|
|
437
460
|
{
|
|
438
461
|
"data-slot": "avatar-fallback",
|
|
439
462
|
className: i(
|
|
@@ -448,7 +471,7 @@ function Ka({
|
|
|
448
471
|
children: l
|
|
449
472
|
}
|
|
450
473
|
),
|
|
451
|
-
|
|
474
|
+
c != null && /* @__PURE__ */ s(
|
|
452
475
|
"span",
|
|
453
476
|
{
|
|
454
477
|
"data-slot": "avatar-badge",
|
|
@@ -479,14 +502,14 @@ function Ka({
|
|
|
479
502
|
"group-data-[rounded=full]/avatar:rounded-full",
|
|
480
503
|
"group-data-[rounded=full]/avatar:translate-0"
|
|
481
504
|
),
|
|
482
|
-
children:
|
|
505
|
+
children: c
|
|
483
506
|
}
|
|
484
507
|
)
|
|
485
508
|
] })
|
|
486
509
|
}
|
|
487
510
|
);
|
|
488
511
|
}
|
|
489
|
-
const
|
|
512
|
+
const Za = f(
|
|
490
513
|
"gap-1 px-2 py-0.5 [button]:cursor-pointer rounded-full border text-xs font-medium transition-[color,box-shadow,translate] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none aria-invalid:border-accent-red duration-200 overflow-hidden",
|
|
491
514
|
{
|
|
492
515
|
variants: {
|
|
@@ -521,21 +544,21 @@ const Xa = g(
|
|
|
521
544
|
}
|
|
522
545
|
}
|
|
523
546
|
);
|
|
524
|
-
function
|
|
547
|
+
function at({
|
|
525
548
|
className: a,
|
|
526
549
|
variant: t = "default",
|
|
527
550
|
size: e = "md",
|
|
528
551
|
raised: r,
|
|
529
552
|
extrude: o,
|
|
530
|
-
render:
|
|
553
|
+
render: d,
|
|
531
554
|
...l
|
|
532
555
|
}) {
|
|
533
|
-
return
|
|
556
|
+
return Ea({
|
|
534
557
|
defaultTagName: "span",
|
|
535
|
-
props:
|
|
558
|
+
props: Ia(
|
|
536
559
|
{
|
|
537
560
|
className: i(
|
|
538
|
-
|
|
561
|
+
Za({ size: e, variant: t, raised: r, extrude: o }),
|
|
539
562
|
"group/badge",
|
|
540
563
|
a
|
|
541
564
|
),
|
|
@@ -543,14 +566,14 @@ function qa({
|
|
|
543
566
|
},
|
|
544
567
|
l
|
|
545
568
|
),
|
|
546
|
-
render:
|
|
569
|
+
render: d,
|
|
547
570
|
state: {
|
|
548
571
|
slot: "badge",
|
|
549
572
|
variant: t
|
|
550
573
|
}
|
|
551
574
|
});
|
|
552
575
|
}
|
|
553
|
-
const
|
|
576
|
+
const tt = f(
|
|
554
577
|
"bg-surface border text-foreground overflow-hidden rounded-base text-sm flex flex-col",
|
|
555
578
|
{
|
|
556
579
|
variants: {
|
|
@@ -573,7 +596,7 @@ const Ya = g(
|
|
|
573
596
|
}
|
|
574
597
|
}
|
|
575
598
|
);
|
|
576
|
-
function
|
|
599
|
+
function et({
|
|
577
600
|
className: a,
|
|
578
601
|
size: t = "md",
|
|
579
602
|
raised: e = "md",
|
|
@@ -584,12 +607,12 @@ function Ja({
|
|
|
584
607
|
{
|
|
585
608
|
"data-slot": "card",
|
|
586
609
|
"data-size": t,
|
|
587
|
-
className: i(
|
|
610
|
+
className: i(tt({ raised: e, size: t }), "group/card", a),
|
|
588
611
|
...r
|
|
589
612
|
}
|
|
590
613
|
);
|
|
591
614
|
}
|
|
592
|
-
function
|
|
615
|
+
function rt({ className: a, ...t }) {
|
|
593
616
|
return /* @__PURE__ */ s(
|
|
594
617
|
"div",
|
|
595
618
|
{
|
|
@@ -607,7 +630,7 @@ function Qa({ className: a, ...t }) {
|
|
|
607
630
|
}
|
|
608
631
|
);
|
|
609
632
|
}
|
|
610
|
-
function
|
|
633
|
+
function ot({ className: a, ...t }) {
|
|
611
634
|
return /* @__PURE__ */ s(
|
|
612
635
|
"div",
|
|
613
636
|
{
|
|
@@ -628,7 +651,7 @@ function Za({ className: a, ...t }) {
|
|
|
628
651
|
}
|
|
629
652
|
);
|
|
630
653
|
}
|
|
631
|
-
function
|
|
654
|
+
function st({ className: a, ...t }) {
|
|
632
655
|
return /* @__PURE__ */ s(
|
|
633
656
|
"div",
|
|
634
657
|
{
|
|
@@ -645,7 +668,7 @@ function at({ className: a, ...t }) {
|
|
|
645
668
|
}
|
|
646
669
|
);
|
|
647
670
|
}
|
|
648
|
-
function
|
|
671
|
+
function nt({ className: a, ...t }) {
|
|
649
672
|
return /* @__PURE__ */ s(
|
|
650
673
|
"div",
|
|
651
674
|
{
|
|
@@ -658,7 +681,7 @@ function tt({ className: a, ...t }) {
|
|
|
658
681
|
}
|
|
659
682
|
);
|
|
660
683
|
}
|
|
661
|
-
function
|
|
684
|
+
function dt({ className: a, ...t }) {
|
|
662
685
|
return /* @__PURE__ */ s(
|
|
663
686
|
"div",
|
|
664
687
|
{
|
|
@@ -677,7 +700,7 @@ function et({ className: a, ...t }) {
|
|
|
677
700
|
}
|
|
678
701
|
);
|
|
679
702
|
}
|
|
680
|
-
function
|
|
703
|
+
function it({ className: a, ...t }) {
|
|
681
704
|
return /* @__PURE__ */ s(
|
|
682
705
|
"div",
|
|
683
706
|
{
|
|
@@ -693,7 +716,7 @@ function rt({ className: a, ...t }) {
|
|
|
693
716
|
}
|
|
694
717
|
);
|
|
695
718
|
}
|
|
696
|
-
function
|
|
719
|
+
function lt({ className: a, ...t }) {
|
|
697
720
|
return /* @__PURE__ */ s(
|
|
698
721
|
"div",
|
|
699
722
|
{
|
|
@@ -710,7 +733,7 @@ function ot({ className: a, ...t }) {
|
|
|
710
733
|
}
|
|
711
734
|
);
|
|
712
735
|
}
|
|
713
|
-
const
|
|
736
|
+
const ct = f(
|
|
714
737
|
"neo-base neo-checkbox-focus flex size-5 cursor-pointer items-center justify-center rounded-md border relative shrink-0 transition-[color,opacity,box-shadow,translate] data-checked:bg-main aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-invalid:bg-accent-red-secondary",
|
|
715
738
|
{
|
|
716
739
|
variants: {
|
|
@@ -727,35 +750,35 @@ const st = g(
|
|
|
727
750
|
}
|
|
728
751
|
}
|
|
729
752
|
);
|
|
730
|
-
function
|
|
753
|
+
function ut({
|
|
731
754
|
className: a,
|
|
732
755
|
size: t,
|
|
733
756
|
onCheckedChange: e,
|
|
734
757
|
...r
|
|
735
758
|
}) {
|
|
736
|
-
const { trigger: o } =
|
|
759
|
+
const { trigger: o } = U();
|
|
737
760
|
return /* @__PURE__ */ s(
|
|
738
|
-
|
|
761
|
+
Z.Root,
|
|
739
762
|
{
|
|
740
763
|
"data-slot": "checkbox",
|
|
741
764
|
"data-size": t,
|
|
742
765
|
className: i(
|
|
743
|
-
|
|
766
|
+
ct({ size: t }),
|
|
744
767
|
"peer group/checkbox",
|
|
745
768
|
a
|
|
746
769
|
),
|
|
747
770
|
"aria-label": r["aria-label"] ?? "checkbox",
|
|
748
|
-
onCheckedChange: (
|
|
749
|
-
o(
|
|
771
|
+
onCheckedChange: (d, l) => {
|
|
772
|
+
o(Na), e?.(d, l);
|
|
750
773
|
},
|
|
751
774
|
...r,
|
|
752
775
|
children: /* @__PURE__ */ s(
|
|
753
|
-
|
|
776
|
+
Z.Indicator,
|
|
754
777
|
{
|
|
755
778
|
"data-slot": "checkbox-indicator",
|
|
756
779
|
className: "grid place-content-center text-current",
|
|
757
780
|
children: /* @__PURE__ */ s(
|
|
758
|
-
|
|
781
|
+
Oa,
|
|
759
782
|
{
|
|
760
783
|
stroke: 3.5,
|
|
761
784
|
className: i(
|
|
@@ -773,9 +796,9 @@ function dt({
|
|
|
773
796
|
}
|
|
774
797
|
);
|
|
775
798
|
}
|
|
776
|
-
function
|
|
799
|
+
function pt({ className: a, ...t }) {
|
|
777
800
|
return /* @__PURE__ */ s(
|
|
778
|
-
|
|
801
|
+
G.Root,
|
|
779
802
|
{
|
|
780
803
|
className: i("group/collapsible", a),
|
|
781
804
|
"data-slot": "collapsible",
|
|
@@ -783,12 +806,12 @@ function nt({ className: a, ...t }) {
|
|
|
783
806
|
}
|
|
784
807
|
);
|
|
785
808
|
}
|
|
786
|
-
function
|
|
809
|
+
function gt({
|
|
787
810
|
className: a,
|
|
788
811
|
...t
|
|
789
812
|
}) {
|
|
790
813
|
return /* @__PURE__ */ s(
|
|
791
|
-
|
|
814
|
+
G.Trigger,
|
|
792
815
|
{
|
|
793
816
|
className: i(
|
|
794
817
|
"group-data-open/collapsible:[&_svg]:-scale-y-100",
|
|
@@ -799,13 +822,13 @@ function it({
|
|
|
799
822
|
}
|
|
800
823
|
);
|
|
801
824
|
}
|
|
802
|
-
function
|
|
825
|
+
function mt({
|
|
803
826
|
className: a,
|
|
804
827
|
children: t,
|
|
805
828
|
...e
|
|
806
829
|
}) {
|
|
807
830
|
return /* @__PURE__ */ s(
|
|
808
|
-
|
|
831
|
+
G.Panel,
|
|
809
832
|
{
|
|
810
833
|
className: i("group overflow-hidden", a),
|
|
811
834
|
"data-slot": "collapsible-content",
|
|
@@ -826,9 +849,9 @@ function lt({
|
|
|
826
849
|
}
|
|
827
850
|
);
|
|
828
851
|
}
|
|
829
|
-
function
|
|
852
|
+
function ma({ className: a, type: t, ...e }) {
|
|
830
853
|
return /* @__PURE__ */ s(
|
|
831
|
-
|
|
854
|
+
Ra,
|
|
832
855
|
{
|
|
833
856
|
type: t,
|
|
834
857
|
"data-slot": "input",
|
|
@@ -840,13 +863,13 @@ function ca({ className: a, type: t, ...e }) {
|
|
|
840
863
|
}
|
|
841
864
|
);
|
|
842
865
|
}
|
|
843
|
-
function
|
|
866
|
+
function ft({
|
|
844
867
|
className: a,
|
|
845
868
|
containerClassName: t,
|
|
846
869
|
...e
|
|
847
870
|
}) {
|
|
848
871
|
return /* @__PURE__ */ s(
|
|
849
|
-
|
|
872
|
+
_a,
|
|
850
873
|
{
|
|
851
874
|
"data-slot": "input-otp",
|
|
852
875
|
containerClassName: i(
|
|
@@ -859,7 +882,7 @@ function ut({
|
|
|
859
882
|
}
|
|
860
883
|
);
|
|
861
884
|
}
|
|
862
|
-
function
|
|
885
|
+
function fa({
|
|
863
886
|
className: a,
|
|
864
887
|
onInput: t,
|
|
865
888
|
autosize: e = !1,
|
|
@@ -869,9 +892,9 @@ function pa({
|
|
|
869
892
|
"textarea",
|
|
870
893
|
{
|
|
871
894
|
"data-slot": "textarea",
|
|
872
|
-
onInput: t || ((
|
|
895
|
+
onInput: t || ((d) => {
|
|
873
896
|
if (e) {
|
|
874
|
-
const l =
|
|
897
|
+
const l = d.currentTarget;
|
|
875
898
|
l.style.height = "auto", l.style.height = l.scrollHeight + "px";
|
|
876
899
|
}
|
|
877
900
|
}),
|
|
@@ -888,7 +911,7 @@ function pa({
|
|
|
888
911
|
}
|
|
889
912
|
);
|
|
890
913
|
}
|
|
891
|
-
function
|
|
914
|
+
function ht({ className: a, ...t }) {
|
|
892
915
|
return /* @__PURE__ */ s(
|
|
893
916
|
"div",
|
|
894
917
|
{
|
|
@@ -905,7 +928,7 @@ function ct({ className: a, ...t }) {
|
|
|
905
928
|
}
|
|
906
929
|
);
|
|
907
930
|
}
|
|
908
|
-
const
|
|
931
|
+
const bt = f(
|
|
909
932
|
"text-muted h-full gap-2 p-2 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 flex cursor-text items-center justify-center select-none",
|
|
910
933
|
{
|
|
911
934
|
variants: {
|
|
@@ -921,7 +944,7 @@ const pt = g(
|
|
|
921
944
|
}
|
|
922
945
|
}
|
|
923
946
|
);
|
|
924
|
-
function
|
|
947
|
+
function vt({
|
|
925
948
|
className: a,
|
|
926
949
|
align: t = "inline-start",
|
|
927
950
|
...e
|
|
@@ -932,7 +955,7 @@ function gt({
|
|
|
932
955
|
role: "group",
|
|
933
956
|
"data-slot": "input-group-addon",
|
|
934
957
|
"data-align": t,
|
|
935
|
-
className: i(
|
|
958
|
+
className: i(bt({ align: t }), a),
|
|
936
959
|
onClick: (r) => {
|
|
937
960
|
r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
938
961
|
},
|
|
@@ -940,7 +963,7 @@ function gt({
|
|
|
940
963
|
}
|
|
941
964
|
);
|
|
942
965
|
}
|
|
943
|
-
const
|
|
966
|
+
const xt = f("gap-2 text-sm flex items-center", {
|
|
944
967
|
variants: {
|
|
945
968
|
size: {
|
|
946
969
|
xs: "h-7 gap-1 rounded-sm px-1.5 py-0.5",
|
|
@@ -953,28 +976,28 @@ const mt = g("gap-2 text-sm flex items-center", {
|
|
|
953
976
|
size: "xs"
|
|
954
977
|
}
|
|
955
978
|
});
|
|
956
|
-
function
|
|
979
|
+
function wt({
|
|
957
980
|
className: a,
|
|
958
981
|
type: t = "button",
|
|
959
982
|
variant: e = "outline",
|
|
960
983
|
extrude: r = "xs",
|
|
961
984
|
size: o,
|
|
962
|
-
...
|
|
985
|
+
...d
|
|
963
986
|
}) {
|
|
964
987
|
return /* @__PURE__ */ s(
|
|
965
|
-
|
|
988
|
+
la,
|
|
966
989
|
{
|
|
967
990
|
type: t,
|
|
968
991
|
"data-size": o,
|
|
969
992
|
variant: e,
|
|
970
993
|
extrude: r ?? null,
|
|
971
|
-
"aria-label":
|
|
972
|
-
className: i(
|
|
973
|
-
...
|
|
994
|
+
"aria-label": d["aria-label"] ?? "input-button",
|
|
995
|
+
className: i(xt({ size: o }), a),
|
|
996
|
+
...d
|
|
974
997
|
}
|
|
975
998
|
);
|
|
976
999
|
}
|
|
977
|
-
function
|
|
1000
|
+
function zt({ className: a, ...t }) {
|
|
978
1001
|
return /* @__PURE__ */ s(
|
|
979
1002
|
"span",
|
|
980
1003
|
{
|
|
@@ -986,12 +1009,12 @@ function ft({ className: a, ...t }) {
|
|
|
986
1009
|
}
|
|
987
1010
|
);
|
|
988
1011
|
}
|
|
989
|
-
function
|
|
1012
|
+
function kt({
|
|
990
1013
|
className: a,
|
|
991
1014
|
...t
|
|
992
1015
|
}) {
|
|
993
1016
|
return /* @__PURE__ */ s(
|
|
994
|
-
|
|
1017
|
+
ma,
|
|
995
1018
|
{
|
|
996
1019
|
"data-slot": "input-group-control",
|
|
997
1020
|
className: i(
|
|
@@ -1014,12 +1037,12 @@ function bt({
|
|
|
1014
1037
|
}
|
|
1015
1038
|
);
|
|
1016
1039
|
}
|
|
1017
|
-
function
|
|
1040
|
+
function yt({
|
|
1018
1041
|
className: a,
|
|
1019
1042
|
...t
|
|
1020
1043
|
}) {
|
|
1021
1044
|
return /* @__PURE__ */ s(
|
|
1022
|
-
|
|
1045
|
+
fa,
|
|
1023
1046
|
{
|
|
1024
1047
|
"data-slot": "input-group-control",
|
|
1025
1048
|
className: i(
|
|
@@ -1040,7 +1063,7 @@ function vt({
|
|
|
1040
1063
|
}
|
|
1041
1064
|
);
|
|
1042
1065
|
}
|
|
1043
|
-
const
|
|
1066
|
+
const Ct = f(
|
|
1044
1067
|
"gap-2 leading-none group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",
|
|
1045
1068
|
{
|
|
1046
1069
|
variants: {
|
|
@@ -1059,7 +1082,7 @@ const xt = g(
|
|
|
1059
1082
|
}
|
|
1060
1083
|
}
|
|
1061
1084
|
);
|
|
1062
|
-
function
|
|
1085
|
+
function Nt({
|
|
1063
1086
|
size: a = "sm",
|
|
1064
1087
|
variant: t,
|
|
1065
1088
|
className: e,
|
|
@@ -1071,12 +1094,12 @@ function wt({
|
|
|
1071
1094
|
{
|
|
1072
1095
|
"data-slot": "label",
|
|
1073
1096
|
htmlFor: r,
|
|
1074
|
-
className: i(
|
|
1097
|
+
className: i(Ct({ size: a, variant: t }), e),
|
|
1075
1098
|
...o
|
|
1076
1099
|
}
|
|
1077
1100
|
);
|
|
1078
1101
|
}
|
|
1079
|
-
const
|
|
1102
|
+
const ra = f("group/progress flex flex-wrap", {
|
|
1080
1103
|
variants: {
|
|
1081
1104
|
size: {
|
|
1082
1105
|
xs: "gap-1",
|
|
@@ -1103,47 +1126,47 @@ const Q = g("group/progress flex flex-wrap", {
|
|
|
1103
1126
|
}
|
|
1104
1127
|
}
|
|
1105
1128
|
});
|
|
1106
|
-
function
|
|
1129
|
+
function Pt(a) {
|
|
1107
1130
|
const {
|
|
1108
1131
|
size: t = "md",
|
|
1109
1132
|
raised: e = "default",
|
|
1110
1133
|
stacked: r = "default",
|
|
1111
1134
|
className: o,
|
|
1112
|
-
children:
|
|
1135
|
+
children: d,
|
|
1113
1136
|
...l
|
|
1114
1137
|
} = a;
|
|
1115
1138
|
if (a.mode === "multiple") {
|
|
1116
|
-
const
|
|
1117
|
-
return /* @__PURE__ */
|
|
1118
|
-
|
|
1139
|
+
const c = [...a.value].sort((u, p) => p.value - u.value);
|
|
1140
|
+
return /* @__PURE__ */ T(
|
|
1141
|
+
N.Root,
|
|
1119
1142
|
{
|
|
1120
1143
|
"data-slot": "progress",
|
|
1121
1144
|
"data-size": t,
|
|
1122
1145
|
"data-raised": e,
|
|
1123
1146
|
"data-stacked": r,
|
|
1124
|
-
className: i(
|
|
1147
|
+
className: i(ra({ size: t, raised: e, stacked: r }), o),
|
|
1125
1148
|
...l,
|
|
1126
1149
|
children: [
|
|
1127
|
-
|
|
1150
|
+
d,
|
|
1128
1151
|
/* @__PURE__ */ s(
|
|
1129
|
-
|
|
1152
|
+
oa,
|
|
1130
1153
|
{
|
|
1131
1154
|
style: {
|
|
1132
|
-
marginTop: `calc(var(--stack-translate, 0px) * ${
|
|
1133
|
-
transform: `translateX(calc(var(--stack-translate, 0px) * ${
|
|
1155
|
+
marginTop: `calc(var(--stack-translate, 0px) * ${c.length - 1})`,
|
|
1156
|
+
transform: `translateX(calc(var(--stack-translate, 0px) * ${c.length - 1}))`
|
|
1134
1157
|
},
|
|
1135
1158
|
className: "grid grid-cols-1 *:row-start-1 *:col-start-1 *:row-end-1 *:col-end-1 items-end *:self-start",
|
|
1136
|
-
children:
|
|
1137
|
-
|
|
1159
|
+
children: c.map((u, p) => /* @__PURE__ */ s(
|
|
1160
|
+
At,
|
|
1138
1161
|
{
|
|
1139
1162
|
index: p,
|
|
1140
|
-
"data-value":
|
|
1141
|
-
...
|
|
1163
|
+
"data-value": u.value,
|
|
1164
|
+
...u,
|
|
1142
1165
|
children: /* @__PURE__ */ s(
|
|
1143
|
-
|
|
1166
|
+
N.Value,
|
|
1144
1167
|
{
|
|
1145
1168
|
className: i(
|
|
1146
|
-
|
|
1169
|
+
u.value < 5 ? "pr-0.5" : "",
|
|
1147
1170
|
"text-muted leading-none font-heading tabular-nums h-full flex flex-row items-end justify-end gap-1 ml-auto my-auto",
|
|
1148
1171
|
"group-data-[size=xs]/progress:hidden",
|
|
1149
1172
|
"group-data-[size=sm]/progress:hidden",
|
|
@@ -1156,20 +1179,20 @@ function zt(a) {
|
|
|
1156
1179
|
"group-data-[stacked=default]/progress:translate-y-0 group-data-[stacked=default]/progress:items-center"
|
|
1157
1180
|
),
|
|
1158
1181
|
"data-slot": "progress-indicator-group-value",
|
|
1159
|
-
children: () => /* @__PURE__ */
|
|
1160
|
-
|
|
1182
|
+
children: () => /* @__PURE__ */ T(R, { children: [
|
|
1183
|
+
u.name && /* @__PURE__ */ s(
|
|
1161
1184
|
"span",
|
|
1162
1185
|
{
|
|
1163
1186
|
className: "font-semibold line-clamp-1 opacity-0 -translate-y-10 transition-[opacity,translate] duration-200 hover:ease-in ease-out",
|
|
1164
1187
|
"data-slot": "progress-name",
|
|
1165
|
-
children:
|
|
1188
|
+
children: u.name
|
|
1166
1189
|
}
|
|
1167
1190
|
),
|
|
1168
|
-
|
|
1191
|
+
u.value.toLocaleString("default", {
|
|
1169
1192
|
minimumFractionDigits: 0,
|
|
1170
1193
|
maximumFractionDigits: 2
|
|
1171
1194
|
}),
|
|
1172
|
-
|
|
1195
|
+
u.value < 5 ? "" : "%"
|
|
1173
1196
|
] })
|
|
1174
1197
|
}
|
|
1175
1198
|
)
|
|
@@ -1182,8 +1205,8 @@ function zt(a) {
|
|
|
1182
1205
|
}
|
|
1183
1206
|
);
|
|
1184
1207
|
}
|
|
1185
|
-
return /* @__PURE__ */
|
|
1186
|
-
|
|
1208
|
+
return /* @__PURE__ */ T(
|
|
1209
|
+
N.Root,
|
|
1187
1210
|
{
|
|
1188
1211
|
...l,
|
|
1189
1212
|
value: a.value,
|
|
@@ -1191,17 +1214,17 @@ function zt(a) {
|
|
|
1191
1214
|
"data-size": t,
|
|
1192
1215
|
"data-raised": e,
|
|
1193
1216
|
"data-stacked": r,
|
|
1194
|
-
className: i(
|
|
1217
|
+
className: i(ra({ size: t, raised: e, stacked: r }), o),
|
|
1195
1218
|
children: [
|
|
1196
|
-
|
|
1197
|
-
/* @__PURE__ */ s(
|
|
1219
|
+
d,
|
|
1220
|
+
/* @__PURE__ */ s(oa, { children: /* @__PURE__ */ s(Tt, { "data-value": a.value }) })
|
|
1198
1221
|
]
|
|
1199
1222
|
}
|
|
1200
1223
|
);
|
|
1201
1224
|
}
|
|
1202
|
-
function
|
|
1225
|
+
function oa({ className: a, ...t }) {
|
|
1203
1226
|
return /* @__PURE__ */ s(
|
|
1204
|
-
|
|
1227
|
+
N.Track,
|
|
1205
1228
|
{
|
|
1206
1229
|
className: i(
|
|
1207
1230
|
"bg-surface border-2 rounded-full relative flex w-full items-center",
|
|
@@ -1224,12 +1247,12 @@ function Z({ className: a, ...t }) {
|
|
|
1224
1247
|
}
|
|
1225
1248
|
);
|
|
1226
1249
|
}
|
|
1227
|
-
function
|
|
1250
|
+
function Tt({
|
|
1228
1251
|
className: a,
|
|
1229
1252
|
...t
|
|
1230
1253
|
}) {
|
|
1231
1254
|
return /* @__PURE__ */ s(
|
|
1232
|
-
|
|
1255
|
+
N.Indicator,
|
|
1233
1256
|
{
|
|
1234
1257
|
"data-slot": "progress-indicator",
|
|
1235
1258
|
className: i(
|
|
@@ -1247,7 +1270,7 @@ function kt({
|
|
|
1247
1270
|
}
|
|
1248
1271
|
);
|
|
1249
1272
|
}
|
|
1250
|
-
function
|
|
1273
|
+
function At({
|
|
1251
1274
|
className: a,
|
|
1252
1275
|
children: t,
|
|
1253
1276
|
value: e,
|
|
@@ -1255,7 +1278,7 @@ function yt({
|
|
|
1255
1278
|
...o
|
|
1256
1279
|
}) {
|
|
1257
1280
|
return /* @__PURE__ */ s(
|
|
1258
|
-
|
|
1281
|
+
N.Indicator,
|
|
1259
1282
|
{
|
|
1260
1283
|
"data-slot": "progress-indicator-group",
|
|
1261
1284
|
"data-value": e,
|
|
@@ -1286,7 +1309,7 @@ function yt({
|
|
|
1286
1309
|
}
|
|
1287
1310
|
);
|
|
1288
1311
|
}
|
|
1289
|
-
const
|
|
1312
|
+
const Ot = f("bg-border shrink-0", {
|
|
1290
1313
|
variants: {
|
|
1291
1314
|
stroke: {
|
|
1292
1315
|
thin: "border-0.5",
|
|
@@ -1303,23 +1326,23 @@ const Nt = g("bg-border shrink-0", {
|
|
|
1303
1326
|
orientation: "horizontal"
|
|
1304
1327
|
}
|
|
1305
1328
|
});
|
|
1306
|
-
function
|
|
1329
|
+
function It({
|
|
1307
1330
|
className: a,
|
|
1308
1331
|
orientation: t,
|
|
1309
1332
|
stroke: e,
|
|
1310
1333
|
...r
|
|
1311
1334
|
}) {
|
|
1312
1335
|
return /* @__PURE__ */ s(
|
|
1313
|
-
|
|
1336
|
+
Sa,
|
|
1314
1337
|
{
|
|
1315
1338
|
"data-slot": "separator",
|
|
1316
1339
|
orientation: t,
|
|
1317
|
-
className: i(
|
|
1340
|
+
className: i(Ot({ orientation: t, stroke: e }), a),
|
|
1318
1341
|
...r
|
|
1319
1342
|
}
|
|
1320
1343
|
);
|
|
1321
1344
|
}
|
|
1322
|
-
const
|
|
1345
|
+
const Et = f("bg-foreground/30 rounded-base", {
|
|
1323
1346
|
variants: {
|
|
1324
1347
|
variant: {
|
|
1325
1348
|
circle: "aspect-square w-auto rounded-full",
|
|
@@ -1333,7 +1356,7 @@ const Pt = g("bg-foreground/30 rounded-base", {
|
|
|
1333
1356
|
}
|
|
1334
1357
|
}
|
|
1335
1358
|
});
|
|
1336
|
-
function
|
|
1359
|
+
function Rt({
|
|
1337
1360
|
variant: a = "default",
|
|
1338
1361
|
animate: t = !0,
|
|
1339
1362
|
className: e,
|
|
@@ -1343,12 +1366,12 @@ function Tt({
|
|
|
1343
1366
|
"div",
|
|
1344
1367
|
{
|
|
1345
1368
|
"data-slot": "skeleton",
|
|
1346
|
-
className: i(
|
|
1369
|
+
className: i(Et({ variant: a, animate: t }), e),
|
|
1347
1370
|
...r
|
|
1348
1371
|
}
|
|
1349
1372
|
);
|
|
1350
1373
|
}
|
|
1351
|
-
const
|
|
1374
|
+
const _t = f(
|
|
1352
1375
|
"neo-base neo-switch-focus relative cursor-pointer inline-flex items-center data-checked:bg-main data-unchecked:bg-surface shrink-0 border-2 border-border transition-[translate,box-shadow,color] aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
|
|
1353
1376
|
{
|
|
1354
1377
|
variants: {
|
|
@@ -1371,32 +1394,32 @@ const At = g(
|
|
|
1371
1394
|
}
|
|
1372
1395
|
}
|
|
1373
1396
|
);
|
|
1374
|
-
function
|
|
1397
|
+
function St({
|
|
1375
1398
|
className: a,
|
|
1376
1399
|
size: t = "md",
|
|
1377
1400
|
rounded: e = "full",
|
|
1378
1401
|
onCheckedChange: r,
|
|
1379
1402
|
...o
|
|
1380
1403
|
}) {
|
|
1381
|
-
const { trigger:
|
|
1404
|
+
const { trigger: d } = U();
|
|
1382
1405
|
return /* @__PURE__ */ s(
|
|
1383
|
-
|
|
1406
|
+
aa.Root,
|
|
1384
1407
|
{
|
|
1385
1408
|
"data-slot": "switch",
|
|
1386
1409
|
"data-size": t,
|
|
1387
1410
|
"data-rounded": e,
|
|
1388
1411
|
className: i(
|
|
1389
|
-
|
|
1412
|
+
_t({ size: t, rounded: e }),
|
|
1390
1413
|
"peer group/switch",
|
|
1391
1414
|
a
|
|
1392
1415
|
),
|
|
1393
1416
|
"aria-label": o["aria-label"] ?? "switch",
|
|
1394
|
-
onCheckedChange: (l,
|
|
1395
|
-
|
|
1417
|
+
onCheckedChange: (l, c) => {
|
|
1418
|
+
d(Pa), r?.(l, c);
|
|
1396
1419
|
},
|
|
1397
1420
|
...o,
|
|
1398
1421
|
children: /* @__PURE__ */ s(
|
|
1399
|
-
|
|
1422
|
+
aa.Thumb,
|
|
1400
1423
|
{
|
|
1401
1424
|
"data-slot": "switch-thumb",
|
|
1402
1425
|
className: i(
|
|
@@ -1421,7 +1444,7 @@ function Ot({
|
|
|
1421
1444
|
}
|
|
1422
1445
|
);
|
|
1423
1446
|
}
|
|
1424
|
-
const
|
|
1447
|
+
const Vt = f("w-full caption-bottom text-sm", {
|
|
1425
1448
|
variants: {
|
|
1426
1449
|
variant: {
|
|
1427
1450
|
default: "",
|
|
@@ -1430,7 +1453,7 @@ const It = g("w-full caption-bottom text-sm", {
|
|
|
1430
1453
|
}
|
|
1431
1454
|
}
|
|
1432
1455
|
});
|
|
1433
|
-
function
|
|
1456
|
+
function Lt({
|
|
1434
1457
|
className: a,
|
|
1435
1458
|
variant: t = "default",
|
|
1436
1459
|
...e
|
|
@@ -1445,14 +1468,14 @@ function Et({
|
|
|
1445
1468
|
{
|
|
1446
1469
|
"data-slot": "table",
|
|
1447
1470
|
"data-variant": t,
|
|
1448
|
-
className: i(
|
|
1471
|
+
className: i(Vt({ variant: t }), "group/table", a),
|
|
1449
1472
|
...e
|
|
1450
1473
|
}
|
|
1451
1474
|
)
|
|
1452
1475
|
}
|
|
1453
1476
|
);
|
|
1454
1477
|
}
|
|
1455
|
-
function
|
|
1478
|
+
function jt({ className: a, ...t }) {
|
|
1456
1479
|
return /* @__PURE__ */ s(
|
|
1457
1480
|
"thead",
|
|
1458
1481
|
{
|
|
@@ -1462,7 +1485,7 @@ function Rt({ className: a, ...t }) {
|
|
|
1462
1485
|
}
|
|
1463
1486
|
);
|
|
1464
1487
|
}
|
|
1465
|
-
function
|
|
1488
|
+
function $t({ className: a, ...t }) {
|
|
1466
1489
|
return /* @__PURE__ */ s(
|
|
1467
1490
|
"tbody",
|
|
1468
1491
|
{
|
|
@@ -1472,7 +1495,7 @@ function _t({ className: a, ...t }) {
|
|
|
1472
1495
|
}
|
|
1473
1496
|
);
|
|
1474
1497
|
}
|
|
1475
|
-
function
|
|
1498
|
+
function Bt({ className: a, ...t }) {
|
|
1476
1499
|
return /* @__PURE__ */ s(
|
|
1477
1500
|
"tfoot",
|
|
1478
1501
|
{
|
|
@@ -1488,7 +1511,7 @@ function Vt({ className: a, ...t }) {
|
|
|
1488
1511
|
}
|
|
1489
1512
|
);
|
|
1490
1513
|
}
|
|
1491
|
-
function
|
|
1514
|
+
function Dt({ className: a, ...t }) {
|
|
1492
1515
|
return /* @__PURE__ */ s(
|
|
1493
1516
|
"tr",
|
|
1494
1517
|
{
|
|
@@ -1514,7 +1537,7 @@ function St({ className: a, ...t }) {
|
|
|
1514
1537
|
}
|
|
1515
1538
|
);
|
|
1516
1539
|
}
|
|
1517
|
-
function
|
|
1540
|
+
function Ut({ className: a, ...t }) {
|
|
1518
1541
|
return /* @__PURE__ */ s(
|
|
1519
1542
|
"th",
|
|
1520
1543
|
{
|
|
@@ -1529,7 +1552,7 @@ function jt({ className: a, ...t }) {
|
|
|
1529
1552
|
}
|
|
1530
1553
|
);
|
|
1531
1554
|
}
|
|
1532
|
-
function
|
|
1555
|
+
function Gt({ className: a, ...t }) {
|
|
1533
1556
|
return /* @__PURE__ */ s(
|
|
1534
1557
|
"td",
|
|
1535
1558
|
{
|
|
@@ -1544,7 +1567,7 @@ function Lt({ className: a, ...t }) {
|
|
|
1544
1567
|
}
|
|
1545
1568
|
);
|
|
1546
1569
|
}
|
|
1547
|
-
function
|
|
1570
|
+
function Ht({
|
|
1548
1571
|
className: a,
|
|
1549
1572
|
...t
|
|
1550
1573
|
}) {
|
|
@@ -1560,93 +1583,93 @@ function $t({
|
|
|
1560
1583
|
}
|
|
1561
1584
|
);
|
|
1562
1585
|
}
|
|
1563
|
-
const
|
|
1564
|
-
function
|
|
1586
|
+
const Ft = ["bindings", "formField", "events", "ssr", "pdf"], Mt = ["children", "bindings", "events", "ssr", "pdf"];
|
|
1587
|
+
function sa(a) {
|
|
1565
1588
|
return {
|
|
1566
1589
|
valueProp: a.valueProp,
|
|
1567
1590
|
changeProp: a.changeProp,
|
|
1568
1591
|
extract: a.extractor
|
|
1569
1592
|
};
|
|
1570
1593
|
}
|
|
1571
|
-
function
|
|
1594
|
+
function Kt(a) {
|
|
1572
1595
|
if (a)
|
|
1573
1596
|
return typeof a == "object" && "default" in a ? Object.fromEntries(
|
|
1574
1597
|
Object.entries(a).map(([t, e]) => [
|
|
1575
1598
|
t,
|
|
1576
|
-
|
|
1599
|
+
sa(e)
|
|
1577
1600
|
])
|
|
1578
|
-
) :
|
|
1601
|
+
) : sa(a);
|
|
1579
1602
|
}
|
|
1580
|
-
function
|
|
1603
|
+
function Wt(a, { components: t = {}, controlledInputs: e = {} }) {
|
|
1581
1604
|
const r = { ...a.components };
|
|
1582
1605
|
for (const o of /* @__PURE__ */ new Set([...Object.keys(t), ...Object.keys(e)])) {
|
|
1583
|
-
const
|
|
1606
|
+
const d = Object.hasOwn(r, o) ? r[o] : void 0, l = Object.hasOwn(t, o) ? t[o] : d?.component;
|
|
1584
1607
|
if (l === void 0) continue;
|
|
1585
|
-
const
|
|
1608
|
+
const c = Object.hasOwn(e, o) ? Kt(e[o]) : d?.controlled;
|
|
1586
1609
|
r[o] = {
|
|
1587
|
-
...
|
|
1610
|
+
...d,
|
|
1588
1611
|
component: l,
|
|
1589
|
-
controlled:
|
|
1590
|
-
capabilities:
|
|
1612
|
+
controlled: c,
|
|
1613
|
+
capabilities: d?.capabilities ?? (c ? Ft : Mt)
|
|
1591
1614
|
};
|
|
1592
1615
|
}
|
|
1593
1616
|
return { ...a, components: r };
|
|
1594
1617
|
}
|
|
1595
|
-
const
|
|
1596
|
-
[
|
|
1597
|
-
[
|
|
1598
|
-
[
|
|
1599
|
-
[
|
|
1600
|
-
[
|
|
1601
|
-
[
|
|
1602
|
-
[
|
|
1603
|
-
[
|
|
1604
|
-
[
|
|
1605
|
-
[
|
|
1606
|
-
[
|
|
1607
|
-
[
|
|
1608
|
-
[
|
|
1609
|
-
[
|
|
1610
|
-
[
|
|
1611
|
-
[
|
|
1612
|
-
[
|
|
1613
|
-
[
|
|
1614
|
-
[
|
|
1615
|
-
[
|
|
1616
|
-
[
|
|
1617
|
-
[
|
|
1618
|
-
[
|
|
1619
|
-
[
|
|
1620
|
-
[
|
|
1621
|
-
[
|
|
1622
|
-
[
|
|
1623
|
-
[
|
|
1624
|
-
[
|
|
1625
|
-
[
|
|
1626
|
-
[
|
|
1627
|
-
[
|
|
1628
|
-
[
|
|
1629
|
-
[
|
|
1630
|
-
[
|
|
1631
|
-
[
|
|
1632
|
-
[
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1635
|
-
[
|
|
1636
|
-
[
|
|
1637
|
-
[
|
|
1638
|
-
[
|
|
1639
|
-
[
|
|
1640
|
-
[
|
|
1641
|
-
[
|
|
1642
|
-
[
|
|
1643
|
-
[
|
|
1644
|
-
[
|
|
1645
|
-
[
|
|
1646
|
-
[
|
|
1647
|
-
[
|
|
1648
|
-
},
|
|
1649
|
-
[
|
|
1618
|
+
const Xt = {
|
|
1619
|
+
[n.A]: ua,
|
|
1620
|
+
[n.H]: pa,
|
|
1621
|
+
[n.P]: ga,
|
|
1622
|
+
[n.OL]: "ol",
|
|
1623
|
+
[n.UL]: "ul",
|
|
1624
|
+
[n.LI]: "li",
|
|
1625
|
+
[n.DIV]: "div",
|
|
1626
|
+
[n.SPAN]: "span",
|
|
1627
|
+
[n.IMAGE]: "img",
|
|
1628
|
+
[n.ACCORDION]: Ma,
|
|
1629
|
+
[n.ACCORDION_ITEM]: Ka,
|
|
1630
|
+
[n.ACCORDION_TRIGGER]: Wa,
|
|
1631
|
+
[n.ACCORDION_CONTENT]: Xa,
|
|
1632
|
+
[n.ALERT]: Ya,
|
|
1633
|
+
[n.AVATAR]: Qa,
|
|
1634
|
+
[n.BADGE]: at,
|
|
1635
|
+
[n.BUTTON]: la,
|
|
1636
|
+
[n.CARD]: et,
|
|
1637
|
+
[n.CARD_HEADER]: rt,
|
|
1638
|
+
[n.CARD_TITLE]: ot,
|
|
1639
|
+
[n.CARD_DESCRIPTION]: st,
|
|
1640
|
+
[n.CARD_CONTENT]: it,
|
|
1641
|
+
[n.CARD_FOOTER]: lt,
|
|
1642
|
+
[n.CARD_ACTION]: nt,
|
|
1643
|
+
[n.CARD_ICON]: dt,
|
|
1644
|
+
[n.CHECKBOX]: ut,
|
|
1645
|
+
[n.COLLAPSIBLE]: pt,
|
|
1646
|
+
[n.COLLAPSIBLE_TRIGGER]: gt,
|
|
1647
|
+
[n.COLLAPSIBLE_CONTENT]: mt,
|
|
1648
|
+
[n.OTP]: ft,
|
|
1649
|
+
[n.INPUT]: ma,
|
|
1650
|
+
[n.INPUT_GROUP]: ht,
|
|
1651
|
+
[n.INPUT_GROUP_TEXT]: zt,
|
|
1652
|
+
[n.INPUT_GROUP_ADDON]: vt,
|
|
1653
|
+
[n.INPUT_GROUP_INPUT]: kt,
|
|
1654
|
+
[n.INPUT_GROUP_BUTTON]: wt,
|
|
1655
|
+
[n.INPUT_GROUP_TEXTAREA]: yt,
|
|
1656
|
+
[n.LABEL]: Nt,
|
|
1657
|
+
[n.LOADER]: Ta,
|
|
1658
|
+
[n.PROGRESS]: Pt,
|
|
1659
|
+
[n.SWITCH]: St,
|
|
1660
|
+
[n.SEPARATOR]: It,
|
|
1661
|
+
[n.SKELETON]: Rt,
|
|
1662
|
+
[n.TABLE]: Lt,
|
|
1663
|
+
[n.TABLE_HEADER]: jt,
|
|
1664
|
+
[n.TABLE_BODY]: $t,
|
|
1665
|
+
[n.TABLE_FOOTER]: Bt,
|
|
1666
|
+
[n.TABLE_HEAD]: Ut,
|
|
1667
|
+
[n.TABLE_ROW]: Dt,
|
|
1668
|
+
[n.TABLE_CELL]: Gt,
|
|
1669
|
+
[n.TABLE_CAPTION]: Ht,
|
|
1670
|
+
[n.TEXTAREA]: fa
|
|
1671
|
+
}, qt = {
|
|
1672
|
+
[n.INPUT]: {
|
|
1650
1673
|
text: {
|
|
1651
1674
|
valueProp: "value",
|
|
1652
1675
|
changeProp: "onChange",
|
|
@@ -1675,37 +1698,37 @@ const Ht = {
|
|
|
1675
1698
|
}
|
|
1676
1699
|
},
|
|
1677
1700
|
// input-otp calls onChange with the new string, not an event.
|
|
1678
|
-
[
|
|
1701
|
+
[n.OTP]: {
|
|
1679
1702
|
valueProp: "value",
|
|
1680
1703
|
changeProp: "onChange",
|
|
1681
1704
|
extractor: (a) => a
|
|
1682
1705
|
},
|
|
1683
|
-
[
|
|
1706
|
+
[n.CHECKBOX]: {
|
|
1684
1707
|
valueProp: "checked",
|
|
1685
1708
|
changeProp: "onCheckedChange",
|
|
1686
1709
|
extractor: (a) => a
|
|
1687
1710
|
},
|
|
1688
|
-
[
|
|
1711
|
+
[n.TEXTAREA]: {
|
|
1689
1712
|
valueProp: "value",
|
|
1690
1713
|
changeProp: "onChange",
|
|
1691
1714
|
extractor: (a) => a.target.value
|
|
1692
1715
|
},
|
|
1693
|
-
[
|
|
1716
|
+
[n.INPUT_GROUP_INPUT]: {
|
|
1694
1717
|
valueProp: "value",
|
|
1695
1718
|
changeProp: "onChange",
|
|
1696
1719
|
extractor: (a) => a.target.value
|
|
1697
1720
|
},
|
|
1698
|
-
[
|
|
1721
|
+
[n.INPUT_GROUP_TEXTAREA]: {
|
|
1699
1722
|
valueProp: "value",
|
|
1700
1723
|
changeProp: "onChange",
|
|
1701
1724
|
extractor: (a) => a.target.value
|
|
1702
1725
|
},
|
|
1703
|
-
[
|
|
1726
|
+
[n.SWITCH]: {
|
|
1704
1727
|
valueProp: "checked",
|
|
1705
1728
|
changeProp: "onCheckedChange",
|
|
1706
1729
|
extractor: (a) => a
|
|
1707
1730
|
}
|
|
1708
|
-
},
|
|
1731
|
+
}, Yt = Wt(
|
|
1709
1732
|
{
|
|
1710
1733
|
id: "pebble-ui",
|
|
1711
1734
|
version: "1.0.0",
|
|
@@ -1713,24 +1736,24 @@ const Ht = {
|
|
|
1713
1736
|
fallback: "div",
|
|
1714
1737
|
components: {}
|
|
1715
1738
|
},
|
|
1716
|
-
{ components:
|
|
1717
|
-
),
|
|
1718
|
-
function
|
|
1719
|
-
return
|
|
1739
|
+
{ components: Xt, controlledInputs: qt }
|
|
1740
|
+
), ha = da(Yt);
|
|
1741
|
+
function Jt() {
|
|
1742
|
+
return ia(ha);
|
|
1720
1743
|
}
|
|
1721
|
-
const
|
|
1722
|
-
function
|
|
1723
|
-
return
|
|
1744
|
+
const ba = da("web");
|
|
1745
|
+
function Te() {
|
|
1746
|
+
return ia(ba);
|
|
1724
1747
|
}
|
|
1725
|
-
function
|
|
1748
|
+
function Ae({
|
|
1726
1749
|
registry: a,
|
|
1727
1750
|
render: t = "web",
|
|
1728
1751
|
children: e
|
|
1729
1752
|
}) {
|
|
1730
|
-
const r =
|
|
1731
|
-
return /* @__PURE__ */ s(
|
|
1753
|
+
const r = Jt();
|
|
1754
|
+
return /* @__PURE__ */ s(ha.Provider, { value: a ?? r, children: /* @__PURE__ */ s(ba.Provider, { value: t, children: e }) });
|
|
1732
1755
|
}
|
|
1733
|
-
const
|
|
1756
|
+
const Qt = /* @__PURE__ */ new Set([
|
|
1734
1757
|
"area",
|
|
1735
1758
|
"base",
|
|
1736
1759
|
"br",
|
|
@@ -1745,57 +1768,58 @@ const Kt = /* @__PURE__ */ new Set([
|
|
|
1745
1768
|
"source",
|
|
1746
1769
|
"track",
|
|
1747
1770
|
"wbr"
|
|
1748
|
-
]),
|
|
1749
|
-
function
|
|
1750
|
-
return t ?
|
|
1771
|
+
]), I = (a, t, e) => `${a.type}-${e}-${t}`;
|
|
1772
|
+
function na(a, t, e) {
|
|
1773
|
+
return t ? F(t).reduce((o, d) => {
|
|
1751
1774
|
if (o != null)
|
|
1752
|
-
return o[
|
|
1775
|
+
return o[M(d)];
|
|
1753
1776
|
}, a) ?? e : a;
|
|
1754
1777
|
}
|
|
1755
|
-
function
|
|
1778
|
+
function Oe(a, t, e) {
|
|
1756
1779
|
if (!t) {
|
|
1757
1780
|
Object.assign(a, e);
|
|
1758
1781
|
return;
|
|
1759
1782
|
}
|
|
1760
|
-
const r =
|
|
1783
|
+
const r = F(t).map(M);
|
|
1784
|
+
if (r.includes("__proto__")) return;
|
|
1761
1785
|
let o = a;
|
|
1762
|
-
for (let
|
|
1763
|
-
const l =
|
|
1764
|
-
o[l]
|
|
1786
|
+
for (let d = 0; d < r.length - 1; d++) {
|
|
1787
|
+
const l = r[d];
|
|
1788
|
+
(!Object.hasOwn(o, l) || o[l] == null) && (o[l] = /^\d+$/.test(r[d + 1]) ? [] : {}), o = o[l];
|
|
1765
1789
|
}
|
|
1766
|
-
o[
|
|
1790
|
+
o[r[r.length - 1]] = e;
|
|
1767
1791
|
}
|
|
1768
|
-
function
|
|
1792
|
+
function va(a) {
|
|
1769
1793
|
const t = a.match(/^[^.[]+/);
|
|
1770
1794
|
return t ? t[0] : a;
|
|
1771
1795
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return !!t && Object.hasOwn(t,
|
|
1796
|
+
function j(a, t) {
|
|
1797
|
+
return !!t && Object.hasOwn(t, va(a));
|
|
1774
1798
|
}
|
|
1775
|
-
function
|
|
1799
|
+
function $(a, t) {
|
|
1776
1800
|
if (!t) return a;
|
|
1777
|
-
const e =
|
|
1801
|
+
const e = va(a), r = t[e];
|
|
1778
1802
|
return r == null ? a : r + a.slice(e.length);
|
|
1779
1803
|
}
|
|
1780
|
-
const
|
|
1781
|
-
function
|
|
1804
|
+
const k = (a, t) => ja(a, t);
|
|
1805
|
+
function Ie(a, t) {
|
|
1782
1806
|
const e = {};
|
|
1783
|
-
for (const { key: r, segments: o, numericNext:
|
|
1807
|
+
for (const { key: r, segments: o, numericNext: d } of a) {
|
|
1784
1808
|
const l = t(r);
|
|
1785
1809
|
if (o.length === 1) {
|
|
1786
1810
|
e[r] = l;
|
|
1787
1811
|
continue;
|
|
1788
1812
|
}
|
|
1789
|
-
let
|
|
1790
|
-
for (let
|
|
1791
|
-
const p = o[
|
|
1792
|
-
(!(p in
|
|
1813
|
+
let c = e;
|
|
1814
|
+
for (let u = 0; u < o.length - 1; u++) {
|
|
1815
|
+
const p = o[u];
|
|
1816
|
+
(!(p in c) || typeof c[p] != "object" || c[p] === null) && (c[p] = d[u] ? [] : {}), c = c[p];
|
|
1793
1817
|
}
|
|
1794
|
-
|
|
1818
|
+
c[o[o.length - 1]] = l;
|
|
1795
1819
|
}
|
|
1796
1820
|
return e;
|
|
1797
1821
|
}
|
|
1798
|
-
const
|
|
1822
|
+
const Zt = (a, t) => {
|
|
1799
1823
|
if (!t) return "div";
|
|
1800
1824
|
if (Object.hasOwn(a.components, t))
|
|
1801
1825
|
return a.components[t].component;
|
|
@@ -1804,186 +1828,204 @@ const Xt = (a, t) => {
|
|
|
1804
1828
|
`Bonsai: unknown component type "${t}" in registry "${a.id}"@"${a.version}"`
|
|
1805
1829
|
);
|
|
1806
1830
|
return a.fallback && a.fallback !== "div" ? a.fallback : "div";
|
|
1807
|
-
},
|
|
1831
|
+
}, xa = (a, t, e, r = {}) => {
|
|
1808
1832
|
const o = {
|
|
1809
1833
|
key: e,
|
|
1810
|
-
...a.
|
|
1834
|
+
...a.args,
|
|
1811
1835
|
...r
|
|
1812
1836
|
};
|
|
1813
|
-
for (const
|
|
1814
|
-
(a.dynamicArgs.has(
|
|
1837
|
+
for (const d of Object.keys(o))
|
|
1838
|
+
if (a.dynamicArgs.has(d) || Object.hasOwn(r, d)) {
|
|
1839
|
+
const l = k(o[d], t);
|
|
1840
|
+
o[d] = ca.has(d) ? H(l) : l;
|
|
1841
|
+
}
|
|
1815
1842
|
return o;
|
|
1816
1843
|
};
|
|
1817
|
-
function
|
|
1844
|
+
function ae(a, t, e, r, o) {
|
|
1818
1845
|
return r[a.changeProp] ? {} : {
|
|
1819
|
-
[a.changeProp]: (
|
|
1846
|
+
[a.changeProp]: (d) => o(t, a.extract(d)),
|
|
1820
1847
|
[a.valueProp]: e
|
|
1821
1848
|
};
|
|
1822
1849
|
}
|
|
1823
|
-
const
|
|
1850
|
+
const te = () => {
|
|
1824
1851
|
};
|
|
1825
|
-
function
|
|
1852
|
+
function ee(a, t, e, r) {
|
|
1853
|
+
return () => {
|
|
1854
|
+
for (const { set: o, to: d } of a)
|
|
1855
|
+
j(o, e.valueScope) || r($(o, e.scope), B(k(d, t)));
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
function re({
|
|
1826
1859
|
node: a,
|
|
1827
1860
|
dataSlice: t,
|
|
1828
1861
|
elementKey: e,
|
|
1829
1862
|
ElementType: r,
|
|
1830
1863
|
ctrlInput: o,
|
|
1831
|
-
keyPath:
|
|
1864
|
+
keyPath: d,
|
|
1832
1865
|
storeValue: l,
|
|
1833
|
-
updateData:
|
|
1834
|
-
|
|
1866
|
+
updateData: c,
|
|
1867
|
+
actionProps: u,
|
|
1868
|
+
children: p
|
|
1835
1869
|
}) {
|
|
1836
|
-
const
|
|
1870
|
+
const b = ae(
|
|
1837
1871
|
o,
|
|
1838
|
-
|
|
1872
|
+
d,
|
|
1839
1873
|
l,
|
|
1840
|
-
a.
|
|
1841
|
-
|
|
1842
|
-
),
|
|
1843
|
-
return
|
|
1874
|
+
a.args,
|
|
1875
|
+
c
|
|
1876
|
+
), x = xa(a, t, e, { ...u, ...b });
|
|
1877
|
+
return p !== void 0 ? _(r, x, p) : _(r, x);
|
|
1844
1878
|
}
|
|
1845
|
-
function
|
|
1879
|
+
function oe(a, t, e) {
|
|
1846
1880
|
if (!Object.hasOwn(a.components, t)) return;
|
|
1847
1881
|
const r = a.components[t].controlled;
|
|
1848
1882
|
if (r) {
|
|
1849
1883
|
if (typeof r == "object" && "default" in r) {
|
|
1850
|
-
const o = e
|
|
1851
|
-
return (Object.hasOwn(
|
|
1884
|
+
const o = e.args?.type || "default", d = r;
|
|
1885
|
+
return (Object.hasOwn(d, o) ? d[o] : void 0) || d.default;
|
|
1852
1886
|
}
|
|
1853
1887
|
return r;
|
|
1854
1888
|
}
|
|
1855
1889
|
}
|
|
1856
|
-
function
|
|
1890
|
+
function Ee(a, t) {
|
|
1857
1891
|
return a === "pdf" || t === "div" ? "div" : "form";
|
|
1858
1892
|
}
|
|
1859
|
-
function
|
|
1860
|
-
if (Array.isArray(a)) return a.map((t) =>
|
|
1893
|
+
function B(a) {
|
|
1894
|
+
if (Array.isArray(a)) return a.map((t) => B(t));
|
|
1861
1895
|
if (a !== null && typeof a == "object") {
|
|
1862
1896
|
const t = Object.getPrototypeOf(a);
|
|
1863
1897
|
if (t === Object.prototype || t === null) {
|
|
1864
1898
|
const e = {};
|
|
1865
1899
|
for (const [r, o] of Object.entries(a))
|
|
1866
|
-
e[r] =
|
|
1900
|
+
e[r] = B(o);
|
|
1867
1901
|
return e;
|
|
1868
1902
|
}
|
|
1869
1903
|
}
|
|
1870
1904
|
return a;
|
|
1871
1905
|
}
|
|
1872
|
-
function
|
|
1873
|
-
const
|
|
1874
|
-
if (!
|
|
1875
|
-
const p =
|
|
1876
|
-
if (
|
|
1877
|
-
return
|
|
1906
|
+
function Re(a, t, e, r, o, d, l, c) {
|
|
1907
|
+
const u = a.source;
|
|
1908
|
+
if (!u) return null;
|
|
1909
|
+
const p = c.dataSlice(a, r, o);
|
|
1910
|
+
if (typeof u == "string")
|
|
1911
|
+
return k(u, p);
|
|
1878
1912
|
try {
|
|
1879
|
-
const
|
|
1913
|
+
const b = a.type;
|
|
1880
1914
|
if (a.isIf)
|
|
1881
|
-
return
|
|
1882
|
-
(
|
|
1883
|
-
|
|
1915
|
+
return k(u.args?.condition, p) ? /* @__PURE__ */ s(R, { children: a.children.map(
|
|
1916
|
+
(m, y) => c.renderChild(
|
|
1917
|
+
m,
|
|
1884
1918
|
y,
|
|
1885
1919
|
`${e}-${t}-if`,
|
|
1886
1920
|
r,
|
|
1887
|
-
|
|
1921
|
+
I(m, y, `${e}-${t}-if`)
|
|
1888
1922
|
)
|
|
1889
1923
|
) }) : null;
|
|
1890
1924
|
if (a.isEach) {
|
|
1891
|
-
const
|
|
1892
|
-
return /* @__PURE__ */ s(
|
|
1893
|
-
const
|
|
1894
|
-
return /* @__PURE__ */ s(
|
|
1895
|
-
(
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1925
|
+
const g = a.each, { as: m, keyExpr: y, rawItemsPath: S } = g, K = k(u.args?.items, p), wa = Array.isArray(K) ? K : [], za = S && !j(S, r.valueScope) ? $(S, r.scope) : "";
|
|
1926
|
+
return /* @__PURE__ */ s(R, { children: wa.map((W, X) => {
|
|
1927
|
+
const ka = c.rowCtx(r, o, W, X, g, za), q = y ? k(y, { ...p, [m]: W }) : X, Y = `${e}-${t}-each-${q}`;
|
|
1928
|
+
return /* @__PURE__ */ s(ya, { children: a.children.map(
|
|
1929
|
+
(J, Q) => c.renderChild(
|
|
1930
|
+
J,
|
|
1931
|
+
Q,
|
|
1932
|
+
Y,
|
|
1933
|
+
ka,
|
|
1934
|
+
I(J, Q, Y)
|
|
1901
1935
|
)
|
|
1902
|
-
) }, String(
|
|
1936
|
+
) }, String(q));
|
|
1903
1937
|
}) });
|
|
1904
1938
|
}
|
|
1905
|
-
const
|
|
1906
|
-
let
|
|
1907
|
-
if (
|
|
1908
|
-
const
|
|
1909
|
-
if (
|
|
1910
|
-
|
|
1911
|
-
keyPath:
|
|
1912
|
-
storeValue:
|
|
1939
|
+
const x = Zt(d, b), C = I(a, t, e), w = oe(d, b, u);
|
|
1940
|
+
let v;
|
|
1941
|
+
if (w) {
|
|
1942
|
+
const g = a.argPaths[w.valueProp];
|
|
1943
|
+
if (g !== void 0 && j(g, r.valueScope))
|
|
1944
|
+
v = {
|
|
1945
|
+
keyPath: g,
|
|
1946
|
+
storeValue: na(r.valueScope, g),
|
|
1913
1947
|
readOnly: !0
|
|
1914
1948
|
};
|
|
1915
|
-
else if (
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1918
|
-
keyPath:
|
|
1919
|
-
storeValue:
|
|
1949
|
+
else if (g !== void 0) {
|
|
1950
|
+
const m = $(g, r.scope);
|
|
1951
|
+
v = {
|
|
1952
|
+
keyPath: m,
|
|
1953
|
+
storeValue: na(o.data ?? o, m)
|
|
1920
1954
|
};
|
|
1921
|
-
} else a.dynamicArgs.has(
|
|
1955
|
+
} else a.dynamicArgs.has(w.valueProp) && (v = {
|
|
1922
1956
|
keyPath: "",
|
|
1923
|
-
storeValue:
|
|
1957
|
+
storeValue: k(u.args?.[w.valueProp], p),
|
|
1924
1958
|
readOnly: !0
|
|
1925
1959
|
});
|
|
1926
1960
|
}
|
|
1927
1961
|
if (a.isImage) {
|
|
1928
|
-
const
|
|
1929
|
-
if (
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
|
|
1962
|
+
const g = H(k(a.args.src, p));
|
|
1963
|
+
if (g === "" || g == null) return null;
|
|
1964
|
+
}
|
|
1965
|
+
let P;
|
|
1966
|
+
if (a.actions) {
|
|
1967
|
+
const g = Object.hasOwn(d.components, b) ? d.components[b].capabilities : void 0;
|
|
1968
|
+
P = {
|
|
1969
|
+
onClick: !g || g.includes("events") ? ee(a.actions, p, r, l) : void 0
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
const O = a.children.length > 0 ? a.children.map(
|
|
1973
|
+
(g, m) => c.renderChild(
|
|
1974
|
+
g,
|
|
1933
1975
|
m,
|
|
1934
|
-
v,
|
|
1935
1976
|
`${e}-${t}`,
|
|
1936
1977
|
r,
|
|
1937
|
-
|
|
1978
|
+
I(a, m, `${e}-${t}`)
|
|
1938
1979
|
)
|
|
1939
|
-
) : void 0,
|
|
1940
|
-
if (
|
|
1980
|
+
) : void 0, z = typeof x == "string" && Qt.has(x) ? void 0 : O;
|
|
1981
|
+
if (v && w)
|
|
1941
1982
|
return /* @__PURE__ */ s(
|
|
1942
|
-
|
|
1983
|
+
re,
|
|
1943
1984
|
{
|
|
1944
1985
|
node: a,
|
|
1945
1986
|
dataSlice: p,
|
|
1946
|
-
elementKey:
|
|
1947
|
-
ElementType:
|
|
1948
|
-
ctrlInput:
|
|
1949
|
-
keyPath:
|
|
1950
|
-
storeValue:
|
|
1951
|
-
updateData:
|
|
1952
|
-
|
|
1987
|
+
elementKey: C,
|
|
1988
|
+
ElementType: x,
|
|
1989
|
+
ctrlInput: w,
|
|
1990
|
+
keyPath: v.keyPath,
|
|
1991
|
+
storeValue: v.storeValue,
|
|
1992
|
+
updateData: v.readOnly ? te : l,
|
|
1993
|
+
actionProps: P,
|
|
1994
|
+
children: z
|
|
1953
1995
|
}
|
|
1954
1996
|
);
|
|
1955
|
-
const
|
|
1956
|
-
return
|
|
1957
|
-
} catch (
|
|
1958
|
-
return console.error(`Error at ${e}-${t}:`,
|
|
1997
|
+
const h = xa(a, p, C, P);
|
|
1998
|
+
return z !== void 0 ? _(x, h, z) : _(x, h);
|
|
1999
|
+
} catch (b) {
|
|
2000
|
+
return console.error(`Error at ${e}-${t}:`, b), null;
|
|
1959
2001
|
}
|
|
1960
2002
|
}
|
|
1961
2003
|
export {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2004
|
+
Ae as B,
|
|
2005
|
+
ht as I,
|
|
2006
|
+
Qt as V,
|
|
2007
|
+
qt as a,
|
|
2008
|
+
Yt as b,
|
|
2009
|
+
Xt as c,
|
|
2010
|
+
Pe as d,
|
|
2011
|
+
Ne as e,
|
|
2012
|
+
Wt as f,
|
|
2013
|
+
vt as g,
|
|
2014
|
+
kt as h,
|
|
2015
|
+
Ce as i,
|
|
2016
|
+
Jt as j,
|
|
2017
|
+
Re as k,
|
|
2018
|
+
Ie as l,
|
|
2019
|
+
na as m,
|
|
2020
|
+
B as n,
|
|
2021
|
+
Zt as o,
|
|
2022
|
+
I as p,
|
|
2023
|
+
xa as q,
|
|
2024
|
+
Ee as r,
|
|
2025
|
+
Oe as s,
|
|
2026
|
+
va as t,
|
|
2027
|
+
Te as u,
|
|
2028
|
+
$ as v,
|
|
2029
|
+
ha as w
|
|
1988
2030
|
};
|
|
1989
|
-
//# sourceMappingURL=render-shared-
|
|
2031
|
+
//# sourceMappingURL=render-shared-Cwb527d4.js.map
|