@cloudflare/kumo 2.0.2 → 2.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/CHANGELOG.md +19 -0
- package/ai/component-registry.json +17 -3
- package/ai/component-registry.md +34 -4
- package/ai/schemas.ts +5 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +10 -4
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +510 -504
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{autocomplete-48aq0d244bs2e8zv.js → autocomplete-ln55iimq2n2s5uex.js} +27 -26
- package/dist/chunks/autocomplete-ln55iimq2n2s5uex.js.map +1 -0
- package/dist/chunks/{badge-dan90i0rzy4pwa1j.js → badge-kqox9toi0sygfbno.js} +16 -16
- package/dist/chunks/badge-kqox9toi0sygfbno.js.map +1 -0
- package/dist/chunks/{banner-eiwcnk7ts21s3bnb.js → banner-eux4y8xaogjg64af.js} +32 -31
- package/dist/chunks/banner-eux4y8xaogjg64af.js.map +1 -0
- package/dist/chunks/{breadcrumbs-cxcwf2l1ki3ffg5d.js → breadcrumbs-do6uyvm4msqus0sz.js} +33 -32
- package/dist/chunks/breadcrumbs-do6uyvm4msqus0sz.js.map +1 -0
- package/dist/chunks/{button-6by9ntsa3nj553mq.js → button-dh366jtvswxj0fw3.js} +63 -62
- package/dist/chunks/button-dh366jtvswxj0fw3.js.map +1 -0
- package/dist/chunks/{checkbox-hvxfvhtx1qjo2mww.js → checkbox-cf2pwdupyjweg184.js} +2 -2
- package/dist/chunks/checkbox-cf2pwdupyjweg184.js.map +1 -0
- package/dist/chunks/{clipboard-text-hswydzx3iql369sd.js → clipboard-text-hn2uwdj4ozenezd5.js} +57 -56
- package/dist/chunks/clipboard-text-hn2uwdj4ozenezd5.js.map +1 -0
- package/dist/chunks/{code-f9v1ikwhekqw274q.js → code-bbnjm8vk9hxl129r.js} +20 -19
- package/dist/chunks/code-bbnjm8vk9hxl129r.js.map +1 -0
- package/dist/chunks/{combobox-fq36ye0hstote16x.js → combobox-fivcg1oorkmmmk78.js} +11 -10
- package/dist/chunks/combobox-fivcg1oorkmmmk78.js.map +1 -0
- package/dist/chunks/{command-palette-md65owxt5hv4rt9r.js → command-palette-kgiso245exdons4r.js} +2 -2
- package/dist/chunks/{command-palette-md65owxt5hv4rt9r.js.map → command-palette-kgiso245exdons4r.js.map} +1 -1
- package/dist/chunks/{dialog-k3f1fbam6nt96k8x.js → dialog-mqpvaidy0vnjwrfp.js} +16 -15
- package/dist/chunks/dialog-mqpvaidy0vnjwrfp.js.map +1 -0
- package/dist/chunks/{dropdown-zbax0zowy6m9zhmt.js → dropdown-gp5iptj1niq14lpv.js} +76 -75
- package/dist/chunks/dropdown-gp5iptj1niq14lpv.js.map +1 -0
- package/dist/chunks/{empty-b82oer7npkhtkx7k.js → empty-fr78te81o3qaj3in.js} +27 -26
- package/dist/chunks/empty-fr78te81o3qaj3in.js.map +1 -0
- package/dist/chunks/{field-c0wf94plit2gci59.js → field-dgf36p7cmz1crlnu.js} +2 -2
- package/dist/chunks/{field-c0wf94plit2gci59.js.map → field-dgf36p7cmz1crlnu.js.map} +1 -1
- package/dist/chunks/{grid-hj1ylz16p7g5uelh.js → grid-do93dv1rjggqxx7p.js} +30 -29
- package/dist/chunks/grid-do93dv1rjggqxx7p.js.map +1 -0
- package/dist/chunks/{input-ncfowphv81yq7fyy.js → input-2y9vg81trmamkb6k.js} +51 -50
- package/dist/chunks/input-2y9vg81trmamkb6k.js.map +1 -0
- package/dist/chunks/{input-area-bkyzu6f7gsck479h.js → input-area-i5wulip5pau3u6ss.js} +3 -3
- package/dist/chunks/{input-area-bkyzu6f7gsck479h.js.map → input-area-i5wulip5pau3u6ss.js.map} +1 -1
- package/dist/chunks/{input-group-bidweffa0zyg8gt0.js → input-group-bm9wxzovpvzn1c25.js} +4 -4
- package/dist/chunks/{input-group-bidweffa0zyg8gt0.js.map → input-group-bm9wxzovpvzn1c25.js.map} +1 -1
- package/dist/chunks/{label-c3h9i3y4wiccelt7.js → label-efa0uvb8zqyjwpc8.js} +2 -2
- package/dist/chunks/{label-c3h9i3y4wiccelt7.js.map → label-efa0uvb8zqyjwpc8.js.map} +1 -1
- package/dist/chunks/{link-kt74pxkud4olmcer.js → link-m9hlspftl34nseme.js} +28 -27
- package/dist/chunks/link-m9hlspftl34nseme.js.map +1 -0
- package/dist/chunks/{loader-hr2w7cpqeev3p3vl.js → loader-g8a6j76ue5nq0lr8.js} +15 -14
- package/dist/chunks/loader-g8a6j76ue5nq0lr8.js.map +1 -0
- package/dist/chunks/{pagination-jb3mncivbwsoi1se.js → pagination-fdmcwreb27eej9l3.js} +3 -3
- package/dist/chunks/pagination-fdmcwreb27eej9l3.js.map +1 -0
- package/dist/chunks/{radio-datzh3pilz8ojak1.js → radio-f95mt237ru8fyc03.js} +44 -43
- package/dist/chunks/radio-f95mt237ru8fyc03.js.map +1 -0
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js +11 -0
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js.map +1 -0
- package/dist/chunks/{select-g261chvosodu22i8.js → select-j8evv2iblgs5fa9s.js} +4 -4
- package/dist/chunks/{select-g261chvosodu22i8.js.map → select-j8evv2iblgs5fa9s.js.map} +1 -1
- package/dist/chunks/{sensitive-input-cijagk551mesdtk4.js → sensitive-input-cmb9jt42bv8jftei.js} +3 -3
- package/dist/chunks/{sensitive-input-cijagk551mesdtk4.js.map → sensitive-input-cmb9jt42bv8jftei.js.map} +1 -1
- package/dist/chunks/surface-k0e8mq1x00b7i8r6.js.map +1 -1
- package/dist/chunks/{switch-jdfsr3j3oa1qxegw.js → switch-c4qjga6x3axmoi20.js} +2 -2
- package/dist/chunks/switch-c4qjga6x3axmoi20.js.map +1 -0
- package/dist/chunks/{table-iudje0lva0z68jto.js → table-jvqy3tu48xa75n2t.js} +56 -55
- package/dist/chunks/table-jvqy3tu48xa75n2t.js.map +1 -0
- package/dist/chunks/{text-f7t467waymhb30sx.js → text-be7ehenoyldhyjma.js} +32 -28
- package/dist/chunks/text-be7ehenoyldhyjma.js.map +1 -0
- package/dist/chunks/{toast-h573o0tc7tefivk2.js → toast-c7kqwuj7qj9dx6gs.js} +75 -74
- package/dist/chunks/toast-c7kqwuj7qj9dx6gs.js.map +1 -0
- package/dist/chunks/tooltip-odudhkxe282wxinq.js.map +1 -1
- package/dist/code.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/index.js +33 -33
- package/dist/src/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/src/components/badge/badge.d.ts.map +1 -1
- package/dist/src/components/banner/banner.d.ts.map +1 -1
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/code/code.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/dialog/dialog.d.ts.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/components/empty/empty.d.ts.map +1 -1
- package/dist/src/components/grid/grid.d.ts.map +1 -1
- package/dist/src/components/input/input.d.ts.map +1 -1
- package/dist/src/components/link/link.d.ts.map +1 -1
- package/dist/src/components/loader/loader.d.ts.map +1 -1
- package/dist/src/components/pagination/pagination.d.ts.map +1 -1
- package/dist/src/components/radio/radio.d.ts.map +1 -1
- package/dist/src/components/surface/surface.d.ts.map +1 -1
- package/dist/src/components/switch/switch.d.ts.map +1 -1
- package/dist/src/components/table/table.d.ts.map +1 -1
- package/dist/src/components/text/text.d.ts.map +1 -1
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/utils/resolve-variant.d.ts +27 -0
- package/dist/src/utils/resolve-variant.d.ts.map +1 -0
- package/package.json +1 -1
- package/scripts/component-registry/metadata.ts +18 -3
- package/dist/chunks/autocomplete-48aq0d244bs2e8zv.js.map +0 -1
- package/dist/chunks/badge-dan90i0rzy4pwa1j.js.map +0 -1
- package/dist/chunks/banner-eiwcnk7ts21s3bnb.js.map +0 -1
- package/dist/chunks/breadcrumbs-cxcwf2l1ki3ffg5d.js.map +0 -1
- package/dist/chunks/button-6by9ntsa3nj553mq.js.map +0 -1
- package/dist/chunks/checkbox-hvxfvhtx1qjo2mww.js.map +0 -1
- package/dist/chunks/clipboard-text-hswydzx3iql369sd.js.map +0 -1
- package/dist/chunks/code-f9v1ikwhekqw274q.js.map +0 -1
- package/dist/chunks/combobox-fq36ye0hstote16x.js.map +0 -1
- package/dist/chunks/dialog-k3f1fbam6nt96k8x.js.map +0 -1
- package/dist/chunks/dropdown-zbax0zowy6m9zhmt.js.map +0 -1
- package/dist/chunks/empty-b82oer7npkhtkx7k.js.map +0 -1
- package/dist/chunks/grid-hj1ylz16p7g5uelh.js.map +0 -1
- package/dist/chunks/input-ncfowphv81yq7fyy.js.map +0 -1
- package/dist/chunks/link-kt74pxkud4olmcer.js.map +0 -1
- package/dist/chunks/loader-hr2w7cpqeev3p3vl.js.map +0 -1
- package/dist/chunks/pagination-jb3mncivbwsoi1se.js.map +0 -1
- package/dist/chunks/radio-datzh3pilz8ojak1.js.map +0 -1
- package/dist/chunks/switch-jdfsr3j3oa1qxegw.js.map +0 -1
- package/dist/chunks/table-iudje0lva0z68jto.js.map +0 -1
- package/dist/chunks/text-f7t467waymhb30sx.js.map +0 -1
- package/dist/chunks/toast-h573o0tc7tefivk2.js.map +0 -1
package/dist/ai/schemas.js
CHANGED
|
@@ -98,7 +98,7 @@ function $(e, o, t) {
|
|
|
98
98
|
configurable: !0
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function B(e, o, t) {
|
|
102
102
|
Object.defineProperty(e, o, {
|
|
103
103
|
value: t,
|
|
104
104
|
writable: !0,
|
|
@@ -190,7 +190,7 @@ function Ao(e, o) {
|
|
|
190
190
|
throw new Error(`Unrecognized key: "${l}"`);
|
|
191
191
|
o[l] && (i[l] = t.shape[l]);
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return B(this, "shape", i), i;
|
|
194
194
|
},
|
|
195
195
|
checks: []
|
|
196
196
|
});
|
|
@@ -208,7 +208,7 @@ function xo(e, o) {
|
|
|
208
208
|
throw new Error(`Unrecognized key: "${l}"`);
|
|
209
209
|
o[l] && delete i[l];
|
|
210
210
|
}
|
|
211
|
-
return
|
|
211
|
+
return B(this, "shape", i), i;
|
|
212
212
|
},
|
|
213
213
|
checks: []
|
|
214
214
|
});
|
|
@@ -227,7 +227,7 @@ function jo(e, o) {
|
|
|
227
227
|
const r = M(e._zod.def, {
|
|
228
228
|
get shape() {
|
|
229
229
|
const a = { ...e._zod.def.shape, ...o };
|
|
230
|
-
return
|
|
230
|
+
return B(this, "shape", a), a;
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
return J(e, r);
|
|
@@ -238,7 +238,7 @@ function Ro(e, o) {
|
|
|
238
238
|
const t = M(e._zod.def, {
|
|
239
239
|
get shape() {
|
|
240
240
|
const n = { ...e._zod.def.shape, ...o };
|
|
241
|
-
return
|
|
241
|
+
return B(this, "shape", n), n;
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
return J(e, t);
|
|
@@ -247,7 +247,7 @@ function Do(e, o) {
|
|
|
247
247
|
const t = M(e._zod.def, {
|
|
248
248
|
get shape() {
|
|
249
249
|
const n = { ...e._zod.def.shape, ...o._zod.def.shape };
|
|
250
|
-
return
|
|
250
|
+
return B(this, "shape", n), n;
|
|
251
251
|
},
|
|
252
252
|
get catchall() {
|
|
253
253
|
return o._zod.def.catchall;
|
|
@@ -279,7 +279,7 @@ function Uo(e, o, t) {
|
|
|
279
279
|
type: "optional",
|
|
280
280
|
innerType: l[p]
|
|
281
281
|
}) : l[p];
|
|
282
|
-
return
|
|
282
|
+
return B(this, "shape", u), u;
|
|
283
283
|
},
|
|
284
284
|
checks: []
|
|
285
285
|
});
|
|
@@ -304,7 +304,7 @@ function Fo(e, o, t) {
|
|
|
304
304
|
type: "nonoptional",
|
|
305
305
|
innerType: r[i]
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return B(this, "shape", a), a;
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
return J(o, n);
|
|
@@ -317,7 +317,7 @@ function G(e, o = 0) {
|
|
|
317
317
|
return !0;
|
|
318
318
|
return !1;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function V(e, o) {
|
|
321
321
|
return o.map((t) => {
|
|
322
322
|
var n;
|
|
323
323
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
@@ -417,7 +417,7 @@ const we = (e) => (o, t, n, r) => {
|
|
|
417
417
|
success: !1,
|
|
418
418
|
error: new e(a.issues.map((i) => L(i, r, F())))
|
|
419
419
|
} : { success: !0, data: a.value };
|
|
420
|
-
},
|
|
420
|
+
}, Vo = /* @__PURE__ */ de(eo), Bo = (e) => (o, t, n) => {
|
|
421
421
|
const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
422
422
|
return we(e)(o, t, r);
|
|
423
423
|
}, Wo = (e) => (o, t, n) => we(e)(o, t, n), Go = (e) => async (o, t, n) => {
|
|
@@ -821,7 +821,7 @@ const Dt = {
|
|
|
821
821
|
const a = Jo(e, r);
|
|
822
822
|
return a.success ? { value: a.data } : { issues: a.error?.issues };
|
|
823
823
|
} catch {
|
|
824
|
-
return
|
|
824
|
+
return Vo(e, r).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
827
|
vendor: "zod",
|
|
@@ -899,9 +899,9 @@ const Dt = {
|
|
|
899
899
|
};
|
|
900
900
|
}), Jt = /* @__PURE__ */ d("$ZodEmoji", (e, o) => {
|
|
901
901
|
o.pattern ?? (o.pattern = lt()), T.init(e, o);
|
|
902
|
-
}),
|
|
902
|
+
}), Vt = /* @__PURE__ */ d("$ZodNanoID", (e, o) => {
|
|
903
903
|
o.pattern ?? (o.pattern = rt), T.init(e, o);
|
|
904
|
-
}),
|
|
904
|
+
}), Bt = /* @__PURE__ */ d("$ZodCUID", (e, o) => {
|
|
905
905
|
o.pattern ?? (o.pattern = Qo), T.init(e, o);
|
|
906
906
|
}), Wt = /* @__PURE__ */ d("$ZodCUID2", (e, o) => {
|
|
907
907
|
o.pattern ?? (o.pattern = et), T.init(e, o);
|
|
@@ -1085,7 +1085,7 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1085
1085
|
}), t);
|
|
1086
1086
|
});
|
|
1087
1087
|
function Oe(e, o, t) {
|
|
1088
|
-
e.issues.length && o.issues.push(...
|
|
1088
|
+
e.issues.length && o.issues.push(...V(t, e.issues)), o.value[t] = e.value;
|
|
1089
1089
|
}
|
|
1090
1090
|
const gn = /* @__PURE__ */ d("$ZodArray", (e, o) => {
|
|
1091
1091
|
Z.init(e, o), e._zod.parse = (t, n) => {
|
|
@@ -1113,7 +1113,7 @@ function se(e, o, t, n, r) {
|
|
|
1113
1113
|
if (e.issues.length) {
|
|
1114
1114
|
if (r && !(t in n))
|
|
1115
1115
|
return;
|
|
1116
|
-
o.issues.push(...
|
|
1116
|
+
o.issues.push(...V(t, e.issues));
|
|
1117
1117
|
}
|
|
1118
1118
|
e.value === void 0 ? t in n && (o.value[t] = void 0) : o.value[t] = e.value;
|
|
1119
1119
|
}
|
|
@@ -1421,7 +1421,7 @@ const zn = /* @__PURE__ */ d("$ZodTuple", (e, o) => {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
});
|
|
1423
1423
|
function te(e, o, t) {
|
|
1424
|
-
e.issues.length && o.issues.push(...
|
|
1424
|
+
e.issues.length && o.issues.push(...V(t, e.issues)), o.value[t] = e.value;
|
|
1425
1425
|
}
|
|
1426
1426
|
const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
1427
1427
|
Z.init(e, o), e._zod.parse = (t, n) => {
|
|
@@ -1442,8 +1442,8 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1442
1442
|
l.add(typeof p == "number" ? p.toString() : p);
|
|
1443
1443
|
const h = o.valueType._zod.run({ value: r[p], issues: [] }, n);
|
|
1444
1444
|
h instanceof Promise ? a.push(h.then((_) => {
|
|
1445
|
-
_.issues.length && t.issues.push(...
|
|
1446
|
-
})) : (h.issues.length && t.issues.push(...
|
|
1445
|
+
_.issues.length && t.issues.push(...V(p, _.issues)), t.value[p] = _.value;
|
|
1446
|
+
})) : (h.issues.length && t.issues.push(...V(p, h.issues)), t.value[p] = h.value);
|
|
1447
1447
|
}
|
|
1448
1448
|
let u;
|
|
1449
1449
|
for (const p in r)
|
|
@@ -1481,8 +1481,8 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
const h = o.valueType._zod.run({ value: r[l], issues: [] }, n);
|
|
1483
1483
|
h instanceof Promise ? a.push(h.then((_) => {
|
|
1484
|
-
_.issues.length && t.issues.push(...
|
|
1485
|
-
})) : (h.issues.length && t.issues.push(...
|
|
1484
|
+
_.issues.length && t.issues.push(...V(l, _.issues)), t.value[u.value] = _.value;
|
|
1485
|
+
})) : (h.issues.length && t.issues.push(...V(l, h.issues)), t.value[u.value] = h.value);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
return a.length ? Promise.all(a).then(() => t) : t;
|
|
@@ -1748,7 +1748,7 @@ function Jn(e, o) {
|
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
1750
|
// @__NO_SIDE_EFFECTS__
|
|
1751
|
-
function
|
|
1751
|
+
function Vn(e, o) {
|
|
1752
1752
|
return new e({
|
|
1753
1753
|
type: "string",
|
|
1754
1754
|
format: "emoji",
|
|
@@ -1758,7 +1758,7 @@ function Bn(e, o) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
// @__NO_SIDE_EFFECTS__
|
|
1761
|
-
function
|
|
1761
|
+
function Bn(e, o) {
|
|
1762
1762
|
return new e({
|
|
1763
1763
|
type: "string",
|
|
1764
1764
|
format: "nanoid",
|
|
@@ -2467,7 +2467,7 @@ const Ir = (e, o = {}) => (t) => {
|
|
|
2467
2467
|
path: [...n.path, a ? "oneOf" : "anyOf", u]
|
|
2468
2468
|
}));
|
|
2469
2469
|
a ? t.oneOf = i : t.anyOf = i;
|
|
2470
|
-
},
|
|
2470
|
+
}, Vr = (e, o, t, n) => {
|
|
2471
2471
|
const r = e._zod.def, a = O(r.left, o, {
|
|
2472
2472
|
...n,
|
|
2473
2473
|
path: [...n.path, "allOf", 0]
|
|
@@ -2479,7 +2479,7 @@ const Ir = (e, o = {}) => (t) => {
|
|
|
2479
2479
|
...l(i) ? i.allOf : [i]
|
|
2480
2480
|
];
|
|
2481
2481
|
t.allOf = u;
|
|
2482
|
-
},
|
|
2482
|
+
}, Br = (e, o, t, n) => {
|
|
2483
2483
|
const r = t, a = e._zod.def;
|
|
2484
2484
|
r.type = "array";
|
|
2485
2485
|
const i = o.target === "draft-2020-12" ? "prefixItems" : "items", l = o.target === "draft-2020-12" || o.target === "openapi-3.0" ? "items" : "additionalItems", u = a.items.map((w, S) => O(w, o, {
|
|
@@ -2624,7 +2624,7 @@ const yo = (e, o) => {
|
|
|
2624
2624
|
});
|
|
2625
2625
|
}, li = d("ZodError", yo), j = d("ZodError", yo, {
|
|
2626
2626
|
Parent: Error
|
|
2627
|
-
}), ui = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ Se(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */
|
|
2627
|
+
}), ui = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ Se(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */ Bo(j), mi = /* @__PURE__ */ Wo(j), gi = /* @__PURE__ */ Go(j), _i = /* @__PURE__ */ qo(j), vi = /* @__PURE__ */ Ko(j), bi = /* @__PURE__ */ Xo(j), yi = /* @__PURE__ */ Yo(j), zi = /* @__PURE__ */ Ho(j), P = /* @__PURE__ */ d("ZodType", (e, o) => (Z.init(e, o), Object.assign(e["~standard"], {
|
|
2628
2628
|
jsonSchema: {
|
|
2629
2629
|
input: le(e, "input"),
|
|
2630
2630
|
output: le(e, "output")
|
|
@@ -2636,7 +2636,7 @@ const yo = (e, o) => {
|
|
|
2636
2636
|
]
|
|
2637
2637
|
}), {
|
|
2638
2638
|
parent: !0
|
|
2639
|
-
}), e.with = e.check, e.clone = (t, n) => J(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => ui(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => di(e, t, n), e.parseAsync = async (t, n) => pi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => fi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => hi(e, t, n), e.decode = (t, n) => mi(e, t, n), e.encodeAsync = async (t, n) => gi(e, t, n), e.decodeAsync = async (t, n) => _i(e, t, n), e.safeEncode = (t, n) => vi(e, t, n), e.safeDecode = (t, n) => bi(e, t, n), e.safeEncodeAsync = async (t, n) => yi(e, t, n), e.safeDecodeAsync = async (t, n) => zi(e, t, n), e.refine = (t, n) => e.check(_a(t, n)), e.superRefine = (t) => e.check(va(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ X(t)), e.optional = () =>
|
|
2639
|
+
}), e.with = e.check, e.clone = (t, n) => J(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => ui(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => di(e, t, n), e.parseAsync = async (t, n) => pi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => fi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => hi(e, t, n), e.decode = (t, n) => mi(e, t, n), e.encodeAsync = async (t, n) => gi(e, t, n), e.decodeAsync = async (t, n) => _i(e, t, n), e.safeEncode = (t, n) => vi(e, t, n), e.safeDecode = (t, n) => bi(e, t, n), e.safeEncodeAsync = async (t, n) => yi(e, t, n), e.safeDecodeAsync = async (t, n) => zi(e, t, n), e.refine = (t, n) => e.check(_a(t, n)), e.superRefine = (t) => e.check(va(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ X(t)), e.optional = () => Ve(e), e.exactOptional = () => ta(e), e.nullable = () => Be(e), e.nullish = () => Ve(Be(e)), e.nonoptional = (t) => ca(e, t), e.array = () => U(e), e.or = (t) => v([e, t]), e.and = (t) => Xi(e, t), e.transform = (t) => We(e, ea(t)), e.default = (t) => ia(e, t), e.prefault = (t) => sa(e, t), e.catch = (t) => ua(e, t), e.pipe = (t) => We(e, t), e.readonly = () => fa(e), e.describe = (t) => {
|
|
2640
2640
|
const n = e.clone();
|
|
2641
2641
|
return Y.add(n, { description: t }), n;
|
|
2642
2642
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2654,9 +2654,9 @@ const yo = (e, o) => {
|
|
|
2654
2654
|
const t = e._zod.bag;
|
|
2655
2655
|
e.format = t.format ?? null, e.minLength = t.minimum ?? null, e.maxLength = t.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ mr(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ vr(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ br(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ yr(...n)), e.min = (...n) => e.check(/* @__PURE__ */ ce(...n)), e.max = (...n) => e.check(/* @__PURE__ */ ho(...n)), e.length = (...n) => e.check(/* @__PURE__ */ mo(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ ce(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ gr(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ _r(n)), e.trim = () => e.check(/* @__PURE__ */ kr()), e.normalize = (...n) => e.check(/* @__PURE__ */ zr(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wr()), e.toUpperCase = () => e.check(/* @__PURE__ */ Sr()), e.slugify = () => e.check(/* @__PURE__ */ $r());
|
|
2656
2656
|
}), ki = /* @__PURE__ */ d("ZodString", (e, o) => {
|
|
2657
|
-
$e.init(e, o), zo.init(e, o), e.email = (t) => e.check(/* @__PURE__ */ Dn(wi, t)), e.url = (t) => e.check(/* @__PURE__ */ Jn(Si, t)), e.jwt = (t) => e.check(/* @__PURE__ */ rr(Ui, t)), e.emoji = (t) => e.check(/* @__PURE__ */
|
|
2657
|
+
$e.init(e, o), zo.init(e, o), e.email = (t) => e.check(/* @__PURE__ */ Dn(wi, t)), e.url = (t) => e.check(/* @__PURE__ */ Jn(Si, t)), e.jwt = (t) => e.check(/* @__PURE__ */ rr(Ui, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Vn($i, t)), e.guid = (t) => e.check(/* @__PURE__ */ De(Me, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Un(re, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Fn(re, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Ln(re, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Mn(re, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Bn(Zi, t)), e.guid = (t) => e.check(/* @__PURE__ */ De(Me, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Wn(Pi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Gn(Ti, t)), e.ulid = (t) => e.check(/* @__PURE__ */ qn(Oi, t)), e.base64 = (t) => e.check(/* @__PURE__ */ or(ji, t)), e.base64url = (t) => e.check(/* @__PURE__ */ tr(Ri, t)), e.xid = (t) => e.check(/* @__PURE__ */ Kn(Ii, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Xn(Ni, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Yn(Ei, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Hn(Ci, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Qn(Ai, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ er(xi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ nr(Di, t)), e.datetime = (t) => e.check(ti(t)), e.date = (t) => e.check(ri(t)), e.time = (t) => e.check(ai(t)), e.duration = (t) => e.check(ci(t));
|
|
2658
2658
|
});
|
|
2659
|
-
function
|
|
2659
|
+
function c(e) {
|
|
2660
2660
|
return /* @__PURE__ */ Rn(ki, e);
|
|
2661
2661
|
}
|
|
2662
2662
|
const I = /* @__PURE__ */ d("ZodStringFormat", (e, o) => {
|
|
@@ -2672,9 +2672,9 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, o) => {
|
|
|
2672
2672
|
}), $i = /* @__PURE__ */ d("ZodEmoji", (e, o) => {
|
|
2673
2673
|
Jt.init(e, o), I.init(e, o);
|
|
2674
2674
|
}), Zi = /* @__PURE__ */ d("ZodNanoID", (e, o) => {
|
|
2675
|
-
Bt.init(e, o), I.init(e, o);
|
|
2676
|
-
}), Pi = /* @__PURE__ */ d("ZodCUID", (e, o) => {
|
|
2677
2675
|
Vt.init(e, o), I.init(e, o);
|
|
2676
|
+
}), Pi = /* @__PURE__ */ d("ZodCUID", (e, o) => {
|
|
2677
|
+
Bt.init(e, o), I.init(e, o);
|
|
2678
2678
|
}), Ti = /* @__PURE__ */ d("ZodCUID2", (e, o) => {
|
|
2679
2679
|
Wt.init(e, o), I.init(e, o);
|
|
2680
2680
|
}), Oi = /* @__PURE__ */ d("ZodULID", (e, o) => {
|
|
@@ -2728,14 +2728,14 @@ function b(e) {
|
|
|
2728
2728
|
const Ji = /* @__PURE__ */ d("ZodUnknown", (e, o) => {
|
|
2729
2729
|
hn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Rr();
|
|
2730
2730
|
});
|
|
2731
|
-
function
|
|
2731
|
+
function s() {
|
|
2732
2732
|
return /* @__PURE__ */ fr(Ji);
|
|
2733
2733
|
}
|
|
2734
|
-
const
|
|
2734
|
+
const Vi = /* @__PURE__ */ d("ZodNever", (e, o) => {
|
|
2735
2735
|
mn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n);
|
|
2736
2736
|
});
|
|
2737
|
-
function
|
|
2738
|
-
return /* @__PURE__ */ hr(
|
|
2737
|
+
function Bi(e) {
|
|
2738
|
+
return /* @__PURE__ */ hr(Vi, e);
|
|
2739
2739
|
}
|
|
2740
2740
|
const Wi = /* @__PURE__ */ d("ZodArray", (e, o) => {
|
|
2741
2741
|
gn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Lr(e, t, n, r), e.element = o.element, e.min = (t, n) => e.check(/* @__PURE__ */ ce(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ ce(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ ho(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ mo(t, n)), e.unwrap = () => e.element;
|
|
@@ -2744,7 +2744,7 @@ function U(e, o) {
|
|
|
2744
2744
|
return /* @__PURE__ */ Zr(Wi, e, o);
|
|
2745
2745
|
}
|
|
2746
2746
|
const Gi = /* @__PURE__ */ d("ZodObject", (e, o) => {
|
|
2747
|
-
vn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Mr(e, t, n, r), $(e, "shape", () => o.shape), e.keyof = () => y(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall:
|
|
2747
|
+
vn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Mr(e, t, n, r), $(e, "shape", () => o.shape), e.keyof = () => y(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: s() }), e.loose = () => e.clone({ ...e._zod.def, catchall: s() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Bi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (t) => jo(e, t), e.safeExtend = (t) => Ro(e, t), e.merge = (t) => Do(e, t), e.pick = (t) => Ao(e, t), e.omit = (t) => xo(e, t), e.partial = (...t) => Uo(wo, e, t[0]), e.required = (...t) => Fo(So, e, t[0]);
|
|
2748
2748
|
});
|
|
2749
2749
|
function z(e, o) {
|
|
2750
2750
|
const t = {
|
|
@@ -2765,7 +2765,7 @@ function v(e, o) {
|
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
2767
|
const Ki = /* @__PURE__ */ d("ZodIntersection", (e, o) => {
|
|
2768
|
-
yn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) =>
|
|
2768
|
+
yn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r);
|
|
2769
2769
|
});
|
|
2770
2770
|
function Xi(e, o) {
|
|
2771
2771
|
return new Ki({
|
|
@@ -2775,7 +2775,7 @@ function Xi(e, o) {
|
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
2777
2777
|
const Yi = /* @__PURE__ */ d("ZodTuple", (e, o) => {
|
|
2778
|
-
zn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) =>
|
|
2778
|
+
zn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r), e.rest = (t) => e.clone({
|
|
2779
2779
|
...e._zod.def,
|
|
2780
2780
|
rest: t
|
|
2781
2781
|
});
|
|
@@ -2864,7 +2864,7 @@ function ea(e) {
|
|
|
2864
2864
|
const wo = /* @__PURE__ */ d("ZodOptional", (e, o) => {
|
|
2865
2865
|
fo.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2866
2866
|
});
|
|
2867
|
-
function
|
|
2867
|
+
function Ve(e) {
|
|
2868
2868
|
return new wo({
|
|
2869
2869
|
type: "optional",
|
|
2870
2870
|
innerType: e
|
|
@@ -2882,7 +2882,7 @@ function ta(e) {
|
|
|
2882
2882
|
const na = /* @__PURE__ */ d("ZodNullable", (e, o) => {
|
|
2883
2883
|
Zn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2884
2884
|
});
|
|
2885
|
-
function
|
|
2885
|
+
function Be(e) {
|
|
2886
2886
|
return new na({
|
|
2887
2887
|
type: "nullable",
|
|
2888
2888
|
innerType: e
|
|
@@ -2971,17 +2971,17 @@ function va(e) {
|
|
|
2971
2971
|
return /* @__PURE__ */ Tr(e);
|
|
2972
2972
|
}
|
|
2973
2973
|
const m = v([
|
|
2974
|
-
|
|
2974
|
+
c(),
|
|
2975
2975
|
g(),
|
|
2976
2976
|
f(),
|
|
2977
2977
|
b(),
|
|
2978
|
-
z({ path:
|
|
2978
|
+
z({ path: c() })
|
|
2979
2979
|
]), ie = ma(
|
|
2980
2980
|
() => v([
|
|
2981
2981
|
z({ and: U(ie) }),
|
|
2982
2982
|
z({ or: U(ie) }),
|
|
2983
2983
|
z({ not: ie }),
|
|
2984
|
-
z({ path:
|
|
2984
|
+
z({ path: c() }),
|
|
2985
2985
|
z({ eq: W([m, m]) }),
|
|
2986
2986
|
z({ neq: W([m, m]) }),
|
|
2987
2987
|
z({ gt: W([m, m]) }),
|
|
@@ -2991,93 +2991,93 @@ const m = v([
|
|
|
2991
2991
|
])
|
|
2992
2992
|
), ba = v([
|
|
2993
2993
|
f(),
|
|
2994
|
-
z({ path:
|
|
2994
|
+
z({ path: c() }),
|
|
2995
2995
|
z({ auth: y(["signedIn", "signedOut"]) }),
|
|
2996
2996
|
ie
|
|
2997
2997
|
]), ya = z({
|
|
2998
|
-
title:
|
|
2999
|
-
message:
|
|
2998
|
+
title: c(),
|
|
2999
|
+
message: c(),
|
|
3000
3000
|
variant: y(["default", "danger"]).optional(),
|
|
3001
|
-
confirmLabel:
|
|
3002
|
-
cancelLabel:
|
|
3001
|
+
confirmLabel: c().optional(),
|
|
3002
|
+
cancelLabel: c().optional()
|
|
3003
3003
|
}), za = z({
|
|
3004
|
-
name:
|
|
3005
|
-
params: H(
|
|
3004
|
+
name: c(),
|
|
3005
|
+
params: H(c(), m).optional(),
|
|
3006
3006
|
confirm: ya.optional(),
|
|
3007
|
-
onSuccess: z({ set: H(
|
|
3008
|
-
onError: z({ set: H(
|
|
3007
|
+
onSuccess: z({ set: H(c(), m) }).optional(),
|
|
3008
|
+
onError: z({ set: H(c(), m) }).optional()
|
|
3009
3009
|
}), ka = z({
|
|
3010
|
-
items: U(
|
|
3010
|
+
items: U(s()),
|
|
3011
3011
|
// Array of items to display in the dropdown
|
|
3012
|
-
value: U(
|
|
3012
|
+
value: U(s()).optional(),
|
|
3013
3013
|
// The controlled input value
|
|
3014
3014
|
open: f().optional(),
|
|
3015
3015
|
// Whether the popup is open (controlled)
|
|
3016
|
-
children: v([
|
|
3016
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3017
3017
|
// Autocomplete content (input group, popup content)
|
|
3018
|
-
className:
|
|
3018
|
+
className: c().optional(),
|
|
3019
3019
|
// Additional CSS classes
|
|
3020
|
-
label: v([
|
|
3020
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3021
3021
|
// Label content (enables Field wrapper)
|
|
3022
3022
|
required: f().optional(),
|
|
3023
3023
|
// Whether the field is required
|
|
3024
|
-
labelTooltip: v([
|
|
3024
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3025
3025
|
// Tooltip content to display next to the label
|
|
3026
|
-
description: v([
|
|
3026
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3027
3027
|
// Helper text displayed below the field
|
|
3028
|
-
error:
|
|
3028
|
+
error: s().optional()
|
|
3029
3029
|
// Error message or validation error object
|
|
3030
3030
|
}), wa = z({
|
|
3031
3031
|
variant: y(["primary", "secondary", "error", "warning", "success", "destructive", "info", "beta", "outline", "red", "green", "neutral", "orange", "purple", "teal", "teal-subtle", "blue"]).optional(),
|
|
3032
3032
|
// Color variant of the badge. Recommended semantic variants: - `"primary"` — Primary badge - `"secondary"` — Secondary badge - `"error"` — Error badge - `"warning"` — Warning badge - `"success"` — Success badge - `"info"` — Info badge Additional token variants: - `"red"`, `"orange"`, `"green"`, `"teal"`, `"blue"`, `"purple"`, `"neutral"` - `"teal-subtle"`, `"neutral-subtle"` - `"inverted"` - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features
|
|
3033
|
-
className:
|
|
3033
|
+
className: c().optional(),
|
|
3034
3034
|
// Additional CSS classes merged via `cn()`.
|
|
3035
|
-
children: v([
|
|
3035
|
+
children: v([c(), g(), f(), b(), m]).optional()
|
|
3036
3036
|
// Content rendered inside the badge.
|
|
3037
3037
|
}), Sa = z({
|
|
3038
|
-
icon: v([
|
|
3038
|
+
icon: v([c(), g(), f(), b(), m]).optional(),
|
|
3039
3039
|
// Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
|
|
3040
|
-
title:
|
|
3040
|
+
title: c().optional(),
|
|
3041
3041
|
// Primary heading text for the banner. Use for i18n string injection.
|
|
3042
|
-
description: v([
|
|
3042
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3043
3043
|
// Secondary description text displayed below the title. Use for i18n string injection.
|
|
3044
|
-
action: v([
|
|
3044
|
+
action: v([c(), g(), f(), b(), m]).optional(),
|
|
3045
3045
|
// Action slot rendered at the trailing end of the banner (e.g. a CTA button or link). Only used in structured mode (with `title` or `description`).
|
|
3046
|
-
text:
|
|
3047
|
-
children: v([
|
|
3046
|
+
text: c().optional(),
|
|
3047
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3048
3048
|
variant: y(["default", "alert", "error"]).optional(),
|
|
3049
3049
|
// Visual style of the banner. - `"default"` — Informational blue banner for general messages - `"alert"` — Warning yellow banner for cautionary messages - `"error"` — Error red banner for critical issues
|
|
3050
|
-
className:
|
|
3050
|
+
className: c().optional()
|
|
3051
3051
|
// Additional CSS classes merged via `cn()`.
|
|
3052
3052
|
}), $a = z({
|
|
3053
3053
|
size: y(["sm", "base"]).optional(),
|
|
3054
3054
|
// Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
|
|
3055
|
-
children: v([
|
|
3056
|
-
className:
|
|
3055
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3056
|
+
className: c().optional()
|
|
3057
3057
|
// Additional CSS classes merged via `cn()`.
|
|
3058
3058
|
}), Za = z({
|
|
3059
3059
|
shape: y(["base", "square", "circle"]).optional(),
|
|
3060
3060
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3061
3061
|
variant: y(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
|
|
3062
|
-
children: v([
|
|
3063
|
-
className:
|
|
3064
|
-
icon: v([
|
|
3062
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3063
|
+
className: c().optional(),
|
|
3064
|
+
icon: v([c(), g(), f(), b(), m]).optional(),
|
|
3065
3065
|
// Icon from `@phosphor-icons/react` or a React element. Rendered before children.
|
|
3066
3066
|
loading: f().optional(),
|
|
3067
3067
|
// Shows a loading spinner and disables interaction.
|
|
3068
|
-
title:
|
|
3069
|
-
id:
|
|
3070
|
-
lang:
|
|
3068
|
+
title: c().optional(),
|
|
3069
|
+
id: c().optional(),
|
|
3070
|
+
lang: c().optional(),
|
|
3071
3071
|
disabled: f().optional(),
|
|
3072
|
-
name:
|
|
3072
|
+
name: c().optional(),
|
|
3073
3073
|
type: y(["submit", "reset", "button"]).optional(),
|
|
3074
|
-
value:
|
|
3074
|
+
value: s().optional()
|
|
3075
3075
|
}), Pa = z({
|
|
3076
3076
|
variant: y(["default", "error"]).optional(),
|
|
3077
3077
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3078
|
-
label: v([
|
|
3078
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3079
3079
|
// Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
|
|
3080
|
-
labelTooltip: v([
|
|
3080
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3081
3081
|
// Tooltip content to display next to the label via an info icon
|
|
3082
3082
|
controlFirst: f().optional(),
|
|
3083
3083
|
// When true (default), checkbox appears before label. When false, label appears before checkbox.
|
|
@@ -3087,355 +3087,355 @@ const m = v([
|
|
|
3087
3087
|
// Whether the checkbox is in indeterminate state
|
|
3088
3088
|
disabled: f().optional(),
|
|
3089
3089
|
// Whether the checkbox is disabled
|
|
3090
|
-
name:
|
|
3090
|
+
name: c().optional(),
|
|
3091
3091
|
// Name for form submission
|
|
3092
3092
|
required: f().optional(),
|
|
3093
3093
|
// Whether the field is required
|
|
3094
|
-
className:
|
|
3094
|
+
className: c().optional()
|
|
3095
3095
|
// Additional class name
|
|
3096
3096
|
}), Ta = z({
|
|
3097
3097
|
size: y(["sm", "base", "lg"]).optional(),
|
|
3098
3098
|
// Size of the clipboard text field. - `"sm"` — Small clipboard text for compact UIs - `"base"` — Default clipboard text size - `"lg"` — Large clipboard text for prominent display
|
|
3099
|
-
text:
|
|
3099
|
+
text: c(),
|
|
3100
3100
|
// The text to display and copy to clipboard.
|
|
3101
|
-
textToCopy:
|
|
3101
|
+
textToCopy: c().optional(),
|
|
3102
3102
|
// If provided, this text will be copied to clipboard instead of the `text` prop.
|
|
3103
|
-
className:
|
|
3103
|
+
className: c().optional(),
|
|
3104
3104
|
// Additional CSS classes merged via `cn()`.
|
|
3105
|
-
tooltip:
|
|
3105
|
+
tooltip: s().optional(),
|
|
3106
3106
|
// Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
3107
|
-
labels:
|
|
3107
|
+
labels: s().optional()
|
|
3108
3108
|
// Accessible labels for i18n.
|
|
3109
3109
|
}), Oa = z({
|
|
3110
|
-
children: v([
|
|
3111
|
-
className:
|
|
3112
|
-
height:
|
|
3113
|
-
id:
|
|
3114
|
-
lang:
|
|
3115
|
-
media:
|
|
3116
|
-
method:
|
|
3117
|
-
name:
|
|
3118
|
-
target:
|
|
3119
|
-
type:
|
|
3120
|
-
width:
|
|
3121
|
-
accentHeight:
|
|
3110
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3111
|
+
className: c().optional(),
|
|
3112
|
+
height: s().optional(),
|
|
3113
|
+
id: c().optional(),
|
|
3114
|
+
lang: c().optional(),
|
|
3115
|
+
media: c().optional(),
|
|
3116
|
+
method: c().optional(),
|
|
3117
|
+
name: c().optional(),
|
|
3118
|
+
target: c().optional(),
|
|
3119
|
+
type: c().optional(),
|
|
3120
|
+
width: s().optional(),
|
|
3121
|
+
accentHeight: s().optional(),
|
|
3122
3122
|
accumulate: y(["none", "sum"]).optional(),
|
|
3123
3123
|
additive: y(["replace", "sum"]).optional(),
|
|
3124
3124
|
alignmentBaseline: y(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
|
|
3125
3125
|
allowReorder: y(["no", "yes"]).optional(),
|
|
3126
|
-
alphabetic:
|
|
3127
|
-
amplitude:
|
|
3126
|
+
alphabetic: s().optional(),
|
|
3127
|
+
amplitude: s().optional(),
|
|
3128
3128
|
arabicForm: y(["initial", "medial", "terminal", "isolated"]).optional(),
|
|
3129
|
-
ascent:
|
|
3130
|
-
attributeName:
|
|
3131
|
-
attributeType:
|
|
3132
|
-
autoReverse:
|
|
3133
|
-
azimuth:
|
|
3134
|
-
baseFrequency:
|
|
3135
|
-
baselineShift:
|
|
3136
|
-
baseProfile:
|
|
3137
|
-
bbox:
|
|
3138
|
-
begin:
|
|
3139
|
-
bias:
|
|
3140
|
-
by:
|
|
3141
|
-
calcMode:
|
|
3142
|
-
capHeight:
|
|
3143
|
-
clip:
|
|
3144
|
-
clipPath:
|
|
3145
|
-
clipPathUnits:
|
|
3146
|
-
clipRule:
|
|
3147
|
-
colorInterpolation:
|
|
3129
|
+
ascent: s().optional(),
|
|
3130
|
+
attributeName: c().optional(),
|
|
3131
|
+
attributeType: c().optional(),
|
|
3132
|
+
autoReverse: s().optional(),
|
|
3133
|
+
azimuth: s().optional(),
|
|
3134
|
+
baseFrequency: s().optional(),
|
|
3135
|
+
baselineShift: s().optional(),
|
|
3136
|
+
baseProfile: s().optional(),
|
|
3137
|
+
bbox: s().optional(),
|
|
3138
|
+
begin: s().optional(),
|
|
3139
|
+
bias: s().optional(),
|
|
3140
|
+
by: s().optional(),
|
|
3141
|
+
calcMode: s().optional(),
|
|
3142
|
+
capHeight: s().optional(),
|
|
3143
|
+
clip: s().optional(),
|
|
3144
|
+
clipPath: c().optional(),
|
|
3145
|
+
clipPathUnits: s().optional(),
|
|
3146
|
+
clipRule: s().optional(),
|
|
3147
|
+
colorInterpolation: s().optional(),
|
|
3148
3148
|
colorInterpolationFilters: y(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
|
|
3149
|
-
colorProfile:
|
|
3150
|
-
colorRendering:
|
|
3151
|
-
contentScriptType:
|
|
3152
|
-
contentStyleType:
|
|
3153
|
-
cursor:
|
|
3154
|
-
cx:
|
|
3155
|
-
cy:
|
|
3156
|
-
d:
|
|
3157
|
-
decelerate:
|
|
3158
|
-
descent:
|
|
3159
|
-
diffuseConstant:
|
|
3160
|
-
direction:
|
|
3161
|
-
display:
|
|
3162
|
-
divisor:
|
|
3149
|
+
colorProfile: s().optional(),
|
|
3150
|
+
colorRendering: s().optional(),
|
|
3151
|
+
contentScriptType: s().optional(),
|
|
3152
|
+
contentStyleType: s().optional(),
|
|
3153
|
+
cursor: s().optional(),
|
|
3154
|
+
cx: s().optional(),
|
|
3155
|
+
cy: s().optional(),
|
|
3156
|
+
d: c().optional(),
|
|
3157
|
+
decelerate: s().optional(),
|
|
3158
|
+
descent: s().optional(),
|
|
3159
|
+
diffuseConstant: s().optional(),
|
|
3160
|
+
direction: s().optional(),
|
|
3161
|
+
display: s().optional(),
|
|
3162
|
+
divisor: s().optional(),
|
|
3163
3163
|
dominantBaseline: y(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
|
|
3164
|
-
dur:
|
|
3165
|
-
dx:
|
|
3166
|
-
dy:
|
|
3167
|
-
edgeMode:
|
|
3168
|
-
elevation:
|
|
3169
|
-
enableBackground:
|
|
3170
|
-
end:
|
|
3171
|
-
exponent:
|
|
3172
|
-
externalResourcesRequired:
|
|
3173
|
-
fill:
|
|
3174
|
-
fillOpacity:
|
|
3164
|
+
dur: s().optional(),
|
|
3165
|
+
dx: s().optional(),
|
|
3166
|
+
dy: s().optional(),
|
|
3167
|
+
edgeMode: s().optional(),
|
|
3168
|
+
elevation: s().optional(),
|
|
3169
|
+
enableBackground: s().optional(),
|
|
3170
|
+
end: s().optional(),
|
|
3171
|
+
exponent: s().optional(),
|
|
3172
|
+
externalResourcesRequired: s().optional(),
|
|
3173
|
+
fill: c().optional(),
|
|
3174
|
+
fillOpacity: s().optional(),
|
|
3175
3175
|
fillRule: y(["nonzero", "evenodd", "inherit"]).optional(),
|
|
3176
|
-
filter:
|
|
3177
|
-
filterRes:
|
|
3178
|
-
filterUnits:
|
|
3179
|
-
floodColor:
|
|
3180
|
-
floodOpacity:
|
|
3181
|
-
focusable:
|
|
3182
|
-
fontFamily:
|
|
3183
|
-
fontSize:
|
|
3184
|
-
fontSizeAdjust:
|
|
3185
|
-
fontStretch:
|
|
3186
|
-
fontStyle:
|
|
3187
|
-
fontVariant:
|
|
3188
|
-
fontWeight:
|
|
3189
|
-
format:
|
|
3190
|
-
fr:
|
|
3191
|
-
from:
|
|
3192
|
-
fx:
|
|
3193
|
-
fy:
|
|
3194
|
-
g1:
|
|
3195
|
-
g2:
|
|
3196
|
-
glyphName:
|
|
3197
|
-
glyphOrientationHorizontal:
|
|
3198
|
-
glyphOrientationVertical:
|
|
3199
|
-
glyphRef:
|
|
3200
|
-
gradientTransform:
|
|
3201
|
-
gradientUnits:
|
|
3202
|
-
hanging:
|
|
3203
|
-
horizAdvX:
|
|
3204
|
-
horizOriginX:
|
|
3205
|
-
href:
|
|
3206
|
-
ideographic:
|
|
3207
|
-
imageRendering:
|
|
3208
|
-
in2:
|
|
3209
|
-
in:
|
|
3210
|
-
intercept:
|
|
3211
|
-
k1:
|
|
3212
|
-
k2:
|
|
3213
|
-
k3:
|
|
3214
|
-
k4:
|
|
3215
|
-
k:
|
|
3216
|
-
kernelMatrix:
|
|
3217
|
-
kernelUnitLength:
|
|
3218
|
-
kerning:
|
|
3219
|
-
keyPoints:
|
|
3220
|
-
keySplines:
|
|
3221
|
-
keyTimes:
|
|
3222
|
-
lengthAdjust:
|
|
3223
|
-
letterSpacing:
|
|
3224
|
-
lightingColor:
|
|
3225
|
-
limitingConeAngle:
|
|
3226
|
-
local:
|
|
3227
|
-
markerEnd:
|
|
3228
|
-
markerHeight:
|
|
3229
|
-
markerMid:
|
|
3230
|
-
markerStart:
|
|
3231
|
-
markerUnits:
|
|
3232
|
-
markerWidth:
|
|
3233
|
-
mask:
|
|
3234
|
-
maskContentUnits:
|
|
3235
|
-
maskUnits:
|
|
3236
|
-
mathematical:
|
|
3237
|
-
mode:
|
|
3238
|
-
numOctaves:
|
|
3239
|
-
offset:
|
|
3240
|
-
opacity:
|
|
3241
|
-
operator:
|
|
3242
|
-
order:
|
|
3243
|
-
orient:
|
|
3244
|
-
orientation:
|
|
3245
|
-
origin:
|
|
3246
|
-
overflow:
|
|
3247
|
-
overlinePosition:
|
|
3248
|
-
overlineThickness:
|
|
3249
|
-
paintOrder:
|
|
3250
|
-
panose1:
|
|
3251
|
-
path:
|
|
3252
|
-
pathLength:
|
|
3253
|
-
patternContentUnits:
|
|
3254
|
-
patternTransform:
|
|
3255
|
-
patternUnits:
|
|
3256
|
-
pointerEvents:
|
|
3257
|
-
points:
|
|
3258
|
-
pointsAtX:
|
|
3259
|
-
pointsAtY:
|
|
3260
|
-
pointsAtZ:
|
|
3261
|
-
preserveAlpha:
|
|
3262
|
-
preserveAspectRatio:
|
|
3263
|
-
primitiveUnits:
|
|
3264
|
-
r:
|
|
3265
|
-
radius:
|
|
3266
|
-
refX:
|
|
3267
|
-
refY:
|
|
3268
|
-
renderingIntent:
|
|
3269
|
-
repeatCount:
|
|
3270
|
-
repeatDur:
|
|
3271
|
-
requiredExtensions:
|
|
3272
|
-
requiredFeatures:
|
|
3273
|
-
restart:
|
|
3274
|
-
result:
|
|
3275
|
-
rotate:
|
|
3276
|
-
rx:
|
|
3277
|
-
ry:
|
|
3278
|
-
scale:
|
|
3279
|
-
seed:
|
|
3280
|
-
shapeRendering:
|
|
3281
|
-
slope:
|
|
3282
|
-
spacing:
|
|
3283
|
-
specularConstant:
|
|
3284
|
-
specularExponent:
|
|
3285
|
-
speed:
|
|
3286
|
-
spreadMethod:
|
|
3287
|
-
startOffset:
|
|
3288
|
-
stdDeviation:
|
|
3289
|
-
stemh:
|
|
3290
|
-
stemv:
|
|
3291
|
-
stitchTiles:
|
|
3292
|
-
stopColor:
|
|
3293
|
-
stopOpacity:
|
|
3294
|
-
strikethroughPosition:
|
|
3295
|
-
strikethroughThickness:
|
|
3296
|
-
string:
|
|
3297
|
-
stroke:
|
|
3298
|
-
strokeDasharray:
|
|
3299
|
-
strokeDashoffset:
|
|
3176
|
+
filter: c().optional(),
|
|
3177
|
+
filterRes: s().optional(),
|
|
3178
|
+
filterUnits: s().optional(),
|
|
3179
|
+
floodColor: s().optional(),
|
|
3180
|
+
floodOpacity: s().optional(),
|
|
3181
|
+
focusable: s().optional(),
|
|
3182
|
+
fontFamily: c().optional(),
|
|
3183
|
+
fontSize: s().optional(),
|
|
3184
|
+
fontSizeAdjust: s().optional(),
|
|
3185
|
+
fontStretch: s().optional(),
|
|
3186
|
+
fontStyle: s().optional(),
|
|
3187
|
+
fontVariant: s().optional(),
|
|
3188
|
+
fontWeight: s().optional(),
|
|
3189
|
+
format: s().optional(),
|
|
3190
|
+
fr: s().optional(),
|
|
3191
|
+
from: s().optional(),
|
|
3192
|
+
fx: s().optional(),
|
|
3193
|
+
fy: s().optional(),
|
|
3194
|
+
g1: s().optional(),
|
|
3195
|
+
g2: s().optional(),
|
|
3196
|
+
glyphName: s().optional(),
|
|
3197
|
+
glyphOrientationHorizontal: s().optional(),
|
|
3198
|
+
glyphOrientationVertical: s().optional(),
|
|
3199
|
+
glyphRef: s().optional(),
|
|
3200
|
+
gradientTransform: c().optional(),
|
|
3201
|
+
gradientUnits: c().optional(),
|
|
3202
|
+
hanging: s().optional(),
|
|
3203
|
+
horizAdvX: s().optional(),
|
|
3204
|
+
horizOriginX: s().optional(),
|
|
3205
|
+
href: c().optional(),
|
|
3206
|
+
ideographic: s().optional(),
|
|
3207
|
+
imageRendering: s().optional(),
|
|
3208
|
+
in2: s().optional(),
|
|
3209
|
+
in: c().optional(),
|
|
3210
|
+
intercept: s().optional(),
|
|
3211
|
+
k1: s().optional(),
|
|
3212
|
+
k2: s().optional(),
|
|
3213
|
+
k3: s().optional(),
|
|
3214
|
+
k4: s().optional(),
|
|
3215
|
+
k: s().optional(),
|
|
3216
|
+
kernelMatrix: s().optional(),
|
|
3217
|
+
kernelUnitLength: s().optional(),
|
|
3218
|
+
kerning: s().optional(),
|
|
3219
|
+
keyPoints: s().optional(),
|
|
3220
|
+
keySplines: s().optional(),
|
|
3221
|
+
keyTimes: s().optional(),
|
|
3222
|
+
lengthAdjust: s().optional(),
|
|
3223
|
+
letterSpacing: s().optional(),
|
|
3224
|
+
lightingColor: s().optional(),
|
|
3225
|
+
limitingConeAngle: s().optional(),
|
|
3226
|
+
local: s().optional(),
|
|
3227
|
+
markerEnd: c().optional(),
|
|
3228
|
+
markerHeight: s().optional(),
|
|
3229
|
+
markerMid: c().optional(),
|
|
3230
|
+
markerStart: c().optional(),
|
|
3231
|
+
markerUnits: s().optional(),
|
|
3232
|
+
markerWidth: s().optional(),
|
|
3233
|
+
mask: c().optional(),
|
|
3234
|
+
maskContentUnits: s().optional(),
|
|
3235
|
+
maskUnits: s().optional(),
|
|
3236
|
+
mathematical: s().optional(),
|
|
3237
|
+
mode: s().optional(),
|
|
3238
|
+
numOctaves: s().optional(),
|
|
3239
|
+
offset: s().optional(),
|
|
3240
|
+
opacity: s().optional(),
|
|
3241
|
+
operator: s().optional(),
|
|
3242
|
+
order: s().optional(),
|
|
3243
|
+
orient: s().optional(),
|
|
3244
|
+
orientation: s().optional(),
|
|
3245
|
+
origin: s().optional(),
|
|
3246
|
+
overflow: s().optional(),
|
|
3247
|
+
overlinePosition: s().optional(),
|
|
3248
|
+
overlineThickness: s().optional(),
|
|
3249
|
+
paintOrder: s().optional(),
|
|
3250
|
+
panose1: s().optional(),
|
|
3251
|
+
path: c().optional(),
|
|
3252
|
+
pathLength: s().optional(),
|
|
3253
|
+
patternContentUnits: c().optional(),
|
|
3254
|
+
patternTransform: s().optional(),
|
|
3255
|
+
patternUnits: c().optional(),
|
|
3256
|
+
pointerEvents: s().optional(),
|
|
3257
|
+
points: c().optional(),
|
|
3258
|
+
pointsAtX: s().optional(),
|
|
3259
|
+
pointsAtY: s().optional(),
|
|
3260
|
+
pointsAtZ: s().optional(),
|
|
3261
|
+
preserveAlpha: s().optional(),
|
|
3262
|
+
preserveAspectRatio: c().optional(),
|
|
3263
|
+
primitiveUnits: s().optional(),
|
|
3264
|
+
r: s().optional(),
|
|
3265
|
+
radius: s().optional(),
|
|
3266
|
+
refX: s().optional(),
|
|
3267
|
+
refY: s().optional(),
|
|
3268
|
+
renderingIntent: s().optional(),
|
|
3269
|
+
repeatCount: s().optional(),
|
|
3270
|
+
repeatDur: s().optional(),
|
|
3271
|
+
requiredExtensions: s().optional(),
|
|
3272
|
+
requiredFeatures: s().optional(),
|
|
3273
|
+
restart: s().optional(),
|
|
3274
|
+
result: c().optional(),
|
|
3275
|
+
rotate: s().optional(),
|
|
3276
|
+
rx: s().optional(),
|
|
3277
|
+
ry: s().optional(),
|
|
3278
|
+
scale: s().optional(),
|
|
3279
|
+
seed: s().optional(),
|
|
3280
|
+
shapeRendering: s().optional(),
|
|
3281
|
+
slope: s().optional(),
|
|
3282
|
+
spacing: s().optional(),
|
|
3283
|
+
specularConstant: s().optional(),
|
|
3284
|
+
specularExponent: s().optional(),
|
|
3285
|
+
speed: s().optional(),
|
|
3286
|
+
spreadMethod: c().optional(),
|
|
3287
|
+
startOffset: s().optional(),
|
|
3288
|
+
stdDeviation: s().optional(),
|
|
3289
|
+
stemh: s().optional(),
|
|
3290
|
+
stemv: s().optional(),
|
|
3291
|
+
stitchTiles: s().optional(),
|
|
3292
|
+
stopColor: c().optional(),
|
|
3293
|
+
stopOpacity: s().optional(),
|
|
3294
|
+
strikethroughPosition: s().optional(),
|
|
3295
|
+
strikethroughThickness: s().optional(),
|
|
3296
|
+
string: s().optional(),
|
|
3297
|
+
stroke: c().optional(),
|
|
3298
|
+
strokeDasharray: s().optional(),
|
|
3299
|
+
strokeDashoffset: s().optional(),
|
|
3300
3300
|
strokeLinecap: y(["butt", "round", "square", "inherit"]).optional(),
|
|
3301
3301
|
strokeLinejoin: y(["miter", "round", "bevel", "inherit"]).optional(),
|
|
3302
|
-
strokeMiterlimit:
|
|
3303
|
-
strokeOpacity:
|
|
3304
|
-
strokeWidth:
|
|
3305
|
-
surfaceScale:
|
|
3306
|
-
systemLanguage:
|
|
3307
|
-
tableValues:
|
|
3308
|
-
targetX:
|
|
3309
|
-
targetY:
|
|
3302
|
+
strokeMiterlimit: s().optional(),
|
|
3303
|
+
strokeOpacity: s().optional(),
|
|
3304
|
+
strokeWidth: s().optional(),
|
|
3305
|
+
surfaceScale: s().optional(),
|
|
3306
|
+
systemLanguage: s().optional(),
|
|
3307
|
+
tableValues: s().optional(),
|
|
3308
|
+
targetX: s().optional(),
|
|
3309
|
+
targetY: s().optional(),
|
|
3310
3310
|
textAnchor: y(["start", "middle", "end", "inherit"]).optional(),
|
|
3311
|
-
textDecoration:
|
|
3312
|
-
textLength:
|
|
3313
|
-
textRendering:
|
|
3314
|
-
to:
|
|
3315
|
-
transform:
|
|
3316
|
-
u1:
|
|
3317
|
-
u2:
|
|
3318
|
-
underlinePosition:
|
|
3319
|
-
underlineThickness:
|
|
3320
|
-
unicode:
|
|
3321
|
-
unicodeBidi:
|
|
3322
|
-
unicodeRange:
|
|
3323
|
-
unitsPerEm:
|
|
3324
|
-
vAlphabetic:
|
|
3325
|
-
values:
|
|
3326
|
-
vectorEffect:
|
|
3327
|
-
version:
|
|
3328
|
-
vertAdvY:
|
|
3329
|
-
vertOriginX:
|
|
3330
|
-
vertOriginY:
|
|
3331
|
-
vHanging:
|
|
3332
|
-
vIdeographic:
|
|
3333
|
-
viewBox:
|
|
3334
|
-
viewTarget:
|
|
3335
|
-
visibility:
|
|
3336
|
-
vMathematical:
|
|
3337
|
-
widths:
|
|
3338
|
-
wordSpacing:
|
|
3339
|
-
writingMode:
|
|
3340
|
-
x1:
|
|
3341
|
-
x2:
|
|
3342
|
-
x:
|
|
3343
|
-
xChannelSelector:
|
|
3344
|
-
xHeight:
|
|
3345
|
-
xlinkActuate:
|
|
3346
|
-
xlinkArcrole:
|
|
3347
|
-
xlinkHref:
|
|
3348
|
-
xlinkRole:
|
|
3349
|
-
xlinkShow:
|
|
3350
|
-
xlinkTitle:
|
|
3351
|
-
xlinkType:
|
|
3352
|
-
xmlBase:
|
|
3353
|
-
xmlLang:
|
|
3354
|
-
xmlns:
|
|
3355
|
-
xmlnsXlink:
|
|
3356
|
-
xmlSpace:
|
|
3357
|
-
y1:
|
|
3358
|
-
y2:
|
|
3359
|
-
y:
|
|
3360
|
-
yChannelSelector:
|
|
3361
|
-
z:
|
|
3362
|
-
zoomAndPan:
|
|
3311
|
+
textDecoration: s().optional(),
|
|
3312
|
+
textLength: s().optional(),
|
|
3313
|
+
textRendering: s().optional(),
|
|
3314
|
+
to: s().optional(),
|
|
3315
|
+
transform: c().optional(),
|
|
3316
|
+
u1: s().optional(),
|
|
3317
|
+
u2: s().optional(),
|
|
3318
|
+
underlinePosition: s().optional(),
|
|
3319
|
+
underlineThickness: s().optional(),
|
|
3320
|
+
unicode: s().optional(),
|
|
3321
|
+
unicodeBidi: s().optional(),
|
|
3322
|
+
unicodeRange: s().optional(),
|
|
3323
|
+
unitsPerEm: s().optional(),
|
|
3324
|
+
vAlphabetic: s().optional(),
|
|
3325
|
+
values: c().optional(),
|
|
3326
|
+
vectorEffect: s().optional(),
|
|
3327
|
+
version: c().optional(),
|
|
3328
|
+
vertAdvY: s().optional(),
|
|
3329
|
+
vertOriginX: s().optional(),
|
|
3330
|
+
vertOriginY: s().optional(),
|
|
3331
|
+
vHanging: s().optional(),
|
|
3332
|
+
vIdeographic: s().optional(),
|
|
3333
|
+
viewBox: c().optional(),
|
|
3334
|
+
viewTarget: s().optional(),
|
|
3335
|
+
visibility: s().optional(),
|
|
3336
|
+
vMathematical: s().optional(),
|
|
3337
|
+
widths: s().optional(),
|
|
3338
|
+
wordSpacing: s().optional(),
|
|
3339
|
+
writingMode: s().optional(),
|
|
3340
|
+
x1: s().optional(),
|
|
3341
|
+
x2: s().optional(),
|
|
3342
|
+
x: s().optional(),
|
|
3343
|
+
xChannelSelector: c().optional(),
|
|
3344
|
+
xHeight: s().optional(),
|
|
3345
|
+
xlinkActuate: c().optional(),
|
|
3346
|
+
xlinkArcrole: c().optional(),
|
|
3347
|
+
xlinkHref: c().optional(),
|
|
3348
|
+
xlinkRole: c().optional(),
|
|
3349
|
+
xlinkShow: c().optional(),
|
|
3350
|
+
xlinkTitle: c().optional(),
|
|
3351
|
+
xlinkType: c().optional(),
|
|
3352
|
+
xmlBase: c().optional(),
|
|
3353
|
+
xmlLang: c().optional(),
|
|
3354
|
+
xmlns: c().optional(),
|
|
3355
|
+
xmlnsXlink: c().optional(),
|
|
3356
|
+
xmlSpace: c().optional(),
|
|
3357
|
+
y1: s().optional(),
|
|
3358
|
+
y2: s().optional(),
|
|
3359
|
+
y: s().optional(),
|
|
3360
|
+
yChannelSelector: c().optional(),
|
|
3361
|
+
z: s().optional(),
|
|
3362
|
+
zoomAndPan: c().optional(),
|
|
3363
3363
|
variant: y(["glyph", "full"]).optional()
|
|
3364
3364
|
// Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
|
|
3365
3365
|
}), Ia = z({
|
|
3366
3366
|
lang: y(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
|
|
3367
3367
|
// Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
|
|
3368
|
-
code:
|
|
3368
|
+
code: c(),
|
|
3369
3369
|
// The code string to display.
|
|
3370
|
-
values:
|
|
3370
|
+
values: s().optional(),
|
|
3371
3371
|
// Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
|
|
3372
|
-
className:
|
|
3372
|
+
className: c().optional()
|
|
3373
3373
|
// Additional CSS classes merged via `cn()`.
|
|
3374
3374
|
}), Na = z({
|
|
3375
|
-
className:
|
|
3375
|
+
className: c().optional(),
|
|
3376
3376
|
// Additional CSS classes
|
|
3377
|
-
onOpenChange:
|
|
3377
|
+
onOpenChange: s().optional()
|
|
3378
3378
|
// Callback when collapsed state changes
|
|
3379
3379
|
}), Ea = z({
|
|
3380
3380
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3381
3381
|
// Size of the combobox trigger. Matches Input component sizes. - `"xs"` — Extra small for compact UIs (h-5 / 20px) - `"sm"` — Small for secondary fields (h-6.5 / 26px) - `"base"` — Default size (h-9 / 36px) - `"lg"` — Large for prominent fields (h-10 / 40px)
|
|
3382
3382
|
inputSide: y(["right", "top"]).optional(),
|
|
3383
3383
|
// Position of the text input relative to chips in multi-select mode. - `"right"` — Input inline to the right of chips - `"top"` — Input above chips
|
|
3384
|
-
items: U(
|
|
3384
|
+
items: U(s()),
|
|
3385
3385
|
// Array of items to display in the dropdown
|
|
3386
|
-
value: U(
|
|
3386
|
+
value: U(s()).optional(),
|
|
3387
3387
|
// Currently selected value(s)
|
|
3388
|
-
children: v([
|
|
3388
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3389
3389
|
// Combobox content (trigger, content, items)
|
|
3390
|
-
className:
|
|
3390
|
+
className: c().optional(),
|
|
3391
3391
|
// Additional CSS classes
|
|
3392
|
-
label: v([
|
|
3392
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3393
3393
|
// Label content for the combobox (enables Field wrapper) - can be a string or any React node
|
|
3394
3394
|
required: f().optional(),
|
|
3395
3395
|
// Whether the combobox is required
|
|
3396
|
-
labelTooltip: v([
|
|
3396
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3397
3397
|
// Tooltip content to display next to the label via an info icon
|
|
3398
|
-
description: v([
|
|
3398
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3399
3399
|
// Helper text displayed below the combobox
|
|
3400
|
-
error:
|
|
3400
|
+
error: s().optional(),
|
|
3401
3401
|
// Error message or validation error object
|
|
3402
|
-
onValueChange:
|
|
3402
|
+
onValueChange: s().optional(),
|
|
3403
3403
|
// Callback when selection changes
|
|
3404
3404
|
multiple: f().optional(),
|
|
3405
3405
|
// Allow multiple selections
|
|
3406
|
-
isItemEqualToValue:
|
|
3406
|
+
isItemEqualToValue: s().optional()
|
|
3407
3407
|
// Custom equality function for comparing items
|
|
3408
3408
|
}), Ca = z({
|
|
3409
3409
|
open: f(),
|
|
3410
3410
|
// Whether the dialog is open
|
|
3411
|
-
children: v([
|
|
3411
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3412
3412
|
// Child content - typically one or more Panel components
|
|
3413
|
-
container:
|
|
3413
|
+
container: s().optional()
|
|
3414
3414
|
// Container element for the portal. Use this to render the command palette inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
3415
3415
|
}), Aa = z({
|
|
3416
|
-
className:
|
|
3416
|
+
className: c().optional(),
|
|
3417
3417
|
// Additional CSS classes
|
|
3418
|
-
children: v([
|
|
3418
|
+
children: v([c(), g(), f(), b(), m]).optional()
|
|
3419
3419
|
// Child elements
|
|
3420
3420
|
}), xa = z({
|
|
3421
3421
|
size: y(["sm", "base", "lg"]).optional(),
|
|
3422
3422
|
// Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
|
|
3423
3423
|
variant: y(["default", "subtle"]).optional(),
|
|
3424
3424
|
// Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
|
|
3425
|
-
timezone:
|
|
3425
|
+
timezone: c().optional(),
|
|
3426
3426
|
// Display timezone string shown in the footer.
|
|
3427
|
-
className:
|
|
3427
|
+
className: c().optional(),
|
|
3428
3428
|
// Additional CSS classes merged via `cn()`.
|
|
3429
|
-
onStartDateChange:
|
|
3429
|
+
onStartDateChange: s().optional(),
|
|
3430
3430
|
// Callback when start date changes
|
|
3431
|
-
onEndDateChange:
|
|
3431
|
+
onEndDateChange: s().optional()
|
|
3432
3432
|
// Callback when end date changes
|
|
3433
3433
|
}), ja = z({
|
|
3434
|
-
className:
|
|
3434
|
+
className: c().optional(),
|
|
3435
3435
|
// Additional CSS classes merged via `cn()`.
|
|
3436
|
-
children: v([
|
|
3436
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3437
3437
|
// Dialog content (typically Title, Description, Close, and action buttons).
|
|
3438
|
-
container:
|
|
3438
|
+
container: s().optional(),
|
|
3439
3439
|
// Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
3440
3440
|
size: y(["base", "sm", "lg", "xl"]).optional()
|
|
3441
3441
|
// Dialog width. - `"sm"` — Small (min 288px) for simple confirmations - `"base"` — Default (min 384px) - `"lg"` — Large (min 512px) for complex content - `"xl"` — Extra large (min 768px) for detailed views
|
|
@@ -3445,41 +3445,41 @@ const m = v([
|
|
|
3445
3445
|
}), Da = z({
|
|
3446
3446
|
size: y(["sm", "base", "lg"]).optional(),
|
|
3447
3447
|
// Size of the empty state container. - `"sm"` — Compact empty state for smaller containers - `"base"` — Default empty state size - `"lg"` — Large empty state for prominent placement
|
|
3448
|
-
icon: v([
|
|
3448
|
+
icon: v([c(), g(), f(), b(), m]).optional(),
|
|
3449
3449
|
// Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
|
|
3450
|
-
title:
|
|
3450
|
+
title: c(),
|
|
3451
3451
|
// Primary heading text for the empty state.
|
|
3452
|
-
description:
|
|
3452
|
+
description: c().optional(),
|
|
3453
3453
|
// Secondary description text displayed below the title.
|
|
3454
|
-
commandLine:
|
|
3454
|
+
commandLine: c().optional(),
|
|
3455
3455
|
// Shell command displayed in a copyable code block.
|
|
3456
|
-
contents: v([
|
|
3456
|
+
contents: v([c(), g(), f(), b(), m]).optional(),
|
|
3457
3457
|
// Additional content (buttons, links) rendered below the description.
|
|
3458
|
-
className:
|
|
3458
|
+
className: c().optional()
|
|
3459
3459
|
// Additional CSS classes merged via `cn()`.
|
|
3460
3460
|
}), Ua = z({
|
|
3461
3461
|
controlFirst: f().optional(),
|
|
3462
3462
|
// When `true`, places the control before the label (for checkbox/switch layouts).
|
|
3463
|
-
children: v([
|
|
3463
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3464
3464
|
// The form control element(s) to wrap (Input, Select, Checkbox, etc.).
|
|
3465
|
-
label: v([
|
|
3465
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3466
3466
|
// The label content — can be a string or any React node.
|
|
3467
3467
|
required: f().optional(),
|
|
3468
3468
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3469
|
-
labelTooltip: v([
|
|
3469
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3470
3470
|
// Tooltip content displayed next to the label via an info icon.
|
|
3471
|
-
error:
|
|
3471
|
+
error: s().optional(),
|
|
3472
3472
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3473
|
-
description: v([
|
|
3473
|
+
description: v([c(), g(), f(), b(), m]).optional()
|
|
3474
3474
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3475
3475
|
}), Fa = z({
|
|
3476
|
-
children: v([
|
|
3476
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3477
3477
|
// Grid items to render.
|
|
3478
|
-
className:
|
|
3478
|
+
className: c().optional(),
|
|
3479
3479
|
// Additional CSS classes merged via `cn()`.
|
|
3480
|
-
id:
|
|
3481
|
-
lang:
|
|
3482
|
-
title:
|
|
3480
|
+
id: c().optional(),
|
|
3481
|
+
lang: c().optional(),
|
|
3482
|
+
title: c().optional(),
|
|
3483
3483
|
mobileDivider: f().optional(),
|
|
3484
3484
|
// Show dividers between grid items on mobile (only works with `"4up"` variant).
|
|
3485
3485
|
gap: y(["none", "sm", "base", "lg"]).optional(),
|
|
@@ -3487,100 +3487,100 @@ const m = v([
|
|
|
3487
3487
|
variant: y(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
|
|
3488
3488
|
// Responsive column layout variant. - `"2up"` — 1 col → 2 cols at md - `"side-by-side"` — Always 2 cols - `"2-1"` — 66%/33% split at md - `"1-2"` — 33%/66% split at md - `"3up"` — 1 → 2 → 3 cols - `"4up"` — 1 → 2 → 3 → 4 cols - `"6up"` — 2 → 3 → 4 → 6 cols - `"1-2-4up"` — 1 → 2 → 4 cols
|
|
3489
3489
|
}), La = z({
|
|
3490
|
-
label: v([
|
|
3490
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3491
3491
|
// Label content for the input (enables Field wrapper) - can be a string or any React node
|
|
3492
|
-
labelTooltip: v([
|
|
3492
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3493
3493
|
// Tooltip content to display next to the label via an info icon
|
|
3494
|
-
description: v([
|
|
3494
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3495
3495
|
// Helper text displayed below the input
|
|
3496
|
-
error:
|
|
3496
|
+
error: s().optional(),
|
|
3497
3497
|
// Error message or validation error object
|
|
3498
3498
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3499
3499
|
// Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
|
|
3500
3500
|
variant: y(["default", "error"]).optional()
|
|
3501
3501
|
// Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
|
|
3502
3502
|
}), Ma = z({}), Ja = z({
|
|
3503
|
-
label: v([
|
|
3503
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3504
3504
|
// The label content — can be a string or any React node.
|
|
3505
|
-
description: v([
|
|
3505
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3506
3506
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3507
|
-
error:
|
|
3507
|
+
error: s().optional(),
|
|
3508
3508
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3509
3509
|
required: f().optional(),
|
|
3510
3510
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3511
|
-
labelTooltip: v([
|
|
3511
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3512
3512
|
// Tooltip content displayed next to the label via an info icon.
|
|
3513
|
-
children: v([
|
|
3514
|
-
className:
|
|
3515
|
-
id:
|
|
3516
|
-
lang:
|
|
3517
|
-
title:
|
|
3513
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3514
|
+
className: c().optional(),
|
|
3515
|
+
id: c().optional(),
|
|
3516
|
+
lang: c().optional(),
|
|
3517
|
+
title: c().optional(),
|
|
3518
3518
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3519
3519
|
disabled: f().optional()
|
|
3520
|
-
}),
|
|
3521
|
-
children: v([
|
|
3520
|
+
}), Va = z({
|
|
3521
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3522
3522
|
// The label content — can be a string or any React node.
|
|
3523
3523
|
showOptional: f().optional(),
|
|
3524
3524
|
// When `true`, shows gray "(optional)" text after the label.
|
|
3525
|
-
tooltip: v([
|
|
3525
|
+
tooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3526
3526
|
// Tooltip content displayed next to the label via an info icon.
|
|
3527
|
-
className:
|
|
3527
|
+
className: c().optional(),
|
|
3528
3528
|
// Additional CSS classes merged via `cn()`.
|
|
3529
|
-
htmlFor:
|
|
3529
|
+
htmlFor: c().optional(),
|
|
3530
3530
|
// The id of the form element this label is associated with
|
|
3531
3531
|
asContent: f().optional()
|
|
3532
3532
|
// When true, only renders the inline content (indicators, tooltip) without the outer label element with font styling. Useful when composed inside another label element that already provides the text styling.
|
|
3533
|
-
}),
|
|
3534
|
-
render: v([
|
|
3533
|
+
}), Ba = z({
|
|
3534
|
+
render: v([c(), g(), f(), b(), m]).optional(),
|
|
3535
3535
|
// Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
|
|
3536
|
-
children: v([
|
|
3537
|
-
className:
|
|
3538
|
-
id:
|
|
3539
|
-
lang:
|
|
3540
|
-
title:
|
|
3536
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3537
|
+
className: c().optional(),
|
|
3538
|
+
id: c().optional(),
|
|
3539
|
+
lang: c().optional(),
|
|
3540
|
+
title: c().optional()
|
|
3541
3541
|
}), Wa = z({
|
|
3542
3542
|
variant: y(["inline", "current", "plain"]).optional(),
|
|
3543
3543
|
// Visual style of the link. - `"inline"` — Inline text link that flows with content - `"current"` — Link that inherits color from parent text - `"plain"` — Link without underline decoration
|
|
3544
|
-
to:
|
|
3545
|
-
children: v([
|
|
3546
|
-
className:
|
|
3547
|
-
id:
|
|
3548
|
-
lang:
|
|
3549
|
-
title:
|
|
3550
|
-
download:
|
|
3551
|
-
href:
|
|
3552
|
-
hrefLang:
|
|
3553
|
-
media:
|
|
3554
|
-
ping:
|
|
3555
|
-
target:
|
|
3556
|
-
type:
|
|
3544
|
+
to: c().optional(),
|
|
3545
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3546
|
+
className: c().optional(),
|
|
3547
|
+
id: c().optional(),
|
|
3548
|
+
lang: c().optional(),
|
|
3549
|
+
title: c().optional(),
|
|
3550
|
+
download: s().optional(),
|
|
3551
|
+
href: c().optional(),
|
|
3552
|
+
hrefLang: c().optional(),
|
|
3553
|
+
media: c().optional(),
|
|
3554
|
+
ping: c().optional(),
|
|
3555
|
+
target: s().optional(),
|
|
3556
|
+
type: c().optional(),
|
|
3557
3557
|
referrerPolicy: y(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
|
|
3558
|
-
render: v([
|
|
3558
|
+
render: v([c(), g(), f(), b(), m]).optional()
|
|
3559
3559
|
// Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
|
|
3560
3560
|
}), Ga = z({
|
|
3561
|
-
className:
|
|
3561
|
+
className: c().optional(),
|
|
3562
3562
|
// Additional CSS classes merged via `cn()`.
|
|
3563
3563
|
size: y(["sm", "base", "lg"]).optional()
|
|
3564
3564
|
// Size of the spinner. Use a preset name or a custom pixel number. - `"sm"` — 16px, for inline use - `"base"` — 24px, default size - `"lg"` — 32px, for prominent loading states
|
|
3565
3565
|
}), qa = z({
|
|
3566
|
-
className:
|
|
3566
|
+
className: c().optional(),
|
|
3567
3567
|
// Additional CSS classes merged via `cn()`.
|
|
3568
|
-
isActive:
|
|
3568
|
+
isActive: s().optional(),
|
|
3569
3569
|
// The currently active option value — matched against option index or `id`.
|
|
3570
|
-
options: U(
|
|
3570
|
+
options: U(s()),
|
|
3571
3571
|
// Array of menu option configurations.
|
|
3572
3572
|
optionIds: f().optional()
|
|
3573
3573
|
// When true, each option's `id` field is used for matching instead of its array index.
|
|
3574
3574
|
}), Ka = z({
|
|
3575
|
-
customValue:
|
|
3575
|
+
customValue: c().optional(),
|
|
3576
3576
|
// Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
|
|
3577
|
-
label:
|
|
3577
|
+
label: c(),
|
|
3578
3578
|
// Label text displayed above the meter track.
|
|
3579
3579
|
showValue: f().optional(),
|
|
3580
3580
|
// Whether to display the percentage value next to the label.
|
|
3581
|
-
trackClassName:
|
|
3581
|
+
trackClassName: c().optional(),
|
|
3582
3582
|
// Additional CSS classes for the track (background bar).
|
|
3583
|
-
indicatorClassName:
|
|
3583
|
+
indicatorClassName: c().optional(),
|
|
3584
3584
|
// Additional CSS classes for the indicator (filled bar).
|
|
3585
3585
|
value: g().optional(),
|
|
3586
3586
|
// Current value of the meter
|
|
@@ -3589,7 +3589,7 @@ const m = v([
|
|
|
3589
3589
|
min: g().optional()
|
|
3590
3590
|
// Minimum value of the meter (default: 0)
|
|
3591
3591
|
}), Xa = z({
|
|
3592
|
-
setPage:
|
|
3592
|
+
setPage: s(),
|
|
3593
3593
|
// Callback when page changes
|
|
3594
3594
|
page: g().optional(),
|
|
3595
3595
|
// Current page number (1-indexed).
|
|
@@ -3597,49 +3597,49 @@ const m = v([
|
|
|
3597
3597
|
// Number of items displayed per page.
|
|
3598
3598
|
totalCount: g().optional(),
|
|
3599
3599
|
// Total number of items across all pages.
|
|
3600
|
-
className:
|
|
3600
|
+
className: c().optional(),
|
|
3601
3601
|
// Additional CSS classes for the container
|
|
3602
|
-
labels:
|
|
3602
|
+
labels: s().optional(),
|
|
3603
3603
|
// Labels for internationalization of aria-labels. All labels have English defaults. For visible text like "Showing X of Y", use render props on sub-components: - `Pagination.Info` children for the info text - `Pagination.PageSize` label prop for the "Per page:" text
|
|
3604
|
-
children: v([
|
|
3604
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3605
3605
|
// Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
|
|
3606
3606
|
controls: y(["full", "simple"]).optional(),
|
|
3607
|
-
text:
|
|
3607
|
+
text: s().optional()
|
|
3608
3608
|
}), Ya = z({
|
|
3609
3609
|
side: y(["top", "bottom", "left", "right"]).optional()
|
|
3610
3610
|
// Which side of the trigger the popover appears on. - `"top"` — Above the trigger - `"bottom"` — Below the trigger - `"left"` — Left of the trigger - `"right"` — Right of the trigger
|
|
3611
3611
|
}), Ha = z({
|
|
3612
|
-
legend:
|
|
3612
|
+
legend: c().optional(),
|
|
3613
3613
|
// Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead.
|
|
3614
|
-
children: v([
|
|
3614
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3615
3615
|
// Child Radio.Item components (and optionally a Radio.Legend)
|
|
3616
3616
|
orientation: y(["vertical", "horizontal"]).optional(),
|
|
3617
3617
|
// Layout direction of the radio items
|
|
3618
3618
|
appearance: y(["default", "card"]).optional(),
|
|
3619
3619
|
// Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override this with their own `appearance` prop.
|
|
3620
|
-
error:
|
|
3620
|
+
error: c().optional(),
|
|
3621
3621
|
// Error message for the group
|
|
3622
|
-
description: v([
|
|
3622
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3623
3623
|
// Helper text for the group
|
|
3624
|
-
value:
|
|
3624
|
+
value: c().optional(),
|
|
3625
3625
|
// Value of the radio that should be selected (controlled)
|
|
3626
3626
|
disabled: f().optional(),
|
|
3627
3627
|
// Whether all radios in the group are disabled
|
|
3628
3628
|
controlPosition: y(["start", "end"]).optional(),
|
|
3629
3629
|
// Position of radio control relative to label: "start" puts radio before label, "end" puts label before radio. Defaults to "start" for default appearance and "end" for card appearance.
|
|
3630
|
-
name:
|
|
3630
|
+
name: c().optional(),
|
|
3631
3631
|
// Form submission name for the radio group
|
|
3632
|
-
className:
|
|
3632
|
+
className: c().optional()
|
|
3633
3633
|
// Additional CSS classes
|
|
3634
3634
|
}), Qa = z({
|
|
3635
|
-
className:
|
|
3635
|
+
className: c().optional(),
|
|
3636
3636
|
// Additional CSS classes merged via `cn()`.
|
|
3637
3637
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3638
3638
|
// Size of the select trigger. Matches Input component sizes.
|
|
3639
|
-
label: v([
|
|
3639
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3640
3640
|
// Label content for the select. When provided, enables the Field wrapper with a visible label above the select. For accessibility without a visible label, use `aria-label` instead.
|
|
3641
3641
|
hideLabel: f().optional(),
|
|
3642
|
-
placeholder:
|
|
3642
|
+
placeholder: c().optional(),
|
|
3643
3643
|
// Placeholder text shown when no value is selected.
|
|
3644
3644
|
loading: f().optional(),
|
|
3645
3645
|
// When `true`, shows a skeleton loader in place of the selected value.
|
|
@@ -3647,50 +3647,56 @@ const m = v([
|
|
|
3647
3647
|
// Whether the select is disabled.
|
|
3648
3648
|
required: f().optional(),
|
|
3649
3649
|
// Whether the select is required. When `false`, shows "(optional)" text.
|
|
3650
|
-
labelTooltip: v([
|
|
3650
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3651
3651
|
// Tooltip content displayed next to the label via an info icon.
|
|
3652
3652
|
value: s().optional(),
|
|
3653
3653
|
// Currently selected value (controlled mode).
|
|
3654
|
-
children: v([
|
|
3654
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3655
3655
|
// `Select.Option` elements to render in the dropdown.
|
|
3656
|
-
description: v([
|
|
3656
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3657
3657
|
// Helper text displayed below the select.
|
|
3658
|
-
error:
|
|
3658
|
+
error: s().optional(),
|
|
3659
3659
|
// Error message string or validation error object with `match` key.
|
|
3660
|
-
onValueChange:
|
|
3660
|
+
onValueChange: s().optional(),
|
|
3661
3661
|
// Callback when selection changes
|
|
3662
|
-
defaultValue: s().optional()
|
|
3662
|
+
defaultValue: s().optional(),
|
|
3663
3663
|
// Initial value for uncontrolled mode
|
|
3664
|
+
renderValue: s().optional(),
|
|
3665
|
+
// A function that returns a ReactNode to format the selected value in the trigger. Required when using object values. Use `placeholder` for the empty state.
|
|
3666
|
+
items: s().optional(),
|
|
3667
|
+
// Data structure of items rendered in the popup. Accepts a plain object map (`{ key: "Label" }`) or an array of `{ label, value }` for object/complex values.
|
|
3668
|
+
isItemEqualToValue: s().optional()
|
|
3669
|
+
// Custom equality function for comparing items. Required when value is an object, since object identity (`===`) won't match across renders.
|
|
3664
3670
|
}), es = z({
|
|
3665
|
-
alt:
|
|
3666
|
-
autoComplete:
|
|
3671
|
+
alt: c().optional(),
|
|
3672
|
+
autoComplete: s().optional(),
|
|
3667
3673
|
checked: f().optional(),
|
|
3668
3674
|
disabled: f().optional(),
|
|
3669
|
-
height:
|
|
3670
|
-
list:
|
|
3671
|
-
name:
|
|
3672
|
-
placeholder:
|
|
3675
|
+
height: s().optional(),
|
|
3676
|
+
list: c().optional(),
|
|
3677
|
+
name: c().optional(),
|
|
3678
|
+
placeholder: c().optional(),
|
|
3673
3679
|
readOnly: f().optional(),
|
|
3674
3680
|
required: f().optional(),
|
|
3675
|
-
width:
|
|
3676
|
-
className:
|
|
3677
|
-
id:
|
|
3678
|
-
lang:
|
|
3679
|
-
title:
|
|
3680
|
-
children: v([
|
|
3681
|
-
value:
|
|
3681
|
+
width: s().optional(),
|
|
3682
|
+
className: c().optional(),
|
|
3683
|
+
id: c().optional(),
|
|
3684
|
+
lang: c().optional(),
|
|
3685
|
+
title: c().optional(),
|
|
3686
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3687
|
+
value: c().optional(),
|
|
3682
3688
|
// Controlled value
|
|
3683
3689
|
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3684
3690
|
// Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
|
|
3685
3691
|
variant: y(["default", "error"]).optional(),
|
|
3686
3692
|
// Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
|
|
3687
|
-
label: v([
|
|
3693
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3688
3694
|
// Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
|
|
3689
|
-
labelTooltip: v([
|
|
3695
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3690
3696
|
// Tooltip content to display next to the label via an info icon
|
|
3691
|
-
description: v([
|
|
3697
|
+
description: v([c(), g(), f(), b(), m]).optional(),
|
|
3692
3698
|
// Helper text displayed below the input
|
|
3693
|
-
error:
|
|
3699
|
+
error: s().optional()
|
|
3694
3700
|
// Error message or validation error object
|
|
3695
3701
|
}), os = z({
|
|
3696
3702
|
defaultOpen: f().optional(),
|
|
@@ -3710,25 +3716,25 @@ const m = v([
|
|
|
3710
3716
|
// Minimum width in pixels when resizing.
|
|
3711
3717
|
maxWidth: g().optional(),
|
|
3712
3718
|
// Maximum width in pixels when resizing.
|
|
3713
|
-
children: v([
|
|
3719
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3714
3720
|
// Content — typically `<Sidebar>` + main content.
|
|
3715
|
-
className:
|
|
3721
|
+
className: c().optional()
|
|
3716
3722
|
// Additional CSS classes for the wrapper div.
|
|
3717
3723
|
}), ts = z({
|
|
3718
|
-
as:
|
|
3719
|
-
render: v([
|
|
3724
|
+
as: s().optional(),
|
|
3725
|
+
render: v([c(), g(), f(), b(), m]).optional(),
|
|
3720
3726
|
// Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
|
|
3721
|
-
children: v([
|
|
3722
|
-
className:
|
|
3723
|
-
id:
|
|
3724
|
-
lang:
|
|
3725
|
-
title:
|
|
3727
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3728
|
+
className: c().optional(),
|
|
3729
|
+
id: c().optional(),
|
|
3730
|
+
lang: c().optional(),
|
|
3731
|
+
title: c().optional()
|
|
3726
3732
|
}), ns = z({
|
|
3727
3733
|
variant: y(["default", "neutral"]).optional(),
|
|
3728
3734
|
// Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
|
|
3729
|
-
label: v([
|
|
3735
|
+
label: v([c(), g(), f(), b(), m]).optional(),
|
|
3730
3736
|
// Label content for the switch (Field wrapper is built-in) - can be a string or any React node. Optional when used standalone for visual-only purposes.
|
|
3731
|
-
labelTooltip: v([
|
|
3737
|
+
labelTooltip: v([c(), g(), f(), b(), m]).optional(),
|
|
3732
3738
|
// Tooltip content to display next to the label via an info icon
|
|
3733
3739
|
required: f().optional(),
|
|
3734
3740
|
// Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
|
|
@@ -3738,47 +3744,47 @@ const m = v([
|
|
|
3738
3744
|
checked: f().optional(),
|
|
3739
3745
|
disabled: f().optional(),
|
|
3740
3746
|
transitioning: f().optional(),
|
|
3741
|
-
name:
|
|
3747
|
+
name: c().optional(),
|
|
3742
3748
|
type: y(["submit", "reset", "button"]).optional(),
|
|
3743
|
-
value:
|
|
3744
|
-
className:
|
|
3745
|
-
id:
|
|
3746
|
-
lang:
|
|
3747
|
-
title:
|
|
3748
|
-
onClick:
|
|
3749
|
+
value: s().optional(),
|
|
3750
|
+
className: c().optional(),
|
|
3751
|
+
id: c().optional(),
|
|
3752
|
+
lang: c().optional(),
|
|
3753
|
+
title: c().optional(),
|
|
3754
|
+
onClick: s()
|
|
3749
3755
|
// Callback when switch is clicked
|
|
3750
3756
|
}), rs = z({
|
|
3751
3757
|
layout: y(["auto", "fixed"]).optional(),
|
|
3752
3758
|
variant: y(["default", "selected"]).optional(),
|
|
3753
3759
|
sticky: y(["left", "right"]).optional(),
|
|
3754
|
-
className:
|
|
3760
|
+
className: c().optional(),
|
|
3755
3761
|
// Additional CSS classes
|
|
3756
|
-
children: v([
|
|
3762
|
+
children: v([c(), g(), f(), b(), m]).optional()
|
|
3757
3763
|
// Child elements
|
|
3758
3764
|
}), is = z({
|
|
3759
|
-
children: v([
|
|
3760
|
-
className:
|
|
3761
|
-
id:
|
|
3762
|
-
lang:
|
|
3763
|
-
title:
|
|
3765
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3766
|
+
className: c().optional(),
|
|
3767
|
+
id: c().optional(),
|
|
3768
|
+
lang: c().optional(),
|
|
3769
|
+
title: c().optional()
|
|
3764
3770
|
}), as = z({
|
|
3765
|
-
tabs: U(
|
|
3771
|
+
tabs: U(s()).optional(),
|
|
3766
3772
|
// Array of tab items to render.
|
|
3767
|
-
value:
|
|
3773
|
+
value: c().optional(),
|
|
3768
3774
|
// Controlled value. When set, component becomes controlled.
|
|
3769
|
-
selectedValue:
|
|
3775
|
+
selectedValue: c().optional(),
|
|
3770
3776
|
// Default selected value for uncontrolled mode. Ignored when `value` is set.
|
|
3771
3777
|
activateOnFocus: f().optional(),
|
|
3772
3778
|
// When `true`, tabs are activated immediately upon receiving focus via arrow keys. When `false` (default), tabs receive focus but require Enter/Space to activate.
|
|
3773
|
-
className:
|
|
3779
|
+
className: c().optional(),
|
|
3774
3780
|
// Additional CSS classes for the root element.
|
|
3775
|
-
listClassName:
|
|
3781
|
+
listClassName: c().optional(),
|
|
3776
3782
|
// Additional CSS classes for the tab list element.
|
|
3777
|
-
indicatorClassName:
|
|
3783
|
+
indicatorClassName: c().optional(),
|
|
3778
3784
|
// Additional CSS classes for the indicator element.
|
|
3779
3785
|
variant: y(["segmented", "underline"]).optional(),
|
|
3780
3786
|
// Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
|
|
3781
|
-
onValueChange:
|
|
3787
|
+
onValueChange: s().optional()
|
|
3782
3788
|
// Callback when active tab changes
|
|
3783
3789
|
}), ss = z({
|
|
3784
3790
|
variant: y(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
|
|
@@ -3791,21 +3797,21 @@ const m = v([
|
|
|
3791
3797
|
// Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
|
|
3792
3798
|
as: y(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "label", "dt", "dd", "li", "figcaption", "legend", "pre", "code", "em", "strong", "small", "abbr", "time"]).optional(),
|
|
3793
3799
|
// The HTML element to render. Accepts headings (`"h1"`–`"h6"`), block text (`"p"`, `"pre"`), inline text (`"span"`, `"code"`, `"em"`, `"strong"`, `"small"`, `"abbr"`, `"time"`), form-related (`"label"`, `"legend"`), list/definition (`"dt"`, `"dd"`, `"li"`), and `"figcaption"`. - **Required** for heading variants (`"heading1"`, `"heading2"`, `"heading3"`) — pick the element that reflects this text's place in the document outline, or `"span"` for decorative heading-styled text that is not a section heading. - **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
|
|
3794
|
-
children: v([
|
|
3800
|
+
children: v([c(), g(), f(), b(), m]).optional()
|
|
3795
3801
|
// Text content.
|
|
3796
3802
|
}), cs = z({
|
|
3797
3803
|
variant: y(["default", "success", "error", "warning", "info"]).optional(),
|
|
3798
|
-
className:
|
|
3804
|
+
className: c().optional(),
|
|
3799
3805
|
// Additional CSS classes
|
|
3800
|
-
children: v([
|
|
3806
|
+
children: v([c(), g(), f(), b(), m]).optional()
|
|
3801
3807
|
// Child elements
|
|
3802
3808
|
}), ls = z({
|
|
3803
3809
|
side: y(["top", "bottom", "left", "right"]).optional(),
|
|
3804
|
-
className:
|
|
3810
|
+
className: c().optional(),
|
|
3805
3811
|
// Additional CSS classes
|
|
3806
|
-
children: v([
|
|
3812
|
+
children: v([c(), g(), f(), b(), m]).optional(),
|
|
3807
3813
|
// Child elements
|
|
3808
|
-
content: v([
|
|
3814
|
+
content: v([c(), g(), f(), b(), m])
|
|
3809
3815
|
// Content to display in the tooltip
|
|
3810
3816
|
}), us = y([
|
|
3811
3817
|
"Autocomplete",
|
|
@@ -3873,8 +3879,8 @@ const m = v([
|
|
|
3873
3879
|
Input: La,
|
|
3874
3880
|
InputArea: Ma,
|
|
3875
3881
|
InputGroup: Ja,
|
|
3876
|
-
Label:
|
|
3877
|
-
LayerCard:
|
|
3882
|
+
Label: Va,
|
|
3883
|
+
LayerCard: Ba,
|
|
3878
3884
|
Link: Wa,
|
|
3879
3885
|
Loader: Ga,
|
|
3880
3886
|
MenuBar: qa,
|
|
@@ -3894,16 +3900,16 @@ const m = v([
|
|
|
3894
3900
|
Toasty: cs,
|
|
3895
3901
|
Tooltip: ls
|
|
3896
3902
|
}, ds = z({
|
|
3897
|
-
key:
|
|
3903
|
+
key: c(),
|
|
3898
3904
|
type: us,
|
|
3899
|
-
props: H(
|
|
3900
|
-
children: U(
|
|
3901
|
-
parentKey:
|
|
3905
|
+
props: H(c(), s()),
|
|
3906
|
+
children: U(c()).optional(),
|
|
3907
|
+
parentKey: c().nullable().optional(),
|
|
3902
3908
|
visible: ba.optional(),
|
|
3903
3909
|
action: za.optional()
|
|
3904
3910
|
}), fs = z({
|
|
3905
|
-
root:
|
|
3906
|
-
elements: H(
|
|
3911
|
+
root: c(),
|
|
3912
|
+
elements: H(c(), ds)
|
|
3907
3913
|
});
|
|
3908
3914
|
function ms(e) {
|
|
3909
3915
|
const o = ps[e.type];
|
|
@@ -3942,8 +3948,8 @@ export {
|
|
|
3942
3948
|
La as InputPropsSchema,
|
|
3943
3949
|
_s as KUMO_COMPONENT_NAMES,
|
|
3944
3950
|
us as KumoComponentTypeSchema,
|
|
3945
|
-
|
|
3946
|
-
|
|
3951
|
+
Va as LabelPropsSchema,
|
|
3952
|
+
Ba as LayerCardPropsSchema,
|
|
3947
3953
|
Wa as LinkPropsSchema,
|
|
3948
3954
|
Ga as LoaderPropsSchema,
|
|
3949
3955
|
qa as MenuBarPropsSchema,
|